2 lines
457 KiB
Plaintext
2 lines
457 KiB
Plaintext
/*! For license information please see player-7.10b758b7.js.LICENSE.txt */
|
||
!function(t,n){"object"==typeof module&&"object"==typeof module.exports?n():"function"==typeof define&&define.amd?define([],n):(t="undefined"!=typeof globalThis?globalThis:t||self)&&n()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).xss={})}(this,function(t){"use strict";var n=function(){return(n=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++)for(var a in n=arguments[i])Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);return t}).apply(this,arguments)};function i(t,n,i){if(i||2==arguments.length)for(var o,a=0,s=n.length;a<s;a++)!o&&a in n||(o||(o=Array.prototype.slice.call(n,0,a)),o[a]=n[a]);return t.concat(o||Array.prototype.slice.call(n))}var o=/[^a-zA-Z0-9\\_:.-]/gim,a=/</g,s=/>/g,c=/&#([a-zA-Z0-9]*);?/gim,u=/"/g,l=/:?/gim,d=/&newline;?/gim,f=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,A=/u\s*r\s*l\s*\(.*/gi,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,g=/"/g,p=function(t){return t.replace(a,"<").replace(s,">")},v={indexOf:function(t,n){var i,o;for(i=0,o=t.length;i<o;i++)if(t[i]===n)return i;return -1},forEach:function(t,n,i){var o,a;for(o=0,a=t.length;o<a;o++)n.call(i,t[o],o,t)},some:function(t,n,i){var o,a;for(o=0,a=t.length;o<a;o++)if(n.call(i,t[o],o,t))return!0;return!1},trim:function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},includes:function(t,n){if("string"==typeof t)return -1!==t.indexOf(n);for(var i=0;i<t.length;i++)if(t[i]===n)return!0;return!1},spaceIndex:function(t){var n=/\s|\n|\t/.exec(t);return n?n.index:-1},uniq:function(t){for(var n={},i=[],o=0;o<t.length;o++)n[t[o]]||(i.push(t[o]),n[t[o]]=!0);return i},from:function(t){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n},keys:function(t){var n=[];for(var i in t)n.push(i);return n}};function y(t){return null==t}function m(t){var n;return'"'===(n=t)[0]&&'"'===n[n.length-1]||"'"===n[0]&&"'"===n[n.length-1]?t.substr(1,t.length-2):t}function _(t){var n,i,o,a,s,c,u,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d="",f=0;for(t=function(t){t=t.replace(/rn/g,"n");for(var n="",i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?n+=String.fromCharCode(o):o>127&&o<2048?n+=String.fromCharCode(o>>6|192)+String.fromCharCode(63&o|128):n+=String.fromCharCode(o>>12|224)+String.fromCharCode(o>>6&63|128)+String.fromCharCode(63&o|128)}return n}(t);f<t.length;)a=(n=t.charCodeAt(f++))>>2,s=(3&n)<<4|(i=t.charCodeAt(f++))>>4,c=(15&i)<<2|(o=t.charCodeAt(f++))>>6,u=63&o,isNaN(i)?c=u=64:isNaN(o)&&(u=64),d=d+l.charAt(a)+l.charAt(s)+l.charAt(c)+l.charAt(u);return d}function I(t){var n,i,o,a,s,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",d=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");d<t.length;)n=u.indexOf(t.charAt(d++))<<2|(a=u.indexOf(t.charAt(d++)))>>4,i=(15&a)<<4|(s=u.indexOf(t.charAt(d++)))>>2,o=(3&s)<<6|(c=u.indexOf(t.charAt(d++))),l+=String.fromCharCode(n),64!==s&&(l+=String.fromCharCode(i)),64!==c&&(l+=String.fromCharCode(o));return function(t){for(var n="",i=0,o=0,a=0,s=0;i<t.length;)(o=t.charCodeAt(i))<128?(n+=String.fromCharCode(o),i++):o>191&&o<224?(n+=String.fromCharCode((31&o)<<6|63&(s=t.charCodeAt(i+1))),i+=2):(s=t.charCodeAt(i+1),n+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&(a=t.charCodeAt(i+2))),i+=3);return n}(l)}function b(t,n,i){var o="",a=0,s=!1,c=!1,u=0,l=t.length,d="",f="";e:for(u=0;u<l;u++){var A=t.charAt(u);if(!1===s){if("<"===A){s=u;continue}}else if(!1===c){if("<"===A){o+=i(t.slice(a,u)),s=u,a=u;continue}if(">"===A||u===l-1){o+=i(t.slice(a,s)),d=function(t){var n,i=v.spaceIndex(t);return n=-1===i?t.slice(1,-1):t.slice(1,i+1),"/"===(n=v.trim(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}(f=t.slice(s,u+1)),o+=n(s,o.length,d,f,"</"===f.slice(0,2)),a=u+1,s=!1;continue}if('"'===A||"'"===A)for(var h=1,g=t.charAt(u-h);""===g.trim()||"="===g;){if("="===g){c=A;continue e}g=t.charAt(u-++h)}}else if(A===c){c=!1;continue}}return a<l&&(o+=i(t.substr(a))),o}function C(t,n){var i=0,a=0,s=[],c=!1,u=t.length;function l(t,i){if(!((t=(t=v.trim(t)).replace(o,"").toLowerCase()).length<1)){var a=n(t,i||"");a&&s.push(a)}}for(var d=0;d<u;d++){var f=t.charAt(d),A=void 0;if(!1!==c||"="!==f){if(!1===c||d!==a){if(/\s|\n|\t/.test(f)){if(t=t.replace(/\s|\n|\t/g," "),!1===c){if(-1===(A=function(t,n){for(;n<t.length;n++){var i=t[n];if(" "!==i)return"="===i?n:-1}return -1}(t,d))){l(v.trim(t.slice(i,d))),c=!1,i=d+1;continue}d=A-1;continue}if(-1===(A=function(t,n){for(;n>0;n--){var i=t[n];if(" "!==i)return"="===i?n:-1}return -1}(t,d-1))){l(c,m(v.trim(t.slice(i,d)))),c=!1,i=d+1;continue}}}else{if(-1===(A=t.indexOf(f,d+1)))break;l(c,v.trim(t.slice(a+1,A))),c=!1,i=(d=A)+1}}else c=t.slice(i,d),i=d+1,a='"'===t.charAt(i)||"'"===t.charAt(i)?i:function(t,n){for(;n<t.length;n++){var i=t[n];if(" "!==i)return"'"===i||'"'===i?n:-1}return -1}(t,d+1)}return i<t.length&&(!1===c?l(t.slice(i)):l(c,m(v.trim(t.slice(i))))),v.trim(s.join(" "))}function k(t,n,i){if(i=function(t){return t=function(t){for(var n="",i=0,o=t.length;i<o;i++)n+=32>t.charCodeAt(i)?" ":t.charAt(i);return v.trim(n)}(t=(t=(t=t.replace(u,'"')).replace(c,function(t,n){return"x"===n[0]||"X"===n[0]?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})).replace(l,":").replace(d," "))}(i),"href"===n||"src"===n){if("#"===(i=v.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===n){if(f.lastIndex=0,f.test(i))return""}else if("style"===n&&(h.lastIndex=0,h.test(i)||(A.lastIndex=0,A.test(i)&&(f.lastIndex=0,f.test(i)))))return"";return i=function(t){return t=p(t=t.replace(g,"""))}(i)}var w=function(t){return"string"==typeof t?t.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},E=function(){function t(t){var n=function(t){var n={};for(var i in t)n[i]=t[i];return n}(t||{});n.stripIgnoreTag&&(n.onIgnoreTag,n.onIgnoreTag=function(){return""}),n.whiteList={},n.onTag=function(){},n.onTagAttr=function(){},n.onIgnoreTag=function(){},n.onIgnoreTagAttr=function(){},n.safeAttrValue=k,n.escapeHtml=p,this.options=Object.assign(n,t)}return t.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var n,i,o,a,s,c,u=this.options,l=u.whiteList,d=u.onTag,f=u.onIgnoreTag,A=u.onTagAttr,h=u.onIgnoreTagAttr,g=u.safeAttrValue,p=u.escapeHtml;u.stripBlankChar&&(t=(n=(n=t.split("")).filter(function(t){var n=t.charCodeAt(0);return!(127===n||n<=31&&10!==n&&13!==n)})).join("")),u.allowCommentTag||(t=function(t){for(var n="",i=0;i<t.length;){var o=t.indexOf("\x3c!--",i);if(-1===o){n+=t.slice(i);break}n+=t.slice(i,o);var a=t.indexOf("--\x3e",o);if(-1===a)break;i=a+3}return n}(t));var y=!1;u.stripIgnoreTagBody&&(i=u.stripIgnoreTagBody,"function"!=typeof(o=f)&&(o=function(){}),a=!Array.isArray(i),s=[],c=!1,f=(y={onIgnoreTag:function(t,n,u){var l;if(l=t,a||-1!==v.indexOf(i,l)){if(u.isClosing){var d="[/removed]",f=u.position+d.length;return s.push([!1!==c?c:u.position,f]),c=!1,d}return c||(c=u.position),"[removed]"}return o(t,n,u)},remove:function(t){var n="",i=0;return v.forEach(s,function(o){n+=t.slice(i,o[0]),i=o[1]}),n+=t.slice(i)}}).onIgnoreTag);var m=b(t,function(t,n,i,o,a){var s={sourcePosition:t,position:n,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(l,i)},c=d(i,o,s);if(null!=c)return c;if(s.isWhite){if(s.isClosing)return"</".concat(i,">");var u=function(t){var n=v.spaceIndex(t);if(-1===n)return{html:"",closing:"/"===t[t.length-2]};var i="/"===(t=v.trim(t.slice(n+1,-1)))[t.length-1];return i&&(t=v.trim(t.slice(0,-1))),{html:t,closing:i}}(o),y=l[i],m=C(u.html,function(t,n){var o=-1!==v.indexOf(y,t),a=A(i,t,n,o);return null==a?o?(n=g(i,t,n,null))?"".concat(t,'="').concat(n,'"'):t:null==(a=h(i,t,n,o))?void 0:a:a});return o="<".concat(i),m&&(o+=" ".concat(m)),u.closing&&(o+=" /"),o+=">"}return null==(c=f(i,o,s))?p(o):c},p);return y&&(m=y.remove(m)),m},t}(),S=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),R=new(function(){function t(){var t=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var n,i,o="douyin_web";if(!v.includes(o,"bid"))return o;if(t.config&&t.config.bid)return t.config.bid;if(S&&S._xssBid)return S._xssBid;if(S&&S.slardar&&"function"==typeof S.slardar.config){var a=(S.slardar.config()||{}).bid;if(a)return a}if(S&&S.Slardar&&"function"==typeof S.Slardar.config){var s=(S.Slardar.config()||{}).bid;if(s)return s}return(null===(i=null===(n=null==S?void 0:S.Slardar)||void 0===n?void 0:n._baseParams)||void 0===i?void 0:i.bid)||"argus"},this.getConfigRegion=function(){var n;return v.includes("cn","region")?t.config&&t.config.region?t.config.region:((null===(n=null==S?void 0:S.gfdatav1)||void 0===n?void 0:n.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var n={cn:I("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:I("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:I("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:I("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:I("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:I("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:I("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[t.getConfigRegion()];if(n)return n+t.getSlardarBid()}}return t.prototype.setConfig=function(t){this.config=t},t.prototype.upload=function(){var t=this,n=this.gerReportUrl();!this.lock&&n&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var i=t.batchData.slice(0,100);t.batchData=t.batchData.slice(100),S.fetch(n,{method:"post",body:JSON.stringify(i),headers:{"Content-Type":"application/json"}}).catch(function(t){}),t.lock=!1,t.upload()},this.timeout))},t.prototype.generateKey=function(t){return t.collectKey?[t.collectMode,t.collectKey].join("___"):""},t.prototype.push=function(t){this.batchData.push(t),this.upload()},t.prototype.report=function(t){var n=this.generateKey(t);if(S.fetch&&t.collectKey){var i="object"==typeof window?window.location.href:"SSR";t.documentUrl=i;var o={age:Math.floor(Date.now()),type:"xss",url:i,body:t,"user-agent":""};"enforce"===t.disposition&&"SSR"!==i||(o.url=n),"SSR"===i&&(o.url="SSR___".concat(o.url),o.body.ssr=!0),this.push(o)}},t}()),T=function(t){for(var n=0,i=function(i){Array.isArray(t[i])?0===t[i].length?delete t[i]:(t[i]=v.from(v.uniq(t[i])),n+=t[i].length):0===v.keys(t[i]).length?delete t[i]:v.keys(t[i]).forEach(function(o){t[i][o]=v.from(v.uniq(t[i][o])),n+=t[i][o].length})},o=0,a=v.keys(t);o<a.length;o++)i(a[o]);return{count:n,ret:t}};function D(t,n){return R.setConfig(n),new E(n).process(t)}function B(t){var n,i=(n=/\s|\n|\t/.exec(t))?n.index:-1;if(-1===i)return{html:"",closing:"/"===t[t.length-2]};var o="/"===(t=t.slice(i+1,-1).trim())[t.length-1];return o&&(t=t.slice(0,-1).trim()),{html:t,closing:o}}var P=function(t){return -1===(t=(t=(t=(t=t.replace(/:/gi,":")).replace(/&tab;/gi,"")).replace(/&newline;/gi,"")).replace(/(\t|\n|\r)/g,"")).indexOf("&#")?t.trim().toLowerCase():t.trim().replace(/&#(?:(x)([0-9a-f]+)|([0-9]+));?/gi,function(t,n,i,o){return String.fromCharCode(n?parseInt(i,16):parseInt(o))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function x(t,n){if(void 0===t&&(t=""),"string"!=typeof t)return!0;if(t=P(t),v.includes(t,"base64")&&!function(t){if(""===t||""===t.trim())return!0;try{return!v.includes(t,"data:text/html;base64")}catch(t){return!0}}(t))return n&&n("data:text/html;base64"),!1;var i=["expression(","behavior:","view-source:"];if(v.some(i,function(n){return -1!==t.indexOf(n)}))return v.forEach(i,function(i){-1!==t.indexOf(i)&&n&&n(i)}),!1;var o=["data:application","data:javascript","data:text/html","data:texthtml"];if(v.some(o,function(n){return -1!==t.indexOf(n)}))return v.forEach(o,function(i){-1!==t.indexOf(i)&&n&&n(i)}),!1;if(t.indexOf("javascript:")>0)return n&&n("javascript:"),!1;if(/^javascript:/i.test(t)){var a=t.slice(11).replace(/\s/g,"").trim();return!!v.some(["void","void(0)","void0","false","undefined",";"],function(t){return t===a})||(n&&n("javascript:"),!1)}return!0}var Z=function(t,n){var i,o,a="<%= isSaveValidUrl =>";if("string"!=typeof t||(o=Number("<%= urlLimit =>"),void 0!==i&&(o=i),"NaN"!==t.toString()&&-1!==o&&t.length>=o)||x(t,n))return t;try{if(!0===(a=JSON.parse(a))||"true"===a){var s=new URL(t);return s.origin+s.pathname}}catch(t){}return"#"};function O(t,n,o){if(void 0===t&&(t=""),void 0===n&&(n=[]),"string"!=typeof t)return!0;if(!x(t=P(t)))return!1;var a,s={url:(a=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:a[1],slash:a[2],host:a[3],port:a[4],path:a[5],query:a[6],hash:a[7]},c=s.scheme,u=s.host;return o?!!o(t):!(!c||!u)&&(!v.includes(["http","https","file"],c)||("object"==typeof window&&window&&(n=i(i([],n,!0),[location.host],!1)),v.some(n,function(t){return!!(t instanceof RegExp&&t.test(u))||t===u})))}var L={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},N={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var t=T(this.collect),n=t.count,i=t.ret;return this.collect=null,{collectKey:0===n?null:JSON.stringify(i),collectMode:"white"}},onIgnoreTagAttr:function(t,n,o){return t&&v.indexOf(["href","src"],n)>-1?N.domainWhiteList&&Array.isArray(N.domainWhiteList)&&N.domainWhiteList.length>0&&!O(o,i([],N.domainWhiteList,!0))?"":"".concat(n,'="').concat(Z(o,function(t){var n;null===(n=N.collect)||void 0===n||n.filterProtocol.push(t)}),'"'):t&&(v.indexOf(["style","class","id"],n)>-1||n.indexOf("data-")>-1)?"".concat(n,'="').concat(o,'"'):(N.collect.whiteList[t]=N.collect.whiteList[t]||[],void N.collect.whiteList[t].push(n))},onIgnoreTag:function(t,n){if("style"===t)return n;b(n,function(t,n,i,o){C(B(o).html.replace("/",""),function(t){N.collect.whiteList[i]=N.collect.whiteList[i]||[],N.collect.whiteList[i].push(t)})},p)},whiteList:L,mergeWhiteList:function(t){for(var n,i={},o=0,a=v.keys(L);o<a.length;o++)i[n=a[o]]=v.from(L[n]);for(var s=0,c=v.keys(t);s<c.length;s++)i[n=c[s]]=n in L?L[n].concat(t[n]):v.from(t[n]);return i},setWhiteList:function(t){for(var n=0,i=v.keys(t);n<i.length;n++){var o=i[n];this.whiteList[o]=o in L?L[o].concat(t[o]):v.from(t[o])}}};try{var M={},V="merge";v.includes(V,"override")&&(N.whiteList=M.whiteList),v.includes(V,"merge")&&N.setWhiteList(M.whiteList)}catch(t){}var G=function(t,n){for(var i={},o=0,a=v.keys(t);o<a.length;o++){var s=a[o];Array.isArray(t[s])?i[s]=v.from(t[s]):i[s]=G({},t[s])}for(var c=0,u=v.keys(n);c<u.length;c++)(s=u[c])in t?Array.isArray(t[s])?i[s]=t[s].concat(n[s]):i[s]=G(t[s],n[s]):Array.isArray(n[s])?i[s]=v.from(n[s]):i[s]=G({},n[s]);return i},F={blackList:{a:["folder"],meta:["content"],iframe:["srcdoc"],input:["pattern"],vmlframe:["xmlns"]},blackTags:["script","xml","embed","isindex","object","base","set","handler","animate","payload","import"],blackAttrs:["charset","ns","namespace","formaction","xlink:href","xmlns:xlink","handler","repeat","repeat-start","repeat-end"],blackAttrRegExps:[/^on/],filterList:{param:["value"],video:["poster"],form:["action"]},filterAttrs:["href","src","background","style","dynsrc","lowsrc","content"]};try{var U={};U.blackAttrRegExps&&(U.blackAttrRegExps=U.blackAttrRegExps.map(function(t){return new RegExp(t.toString().slice(1,t.toString().length-1))}));var j="merge";v.includes(j,"override")&&(F=U),v.includes(j,"merge")&&(F=G(F,U))}catch(t){}var W={mode:"black",whiteList:{},blackConfig:F,collect:null,initCollect:function(){W.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var t=T(W.collect),n=t.count,i=t.ret;return W.collect=null,{collectKey:0===n?null:JSON.stringify(i),collectMode:"black"}},onIgnoreTag:function(t,n){var i;if(!v.includes(F.blackTags,t))return b(n,function(t,n,i,o,a){if(-1!==i.indexOf("/"))return p(o);if(a)return"</".concat(i,">");var s=B(o),c=C(s.html,function(t,n){var o,a=0;if(F.blackList[i]&&v.includes(F.blackList[i],t)&&(W.collect.blackList[i]=W.collect.blackList[i]||[],W.collect.blackList[i].push(t),a++),F.blackAttrRegExps.length&&F.blackAttrRegExps.some(function(n){return n.test(t)})&&v.forEach(F.blackAttrRegExps,function(n){n.test(t)&&(W.collect.blackAttrRegExps.push("".concat(n.toString(),"->").concat(t)),a++)}),F.blackAttrs.length&&v.includes(F.blackAttrs,t)&&(F.blackAttrs.push(t),a++),!a){if(F.filterList&&F.filterList[i]&&v.includes(F.filterList[i],t)){var s=Z(n,function(t){var n;null===(n=W.collect)||void 0===n||n.filterProtocol.push(t)});return s!==n&&(W.collect.filterList[i]=W.collect.filterList[i]||[],W.collect.filterList[i].push(t)),n?"".concat(t,"='").concat(s,"'"):t}return F.filterAttrs&&v.includes(F.filterAttrs,t)?((s=Z(n,function(t){var n;null===(n=W.collect)||void 0===n||n.filterProtocol.push(t)}))!==n&&(null===(o=W.collect)||void 0===o||o.filterAttrs.push(t)),n?"".concat(t,"='").concat(s,"'"):t):n?"".concat(t,"='").concat(n,"'"):t}});return o="<".concat(i),c&&(o+=" ".concat(c)),s.closing&&(o+=" /"),o+=">"},p);null===(i=W.collect)||void 0===i||i.blackTags.push(t)}},H=function(t){var n=t.reportOnly,i=void 0===n||n,o=t.block;return i&&"all"===i?"report":("string"==typeof i&&("true"===i&&(i=!0),"false"===i&&(i=!1)),o?"enforce":i?"report":"enforce")},Y=function(t){return function(i,o,a){if(!i||"string"!=typeof i)return i;var s=o;t===D&&(s=N).initCollect();var c=t(i,s);if(w(c)===w(i))return i;if(!a)return c;var u=a.logType,l=H(a),d=s.removeCollect();return R.report(n(n({type:u,disposition:l},d),{sourceText:_(i),filterText:_(c)})),"enforce"===l?c:i}},X=Y(function(t,n){return void 0===n&&(n={}),n&&n.whiteList||(n.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new E(n).process(t)}),K=Y(D),J=function(t,n,i){var o=[],a=Z(t,function(t){o.push(t)});if(a===t)return t;o=v.from(v.uniq(o));var s=n||i||{};if(!s)return a;var c=s.logType,u=H(i);return R.report({type:c,disposition:u,collectKey:o.join("___"),collectData:JSON.stringify(o),collectMode:"black",sourceText:_(t),filterText:_(a)}),"enforce"===u?a:t},z=S._xssProject||{},Q=S.xssNamespace||{},q="3.0.26",$={FilterXSS:E,version:q,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:X,_filterXSS:K,filterUrl:J,Config:N,BlackConfig:W,project:z,setProjectName:function(t){z[t]=this,S._xssProjectName=t}};Q.douyin_web=$,S.xssNamespace=Q,S.Math&&!S.Math.xssNamespace&&(S.Math.xssNamespace=Q),z[q]=$,S.globalThis=S,S.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:$},S.xss=$,S.isSafeUrl=O,S.isSafeDomain=O,S.isSafeProtocol=x,S._xssProject=z,S._xssProjectName&&(z[S._xssProjectName]=$);var ee=$.setProjectName.bind($);t.BlackConfig=W,t.Config=N,t.FilterXSS=E,t._filterXSS=K,t.filterUrl=J,t.filterXSS=X,t.isSafeDomain=O,t.isSafeProtocol=x,t.isSafeUrl=O,t.project=z,t.setProjectName=ee,t.setXssNamespace=function(t){var n=t.appId,i=t.bid,o=t.region;Q[n]=$;N.bid=i,N.region=o,N.enabled=!0},t.xssNamespace=Q,Object.defineProperty(t,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["10264"],{726949:function(t,n,i){"use strict";function o(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function a(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function s(t,n,i){return n&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,n,i){return(n=f(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function u(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}function l(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?u(Object(i),!0).forEach(function(n){c(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function d(t,n){if(null==t)return{};var i,o,a=function(t,n){if(null==t)return{};var i={};for(var o in t)if(({}).hasOwnProperty.call(t,o)){if(-1!==n.indexOf(o))continue;i[o]=t[o]}return i}(t,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)i=s[o],-1===n.indexOf(i)&&({}).propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}return a}i.d(n,{Ac:function(){return A},Kd:function(){return d},PA:function(){return o},Zj:function(){return l},_x:function(){return c},qH:function(){return s}});function f(t){var n=function(t,n){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:n+""}function A(t){return(A="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)}},74964:function(t,n,i){"use strict";i.d(n,{default:function(){return s}});var o=i(175605),a=i(294784);function s(t){if(t&&t.player){var n=t.player.config.vodLogOpts||{};t.player.vodLogger=new a.Z(t.player,n),t.player.plugins.xgVodLogger=t.player.vodLogger}else this.vodLogger=new a.Z(this,this.config.vodLogOpts||{})}a.Z.TEA_ID=1300,a.Z.Collector=o.Collector,s.pluginName="__xgVodLogger",s.playerConfig={},s.Collector=o.Collector,s.setABSdkVersion=function(t){a.Z.AB_SDK_VERSION=t}},42960:function(t,n,i){"use strict";i.d(n,{Z:function(){return c}}),i(2885);var o=function(){return function(){try{return"undefined"!=typeof localStorage&&"setItem"in window.localStorage&&!!window.localStorage.setItem}catch(t){return!1}}()&&!function(){var t="_localstorage_support_test";try{return window.localStorage.setItem(t,!0),window.localStorage.removeItem(t),!1}catch(t){return!0}}()}(),a=o?window.localStorage:{},s="__xgplayerlogkey",c={set:function(t){try{var n=this.get();n.push(t),a.setItem(s,JSON.stringify(n))}catch(t){}},get:function(){try{var t=a.getItem(s);return t=t?JSON.parse(t):[]}catch(t){return[]}},remove:function(){try{a.removeItem(s)}catch(t){}},clear:function(){try{a.clear()}catch(t){}}}},680932:function(t,n,i){"use strict";i(759943),i(240148)},592211:function(t,n,i){"use strict";i.d(n,{V:function(){return c}});function o(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}i("248385"),i("679308");var a=i("616322"),s=null;function c(t,n){return new Promise(function(i,c){s||(s=new a.Z),s.onmessage=function(t){!n.keepWorkerAlive&&(s.terminate(),s=null),i(t.data)},s.postMessage({type:"cmd",data:function(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?o(Object(i),!0).forEach(function(n){var o,a,s;o=t,a=n,s=i[n],(a=function(t){var n=function(t,n){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:n+""}(a))in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}({type:"perfReport",url:t},n)})})}},671194:function(t,n,i){"use strict";i.d(n,{q9:function(){return f}});var o=i(61072);i(346984),i(705574),i(303846),i(124300),i(162093),i(9498),i(173757),i(248385),i(706056),i(832674),i(905442),i(446336),i(808483),i(840938),i(118438),i(325598),i(92999),i(611067),i(273723),i(724016),i(803903),i(214604),i(901250),i(755006),i(437048),i(488336),i(825666),i(177162),i(286633),i(943281),i(810658),i(82726),i(224727);var a=i(662439),s=i(585104),c=i(461449),u="vvcC";function l(t,n){return n?t.readToUint8(n).slice():new Uint8Array}var d={id:"bvc2",kind:"video",codecType:u,sampleEntries:["bvc2"],configBoxes:["bv2C"],codecStringPrefixes:["bvc2."],trackConfigKey:"vvcC",sampleEntryTrackKey:"vvccSampleEntryType",parseConfigBox:function(t){return function(t){var n,i,o,c,u,d,f,A=s.J.fromUint8(t),h=A.read(1),g=a.A.fromByte(A,1);g.read(5);var p=g.read(2),v=g.read(1),y=1,m={};if(v){var _=a.A.fromByte(A,2);o=_.read(2),c=_.read(3),y=_.read(3),i=_.read(2),_.read(6),m=function(t,n){var i=a.A.fromByte(t,2);i.read(2);var o=i.read(6),s=i.read(7),c=i.read(1),u=t.read(1),l=a.A.fromByte(t,1),d=l.read(1),f=l.read(1),A=new Uint8Array(o);if(o){for(var h=0;h<o-1;h++){var g=l.read(6),p=(l=a.A.fromByte(t,1)).read(2);A[h]=g<<2|p}A[o-1]=l.read(6)}else l.read(6);var v=[];if(n>1){for(var y=a.A.fromByte(t,1),m=0,_=n-2;_>=0;--_)m|=y.read(1)<<_;for(var I=n;I<=8&&n>1;++I)y.read(1);for(var b=n-2;b>=0;--b)m&1<<b&&(v[b]=t.read(1))}var C=t.read(1),k=[];if(C)for(var w=0;w<C;w++)k.push(t.readInt(4));return{generalProfileIdc:s,generalTierFlag:c,generalLevelIdc:u,ptlFrameOnlyConstraintFlag:d,ptlMultilayerEnabledFlag:f,generalConstraintInfo:A,subLayerLevelIdc:v,generalSubProfileIdc:k,ptlNumSubProfiles:C,numBytesConstraintInfo:o}}(A,y),n=A.read(2),u=A.read(2),d=A.read(2),f=A.read(2)}var I=function(t){for(var n=t.read(1),i=[],o=[],s=[],c=0;c<n;c++){var u=a.A.fromByte(t,1);u.read(1),u.read(2);var d=u.read(5),f=1;13!==d&&12!==d&&(f=t.read(2));for(var A=0;A<f;A++){var h=t.read(2);switch(d){case 14:i.push(l(t,h));break;case 15:o.push(l(t,h));break;case 16:s.push(l(t,h));break;default:l(t,h)}}}return{numOfArrays:n,vps:i,sps:o,pps:s,spsParsed:null}}(A);return{data:t,configurationVersion:h,codec:function(t,n){var i=t||"bvc2";if(!n)return"".concat(i,".1.L93");var o=n.generalProfileIdc||1,a=n.generalTierFlag?"H":"L",s=n.generalLevelIdc||93;return"".concat(i,".").concat(o,".").concat(a).concat(s)}("bvc2",m),sampleEntryType:"bvc2",nalUnitSize:p+1,ptlPresentFlag:v,olsIdx:n,numSublayers:y,constantFrameRate:i,chromaFormatIdc:o,bitDepthLumaMinus8:c,ptlRecord:m,width:u,height:d,sampleRate:f,numOfArrays:I.numOfArrays,vps:I.vps,sps:I.sps,pps:I.pps,spsParsed:I.spsParsed}}(t.data)},applyTrackConfig:function(t){var n,i=t.track,o=t.entry,a=t.config;i.codecType=u,i.codec=a.codec,i.sps=a.sps,i.pps=a.pps,i.vps=a.vps,i.vvcC=a.data,a.nalUnitSize&&(i.nalUnitSize=a.nalUnitSize),i.vvccSampleEntryType="encv"===o.type?(null===(n=o.sinf)||void 0===n||null===(n=n.frma)||void 0===n?void 0:n.data_format)||a.sampleEntryType||"bvc2":o.type},getSampleEntryType:function(){return"bvc2"},getConfigBoxType:function(){return"bv2C"},buildConfigBox:function(t){var n=t.track,i=t.MP4;return i.box(i.type("bv2C"),new Uint8Array(n.vvcC))},buildFtyp:function(t){var n=t.MP4;return n.box(n.type("ftyp"),new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,98,118,99,50]))},markSample:function(t){var n=t.sample,i=function(t){var n=(t||[]).map(function(t){return t&&t.byteLength>1?(248&t[1])>>3:void 0}).filter(function(t){return"number"==typeof t});if(n.length){var i="";return n.includes(7)||n.includes(8)?i="idr":n.includes(9)&&(i="cra"),{nalTypes:n,randomAccessType:i,rasl:n.includes(3)}}}(n.units);i&&(n.sideData=(0,o.Zj)((0,o.Zj)({},n.sideData||{}),{},{vvcNalInfo:i}))}};function f(){return"function"==typeof c.NI&&((0,c.NI)(d),!0)}},84216:function(t,n,i){"use strict";i.d(n,{T:function(){return a}}),i(941533),i(232070),i(248385);var o=[{range:[0,90],size:614400},{range:[90,120],size:819200},{range:[120,Number.MAX_VALUE],size:1024e3}];function a(t,n,i){var a=i>51200?Math.min(i,n):n;if(!t)return a||o[0].size;var s=o.find(function(n){return t>=n.range[0]&&t<n.range[1]});return s&&(a=Math.min(s.size,i>0?i:n)),a||o[0].size}},129674:function(t,n,i){"use strict";i.d(n,{He:function(){return c},Xz:function(){return s},xj:function(){return a}}),i(2885),i(248385),i(663030);var o={"x-cache":"x_cache","x-response-sinfo":"server_ip","x-response-cinfo":"x-response-cinfo","content-range":"content-range","content-length":"content-length","content-type":"content-type"};function a(t){var n={};return Object.keys(o).forEach(function(i){var a,s=null==t||null===(a=t.get)||void 0===a?void 0:a.call(t,i);s&&(n[o[i]]=s)}),n}function s(t){var n,i=o["content-range"],a=null==t||null===(n=t.get)||void 0===n?void 0:n.call(t,i);if(a){var s=a.split("/");if(Array.isArray(s)&&2===s.length)return s[1]}return null}function c(t){var n,i=o["content-length"];return(null==t||null===(n=t.get)||void 0===n?void 0:n.call(t,i))||null}},731751:function(t,n,i){"use strict";i.d(n,{Ck:function(){return m},Ef:function(){return Z},Hy:function(){return M},Im:function(){return N},Kc:function(){return w},Lc:function(){return u},OU:function(){return c},U2:function(){return C},VC:function(){return a},WV:function(){return P},WX:function(){return g},X4:function(){return T},Y2:function(){return f},Y9:function(){return k},Z6:function(){return s},_6:function(){return p},_R:function(){return x},a1:function(){return L},c9:function(){return S},h4:function(){return h},i4:function(){return y},iS:function(){return B},kI:function(){return A},mD:function(){return _},ne:function(){return d},of:function(){return O},sp:function(){return D},uD:function(){return R},vG:function(){return o},vL:function(){return v},vp:function(){return l},wL:function(){return I},wW:function(){return E},x3:function(){return b}});var o=1e3,a=50,s=1,c="danger_d_speed",u=5e9,l=300,d={"x-cache":"x_cache","x-response-sinfo":"server_ip"},f={"360p":.45,"480p":.75,"720p":1.6,"1080p":5,"2k":7.5,"4k":12.5},A="player_start",h="wasm_start",g="wasm_ready",p="init_finished",v="core_start",y="start_play",m="error_handler",_="error_catching",I="error_no_mp4opts",b="error_catch_finished",C="next_start",k="next_finished",w={NO_START:0,GOING:1,APPEND:2},E="media_exception",S="mp4_source_exception",R="task_request_expired",T="task_request_error",D={MAIN:"0",BACK:"1"},B={INIT:"init",ERR:"error"},P="currentDashType",x={CDN:"cdn",PCDN:"pcdn"},Z=2,O="buffer_control",L={WAITING:"waiting",PLAYING:"playing"},N={BUFFER_CONTROLS:"buffer_control"},M="mse_not_open_count"},899129:function(t,n,i){"use strict";i.d(n,{Z:function(){return G}});var o,a,s,c,u,l,d,f,A=i(648955);i(346984),i(705574),i(303846),i(124300),i(503e3),i(173757),i(232070),i(932651),i(2885),i(248385),i(679308),i(88856),i(414931),i(706056),i(591111),i(832674),i(905442),i(446336),i(808483),i(840938),i(118438),i(325598),i(92999),i(611067),i(273723),i(724016),i(803903),i(214604),i(901250),i(755006),i(437048),i(488336),i(825666),i(177162),i(286633),i(943281),i(810658),i(82726),i(224727),i(663030),i(490629),i(656562),i(520995),i(992871);var h=i(358506),g=i.n(h),p=i(167417),v=i.n(p),y=i(659830),m=i(608215),_=i(737178),I=i(982143),b=i(372196),C=i(525231),k=i(309324),w=i(874768),E=i(521323),S=i(731751),R=i(405762),T=i(298757),D=i(853906),B=i(731588),P=i(391834),x=i(358452),Z=i(639803),O=i(857626),L=i(373974),N=i(333777),M=y.EVENT_EME.CDM_LICENSE_ERROR,V=y.EVENT_EME.CDM_LICENSE_SUCCESS;let G=(0,A.qH)(function t(n,i,o){var a,s=this;(0,A.PA)(this,t),g()(this),this._pluginInst=i,this.__dash__=o;var c=i.config,u=i.player,l=i._kernal;this.kernal=l,this.mse=void 0,this.config=c,this.player=u,this.url=n,this.inited=!1,this.loadingTasks=[],this.keyValue=void 0,this.dynamic_video=this.config.dashOpts.dynamic_video,this.useEME=this.config.useEME,this.intertrustServerURL=this.config.intertrustServerURL,this.taskErrorList=[],this.defaultDefinition=this.config.defaultDefinition,this.selectedIdx=0,this.getLicenseUrl=this.config.getLicenseUrl,this.egleIds={},this._outChangeUrlRetryMedia={video:0,audio:0},this._resetOptionDataLenInfo(),this._initStates={emitEncrypt:!1};var d=this.config,f=d.loader,h=d.reqOptions,p=d.vid,v=d.dynamicTimeoutIns,y=d.dynamicTimeoutAudioIns,m=d.changeUrlRetry;this.loader=new _.Z(Object.assign({openLog:E.qu,vid:p,dynamicTimeoutIns:v,dynamicTimeoutAudioIns:y,changeUrlRetry:m},f,h),this._pluginInst.preloadManager),this.loader.on(I.K.REAL_TIME_SPEED,function(t){s.player.emit(I.K.REAL_TIME_SPEED,t)}),this.loader.on("networkError",function(t){s.player.emit("networkError",t)}),this._vTrack=null,this._aTrack=null,this._onLoadingItems=[],this._videoEncryption=!1,this._audioEncryption=!1;var b=this.config.duration||this.config.dashOpts.video_duration||this.config.dashOpts.dynamic_video.video_duration;this.config.duration=b;var C=(null===(a=this.config.dashOpts)||void 0===a||null===(a=a.dynamic_video)||void 0===a?void 0:a.dynamic_type)==="segment_base";this._vid=c.vid;var k=this.player.config.uri||c.vid;this._pcdnScv=new O.Z({config:c,isOpenPCDN:C,videoDuration:b,uri:k},this.player),this._dynamicBufferService=new x.Z(this.player,0,b,this.config.adaptRange),this._audioMetaReadyPromise=null,this._videoMetaReadyPromise=null,this._aduioMetaReady=!1,this._videoMetaReady=!1,this._resetProgressInfos(),this._appendBufferDelta={video:this._genEmptyBufferDelta(),audio:this._genEmptyBufferDelta()},this._lastAppendBufferEnd={video:{prevRangeEnd:0,prevItem:null},audio:{prevRangeEnd:0,prevItem:null}},this._preloadSegDatas={video:[],audio:[]},this._allCacheKeys=[],this._pendingAppnedDatas={video:[],audio:[]},this._extDataCache={video:null,audio:null},this._lastVideoBufferAppendEnd=0,this._pcdnDelta={video:{index:0,isPCDNTimeout:!1,pcdnTimeoutDelta:0},audio:{index:0,isPCDNTimeout:!1,pcdnTimeoutDelta:0}}},[{key:"_genEmptyBufferDelta",value:function(){return{delta:0,item:null,requestDelta:0,isPCDN:!1}}},{key:"_resetProgressInfos",value:function(){this._progressInfos={video:this._genEmptyProgressInfo(),audio:this._genEmptyProgressInfo()}}},{key:"_genEmptyProgressInfo",value:function(){return{data:new Uint8Array(0),range:null,extData:null,done:!1}}},{key:"cachePreloadData",value:function(){var t;null===(t=this.loader)||void 0===t||t.cachePreloadData({vid:this._vid,codecType:this.mpd.getCodecType()},this._progressInfos),this._progressInfos.video.done&&(this._progressInfos.video=this._genEmptyProgressInfo()),this._progressInfos.audio.done&&(this._progressInfos.audio=this._genEmptyProgressInfo())}},{key:"_updateLoadInfo",value:function(t,n){!this.loadInfo&&(this.loadInfo={}),!this.loadInfo[t]&&(this.loadInfo[t]={},this.loadInfo[t].size=0),this.loadInfo[t].size+=n}},{key:"_resetOptionDataLenInfo",value:function(){this._optionDataLenInfo={video:(0,A._x)((0,A._x)({},P.Lj.PCDN,{size:0}),P.Lj.CDN,{size:0}),audio:(0,A._x)((0,A._x)({},P.Lj.PCDN,{size:0}),P.Lj.CDN,{size:0})}}},{key:"getPCDNInOutBuffer",value:function(){var t;return null===(t=this._pcdnScv)||void 0===t?void 0:t.getPCDNInOUtBuffer()}},{key:"updateDynamicBufferServiceBitrate",value:function(t){this._dynamicBufferService.updateBitrate(t)}},{key:"getAdaptCacheBuffer",value:function(t){return this._dynamicBufferService.getAdaptCacheBuffer(t)}},{key:"pushDynamicBufferServiceRes",value:function(t){this._dynamicBufferService.push(t)}},{key:"popDynamicBufferServiceRes",value:function(){var t;return(null===(t=this._dynamicBufferService)||void 0===t?void 0:t.pop())||{}}},{key:"getPCDNTraceInfo",value:function(){var t;return null===(t=this._pcdnScv)||void 0===t?void 0:t.getPCDNTraceInfo()}},{key:"_abortAndRemove",value:(o=(0,A.x)((0,A.l5)().mark(function t(n,i,o){var a,s,c,u,l,d,f,h,g=arguments;return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=!(g.length>3)||void 0===g[3]||g[3],this.config){t.next=3;break}return t.abrupt("return");case 3:if(!s){t.next=6;break}return t.next=6,null===(c=this.loader)||void 0===c?void 0:c.cancelTasks(n,!0);case 6:u=(null===(a=this.player)||void 0===a?void 0:a.currentTime)||-1,l=i.startRaw<u&&u<i.endRaw,this.config.usePCDNOpt||l?this._appendBufferDelta&&(h=this._appendBufferDelta[n]).range&&i.range&&i.range[0]<h.range[1]&&h.range[1]<i.range[1]&&(i.extRange=[h.range[1],i.range[1]],this._extDataCache[n]=i,E.ZP.log("_abortAndRemove",n,"start",i.startRaw,"end",i.endRaw,"extRange",JSON.stringify(i.extRange),"range",JSON.stringify(i.range),o),this._appendBufferDelta[n]=this._genEmptyBufferDelta()):(i.isSatisfied&&(E.ZP.log("_abortAndRemove isSatisfied abort and clear"),null===(d=this.__dash__)||void 0===d||d.abort(n),null===(f=this.__dash__)||void 0===f||f.clearBufferDirect(n,i)),this.updateItemState(i),E.ZP.log("_abortAndRemove",n,"start",i.startRaw,"end",i.endRaw,"from",o));case 10:case"end":return t.stop()}},t,this)})),function(t,n,i){return o.apply(this,arguments)})},{key:"_checkBuffer",value:function(t,n){for(var i=!1,o=0;o<n.length;o++){var a=n.start(o),s=n.end(o);if(a<=t&&t<=s-1){i=!0;break}}return{enoughBuffer:i}}},{key:"onTimeUpdate",value:function(){if(!this._appendBufferDelta)return;var t=this.config,n=t.usePCDNProgressiveCheck,i=t.progressiveTimeout,o=t.useCDNProgressiveCheck,a=t.usePCDNOpt,s=t.pcdnDelays;if(!!n||!!o)for(var c=Object.keys(this._appendBufferDelta),u=R.Z.nowTime(),l=0;l<c.length;l++){var d=c[l],f=this._appendBufferDelta[d],A=f.delta,h=f.requestDelta,g=f.item,p=f.isPCDN,v=!1,y="";if(n&&p&&(v=!0,y="PCDN"),o&&!p&&(v=!0,y="CDN"),g&&v){var m=this.player.playbackRate,_=A>0&&u-A>i,I=h>0&&u-h>(g.end-g.start)*1e3/m,b=!1;a&&p&&(y="PCDN_stall",this.player.getBufferedRange(this.player.buffered)[1]-this.player.currentTime<2&&(b=!0)),(_||I||b)&&(E.ZP.log("_abortAndRemove PCDN request cancel, progressiveTimeout",_,"delta",A,"deltaTime",u-A,"requestTimeout",I,"requestDelta",h,"requestDeltaTime",u-h,"willStall",b),this.player&&this.player.emit("log",{type:"oneevent",end_type:_?"progressive_timeout_".concat(y):"pcdn_request_timeout_".concat(y)}),a&&p&&(this._pcdnDelta[d].isPCDNTimeout=!0,this._pcdnDelta[d].pcdnTimeoutDelta=u,this._pcdnDelta[d].index++,this._pcdnDelta[d].index>s.length&&(this._pcdnDelta[d].index=s.length-1)),this._abortAndRemove(d,g,"pcdn onTimeUpdate",!0))}}}},{key:"_emitAbrNextSegmentPredictEvt",value:function(t){var n;null===(n=this.player)||void 0===n||n.emit(N._c.NEXT_SEGMENT_PREDICT,t)}},{key:"getData",value:(a=(0,A.x)((0,A.l5)().mark(function t(n){var i=this,o,a,s,c,u,l,d,f,h,g,p,v,y,m,_,I,k,w,E,S,T,D,B,x,Z=arguments;return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=Z.length>1&&void 0!==Z[1]?Z[1]:[],a=Z.length>2?Z[2]:void 0,s=Z.length>3&&void 0!==Z[3]?Z[3]:{},c=Z.length>4&&void 0!==Z[4]&&Z[4],u=Z.length>5&&void 0!==Z[5]?Z[5]:null,l=Z.length>6&&void 0!==Z[6]?Z[6]:null,d=Z.length>7&&void 0!==Z[7]?Z[7]:null,f=Z.length>8&&void 0!==Z[8]?Z[8]:null,h=s.isPCDN?P.Lj.PCDN:P.Lj.CDN,s.url=n,t.next=13,this.loader.load(a,n,o,s,c,u?function(t,n,c,l){var d=h;if(!!i._optionDataLenInfo){var f=i._optionDataLenInfo[a][d];if(t&&t.byteLength&&(f.size+=t.byteLength,f.range=o,f.extData=s),n&&!c.fromCache){var A=o[1]-o[0]+1,g=Date.now()-c.st;i._emitPrfDataSizeEvent(h,A,a,o,s,0,g),f.size=0,f.range=null,f.extData=null}if(s.checkPreload&&!c.fromCache&&i._progressInfos){var p=i._progressInfos[a];p.data=(0,b.gJ)(p.data,t),p.extData=s,null===p.range?p.range=c.range:p.range[1]=Math.min((null==o?void 0:o[1])||1/0,c.range[1]),p.done=n,n&&i.cachePreloadData()}n&&i.config.usePCDNOpt&&(i._pcdnDelta[a].index--,i._pcdnDelta[a].index<0&&(i._pcdnDelta[a].index=0)),n&&c.fromCache&&(s.fromCache=!0),u(t,n,c,l,s)}}:null,l,d,f);case 13:if(!((g=t.sent)&&g.res instanceof ArrayBuffer)){t.next=20;break}return p=g.res,v=g.headers,y=g.status,m=g.fromCache,_=g.cacheKey,I=g.orgDefinition,k=g.duration,w=g.rtt,m?this.emitPreloadHit(_):this._emitPrfDataSizeEvent(h,g.res.byteLength,a,o,s,0,g.costTime,w),t.abrupt("return",{res:p,headers:v,status:y,fromCache:m,orgDefinition:I,duration:k});case 20:g&&"error"===g.res&&(B=this._isAbort(null==g?void 0:g.error),x=(null==g||null===(E=g.error)||void 0===E?void 0:E.isTimeout)===!0,(!B||x)&&this.player&&this.player.emit("source_error",{host:R.Z.getHostFromUrl(null==g?void 0:g.url),src:null==g?void 0:g.url,errorCode:x?C.WE[C.wb.NETWORK_TIMEOUT]:(null==g?void 0:g.status)||"networkError",message:x?"timeout":null==g||null===(S=g.error)||void 0===S?void 0:S.message,range:o,headers:null==g?void 0:g.header,error:{msg:null==g||null===(T=g.error)||void 0===T?void 0:T.message,stack:null==g||null===(D=g.error)||void 0===D?void 0:D.stack},mediaType:a}));case 21:return t.abrupt("return",g);case 22:case"end":return t.stop()}},t,this)})),function(t){return a.apply(this,arguments)})},{key:"_emitPrfDataSizeEvent",value:function(t,n,i,o,a){var s,c,u,l,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,f=arguments.length>6&&void 0!==arguments[6]?arguments[6]:-1,h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,g=_.Z.currentSpeed,p=a.fileId,v=a.definition,y=a.adaptItemParam,m=a.bitrate,I=a.first_gop,b=a.segmentDuration,C=a.start,k=a.end,w=a.url,E=(null===(s=this.player)||void 0===s?void 0:s.config.uri)||(null===(c=this.config)||void 0===c?void 0:c.vid),S="cdn";t===P.Lj.CDN?null===(u=this.player)||void 0===u||u.emit("prf_data_size",(0,A.Zj)((0,A.Zj)({vid:this._vid,task_type:1,cdn_size:n,mediaType:i,range:JSON.stringify(o),fileid:p,definition:v,cdn_speed:g},y),{},{emitType:d,bitrate:m,format:"DASH",uri:E,first_gop:I,segmentDuration:b,costTime:f,start:C,end:k,url:w,rtt:h})):(S="pcdn",null===(l=this.player)||void 0===l||l.emit("prf_data_size",(0,A.Zj)((0,A.Zj)({vid:this._vid,task_type:1,pcdn_size:n,mediaType:i,range:JSON.stringify(o),fileid:p,definition:v,pcdn_speed:g},y),{},{emitType:d,bitrate:m,format:"DASH",uri:E,first_gop:I,segmentDuration:b,costTime:f,start:C,end:k,url:w,rtt:h}))),this._updateLoadInfo(S,n)}},{key:"_getCryptInfos",value:function(){var t="",n="";if(this.dynamic_video.dynamic_video_list&&this.dynamic_video.dynamic_video_list.length>0){for(var i=0;i<this.dynamic_video.dynamic_video_list.length;i++)if(this.dynamic_video.dynamic_video_list[i].kid){t=this.dynamic_video.dynamic_video_list[i].kid,n=this.dynamic_video.dynamic_video_list[i].spade_a,this._videoEncryption=!0;break}}else if(this.dynamic_video.dynamic_audio_list){for(var o=0;o<this.dynamic_video.dynamic_audio_list.length;o++)if(this.dynamic_video.dynamic_audio_list[o].kid){t=this.dynamic_video.dynamic_audio_list[o].kid,n=this.dynamic_video.dynamic_audio_list[o].spade_a,this._audioEncryption=!0;break}}return{keyId:t,spade_a:n}}},{key:"init",value:(s=(0,A.x)((0,A.l5)().mark(function t(n){var i,o,a,s,c,u,l,d;return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._hasDestroyed){t.next=2;break}return t.abrupt("return");case 2:if(this._initStartMs=Date.now(),this.kernal.setNodeTime("initdash"),o=(i=this._getCryptInfos()).keyId,a=i.spade_a,s=this,s.config.usePlaySpade&&(s.config.secretKey=a),u=(c=s.config).secretKey,l=c.drmKeyToken,d=c.playDomain,!(o||u||l&&d)){t.next=18;break}return t.prev=10,t.next=13,this._initSecret(o);case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10);case 18:return t.abrupt("return",s.initDash(n));case 19:case"end":return t.stop()}},t,this,[[10,15]])})),function(t){return s.apply(this,arguments)})},{key:"_initSecret",value:function(t){var n=this,i=new T.XK,o=this.config,a=o.secretKey,s=o.drmKeyToken,c=o.playDomain,u=o.useUnionInfoDRM,l=o.keyTokenExpiredDuration,d=o.sessionId,f=o.drmType;if(this.player.plugins.drm)return i.resolve(),i;var A=new y.XGSecretKey({kid:t,getLicenseUrl:this.getLicenseUrl,secretKey:a,drmType:f,vid:this.config.vid||"",useUnionInfoDRM:u,drmKeyToken:s||this.config.keyToken,keyTokenExpiredDuration:l,playDomain:c,sessionId:d,useEME:this.useEME,intertrustServerURL:this.config.intertrustServerURL});return this._secret=A,A.getLicenseSecret().then(function(t){if(!n._pluginInst){E.ZP.log("getLicense callback destroy"),i.reject("getLicense callback destroy");return}n.config.dashOpts&&n.useEME?(n._initEME(),null==A||A.setOptions(),null==A||A.setupEME(n.player.video)):(n.__dash__.crypto&&n.__dash__.crypto.updateValue(t),n.keyValue=!0),E.ZP.encrypt("getLicense resolve"),i.resolve()}).catch(function(t){var o;E.ZP.log("DRM_ERROR",t),i.reject("catch error"),n._hasDestroyed||n.emit("error",new w.Z(C.wb.DRM,(null===(o=t.error)||void 0===o?void 0:o.code)||C.wb.SUB_TYPES.CUSTOM_LICENSE,{url:n.getLicenseUrl,httpCode:t.status,message:"CUSTOM_LICENSE_ERROR"}))}),i}},{key:"_initEME",value:function(){var t=this;if(!(0,y.checkEMEValid)()){this.player.errorHandler(new w.Z(C.wb.MEDIA,C.wb.SUB_TYPES.EME_HIJACK,{message:"EME API被劫持"})),this.__dash__.destroy();return}this._secret.on(M,function(n){t.player&&t.player.emit("log",(0,A.Zj)({type:"oneevent",end_type:M,ua:navigator.userAgent},n)),E.ZP.log("EME CDM_LICENSE_ERROR"),t.player.errorHandler(new w.Z(C.wb.DRM,C.wb.SUB_TYPES.LICENSE,{message:"DRM接口失败".concat(n.data)}))}),this._secret.on(V,function(n){t.player&&t.player.emit("log",(0,A.Zj)({type:"oneevent",end_type:V,ua:navigator.userAgent},n)),E.ZP.log("EME CDM_LICENSE_SUCCESS")})}},{key:"_initDefaultDefinition",value:function(){var t=this,n=this.config,i=this.mpd.mediaList.video,o=n.defaultDefinition?n.defaultDefinition.toString():null,a=this.player.preloader&&this.player.preloader.getPreloadMetaByVid(this.config.vid),s=!1,c=null;if(a&&a.definition){o=a.definition,c=a.fileId,s=!0;var u=this._pluginInst.preloadManager;if(u&&u.supportSync()){var l=this.mpd.getCodecType(),d=u.getPreLoadDataSync({vid:this._vid,codecType:l,vtype:L.l0.DASH});delete d.cacheKey,delete d.loadInfo,this._allCacheKeys=Object.keys(d),this._allCacheKeys.forEach(function(n){var i,o,a,s=d[n];s&&!s.isInitSegment&&(null===(i=s.range)||void 0===i?void 0:i.length)>0&&(null===(o=s.range)||void 0===o?void 0:o[1])<s.rangeEnd&&(null===(a=t._preloadSegDatas[s.mediaType])||void 0===a||a.push(s))})}E.ZP.log("dashDefinition",this.config.vid,"hasPreload",o)}var f=this.player.config;if(f.userSelectDefinition&&f.focusUserDefinition&&(o!==f.userSelectDefinition.toString()&&s&&(s=!1,E.ZP.log("dashDefinition",this.config.vid,"hasPreload",o,"change to userSelectDefinition",f.userSelectDefinition)),o=f.userSelectDefinition.toString()),this._pluginInst.bitRateAdapter&&!s){var A=this.player?f.userSelectDefinition:null,h=R.Z.getBitrateItem(this.config.dashOpts.dynamic_video,this._pluginInst.bitRateAdapter,this.config.dashOpts.dynamic_video.duration,A);if(E.ZP.log("[dashDefinition] onReady BitRateAdapter",this.config.vid,"item",h),h){o=h.definition.toString();var g=this.config.dashOpts.dynamic_video.dynamic_video_list,p=null==g?void 0:g.filter(function(t){return t.definition===h.definition})[0];p&&(p.fromType=h.fromType,p.orgDefinition=h.orgDefinition,p.type=h.type)}}E.ZP.log("[dashDefinition] onReady",this.config.vid,"video definition",o);var v=!1;o&&i.forEach(function(n,a){n.definition.toString()===o.toString()&&(!c||n.fileId===c.toString())&&(t.config.defaultDefinition=o.toString(),i.selectedIdx=a,v=!0)}),!v&&(i.selectedIdx=0),this.selectAudio()}},{key:"selectAudio",value:function(t){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=this.mpd.mediaList.video,o=this.mpd.mediaList.audio,a=(0,Z.Ft)(i,o,t),s=a;return -1===s&&(s=0),n&&(o.selectedIdx=s),E.ZP.log(this._vid,"audio definition",o.selectedIdx),a}},{key:"_initMSE",value:function(){var t,n,i,o=this;this.kernal.setNodeTime("initmse_sbopen");var a=Date.now(),s=this.mpd.mediaList.audio,c=this.mpd.mediaList.video,u={};if(this._hasAudio&&(u[k.d1.AUDIO]={mimeType:"audio/mp4",codec:'audio/mp4; codecs="'.concat(s[s.selectedIdx].codecs,'"')}),this._hasVideo&&(u[k.d1.VIDEO]={mimeType:"video/mp4",codec:'video/mp4; codecs="'.concat(c[c.selectedIdx].codecs,'"')}),this._hasVideo&&this._pluginInst.softVideo){var l=this.player.video;l.setPlayMode&&l.setPlayMode("VOD"),(t=l).url=URL.createObjectURL(new Blob),n=Promise.resolve()}else{if(this._secret&&!(0,y.checkMSEValid)()){this.player.errorHandler(new w.Z(C.wb.MEDIA,C.wb.SUB_TYPES.MSE_HIJACK,{message:"MSE被劫持"}));return}n=(t=new k.d1(void 0,{openLog:E.qu})).bindMedia(this.player.video),null===(i=this.player)||void 0===i||i.emit("mseAttaching"),n.then(function(){var n;if((0,Z.iR)(S.Hy,0),!o._pluginInst){E.ZP.log("open promise ready destroy");return}null===(n=o.player)||void 0===n||n.emit("mseAttached"),o.kernal.setNodeTime("initmse_sbopendone"),o._mseOpenDone=!0,E.ZP.log(o._vid,"open promise ready"),o._pluginInst.info({msg:"mse init success",name:"mseInit",startMs:a,profile:!0});try{for(var i=Object.keys(u),s=0;s<i.length;s++){var c=i[s];t.createSource(c,u[c].codec)}}catch(t){E.ZP.log("MSE MSE_MEDIA_TYPES_NOT_SUPPORTED",JSON.stringify({msg:t.message})),o&&o.player&&o.player.errorHandler(new w.Z(C.wb.MEDIA,C.wb.SUB_TYPES.MSE_ADD_SB,{line:329,message:"mse init fail"})),E.ZP.log("mse init error",t,"player destroyed ? ",!(o&&o.player))}}).catch(function(t){})}return this.mse=t,n}},{key:"_addBuffer",value:function(t,n){var i=this,o=this;if(this._hasDestroyed){E.ZP.log("addBuffer destroy");return}if(!this.mpd){E.ZP.log("addBuffer mpd empty");return}var a=this.mpd.mediaList[n],s=this.mpd.mediaList[n];if(s.length<1||!s[s.selectedIdx]||!s[s.selectedIdx].mimeType)return;if(!t.initSegmentRes){E.ZP.log("initSegment null, task request error, stop"),o.emit("error",new w.Z(C.wb.RUNTIME,w.Z.SEG_PARSE_ERROR,{message:"wrapperData.initSegmentRes is null"}));return}if(!!o.__dash__)o.__dash__._appendInitSegment(n,t,s.selectedIdx).then(function(){var t,s,c="video"===n?i._videoMetaReadyPromise:i._audioMetaReadyPromise;c&&(i.kernal.setNodeTime("initSegment ".concat(n," append")),c.resolve()),o.inited=!0;var u=a.selectedIdx;a.length>0&&(a[u].encrypted||a[u].kid)&&!i._hasEmitEncrypt&&(i._hasEmitEncrypt=!0,o._secret&&o._secret.emit(y.EVENT_EME.ENCRYPTED),null===(t=o.player)||void 0===t||t.emit(y.EVENT_EME.ENCRYPTED)),"vod"===o.type&&(null===(s=o.__dash__)||void 0===s||s.loadData(0),o.emit("start_play"))}).catch(function(t){if(!i._hasCatchAppendError){var n;i._hasCatchAppendError=!0,null===(n=o.player)||void 0===n||n.errorHandler(new w.Z(C.wb.MEDIA,C.wb.SUB_TYPES.MSE_APPEND_BUFFER,{line:329,message:"mse append error ".concat(t.message?t.message:t)}))}})}},{key:"appendFirstSegment",value:function(t){var n=this,i=this._pendingAppnedDatas[t];if(i.length>0){for(var o=[],a=0;a<i.length;a++)!function(){var s=i[a];n.mse.isOpened?n.appendSegment(t,s.res,s.item,{},s.extData,!1,s.done):n._openPromise.then(function(){n.appendSegment(t,s.res,s.item,{},s.extData,!1,s.done)}),o.push(s.range)}();this._pendingAppnedDatas[t]=[],E.ZP.log("appendFirstSegment",t,"ranges",o)}if(!("video"===t?this._videoMetaReady:this._audioMetaReady)){var s=function(){"video"===t?n._videoMetaReady=!0:n._audioMetaReady=!0};this.mse.isOpened?s():this._openPromise.then(function(){s()})}}},{key:"initDash",value:(c=(0,A.x)((0,A.l5)().mark(function t(n){var i,o;return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this._pluginInst){t.next=3;break}return E.ZP.log("dash.js init dash destroy"),t.abrupt("return");case 3:return this._pluginInst.info({msg:"dash init",data:"dash init",startMs:this._initStartMs,profile:!0}),this.kernal.setNodeTime("initdashdone"),i=this,this.kernal.setNodeTime("initmpd"),o=new m.Z(n,i.config.dashOpts,i),i.mpd=o,o.init(),t.next=12,o.readyPromise;case 12:return this._onMPDReady(o),t.abrupt("return",this.mse);case 14:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"_createMoofSegment",value:function(t,n){var i=n.mediaList[t],o=i[i.selectedIdx].firstMoofMdatRange;if(o){E.ZP.log(null===(a=this.config)||void 0===a?void 0:a.vid,"createMoofSegment, mediaType",t);var a,s,c,u=new T.XK;t===k.d1.VIDEO?this._videoMetaReadyPromise=u:this._audioMetaReadyPromise=u;var l=i[i.selectedIdx],d={codecType:l.codecType,range:o,url:l.initSegment,idx:1,start:0,startRaw:0,moof:!0,checkPreload:!l.isExtra,mediaType:t,selectedIdx:i.selectedIdx,fileId:l.fileId,vid:this.config.vid,vtype:L.l0.DASH,bitrate:l.bandwidth,definition:l.definition},f=R.Z.generateRequestUniqueKey((0,A.Zj)((0,A.Zj)({},d),{},{range:o}));this._allCacheKeys.includes(f)?(E.ZP.log(null===(c=this.config)||void 0===c?void 0:c.vid,"createMoofSegment mediaType",t,"hit cache, no moof request, use seq requset"),this._resetMoofSegmentDownloadState(t)):(E.ZP.log(null===(s=this.config)||void 0===s?void 0:s.vid,"createMoofSegment mediaType",t,"no cache, request moof request"),this._makeSegmentRequestByItem(d,t,{},!1,u))}}},{key:"_resetMoofSegmentDownloadState",value:function(t){var n=this.mpd;if(n&&n.mediaList){var i,o=n.mediaList[t];o[o.selectedIdx].cancelFirstSegmentReq=!0;var a=null===(i=o[o.selectedIdx].mediaSegments)||void 0===i?void 0:i[0];a&&(a.downloaded=S.Kc.NO_START)}}},{key:"_onMPDReady",value:function(t){var n=this,i=Date.now();if(!this._pluginInst){E.ZP.log("mpd ready destroy");return}E.ZP.log("mpd ready"),this.kernal.setNodeTime("initmpddone"),this._pluginInst.info({msg:"mpd ready",name:"mpd ready",startMs:i,profile:!0}),this.type=t.type;var o=t.mediaList.video,a=t.mediaList.audio;this._initDefaultDefinition();var s=!!(o.length>0&&o[o.selectedIdx])&&this.config&&!this.config.dashOpts.audioOnly,c=!!(a.length>0&&a[a.selectedIdx]);this._hasVideo=s,this._hasAudio=c;var u=this._initMSE();if(!!u){this._pluginInst.setStartTimelineAttr("reqtime",R.Z.nowTime()),this._openPromise=u;var l=[],d=this.config?this.config.dashOpts.audioOnly:null;if(this.config&&!d&&o&&o.length>0&&o[o.selectedIdx]&&o[o.selectedIdx].initSegment){var f=this.__dash__._makeInitSegemntRequestWithRetry("video",o.selectedIdx,!0);f.then(function(t){n._addBufferSafe(t,k.d1.VIDEO,u)}).catch(function(t){E.ZP.log("video init error",t)}),l.push(f),this._createMoofSegment(k.d1.VIDEO,t)}if(a[a.selectedIdx]&&a[a.selectedIdx].initSegment){var A=this.__dash__._makeInitSegemntRequestWithRetry("audio",a.selectedIdx,!0);A.then(function(t){n._addBufferSafe(t,k.d1.AUDIO,u)}).catch(function(t){E.ZP.log("audio init error",t)}),l.push(A),this._createMoofSegment(k.d1.AUDIO,t)}Promise.all(l).catch(function(t){var i;n.player&&!(null!=t&&null!==(i=t.ext)&&void 0!==i&&i.destroy)&&n.player.errorHandler(t),E.ZP.log("appendInitPromise error",t,"player destroyed ? ",!(n&&n.player))})}}},{key:"_addBufferSafe",value:function(t,n,i){var o=this;this._mseOpenDone?this._addBuffer(t,n):i.then(function(){o._addBuffer(t,n)})}},{key:"seek",value:function(t,n){var i,o,a,s=this,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=this.mpd.seek(n,u,t),d=this.popDynamicBufferServiceRes(),f=null===(i=this.mpd)||void 0===i||null===(i=i.mediaList)||void 0===i?void 0:i.video,A=null===(o=this.mpd)||void 0===o||null===(o=o.mediaList)||void 0===o?void 0:o.audio;if(!this.mpd){E.ZP.log("dash seek destroy");return}var h=!!(f.length>0&&f[f.selectedIdx]),g=!!(A.length>0&&A[A.selectedIdx]);if(h&&g&&2*f[f.selectedIdx].mediaDuration<A[A.selectedIdx].mediaDuration){!this._hastEmitDurErr&&(this._hastEmitDurErr=!0,this.emit("error",new w.Z(C.wb.RUNTIME,w.Z.DUR_PARSE_ERROR,{message:"the video.mediaDuration not match audio.mediaDuration"})));return}var p={},v=["video","audio"];v.forEach(function(t){l[t]&&l[t].length>0&&(p[t]=[],l[t].forEach(function(n){var i=n.idx,o=n.start,a=n.end,s=n.downloaded,c=n.range;p[t].push({idx:i,start:o,end:a,downloaded:s,range:c})}))}),E.ZP.log(null===(a=this.config)||void 0===a?void 0:a.vid,"currentTime",n,JSON.stringify(p)),(this.config.dashOpts&&this.config.dashOpts.audioOnly?["audio"]:v).forEach(function(t){l[t]&&l[t].length>0&&l[t].every(function(n){return s._makeSegmentRequestByItem(n,t,d,c)})})}},{key:"loadFirstVideoGop",value:function(){var t=this.mpd.getVideoFirstGop();t&&(E.ZP.log("loadFirstVideoGop"),this._makeSegmentRequestByItem(t,k.d1.VIDEO,{},!1,null,!1))}},{key:"_makeSegmentRequestByItem",value:function(t,n,i,o){var a,s=this,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=!(arguments.length>5)||void 0===arguments[5]||arguments[5],l=this;if(t.downloaded===S.Kc.APPEND||t.downloaded===S.Kc.GOING)return!0;t.downloaded=S.Kc.GOING;var d=Object.assign({},i,{load_tar_dur:t.end-t.start,load_dur:t.end-t.start});t.adaptItemParam=d;var f=this._videoEncryption||this._audioEncryption,h=!f||f&&this.useEME,g=l.config.useProgressiveAppend&&!this._pluginInst.softVideo&&h&&this.loader.isSupportedProgress(),p=0===t.start||o,v=l.mpd.mediaList[n],y=v[v.selectedIdx],m=p&&this.loader.checkProgressSatisfied(y.bandwidth||y.bitrate),_=l.config.useProgressiveAppendAll,I=g&&(m||_);p&&E.ZP.log("progressDownloaded match, config p ".concat(l.config.useProgressiveAppend,", \n progressDownloaded ").concat(g,", encEnableProgress :").concat(h,",\n useProgressiveAppendAll:").concat(_)),I&&0===t.start&&("video"===n?l._pluginInst.pvStartup=!0:l._pluginInst.paStartup=!0);var b=function(){if(t.downloaded===S.Kc.APPEND){E.ZP.log("abr_log oncancel appended return",t);return}l.updateItemState(t,!1),E.ZP.log("onCancel",t),l._removeFromList(t),l._setLoading(n,!1),I&&(null==l||l._abortAndRemove(n,t,"oncancel",!1))};if(t.isSatisfied=I,l._addToList(t),this._setLoading(n,!0,!1),t.requestTime=R.Z.nowTime(),I){;E.ZP.log("progressDownloaded, mediaType:".concat(n,",\n start:").concat(t.start,", bitrate:").concat(y.bandwidth||y.bitrate)),l.makeSegmentRequest(n,t,(a=(0,A.x)((0,A.l5)().mark(function i(o,a,d,f,h){var g,p,v,y,m;return(0,A.l5)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,null!==(g=s._appendBufferDelta)&&void 0!==g&&g[n]&&((p=s._appendBufferDelta[n]).delta=R.Z.nowTime(),p.item=t,!p.requestDelta&&(p.requestDelta=R.Z.nowTime())),v=d.range||t.range,h.range=v,h.status=null==f?void 0:f.status,!(200===h.status&&"ftyp"===R.Z.getTopBoxType(o))){i.next=10;break}return i.next=8,s.loader.cancel(n);case 8:return l._onRequestFail({message:"response 200, cancel"},t,n),i.abrupt("return");case 10:c?(n===k.d1.VIDEO?s._videoMetaReady:s._audioMetaReady)?(E.ZP.log(null===(m=l.config)||void 0===m?void 0:m.vid,"createMoof metaPromise ready",n,v),l.appendSegment(n,o,t,{},h,!1,a,c)):(s._pendingAppnedDatas[n].push({range:v.concat(),res:o,item:JSON.parse(JSON.stringify(t)),extData:JSON.parse(JSON.stringify(h)),done:a}),E.ZP.log(null===(y=l.config)||void 0===y?void 0:y.vid,"createMoof metaPromise not ready",n,v,o)):l.appendSegment(n,o,t,{},h,!1,a,c),!a&&d.range[1]>=t.range[1]&&(a=!0),a&&(s._outChangeUrlRetryMedia[n]=0,t.extRange=void 0,l._removeFromList(t),s._setLoading(n,!1,u,t.idx),s._appendBufferDelta&&(s._appendBufferDelta[n]=s._genEmptyBufferDelta()),E.ZP.log("mediaType",n,"item",t.idx,"done")),i.next=18;break;case 15:i.prev=15,i.t0=i.catch(0),s.__dash__?(s._abortAndRemove(n,t,"errorCatch"),l._onRequestFail(i.t0,t,n)):E.ZP.log("__dash__ null, destroy");case 18:case"end":return i.stop()}},i,null,[[0,15]])})),function(t,n,i,o,s){return a.apply(this,arguments)}),b,c).catch(function(i){l._onRequestFail(i,t,n)})}else l.makeSegmentRequest(n,t,null,b).then(function(i){var o=i.res,a=i.headers,s=i.extData;E.ZP.log("append ".concat(n," ").concat(t.start," ").concat(t.end)),l._setLoading(n,!1,!0,t.idx),l.appendSegment(n,o,t,a||{},s,!0,!0,c),l._removeFromList(t)},null,c).catch(function(i){l._onRequestFail(i,t,n)}).finally(function(){l._setLoading(n,!1)})}},{key:"_onRequestFail",value:function(t,n,i){if(n&&n.moof&&(E.ZP.log("createMoof request fail, mediaType",i),this._resetMoofSegmentDownloadState(i)),this._setLoading(i,!1),this.updateItemState(n),this._removeFromList(n),t.isPCDN){var o,a;null===(o=this._pcdnScv)||void 0===o||o.setSetRetryInfo(i,t.url),null===(a=this._pcdnScv)||void 0===a||a.removePCDNNode(i,t.bitrate,t.url)}if(!this.mpd){E.ZP.log("_onRequestFail destroy");return}var s=this.mpd.mediaList;E.ZP.log("_onRequestFail",null==t?void 0:t.message,JSON.stringify(n));var c="video"===i?s.video:s.audio,u=c[c.selectedIdx],l=!this._isAbort(t.error)&&!t.isPCDN;if(!u.hasBackup&&u.backupUrl&&l){u.hasBackup=!0,this._outChangeUrlRetryMedia[i]=2;return}u.fallbackUrl&&l&&(u.hasFallback=!0,this._outChangeUrlRetryMedia[i]=2)}},{key:"_setLoading",value:function(t,n){var i,o,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;E.ZP.log("setLoading",t,"isLoading",n,"addNext",a,"prevIdx",s),null===(i=this.mpd)||void 0===i||i.setLoadingState(t,n),a&&(null===(o=this.mpd)||void 0===o||o.moveNextSegmentIndex(t,s))}},{key:"_isAbort",value:function(t){var n=null==t?void 0:t.message;return(null==n?void 0:n.includes("The user aborted a request"))||(null==n?void 0:n.includes("Fetch is aborted"))||(null==n?void 0:n.includes("signal is aborted without reason"))}},{key:"_addToList",value:function(t){this._onLoadingItems&&this._onLoadingItems.push(t)}},{key:"_removeFromList",value:function(t){if(this._onLoadingItems)for(var n=this._onLoadingItems.length-1;n>-1;n--)this._onLoadingItems[n]===t&&this._onLoadingItems.splice(n,1)}},{key:"_doSizePreloadCheck",value:function(t){if((this._pluginInst.softVideo||this.__dash__.dashVideoEncrypted||this.__dash__.dashAudioEncrypted)&&!1===this.useEME&&this.__dash__.crypto||"segment_template"===this.mpd.dashType)return{isSlice:!1};var n=t.mediaType,i=t.range,o=this._preloadSegDatas[n];if(!o||(null==o?void 0:o.length)===0)return{isSlice:!1};var a,s=(0,A.sf)(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(c.range[0]===i[0]&&t.fileId===c.fileId){var u=c.res,l=c.duration;return{isSlice:!0,range:[c.range[1]+1,i[1]],res:u,duration:l}}}}catch(t){s.e(t)}finally{s.f()}return{isSlice:!1}}},{key:"makeSegmentRequest",value:function(t,n){var i,o,a,s=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,d=this,f=new T.XK;void 0===n.range&&(n.range=[]),"video"===t&&E.ZP.network(null===(i=d.config)||void 0===i?void 0:i.vid,"http get video start: ".concat(n.start,", end: ").concat(n.end," ,range: ").concat(n.range)),d.player&&d.__dash__._checkUrlRange(n.url);var h={limitSizeM:1/0,segment_resolution:"",isVideo:"video"===t,ratio:d.config.segmentRatio||7.5,vid:d.config.vid,mediaType:t,start:n.start,end:n.end,useUrlRange:d.config.useUrlRange},g=1/0,p=d.mpd.mediaList[t],v=p[p.selectedIdx],y=n.url;v.hasFallback?y=v.fallbackUrl:v.hasBackup&&(y=v.backupUrl);var m=(null===(o=n.extRange)||void 0===o?void 0:o.length)>0,_=this.config,I=_.pcdnDelays,b=_.usePCDNOpt,k=this._pcdnDelta[t],D=k.index,B=k.pcdnTimeoutDelta,P=k.isPCDNTimeout;b&&P&&R.Z.nowTime()-B<I[D]?m=!0:this._pcdnDelta[t].isPCDNTimeout=!1;var x=!1;if(this._pcdnScv){var Z=this._pcdnScv.selectedPCDN(t,!1,v.bandwidth),O="audio"===t||(null==Z?void 0:Z.includes(v.fileId));Z&&!O&&(this._pcdnScv.removePCDNNode(t,v.bandwidth),E.ZP.log("PCDNURL remove, url,",Z,"fileid",v.fileId)),O&&Z&&!m&&(x=!0,(!this._cdnHost||0>y.indexOf(this._cdnHost))&&(this._cdnHost=R.Z.getHostFromUrl(y)),!this._cdnHost&&(this._cdnHost=R.Z.getHostFromUrl(y)),h.cdnHost=this._cdnHost,y=Z,E.ZP.log("PCDNURL",y))}if("video"===t){try{var L=v.definition||d.__dash__.bandwidth2item[v.bandwidth].definition;L=L.toString(),g=S.Y2[L.toLowerCase()],h.segment_resolution=L.toLowerCase(),h.definition=h.segment_resolution,n.definition=L,this.setCurrentHost(y)}catch(t){g=1/0}h.limitSizeM=g}var N=n.range;h.bitrate=v.avg_bitrate||v.bandwidth||v.bitrate,h.bandwidth=v.bandwidth||v.bitrate,h.idx=v.idx,h.first_gop=0===n.start?1:0,h.isPCDN=x,h.fileId=v.fileId,h.codecType=v.codecType,h.adaptItemParam=n.adaptItemParam,h.segmentDuration=n.end-n.start,h.outChangeUrlRetry=this._outChangeUrlRetryMedia[t],delete n.adaptItemParam,h.moof=n.moof;var M=R.Z.generateRequestUniqueKey((0,A.Zj)((0,A.Zj)({},h),{},{range:N})),V=this._allCacheKeys.includes(M);h.checkPreload=(n.checkPreload||h.first_gop||V)&&!v.isExtra,h.isSatisfied=n.isSatisfied,h.startRaw=n.startRaw,h.endRaw=n.endRaw;var G=this.config.timeout;if(h.first_gop&&this.kernal.setNodeTime("init".concat(t,"_segstart")),this._appendBufferDelta[t].isPCDN=x,this._extDataCache[t]){var F=this._extDataCache[t];F.moof&&0===n.start&&(n.extRange=F.extRange)}if(n.extRange&&(E.ZP.log("_PCDN extRange",n.extRange,"medaiType",t,"isPCDNTimeout",m),n.extRange[0]<n.extRange[1]&&(N=n.extRange)),(null===(a=v.backupUrlList)||void 0===a?void 0:a.length)>0&&(h.urlList=v.backupUrlList),h.checkPreload){var U=this._doSizePreloadCheck(n),j=U.isSlice,W=U.range,H=U.res,Y=U.duration;if(j){N=W,h.isSlice=!0,E.ZP.log("hit preload size",t,"newRange",JSON.stringify(W),"allRange",JSON.stringify(n.range)),h.rangeEnd=n.range[1],h.rangeStart=n.range[0];var X=(0,A.Zj)((0,A.Zj)({},n),{},{range:[n.range[0],W[0]-1]});this.appendSegment(t,H,X,{},h,!1,!1,l),this.kernal.setPreloadData("init".concat(t,"_segcache"),{fromCache:!0,mediaType:t,definition:h.definition,duration:Y,byteLength:H.byteLength})}}return this.getData(y,N,t,h,!1,c,u,G,function(){E.ZP.log("onTimeout",n),d._removeFromList(n),d._onRequestFail(Object.assign({url:y,error:{message:"Timeout"}},h),n,t)}).then(function(i){if(!!s._pluginInst)if(i){var o=i.res,a=i.fromCache,u=i.duration,l=o instanceof ArrayBuffer;if(h.first_gop&&!(null!=i&&null!==(p=i.error)&&void 0!==p&&p.isTimeout)){var A="init".concat(t,"_segdone");s.kernal.setNodeTime(A)}if(a&&s.kernal.setPreloadData("".concat(t,"-").concat(h.bitrate,"-").concat(N[0],"-").concat(N[1]),{fromCache:a,mediaType:t,definition:h.definition,duration:u,byteLength:l?o.byteLength:0,error:l||o.done?null:o}),o instanceof ArrayBuffer)s._outChangeUrlRetryMedia[t]=0,f.resolve({res:o,headers:null,extData:{status:i.status,segment_resolution:h.segment_resolution}}),d.mseLog("task loadsucc",n,t);else if(!(206===i.status||200===i.status)){if(d.mseLog("task loaderror",n,t),c&&s._abortAndRemove(t,n,"onProgress task loaderror",!1),403===i.status)!v.fallbackUrl&&(null==d||d.__dash__.clearProgressTimer()),null==d||null===(y=d._pluginInst)||void 0===y||y.emitExpireEvent({url:n.url,response:i});else{var g=s._isAbort(null==i?void 0:i.error);if(v.hasFallback&&!g){E.ZP.log("fallUrl fail",null==i||null===(m=i.error)||void 0===m?void 0:m.message),null==d||d.__dash__.clearProgressTimer();var p,y,m,_,I=new w.Z(C.wb.RUNTIME,w.Z.BACK_URL_FAIL,{message:"fall url fail ".concat(null==i||null===(_=i.error)||void 0===_?void 0:_.message)});s.player.errorHandler(I)}}f.reject(i)}}else f.reject(Error("request error"))}),f}},{key:"setCurrentHost",value:function(t){this._pluginInst.loadURL=t}},{key:"reportMonitorEvent",value:function(t,n,i,o,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=this.getReportData(i,o,a,s),u=a.eagleid;if(u){if(!this.egleIds||this.egleIds[u])return;this.egleIds[u]=1}this.player&&this.player.emit("log",{type:"oneevent",end_type:t,cdnUrl:n,ext:c})}},{key:"getReportData",value:function(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object.assign({},{start:t||-1,end:n||-1},R.Z.transformHeaders(i,S.ne),o)}},{key:"reportMenuEvent",value:function(t,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this._pluginInst.player,c=this.getReportData(n,i,o,a);c.url=t,s.emit("menusegment",c)}},{key:"_reportInvalidEvent",value:function(t,n,i,o){var a=0,s=t.byteLength,c=i.status,u=i.segment_resolution,l=n.realUrl||n.url;try{var d=R.Z.getTopBoxType(t);if("moof"!==d&&"styp"!==d&&(E.ZP.media("segment content error",n,o),a=1,this.reportMonitorEvent(S.wW,l,n.range[0],n.range[1],o,{segment_size:t.byteLength,status:c,segment_resolution:u,box_type:d,step:a,segment_origin_size:s})),"ftyp"===d&&200===c&&2===n.range.length){this.player&&this.player.emit("source_error",{host:R.Z.getHostFromUrl(l),src:l,errorCode:c,message:"boxType error",range:n.range,headers:o}),a=2;var f=n.range[0];if(t=t.subarray(f,n.range[1]+1),d=R.Z.getTopBoxType(t),"moof"!==d&&"styp"!==d)return this.emit("error",new w.Z(C.wb.RUNTIME,w.Z.SEGMENT_CONTENT_ERROR,{message:"boxType is ".concat(d,", range:").concat(JSON.stringify(n.range),", url:").concat(l,", respHeaders:").concat(JSON.stringify(o),", isPCDN:").concat(i.isPCDN)})),this.reportMonitorEvent(S.wW,l,n.range[0],n.range[1],o,{segment_size:t.byteLength,status:c,segment_resolution:u,box_type:d,step:a,segment_origin_size:s}),null;return t}}catch(i){this.reportMonitorEvent(S.wW,l,n.range[0],n.range[1],o,{segment_size:t.byteLength,status:c,segment_resolution:u,step:a,box_type:"error",segment_origin_size:s}),E.ZP.media("segment content catch",n,i)}return null}},{key:"appendSegment",value:function(t,n,i,o,a){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=!(arguments.length>6)||void 0===arguments[6]||arguments[6],u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=this;if(!this._hasDestroyed&&!!l.mpd&&!!n){if(!R.Z.isArrayBuffer(n)){E.ZP.log("appendSegment return done",c);return}var d=new Uint8Array(n instanceof ArrayBuffer?n:n.buffer),f=R.Z.checkValidTopBox(d),A=a.status,h=a.segment_resolution,g=l.mpd.mediaList[t],p=i.selectedIdx;i.fromCache=a.fromCache;var v=i.realUrl||i.url;if(s&&!f){if(null===(d=l._reportInvalidEvent(d,i,a,o))){E.ZP.log("segment content response 200, res is null"),l.updateItemState(i);return}E.ZP.log("segment content response 200, subrange is ok, go ahead")}l.reportMenuEvent(v,i.range[0],i.range[1],o,{segment_size:d.byteLength,status:A,segment_resolution:h});var y=this._pluginInst.softVideo;if(l.keyValue||y){var m=0;(y||l.__dash__.dashVideoEncrypted||l.__dash__.dashAudioEncrypted)&&!1===l.useEME&&l.__dash__.crypto?(m=performance.now(),l.mseLog("decryptBody start",i,t),l.__dash__.crypto.decryptBody(d,"video"===t,!y).then(function(n){var o=n.data,a=n.id,s=n.headerId;if(!o.res&&!y){l.updateItemState(i);return}var d=o.res,f=o.videoTrack,A=o.audioTrack,h=performance.now();if(!l.encryptTotalAll&&(l.encryptTotalAll=0),l.encryptTotalAll+=h-m,E.ZP.encrypt("encryptTotalAll:".concat(l.encryptTotalAll)),"video"===t&&(!l.encryptTotal&&(l.encryptTotal=0),l.encryptTotal+=h-m,E.ZP.encrypt("encryptVideo:".concat(l.encryptTotal)),a<s&&!u)){l.updateItemState(i);return}l.doAppendSegment(t,g,d,i,p,null,c,f,A,u)})):l.doAppendSegment(t,g,d,i,p,a.range,c,null,null,u)}else l.doAppendSegment(t,g,d,i,p,a.range,c,null,null,u)}}},{key:"isAllAppend",value:function(){var t=this.mpd;if(!t)return!1;var n=this.player.currentTime,i=t.isSegmentAppendFromIdx(k.d1.VIDEO,n),o=i.res,a=i.emptySegments,s=t.isSegmentAppendFromIdx(k.d1.AUDIO,n),c=s.res,u=s.emptySegments,l=this._hasVideo&&a,d=this._hasAudio&&u;return!l&&!d&&(!!o&&!!c||!1)}},{key:"_checkStuckAndHandle",value:function(t){var n=t.mediaType,i=t.ml,o=t.mse,a=t.item,s=t.allAppended,c=this._pluginInst.config,u=c.useStuckCheck,l=c.useStuckWaitBuffer,d=i.switchTag;if(i.switchTag=!1,n===k.d1.VIDEO){if(u){var f,A=this._lastVideoBufferAppendEnd,h=(null==o||null===(f=o._sourceBuffer)||void 0===f||null===(f=f.video)||void 0===f?void 0:f.buffered)||null,g=this.player.currentTime;if(h){for(var p={start:0,end:0},v=0;v<h.length;v++){var y=h.start(v),m=h.end(v);y<g&&g<m&&(this._lastVideoBufferAppendEnd=m,p={start:y,end:m})}if(A>0){var _=A>p.start&&A<g&&this._lastVideoBufferAppendEnd>g&&!a.AppendCur,I=this._pluginInst.removedCurrBuf,b=d&&a.start<this.player.currentTime;if(_||I||b){_&&(a.AppendCur=!0);var C=this.player.getBufferedRange(this.player.buffered),w=!1;(!l||l&&((null==C?void 0:C[1])>0||s))&&(this.player._invalidSeekTag=!0,this._pluginInst.removedCurrBuf=!1,this.player.currentTime-=1e-4,this._isFpsStuck=!1,w=!0),E.ZP.log("appendSuccessVideoBuffer seek back 0.001 prevBufferEnd",A,"last",this._lastVideoBufferAppendEnd,"current.start",p.start,"inBuffer",w,"isAddCurBuf",_)}}}}d&&a.start<this.player.currentTime&&!u&&(this.player._invalidSeekTag=!0,this.player.currentTime-=1e-4,E.ZP.log("appendSuccess seek 0.001"))}}},{key:"doAppendSegment",value:function(t,n,i,o,a,s,c,u,l,d){var f=this;if(!this._hasDestroyed){var h=this,g=h.mse,p=h.mpd,v={start:o.start,end:o.end,index:a,bandwidth:n[n.selectedIdx].bandwidth,fps:n[n.selectedIdx].fps,mediaType:t,sequence:o.idx,definition:n[n.selectedIdx].definition,fromCache:o.fromCache};if(t===k.d1.VIDEO&&-1!==this.__dash__.curVideoInitSegmentIdx&&a!==this.__dash__.curVideoInitSegmentIdx&&this.__dash__.curVideoFileId!==n[a].fileId){this.updateItemState(o),E.ZP.log("init 与 segment不匹配, curVideoInitSegmentIdx",this.__dash__.curVideoInitSegmentIdx,"selectedIdx",a);return}var y=function(i){if((null==i||!i.used)&&(null==i||null===(a=i.context)||void 0===a||!a.used)){if(f._checkStuckAndHandle({mediaType:t,ml:n,mse:g,item:o,allAppended:c}),0===o.start&&f.kernal.setNodeTime("init".concat(t,"SegmentAppend"),i),i&&(i.used=!0),!h.player){E.ZP.log("appendBuffer destroy return");return}if(o.range[1]<=(null==s?void 0:s[1])||c){if(o.AppendCur=!1,h.updateItemState(o,!0),"video"===t){null===(u=h.player)||void 0===u||u.emit("addVideoBufferEnd",v);var a,u,l,y,m,_=R.Z.nowTime()-o.requestTime,I=v.end-v.start;!v.end&&(I=null===(m=n[n.selectedIdx])||void 0===m||null===(m=m.mediaSegments)||void 0===m?void 0:m[0].segmentDuration);var b=(null==g||null===(l=g._sourceBuffer)||void 0===l||null===(l=l.audio)||void 0===l?void 0:l.buffered)||null,C=0;if(b){var w=f.player.getBufferedRange(b);C=0===w[1]?0:w[1]-f.player.currentTime}else!(null!=g&&null!==(y=g._sourceBuffer)&&void 0!==y&&y.audio)&&(C=-1);f._emitAbrNextSegmentPredictEvt((0,A.Zj)((0,A.Zj)({},v),{},{fix:!0,costTime:_,gopSize:I,audioBuffer:C}))}if(d){var S,T,D=null===(S=f.mpd)||void 0===S?void 0:S.mediaList[t],B=D&&(null===(T=D[D.selectedIdx])||void 0===T?void 0:T.mediaSegments);B.length>0&&h.updateItemState(B[0],!0)}}if(f.mseLog("appendBuffer success",o,t,s),c){h.updateItemState(o,!0);var P=h.mpd._getBuffered(t);E.ZP.log("fixbuffer: mediaType",t,"buffered",JSON.stringify(P),"item.start",o.start,"item.end",o.end);for(var x=!0,Z=0;Z<P.length;Z++){var O=P[Z].start,L=P[Z].end;if(o.start>=O-1&&o.end<=L+1){x=!1;continue}}if(x&&o.end>o.start){var N=h.mse.getSourceBuffer(t);E.ZP.log("fixbuffer: buffer Miss",!!N),N&&f._abortAndRemove(t,o,"fixbuffer")}}"video"===t&&h.player.emit("addVideoBufferEnd",v);var M=p.isLastSegmentAndAppend(t,o.idx),V=t===k.d1.AUDIO?k.d1.VIDEO:k.d1.AUDIO,G=p.isLastSegmentAndAppend(V,o.idx);M&&G&&(E.ZP.log("append check endofStream"),g.endOfStream()),f.isAllAppend()&&g.endOfStream()}},m=(0,A.Zj)((0,A.Zj)({range:s,rangesring:JSON.stringify(s)},v),{},{callback:y,item:o});this.appendBuffer(t,new Uint8Array(i),m,u,l,d).then(y).catch(function(t){E.ZP.log("append buffer catch",t);var n=t&&t.errorCode===C.WE[C.wb.MEDIA][C.wb.SUB_TYPES.MSE_FULL];!n&&h.updateItemState(o,!1),n&&h.__dash__&&h.__dash__.checkRemoveBuffer(!0),t&&t.errorCode&&h.player&&h.player.emit(new w.Z(C.wb.MEDIA,t.errorCode,{line:800,message:"append buffer".concat(t.message)}))})}}},{key:"appendBuffer",value:function(t,n,i,o,a,s){var c=this;if(i&&(i.vid=this.config.vid),this._appendBufferDelta&&(this._appendBufferDelta[t].range=i.range),this._lastAppendBufferEnd){var u=this._lastAppendBufferEnd[t],l=u.prevRangeEnd,d=u.prevItem;if(i.initSegment||i.range&&i.range.length>0){var f,A,h,g,p,v=l===(null==d?void 0:d.range[1]),y=l>0&&(l===(null==d?void 0:d.range[1])+1||v);l>0&&!y&&l!==(null===(f=i.range)||void 0===f?void 0:f[0])&&(i.initSegment||i.range[1]<i.item.range[1])&&(E.ZP.log("appendBuffer seek remove current",null===(A=this.player)||void 0===A?void 0:A.currentTime,t,l,"now",null===(h=i.range)||void 0===h?void 0:h[0],"start",d.startRaw,"endRaw",d.endRaw,"initSegment",i.initSegment),null===(g=this.__dash__)||void 0===g||g.abort(t),null===(p=this.__dash__)||void 0===p||p.clearBufferDirect(t,d),d.extRange=void 0),i.initSegment?this._lastAppendBufferEnd[t]={prevRangeEnd:0,prevItem:null}:this._lastAppendBufferEnd[t]={prevRangeEnd:i.range[1],prevItem:i.item}}}var m=function(){return c._pluginInst.softVideo?(c._hasVideo&&"video"===t&&(c._vTrack=new D.q,Object.keys(o).forEach(function(t){c._vTrack[t]=o[t]})),c._hasAudio&&"audio"===t&&(c._aTrack=new B.W,Object.keys(a).forEach(function(t){c._aTrack[t]=a[t]})),c.mse.appendBuffer(c._vTrack,c._aTrack),Promise.resolve()):c.mse.append(t,new Uint8Array(n),i)};if(!s)return m();var _,I=Date.now();return(t===k.d1.VIDEO?this._videoMetaReady:this._audioMetaReady)&&i.fromCache&&null!==(_=this.config)&&void 0!==_&&_.useGopCacheAcc?(E.ZP.log("createMoof ready append cost",Date.now()-I,"ms mediaType",t,"range",JSON.stringify(i.range),"fromCache",i.fromCache),m()):s.then(function(){return E.ZP.log("createMoof append cost",Date.now()-I,"ms mediaType",t,"range",JSON.stringify(i.range)),m()})}},{key:"changeType",value:function(t,n){var i="";i=t===k.d1.VIDEO?'video/mp4; codecs="'.concat(n,'"'):'audio/mp4; codecs="'.concat(n,'"'),this.mse.changeType&&this.mse.changeType(t,i)}},{key:"emptyAction",value:function(t,n){var i=this.mse;return i._enqueueOp(t,function(){i._onSBUpdateEnd(t)},"emptyAction",n)}},{key:"isProgressiveLoading",value:function(t){var n=this.loader.getCurrentTask(t);return this._isLoadingTaskCancellable(n)}},{key:"getCurrentTask",value:function(t){return this.loader.getCurrentTask(t)}},{key:"_isLoadingTaskCancellable",value:function(t){if(!t||!t._config.priOptions)return{isCancellable:!0,data:null};var n,i=null===(n=this.player)||void 0===n?void 0:n.currentTime,o=t._config.priOptions.extData,a=o.start<=i&&i<=o.end&&o.isSatisfied,s=o.range&&o.range[0]===o.range[1];return{isCancellable:this.config.usePCDNOpt||!a&&!s,data:o,oriIsCancellable:!a&&!s}}},{key:"_cancelTasks",value:(u=(0,A.x)((0,A.l5)().mark(function t(n,i){var o,a,s,c,u,l,d,f,h,g,p;return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.loader){t.next=2;break}return t.abrupt("return",[]);case 2:c=(s=this.isProgressiveLoading(n)).isCancellable,u=s.data,E.ZP.log(null===(o=this.config)||void 0===o?void 0:o.vid,"_cancelTasks",n,"isCancellable",c,"data",!!u),l=[],d=null===(a=this.player)||void 0===a?void 0:a.currentTime,f=(0,A.sf)(i);try{for(f.s();!(h=f.n()).done;)(g=h.value).mediaType===n&&!c&&(p=g.start<=d&&d<=g.end&&g.isSatisfied,(g.isInitSegment||p)&&l.push(g))}catch(t){f.e(t)}finally{f.f()}return t.next=10,this.loader.cancelTasks(n,c);case 10:return c&&u&&u.isSatisfied&&E.ZP.log("isCancellable abort"),t.abrupt("return",l);case 12:case"end":return t.stop()}},t,this)})),function(t,n){return u.apply(this,arguments)})},{key:"abortLoadingTasks",value:(l=(0,A.x)((0,A.l5)().mark(function t(n){var i,o,a,s,c;return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=[],o=!n,!this._onLoadingItems){t.next=18;break}if(!o){t.next=14;break}return t.next=6,this._cancelTasks(k.d1.VIDEO,this._onLoadingItems);case 6:return a=t.sent,t.next=9,this._cancelTasks(k.d1.AUDIO,this._onLoadingItems);case 9:s=t.sent,i.push.apply(i,(0,A.u)(a)),i.push.apply(i,(0,A.u)(s)),t.next=18;break;case 14:return t.next=16,this._cancelTasks(n,this._onLoadingItems);case 16:c=t.sent,i.push.apply(i,(0,A.u)(c));case 18:this._onLoadingItems=i;case 19:case"end":return t.stop()}},t,this)})),function(t){return l.apply(this,arguments)})},{key:"_doCancel",value:(d=(0,A.x)((0,A.l5)().mark(function t(n){return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loader.cancel(n);case 2:this._emitCancel();case 3:case"end":return t.stop()}},t,this)})),function(t){return d.apply(this,arguments)})},{key:"_emitCancel",value:function(){var t=this;try{Object.keys(this._optionDataLenInfo).forEach(function(n){var i=t._optionDataLenInfo[n];Object.keys(i).forEach(function(o){var a=i[o]||{},s=a.size,c=a.range,u=a.extData;s>0&&t._emitPrfDataSizeEvent(Number(o),s,n,c,u,1)})})}catch(t){}this._resetOptionDataLenInfo()}},{key:"updateItemState",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[];t.length>0?i=t:i.push(t),i.forEach(function(t){n?t.downloaded=S.Kc.APPEND:t.downloaded=S.Kc.NO_START}),!n&&t.moof&&this._resetMoofSegmentDownloadState(t.mediaType)}},{key:"mseLog",value:function(t,n,i,o){var a;E.ZP.mse(null===(a=this.config)||void 0===a?void 0:a.vid,"type-".concat(i,"-start-").concat(n.start,"-end-").concat(n.end,"-").concat(t,",range:").concat(JSON.stringify(o||n.range)))}},{key:"emitPreloadHit",value:function(t){E.ZP.preload("emit preloadhit",t),this.player&&this.player.emit("log",{type:"onetemp",action:"append",data:{preload_hit:"".concat(t,"|")}})}},{key:"destroy",value:function(){var t,n;this._doCancel(),v()(this.loader),null===(t=this._secret)||void 0===t||t.destroy(),this._hasDestroyed=!0,null===(n=this._dynamicBufferService)||void 0===n||n.destroy()}},{key:"checkPCDN",value:(f=(0,A.x)((0,A.l5)().mark(function t(){var n,i,o,a,s;return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.player&&this.player.readyState<=HTMLVideoElement.HAVE_CURRENT_DATA)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,n=this._pluginInst.currentDefitionFromPlayer.item,t.next=7,this._pcdnScv.checkPCDN((0,A.Zj)((0,A.Zj)({},n),{},{mediaType:"video"}));case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2);case 12:if(t.prev=12,0!==(i=this.mpd.mediaList.audio).length){t.next=16;break}return t.abrupt("return");case 16:return a=(o=i[i.selectedIdx]).bandwidth,s=o.baseURL,t.next=19,this._pcdnScv.checkPCDN((0,A.Zj)((0,A.Zj)({},i[i.selectedIdx]),{},{bitrate:a,main_url:s,mediaType:"audio"}));case 19:t.next=24;break;case 21:t.prev=21,t.t1=t.catch(12);case 24:case"end":return t.stop()}},t,this,[[2,9],[12,21]])})),function(){return f.apply(this,arguments)})},{key:"isOpenPCDN",value:function(t){var n=this;if(this._pcdnScv){var i,o,a=this._pluginInst.currentDefitionFromPlayer;if(!a){E.ZP.log("isOpenCPDN curDef is null");return}var s=a.item,c=s.bitrate,u=null===(i=this.mpd)||void 0===i?void 0:i._getCurBuffered(k.d1.VIDEO),l=null===(o=this.mpd)||void 0===o?void 0:o._getCurBuffered(k.d1.AUDIO),d=(t=Math.max(t,null==u?void 0:u[1],null==l?void 0:l[1]))-this.player.currentTime,f=d,h=d,g=this.player.currentTime;this.config.useSeparationMode&&(h=Math.max(0,(null==l?void 0:l[1])-g),f=Math.max(0,(null==u?void 0:u[1])-g)),this._pcdnScv.isOpenPCDN("video",f,c,(0,A.x)((0,A.l5)().mark(function t(){return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.abortLoadingTasks("video");case 2:case"end":return t.stop()}},t)})),s);var p=this.__dash__.dash.mpd.mediaList;if(p.audio.length>0){var v=p.audio[p.audio.selectedIdx],y=this.config.dashOpts.dynamic_video.dynamic_audio_list.filter(function(t){return t.bitrate===v.bandwidth})[0];this._pcdnScv.isOpenPCDN("audio",h,v.bandwidth,(0,A.x)((0,A.l5)().mark(function t(){return(0,A.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.abortLoadingTasks("audio");case 2:case"end":return t.stop()}},t)})),y)}}}},{key:"pcdnReqCnt",value:function(){return this._pcdnScv.pcdnReqCnt||{}}},{key:"pcdnVVStat",value:function(){return this._pcdnScv.pcdnVVStat||{}}}])},885112:function(t,n,i){"use strict";i.r(n),i.d(n,{DashPreloader:function(){return k.Z},default:function(){return B},encryptUtils:function(){return u}});var o=i("648955");i("346984"),i("303846"),i("162093"),i("9498"),i("932651"),i("2885"),i("248385"),i("414931"),i("706056"),i("663030");var a=i("734123"),s=i("521323"),c=i("731751"),u=i("965883"),l=i("405762"),d=i("373974"),f=i("740651"),A=i("298757"),h=i("802325"),g=i("874768"),p=i("204961");i("117232"),i("497397");var v=i("333777"),y=i("525231"),m=i("982143"),_=(0,o.qH)(function t(n){var i=this;(0,o.PA)(this,t),(0,o._x)(this,"start",function(){var t=i._pluginInst.player;i._pluginInst.originStartInit.call(t,i._url);var n="dash mp4 kernal start";i._pluginInst.info({msg:n}),s.ZP.log(n)}),(0,o._x)(this,"_errorHandler",function(t){var n,o,c=i._pluginInst,u=c.player,l=c.config;if(!i._hasHandleError){if(u.video.error)t=new a.Errors(u,{errorType:y.wb.MEDIA,errorCode:5100+u.video.error.code});else{var f=t;if("string"!=typeof t)try{f=JSON.stringify(t)}catch(t){f="other"}t=new a.Errors(u,{errorType:y.wb.OTHER,errorCode:0,errorMessage:f})}i._stat.error.push({err:t}),s.ZP.log(null==l?void 0:l.vid,"mp4 error",t);var A=new Date().getTime()/1e3>=i.urlExpireTimestamp&&i.urlExpireTimestamp>0;if(i._pluginInst.info({msg:"dash mp4 kernal error happend, url expired ".concat(A),err:t}),A&&u.video.error&&(4===u.video.error.code||2===u.video.error.code)){!i._urlExpiredWhenInit&&i._mp4CheckExpire();return}i._pluginInst.setStartTimelines(d.l1.PLAYER_ERROR,{message:"dashmp4-".concat(t.errorMessage,"-").concat(t.errorCode)}),i._hasHandleError=!0,null!==(n=t.src)&&void 0!==n&&n.includes("downgrade_264=1")&&(null===(o=t)||void 0===o?void 0:o.readyState)===0&&u.fallBackFail&&(u.fallBackFail=!1,u.isNetError=!0),u.emit("error",t)}}),(0,o._x)(this,"_updateMp4Auto",function(){setTimeout(function(){i._updateMp4AutoDesc()},0)}),this._url=null,this._pluginInst=n,this._urlExpiredWhenInit=!1,this._hasHandleError=!1,this._initialize(),this._proxyPlayer(),this._stat={type:"mp4",error:[]}},[{key:"executeReady",value:function(){var t=this._pluginInst.player;t.dashState=c.Y9,t.emit("nextEnded")}},{key:"_initialize",value:function(){var t=this,n=this._pluginInst.config;this._handleMp4Definitions(n.defaultDefinition),this._getMp4Opts();var i=this._pluginInst.player;i.dash=!1,setTimeout(function(){i.emit("resourceReady",t._mp4Definitions||[],[].concat(t._RawMp4Definitions)),t._updateMp4Auto()}),this.urlExpireTimestamp&&(this._urlExpiredWhenInit=new Date().getTime()/1e3>=this.urlExpireTimestamp&&this.urlExpireTimestamp>0,this._mp4CheckExpire())}},{key:"onPreChangeDefinition",value:function(t){var n=this._pluginInst,i=n.config,o=n.player;return!i.mp4Opts&&(i.mp4Opts={}),i.mp4Opts.mp4List=t,this._handleMp4Definitions(this._currDefinition),o.config.definition&&(o.config.definition.defaultDefinition=this._currDefinition,o.plugins.definition&&(o.plugins.definition.config.defaultDefinition=this._currDefinition)),o.emit("resourceReady",this._mp4Definitions),this._mp4Definitions}},{key:"_handleMp4Definitions",value:function(t){var n=this;t=t&&t.toString();var i=this._pluginInst,o=i.player,s=i.config,u=i.playerConfig;if(u.downgradeUrl&&(!s.mp4Opts||!s.mp4Opts.mp4List||0===s.mp4Opts.mp4List.length)){var l=[{url:u.downgradeUrl,definition:"1",vtype:"MP4",size:0,codecType:"h264"}];s.mp4Opts={mp4List:l}}if(s.mp4Opts){this.mp4AutoItem=null;var d,f=[].concat(s.mp4Opts.mp4List||[]);f.every(function(t){return!!t.bitrate})&&f.sort(function(t,n){return n.bitrate-t.bitrate});var A=s.mp4Opts.isOpenAutoDefi,h=s.mp4Opts.isPlayAutoDefi,g=!1;if(A){var p={};f.forEach(function(t){p[(t.definition||"").toLowerCase()]=t});for(var _=["720p","480p","360p"],I=null,b=0;b<_.length;b++){var C=p[_[b]];if(C){I=C;break}}if(I){this.mp4AutoItem=I;var k=s.mp4Opts.autoDefiText||"自动",w="".concat(k,"(").concat(I.definition,")");f.push({definition:k,url:v.UV,name:w,url_expire:I.url_expire||0,selected:!!h}),g=h}}if(f.length>0){f.forEach(function(t){if(t.definition&&(t.definition=t.definition.toString()),u&&"function"==typeof u.preProcessUrl){var n=u.preProcessUrlOptions||{};t.url=u.preProcessUrl(t.url,n).url}});var E=f[0].url,S=f[0].url;f.forEach(function(i){i.definition===t&&(E=i.url,S=i.url,n._currDefinition=t)}),A&&h&&this.mp4AutoItem&&(E=this.mp4AutoItem.url,S=v.UV),this._mp4Url=S,this._url=E,this._pluginInst.loadURL=E}if(!g){for(var R=0;R<f.length;R++){var T=f[R];if(t===T.definition){T.selected=!0,g=!0,this._currDefinition=t;break}}if(!g){if(f.length>0)f[0].selected=!0,this._currDefinition=String(f[0].definition);else{setTimeout(function(){var t=y.WE[y.wb.MEDIA][y.wb.SUB_TYPES.MEDIA_ERR_URL_EMPTY],n=new a.Errors(o,{errorType:y.wb.MEDIA,errorCode:t});o.emit(m.K.ERROR,n)});return}}}this._mp4Definitions=f.map(function(i){t===i.definition&&(n._url=i.url,!h&&(i.selected=!0));var o=JSON.parse(JSON.stringify(i));return o.name=s.definitionText&&s.definitionText[i.definition]||i.definition,o.url_expire=i.url_expire||0,o}),this._backup_url=this._mp4Definitions[0].backup_url,this._RawMp4Definitions=f;var D=!1;this._pluginInst.setCodeInfo(null===(d=f[0])||void 0===d?void 0:d.codec_type);for(var B=0;B<f.length;B++){var P=f[B];P.codec_type&&P.vtype&&("h264"!==P.codec_type||"mp4"!==P.vtype)&&(D=!0)}D&&o.emit("log",{type:"oneevent",end_type:c.c9})}}},{key:"_getMp4Opts",value:function(){var t=this._pluginInst.player,n={url:this._mp4Url,realUrl:this._url,mp4Definitions:[].concat(this._mp4Definitions)};return this._getPlayInfoTimestamp=new Date().getTime()/1e3,n.mp4Definitions&&n.mp4Definitions.length>0&&n.mp4Definitions[0]&&(this.urlExpireTimestamp=n.mp4Definitions[0].url_expire||0),this._destroyMp4AutoHandler(),t.on("canplay",this._updateMp4Auto),this.urlExpireTimestamp&&(this.mp4CheckExpire=this._mp4CheckExpire.bind(this),t.on("timeupdate",this.mp4CheckExpire)),n}},{key:"_proxyPlayer",value:function(){var t=this._pluginInst,n=t.player,i=t.config;this._originSwitchURL=n.switchURL,this._originErrorHandler=n.errorHandler,i.defaultFormat="mp4",n._startInit=this.start,n.errorHandler=this._errorHandler,n.switchURL=this._switchURLMp4.bind(this),n.config.url=this._url}},{key:"_switchURLMp4",value:function(t){var n=this,i=this._pluginInst.player,o=(Array.isArray(t)?t:t.split("/")[t.split("/").length-1])===v.UV,a=o?this.mp4AutoItem.url:t;this._pluginInst.loadURL=a,i.curTime=i.currentTime;var s=i.paused;this._url=o?v.UV:t,!i.ended&&(i.src=a,l.Z.once(i,"canplay",function(){if(i.currentTime=i.curTime,!s){var t=i.play();void 0!==t&&t&&t.catch(function(){})}s&&i.pause()}));o?this._setCurrentDefitionInfos("自动 ".concat(this.mp4AutoItem.definition),this.mp4AutoItem):l.Z.once(i,"definitionChange",function(t){for(var i=t.to,o=null,a=n._pluginInst.cnofig,s=0;s<a.mp4Opts.mp4List.length;s++){var c=a.mp4Opts.mp4List[s];if(c.definition===i){o=c,n._currDefinition=String(o.definition);break}}n._setCurrentDefitionInfos("".concat(i),o)})}},{key:"_mp4CheckExpire",value:function(){var t;null===(t=this._pluginInst)||void 0===t||t.handleUrlExpire(this,!0)}},{key:"_updateMp4AutoDesc",value:function(){var t=this._pluginInst.player,n=this._url!==v.UV||void 0;this.mp4AutoItem&&(t.emit("MP4_AUTO_DESC_CHANGE",JSON.parse(JSON.stringify(this.mp4AutoItem)),!!n||void 0),!n&&this._setCurrentDefitionInfos(this.mp4AutoItem.definition,this.mp4AutoItem))}},{key:"_setCurrentDefitionInfos",value:function(t,n){this._pluginInst.setCurrentDefitionInfos(t,n)}},{key:"_destroyMp4AutoHandler",value:function(){var t=this._pluginInst.player;t.off("canplay",this._updateMp4Auto),t.off("timeupdate",this._mp4CheckExpire)}},{key:"destroy",value:function(){var t=this._pluginInst.player;t.errorHandler=this._originErrorHandler,t._startInit=this._pluginInst._originStartInit,this._destroyMp4AutoHandler(),this._pluginInst.unloadVideo(),t.switchURL=this._originSwitchURL}},{key:"getStat",value:function(){var t=this._pluginInst.player;this._stat.currentTime=t.currentTime;var n=t.video.error;return this._stat.videoError=n?{code:n.code,message:n.message}:null,this._stat}}]),I=i("737178"),b=i("659830"),C=i("521488"),k=i("97447"),w=i("265256"),E=i("639803"),S=a.Events.STATS_EVENTS,R={MP4:"mp4",DASH:"dash",VOID:"void"};function T(t){return{playerVersion:{get:function(){return"3.5.41-rc.1"},configurable:!0},downloadSpeed:{get:function(){return I.Z.currentSpeed/8},configurable:!0},historyAvspeed:{get:function(){return I.Z.historyAvspeed/8},configurable:!0},abrInstance:{get:function(){return t.abrInstance},configurable:!0},menuCodeType:{get:function(){return t.menuCodeType},configurable:!0},playerType:{get:function(){return t.playerType},configurable:!0},supportMenus:{get:function(){return t.supportMenus},configurable:!0},domain:{get:function(){return t.domain},configurable:!0},loadURL:{get:function(){return t.loadURL},configurable:!0},performance:{get:function(){var n=t.stat;return n&&n.performance},configurable:!0},stat:{get:function(){return t.stat},configurable:!0},preLoadData:{get:function(){var n=t.stat;return n&&n.preLoadData?n.preLoadData:{byteLength:0,duration:0}},configurable:!0},ext:{get:function(){var n=Math.max(0,I.Z.historySpeed.length-10),i=I.Z.historySpeed.slice(n,n+10);return(0,o.Zj)((0,o.Zj)({},t.stat),{},{speed:i.map(function(t){return"".concat(t/8)}),vtype:"DASH",format:t._kernalType,performance:void 0,preLoadData:void 0})},configurable:!0},getLogCache:{get:function(){var t=(0,s.jl)();return t.getLogCache&&t.getLogCache()},configurable:!0},pcdnReq:{get:function(){var n;return t._kernalType===R.DASH?null===(n=t._kernal)||void 0===n?void 0:n.pcdnReq:null},configurable:!0},currentDefitionFromPlayer:{get:function(){return t.currentDefitionFromPlayer},configurable:!0},encryptedInfo:{get:function(){var n;return{encryptedType:(null===(n=t._kernal)||void 0===n?void 0:n.encryptedType)||0}},configurable:!0},pcdnVVStat:{get:function(){var n;return t._kernalType===R.DASH?null===(n=t._kernal)||void 0===n?void 0:n.pcdnVVStat():null},configurable:!0},beforeLoadStartCostTime:{get:function(){var n;if(t._kernalType!==R.DASH||!t._kernal)return 0;return null===(n=t._kernal)||void 0===n?void 0:n.beforeLoadStartCostTime},configurable:!0},startTimelines:{get:function(){if(t._startTimelines){var n=l.Z.nowTime();t._startTimelines.startuploadtime=n;var i=t._kernalType===R.DASH?t._startTimelines.reqtime:t._startTimelines.downgradetime;if(t._startTimelines.startdelta=n-i,t._startTimelines.firstframedp=t._hasFirstFramed?1:0,t._startTimelines.playerstate=t.player.state,!t._hasFirstFramed){var o,a,s=t.player.getBufferedRange();t._startTimelines.startbufferlength=s[1]-s[0],null===(a=t.player)||void 0===a||a.emit("xglog_cache")}}var c=null===(o=t.stat)||void 0===o?void 0:o.stage;return JSON.parse(JSON.stringify(Object.assign({},t._startTimelines,c)))},configurable:!0}}}var D=null,B=function(t){function n(){var t;(0,o.PA)(this,n);for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return t=(0,o.$w)(this,n,[].concat(a)),(0,o._x)(t,"_hasUsedBackUrl",!1),(0,o._x)(t,"_onPlayAbort",function(){var n=t.config,i=l.Z.nowTime(),o=!1;t._playTime>-1&&t._pauseTime>-1&&t._playTime<=t._pauseTime&&t._pauseTime<=i&&(o=!0),n.usePlayAbortRetry&&!t._hasPlayAbortRetry&&!o&&(t._hasPlayAbortRetry=!0,t.player.play(),s.ZP.log(n.vid,"playAbortRetry"))}),(0,o._x)(t,"_onPlayStarted",function(){t._startTimelines&&(t._startTimelines.playtime=l.Z.nowTime())}),(0,o._x)(t,"_onLoadStart",function(){-1===t._startTimelines.loadstarttype&&(t._startTimelines.loadstarttime=l.Z.nowTime(),t._startTimelines.loadstarttype=t._kernalType===R.DASH?1:2)}),(0,o._x)(t,"_onLoadData",function(){-1===t._startTimelines.loadeddatatype&&(t._startTimelines.loadeddatatime=l.Z.nowTime(),t._startTimelines.loadeddatatype=t._kernalType===R.DASH?1:2)}),(0,o._x)(t,"_onSourceError",function(n){if(!t._hasFirstFramed){if(!(null!==(i=n.message)&&void 0!==i&&i.includes("PCDN"))){var i,o,a,s,c="".concat(t.player.vtype,"-host:").concat(null==n?void 0:n.host,"-").concat(null==n?void 0:n.errorCode,"-").concat(null!==(o=null==n||null===(a=n.mediaError)||void 0===a?void 0:a.message)&&void 0!==o?o:null==n?void 0:n.message);t.setStartTimelines(d.l1.HTTP_ERROR,{message:c,httpCode:null==n?void 0:n.errorCode}),null===(s=t._startTimelines)||void 0===s||null===(s=s.httpError)||void 0===s||s.push({message:c,httpCode:null==n?void 0:n.errorCode,range:(null==n?void 0:n.range)&&JSON.stringify(null==n?void 0:n.range),mediaType:null==n?void 0:n.mediaType})}}}),(0,o._x)(t,"_onSeeking",function(){var n=t.player;t.waitLevelStartTime=n.currentTime}),(0,o._x)(t,"_onPlaying",function(){s.ZP.log("onPlaying,",JSON.stringify({curtime:t.player.currentTime,buffer:JSON.stringify(null===(o=t.player)||void 0===o||null===(o=o.buffered2)||void 0===o?void 0:o.bufferedList)})),t._waitAdjustTimeCnt>0&&t._waitInBufferTimer&&(t._waitAdjustTimeCnt-=1,s.ZP.log("[waitInBuffer resume play], waitAdjustTimeCnt,",t._waitAdjustTimeCnt)),clearTimeout(t._waitInBufferTimer),t._waitInBufferTimer=null;var n=t.player,i=t.config.resumePlayWaterLevel;if(t._kernalType===R.MP4){t.checkResumePlayTimer>0&&(clearTimeout(t.checkResumePlayTimer),t.checkResumePlayTimer=null,n.isBufferControlPaused&&(n.isBufferControlPaused=!1),n.paused&&n.play());return}if(!(n.duration>0)||!(n.duration-n.currentTime<=i)){if(t.waitLevelStartTime<0&&(t.waitLevelStartTime=n.currentTime),!t.playFlag&&(t.playFlag=!0),i>0&&n.currentTime-t.waitLevelStartTime>=c.Ef){var o,a,u=n.getBufferedRange(n.buffered2);u[1]>0&&u[1]-n.currentTime<i?(!n.paused&&(t.emit(c.of,{type:c.a1.WAITING}),n.pause(null===(a=c.Im)||void 0===a?void 0:a.BUFFER_CONTROLS),n.isBufferControlPaused=!0,s.ZP.log("[!!!!!buffer not rich, pause],currentTime, ",n.currentTime,", bufferEnd,",u[1])),clearTimeout(t.checkResumePlayTimer),t.checkResumePlayTimer=setTimeout(t._onPlaying,i/2*1e3)):n.isBufferControlPaused&&n.paused&&(s.ZP.log("[!!!!!buffer rich, play],, currentTime, ",n.currentTime,", bufferEnd,",u[1]),clearTimeout(t.checkResumePlayTimer),t.checkResumePlayTimer=null,n.isBufferControlPaused=!1,t.emit(c.of,{type:c.a1.PLAYING}),n.play())}}}),(0,o._x)(t,"_onWaiting",function(){var n,i=t.player,o=t.config;clearTimeout(t._waitInBufferTimer),t._waitInBufferTimer=null;var a=i.currentTime,c=t._lastWaitTimestamp;t._lastWaitTimestamp=l.Z.nowTime(),s.ZP.log(o.vid,",[onWaiting],curTime, ",a,",buffer,",JSON.stringify(null==i||null===(n=i.buffered2)||void 0===n?void 0:n.bufferedList),",dur,",i.duration,"adjustTimeCnt",t._waitAdjustTimeCnt);var u=i.bufferedPoint;u.end>0&&u.end-a>=2&&(o.useWaitingInBufferOptimize&&(s.ZP.log(o.vid,"useWaitingInBuffer isseek",i.isSeeking),i.isSeeking?t._waitInBufferTimer=setTimeout(function(){clearTimeout(t._waitInBufferTimer);var n=i.currentTime;n===a&&!i.paused&&(s.ZP.log(o.vid,"useWaitingInBuffer seek, curTime, ",a,", time, ",n),i.currentTime=i.currentTime+.1,i._invalidSeekTag=!0)},500):t._lastWaitTimestamp-c>1e3&&(s.ZP.log(o.vid,"useWaitingInBuffer seek 0.1"),i.currentTime=i.currentTime+.1,i._invalidSeekTag=!0)),t._waitAdjustTimeCnt<o.waitJampBufferMaxCnt&&(t._waitInBufferTimer=setTimeout(function(){t._waitAdjustTimeCnt++,i.currentTime=i.currentTime+.5},o.waitingInBufferTimeOut)))}),t}return(0,o.XW)(n,t),(0,o.qH)(n,[{key:"initDashPlayer",value:function(t){this._checkVideoSwitch(),this._hasTriggerBufferThreshold=!1,this._lastWaitTimestamp=-1,this._setArgsFromConfig(),this.lastBuffer="0,0",this._menuCodeType=null,this._setConfigDashType(),l.Z.promisePolyfill(),(window.location.href.indexOf("playerInstance=true")>-1||A.Xb.getItem("playerInstance"))&&(void 0===window.dashPlayerInstanceList&&(window.dashPlayerInstanceList=[]),window.dashPlayerInstanceList.push(t)),this._startBufferCheck(),this.changeKernal(!1),window.addEventListener("beforeunload",this.cacheSpeed)}},{key:"_checkVideoSwitch",value:function(){var t=this.player,n=this.playerConfig.mediaType;if(this.softVideo="xg-video"===n,!(t.video instanceof HTMLVideoElement)&&!this.softVideo){var i=a.Util.createDom("video","",this.getVideoConfig(this.playerConfig));this.removeVideo=t.video,i.muted=t.video.muted,i.volume=t.video.volume,t.video=i,t.attachVideoEvents(t.video);var o=this.removeVideo.parentNode;o&&o.removeChild(this.removeVideo),this.removeVideo=null}}},{key:"getVideoConfig",value:function(t){var n=Object.assign({},{controls:!1,autoplay:t.autoplay,playsinline:t.playsinline,"x5-playsinline":t.playsinline,"webkit-playsinline":t.playsinline,"x5-video-player-fullscreen":t["x5-video-player-fullscreen"]||t.x5VideoPlayerFullscreen,"x5-video-orientation":t["x5-video-orientation"]||t.x5VideoOrientation,airplay:t.airplay,"webkit-airplay":t.airplay,tabindex:2,mediaType:t.mediaType||"video"},t.videoConfig,t.videoAttributes);return t.loop&&(n.loop="loop"),n}},{key:"bitRateAdapter",get:function(){var t=this.player,n=this.config;return t&&t.plugins?n.needAutoBitrate?t.plugins.bitrateselector:null:null}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NEXT",i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;s.ZP.log("next currentTime: ".concat(t,", nextType: ").concat(n,", autoplay:").concat(o));var l=this.player,d=this.config;this._setStartTimelineData(),this._unbindPlayerProxyAttr(),a.BasePlugin.defineGetterOrSetter(l,T(this)),this._pausedWhenExpiredRestart=!1,"MEDIA_EXPIRED"===n&&l.paused&&(this._pausedWhenExpiredRestart=!0),l.dashState=c.U2;var f=!1;if(!l.isSrcVoid&&(d.dashOpts||d.mp4Opts)&&!l.ended&&"MEDIA_EXPIRED"!==n&&"REPLAY"!==n&&l.duration&&l.currentTime<l.duration-c.Z6&&(l.emit("logger_next",n),f=!0),this._hasTriggerBufferThreshold=!1,l.emit("next",n),l.emit("playertypechange"),i)for(var A in i)d[A]=i[A];l.config.vid&&(d.vid=l.config.vid),d.duration>0&&(d.duration=0),l.config.duration&&(d.duration=l.config.duration),this._setDefinitionConfig(),this._setArgsFromConfig(),f&&this._setConfigDashType(),"NEXT"===n&&l.resetState&&l.resetState(),l.config.startTime=t,l.config.startTimeCache=t,i&&(l.config.DASHPlugin=i);var h=l.config.autoplay;this._pausedWhenExpiredRestart&&h&&(l.config.autoplay=!1,l.once("canplay",function(){setTimeout(function(){l.config.autoplay=h,l.pause()})})),this._syncParameters(),this.changeKernal(!0,!0,u),(o||l.config.autoplay)&&!this._pausedWhenExpiredRestart&&l.once("canplay",function(){if(l.video&&(l.config.autoplay||o)){var t=l.video.play();t&&t.catch(function(){})}}),this._pausedWhenExpiredRestart&&(this._pausedWhenExpiredRestart=!1)}},{key:"_replay",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.player;this.config.replayReset?this.next(t,"REPLAY",void 0,!0):(n.currentTime=0,this._kernal&&this._kernal.replay&&this._kernal.replay())}},{key:"_setDefinitionConfig",value:function(){var t=this.player,n=this.config;if(t.config.definition){var i=t.config.definition,o=i.definitionText,a=i.defaultDefinition;o&&(n.definition=o),a&&(n.defaultDefinition=a)}}},{key:"startPlayHandler",value:function(t,n,i){var o=this.config;(o.dashOpts||o.mp4Opts)&&this._setStartTime(i,t,"NEXT"===n||"REPLAY"===n,!0)}},{key:"beforePlayerInit",value:function(){if(!this._hasExecuteBeforeInit)this._hasExecuteBeforeInit=!0}},{key:"afterCreate",value:function(){var t=this;this.steps=[];var n=this.player,i=this.config;n.isReady=!0,this._kernalType===R.DASH&&(n.vtype="DASH"),this._unbindPlayerProxyAttr(),a.BasePlugin.defineGetterOrSetter(n,T(this)),this._syncParameters(),n.config.nullUrlStart=!0,this._setDefinitionConfig(),(0,s.jl)().logMaxSize=i.logMaxSize,this._proxyPlayer(),this.initDashPlayer(n),this._setStartTimelineData(),this.on("xglog",function(i){if("firstFrame"===i.eventType){s.ZP.log("[xgplayer-encrypt]>>>>firstFrame ",t.playerConfig.vid,i.fvt,"stat",n.stat),t._hasFirstFramed=!0,t.setStartTimelineAttr("ffcost",i.fvt);var o,a,c=n.vtype===d.l0.DASH?null===(o=t._startTimelines)||void 0===o?void 0:o.reqtime:null===(a=t._startTimelines)||void 0===a?void 0:a.downgradetime;t.setStartTimelineAttr("fcost",l.Z.nowTime()-c)}}),this._bindEvents(),this.setStartTimelines(d.l1.BEFEORE_START,{message:"after create"})}},{key:"setStartTimelines",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._hasFirstFramed&&this._startTimelines){this._startTimelines.startstage=t,this._startTimelines.startmessage="".concat(d.sm[t]||"","-").concat((null==n?void 0:n.message)||"");var i=this._startTimelines.httpCode;this._startTimelines.httpCode=-1!==i?i:(null==n?void 0:n.httpCode)||-1,t===d.l1.PLAYER_ERROR&&(this._startTimelines.playerError=(null==n?void 0:n.message)||"")}}},{key:"_setStartTimelineData",value:function(){this._startTimelines={startstage:-1,startmessage:"",httpCode:-1,httpError:[],reqtime:-1,downgradetime:-1,fcost:-1,ffcost:-1,startbufferlength:-1,playerError:"",startdelta:-1,loadstarttime:-1,loadeddatatime:-1,loadstarttype:-1,loadeddatatype:-1,playtime:-1,playerstate:-1},this._hasFirstFramed=!1}},{key:"setStartTimelineAttr",value:function(t,n){this._startTimelines&&(this._startTimelines[t]=n)}},{key:"info",value:function(t){var n=this.player;S&&n.emit(S.STATS_INFO,t),t.add&&this.steps.push(t)}},{key:"resetStat",value:function(){var t=this.player;S&&t.emit(S.STATS_RESET)}},{key:"_syncParameters",value:function(){var t,n=this.config,i=this.playerConfig,o=n.vid||i.vid;n.vid=i.vid=o,i.autoBitrateOpts=n.autoBitrateOpts,null===(t=this.player.preloader)||void 0===t||t.addPlayingId(i.vid,this.player.playerId)}},{key:"_proxyPlayer",value:function(){var t=this,n=this.player,i=this.config;this._originStartInit=n._startInit,n.getPreloadInfos=this.getPreloadInfos.bind(this),n.useHooks("replay",function(n){t._replay()}),n.useHooks("play",function(){var i;t._playTime=l.Z.nowTime(),s.ZP.log(null==n||null===(i=n.config)||void 0===i?void 0:i.vid,"play",t._playTime)}),n.useHooks("pause",function(){var i;t._pauseTime=l.Z.nowTime(),s.ZP.log(null==n||null===(i=n.config)||void 0===i?void 0:i.vid,"puase",t._pauseTime)}),"function"==typeof this.player.playNext&&(D=this.player.playNext),this.player.playNext=function(){t.playNext.apply(t,arguments)},"function"==typeof this.player.resetState&&(this._originResetState=this.player.resetState,this.player.resetState=function(){t._originResetState.call(t.player);var o=t.player.isNetError;s.ZP.log("resetState",i.resetStateUpdrade,"isNetError",o),i.resetStateUpdrade&&"dash_mp4_2"===n.vtype&&(o?t._kernal._hasHandleError=!1:(t.config.defaultFormat="dash",n.hasStart=!0,t.changeKernal())),t.player.isNetError=!1})}},{key:"playNext",value:function(){for(var t=this.player,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i[0],s=i[1],c=i[2],u=i[3];t.setConfig(a),this.next(s,c,a.DASHPlugin,u)}},{key:"_setKernalType",value:function(){var t=this.config,n=this.playerConfig;t.dashOpts||t.mp4Opts?t.dashOpts&&t.mp4Opts?this._kernalType=t.defaultFormat.toLowerCase():t.dashOpts?this._kernalType=R.DASH:this._kernalType=R.MP4:this._kernalType=R.VOID,this.config.useMSENotOpenDegrade&&parseInt((0,E.uS)(c.Hy)||"0")>=this.config.mseNotOpenDegradeCount&&(t.mp4Opts||n.downgradeUrl)&&(s.ZP.log("mse not opendegrade to mp4"),t.defaultFormat="mp4",this._kernalType=R.MP4)}},{key:"changeKernal",value:function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.player;this.destroyKernal(),this._setKernalType();var a=this._kernalType;this._pauseTime=-1,this._playTime=-1,this._hasPlayAbortRetry=!1,a===R.VOID?(o.isSrcVoid=!0,o.emit("playOptsVoid"),this.setStartTimelines(d.l1.BEFEORE_START,{message:"init playOptsVoid"}),n&&o.emit("nextEnded")):(o.isSrcVoid=!1,this._setStartTime("destroy",o.config.startTime,!0,!1),a===R.MP4?(this._kernal=new _(this),o.vtype="dash_mp4"):a===R.DASH&&(this._kernal=new h.Z(this),o.vtype="DASH"),i&&(o.vtype=i),"dash_mp4_2"===o.vtype&&(this._startTimelines.downgradetime=l.Z.nowTime()),this.setStartTimelines(d.l1.BEFEORE_START,{message:"init no start"})),t&&this._kernal&&(this._kernal.start(),n&&this._kernal.executeReady())}},{key:"destroyKernal",value:function(){if(this._kernal){var t;s.ZP.log(null===(t=this.config)||void 0===t?void 0:t.vid,"destroyKernal type ".concat(this._kernalType)),this._kernal.destroy(),this._kernal=null}}},{key:"originStartInit",get:function(){return this._originStartInit}},{key:"_setArgsFromConfig",value:function(){var t=this.config;this._bufferThreshold=t.bufferThreshold,this.playFlag=!1,this.waitLevelStartTime=-1,this._waitAdjustTimeCnt=0}},{key:"setCurrentDefitionInfos",value:function(t,n){var i,a=n?n.fps:void 0;this._currentDefinition={definition:t,fps:a,item:n},!(null!==(i=this.player.abrInstance)&&void 0!==i&&i.isCurrentInAbr)&&(this.player.curDefinition=(0,o.Zj)({},n),this._kernalType===R.DASH&&this._kernal.setAudioDefinition())}},{key:"handleUrlExpire",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.config,a=this.player,s=a.paused,u=new Date().getTime()/1e3>=t.urlExpireTimestamp&&t.urlExpireTimestamp>0;if(u&&(i||!s)&&o.getServerTime)a.serverTimeDiffPromise=a.serverTimeDiffPromise||o.getServerTime().catch(function(){return 0}),a.serverTimeDiffPromise.then(function(i){if(i&&(a.serverTimeDiff=new Date().getTime()/1e3-i),new Date().getTime()/1e3>=t.urlExpireTimestamp+a.serverTimeDiff){t.urlExpireTimestamp=c.Lc;var o=new g.Z(y.wb.NETWORK_FORBIDDEN);n.emitExpireEvent(o)}});else if(u){var l=new g.Z(y.wb.NETWORK_FORBIDDEN);this.emitExpireEvent(l)}}},{key:"emitExpireEvent",value:function(t){var n=this.player,i=new Date().getTime()/1e3;this.emitExpireTimestamp?i-this.emitExpireTimestamp>c.vp&&(this.emitExpireTimestamp=i,n.emit("MEDIA_EXPIRED",t),this.info({msg:"MEDIA_EXPIRED"})):(this.emitExpireTimestamp=i,n.emit("MEDIA_EXPIRED",t),this.info({msg:"MEDIA_EXPIRED"}))}},{key:"_getCurDashType",value:function(){var t=A.Xb.getItem(c.WV),n=c.sp;return t===n.BACK?t:n.MAIN}},{key:"_setCurDashType",value:function(){this._initDashType=this._getCurDashType()}},{key:"_setConfigDashType",value:function(){this._setCurDashType();var t,n=null===(t=this.playerConfig)||void 0===t?void 0:t.vodLogOpts;n&&(n.currentDashType=this._initDashType)}},{key:"setCodeInfo",value:function(t){var n,i=null===(n=this.playerConfig)||void 0===n?void 0:n.vodLogOpts;"h265"===t&&(t="hevc");var o=p.$V[t],a=p.$V[p.d0.AVC],s=a.logCodeType,c=a.codecs;o&&(s=o.logCodeType,c=o.codecs),i&&(i.codec_type=s),this.menuCodeType=c,this.config&&(this.config.codecType=s)}},{key:"cacheSpeed",value:function(){try{var t=I.Z.historyAvspeed;t>0&&t!==1/0&&A.Xb.setItem(c.OU,t)}catch(t){}window.removeEventListener("beforeunload",this.cacheSpeed)}},{key:"unloadVideo",value:function(){var t=this.player;try{t.video&&t.video.src&&(t.video.removeAttribute("src"),t.video.load())}catch(t){}}},{key:"destroy",value:function(){var t;clearInterval(this._bufferCheckTimer),this.cacheSpeed(),this.destroyKernal(),this._unbindPlayerProxyAttr(),this.player.playNext=D,this.player.removeHooks("replay"),null===(t=this.player.preloader)||void 0===t||t.removePlayingId(this.player.playerId),this.off("seeking",this._onSeeking),this.off("waiting",this._onWaiting),this.off("playing",this._onPlaying),this.off("source_error",this._onSourceError),this.off("error",this._onSourceError),this.off(a.Events.LOAD_START,this._onLoadStart),this.off(a.Events.LOADED_DATA,this._onLoadData),this.off(a.Events.AUTOPLAY_STARTED,this._onPlayStarted),this.off("AbortError",this._onPlayAbort),this._originResetState&&(this.player.resetState=this._originResetState)}},{key:"_unbindPlayerProxyAttr",value:function(){var t=T(this),n=this.player;Object.keys(t).forEach(function(t){delete n[t]})}},{key:"_bindEvents",value:function(){this.on("playing",this._onPlaying),this.on("seeking",this._onSeeking),this.on("waiting",this._onWaiting),this.on("source_error",this._onSourceError),this.on("error",this._onSourceError),this.on(a.Events.LOAD_START,this._onLoadStart),this.on(a.Events.LOADED_DATA,this._onLoadData),this.on(a.Events.AUTOPLAY_STARTED,this._onPlayStarted),this.on("AbortError",this._onPlayAbort)}},{key:"getPreloadInfos",value:function(){return null}},{key:"getPreloadStat",value:function(){return{}}},{key:"_onBufferReachThreshold",value:function(){var t=this.player;if(t.video){for(var n=t.video.buffered,i=0,o=0,a=0;a<n.length&&(i=n.start(a),o=n.end(a),!(i<=t.video.currentTime)||!(t.video.currentTime<=o));a++);o-t.video.currentTime>=this._bufferThreshold&&!this._hasTriggerBufferThreshold&&(this._hasTriggerBufferThreshold=!0,t.emit("BUFFER_THRESHOLD",o-t.video.currentTime))}}},{key:"_startBufferCheck",value:function(){var t=this,n=this.player;this._bufferCheckTimer=setInterval(function(){if(!!n.video){var i=[];try{for(var o=0,a=n.video.buffered.length;o<a;o++)i.push([n.video.buffered.start(o),n.video.buffered.end(o)]);i.toString()!==t.lastBuffer&&(t.lastBuffer=i.toString(),t._onBufferReachThreshold())}catch(t){}}},200)}},{key:"_setStartTime",value:function(t,n,i,o){var a=this,s=this.player,c=this.playerConfig,u=this.config;if(n>0||o){var d=!1,f=function(){!d&&(d=!0,s.currentTime=n,c.startTime=0,i&&n>0&&s.emit("setStartTime"),"mp4"===u.defaultFormat&&a.setCodeInfo(p.d0.AVC))};l.Z.once(s,"canplay",f,t),l.Z.once(s,"playing",f,t)}}},{key:"preloadManager",get:function(){return this.player.preloader}},{key:"domain",get:function(){return this._cdnHost?this._cdnHost:null}},{key:"playerType",get:function(){return"dash"===this.config.defaultFormat?"dash":"dash_mp4_2"}},{key:"supportMenus",get:function(){var t="dash"===this.config.defaultFormat;return{speed:t,cdn:t,resolution:t}}},{key:"currentDefitionFromPlayer",get:function(){return this._currentDefinition}},{key:"abrInstance",get:function(){return this._kernal&&this._kernal.abrInstance?this._kernal.abrInstance:null}},{key:"menuCodeType",get:function(){return this._menuCodeType},set:function(t){var n=this.player;this._menuCodeType=t,null==n||n.emit("codecsupdate",t)}},{key:"stat",get:function(){var t=this.player;if(this._kernal&&!t.isSrcVoid){var n=this._kernal.getStat();return n.steps=this.steps.slice(0,Math.max(10,this.steps.length)),this.steps=[],t.video&&t.video.error&&(n.media={readyState:t.video.readyState,error:t.video.error.code,errorMsg:t.video.error.message}),n}return null}},{key:"loadURL",get:function(){return this._loadURL},set:function(t){this._loadURL=t;var n=l.Z.getHostFromUrl(t);this._cdnHost!==n&&(this._cdnHost=n,this.player&&this.player.emit("changeHost",n))}},{key:"onPreChangeDefinition",value:function(t,n){var i=this._kernal instanceof _?n:t;return this._kernal.onPreChangeDefinition(i)}},{key:"isSuspendLoading",get:function(){var t;return(null===(t=this._kernal)||void 0===t?void 0:t.isSuspendLoading)||!1}},{key:"suspendLoading",value:function(){var t,n;null===(t=this._kernal)||void 0===t||null===(n=t.suspendLoading)||void 0===n||n.call(t)}},{key:"resumeLoading",value:function(){var t,n;null===(t=this._kernal)||void 0===t||null===(n=t.resumeLoading)||void 0===n||n.call(t)}}],[{key:"pluginName",get:function(){return"DASHPlugin"}},{key:"defaultConfig",get:function(){return w.g}},{key:"isEMESupported",value:function(){return(0,u.isEMESupported)()}},{key:"encryptUtils",get:function(){return u}}])}(f.q);B.updateUnionInfo=b.XGSecretKey.updateUnionInfo,B.generateEncryptInfo=b.XGSecretKey.generateEncryptInfo,B.registerPreloader=f.q.registerPreloader,B.getSharedDynamicTimeoutIns=C.wN},521323:function(t,n,i){"use strict";i.d(n,{ZP:function(){return g},jl:function(){return h},qu:function(){return s}}),i(346984),i(303846),i(759943),i(112459);var o=i(298757),a=i(338726),s=function(){return"undefined"!=typeof window&&(window.location.search.indexOf("log=true")>-1||!!o.Xb.getItem("abrdebug")||!!o.Xb.getItem("playerlog"))}(),c=new a.Y("Logger",{logCacheLevel:a._.DEBUG});s&&a.Y.enable();var u={},l={log:"log",network:"network",abr:"abr",encrypt:"encrypt",segment:"segment",definition:"definition",content:"content",mse:"mse",media:"media",time:"time",preload:"preload",gap:"gap"},d=["abr"],f=function(t){d.includes(t)?s?u[t]=function(){for(var n,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];(n=console).log.apply(n,["[".concat(t,"]"),new Date().toLocaleString()].concat(o))}:u[t]=function(){}:u[t]=function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];c.log.apply(c,["[".concat(t,"]")].concat(i))}};for(var A in l)f(A);function h(){return c}let g=u},588987:function(t,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(236699),a=function(){function t(n){(0,o.PA)(this,t),this.alpha_=Math.exp(Math.log(.5)/n),this.estimate_=0,this.totalWeight_=0}return(0,o.qH)(t,[{key:"updateAlpha",value:function(t){this.alpha_=Math.exp(Math.log(.5)/t)}},{key:"sample",value:function(t,n){var i=Math.pow(this.alpha_,t),o=n*(1-i)+i*this.estimate_;!Number.isNaN(o)&&(this.estimate_=o,this.totalWeight_+=t)}},{key:"getEstimate",value:function(){var t=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}}]),t}()},123563:function(t,n,i){"use strict";i.d(n,{Z:function(){return s}});var o,a=i(236699);var s=(o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var n,i,s,c,u,l,d,f,A,h,g,p,v,y,m,_,I,b,C,k,w,E,t=void 0!==(t=t||{})?t:{},S=Object.assign;t.ready=new Promise(function(t,o){n=t,i=o});var R=S({},t),T="./this.program",D="";"undefined"!=typeof document&&document.currentScript&&(D=document.currentScript.src),o&&(D=o),D=0!==D.indexOf("blob:")?D.substr(0,D.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s=function(t){var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(null),n.responseText},c=function(t,n,i){var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="arraybuffer",o.onload=function(){if(200==o.status||0==o.status&&o.response){n(o.response);return}i()},o.onerror=i,o.send(null)};var B=t.print||void 0,P=t.printErr||void 0;S(t,R),R=null,t.arguments&&t.arguments,t.thisProgram&&(T=t.thisProgram),t.quit&&t.quit,t.wasmBinary&&(l=t.wasmBinary),t.noExitRuntime,("undefined"==typeof WebAssembly?"undefined":(0,a.Ac)(WebAssembly))!=="object"&&Q("no native wasm support detected");var x=!1;function Z(n){return t["_"+n]}var O="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function L(t,n,i){for(var o=n+i,a=n;t[a]&&!(a>=o);)++a;if(a-n>16&&t.subarray&&O)return O.decode(t.subarray(n,a));for(var s="";n<a;){var c=t[n++];if(!(128&c)){s+=String.fromCharCode(c);continue}var u=63&t[n++];if((224&c)==192){s+=String.fromCharCode((31&c)<<6|u);continue}var l=63&t[n++];if((c=(240&c)==224?(15&c)<<12|u<<6|l:(7&c)<<18|u<<12|l<<6|63&t[n++])<65536)s+=String.fromCharCode(c);else{var d=c-65536;s+=String.fromCharCode(55296|d>>10,56320|1023&d)}}return s}function N(t,n){return t?L(h,t,n):""}function M(t,n,i,o){if(!(o>0))return 0;for(var a=i,s=i+o-1,c=0;c<t.length;++c){var u=t.charCodeAt(c);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&t.charCodeAt(++c)),u<=127){if(i>=s)break;n[i++]=u}else if(u<=2047){if(i+1>=s)break;n[i++]=192|u>>6,n[i++]=128|63&u}else if(u<=65535){if(i+2>=s)break;n[i++]=224|u>>12,n[i++]=128|u>>6&63,n[i++]=128|63&u}else{if(i+3>=s)break;n[i++]=240|u>>18,n[i++]=128|u>>12&63,n[i++]=128|u>>6&63,n[i++]=128|63&u}}return n[i]=0,i-a}function V(t,n,i){return M(t,h,n,i)}function G(t){for(var n=0,i=0;i<t.length;++i){var o=t.charCodeAt(i);o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),o<=127?++n:o<=2047?n+=2:o<=65535?n+=3:n+=4}return n}function F(t,n){A.set(t,n)}function U(n){f=n,t.HEAP8=A=new Int8Array(n),t.HEAP16=g=new Int16Array(n),t.HEAP32=v=new Int32Array(n),t.HEAPU8=h=new Uint8Array(n),t.HEAPU16=p=new Uint16Array(n),t.HEAPU32=y=new Uint32Array(n),t.HEAPF32=m=new Float32Array(n),t.HEAPF64=_=new Float64Array(n)}t.INITIAL_MEMORY;var j=[],W=[],H=[],Y=[],X=0,K=null;function J(n){X++,t.monitorRunDependencies&&t.monitorRunDependencies(X)}function z(n){if(X--,t.monitorRunDependencies&&t.monitorRunDependencies(X),0==X&&K){var i=K;K=null,i()}}function Q(n){t.onAbort&&t.onAbort(n),P(n="Aborted("+n+")"),x=!0,n+=". Build with -s ASSERTIONS=1 for more info.";var o=new WebAssembly.RuntimeError(n);throw i(o),o}t.preloadedImages={},t.preloadedAudios={};function q(t){try{if(t==b&&l)return new Uint8Array(l);if(u);else throw"both async and sync fetching of the wasm failed"}catch(t){Q(t)}}b=t.wasmBinaryFile;function $(n){for(;n.length>0;){var i=n.shift();if("function"==typeof i){i(t);continue}var o=i.func;"number"==typeof o?void 0===i.arg?(function(t){return I.get(t)})(o)():(function(t){return I.get(t)})(o)(i.arg):o(void 0===i.arg?null:i.arg)}}function ee(t){return I.get(t)}function et(t){this.excPtr=t,this.ptr=t-16,this.set_type=function(t){v[this.ptr+4>>2]=t},this.get_type=function(){return v[this.ptr+4>>2]},this.set_destructor=function(t){v[this.ptr+8>>2]=t},this.get_destructor=function(){return v[this.ptr+8>>2]},this.set_refcount=function(t){v[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,A[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=A[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,A[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=A[this.ptr+13>>0]},this.init=function(t,n){this.set_type(t),this.set_destructor(n),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=v[this.ptr>>2];v[this.ptr>>2]=t+1},this.release_ref=function(){var t=v[this.ptr>>2];return v[this.ptr>>2]=t-1,1===t}}var er={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,n){for(var i=0,o=t.length-1;o>=0;o--){var a=t[o];"."===a?t.splice(o,1):".."===a?(t.splice(o,1),i++):i&&(t.splice(o,1),i--)}if(n)for(;i;i--)t.unshift("..");return t},normalize:function(t){var n="/"===t.charAt(0),i="/"===t.substr(-1);return!(t=er.normalizeArray(t.split("/").filter(function(t){return!!t}),!n).join("/"))&&!n&&(t="."),t&&i&&(t+="/"),(n?"/":"")+t},dirname:function(t){var n=er.splitPath(t),i=n[0],o=n[1];return i||o?(o&&(o=o.substr(0,o.length-1)),i+o):"."},basename:function(t){if("/"===t)return"/";var n=(t=(t=er.normalize(t)).replace(/\/$/,"")).lastIndexOf("/");return -1===n?t:t.substr(n+1)},extname:function(t){return er.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return er.normalize(t.join("/"))},join2:function(t,n){return er.normalize(t+"/"+n)}},en={resolve:function(){for(var t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var o=i>=0?arguments[i]:ea.cwd();if("string"!=typeof o)throw TypeError("Arguments to path.resolve must be strings");if(!o)return"";t=o+"/"+t,n="/"===o.charAt(0)}return t=er.normalizeArray(t.split("/").filter(function(t){return!!t}),!n).join("/"),(n?"/":"")+t||"."},relative:function(t,n){function i(t){for(var n=0;n<t.length&&""===t[n];n++);for(var i=t.length-1;i>=0&&""===t[i];i--);return n>i?[]:t.slice(n,i-n+1)}t=en.resolve(t).substr(1),n=en.resolve(n).substr(1);for(var o=i(t.split("/")),a=i(n.split("/")),s=Math.min(o.length,a.length),c=s,u=0;u<s;u++)if(o[u]!==a[u]){c=u;break}for(var l=[],u=c;u<o.length;u++)l.push("..");return(l=l.concat(a.slice(c))).join("/")}},ei={ttys:[],init:function(){},shutdown:function(){},register:function(t,n){ei.ttys[t]={input:[],output:[],ops:n},ea.registerDevice(t,ei.stream_ops)},stream_ops:{open:function(t){var n=ei.ttys[t.node.rdev];if(!n)throw new ea.ErrnoError(43);t.tty=n,t.seekable=!1},close:function(t){t.tty.ops.flush(t.tty)},flush:function(t){t.tty.ops.flush(t.tty)},read:function(t,n,i,o,a){if(!t.tty||!t.tty.ops.get_char)throw new ea.ErrnoError(60);for(var s,c=0,u=0;u<o;u++){try{s=t.tty.ops.get_char(t.tty)}catch(t){throw new ea.ErrnoError(29)}if(void 0===s&&0===c)throw new ea.ErrnoError(6);if(null==s)break;c++,n[i+u]=s}return c&&(t.node.timestamp=Date.now()),c},write:function(t,n,i,o,a){if(!t.tty||!t.tty.ops.put_char)throw new ea.ErrnoError(60);try{for(var s=0;s<o;s++)t.tty.ops.put_char(t.tty,n[i+s])}catch(t){throw new ea.ErrnoError(29)}return o&&(t.node.timestamp=Date.now()),s}},default_tty_ops:{get_char:function(t){if(!t.input.length){var n=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(n=window.prompt("Input: "))&&(n+="\n"):"function"==typeof readline&&null!==(n=readline())&&(n+="\n"),!n)return null;t.input=eC(n,!0)}return t.input.shift()},put_char:function(t,n){null===n||10===n?(B(L(t.output,0)),t.output=[]):0!=n&&t.output.push(n)},flush:function(t){t.output&&t.output.length>0&&(B(L(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,n){null===n||10===n?(P(L(t.output,0)),t.output=[]):0!=n&&t.output.push(n)},flush:function(t){t.output&&t.output.length>0&&(P(L(t.output,0)),t.output=[])}}},eo={ops_table:null,mount:function(t){return eo.createNode(null,"/",16895,0)},createNode:function(t,n,i,o){if(ea.isBlkdev(i)||ea.isFIFO(i))throw new ea.ErrnoError(63);!eo.ops_table&&(eo.ops_table={dir:{node:{getattr:eo.node_ops.getattr,setattr:eo.node_ops.setattr,lookup:eo.node_ops.lookup,mknod:eo.node_ops.mknod,rename:eo.node_ops.rename,unlink:eo.node_ops.unlink,rmdir:eo.node_ops.rmdir,readdir:eo.node_ops.readdir,symlink:eo.node_ops.symlink},stream:{llseek:eo.stream_ops.llseek}},file:{node:{getattr:eo.node_ops.getattr,setattr:eo.node_ops.setattr},stream:{llseek:eo.stream_ops.llseek,read:eo.stream_ops.read,write:eo.stream_ops.write,allocate:eo.stream_ops.allocate,mmap:eo.stream_ops.mmap,msync:eo.stream_ops.msync}},link:{node:{getattr:eo.node_ops.getattr,setattr:eo.node_ops.setattr,readlink:eo.node_ops.readlink},stream:{}},chrdev:{node:{getattr:eo.node_ops.getattr,setattr:eo.node_ops.setattr},stream:ea.chrdev_stream_ops}});var a=ea.createNode(t,n,i,o);return ea.isDir(a.mode)?(a.node_ops=eo.ops_table.dir.node,a.stream_ops=eo.ops_table.dir.stream,a.contents={}):ea.isFile(a.mode)?(a.node_ops=eo.ops_table.file.node,a.stream_ops=eo.ops_table.file.stream,a.usedBytes=0,a.contents=null):ea.isLink(a.mode)?(a.node_ops=eo.ops_table.link.node,a.stream_ops=eo.ops_table.link.stream):ea.isChrdev(a.mode)&&(a.node_ops=eo.ops_table.chrdev.node,a.stream_ops=eo.ops_table.chrdev.stream),a.timestamp=Date.now(),t&&(t.contents[n]=a,t.timestamp=a.timestamp),a},getFileDataAsTypedArray:function(t){return t.contents?t.contents.subarray?t.contents.subarray(0,t.usedBytes):new Uint8Array(t.contents):new Uint8Array(0)},expandFileStorage:function(t,n){var i=t.contents?t.contents.length:0;if(!(i>=n)){n=Math.max(n,i*(i<1048576?2:1.125)>>>0),0!=i&&(n=Math.max(n,256));var o=t.contents;t.contents=new Uint8Array(n),t.usedBytes>0&&t.contents.set(o.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,n){if(t.usedBytes!=n){if(0==n)t.contents=null,t.usedBytes=0;else{var i=t.contents;t.contents=new Uint8Array(n),i&&t.contents.set(i.subarray(0,Math.min(n,t.usedBytes))),t.usedBytes=n}}},node_ops:{getattr:function(t){var n={};return n.dev=ea.isChrdev(t.mode)?t.id:1,n.ino=t.id,n.mode=t.mode,n.nlink=1,n.uid=0,n.gid=0,n.rdev=t.rdev,ea.isDir(t.mode)?n.size=4096:ea.isFile(t.mode)?n.size=t.usedBytes:ea.isLink(t.mode)?n.size=t.link.length:n.size=0,n.atime=new Date(t.timestamp),n.mtime=new Date(t.timestamp),n.ctime=new Date(t.timestamp),n.blksize=4096,n.blocks=Math.ceil(n.size/n.blksize),n},setattr:function(t,n){void 0!==n.mode&&(t.mode=n.mode),void 0!==n.timestamp&&(t.timestamp=n.timestamp),void 0!==n.size&&eo.resizeFileStorage(t,n.size)},lookup:function(t,n){throw ea.genericErrors[44]},mknod:function(t,n,i,o){return eo.createNode(t,n,i,o)},rename:function(t,n,i){if(ea.isDir(t.mode)){var o;try{o=ea.lookupNode(n,i)}catch(t){}if(o)for(var a in o.contents)throw new ea.ErrnoError(55)}delete t.parent.contents[t.name],t.parent.timestamp=Date.now(),t.name=i,n.contents[i]=t,n.timestamp=t.parent.timestamp,t.parent=n},unlink:function(t,n){delete t.contents[n],t.timestamp=Date.now()},rmdir:function(t,n){var i=ea.lookupNode(t,n);for(var o in i.contents)throw new ea.ErrnoError(55);delete t.contents[n],t.timestamp=Date.now()},readdir:function(t){var n=[".",".."];for(var i in t.contents){if(!!t.contents.hasOwnProperty(i))n.push(i)}return n},symlink:function(t,n,i){var o=eo.createNode(t,n,41471,0);return o.link=i,o},readlink:function(t){if(!ea.isLink(t.mode))throw new ea.ErrnoError(28);return t.link}},stream_ops:{read:function(t,n,i,o,a){var s=t.node.contents;if(a>=t.node.usedBytes)return 0;var c=Math.min(t.node.usedBytes-a,o);if(c>8&&s.subarray)n.set(s.subarray(a,a+c),i);else for(var u=0;u<c;u++)n[i+u]=s[a+u];return c},write:function(t,n,i,o,a,s){if(n.buffer===A.buffer&&(s=!1),!o)return 0;var c=t.node;if(c.timestamp=Date.now(),n.subarray&&(!c.contents||c.contents.subarray)){if(s)return c.contents=n.subarray(i,i+o),c.usedBytes=o,o;if(0===c.usedBytes&&0===a)return c.contents=n.slice(i,i+o),c.usedBytes=o,o;else if(a+o<=c.usedBytes)return c.contents.set(n.subarray(i,i+o),a),o}if(eo.expandFileStorage(c,a+o),c.contents.subarray&&n.subarray)c.contents.set(n.subarray(i,i+o),a);else for(var u=0;u<o;u++)c.contents[a+u]=n[i+u];return c.usedBytes=Math.max(c.usedBytes,a+o),o},llseek:function(t,n,i){var o=n;if(1===i?o+=t.position:2===i&&ea.isFile(t.node.mode)&&(o+=t.node.usedBytes),o<0)throw new ea.ErrnoError(28);return o},allocate:function(t,n,i){eo.expandFileStorage(t.node,n+i),t.node.usedBytes=Math.max(t.node.usedBytes,n+i)},mmap:function(t,n,i,o,a,s){if(0!==n)throw new ea.ErrnoError(28);if(!ea.isFile(t.node.mode))throw new ea.ErrnoError(43);var c,u,l,d=t.node.contents;if(2&s||d.buffer!==f){;(o>0||o+i<d.length)&&(d=d.subarray?d.subarray(o,o+i):Array.prototype.slice.call(d,o,o+i)),l=!0,u=void Q();throw new ea.ErrnoError(48)}else l=!1,u=d.byteOffset;return{ptr:u,allocated:l}},msync:function(t,n,i,o,a){if(!ea.isFile(t.node.mode))throw new ea.ErrnoError(43);return 2&a?0:(eo.stream_ops.write(t,n,0,o,i,!1),0)}}},ea={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t=en.resolve(ea.cwd(),t)))return{path:"",node:null};var i={follow_mount:!0,recurse_count:0};for(var o in i)void 0===n[o]&&(n[o]=i[o]);if(n.recurse_count>8)throw new ea.ErrnoError(32);for(var a=er.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),s=ea.root,c="/",u=0;u<a.length;u++){var l=u===a.length-1;if(l&&n.parent)break;if(s=ea.lookupNode(s,a[u]),c=er.join2(c,a[u]),ea.isMountpoint(s)&&(!l||l&&n.follow_mount)&&(s=s.mounted.root),!l||n.follow){for(var d=0;ea.isLink(s.mode);){var f=ea.readlink(c);if(c=en.resolve(er.dirname(c),f),s=ea.lookupPath(c,{recurse_count:n.recurse_count}).node,d++>40)throw new ea.ErrnoError(32)}}}return{path:c,node:s}},getPath:function(t){for(var n;;){if(ea.isRoot(t)){var i=t.mount.mountpoint;if(!n)return i;return"/"!==i[i.length-1]?i+"/"+n:i+n}n=n?t.name+"/"+n:t.name,t=t.parent}},hashName:function(t,n){for(var i=0,o=0;o<n.length;o++)i=(i<<5)-i+n.charCodeAt(o)|0;return(t+i>>>0)%ea.nameTable.length},hashAddNode:function(t){var n=ea.hashName(t.parent.id,t.name);t.name_next=ea.nameTable[n],ea.nameTable[n]=t},hashRemoveNode:function(t){var n=ea.hashName(t.parent.id,t.name);if(ea.nameTable[n]===t)ea.nameTable[n]=t.name_next;else{for(var i=ea.nameTable[n];i;){if(i.name_next===t){i.name_next=t.name_next;break}i=i.name_next}}},lookupNode:function(t,n){var i=ea.mayLookup(t);if(i)throw new ea.ErrnoError(i,t);for(var o=ea.hashName(t.id,n),a=ea.nameTable[o];a;a=a.name_next){var s=a.name;if(a.parent.id===t.id&&s===n)return a}return ea.lookup(t,n)},createNode:function(t,n,i,o){var a=new ea.FSNode(t,n,i,o);return ea.hashAddNode(a),a},destroyNode:function(t){ea.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return(61440&t)==32768},isDir:function(t){return(61440&t)==16384},isLink:function(t){return(61440&t)==40960},isChrdev:function(t){return(61440&t)==8192},isBlkdev:function(t){return(61440&t)==24576},isFIFO:function(t){return(61440&t)==4096},isSocket:function(t){return(49152&t)==49152},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(t){var n=ea.flagModes[t];if(void 0===n)throw Error("Unknown file open mode: "+t);return n},flagsToPermissionString:function(t){var n=["r","w","rw"][3&t];return 512&t&&(n+="w"),n},nodePermissions:function(t,n){if(ea.ignorePermissions)return 0;if(n.includes("r")&&!(292&t.mode))return 2;if(n.includes("w")&&!(146&t.mode))return 2;if(n.includes("x")&&!(73&t.mode))return 2;return 0},mayLookup:function(t){var n=ea.nodePermissions(t,"x");return n?n:t.node_ops.lookup?0:2},mayCreate:function(t,n){try{return ea.lookupNode(t,n),20}catch(t){}return ea.nodePermissions(t,"wx")},mayDelete:function(t,n,i){try{o=ea.lookupNode(t,n)}catch(t){return t.errno}var o,a=ea.nodePermissions(t,"wx");if(a)return a;if(i){if(!ea.isDir(o.mode))return 54;if(ea.isRoot(o)||ea.getPath(o)===ea.cwd())return 10}else if(ea.isDir(o.mode))return 31;return 0},mayOpen:function(t,n){return t?ea.isLink(t.mode)?32:ea.isDir(t.mode)&&("r"!==ea.flagsToPermissionString(n)||512&n)?31:ea.nodePermissions(t,ea.flagsToPermissionString(n)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea.MAX_OPEN_FDS,i=t;i<=n;i++)if(!ea.streams[i])return i;throw new ea.ErrnoError(33)},getStream:function(t){return ea.streams[t]},createStream:function(t,n,i){!ea.FSStream&&(ea.FSStream=function(){},ea.FSStream.prototype={object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return(2097155&this.flags)!=1}},isWrite:{get:function(){return(2097155&this.flags)!=0}},isAppend:{get:function(){return 1024&this.flags}}});var o=new ea.FSStream;for(var a in t)o[a]=t[a];t=o;var s=ea.nextfd(n,i);return t.fd=s,ea.streams[s]=t,t},closeStream:function(t){ea.streams[t]=null},chrdev_stream_ops:{open:function(t){var n=ea.getDevice(t.node.rdev);t.stream_ops=n.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new ea.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,n){return t<<8|n},registerDevice:function(t,n){ea.devices[t]={stream_ops:n}},getDevice:function(t){return ea.devices[t]},getMounts:function(t){for(var n=[],i=[t];i.length;){var o=i.pop();n.push(o),i.push.apply(i,o.mounts)}return n},syncfs:function(t,n){"function"==typeof t&&(n=t,t=!1),ea.syncFSRequests++,ea.syncFSRequests>1&&P("warning: "+ea.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var i=ea.getMounts(ea.root.mount),o=0;function a(t){return ea.syncFSRequests--,n(t)}function s(t){if(t)return s.errored?void 0:(s.errored=!0,a(t));++o>=i.length&&a(null)}i.forEach(function(n){if(!n.type.syncfs)return s(null);n.type.syncfs(n,t,s)})},mount:function(t,n,i){var o,a="/"===i,s=!i;if(a&&ea.root)throw new ea.ErrnoError(10);if(!a&&!s){var c=ea.lookupPath(i,{follow_mount:!1});if(i=c.path,o=c.node,ea.isMountpoint(o))throw new ea.ErrnoError(10);if(!ea.isDir(o.mode))throw new ea.ErrnoError(54)}var u={type:t,opts:n,mountpoint:i,mounts:[]},l=t.mount(u);return l.mount=u,u.root=l,a?ea.root=l:o&&(o.mounted=u,o.mount&&o.mount.mounts.push(u)),l},unmount:function(t){var n=ea.lookupPath(t,{follow_mount:!1});if(!ea.isMountpoint(n.node))throw new ea.ErrnoError(28);var i=n.node,o=i.mounted,a=ea.getMounts(o);Object.keys(ea.nameTable).forEach(function(t){for(var n=ea.nameTable[t];n;){var i=n.name_next;a.includes(n.mount)&&ea.destroyNode(n),n=i}}),i.mounted=null;var s=i.mount.mounts.indexOf(o);i.mount.mounts.splice(s,1)},lookup:function(t,n){return t.node_ops.lookup(t,n)},mknod:function(t,n,i){var o=ea.lookupPath(t,{parent:!0}).node,a=er.basename(t);if(!a||"."===a||".."===a)throw new ea.ErrnoError(28);var s=ea.mayCreate(o,a);if(s)throw new ea.ErrnoError(s);if(!o.node_ops.mknod)throw new ea.ErrnoError(63);return o.node_ops.mknod(o,a,n,i)},create:function(t,n){return n=(void 0!==n?n:438)&4095|32768,ea.mknod(t,n,0)},mkdir:function(t,n){return n=(void 0!==n?n:511)&1023|16384,ea.mknod(t,n,0)},mkdirTree:function(t,n){for(var i=t.split("/"),o="",a=0;a<i.length;++a)if(i[a]){o+="/"+i[a];try{ea.mkdir(o,n)}catch(t){if(20!=t.errno)throw t}}},mkdev:function(t,n,i){return void 0===i&&(i=n,n=438),n|=8192,ea.mknod(t,n,i)},symlink:function(t,n){if(!en.resolve(t))throw new ea.ErrnoError(44);var i=ea.lookupPath(n,{parent:!0}).node;if(!i)throw new ea.ErrnoError(44);var o=er.basename(n),a=ea.mayCreate(i,o);if(a)throw new ea.ErrnoError(a);if(!i.node_ops.symlink)throw new ea.ErrnoError(63);return i.node_ops.symlink(i,o,t)},rename:function(t,n){var i,o,a,s,c=er.dirname(t),u=er.dirname(n),l=er.basename(t),d=er.basename(n);if(o=(i=ea.lookupPath(t,{parent:!0})).node,a=(i=ea.lookupPath(n,{parent:!0})).node,!o||!a)throw new ea.ErrnoError(44);if(o.mount!==a.mount)throw new ea.ErrnoError(75);var f=ea.lookupNode(o,l),A=en.relative(t,u);if("."!==A.charAt(0))throw new ea.ErrnoError(28);if("."!==(A=en.relative(n,c)).charAt(0))throw new ea.ErrnoError(55);try{s=ea.lookupNode(a,d)}catch(t){}if(f!==s){var h=ea.isDir(f.mode),g=ea.mayDelete(o,l,h);if(g||(g=s?ea.mayDelete(a,d,h):ea.mayCreate(a,d)))throw new ea.ErrnoError(g);if(!o.node_ops.rename)throw new ea.ErrnoError(63);if(ea.isMountpoint(f)||s&&ea.isMountpoint(s))throw new ea.ErrnoError(10);if(a!==o&&(g=ea.nodePermissions(o,"w")))throw new ea.ErrnoError(g);ea.hashRemoveNode(f);try{o.node_ops.rename(f,a,d)}catch(t){throw t}finally{ea.hashAddNode(f)}}},rmdir:function(t){var n=ea.lookupPath(t,{parent:!0}).node,i=er.basename(t),o=ea.lookupNode(n,i),a=ea.mayDelete(n,i,!0);if(a)throw new ea.ErrnoError(a);if(!n.node_ops.rmdir)throw new ea.ErrnoError(63);if(ea.isMountpoint(o))throw new ea.ErrnoError(10);n.node_ops.rmdir(n,i),ea.destroyNode(o)},readdir:function(t){var n=ea.lookupPath(t,{follow:!0}).node;if(!n.node_ops.readdir)throw new ea.ErrnoError(54);return n.node_ops.readdir(n)},unlink:function(t){var n=ea.lookupPath(t,{parent:!0}).node;if(!n)throw new ea.ErrnoError(44);var i=er.basename(t),o=ea.lookupNode(n,i),a=ea.mayDelete(n,i,!1);if(a)throw new ea.ErrnoError(a);if(!n.node_ops.unlink)throw new ea.ErrnoError(63);if(ea.isMountpoint(o))throw new ea.ErrnoError(10);n.node_ops.unlink(n,i),ea.destroyNode(o)},readlink:function(t){var n=ea.lookupPath(t).node;if(!n)throw new ea.ErrnoError(44);if(!n.node_ops.readlink)throw new ea.ErrnoError(28);return en.resolve(ea.getPath(n.parent),n.node_ops.readlink(n))},stat:function(t,n){var i=ea.lookupPath(t,{follow:!n}).node;if(!i)throw new ea.ErrnoError(44);if(!i.node_ops.getattr)throw new ea.ErrnoError(63);return i.node_ops.getattr(i)},lstat:function(t){return ea.stat(t,!0)},chmod:function(t,n,i){var o;if(!(o="string"==typeof t?ea.lookupPath(t,{follow:!i}).node:t).node_ops.setattr)throw new ea.ErrnoError(63);o.node_ops.setattr(o,{mode:4095&n|-4096&o.mode,timestamp:Date.now()})},lchmod:function(t,n){ea.chmod(t,n,!0)},fchmod:function(t,n){var i=ea.getStream(t);if(!i)throw new ea.ErrnoError(8);ea.chmod(i.node,n)},chown:function(t,n,i,o){var a;if(!(a="string"==typeof t?ea.lookupPath(t,{follow:!o}).node:t).node_ops.setattr)throw new ea.ErrnoError(63);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown:function(t,n,i){ea.chown(t,n,i,!0)},fchown:function(t,n,i){var o=ea.getStream(t);if(!o)throw new ea.ErrnoError(8);ea.chown(o.node,n,i)},truncate:function(t,n){if(n<0)throw new ea.ErrnoError(28);if("string"==typeof t){var i;i=ea.lookupPath(t,{follow:!0}).node}else i=t;if(!i.node_ops.setattr)throw new ea.ErrnoError(63);if(ea.isDir(i.mode))throw new ea.ErrnoError(31);if(!ea.isFile(i.mode))throw new ea.ErrnoError(28);var o=ea.nodePermissions(i,"w");if(o)throw new ea.ErrnoError(o);i.node_ops.setattr(i,{size:n,timestamp:Date.now()})},ftruncate:function(t,n){var i=ea.getStream(t);if(!i)throw new ea.ErrnoError(8);if((2097155&i.flags)==0)throw new ea.ErrnoError(28);ea.truncate(i.node,n)},utime:function(t,n,i){var o=ea.lookupPath(t,{follow:!0}).node;o.node_ops.setattr(o,{timestamp:Math.max(n,i)})},open:function(n,i,o,s,c){if(""===n)throw new ea.ErrnoError(44);if(i="string"==typeof i?ea.modeStringToFlags(i):i,o=void 0===o?438:o,o=64&i?4095&o|32768:0,"object"===(0,a.Ac)(n))u=n;else{n=er.normalize(n);try{var u;u=ea.lookupPath(n,{follow:!(131072&i)}).node}catch(t){}}var l=!1;if(64&i){if(u){if(128&i)throw new ea.ErrnoError(20)}else u=ea.mknod(n,o,0),l=!0}if(!u)throw new ea.ErrnoError(44);if(ea.isChrdev(u.mode)&&(i&=-513),65536&i&&!ea.isDir(u.mode))throw new ea.ErrnoError(54);if(!l){var d=ea.mayOpen(u,i);if(d)throw new ea.ErrnoError(d)}512&i&&ea.truncate(u,0),i&=-131713;var f=ea.createStream({node:u,path:ea.getPath(u),flags:i,seekable:!0,position:0,stream_ops:u.stream_ops,ungotten:[],error:!1},s,c);return f.stream_ops.open&&f.stream_ops.open(f),t.logReadFiles&&!(1&i)&&(!ea.readFiles&&(ea.readFiles={}),!(n in ea.readFiles)&&(ea.readFiles[n]=1)),f},close:function(t){if(ea.isClosed(t))throw new ea.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(t){throw t}finally{ea.closeStream(t.fd)}t.fd=null},isClosed:function(t){return null===t.fd},llseek:function(t,n,i){if(ea.isClosed(t))throw new ea.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new ea.ErrnoError(70);if(0!=i&&1!=i&&2!=i)throw new ea.ErrnoError(28);return t.position=t.stream_ops.llseek(t,n,i),t.ungotten=[],t.position},read:function(t,n,i,o,a){if(o<0||a<0)throw new ea.ErrnoError(28);if(ea.isClosed(t)||(2097155&t.flags)==1)throw new ea.ErrnoError(8);if(ea.isDir(t.node.mode))throw new ea.ErrnoError(31);if(!t.stream_ops.read)throw new ea.ErrnoError(28);var s=void 0!==a;if(s){if(!t.seekable)throw new ea.ErrnoError(70)}else a=t.position;var c=t.stream_ops.read(t,n,i,o,a);return!s&&(t.position+=c),c},write:function(t,n,i,o,a,s){if(o<0||a<0)throw new ea.ErrnoError(28);if(ea.isClosed(t)||(2097155&t.flags)==0)throw new ea.ErrnoError(8);if(ea.isDir(t.node.mode))throw new ea.ErrnoError(31);if(!t.stream_ops.write)throw new ea.ErrnoError(28);t.seekable&&1024&t.flags&&ea.llseek(t,0,2);var c=void 0!==a;if(c){if(!t.seekable)throw new ea.ErrnoError(70)}else a=t.position;var u=t.stream_ops.write(t,n,i,o,a,s);return!c&&(t.position+=u),u},allocate:function(t,n,i){if(ea.isClosed(t))throw new ea.ErrnoError(8);if(n<0||i<=0)throw new ea.ErrnoError(28);if((2097155&t.flags)==0)throw new ea.ErrnoError(8);if(!ea.isFile(t.node.mode)&&!ea.isDir(t.node.mode))throw new ea.ErrnoError(43);if(!t.stream_ops.allocate)throw new ea.ErrnoError(138);t.stream_ops.allocate(t,n,i)},mmap:function(t,n,i,o,a,s){if((2&a)!=0&&(2&s)==0&&(2097155&t.flags)!=2||(2097155&t.flags)==1)throw new ea.ErrnoError(2);if(!t.stream_ops.mmap)throw new ea.ErrnoError(43);return t.stream_ops.mmap(t,n,i,o,a,s)},msync:function(t,n,i,o,a){return t&&t.stream_ops.msync?t.stream_ops.msync(t,n,i,o,a):0},munmap:function(t){return 0},ioctl:function(t,n,i){if(!t.stream_ops.ioctl)throw new ea.ErrnoError(59);return t.stream_ops.ioctl(t,n,i)},readFile:function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i.flags=i.flags||0,i.encoding=i.encoding||"binary","utf8"!==i.encoding&&"binary"!==i.encoding)throw Error('Invalid encoding type "'+i.encoding+'"');var o=ea.open(t,i.flags),a=ea.stat(t).size,s=new Uint8Array(a);return ea.read(o,s,0,a,0),"utf8"===i.encoding?n=L(s,0):"binary"===i.encoding&&(n=s),ea.close(o),n},writeFile:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.flags=i.flags||577;var o=ea.open(t,i.flags,i.mode);if("string"==typeof n){var a=new Uint8Array(G(n)+1),s=M(n,a,0,a.length);ea.write(o,a,0,s,void 0,i.canOwn)}else if(ArrayBuffer.isView(n))ea.write(o,n,0,n.byteLength,void 0,i.canOwn);else throw Error("Unsupported data type");ea.close(o)},cwd:function(){return ea.currentPath},chdir:function(t){var n=ea.lookupPath(t,{follow:!0});if(null===n.node)throw new ea.ErrnoError(44);if(!ea.isDir(n.node.mode))throw new ea.ErrnoError(54);var i=ea.nodePermissions(n.node,"x");if(i)throw new ea.ErrnoError(i);ea.currentPath=n.path},createDefaultDirectories:function(){ea.mkdir("/tmp"),ea.mkdir("/home"),ea.mkdir("/home/web_user")},createDefaultDevices:function(){ea.mkdir("/dev"),ea.registerDevice(ea.makedev(1,3),{read:function(){return 0},write:function(t,n,i,o,a){return o}}),ea.mkdev("/dev/null",ea.makedev(1,3)),ei.register(ea.makedev(5,0),ei.default_tty_ops),ei.register(ea.makedev(6,0),ei.default_tty1_ops),ea.mkdev("/dev/tty",ea.makedev(5,0)),ea.mkdev("/dev/tty1",ea.makedev(6,0));var t=function(){if(("undefined"==typeof crypto?"undefined":(0,a.Ac)(crypto))!=="object"||"function"!=typeof crypto.getRandomValues)return function(){Q("randomDevice")};var t=new Uint8Array(1);return function(){return crypto.getRandomValues(t),t[0]}}();ea.createDevice("/dev","random",t),ea.createDevice("/dev","urandom",t),ea.mkdir("/dev/shm"),ea.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){ea.mkdir("/proc");var t=ea.mkdir("/proc/self");ea.mkdir("/proc/self/fd"),ea.mount({mount:function(){var n=ea.createNode(t,"fd",16895,73);return n.node_ops={lookup:function(t,n){var i=ea.getStream(+n);if(!i)throw new ea.ErrnoError(8);var o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return i.path}}};return o.parent=o,o}},n}},{},"/proc/self/fd")},createStandardStreams:function(){t.stdin?ea.createDevice("/dev","stdin",t.stdin):ea.symlink("/dev/tty","/dev/stdin"),t.stdout?ea.createDevice("/dev","stdout",null,t.stdout):ea.symlink("/dev/tty","/dev/stdout"),t.stderr?ea.createDevice("/dev","stderr",null,t.stderr):ea.symlink("/dev/tty1","/dev/stderr"),ea.open("/dev/stdin",0),ea.open("/dev/stdout",1),ea.open("/dev/stderr",1)},ensureErrnoError:function(){!ea.ErrnoError&&(ea.ErrnoError=function(t,n){this.node=n,this.setErrno=function(t){this.errno=t},this.setErrno(t),this.message="FS error"},ea.ErrnoError.prototype=Error(),ea.ErrnoError.prototype.constructor=ea.ErrnoError,[44].forEach(function(t){ea.genericErrors[t]=new ea.ErrnoError(t),ea.genericErrors[t].stack="<generic error, no stack>"}))},staticInit:function(){ea.ensureErrnoError(),ea.nameTable=Array(4096),ea.mount(eo,{},"/"),ea.createDefaultDirectories(),ea.createDefaultDevices(),ea.createSpecialDirectories(),ea.filesystems={MEMFS:eo}},init:function(n,i,o){ea.init.initialized=!0,ea.ensureErrnoError(),t.stdin=n||t.stdin,t.stdout=i||t.stdout,t.stderr=o||t.stderr,ea.createStandardStreams()},quit:function(){ea.init.initialized=!1;for(var t=0;t<ea.streams.length;t++){var n=ea.streams[t];if(!!n)ea.close(n)}},getMode:function(t,n){var i=0;return t&&(i|=365),n&&(i|=146),i},findObject:function(t,n){var i=ea.analyzePath(t,n);return i.exists?i.object:null},analyzePath:function(t,n){try{var i=ea.lookupPath(t,{follow:!n});t=i.path}catch(t){}var o={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var i=ea.lookupPath(t,{parent:!0});o.parentExists=!0,o.parentPath=i.path,o.parentObject=i.node,o.name=er.basename(t),i=ea.lookupPath(t,{follow:!n}),o.exists=!0,o.path=i.path,o.object=i.node,o.name=i.node.name,o.isRoot="/"===i.path}catch(t){o.error=t.errno}return o},createPath:function(t,n,i,o){t="string"==typeof t?t:ea.getPath(t);for(var a=n.split("/").reverse();a.length;){var s=a.pop();if(!!s){var c=er.join2(t,s);try{ea.mkdir(c)}catch(t){}t=c}}return c},createFile:function(t,n,i,o,a){var s=er.join2("string"==typeof t?t:ea.getPath(t),n),c=ea.getMode(o,a);return ea.create(s,c)},createDataFile:function(t,n,i,o,a,s){var c=n;t&&(t="string"==typeof t?t:ea.getPath(t),c=n?er.join2(t,n):t);var u=ea.getMode(o,a),l=ea.create(c,u);if(i){if("string"==typeof i){for(var d=Array(i.length),f=0,A=i.length;f<A;++f)d[f]=i.charCodeAt(f);i=d}ea.chmod(l,146|u);var h=ea.open(l,577);ea.write(h,i,0,i.length,0,s),ea.close(h),ea.chmod(l,u)}return l},createDevice:function(t,n,i,o){var a=er.join2("string"==typeof t?t:ea.getPath(t),n),s=ea.getMode(!!i,!!o);!ea.createDevice.major&&(ea.createDevice.major=64);var c=ea.makedev(ea.createDevice.major++,0);return ea.registerDevice(c,{open:function(t){t.seekable=!1},close:function(t){o&&o.buffer&&o.buffer.length&&o(10)},read:function(t,n,o,a,s){for(var c,u=0,l=0;l<a;l++){try{c=i()}catch(t){throw new ea.ErrnoError(29)}if(void 0===c&&0===u)throw new ea.ErrnoError(6);if(null==c)break;u++,n[o+l]=c}return u&&(t.node.timestamp=Date.now()),u},write:function(t,n,i,a,s){for(var c=0;c<a;c++)try{o(n[i+c])}catch(t){throw new ea.ErrnoError(29)}return a&&(t.node.timestamp=Date.now()),c}}),ea.mkdev(a,s,c)},forceLoadFile:function(t){if(t.isDevice||t.isFolder||t.link||t.contents)return!0;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(s)try{t.contents=eC(s(t.url),!0),t.usedBytes=t.contents.length}catch(t){throw new ea.ErrnoError(29)}else throw Error("Cannot load without read() or XMLHttpRequest.")},createLazyFile:function(t,n,i,o,a){function s(){this.lengthKnown=!1,this.chunks=[]}if(s.prototype.get=function(t){if(!(t>this.length-1)&&!(t<0)){var n=t%this.chunkSize,i=t/this.chunkSize|0;return this.getter(i)[n]}},s.prototype.setDataGetter=function(t){this.getter=t},s.prototype.cacheLength=function(){var t,n=new XMLHttpRequest;if(n.open("HEAD",i,!1),n.send(null),!(n.status>=200&&n.status<300||304===n.status))throw Error("Couldn't load "+i+". Status: "+n.status);var o=Number(n.getResponseHeader("Content-length")),a=(t=n.getResponseHeader("Accept-Ranges"))&&"bytes"===t,s=(t=n.getResponseHeader("Content-Encoding"))&&"gzip"===t,c=1048576;!a&&(c=o);var u=function(t,n){if(t>n)throw Error("invalid range ("+t+", "+n+") or no bytes requested!");if(n>o-1)throw Error("only "+o+" bytes available! programmer error!");var a=new XMLHttpRequest;if(a.open("GET",i,!1),o!==c&&a.setRequestHeader("Range","bytes="+t+"-"+n),"undefined"!=typeof Uint8Array&&(a.responseType="arraybuffer"),a.overrideMimeType&&a.overrideMimeType("text/plain; charset=x-user-defined"),a.send(null),!(a.status>=200&&a.status<300||304===a.status))throw Error("Couldn't load "+i+". Status: "+a.status);return void 0!==a.response?new Uint8Array(a.response||[]):eC(a.responseText||"",!0)},l=this;l.setDataGetter(function(t){var n=t*c,i=(t+1)*c-1;if(i=Math.min(i,o-1),void 0===l.chunks[t]&&(l.chunks[t]=u(n,i)),void 0===l.chunks[t])throw Error("doXHR failed!");return l.chunks[t]}),(s||!o)&&(c=o=1,c=o=this.getter(0).length,B("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=o,this._chunkSize=c,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){var c;throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc"}var c={isDevice:!1,url:i},u=ea.createFile(t,n,c,o,a);c.contents?u.contents=c.contents:c.url&&(u.contents=null,u.url=c.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};return Object.keys(u.stream_ops).forEach(function(t){var n=u.stream_ops[t];l[t]=function(){return ea.forceLoadFile(u),n.apply(null,arguments)}}),l.read=function(t,n,i,o,a){ea.forceLoadFile(u);var s=t.node.contents;if(a>=s.length)return 0;var c=Math.min(s.length-a,o);if(s.slice)for(var l=0;l<c;l++)n[i+l]=s[a+l];else for(var l=0;l<c;l++)n[i+l]=s.get(a+l);return c},u.stream_ops=l,u},createPreloadedFile:function(t,n,i,o,a,s,u,l,d,f){var A=n?en.resolve(er.join2(t,n)):t;function h(i){function c(i){f&&f(),!l&&ea.createDataFile(t,n,i,o,a,d),s&&s(),z()}if(!Browser.handledByPreloadPlugin(i,A,c,function(){u&&u(),z()}))c(i)}J(),"string"==typeof i?!function(t,n,i,o){var a="al "+t;c(t,function(i){var o,s;o=i,s='Loading data file "'+t+'" failed (no arrayBuffer).',o||Q(s),n(new Uint8Array(i)),a&&z()},function(n){if(i)i();else throw'Loading data file "'+t+'" failed.'}),a&&J()}(i,function(t){return h(t)},u):h(i)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(t,n,i){n=n||function(){},i=i||function(){};var o=ea.indexedDB();try{var a=o.open(ea.DB_NAME(),ea.DB_VERSION)}catch(t){return i(t)}a.onupgradeneeded=function(){B("creating db"),a.result.createObjectStore(ea.DB_STORE_NAME)},a.onsuccess=function(){var o=a.result.transaction([ea.DB_STORE_NAME],"readwrite"),s=o.objectStore(ea.DB_STORE_NAME),c=0,u=0,l=t.length;function d(){0==u?n():i()}t.forEach(function(t){var n=s.put(ea.analyzePath(t).object.contents,t);n.onsuccess=function(){++c+u==l&&d()},n.onerror=function(){u++,c+u==l&&d()}}),o.onerror=i},a.onerror=i},loadFilesFromDB:function(t,n,i){n=n||function(){},i=i||function(){};var o=ea.indexedDB();try{var a=o.open(ea.DB_NAME(),ea.DB_VERSION)}catch(t){return i(t)}a.onupgradeneeded=i,a.onsuccess=function(){var o=a.result;try{var s=o.transaction([ea.DB_STORE_NAME],"readonly")}catch(t){i(t);return}var c=s.objectStore(ea.DB_STORE_NAME),u=0,l=0,d=t.length;function f(){0==l?n():i()}t.forEach(function(t){var n=c.get(t);n.onsuccess=function(){ea.analyzePath(t).exists&&ea.unlink(t),ea.createDataFile(er.dirname(t),er.basename(t),n.result,!0,!0,!0),++u+l==d&&f()},n.onerror=function(){l++,u+l==d&&f()}}),s.onerror=i},a.onerror=i}},es={mappings:{},DEFAULT_POLLMASK:5,calculateAt:function(t,n,i){if("/"===n[0])return n;if(-100===t)o=ea.cwd();else{var o,a=ea.getStream(t);if(!a)throw new ea.ErrnoError(8);o=a.path}if(0==n.length){if(!i)throw new ea.ErrnoError(44);return o}return er.join2(o,n)},doStat:function(t,n,i){try{var o=t(n)}catch(t){if(t&&t.node&&er.normalize(n)!==er.normalize(ea.getPath(t.node)))return -54;throw t}return v[i>>2]=o.dev,v[i+4>>2]=0,v[i+8>>2]=o.ino,v[i+12>>2]=o.mode,v[i+16>>2]=o.nlink,v[i+20>>2]=o.uid,v[i+24>>2]=o.gid,v[i+28>>2]=o.rdev,v[i+32>>2]=0,k=[o.size>>>0,+Math.abs(C=o.size)>=1?C>0?(0|Math.min(+Math.floor(C/4294967296),4294967295))>>>0:~~+Math.ceil((C-+(~~C>>>0))/4294967296)>>>0:0],v[i+40>>2]=k[0],v[i+44>>2]=k[1],v[i+48>>2]=4096,v[i+52>>2]=o.blocks,v[i+56>>2]=o.atime.getTime()/1e3|0,v[i+60>>2]=0,v[i+64>>2]=o.mtime.getTime()/1e3|0,v[i+68>>2]=0,v[i+72>>2]=o.ctime.getTime()/1e3|0,v[i+76>>2]=0,k=[o.ino>>>0,+Math.abs(C=o.ino)>=1?C>0?(0|Math.min(+Math.floor(C/4294967296),4294967295))>>>0:~~+Math.ceil((C-+(~~C>>>0))/4294967296)>>>0:0],v[i+80>>2]=k[0],v[i+84>>2]=k[1],0},doMsync:function(t,n,i,o,a){var s=h.slice(t,t+i);ea.msync(n,s,a,i,o)},doMkdir:function(t,n){return"/"===(t=er.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),ea.mkdir(t,n,0),0},doMknod:function(t,n,i){switch(61440&n){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return -28}return ea.mknod(t,n,i),0},doReadlink:function(t,n,i){if(i<=0)return -28;var o=ea.readlink(t),a=Math.min(i,G(o)),s=A[n+a];return M(o,h,n,i+1),A[n+a]=s,a},doAccess:function(t,n){if(-8&n)return -28;var i=ea.lookupPath(t,{follow:!0}).node;if(!i)return -44;var o="";return(4&n&&(o+="r"),2&n&&(o+="w"),1&n&&(o+="x"),o&&ea.nodePermissions(i,o))?-2:0},doDup:function(t,n,i){var o=ea.getStream(i);return o&&ea.close(o),ea.open(t,n,0,i,i).fd},doReadv:function(t,n,i,o){for(var a=0,s=0;s<i;s++){var c=v[n+8*s>>2],u=v[n+(8*s+4)>>2],l=ea.read(t,A,c,u,o);if(l<0)return -1;if(a+=l,l<u)break}return a},doWritev:function(t,n,i,o){for(var a=0,s=0;s<i;s++){var c=v[n+8*s>>2],u=v[n+(8*s+4)>>2],l=ea.write(t,A,c,u,o);if(l<0)return -1;a+=l}return a},varargs:void 0,get:function(){return es.varargs+=4,v[es.varargs-4>>2]},getStr:function(t){return N(t)},getStreamFromFD:function(t){var n=ea.getStream(t);if(!n)throw new ea.ErrnoError(8);return n},get64:function(t,n){return t}},ec={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,recordError:function(t){!ec.lastError&&(ec.lastError=t)},getNewId:function(t){for(var n=ec.counter++,i=t.length;i<n;i++)t[i]=null;return n},getSource:function(t,n,i,o){for(var a="",s=0;s<n;++s){var c=o?v[o+4*s>>2]:-1;a+=N(v[i+4*s>>2],c<0?void 0:c)}return a},createContext:function(t,n){!t.getContextSafariWebGL2Fixed&&(t.getContextSafariWebGL2Fixed=t.getContext,t.getContext=function(n,i){var o=t.getContextSafariWebGL2Fixed(n,i);return"webgl"==n==o instanceof WebGLRenderingContext?o:null});var i=t.getContext("webgl2",n);return i?ec.registerContext(i,n):0},registerContext:function(t,n){var i=ec.getNewId(ec.contexts),o={handle:i,attributes:n,version:n.majorVersion,GLctx:t};return t.canvas&&(t.canvas.GLctxObject=o),ec.contexts[i]=o,(void 0===n.enableExtensionsByDefault||n.enableExtensionsByDefault)&&ec.initExtensions(o),i},makeContextCurrent:function(n){return ec.currentContext=ec.contexts[n],t.ctx=w=ec.currentContext&&ec.currentContext.GLctx,!(n&&!w)},getContext:function(t){return ec.contexts[t]},deleteContext:function(t){ec.currentContext===ec.contexts[t]&&(ec.currentContext=null),"object"===(0,a.Ac)(eu)&&eu.removeAllHandlersOnTarget(ec.contexts[t].GLctx.canvas),ec.contexts[t]&&ec.contexts[t].GLctx.canvas&&(ec.contexts[t].GLctx.canvas.GLctxObject=void 0),ec.contexts[t]=null},initExtensions:function(t){if(!t&&(t=ec.currentContext),!t.initExtensionsDone){t.initExtensionsDone=!0;var n,i,o,a=t.GLctx;(n=a).dibvbi=n.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),(i=a).mdibvbi=i.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),t.version>=2&&(a.disjointTimerQueryExt=a.getExtension("EXT_disjoint_timer_query_webgl2")),(t.version<2||!a.disjointTimerQueryExt)&&(a.disjointTimerQueryExt=a.getExtension("EXT_disjoint_timer_query")),(o=a).multiDrawWebgl=o.getExtension("WEBGL_multi_draw"),(a.getSupportedExtensions()||[]).forEach(function(t){!t.includes("lose_context")&&!t.includes("debug")&&a.getExtension(t)})}}},eu={inEventHandler:0,removeAllEventListeners:function(){for(var t=eu.eventHandlers.length-1;t>=0;--t)eu._removeHandler(t);eu.eventHandlers=[],eu.deferredCalls=[]},registerRemoveEventListeners:function(){!eu.removeEventListenersRegistered&&(H.push(eu.removeAllEventListeners),eu.removeEventListenersRegistered=!0)},deferredCalls:[],deferCall:function(t,n,i){for(var o in eu.deferredCalls){var a=eu.deferredCalls[o];if(a.targetFunction==t&&function(t,n){if(t.length!=n.length)return!1;for(var i in t)if(t[i]!=n[i])return!1;return!0}(a.argsList,i))return}eu.deferredCalls.push({targetFunction:t,precedence:n,argsList:i}),eu.deferredCalls.sort(function(t,n){return t.precedence<n.precedence})},removeDeferredCalls:function(t){for(var n=0;n<eu.deferredCalls.length;++n)eu.deferredCalls[n].targetFunction==t&&(eu.deferredCalls.splice(n,1),--n)},canPerformEventHandlerRequests:function(){return eu.inEventHandler&&eu.currentEventHandler.allowsDeferredCalls},runDeferredCalls:function(){if(!!eu.canPerformEventHandlerRequests())for(var t=0;t<eu.deferredCalls.length;++t){var n=eu.deferredCalls[t];eu.deferredCalls.splice(t,1),--t,n.targetFunction.apply(null,n.argsList)}},eventHandlers:[],removeAllHandlersOnTarget:function(t,n){for(var i=0;i<eu.eventHandlers.length;++i)eu.eventHandlers[i].target==t&&(!n||n==eu.eventHandlers[i].eventTypeString)&&eu._removeHandler(i--)},_removeHandler:function(t){var n=eu.eventHandlers[t];n.target.removeEventListener(n.eventTypeString,n.eventListenerFunc,n.useCapture),eu.eventHandlers.splice(t,1)},registerOrRemoveHandler:function(t){var n=function(n){++eu.inEventHandler,eu.currentEventHandler=t,eu.runDeferredCalls(),t.handlerFunc(n),eu.runDeferredCalls(),--eu.inEventHandler};if(t.callbackfunc)t.eventListenerFunc=n,t.target.addEventListener(t.eventTypeString,n,t.useCapture),eu.eventHandlers.push(t),eu.registerRemoveEventListeners();else for(var i=0;i<eu.eventHandlers.length;++i)eu.eventHandlers[i].target==t.target&&eu.eventHandlers[i].eventTypeString==t.eventTypeString&&eu._removeHandler(i--)},getNodeNameForTarget:function(t){return t?t==window?"#window":t==screen?"#screen":t&&t.nodeName?t.nodeName:"":""},fullscreenEnabled:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled}},el=["default","low-power","high-performance"],ed={};function ef(){if(!ef.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(("undefined"==typeof navigator?"undefined":(0,a.Ac)(navigator))==="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:T||"./this.program"};for(var n in ed)void 0===ed[n]?delete t[n]:t[n]=ed[n];var i=[];for(var n in t)i.push(n+"="+t[n]);ef.strings=i}return ef.strings}var eA=[];function eh(t,n,i,o){for(var a=0;a<t;a++){var s=w[i](),c=s&&ec.getNewId(o);s?(s.name=c,o[c]=s):ec.recordError(1282),v[n+4*a>>2]=c}}function eg(t){return"]"==t.slice(-1)&&t.lastIndexOf("[")}function ep(t){return t%4==0&&(t%100!=0||t%400==0)}function ev(t,n){for(var i=0,o=0;o<=n;i+=t[o++]);return i}var ey=[31,29,31,30,31,30,31,31,30,31,30,31],em=[31,28,31,30,31,30,31,31,30,31,30,31];function e_(t,n){for(var i=new Date(t.getTime());n>0;){var o=ep(i.getFullYear()),a=i.getMonth(),s=(o?ey:em)[a];if(n>s-i.getDate())n-=s-i.getDate()+1,i.setDate(1),a<11?i.setMonth(a+1):(i.setMonth(0),i.setFullYear(i.getFullYear()+1));else{i.setDate(i.getDate()+n);break}}return i}var eI=function(t,n,i,o){!t&&(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=ea.nextInode++,this.name=n,this.mode=i,this.node_ops={},this.stream_ops={},this.rdev=o};Object.defineProperties(eI.prototype,{read:{get:function(){return(365&this.mode)==365},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return(146&this.mode)==146},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return ea.isDir(this.mode)}},isDevice:{get:function(){return ea.isChrdev(this.mode)}}}),ea.FSNode=eI,ea.staticInit();for(var eb=0;eb<32;++eb)eA.push(Array(eb));function eC(t,n,i){var o=Array(i>0?i:G(t)+1),a=M(t,o,0,o.length);return n&&(o.length=a),o}var ek={Q:function(t){return eE(t+16)+16},P:function(t,n,i){throw new et(t).init(n,i),t},K:function(t,n,i){es.varargs=i;try{var o,a=es.getStreamFromFD(t);switch(n){case 0:var s=es.get();if(s<0)return -28;return ea.open(a.path,a.flags,0,s).fd;case 1:case 2:case 6:case 7:return 0;case 3:return a.flags;case 4:var s=es.get();return a.flags|=s,0;case 5:var s=es.get();return g[s+0>>1]=2,0;case 16:case 8:default:return -28;case 9:;return o=28,v[ew()>>2]=28,-1}}catch(t){if(void 0===ea||!(t instanceof ea.ErrnoError))throw t;return-t.errno}},X:function(t,n,i){es.varargs=i;try{var o=es.getStreamFromFD(t);switch(n){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:if(!o.tty)return -59;return 0;case 21519:if(!o.tty)return -59;var a=es.get();return v[a>>2]=0,0;case 21520:if(!o.tty)return -59;return -28;case 21531:var a=es.get();return ea.ioctl(o,n,a);default:Q("bad ioctl syscall "+n)}}catch(t){if(void 0===ea||!(t instanceof ea.ErrnoError))throw t;return-t.errno}},_:function(t,n,i){es.varargs=i;try{var o=es.getStr(t),a=i?es.get():0;return ea.open(o,n,a).fd}catch(t){if(void 0===ea||!(t instanceof ea.ErrnoError))throw t;return-t.errno}},I:function(){Q("")},da:function(n){var i=t.GL.contexts[n].GLctx;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,t.video)},$:function(t,n,i){h.copyWithin(t,n,n+i)},Z:function(t){var n=h.length;t>>>=0;if(t>2147483648)return!1;for(var i=1;i<=4;i*=2){var o,a,s=n*(1+.2/i);if(s=Math.min(s,t+100663296),function(t){try{return d.grow(t-f.byteLength+65535>>>16),U(d.buffer),1}catch(t){}}(Math.min(2147483648,(a=65536,(o=Math.max(t,s))%65536>0&&(o+=a-o%a),o))))return!0}return!1},Y:function(t,n){return function(t,n){var i,o,a=n>>2,s=v[a+6],c={alpha:!!v[a+0],depth:!!v[a+1],stencil:!!v[a+2],antialias:!!v[a+3],premultipliedAlpha:!!v[a+4],preserveDrawingBuffer:!!v[a+5],powerPreference:el[s],failIfMajorPerformanceCaveat:!!v[a+7],majorVersion:v[a+8],minorVersion:v[a+9],enableExtensionsByDefault:v[a+10],explicitSwapControl:v[a+11],proxyContextToMainThread:v[a+12],renderViaOffscreenBackBuffer:v[a+13]};var u=(i=(o=i=t)>2?N(o):o,ec.offscreenCanvases[i.substr(1)]||"canvas"==i&&Object.keys(ec.offscreenCanvases)[0]||document.querySelector(i));if(!u)return 0;if(u.offscreenCanvas&&(u=u.offscreenCanvas),c.explicitSwapControl){if(!(u.transferControlToOffscreen||"undefined"!=typeof OffscreenCanvas&&u instanceof OffscreenCanvas))return 0;if(u.transferControlToOffscreen){if(u.controlTransferredOffscreen){if(!ec.offscreenCanvases[u.id])return 0}else ec.offscreenCanvases[u.id]={canvas:u.transferControlToOffscreen(),canvasSharedPtr:eE(12),id:u.id},u.controlTransferredOffscreen=!0;u=ec.offscreenCanvases[u.id]}}return ec.createContext(u,c)}(t,n)},H:function(t){return ec.makeContextCurrent(t)?0:-5},U:function(t,n){var i=0;return ef().forEach(function(o,a){var s=n+i;v[t+4*a>>2]=s,!function(t,n,i){for(var o=0;o<t.length;++o)A[n++>>0]=t.charCodeAt(o);A[n>>0]=0}(o,s),i+=o.length+1}),0},V:function(t,n){var i=ef();v[t>>2]=i.length;var o=0;return i.forEach(function(t){o+=t.length+1}),v[n>>2]=o,0},J:function(t){try{var n=es.getStreamFromFD(t);return ea.close(n),0}catch(t){if(void 0===ea||!(t instanceof ea.ErrnoError))throw t;return t.errno}},W:function(t,n,i,o){try{var a=es.getStreamFromFD(t),s=es.doReadv(a,n,i);return v[o>>2]=s,0}catch(t){if(void 0===ea||!(t instanceof ea.ErrnoError))throw t;return t.errno}},S:function(t,n,i,o,a){try{var s=es.getStreamFromFD(t),c=4294967296*i+(n>>>0);if(c<=-9007199254740992||c>=9007199254740992)return -61;return ea.llseek(s,c,o),k=[s.position>>>0,(C=s.position,+Math.abs(C)>=1?C>0?(0|Math.min(+Math.floor(C/4294967296),4294967295))>>>0:~~+Math.ceil((C-+(~~C>>>0))/4294967296)>>>0:0)],v[a>>2]=k[0],v[a+4>>2]=k[1],s.getdents&&0===c&&0===o&&(s.getdents=null),0}catch(t){if(void 0===ea||!(t instanceof ea.ErrnoError))throw t;return t.errno}},L:function(t,n,i,o){try{var a=es.getStreamFromFD(t),s=es.doWritev(a,n,i);return v[o>>2]=s,0}catch(t){if(void 0===ea||!(t instanceof ea.ErrnoError))throw t;return t.errno}},g:function(t){w.activeTexture(t)},t:function(t,n){w.attachShader(ec.programs[t],ec.shaders[n])},a:function(t,n){35051==t?w.currentPixelPackBufferBinding=n:35052==t&&(w.currentPixelUnpackBufferBinding=n),w.bindBuffer(t,ec.buffers[n])},d:function(t,n){w.bindFramebuffer(t,ec.framebuffers[n])},b:function(t,n){w.bindTexture(t,ec.textures[n])},o:function(t,n,i,o){i?w.bufferData(t,h,o,i,n):w.bufferData(t,n,o)},ca:function(t){w.clear(t)},C:function(t){w.compileShader(ec.shaders[t])},y:function(){var t=ec.getNewId(ec.programs),n=w.createProgram();return n.name=t,n.maxUniformLength=n.maxAttributeLength=n.maxUniformBlockNameLength=0,n.uniformIdCounter=1,ec.programs[t]=n,t},F:function(t){var n=ec.getNewId(ec.shaders);return ec.shaders[n]=w.createShader(t),n},z:function(t,n){for(var i=0;i<t;++i){var o=v[n+4*i>>2],a=ec.framebuffers[o];a&&(w.deleteFramebuffer(a),a.name=0,ec.framebuffers[o]=null)}},A:function(t){if(t){var n=ec.programs[t];if(!n){ec.recordError(1281);return}w.deleteProgram(n),n.name=0,ec.programs[t]=null}},m:function(t){if(t){var n=ec.shaders[t];if(!n){ec.recordError(1281);return}w.deleteShader(n),ec.shaders[t]=null}},f:function(t,n){for(var i=0;i<t;i++){var o=v[n+4*i>>2],a=ec.textures[o];a&&(w.deleteTexture(a),a.name=0,ec.textures[o]=null)}},q:function(t){w.disableVertexAttribArray(t)},M:function(t,n){for(var i=eA[t],o=0;o<t;o++)i[o]=v[n+4*o>>2];w.drawBuffers(i)},v:function(t,n,i,o){w.drawElements(t,n,i,o)},j:function(t){w.enableVertexAttribArray(t)},n:function(t,n,i,o,a){w.framebufferTexture2D(t,n,i,ec.textures[o],a)},p:function(t,n){eh(t,n,"createBuffer",ec.buffers)},B:function(t,n){eh(t,n,"createFramebuffer",ec.framebuffers)},D:function(t,n){eh(t,n,"createTexture",ec.textures)},l:function(t,n){return w.getAttribLocation(ec.programs[t],N(n))},c:function(){var t=w.getError()||ec.lastError;return ec.lastError=0,t},N:function(t,n){!function(t,n,i){if(!n){ec.recordError(1281);return}var o,s,c=void 0;switch(t){case 36346:c=1;break;case 36344:return;case 34814:case 36345:c=0;break;case 34466:var u=w.getParameter(34467);c=u?u.length:0;break;case 33309:if(ec.currentContext.version<2){ec.recordError(1282);return}c=2*(w.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(ec.currentContext.version<2){ec.recordError(1280);return}c=33307==t?3:0}if(void 0===c){var l=w.getParameter(t);switch((0,a.Ac)(l)){case"number":c=l;break;case"boolean":c=l?1:0;break;case"string":ec.recordError(1280);return;case"object":if(null===l)switch(t){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:c=0;break;default:ec.recordError(1280);return}else if(l instanceof Float32Array||l instanceof Uint32Array||l instanceof Int32Array||l instanceof Array){for(var d=0;d<l.length;++d)switch(i){case 0:v[n+4*d>>2]=l[d];break;case 2:m[n+4*d>>2]=l[d];break;case 4:A[n+d>>0]=l[d]?1:0}return}else try{c=0|l.name}catch(n){ec.recordError(1280),P("GL_INVALID_ENUM in glGet"+i+"v: Unknown object returned from WebGL getParameter("+t+")! (error: "+n+")");return}break;default:ec.recordError(1280),P("GL_INVALID_ENUM in glGet"+i+"v: Native code calling glGet"+i+"v("+t+") and it returns "+l+" of type "+(0,a.Ac)(l)+"!");return}}switch(i){case 1:;o=n,s=c,y[o>>2]=s,y[o+4>>2]=(s-y[o>>2])/4294967296;break;case 0:v[n>>2]=c;break;case 2:m[n>>2]=c;break;case 4:A[n>>0]=c?1:0}}(t,n,0)},aa:function(t,n,i,o,a){ec.recordError(1282)},O:function(t,n,i,o){var a=w.getProgramInfoLog(ec.programs[t]);null===a&&(a="(unknown error)");var s=n>0&&o?M(a,h,o,n):0;i&&(v[i>>2]=s)},u:function(t,n,i){if(!i||t>=ec.counter){ec.recordError(1281);return}if(t=ec.programs[t],35716==n){var o=w.getProgramInfoLog(t);null===o&&(o="(unknown error)"),v[i>>2]=o.length+1}else if(35719==n){if(!t.maxUniformLength)for(var a=0;a<w.getProgramParameter(t,35718);++a)t.maxUniformLength=Math.max(t.maxUniformLength,w.getActiveUniform(t,a).name.length+1);v[i>>2]=t.maxUniformLength}else if(35722==n){if(!t.maxAttributeLength)for(var a=0;a<w.getProgramParameter(t,35721);++a)t.maxAttributeLength=Math.max(t.maxAttributeLength,w.getActiveAttrib(t,a).name.length+1);v[i>>2]=t.maxAttributeLength}else if(35381==n){if(!t.maxUniformBlockNameLength)for(var a=0;a<w.getProgramParameter(t,35382);++a)t.maxUniformBlockNameLength=Math.max(t.maxUniformBlockNameLength,w.getActiveUniformBlockName(t,a).length+1);v[i>>2]=t.maxUniformBlockNameLength}else v[i>>2]=w.getProgramParameter(t,n)},r:function(t,n,i,o){var a=w.getShaderInfoLog(ec.shaders[t]);null===a&&(a="(unknown error)");var s=n>0&&o?M(a,h,o,n):0;i&&(v[i>>2]=s)},s:function(t,n,i){if(!i){ec.recordError(1281);return}if(35716==n){var o=w.getShaderInfoLog(ec.shaders[t]);null===o&&(o="(unknown error)");var a=o?o.length+1:0;v[i>>2]=a}else if(35720==n){var s=w.getShaderSource(ec.shaders[t]),c=s?s.length+1:0;v[i>>2]=c}else v[i>>2]=w.getShaderParameter(ec.shaders[t],n)},h:function(t,n){if(n=N(n),t=ec.programs[t]){!function(t){var n,i,o=t.uniformLocsById,a=t.uniformSizeAndIdsByName;if(!o)for(n=0,t.uniformLocsById=o={},t.uniformArrayNamesById={};n<w.getProgramParameter(t,35718);++n){var s=w.getActiveUniform(t,n),c=s.name,u=s.size,l=eg(c),d=l>0?c.slice(0,l):c,f=t.uniformIdCounter;for(t.uniformIdCounter+=u,a[d]=[u,f],i=0;i<u;++i)o[f]=i,t.uniformArrayNamesById[f++]=d}}(t);var i=t.uniformLocsById,o=0,a=n,s=eg(n);if(s>0)o=parseInt(n.slice(s+1))>>>0,a=n.slice(0,s);var c=t.uniformSizeAndIdsByName[a];if(c&&o<c[0]&&(i[o+=c[1]]=i[o]||w.getUniformLocation(t,n)))return o}else ec.recordError(1281);return -1},G:function(t){t=ec.programs[t],w.linkProgram(t),t.uniformLocsById=0,t.uniformSizeAndIdsByName={}},ba:function(t,n,i,o){ec.recordError(1280)},E:function(t,n,i,o){var a=ec.getSource(t,n,i,o);w.shaderSource(ec.shaders[t],a)},R:function(t,n,i,o,a,s,c,u,l){if(w.currentPixelUnpackBufferBinding)w.texImage2D(t,n,i,o,a,s,c,u,l);else if(l){var d,f=0==(d=u-5120)?A:1==d?h:2==d?g:4==d?v:6==d?m:5==d||28922==d||28520==d||30779==d||30782==d?y:p;w.texImage2D(t,n,i,o,a,s,c,u,f,l>>31-Math.clz32(f.BYTES_PER_ELEMENT))}else w.texImage2D(t,n,i,o,a,s,c,u,null)},e:function(t,n,i){w.texParameteri(t,n,i)},i:function(t,n){w.uniform1i(function(t){var n=w.currentProgram;if(n){var i=n.uniformLocsById[t];return"number"==typeof i&&(n.uniformLocsById[t]=i=w.getUniformLocation(n,n.uniformArrayNamesById[t]+(i>0?"["+i+"]":""))),i}ec.recordError(1282)}(t),n)},x:function(t){t=ec.programs[t],w.useProgram(t),w.currentProgram=t},ea:function(t){w.validateProgram(ec.programs[t])},k:function(t,n,i,o,a,s){w.vertexAttribPointer(t,n,i,!!o,a,s)},w:function(t,n,i,o){w.viewport(t,n,i,o)},T:function(t,n,i,o){return function(t,n,i,o){var a,s,c=v[o+40>>2],u={tm_sec:v[o>>2],tm_min:v[o+4>>2],tm_hour:v[o+8>>2],tm_mday:v[o+12>>2],tm_mon:v[o+16>>2],tm_year:v[o+20>>2],tm_wday:v[o+24>>2],tm_yday:v[o+28>>2],tm_isdst:v[o+32>>2],tm_gmtoff:v[o+36>>2],tm_zone:c?N(c):""},l=N(i),d={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in d)l=l.replace(RegExp(f,"g"),d[f]);var h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"];function p(t,n,i){for(var o="number"==typeof t?t.toString():t||"";o.length<n;)o=i[0]+o;return o}function y(t,n){return p(t,n,"0")}function m(t,n){var i;function o(t){return t<0?-1:t>0?1:0}return 0===(i=o(t.getFullYear()-n.getFullYear()))&&0===(i=o(t.getMonth()-n.getMonth()))&&(i=o(t.getDate()-n.getDate())),i}function _(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function I(t){var n=e_(new Date(t.tm_year+1900,0,1),t.tm_yday),i=new Date(n.getFullYear(),0,4),o=new Date(n.getFullYear()+1,0,4),a=_(i),s=_(o);return 0>=m(a,n)?0>=m(s,n)?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var b={"%a":function(t){return h[t.tm_wday].substring(0,3)},"%A":function(t){return h[t.tm_wday]},"%b":function(t){return g[t.tm_mon].substring(0,3)},"%B":function(t){return g[t.tm_mon]},"%C":function(t){return y((t.tm_year+1900)/100|0,2)},"%d":function(t){return y(t.tm_mday,2)},"%e":function(t){return p(t.tm_mday,2," ")},"%g":function(t){return I(t).toString().substring(2)},"%G":function(t){return I(t)},"%H":function(t){return y(t.tm_hour,2)},"%I":function(t){var n=t.tm_hour;return 0==n?n=12:n>12&&(n-=12),y(n,2)},"%j":function(t){return y(t.tm_mday+ev(ep(t.tm_year+1900)?ey:em,t.tm_mon-1),3)},"%m":function(t){return y(t.tm_mon+1,2)},"%M":function(t){return y(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return y(t.tm_sec,2)},"%t":function(){return" "},"%u":function(t){return t.tm_wday||7},"%U":function(t){var n=new Date(t.tm_year+1900,0,1),i=0===n.getDay()?n:e_(n,7-n.getDay()),o=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(0>m(i,o)){var a=ev(ep(o.getFullYear())?ey:em,o.getMonth()-1)-31;return y(Math.ceil((31-i.getDate()+a+o.getDate())/7),2)}return 0===m(i,n)?"01":"00"},"%V":function(t){var n,i=new Date(t.tm_year+1900,0,4),o=new Date(t.tm_year+1901,0,4),a=_(i),s=_(o),c=e_(new Date(t.tm_year+1900,0,1),t.tm_yday);return 0>m(c,a)?"53":0>=m(s,c)?"01":y(Math.ceil((n=a.getFullYear()<t.tm_year+1900?t.tm_yday+32-a.getDate():t.tm_yday+1-a.getDate())/7),2)},"%w":function(t){return t.tm_wday},"%W":function(t){var n=new Date(t.tm_year,0,1),i=1===n.getDay()?n:e_(n,0===n.getDay()?1:7-n.getDay()+1),o=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(0>m(i,o)){var a=ev(ep(o.getFullYear())?ey:em,o.getMonth()-1)-31;return y(Math.ceil((31-i.getDate()+a+o.getDate())/7),2)}return 0===m(i,n)?"01":"00"},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var n=t.tm_gmtoff;return(n>=0?"+":"-")+String("0000"+(n=(n=Math.abs(n)/60)/60*100+n%60)).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var f in b)l.includes(f)&&(l=l.replace(RegExp(f,"g"),b[f](u)));var C=eC(l,!1);if(C.length>n)return 0;return a=C,s=t,A.set(a,s),C.length-1}(t,n,i,o)}};!function(){var n={a:ek};function o(n,i){var o,a=n.exports;t.asm=a,U((d=t.asm.fa).buffer),I=t.asm.ma,o=t.asm.ga,W.unshift(o),z()}function a(t){o(t.instance)}function s(t){return(l||"function"!=typeof fetch?Promise.resolve().then(function(){return q(b)}):fetch(b,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+b+"'";return t.arrayBuffer()}).catch(function(){return q(b)})).then(function(t){return WebAssembly.instantiate(t,n)}).then(function(t){return t}).then(t,function(t){P("failed to asynchronously prepare wasm: "+t),Q(t)})}J();if(t.instantiateWasm)try{return t.instantiateWasm(n,o)}catch(t){return P("Module.instantiateWasm callback failed with error: "+t),!1}(function(){return l||"function"!=typeof WebAssembly.instantiateStreaming||b.startsWith("data:application/octet-stream;base64,")||"function"!=typeof fetch?s(a):fetch(b,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,n).then(a,function(t){return P("wasm streaming compile failed: "+t),P("falling back to ArrayBuffer instantiation"),s(a)})})})().catch(i)}(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.ga).apply(null,arguments)},t._createContext=function(){return(t._createContext=t.asm.ha).apply(null,arguments)},t._drawFrame=function(){return(t._drawFrame=t.asm.ia).apply(null,arguments)},t._destroy=function(){return(t._destroy=t.asm.ja).apply(null,arguments)},t._getError=function(){return(t._getError=t.asm.ka).apply(null,arguments)},t._getRunInfo=function(){return(t._getRunInfo=t.asm.la).apply(null,arguments)};var ew=t.___errno_location=function(){return(ew=t.___errno_location=t.asm.na).apply(null,arguments)},eE=t._malloc=function(){return(eE=t._malloc=t.asm.oa).apply(null,arguments)};t._free=function(){return(t._free=t.asm.pa).apply(null,arguments)};var eS=t.stackSave=function(){return(eS=t.stackSave=t.asm.qa).apply(null,arguments)},eR=t.stackRestore=function(){return(eR=t.stackRestore=t.asm.ra).apply(null,arguments)},eT=t.stackAlloc=function(){return(eT=t.stackAlloc=t.asm.sa).apply(null,arguments)};function eD(i){if(X>0)return;if(!function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)(function(t){j.unshift(t)})(t.preRun.shift());$(j)}(),!(X>0))t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),o()},1)):o();function o(){if(!E)E=!0,t.calledRun=!0,!x&&(t.noFSInit||ea.init.initialized||ea.init(),ea.ignorePermissions=!1,$(W),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),!function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)(function(t){Y.unshift(t)})(t.postRun.shift());$(Y)}())}}if(t.cwrap=function(n,i,o,a){var s=(o=o||[]).every(function(t){return"number"===t});if("string"!==i&&s&&!a)return t["_"+n];return function(){return function(n,i,o,a,s){var c,u,l={string:function(t){var n=0;if(null!=t&&0!==t){var i=(t.length<<2)+1;(function(t,n,i){M(t,h,n,i)})(t,n=eT(i),i)}return n},array:function(t){var n=eT(t.length);return function(t,n){A.set(t,n)}(t,n),n}},d=t["_"+n],f=[],g=0;if(a)for(var p=0;p<a.length;p++){var v=l[o[p]];v?(0===g&&(g=eS()),f[p]=v(a[p])):f[p]=a[p]}var y=d.apply(null,f);return c=y,0!==g&&eR(g),u=c,y="string"===i?N(u):"boolean"===i?!!u:u}(n,i,o,arguments)}},t.getValue=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i8";switch("*"===n.charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":return A[t>>0];case"i16":return g[t>>1];case"i32":case"i64":return v[t>>2];case"float":return m[t>>2];case"double":return Number(_[t>>3]);default:Q("invalid type for getValue: "+n)}return null},t.UTF8ToString=N,t.GL=ec,K=function t(){!E&&eD(),!E&&(K=t)},t.run=eD,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return eD(),t.ready})},231834:function(t,n,i){"use strict";i.d(n,{i:function(){return o}});var o="1.0.13"},989559:function(t,n,i){"use strict";function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=Array(n);i<n;i++)o[i]=t[i];return o}i.d(n,{$w:function(){return a},Kd:function(){return g},PA:function(){return s},XW:function(){return d},Zj:function(){return h},qH:function(){return u},u:function(){return v}});function a(t,n,i){return n=l(n),function(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(n,i||[],l(t).constructor):n.apply(t,i))}function s(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function c(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,y(o.key),o)}}function u(t,n,i){return n&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&p(t,n)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function A(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}function h(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?A(Object(i),!0).forEach(function(n){var o,a,s;o=t,a=n,s=i[n],(a=y(a))in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function g(t,n){if(null==t)return{};var i,o,a=function(t,n){if(null==t)return{};var i={};for(var o in t)if(({}).hasOwnProperty.call(t,o)){if(-1!==n.indexOf(o))continue;i[o]=t[o]}return i}(t,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)i=s[o],-1===n.indexOf(i)&&({}).propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}return a}function p(t,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function v(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return o(t,n);var i=({}).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)?o(t,n):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t){var n=function(t,n){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:n+""}},552374:function(t,n,i){"use strict";function o(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function a(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){var n=function(t,n){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:n+""}(o.key),o)}}function s(t,n,i){return n&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}i.d(n,{Ac:function(){return c},PA:function(){return o},qH:function(){return s}});function c(t){return(c="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)}},96703:function(t,n,i){"use strict";i.d(n,{A:function(){return s},Z:function(){return c}});var o,a=i(261825);var s=((o=s||{})[o.UNKNOWN=0]="UNKNOWN",o[o.USER_SELECT=1]="USER_SELECT",o[o.SR=2]="SR",o[o.BUFFER_INFO_ONLY_ONE_ITEM=3]="BUFFER_INFO_ONLY_ONE_ITEM",o[o.BUFFER_INFO_TARGET_NOT_FOUND=4]="BUFFER_INFO_TARGET_NOT_FOUND",o[o.BUFFER_INFO_FIND_ADAPT_BITRATE=5]="BUFFER_INFO_FIND_ADAPT_BITRATE",o),c=(0,a.qH)(function t(){(0,a.PA)(this,t),this.type=0,this.reason=""})},773225:function(t,n,i){"use strict";i.d(n,{ZP:function(){return g},zP:function(){return p},vP:function(){return A},vK:function(){return f},gH:function(){return v}});var o=i("261825");i("346984"),i("705574"),i("162093"),i("117232"),i("497397"),i("639742"),i("2885"),i("248385"),i("663030");var a=i("734123"),s=i("310267"),c=i("614088"),u=i("78346"),l=(0,o.qH)(function t(){(0,o.PA)(this,t),(0,o._x)(this,"analysis",void 0)},[{key:"select",value:function(t,n,i){var o,a=i.speed;if(t.length<=1)return t[0];var s=n.autoBitrateParams,c=s.paramA,l=s.paramB,d=s.paramC,f=s.paramD,A=n.defaultBitrate,h=-1===a?A:c*Math.pow(a,3)+l*Math.pow(a,2)+d*a+f;return!(o=(0,u.v2)(t,h,n.selectAlgType))&&(o=t[t.length-1]),o._targetBitrate=h,o}}]),d=20,f={DEFAULT:"default",BITRATE_ADAPTER:"bitRateAdapter",USER_SELECT:"userSelect",OVER_SCORE:"overscore"},A={SIMPLE:"simple",BUFFER_INFO:"buffer-info",BANDWIDTH:"bandwidth-buffer"},h={AVG:"avg",WEIGHT:"weight"},g=(0,o.qH)(function t(n,i){(0,o.PA)(this,t),(0,o._x)(this,"_analysis",void 0),this._selectorMap={},this.config=t.defaultConfig,this.updateConfig(n.config||{}),this.speed=0,this._selectorMap[A.SIMPLE]=new l,this._selectorMap[A.BUFFER_INFO]=new c._(i,this.config),this._selectorMap[A.BANDWIDTH]=new s.v(i,this.config)},[{key:"analysis",get:function(){return this._analysis},set:function(t){var n=this;this._analysis=t,Object.keys(this._selectorMap).map(function(i){n._selectorMap[i].analysis=t})}},{key:"updateConfig",value:function(t){var n=this,i=t||{};Object.keys(i).map(function(t){n.config[t]=i[t]}),this._selectorMap[A.BUFFER_INFO]&&this._selectorMap[A.BUFFER_INFO].updateConfig(this.config),this._selectorMap[A.BANDWIDTH]&&this._selectorMap[A.BANDWIDTH].updateConfig(this.config)}},{key:"select",value:function(t,n,i){if(!this.config.disabled){n=n||this.config.mode;var o=this.config,a=o.bitrateRange,s=o.defaultBitrate,c=o.bitrateKey,l=null===(f=t[0])||void 0===f?void 0:f.degFactor;l&&t.forEach(function(t){delete t.degFactor});var d=(t=(0,u.QS)(t,c)).filter(function(t){return t._xgOrgBitrate>=a[0]&&t._xgOrgBitrate<=a[1]}).sort(function(t,n){return n._xgOrgBitrate-t._xgOrgBitrate});if(!d.length){var f,A,h=1/0;t.forEach(function(t){var n=Math.abs(t._xgOrgBitrate-s);n<h&&(A=t,h=n)}),A&&d.push(A)}this.speed=i||p(this.config.speedAlgoType);var g=(this._selectorMap[n]||this._selectorMap.simple).select(d,this.config,{speed:this.speed,degFactor:l})||d[0];if((null==l?void 0:l.degradeBitrateType)==="force"){var y=l.value;if(g&&Number.isInteger(y)&&0!==y){var m=d.indexOf(g);g=d[m+y]||(y>0?d[d.length-1]:d[0])}}return g&&(g.filterRateCnt=(null==d?void 0:d.length)||0,g.isFilterMaxRate=v(d,g),g.bitrateSetSelector=d.map(function(t){return t.gearName}),g.qualityBitrateSelector=d.map(function(t){return"".concat(t.qualityType,":").concat(t._xgOrgBitrate)})),g}}},{key:"selector",get:function(){var t=this.config.mode;return this._selectorMap[t]||this._selectorMap.simple}},{key:"getTargetBitrate",value:function(t,n){var i=this.selector;if(i&&i.getTargetBitrate)return i.getTargetBitrate(t,n)}},{key:"addSelect",value:function(t,n){this._selectorMap[t||n.name]=n}},{key:"destroy",value:function(){var t=this._selectorMap;Object.keys(t).forEach(function(n){"function"==typeof t[n].destroy&&t[n].destroy()})}}],[{key:"defaultConfig",get:function(){return{paramBf:.3,paramBp:.5,paramUpper:1.5,paramLower:.6,paramUpperBl:.7,paramVl1:.7,paramVl2:1e3,paramVlUpper:.9,paramVlLower:.8,bitrateUpper:2e6,bitrateLower:2e5,slidingWindowType:"by_weight",slidingWindowWeight:"size",slidingWindowWeightThreshold:3e5,slidingWindowCountThreshold:30,slidingWindowExtraction:"weighted_median",bitrateRange:[2e5,25e5],defaultBitrate:1e6,autoBitrateParams:{paramA:0,paramB:404330129e-17,paramC:.0164405979,paramD:225511.28,minBitrate:2e5},mSpeedRecordValidThreshold:2,mode:A.SIMPLE,needCheckDuration:!0,overscore:{isOpen:!1,enable266:!0,filterKey:"definition",filterList:[],scoreMultiple:2},bitrateKey:"bitrate",playlist_select_bitrate:{enable_playlist_factor:!0,min_speed:1e5,max_speed:1e7,min_factor:.8,max_factor:1.5,cdf_threshold:.5,max_consider_after_media_num:3,max_single_video_reserved_duration:5e3,max_sum_video_reserved_duration:1e4,to_play_type:"fixed",fixed_to_play_ms:1e4,default_weibull_param:{beta:.49,eta:5200,gamma:1100},min_to_play_ms:5e3,max_to_play_ms:2e4}}}},{key:"MaxQueueCapacity",get:function(){return d},set:function(t){d=t}}]);function p(t){var n=0;return t&&t!==h.AVG?t===h.WEIGHT&&(n=a.TestSpeed.getWeightedSpeedKbs()):n=a.TestSpeed.getAvgSpeedKbs(),Math.max(1024*n,0)}function v(t,n){if(!(null!=t&&t.length)||!n||!n._xgOrgBitrate)return -1;var i,o,a=t.length-1;return((null===(i=t[0])||void 0===i?void 0:i._xgOrgBitrate)>=(null===(o=t[t.length-1])||void 0===o?void 0:o._xgOrgBitrate)&&(a=0),t[a]._xgOrgBitrate<=n._xgOrgBitrate)?1:0}},790900:function(t,n,i){"use strict";i.d(n,{$:function(){return a}});var o=i(261825);i(9498),i(932651),i(248385),i(663030);var a=(0,o.qH)(function t(n){(0,o.PA)(this,t),this._queue=[],this._current={},this.setConfig(n)},[{key:"queue",get:function(){return this._queue}},{key:"setConfig",value:function(t){this._config=Object.assign({},t)}},{key:"setCurrent",value:function(t){Object.assign(this._current,t)}},{key:"getCurrent",value:function(){return this._current}},{key:"resetCurrent",value:function(){this._current={}}},{key:"calcAndReset",value:function(){var t=this._current,n=t.startBufferTime,i=t.duration,o=t.endBufferTime,a=t.leaveWithBlock,s=t.stalledTime,c=t.pausedTime,u=t.downloadDuration,l=t.bitrate;if(!i||!l||!o){this.resetCurrent();return}var d=this._config,f=d.paramBf,A=d.paramBp,h=d.paramUpperBl,g=d.paramUpper,p=d.slidingWindowWeight,v=d.slidingWindowType,y=d.slidingWindowWeightThreshold,m=d.slidingWindowCountThreshold,_=1+((o-n)*f-(s+c)*A)/u;a&&(_=Math.min(_,h));var I=l*Math.max(g,_),b=0;if(b="time"===p?Math.min(u,i+s):Math.min(u,i)*l,this._queue.push([I,b,this._current]),"by_weight"===v){this._queue=this._queue.slice(-30);for(var C=this._queue.reduce(function(t,n){return t+n[1]},0)-y;C>0;){var k=this._queue.shift();if(!k)break;if(k[1]>C){k[1]-=C,this._queue.unshift(k);break}C-=k[1]}}else this._queue=this._queue.slice(-m);this.resetCurrent()}},{key:"getDefaultBitrate",value:function(t){if(!t||0===t.length)return 0;for(var n=this._config.defaultTargetBitrate||1e6,i=0,o=0;o<t.length;o++)t[o]._xgOrgBitrate<=n&&t[o]._xgOrgBitrate>=i&&(i=t[o]._xgOrgBitrate);return!i&&(i=t[t.length-1]._xgOrgBitrate),i}},{key:"getTargetBitrate",value:function(t){if(!this._queue.length||!t)return 0;var n=this._config,i=n.paramVlLower,o=n.paramVlUpper,a=n.paramVl1,s=n.paramVl2,c=n.bitrateLower,u=n.bitrateUpper,l=n.slidingWindowExtraction,d=0,f=this._queue.reduce(function(t,n){return t+n[1]},0);if("weighted_median"===l){var A=f/2,h=1/0,g=0;this._queue.forEach(function(t){(g=Math.abs(A-t[1]))<h&&(d=t[0],h=g)})}else d=this._queue.reduce(function(t,n){return t+n[1]/f*n[0]},0);return Math.max(c,Math.min(u,d*Math.min(o,Math.max(i,a+s/t))))}}])},494742:function(t,n,i){"use strict";function o(t,n,i){"function"==typeof n&&t.then(n),"function"==typeof i&&t.catch(i)}i.d(n,{Z:function(){return o}})},867348:function(t,n,i){"use strict";i.d(n,{Z:function(){return a}}),i(248385),i(679308),i(759943),i(414931);var o=i(832567);function a(){try{if(!(null!==o.Z&&void 0!==o.Z&&o.Z.open))return!1;var t=/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||n)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(t){return!1}}},651108:function(t,n,i){"use strict";i.d(n,{s:function(){return y}});var o=i("6055");i("346984"),i("705574"),i("117232"),i("503000"),i("932651"),i("2885"),i("248385"),i("679308"),i("663030");var a=i("373974"),s=i("942155"),c=i.n(s),u=i("832641"),l=i("423263");i("124300"),i("171655"),i("496423"),i("591111"),i("437545"),i("630361"),i("497736"),i("954018"),i("506442"),i("795434"),i("664089"),i("863063"),i("478782"),i("866124"),i("378508"),i("70698"),i("669689"),i("490629");var d=["vid","loadType","size","speed","cacheKey","vtype","duration","bitrate"],f=0,A=(0,o.qH)(function t(n){var i=this;(0,o.PA)(this,t),this._preload_bandwith_map=new Map,this._usepreload_info=new Map,this._pcdn_info_map=new Map,this._updateRealTimeSpeed=function(t){f=t.speed,i.emit(a.kW,t)},this._manager=n},[{key:"setPreloadBandwidth",value:function(t,n){this._preload_bandwith_map.set(t,n)}},{key:"getPreloadBandwidth",value:function(t){return this._preload_bandwith_map.get(t)}},{key:"_updateLoadInfo",value:function(t,n,i){var o=this._pcdn_info_map.get(t);o||(o={}),!o[n]&&(o[n]={},o[n].loadLen=0),o[n].loadLen=o[n].loadLen+i,this._pcdn_info_map.set(t,o)}},{key:"getLoadInfoAndDelete",value:function(t){var n=this._pcdn_info_map.get(t);return this._pcdn_info_map.delete(t),n}},{key:"getPreloadUnuseInfo",value:function(){var t={},n,i=(0,o.sf)(this._preload_bandwith_map);try{for(i.s();!(n=i.n()).done;){var a=(0,o.ZQ)(n.value,2),s=a[0],c=a[1];if(this._usepreload_info.get(s))this._preload_bandwith_map.delete(s);else{var u=s.split("#"),l=u.length>0?u[0]:s;t[l]?(t[l].bw+=c.bw||0,t[l].pbw+=c.pbw||0):t[l]={vid:l,bw:c.bw||0,pbw:c.pbw||0,bitrate:c.bitrate||0,duration:c.duration||0}}}}catch(t){i.e(t)}finally{i.f()}return Object.values(t)}},{key:"bwEventEmit",value:function(t){var n=t.vid,i=t.loadType,s=t.size,c=t.speed,u=t.cacheKey,l=t.vtype,f=t.duration,A=t.bitrate,h=(0,o.Kd)(t,d),g=this.getPreloadBandwidth(u)||{bw:0,pbw:0,vid:n,duration:f,bitrate:A};i&&i!==a._R.CDN?(g.pbw=g.pbw+s,this.emit("prf_data_size",(0,o.Zj)({vid:n,task_type:2,pcdn_size:s,pcdn_speed:c,vtype:l,bitrate:A,duration:f},h))):(g.bw=g.bw+s,this.emit("prf_data_size",(0,o.Zj)({vid:n,task_type:2,cdn_size:s,cdn_speed:c,vtype:l,duration:f,bitrate:A},h))),this.setPreloadBandwidth(u,g),this._updateRealTimeSpeed({speed:c,type:i||a._R.CDN}),this._updateLoadInfo(u,i,s)}},{key:"setUsePreloadInfo",value:function(t,n){this._usepreload_info.set(t,n)}},{key:"realTimeSpeed",get:function(){return f}},{key:"emit",value:function(t,n){var i;null===(i=this._manager)||void 0===i||i.emit(t,n)}},{key:"destroy",value:function(){this._preload_bandwith_map=new Map,this._usepreload_info=new Map,this._pcdn_info_map=new Map,this._manager=null}}]),h=i("949195"),g=i("737756"),p=["vid","loadType","size","speed","cacheKey","vtype","duration","bitrate"],v=!1,y=function(t){var n,i,s,c,d,f;function y(){var t;return(0,o.PA)(this,y),(t=(0,o.$w)(this,y))._loaders={},t._loaderInsts={},t._taskIntervalId=0,t._currentPreloadInst=null,t._preloadDataList=[],t._player=null,t._stepwise=!1,t._playingVids=[],t._isOpen=!0,t._userDefinition=null,t._startDefinition=null,t.onPreloadNext=(0,o.x)((0,o.l5)().mark(function n(){var i,a,s,c,l,d,f,A,h,g,p,v,y,m;return(0,o.l5)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(c=(s=t)._preloadDataList,l=s._config,t._canPreloadNext()){n.next=3;break}return n.abrupt("return",!1);case 3:if(f=null==(d=t.findPreloadItem(c,!1))?void 0:d.data,!(!d||!(null!=f&&f.payload))){n.next=7;break}return n.abrupt("return",!1);case 7:if(A=null,A=t.selectBeforeStart(f),t._filterMixPayload(f,A),t.setStartDefinition(null===(i=A)||void 0===i?void 0:i.definition),t.log("log","selectBeforeStart",null===(a=A)||void 0===a?void 0:a.vtype,A),h=t._getPreloaderKey(A||f)){n.next=17;break}return t.log("warn","need to set vtype, no preloader",f),l.autoPreload&&t.emit(u.KR.PRELOAD_NEXT),n.abrupt("return",!1);case 17:if(g=t._getLoaderInst(h)){n.next=23;break}if(p=t._getLoader(h)){n.next=22;break}return n.abrupt("return",!1);case 22:g=new p(t,t._config);case 23:return t._currentPreloadInst=g,t._currentPreloadInst.setData(f),t._emitEvtByStart(f),n.prev=26,t.log("log","loaderInst.start",h,t.getStartDefinition(),f),n.next=30,g.start(f,t.getStartDefinition());case 30:(v=n.sent)&&v.remove&&(y=c.indexOf(d))>-1&&c.splice(y,1),n.next=37;break;case 34:n.prev=34,n.t0=n.catch(26),t.log("error","preload data error!",n.t0);case 37:return n.prev=37,null===(m=t._currentPreloadInst)||void 0===m||m.setData(null),t._currentPreloadInst=null,t._config.autoPreload&&(t._canPreloadNext()?t.emit(u.KR.PRELOAD_NEXT):t.emit(u.KR.PRELOAD_STOP)),n.finish(37);case 42:return n.abrupt("return",!0);case 43:case"end":return n.stop()}},n,null,[[26,34,37,42]])})),t._stats=new A(t),t}return(0,o.XW)(y,t),(0,o.qH)(y,[{key:"VTYPES",get:function(){return a.l0}},{key:"player",get:function(){return this._player}},{key:"stepwise",get:function(){return this._stepwise}},{key:"realTimeSpeed",get:function(){return this._stats.realTimeSpeed}},{key:"currentPreloadInst",get:function(){return this._currentPreloadInst}},{key:"cacheInst",get:function(){return this._cacheInst}},{key:"preloadDataList",get:function(){return this._preloadDataList}},{key:"log",value:function(t){for(var n,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];v&&(n=console)[t].apply(n,["[PreloaderManager]"].concat(o))}},{key:"register",value:function(t){try{if("undefined"==typeof window){this.log("preloader in ssr");return}var n=y.getDefaultConfig();this._config=Object.assign({},n,t.config),this._options=t;var i=this._config,o=i.preloadMaxCacheCount,a=i.preloadCacheType;this._stepwise=!!this._config.stepwise,this._cacheInst=new l.Z(o,a),this._selector=t.BitrateSelector,this.on(u.KR.PRELOAD_NEXT,this.onPreloadNext);for(var s=t.loaders,c=0;c<s.length;c++)this.registerLoader(s[c].vtype,s[c])}catch(t){this.log("register error",t)}}},{key:"registerLoader",value:function(t,n){t&&(this._loaders[t]&&this.log("warn","vtype:".concat(t," Preloader already exist")),this._loaders[t]=n,this._loaderInsts[t]=new n(this,this._config))}},{key:"_checkIfCanPreload",value:function(){if(null===this._currentPreloadInst&&this._preloadDataList.length>0){var t=this.findPreloadItem(this._preloadDataList),n=null==t?void 0:t.data;if(this._wipPreloadTask=t,t&&null!=n&&n.payload){if(!this._getPreloaderKey(n))return this.log("warn","need to set vtype"),this.stopCheckTask(),!1;var i=this._config.checkIfCanPreload;if(i&&"function"==typeof i)return i(n);if(this._config.autoCheckPreload)return this._autoCheckPreload(n,t);else this.stopCheckTask()}}return!1}},{key:"_autoCheckPreload",value:function(t,n){var i,o=null==n||null===(i=n.data)||void 0===i?void 0:i.force;if("always"===o)return!0;if(!this._player)return"no-player"===o||(this.log("warn","need set video"),!1);return(0,g.xF)(this._player,this._config,this.log)}},{key:"_getPreloaderKey",value:function(t){return t.vtype?t.vtype.toUpperCase():""}},{key:"_sort",value:function(t){t.sort(function(t,n){return void 0===t.order&&void 0===n.order||"number"==typeof t.order&&"number"==typeof n.order&&t.order<n.order?-1:1})}},{key:"_addPlayingVid",value:function(t,n){var i=this._playingVids,o=(0,g.PK)(this._playingVids,"playerId",t);o>-1?i[o].vid=n:i.push({vid:n,playerId:t})}},{key:"selectBeforeStart",value:function(t){var n=t.targetDefinition,i=t.defaultDefinition;if(n)return(0,o.Zj)({},n);var a=this.getUserSelectDefinition(),s=this.selectBitrate(null==t?void 0:t.payload,i,a,null==t?void 0:t.playlist_info),c=(null==s?void 0:s.vtype)||t.vtype,u=(0,o.Zj)((0,o.Zj)({},s),{},{vtype:c});return t.targetDefinition=u,this.log("log","selectBeforeStart",null==t?void 0:t.vid,c,null==s?void 0:s.definition,null==t?void 0:t.payload,s),u}},{key:"selectBitrate",value:function(t,n,i,a){if(t.length<1)return null;var s,c,u,l=null;if(this._selector)l=this._selector.getSuitableBitrate(t,i,null,a),this.log("log","BitRateAdapter result",null===(s=l)||void 0===s?void 0:s.vtype,null===(c=l)||void 0===c?void 0:c.definition,null===(u=l)||void 0===u?void 0:u.bitrate);else{for(var d=-1,f=-1,A=0;A<t.length;A++){var h=t[A];i&&h.definition===i?d=A:n&&h.definition===n&&(f=A)}l=t[d>=0?d:f>=0?f:0]}return(0,o.Zj)({},l)}},{key:"startCheckTask",value:function(){var t=this,n=this._preloadDataList,i=this._currentPreloadInst,o=this._config.autoCheck;if(this._taskIntervalId&&(clearTimeout(this._taskIntervalId),this._taskIntervalId=0),null!=i&&i.taskInProgress&&(0,g.fQ)(this._player,this._config,this.log)){this.cancelPreloadingTask();return}if(0!==n.length)this._checkIfCanPreload()&&this.onPreloadNext(),this._taskIntervalId=setTimeout(function(){t.startCheckTask()},o.interval)}},{key:"cancelPreloadingTask",value:function(){var t,n=this._preloadDataList,i=this._wipPreloadTask,o=this._config.endPreloadTaskStrategy;this.cancel(),i&&(this.stepwise?"number"==typeof(null===(t=i.data)||void 0===t?void 0:t.stepIdx)&&i.data.stepIdx>-1&&i.data.stepIdx--:0!==o&&n.unshift(i),this._emitEvtByCancel(i.data),this._wipPreloadTask=void 0)}},{key:"stopCheckTask",value:function(){this._taskIntervalId&&(clearTimeout(this._taskIntervalId),this._taskIntervalId=-1)}},{key:"getPreloadMetaByVid",value:function(t,n){for(var i=this.getAllCachedDataKeys(),o=[],a="",s=0;s<i.length;s++){var c=i[s],u=y.parseKey(c);if(u.vid!==t)continue;if(a=u.vtype,null==n||!n.vtype||n.vtype===a)o.push(c)}if(0===o.length)return null;var l=this._getLoaderInst(a);return l?l.parseKey(o):null}},{key:"preloadNext",value:function(){this.onPreloadNext()}},{key:"_filterMixPayload",value:function(t,n){var i=n.vtype;if(i&&Array.isArray(t.payload)){var o=t.vtype===i;t.vtype=i,t.payload=t.payload.filter(function(t){return t.vtype===i||o})}}},{key:"_canPreloadNext",value:function(){return this._isOpen&&!this._currentPreloadInst&&this._preloadDataList.length>0}},{key:"_emitEvtByStart",value:function(t){var n=this._player;if(t&&n)try{this.emit(u.KR.PRELOAD_START,this._getEventPayload(t,n))}catch(t){this.log("warn","preload emit start error",null==t?void 0:t.stack)}}},{key:"_emitEvtByCancel",value:function(t){var n=this._player;if(t&&n)try{this.emit(u.KR.PRELOAD_CANCEL,this._getEventPayload(t,n))}catch(t){this.log("warn","preload emit cancel error",null==t?void 0:t.stack)}}},{key:"_getEventPayload",value:function(t,n){var i=n.config.vid,o=this._config,a=o.minBufferLength,s=o.startPreloadControl,c=o.startPreloadMinBuffer,u=o.startPreloadMinPosTime,l=o.endPreloadMinBuffer,d=o.endPreloadControl,f=(0,g.lh)(n.video.buffered,n.currentTime),A=f[1]?f[1]-n.currentTime:0;return{vid:i,pid:t.vid,buffer:f,bufferHead:A,currentTime:n.currentTime,minBufferLength:a,startPreloadControl:s,startPreloadMinBuffer:c,startPreloadMinPosTime:u,endPreloadControl:d,endPreloadMinBuffer:l}}},{key:"addPreloadList",value:(n=(0,o.x)((0,o.l5)().mark(function t(n){var i,a,s;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this._sort(n),i=(0,o.sf)(n),t.prev=2,i.s();case 4:if((a=i.n()).done){t.next=10;break}return s=a.value,t.next=8,this._addData(s);case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),i.e(t.t0);case 15:return t.prev=15,i.f(),t.finish(15);case 18:this._checkAutoTask();case 19:case"end":return t.stop()}},t,this,[[2,12,15,18]])})),function(t){return n.apply(this,arguments)})},{key:"addPlayingId",value:function(t,n){for(var i=this._preloadDataList,o=-1,a=0;a<i.length;a++)if(t===i[a].data.vid){o=a;break}if(o>-1){var s=i.splice(o,1);this.log("log","cancelPreloadByVid remove from list",s.length>0&&s[0].data.vid)}var c=this._currentPreloadInst,u=c?c.getData():null;this.log("log","_currentPreloadInst",u),u&&u.vid===t&&this.cancel(),n&&this._addPlayingVid(n,t)}},{key:"removePlayingId",value:function(t){var n=this._playingVids,i=(0,g.PK)(n,"playerId",t);if(i>-1){var o=n.splice(i,1);this.log("log","removePlayingId",o.length>0&&o[0].playerId)}}},{key:"addPreload",value:(i=(0,o.x)((0,o.l5)().mark(function t(n){return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._addData(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:this._sort(this._preloadDataList),this._checkAutoTask();case 7:case"end":return t.stop()}},t,this)})),function(t){return i.apply(this,arguments)})},{key:"_addData",value:(s=(0,o.x)((0,o.l5)().mark(function t(n){var i,a,s,c,u,l,d,f,A,h=this;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.data.vtype){t.next=3;break}return this.log("warn","vtype is null, can\xb7t select loader"),t.abrupt("return",!1);case 3:if(i=n.data,a=this._getLoader(i.vtype)){t.next=8;break}return this.log("warn","the loader for ".concat(i.vtype," not registered")),t.abrupt("return",!1);case 8:if(s=this._playingVids,!((c=(0,g.PK)(s,"vid",n.data.vid))>=0)){t.next=14;break}return u=s[c],this.log("log","vid:".concat(u.vid," is already instantiated and loaded, playerId is ").concat(u.playerId)),t.abrupt("return");case 14:return l=this._getUniqueKey(n),t.next=17,this.getItem(n.data,!0);case 17:if(!(d=t.sent)||!a.isUniqueCache(d)){t.next=22;break}return this.log("log","".concat(l," already exist in cache")),t.abrupt("return",!1);case 22:if(!this._currentPreloadInst||!(f=this._currentPreloadInst.getData())||this._getUniqueKey({data:f,order:0})!==l){t.next=29;break}return this.log("log","currentKey repeat"),t.abrupt("return");case 29:if(A=this._preloadDataList.filter(function(t){return h._getUniqueKey(t)===l}),this.log("log","addedItems",l,A),0!==A.length){t.next=35;break}return this._stepwise&&void 0===n.data.steps&&(n.data.steps=[0]),this._preloadDataList.push(n),t.abrupt("return",!0);case 35:return this.log("log","".concat(l," already exist in preloadList")),t.abrupt("return",!1);case 37:case"end":return t.stop()}},t,this)})),function(t){return s.apply(this,arguments)})},{key:"_getUniqueKey",value:function(t){return t.data.vtype?y.generateUniqueCacheKey(t.data):t.data.vid}},{key:"_checkAutoTask",value:function(){var t=this,n=this._config,i=n.autoCheck,o=n.autoPreload;Promise.resolve().then(function(){o&&t.emit(u.KR.PRELOAD_NEXT),null!=i&&i.enable&&!t._taskIntervalId&&t.startCheckTask()})}},{key:"setItem",value:function(t,n,i,a){var s=y.generateUniqueCacheKey(t);if(!i){var c=this._getLoader(t.vtype);if(!c)return this.log("warn","no ".concat(t.vtype," preloader, register")),Promise.resolve(!1);var u=c.generateUniqueKey(t);n=(0,o._x)({},u,n)}return this._cacheInst.setItem(s,n,a)}},{key:"getItem",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=y.generateUniqueCacheKey(t),a=this._getLoader(t.vtype);if(!a)return this.log("warn","no ".concat(t.vtype," preloader, register")),Promise.resolve(!1);var s=n?"":a.generateUniqueKey(t);return this._cacheInst.getItem(o,i,s)}},{key:"getItemSync",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=y.generateUniqueCacheKey(t),a=this._getLoader(t.vtype);if(!a)return this.log("warn","no ".concat(t.vtype," preloader, register")),!1;var s=n?"":a.generateUniqueKey(t);return this._cacheInst.getItemSync(o,i,s)}},{key:"supportSync",value:function(){return this._cacheInst.supportSync()}},{key:"removeItem",value:function(t,n){var i=y.generateUniqueCacheKey(t);return this._cacheInst.removeItem(i,n)}},{key:"getPreLoadData",value:(c=(0,o.x)((0,o.l5)().mark(function t(n){var i,a,s;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.vtype,!(a=this._getLoaderInst(i))){t.next=7;break}return t.next=5,a.getPreLoadData(n);case 5:return s=t.sent,t.abrupt("return",s);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"getPreLoadDataSync",value:function(t){var n=t.vtype,i=this._getLoaderInst(n);return i?i.getPreLoadDataSync(t):null}},{key:"removeAll",value:function(){var t=this;this.getAllCachedDataKeys().forEach(function(n){var i=t.getPreloadMetaByVid(n.split("#")[0]);i&&t.removeItem(i,null)})}},{key:"removeAllPreloadTask",value:function(){this.cancel(),this._preloadDataList=[],this._playingVids=[]}},{key:"disable",value:function(){this._isOpen=!1,this.stopCheckTask()}},{key:"enable",value:function(){this._isOpen=!0,this._config.autoCheck.enable&&!this._taskIntervalId&&this._preloadDataList.length>0&&this.startCheckTask()}},{key:"setUserSelectDefinition",value:function(t){this._userDefinition=t}},{key:"getUserSelectDefinition",value:function(){return this._userDefinition||null}},{key:"getStartDefinition",value:function(){return this._startDefinition}},{key:"setStartDefinition",value:function(t){this._startDefinition=t}},{key:"destroy",value:(d=(0,o.x)((0,o.l5)().mark(function t(){var n,i,a,s;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this._stats.destroy(),n=Object.keys(this._loaderInsts),i=0;case 3:if(!(i<n.length)){t.next=12;break}if(a=n[i],!(s=this._getLoaderInst(a))){t.next=9;break}return t.next=9,s.destroy();case 9:i++,t.next=3;break;case 12:this.removeAllListeners(),this._loaderInsts={},this._loaders={},this._playingVids=[],this.detachPlayer();case 17:case"end":return t.stop()}},t,this)})),function(){return d.apply(this,arguments)})},{key:"cancel",value:(f=(0,o.x)((0,o.l5)().mark(function t(){var n;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._currentPreloadInst){t.next=4;break}return t.next=3,this._currentPreloadInst.cancel();case 3:null===(n=this._currentPreloadInst)||void 0===n||n.setData(null);case 4:this._currentPreloadInst=null;case 5:case"end":return t.stop()}},t,this)})),function(){return f.apply(this,arguments)})},{key:"removeByPlayInst",value:function(t,n){for(var i=this._preloadDataList.length-1;i>-1;i--){var o=this._preloadDataList[i];if(o.data.vid===t&&o.playerId===n){this._preloadDataList.splice(i,1);break}}}},{key:"getAllCachedDataKeys",value:function(){var t;return(null===(t=this._cacheInst)||void 0===t?void 0:t.getAllCachedDataKeys())||[]}},{key:"getDataUniqueKey",value:function(t){var n=this._getLoader(t.vtype);return!!n&&n.generateUniqueKey(t)}},{key:"hasItemSameVid",value:function(t){var n=this._getLoader(t.vtype),i=this._getLoaderInst(t.vtype);if(n&&i){var o=n.generateUniqueKey(t);return i.hasItemSameVid(o)}return!1}},{key:"_getLoader",value:function(t){t=t||"";var n=this._loaders[t]||this._loaders[t.toLocaleLowerCase()];return n?n:(this.log("warn","no ".concat(t," preloader, register")),null)}},{key:"_getLoaderInst",value:function(t){t=t||"";var n=this._loaderInsts[t]||this._loaderInsts[t.toLocaleLowerCase()];return n?n:(this.log("warn","no ".concat(t," preloader, register")),null)}},{key:"getPreloadMemoryInfo",value:function(){return this._cacheInst.getMemoryInfo()}},{key:"attachPlayer",value:function(t){this._player=t}},{key:"detachPlayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(!t||this._player===t)&&(this._player=null)}},{key:"setPreloadBandwidth",value:function(t,n){this._stats.setPreloadBandwidth(t,n)}},{key:"getPreloadBandwidth",value:function(t){return this._stats.getPreloadBandwidth(t)}},{key:"getLoadInfoAndDelete",value:function(t){return this._stats.getLoadInfoAndDelete(t)}},{key:"getPreloadUnuseInfo",value:function(){return this._stats.getPreloadUnuseInfo()}},{key:"setUsePreloadInfo",value:function(t,n){this._stats.setUsePreloadInfo(t,n)}},{key:"bwEventEmit",value:function(t){var n=t.vid,i=t.loadType,a=t.size,s=t.speed,c=t.cacheKey,u=t.vtype,l=t.duration,d=t.bitrate,f=(0,o.Kd)(t,p);this._stats.bwEventEmit((0,o.Zj)({vid:n,loadType:i,size:a,speed:s,cacheKey:c,vtype:u,duration:l,bitrate:d},f))}},{key:"findPreloadItem",value:function(t){var n,i=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this._stepwise){var o=t.reduce(function(t,n){return void 0===n.data.stepIdx||"number"==typeof n.data.stepIdx&&"number"==typeof t.data.stepIdx&&n.data.stepIdx<t.data.stepIdx?n:t}),a=t.filter(function(t){return t.data.stepIdx===o.data.stepIdx});if(a.length>1&&this._sort(a),n=a[0],!i){if("number"!=typeof n.data.stepIdx&&(n.data.stepIdx=-1),n.data.stepIdx++,Array.isArray(n.data.steps)&&n.data.stepIdx>=n.data.steps.length-1){var s=t.indexOf(n);t.splice(s,1)}n.data.stepIdx===1/0&&(n=void 0)}}else n=i?t[0]:t.shift();return n}},{key:"updateConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?this._config=Object.assign({},y.getDefaultConfig(),t):Object.assign(this._config,t);var i=this._config.autoCheck;i&&!i.enable&&this.stopCheckTask(),i&&i.enable&&this.startCheckTask()}},{key:"preProcessUrl",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._config,o=i.preProcessUrl,a=i.preProcessUrlOptions;return"function"==typeof o?o(t,Object.assign({},a,n)):{url:t}}}],[{key:"getDefaultConfig",value:function(){return(0,h._)()}},{key:"generateUniqueCacheKey",value:function(t){var n=t.vid,i=t.codecType,o=t.vtype;return"".concat(n,"#").concat(i,"#").concat(o.toUpperCase())}},{key:"parseKey",value:function(t){if(!t)throw Error("key ".concat(t," is empty"));var n=t.split("#");if(n.length<6)throw Error("key ".concat(t," is not right format"));var i=n[0],o=n[1],a=n[2],s=n[3],c=n[4],u="mp4"===s.toLowerCase()?5:7,l=parseInt("".concat(n[u]||0),10)||0;return{vid:i,mediaType:o,codecType:a,vtype:s,definition:c,bitrate:l,fileId:n[8]}}},{key:"debugger",set:function(t){v=!!t}}])}(c())},44589:function(t,n,i){"use strict";i.d(n,{KR:function(){return l},Rr:function(){return u},dJ:function(){return c}});var o,a,s,c=((o=c||{})[o.DURATION=0]="DURATION",o[o.SIZE=1]="SIZE",o);var u=((a=u||{})[a.INDEXDB=0]="INDEXDB",a[a.MEMORY=1]="MEMORY",a);var l=((s=l||{}).PRELOAD_NEXT="PRELOAD_NEXT",s.PRELOAD_START="PRELOAD_START",s.PRELOAD_CANCEL="PRELOAD_CANCEL",s.PRELOAD_STOP="PRELOAD_STOP",s)},698647:function(t,n,i){"use strict";function o(t,n){n&&t.then(function(t){n(null,t)},function(t){n(t)})}i.d(n,{Z:function(){return o}})},611344:function(t,n,i){"use strict";i.d(n,{Z:function(){return _}});var o=i("330124");i("346984"),i("124300"),i("9498"),i("497397"),i("248385"),i("679308"),i("591111"),i("490629"),i("759943"),i("414931");var a=i("28295"),s=i("698647"),c=i("782938"),u=i("874281"),l={},d="readonly",f="readwrite";function A(t){var n=l[t.name],i={};i.promise=new Promise(function(t,n){i.resolve=t,i.reject=n}),n.deferredOperations.push(i),n.dbReady?n.dbReady=n.dbReady.then(function(){return i.promise}):n.dbReady=i.promise}function h(t,n){return new Promise(function(i,o){if(l[t.name]=l[t.name]||m(),t.db){if(!n)return i(t.db);A(t),t.db.close()}var s=[t.name];n&&s.push(t.version);var c=null===a.Z||void 0===a.Z?void 0:a.Z.open.apply(a.Z,s);n&&(c.onupgradeneeded=function(n){var i=c.result;try{i.createObjectStore(t.storeName)}catch(t){if("ConstraintError"===t.name);else throw t}}),c.onerror=function(t){t.preventDefault(),o(c.error)},c.onsuccess=function(){i(c.result),!function(t){var n=l[t.name].deferredOperations.pop();if(n)n.resolve(),n.promise}(t)}})}function g(t){return h(t,!1)}function p(t){return h(t,!0)}function v(t,n){if(!t.db)return!0;var i=!t.db.objectStoreNames.contains(t.storeName),o=t.version<t.db.version,a=t.version>t.db.version;if(o&&(t.version,t.version=t.db.version),a||i){if(i){var s=t.db.version+1;s>t.version&&(t.version=s)}return!0}return!1}function y(t,n,i,o){void 0===o&&(o=1);try{var a=t.db.transaction(t.storeName,n);i(null,a)}catch(a){if(o>0&&(!t.db||"InvalidStateError"===a.name||"NotFoundError"===a.name))return Promise.resolve().then(function(){if(!t.db||"NotFoundError"===a.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),h(t,!0)}).then(function(){return(function(t){A(t);for(var n=l[t.name],i=n.forages,o=0;o<i.length;o++){var a=i[o];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return t.db=null,h(t,!1).then(function(n){if(t.db=n,v(t))return h(t,!0);return n}).then(function(o){t.db=n.db=o;for(var a=0;a<i.length;a++)i[a]._dbInfo.db=o}).catch(function(n){throw!function(t,n){var i=l[t.name].deferredOperations.pop();if(i)i.reject(n),i.promise}(t,n),n})})(t).then(function(){y(t,n,i,o-1)})}).catch(i);i(a)}}function m(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}let _=(0,o.qH)(function t(){(0,o.PA)(this,t)},[{key:"ready",value:function(){return this._ready}},{key:"_initStorage",value:function(t){var n=this;n._defaultConfig=t;var i={db:null,name:"",version:""};if(t)for(var o in t)i[o]=t[o];var a=l[i.name];!a&&(a=m(),l[i.name]=a),a.forages.push(n),!n._initReady&&(n._initReady=n.ready,n._ready=n._fullyReady);var s=[];function c(){return Promise.resolve()}for(var u=0;u<a.forages.length;u++){var d=a.forages[u];d!==n&&s.push(d._initReady().catch(c))}var f=a.forages.slice(0);return n._ready=Promise.all(s).then(function(){return i.db=a.db,h(i,!1)}).then(function(t){if(i.db=t,v(i,n._defaultConfig.version))return h(i,!0);return t}).then(function(t){i.db=a.db=t,n._dbInfo=i;for(var o=0;o<f.length;o++){var s=f[o];s!==n&&(s._dbInfo.db=i.db,s._dbInfo.version=i.version)}}),n._ready}},{key:"probeSupport",get:function(){return function(){try{if(!(null!==a.Z&&void 0!==a.Z&&a.Z.open))return!1;var t=/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||n)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(t){return!1}}()}},{key:"getItem",value:function(t,n){var i=this;t=(0,u.Z)(t);var o=new Promise(function(n,o){i.ready().then(function(){y(i._dbInfo,d,function(a,s){if(a)return o(a);try{var c=s.objectStore(i._dbInfo.storeName).get(t);c.onsuccess=function(){var t=c.result;void 0===t&&(t=null),n(t)},c.onerror=function(){o(c.error)}}catch(t){o(t)}})}).catch(o)});return(0,s.Z)(o,n),o}},{key:"setItem",value:function(t,n,i){var o=this;t=(0,u.Z)(t);var a=new Promise(function(i,a){o.ready().then(function(){return o._dbInfo,n}).then(function(n){y(o._dbInfo,f,function(s,c){if(s)return a(s);try{var u=c.objectStore(o._dbInfo.storeName);null===n&&(n=void 0);var l=u.put(n,t);c.oncomplete=function(){void 0===n&&(n=null),i(n)},c.onabort=c.onerror=function(){var t=l.error?l.error:l.transaction.error;a(t)}}catch(t){a(t)}})}).catch(a)});return(0,s.Z)(a,i),a}},{key:"removeItem",value:function(t,n){var i=this;t=(0,u.Z)(t);var o=new Promise(function(n,o){i.ready().then(function(){y(i._dbInfo,f,function(a,s){if(a)return o(a);try{var c=s.objectStore(i._dbInfo.storeName).delete(t);s.oncomplete=function(){n()},s.onerror=function(){o(c.error)},s.onabort=function(){var t=c.error?c.error:c.transaction.error;o(t)}}catch(t){o(t)}})}).catch(o)});return(0,s.Z)(o,n),o}},{key:"clear",value:function(t){var n=this,i=new Promise(function(t,i){n.ready().then(function(){y(n._dbInfo,f,function(o,a){if(o)return i(o);try{var s=a.objectStore(n._dbInfo.storeName).clear();a.oncomplete=function(){t()},a.onabort=a.onerror=function(){var t=s.error?s.error:s.transaction.error;i(t)}}catch(t){i(t)}})}).catch(i)});return(0,s.Z)(i,t),i}},{key:"length",value:function(t){var n=this,i=new Promise(function(t,i){n.ready().then(function(){y(n._dbInfo,d,function(o,a){if(o)return i(o);try{var s=a.objectStore(n._dbInfo.storeName).count();s.onsuccess=function(){t(s.result)},s.onerror=function(){i(s.error)}}catch(t){i(t)}})}).catch(i)});return(0,s.Z)(i,t),i}},{key:"all",value:function(t){var n=this,i=new Promise(function(t,i){n.ready().then(function(){y(n._dbInfo,d,function(o,a){if(o)return i(o);try{var s=a.objectStore(n._dbInfo.storeName).openCursor(),c=[];s.onsuccess=function(){var n=s.result;if(!n){t(c);return}c.push({key:n.key,value:n.value}),n.continue()},s.onerror=function(){i(s.error)}}catch(t){i(t)}})}).catch(i)});return(0,s.Z)(i,t),i}},{key:"_fullyReady",value:function(t){var n=this,i=n._initReady().then(function(){var t=l[n._dbInfo.name];if(null!=t&&t.dbReady)return t.dbReady});return(0,c.Z)(i,t,t),i}},{key:"getItemSync",value:function(){throw Error("NotSupported")}}])},770932:function(t,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(330124);i(346984),i(497397),i(2885),i(248385),i(679308);var a=i(698647);let s=(0,o.qH)(function t(){(0,o.PA)(this,t)},[{key:"_initStorage",value:function(t){var n=t.name,i=t.storeName,a="".concat(n,"_").concat(i);return this.key=a,(!window[a]||"object"!==(0,o.Ac)(window[a]))&&(window[a]={}),this.store=window[a],Promise.resolve()}},{key:"getItem",value:function(t,n){var i=this.store[t];return void 0===i&&(i=null),this._internalPromise(n,i)}},{key:"getItemSync",value:function(t,n){var i=this.store[t];return void 0===i&&(i=null),n&&n(i),i}},{key:"setItem",value:function(t,n,i){return this.store[t]=n,this._internalPromise(i)}},{key:"removeItem",value:function(t,n){return delete this.store[t],this._internalPromise(n)}},{key:"clear",value:function(t){return this.store={},window[this.key]={},this._internalPromise(t)}},{key:"length",value:function(t){var n=Object.keys(this.store).length;return this._internalPromise(t,n)}},{key:"_internalPromise",value:function(t,n){var i=n?Promise.resolve(n):Promise.resolve();return(0,a.Z)(i,t),i}},{key:"all",value:function(t){for(var n=[],i=Object.keys(this.store),o=0;o<i.length;o++){var a=i[o];n.push({key:a,value:this.store[a]})}return this._internalPromise(t,n)}},{key:"probeSupport",value:function(){return!0}}])},31201:function(t,n,i){"use strict";i.d(n,{s:function(){return g}});var o=i("330124");i("346984"),i("705574"),i("117232"),i("503000"),i("932651"),i("2885"),i("248385"),i("679308"),i("663030");var a=i("75740"),s=i("942155"),c=i.n(s),u=i("44589"),l=i("943643"),d=i("917343"),f=i("374510"),A=["vid","loadType","size","speed","cacheKey","vtype","duration","bitrate"],h=!1,g=function(t){var n,i,s,c,g,p;function v(){var t;return(0,o.PA)(this,v),(t=(0,o.$w)(this,v))._loaders={},t._loaderInsts={},t._taskIntervalId=0,t._currentPreloadInst=null,t._preloadDataList=[],t._player=null,t._stepwise=!1,t._playingVids=[],t._isOpen=!0,t._userDefinition=null,t._startDefinition=null,t.onPreloadNext=(0,o.x)((0,o.l5)().mark(function n(){var i,a,s,c,l,d,f,A,h,g,p,v,y,m;return(0,o.l5)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(c=(s=t)._preloadDataList,l=s._config,t._canPreloadNext()){n.next=3;break}return n.abrupt("return",!1);case 3:if(f=null==(d=t.findPreloadItem(c,!1))?void 0:d.data,!(!d||!(null!=f&&f.payload))){n.next=7;break}return n.abrupt("return",!1);case 7:if(A=null,A=t.selectBeforeStart(f),t._filterMixPayload(f,A),t.setStartDefinition(null===(i=A)||void 0===i?void 0:i.definition),t.log("log","selectBeforeStart",null===(a=A)||void 0===a?void 0:a.vtype,A),h=t._getPreloaderKey(A||f)){n.next=17;break}return t.log("warn","need to set vtype, no preloader",f),l.autoPreload&&t.emit(u.KR.PRELOAD_NEXT),n.abrupt("return",!1);case 17:if(g=t._getLoaderInst(h)){n.next=23;break}if(p=t._getLoader(h)){n.next=22;break}return n.abrupt("return",!1);case 22:g=new p(t,t._config);case 23:return t._currentPreloadInst=g,t._currentPreloadInst.setData(f),t._emitEvtByStart(f),n.prev=26,t.log("log","loaderInst.start",h,t.getStartDefinition(),f),n.next=30,g.start(f,t.getStartDefinition());case 30:(v=n.sent)&&v.remove&&(y=c.indexOf(d))>-1&&c.splice(y,1),n.next=37;break;case 34:n.prev=34,n.t0=n.catch(26),t.log("error","preload data error!",n.t0);case 37:return n.prev=37,null===(m=t._currentPreloadInst)||void 0===m||m.setData(null),t._currentPreloadInst=null,t._config.autoPreload&&(t._canPreloadNext()?t.emit(u.KR.PRELOAD_NEXT):t.emit(u.KR.PRELOAD_STOP)),n.finish(37);case 42:return n.abrupt("return",!0);case 43:case"end":return n.stop()}},n,null,[[26,34,37,42]])})),t._stats=new d.Z(t),t}return(0,o.XW)(v,t),(0,o.qH)(v,[{key:"VTYPES",get:function(){return a.l0}},{key:"player",get:function(){return this._player}},{key:"stepwise",get:function(){return this._stepwise}},{key:"realTimeSpeed",get:function(){return this._stats.realTimeSpeed}},{key:"currentPreloadInst",get:function(){return this._currentPreloadInst}},{key:"cacheInst",get:function(){return this._cacheInst}},{key:"preloadDataList",get:function(){return this._preloadDataList}},{key:"log",value:function(t){for(var n,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];h&&(n=console)[t].apply(n,["[PreloaderManager]"].concat(o))}},{key:"register",value:function(t){try{if("undefined"==typeof window){this.log("preloader in ssr");return}var n=v.getDefaultConfig();this._config=Object.assign({},n,t.config),this._options=t;var i=this._config,o=i.preloadMaxCacheCount,a=i.preloadCacheType;this._stepwise=!!this._config.stepwise,this._cacheInst=new l.Z(o,a),this._selector=t.BitrateSelector,this.on(u.KR.PRELOAD_NEXT,this.onPreloadNext);for(var s=t.loaders,c=0;c<s.length;c++)this.registerLoader(s[c].vtype,s[c])}catch(t){this.log("register error",t)}}},{key:"registerLoader",value:function(t,n){t&&(this._loaders[t]&&this.log("warn","vtype:".concat(t," Preloader already exist")),this._loaders[t]=n,this._loaderInsts[t]=new n(this,this._config))}},{key:"_checkIfCanPreload",value:function(){if(null===this._currentPreloadInst&&this._preloadDataList.length>0){var t=this.findPreloadItem(this._preloadDataList),n=null==t?void 0:t.data;if(this._wipPreloadTask=t,t&&null!=n&&n.payload){if(!this._getPreloaderKey(n))return this.log("warn","need to set vtype"),this.stopCheckTask(),!1;var i=this._config.checkIfCanPreload;if(i&&"function"==typeof i)return i(n);if(this._config.autoCheckPreload)return this._autoCheckPreload(n,t);else this.stopCheckTask()}}return!1}},{key:"_autoCheckPreload",value:function(t,n){var i,o=null==n||null===(i=n.data)||void 0===i?void 0:i.force;if("always"===o)return!0;if(!this._player)return"no-player"===o||(this.log("warn","need set video"),!1);return(0,f.xF)(this._player,this._config,this.log)}},{key:"_getPreloaderKey",value:function(t){return t.vtype?t.vtype.toUpperCase():""}},{key:"_sort",value:function(t){t.sort(function(t,n){return void 0===t.order&&void 0===n.order||"number"==typeof t.order&&"number"==typeof n.order&&t.order<n.order?-1:1})}},{key:"_addPlayingVid",value:function(t,n){var i=this._playingVids,o=(0,f.PK)(this._playingVids,"playerId",t);o>-1?i[o].vid=n:i.push({vid:n,playerId:t})}},{key:"selectBeforeStart",value:function(t){var n=t.targetDefinition,i=t.defaultDefinition;if(n)return(0,o.Zj)({},n);var a=this.getUserSelectDefinition(),s=this.selectBitrate(null==t?void 0:t.payload,i,a,null==t?void 0:t.playlist_info),c=(null==s?void 0:s.vtype)||t.vtype,u=(0,o.Zj)((0,o.Zj)({},s),{},{vtype:c});return t.targetDefinition=u,this.log("log","selectBeforeStart",null==t?void 0:t.vid,c,null==s?void 0:s.definition,null==t?void 0:t.payload,s),u}},{key:"selectBitrate",value:function(t,n,i,a){if(t.length<1)return null;var s,c,u,l=null;if(this._selector)l=this._selector.getSuitableBitrate(t,i,null,a),this.log("log","BitRateAdapter result",null===(s=l)||void 0===s?void 0:s.vtype,null===(c=l)||void 0===c?void 0:c.definition,null===(u=l)||void 0===u?void 0:u.bitrate);else{for(var d=-1,f=-1,A=0;A<t.length;A++){var h=t[A];i&&h.definition===i?d=A:n&&h.definition===n&&(f=A)}l=t[d>=0?d:f>=0?f:0]}return(0,o.Zj)({},l)}},{key:"startCheckTask",value:function(){var t=this,n=this._preloadDataList,i=this._currentPreloadInst,o=this._config.autoCheck;if(this._taskIntervalId&&(clearTimeout(this._taskIntervalId),this._taskIntervalId=0),null!=i&&i.taskInProgress&&(0,f.fQ)(this._player,this._config,this.log)){this.cancelPreloadingTask();return}if(0!==n.length)this._checkIfCanPreload()&&this.onPreloadNext(),this._taskIntervalId=setTimeout(function(){t.startCheckTask()},o.interval)}},{key:"cancelPreloadingTask",value:function(){var t,n=this._preloadDataList,i=this._wipPreloadTask,o=this._config.endPreloadTaskStrategy;this.cancel(),i&&(this.stepwise?"number"==typeof(null===(t=i.data)||void 0===t?void 0:t.stepIdx)&&i.data.stepIdx>-1&&i.data.stepIdx--:0!==o&&n.unshift(i),this._emitEvtByCancel(i.data),this._wipPreloadTask=void 0)}},{key:"stopCheckTask",value:function(){this._taskIntervalId&&(clearTimeout(this._taskIntervalId),this._taskIntervalId=-1)}},{key:"getPreloadMetaByVid",value:function(t,n){for(var i=this.getAllCachedDataKeys(),o=[],a="",s=0;s<i.length;s++){var c=i[s],u=v.parseKey(c);if(u.vid!==t)continue;if(a=u.vtype,null==n||!n.vtype||n.vtype===a)o.push(c)}if(0===o.length)return null;var l=this._getLoaderInst(a);return l?l.parseKey(o):null}},{key:"preloadNext",value:function(){this.onPreloadNext()}},{key:"_filterMixPayload",value:function(t,n){var i=n.vtype;if(i&&Array.isArray(t.payload)){var o=t.vtype===i;t.vtype=i,t.payload=t.payload.filter(function(t){return t.vtype===i||o})}}},{key:"_canPreloadNext",value:function(){return this._isOpen&&!this._currentPreloadInst&&this._preloadDataList.length>0}},{key:"_emitEvtByStart",value:function(t){var n=this._player;if(t&&n)try{this.emit(u.KR.PRELOAD_START,this._getEventPayload(t,n))}catch(t){this.log("warn","preload emit start error",null==t?void 0:t.stack)}}},{key:"_emitEvtByCancel",value:function(t){var n=this._player;if(t&&n)try{this.emit(u.KR.PRELOAD_CANCEL,this._getEventPayload(t,n))}catch(t){this.log("warn","preload emit cancel error",null==t?void 0:t.stack)}}},{key:"_getEventPayload",value:function(t,n){var i=n.config.vid,o=this._config,a=o.minBufferLength,s=o.startPreloadControl,c=o.startPreloadMinBuffer,u=o.startPreloadMinPosTime,l=o.endPreloadMinBuffer,d=o.endPreloadControl,A=(0,f.lh)(n.video.buffered,n.currentTime),h=A[1]?A[1]-n.currentTime:0;return{vid:i,pid:t.vid,buffer:A,bufferHead:h,currentTime:n.currentTime,minBufferLength:a,startPreloadControl:s,startPreloadMinBuffer:c,startPreloadMinPosTime:u,endPreloadControl:d,endPreloadMinBuffer:l}}},{key:"addPreloadList",value:(n=(0,o.x)((0,o.l5)().mark(function t(n){var i,a,s;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this._sort(n),i=(0,o.sf)(n),t.prev=2,i.s();case 4:if((a=i.n()).done){t.next=10;break}return s=a.value,t.next=8,this._addData(s);case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),i.e(t.t0);case 15:return t.prev=15,i.f(),t.finish(15);case 18:this._checkAutoTask();case 19:case"end":return t.stop()}},t,this,[[2,12,15,18]])})),function(t){return n.apply(this,arguments)})},{key:"addPlayingId",value:function(t,n){for(var i=this._preloadDataList,o=-1,a=0;a<i.length;a++)if(t===i[a].data.vid){o=a;break}if(o>-1){var s=i.splice(o,1);this.log("log","cancelPreloadByVid remove from list",s.length>0&&s[0].data.vid)}var c=this._currentPreloadInst,u=c?c.getData():null;this.log("log","_currentPreloadInst",u),u&&u.vid===t&&this.cancel(),n&&this._addPlayingVid(n,t)}},{key:"removePlayingId",value:function(t){var n=this._playingVids,i=(0,f.PK)(n,"playerId",t);if(i>-1){var o=n.splice(i,1);this.log("log","removePlayingId",o.length>0&&o[0].playerId)}}},{key:"addPreload",value:(i=(0,o.x)((0,o.l5)().mark(function t(n){return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._addData(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:this._sort(this._preloadDataList),this._checkAutoTask();case 7:case"end":return t.stop()}},t,this)})),function(t){return i.apply(this,arguments)})},{key:"_addData",value:(s=(0,o.x)((0,o.l5)().mark(function t(n){var i,a,s,c,u,l,d,A,h,g=this;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.data.vtype){t.next=3;break}return this.log("warn","vtype is null, can\xb7t select loader"),t.abrupt("return",!1);case 3:if(i=n.data,a=this._getLoader(i.vtype)){t.next=8;break}return this.log("warn","the loader for ".concat(i.vtype," not registered")),t.abrupt("return",!1);case 8:if(s=this._playingVids,!((c=(0,f.PK)(s,"vid",n.data.vid))>=0)){t.next=14;break}return u=s[c],this.log("log","vid:".concat(u.vid," is already instantiated and loaded, playerId is ").concat(u.playerId)),t.abrupt("return");case 14:return l=this._getUniqueKey(n),t.next=17,this.getItem(n.data,!0);case 17:if(!(d=t.sent)||!a.isUniqueCache(d)){t.next=22;break}return this.log("log","".concat(l," already exist in cache")),t.abrupt("return",!1);case 22:if(!this._currentPreloadInst||!(A=this._currentPreloadInst.getData())||this._getUniqueKey({data:A,order:0})!==l){t.next=29;break}return this.log("log","currentKey repeat"),t.abrupt("return");case 29:if(h=this._preloadDataList.filter(function(t){return g._getUniqueKey(t)===l}),this.log("log","addedItems",l,h),0!==h.length){t.next=35;break}return this._stepwise&&void 0===n.data.steps&&(n.data.steps=[0]),this._preloadDataList.push(n),t.abrupt("return",!0);case 35:return this.log("log","".concat(l," already exist in preloadList")),t.abrupt("return",!1);case 37:case"end":return t.stop()}},t,this)})),function(t){return s.apply(this,arguments)})},{key:"_getUniqueKey",value:function(t){return t.data.vtype?v.generateUniqueCacheKey(t.data):t.data.vid}},{key:"_checkAutoTask",value:function(){var t=this,n=this._config,i=n.autoCheck,o=n.autoPreload;Promise.resolve().then(function(){o&&t.emit(u.KR.PRELOAD_NEXT),null!=i&&i.enable&&!t._taskIntervalId&&t.startCheckTask()})}},{key:"setItem",value:function(t,n,i,a){var s=v.generateUniqueCacheKey(t);if(!i){var c=this._getLoader(t.vtype);if(!c)return this.log("warn","no ".concat(t.vtype," preloader, register")),Promise.resolve(!1);var u=c.generateUniqueKey(t);n=(0,o._x)({},u,n)}return this._cacheInst.setItem(s,n,a)}},{key:"getItem",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=v.generateUniqueCacheKey(t),a=this._getLoader(t.vtype);if(!a)return this.log("warn","no ".concat(t.vtype," preloader, register")),Promise.resolve(!1);var s=n?"":a.generateUniqueKey(t);return this._cacheInst.getItem(o,i,s)}},{key:"getItemSync",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=v.generateUniqueCacheKey(t),a=this._getLoader(t.vtype);if(!a)return this.log("warn","no ".concat(t.vtype," preloader, register")),!1;var s=n?"":a.generateUniqueKey(t);return this._cacheInst.getItemSync(o,i,s)}},{key:"supportSync",value:function(){return this._cacheInst.supportSync()}},{key:"removeItem",value:function(t,n){var i=v.generateUniqueCacheKey(t);return this._cacheInst.removeItem(i,n)}},{key:"getPreLoadData",value:(c=(0,o.x)((0,o.l5)().mark(function t(n){var i,a,s;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.vtype,!(a=this._getLoaderInst(i))){t.next=7;break}return t.next=5,a.getPreLoadData(n);case 5:return s=t.sent,t.abrupt("return",s);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"getPreLoadDataSync",value:function(t){var n=t.vtype,i=this._getLoaderInst(n);return i?i.getPreLoadDataSync(t):null}},{key:"removeAll",value:function(){var t=this;this.getAllCachedDataKeys().forEach(function(n){var i=t.getPreloadMetaByVid(n.split("#")[0]);i&&t.removeItem(i,null)})}},{key:"removeAllPreloadTask",value:function(){this.cancel(),this._preloadDataList=[],this._playingVids=[]}},{key:"disable",value:function(){this._isOpen=!1,this.stopCheckTask()}},{key:"enable",value:function(){this._isOpen=!0,this._config.autoCheck.enable&&!this._taskIntervalId&&this._preloadDataList.length>0&&this.startCheckTask()}},{key:"setUserSelectDefinition",value:function(t){this._userDefinition=t}},{key:"getUserSelectDefinition",value:function(){return this._userDefinition||null}},{key:"getStartDefinition",value:function(){return this._startDefinition}},{key:"setStartDefinition",value:function(t){this._startDefinition=t}},{key:"destroy",value:(g=(0,o.x)((0,o.l5)().mark(function t(){var n,i,a,s;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this._stats.destroy(),n=Object.keys(this._loaderInsts),i=0;case 3:if(!(i<n.length)){t.next=12;break}if(a=n[i],!(s=this._getLoaderInst(a))){t.next=9;break}return t.next=9,s.destroy();case 9:i++,t.next=3;break;case 12:this.removeAllListeners(),this._loaderInsts={},this._loaders={},this._playingVids=[],this.detachPlayer();case 17:case"end":return t.stop()}},t,this)})),function(){return g.apply(this,arguments)})},{key:"cancel",value:(p=(0,o.x)((0,o.l5)().mark(function t(){var n;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._currentPreloadInst){t.next=4;break}return t.next=3,this._currentPreloadInst.cancel();case 3:null===(n=this._currentPreloadInst)||void 0===n||n.setData(null);case 4:this._currentPreloadInst=null;case 5:case"end":return t.stop()}},t,this)})),function(){return p.apply(this,arguments)})},{key:"removeByPlayInst",value:function(t,n){for(var i=this._preloadDataList.length-1;i>-1;i--){var o=this._preloadDataList[i];if(o.data.vid===t&&o.playerId===n){this._preloadDataList.splice(i,1);break}}}},{key:"getAllCachedDataKeys",value:function(){var t;return(null===(t=this._cacheInst)||void 0===t?void 0:t.getAllCachedDataKeys())||[]}},{key:"getDataUniqueKey",value:function(t){var n=this._getLoader(t.vtype);return!!n&&n.generateUniqueKey(t)}},{key:"hasItemSameVid",value:function(t){var n=this._getLoader(t.vtype),i=this._getLoaderInst(t.vtype);if(n&&i){var o=n.generateUniqueKey(t);return i.hasItemSameVid(o)}return!1}},{key:"_getLoader",value:function(t){t=t||"";var n=this._loaders[t]||this._loaders[t.toLocaleLowerCase()];return n?n:(this.log("warn","no ".concat(t," preloader, register")),null)}},{key:"_getLoaderInst",value:function(t){t=t||"";var n=this._loaderInsts[t]||this._loaderInsts[t.toLocaleLowerCase()];return n?n:(this.log("warn","no ".concat(t," preloader, register")),null)}},{key:"getPreloadMemoryInfo",value:function(){return this._cacheInst.getMemoryInfo()}},{key:"attachPlayer",value:function(t){this._player=t}},{key:"detachPlayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(!t||this._player===t)&&(this._player=null)}},{key:"setPreloadBandwidth",value:function(t,n){this._stats.setPreloadBandwidth(t,n)}},{key:"getPreloadBandwidth",value:function(t){return this._stats.getPreloadBandwidth(t)}},{key:"getLoadInfoAndDelete",value:function(t){return this._stats.getLoadInfoAndDelete(t)}},{key:"getPreloadUnuseInfo",value:function(){return this._stats.getPreloadUnuseInfo()}},{key:"setUsePreloadInfo",value:function(t,n){this._stats.setUsePreloadInfo(t,n)}},{key:"bwEventEmit",value:function(t){var n=t.vid,i=t.loadType,a=t.size,s=t.speed,c=t.cacheKey,u=t.vtype,l=t.duration,d=t.bitrate,f=(0,o.Kd)(t,A);this._stats.bwEventEmit((0,o.Zj)({vid:n,loadType:i,size:a,speed:s,cacheKey:c,vtype:u,duration:l,bitrate:d},f))}},{key:"findPreloadItem",value:function(t){var n,i=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this._stepwise){var o=t.reduce(function(t,n){return void 0===n.data.stepIdx||"number"==typeof n.data.stepIdx&&"number"==typeof t.data.stepIdx&&n.data.stepIdx<t.data.stepIdx?n:t}),a=t.filter(function(t){return t.data.stepIdx===o.data.stepIdx});if(a.length>1&&this._sort(a),n=a[0],!i){if("number"!=typeof n.data.stepIdx&&(n.data.stepIdx=-1),n.data.stepIdx++,Array.isArray(n.data.steps)&&n.data.stepIdx>=n.data.steps.length-1){var s=t.indexOf(n);t.splice(s,1)}n.data.stepIdx===1/0&&(n=void 0)}}else n=i?t[0]:t.shift();return n}},{key:"updateConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?this._config=Object.assign({},v.getDefaultConfig(),t):Object.assign(this._config,t);var i=this._config.autoCheck;i&&!i.enable&&this.stopCheckTask(),i&&i.enable&&this.startCheckTask()}},{key:"preProcessUrl",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._config,o=i.preProcessUrl,a=i.preProcessUrlOptions;return"function"==typeof o?o(t,Object.assign({},a,n)):{url:t}}}],[{key:"getDefaultConfig",value:function(){return{autoPreload:!1,autoCheck:{enable:!1,interval:1e3},preloadMaxCacheCount:5,preloadCacheType:u.Rr.MEMORY,autoCheckPreload:!0,startPreloadControl:!1,startPreloadMinBuffer:5,startPreloadMinPosTime:5,minBufferLength:5,endPreloadControl:!1,endPreloadTaskStrategy:0}}},{key:"generateUniqueCacheKey",value:function(t){var n=t.vid,i=t.codecType,o=t.vtype;return"".concat(n,"#").concat(i,"#").concat(o.toUpperCase())}},{key:"parseKey",value:function(t){if(!t)throw Error("key ".concat(t," is empty"));var n=t.split("#");if(n.length<6)throw Error("key ".concat(t," is not right format"));var i=n[0],o=n[1],a=n[2],s=n[3],c=n[4],u="mp4"===s.toLowerCase()?5:7,l=parseInt("".concat(n[u]||0),10)||0;return{vid:i,mediaType:o,codecType:a,vtype:s,definition:c,bitrate:l,fileId:n[8]}}},{key:"debugger",set:function(t){h=!!t}}])}(c())},137263:function(t,n,i){"use strict";i.d(n,{$w:function(){return s},PA:function(){return c},Vx:function(){return y},XW:function(){return h},_x:function(){return d},l5:function(){return p},qH:function(){return l},x:function(){return a}});function o(t,n,i,o,a,s,c){try{var u=t[s](c),l=u.value}catch(t){return void i(t)}u.done?n(l):Promise.resolve(l).then(o,a)}function a(t){return function(){var n=this,i=arguments;return new Promise(function(a,s){var c=t.apply(n,i);function u(t){o(c,a,s,u,l,"next",t)}function l(t){o(c,a,s,u,l,"throw",t)}u(void 0)})}}function s(t,n,i){return n=A(n),function(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(n,i||[],A(t).constructor):n.apply(t,i))}function c(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function u(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,m(o.key),o)}}function l(t,n,i){return n&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t,n,i){return(n=m(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,i){var o=function(t,n){for(;!({}).hasOwnProperty.call(t,n)&&null!==(t=A(t)););return t}(t,n);if(o){var a=Object.getOwnPropertyDescriptor(o,n);return a.get?a.get.call(arguments.length<3?t:i):a.value}}).apply(null,arguments)}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&v(t,n)}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}function p(){p=function(){return n};var t,n={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(t,n,i){t[n]=i.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(t,n,i){return Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{d({},"")}catch(t){d=function(t,n,i){return t[n]=i}}function f(n,i,o,s){var c=Object.create((i&&i.prototype instanceof m?i:m).prototype);return a(c,"_invoke",{value:function(n,i,o){var a=h;return function(s,c){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===s)throw c;return{value:t,done:!0}}for(o.method=s,o.arg=c;;){var u=o.delegate;if(u){var l=function n(i,o){var a=o.method,s=i.iterator[a];if(s===t)return o.delegate=null,"throw"===a&&i.iterator.return&&(o.method="return",o.arg=t,n(i,o),"throw"===o.method)||"return"!==a&&(o.method="throw",o.arg=TypeError("The iterator does not provide a '"+a+"' method")),y;var c=A(s,i.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,y;var u=c.arg;return u?u.done?(o[i.resultName]=u.value,o.next=i.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,y):u:(o.method="throw",o.arg=TypeError("iterator result is not an object"),o.delegate=null,y)}(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(a===h)throw a=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a=g;var d=A(n,i,o);if("normal"===d.type){if(a=o.done?v:"suspendedYield",d.arg===y)continue;return{value:d.arg,done:o.done}}"throw"===d.type&&(a=v,o.method="throw",o.arg=d.arg)}}}(n,o,new D(s||[]))}),c}function A(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var h="suspendedStart",g="executing",v="completed",y={};function m(){}function _(){}function I(){}var b={};d(b,c,function(){return this});var C=Object.getPrototypeOf,k=C&&C(C(B([])));k&&k!==i&&o.call(k,c)&&(b=k);var w=I.prototype=m.prototype=Object.create(b);function E(t){["next","throw","return"].forEach(function(n){d(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){var i;a(this,"_invoke",{value:function(a,s){function c(){return new n(function(i,c){!function i(a,s,c,u){var l=A(t[a],t,s);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==typeof f&&o.call(f,"__await")?n.resolve(f.__await).then(function(t){i("next",t,c,u)},function(t){i("throw",t,c,u)}):n.resolve(f).then(function(t){d.value=t,c(d)},function(t){return i("throw",t,c,u)})}u(l.arg)}(a,s,i,c)})}return i=i?i.then(c,c):c()}})}function R(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function T(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function B(n){if(n||""===n){var i=n[c];if(i)return i.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,s=function i(){for(;++a<n.length;)if(o.call(n,a))return i.value=n[a],i.done=!1,i;return i.value=t,i.done=!0,i};return s.next=s}}throw TypeError(typeof n+" is not iterable")}return _.prototype=I,a(w,"constructor",{value:I,configurable:!0}),a(I,"constructor",{value:_,configurable:!0}),_.displayName=d(I,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,I):(t.__proto__=I,d(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},E(S.prototype),d(S.prototype,u,function(){return this}),n.AsyncIterator=S,n.async=function(t,i,o,a,s){void 0===s&&(s=Promise);var c=new S(f(t,i,o,a),s);return n.isGeneratorFunction(i)?c:c.next().then(function(t){return t.done?t.value:c.next()})},E(w),d(w,l,"Generator"),d(w,c,function(){return this}),d(w,"toString",function(){return"[object Generator]"}),n.keys=function(t){var n=Object(t),i=[];for(var o in n)i.push(o);return i.reverse(),function t(){for(;i.length;){var o=i.pop();if(o in n)return t.value=o,t.done=!1,t}return t.done=!0,t}},n.values=B,D.prototype={constructor:D,reset:function(n){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(T),!n)for(var i in this)"t"===i.charAt(0)&&o.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(n){if(this.done)throw n;var i=this;function a(o,a){return u.type="throw",u.arg=n,i.next=o,a&&(i.method="next",i.arg=t),!!a}for(var s=this.tryEntries.length-1;s>=0;--s){var c=this.tryEntries[s],u=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),d=o.call(c,"finallyLoc");if(l&&d){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.finallyLoc)}}}},abrupt:function(t,n){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&o.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=n&&n<=s.finallyLoc&&(s=null);var c=s?s.completion:{};return c.type=t,c.arg=n,s?(this.method="next",this.next=s.finallyLoc,y):this.complete(c)},complete:function(t,n){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&&n&&(this.next=n),y},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),T(i),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var a=o.arg;T(i)}return a}}throw Error("illegal catch attempt")},delegateYield:function(n,i,o){return this.delegate={iterator:B(n),resultName:i,nextLoc:o},"next"===this.method&&(this.arg=t),y}},n}function v(t,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function y(t,n,i,o){var a=f(A(1&o?t.prototype:t),n,i);return 2&o&&"function"==typeof a?function(t){return a.apply(i,t)}:a}function m(t){var n=function(t,n){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:n+""}},463686:function(t,n,i){var o;o=0,function(t){"use strict";function n(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}function i(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?n(Object(o),!0).forEach(function(n){c(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function o(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function a(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,m(o.key),o)}}function s(t,n,i){return n&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,n,i){return(n=m(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function u(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&d(t,n)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function f(){if("undefined"==typeof Reflect||!Reflect.construct||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 A(t,n,i){return(A=f()?Reflect.construct.bind():function(t,n,i){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(t,o));return i&&d(a,i.prototype),a}).apply(null,arguments)}function h(t){var n=f();return function(){var i,o=l(t);return i=n?Reflect.construct(o,arguments,l(this).constructor):o.apply(this,arguments),function(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i)}}function g(){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,i){var o=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=l(t)););return t}(t,n);if(o){var a=Object.getOwnPropertyDescriptor(o,n);return a.get?a.get.call(arguments.length<3?t:i):a.value}}).apply(this,arguments)}function p(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o,a,s,c,u=[],l=!0,d=!1;try{if(s=(i=i.call(t)).next,0===n){if(Object(i)!==i)return;l=!1}else for(;!(l=(o=s.call(i)).done)&&(u.push(o.value),u.length!==n);l=!0);}catch(t){d=!0,a=t}finally{try{if(!l&&null!=i.return&&(c=i.return(),Object(c)!==c))return}finally{if(d)throw a}}return u}}(t,n)||v(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,n){if(t){if("string"==typeof t)return y(t,n);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)?y(t,n):void 0}}function y(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=Array(n);i<n;i++)o[i]=t[i];return o}function m(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}var _,I,b=function(){return(b=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++)for(var a in n=arguments[i])Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);return t}).apply(this,arguments)};function C(t,n,i,o){return new(i||(i=Promise))(function(a,s){function c(t){try{l(o.next(t))}catch(t){s(t)}}function u(t){try{l(o.throw(t))}catch(t){s(t)}}function l(t){var n;t.done?a(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(c,u)}l((o=o.apply(t,n||[])).next())})}function k(t,n){var i,o,a,s,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(l){return function(u){if(i)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(c=0)),c;)try{if(i=1,o&&(a=2&u[0]?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,o=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=(a=c.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){c.label=u[1];break}if(6===u[0]&&c.label<a[1]){c.label=a[1],a=u;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(u);break}a[2]&&c.ops.pop(),c.trys.pop();continue}u=n.call(t,c)}catch(t){u=[6,t],o=0}finally{i=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function w(t,n,i){if(i||2==arguments.length)for(var o,a=0,s=n.length;a<s;a++)!o&&a in n||(o||(o=Array.prototype.slice.call(n,0,a)),o[a]=n[a]);return t.concat(o||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var E="4.4.1";function S(t,n){return new Promise(function(i){return setTimeout(i,t,n)})}function R(){return S(0)}function T(t){return!!t&&"function"==typeof t.then}function D(t,n){try{var i=t();T(i)?i.then(function(t){return n(!0,t)},function(t){return n(!1,t)}):n(!0,i)}catch(t){n(!1,t)}}function B(t,n,i){return void 0===i&&(i=16),C(this,void 0,void 0,function(){var o,a,s,c;return k(this,function(u){switch(u.label){case 0:o=Array(t.length),a=Date.now(),s=0,u.label=1;case 1:return s<t.length?(o[s]=n(t[s],s),(c=Date.now())>=a+i?(a=c,[4,S(0)]):[3,3]):[3,4];case 2:u.sent(),u.label=3;case 3:return++s,[3,1];case 4:return[2,o]}})})}function P(t){t.then(void 0,function(){})}function x(t){return parseInt(t)}function Z(t){return parseFloat(t)}function O(t,n){return"number"==typeof t&&isNaN(t)?n:t}function L(t){return t.reduce(function(t,n){return t+(n?1:0)},0)}function N(t,n){if(void 0===n&&(n=1),Math.abs(n)>=1)return Math.round(t/n)*n;var i=1/n;return Math.round(t*i)/i}function M(t,n){var i,o,a=t[0]>>>16,s=65535&t[0],c=t[1]>>>16,u=65535&t[1],l=n[0]>>>16,d=65535&n[0],f=n[1]>>>16,A=0,h=0;i=0+((o=0+(u+(65535&n[1])))>>>16),o&=65535,h+=(i+=c+f)>>>16,i&=65535,A+=(h+=s+d)>>>16,h&=65535,A+=a+l,A&=65535,t[0]=A<<16|h,t[1]=i<<16|o}function V(t,n){var i,o,a=t[0]>>>16,s=65535&t[0],c=t[1]>>>16,u=65535&t[1],l=n[0]>>>16,d=65535&n[0],f=n[1]>>>16,A=65535&n[1],h=0,g=0;i=0+((o=0+u*A)>>>16),o&=65535,g+=(i+=c*A)>>>16,i&=65535,g+=(i+=u*f)>>>16,i&=65535,h+=(g+=s*A)>>>16,g&=65535,h+=(g+=c*f)>>>16,g&=65535,h+=(g+=u*d)>>>16,g&=65535,h+=a*A+s*f+c*d+u*l,h&=65535,t[0]=h<<16|g,t[1]=i<<16|o}function G(t,n){var i=t[0];32==(n%=64)?(t[0]=t[1],t[1]=i):n<32?(t[0]=i<<n|t[1]>>>32-n,t[1]=t[1]<<n|i>>>32-n):(n-=32,t[0]=t[1]<<n|i>>>32-n,t[1]=i<<n|t[1]>>>32-n)}function F(t,n){0!=(n%=64)&&(n<32?(t[0]=t[1]>>>32-n,t[1]=t[1]<<n):(t[0]=t[1]<<n-32,t[1]=0))}function U(t,n){t[0]^=n[0],t[1]^=n[1]}var j=[4283543511,3981806797],W=[3301882366,444984403];function H(t){var n=[0,t[0]>>>1];U(t,n),V(t,j),n[1]=t[0]>>>1,U(t,n),V(t,W),n[1]=t[0]>>>1,U(t,n)}var Y=[2277735313,289559509],X=[1291169091,658871167],K=[0,5],J=[0,1390208809],z=[0,944331445];function Q(){var t=window,n=navigator;return L(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function q(){var t=window,n=navigator;return L(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===n.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function $(){var t=window,n=navigator;return L(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===n.vendor.indexOf("Apple"),"getStorageUpdates"in n,"WebKitMediaKeys"in t])>=4}function ee(){var t=window,n=t.HTMLElement,i=t.Document;return L(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),n&&!("autocapitalize"in n.prototype),i&&"pointerLockElement"in i.prototype])>=4}function et(){var t,n=window;return t=n.print,!!/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&L(["[object WebPageNamespace]"===String(n.browser),"MicrodataExtractor"in n])>=1}function er(){var t,n,i=window;return L(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4}function en(){var t=window,n=navigator,i=t.CSS,o=t.HTMLButtonElement;return L([!("getStorageUpdates"in n),o&&"popover"in o.prototype,"CSSCounterStyleRule"in t,i.supports("font-size-adjust: ex-height 0.5"),i.supports("text-transform: full-width")])>=4}function ei(){var t=q(),n=er(),i=window,o=navigator,a="connection";return t?L([!("SharedWorker"in i),o[a]&&"ontypechange"in o[a],!("sinkId"in new window.Audio)])>=2:!!n&&L(["onorientationchange"in i,"orientation"in i,/android/i.test(navigator.appVersion)])>=2}function eo(t){var n=Error(t);return n.name=t,n}function ea(t,n,i){var o,a,s;return void 0===i&&(i=50),C(this,void 0,void 0,function(){var c,u;return k(this,function(l){switch(l.label){case 0:c=document,l.label=1;case 1:return c.body?[3,3]:[4,S(i)];case 2:return l.sent(),[3,1];case 3:u=c.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise(function(t,i){var o=!1,a=function(){o=!0,t()};u.onload=a,u.onerror=function(t){o=!0,i(t)};var s=u.style;s.setProperty("display","block","important"),s.position="absolute",s.top="0",s.left="0",s.visibility="hidden",n&&"srcdoc"in u?u.srcdoc=n:u.src="about:blank",c.body.appendChild(u);var l=function(){var t,n;o||("complete"===(null===(n=null===(t=u.contentWindow)||void 0===t?void 0:t.document)||void 0===n?void 0:n.readyState)?a():setTimeout(l,10))};l()})];case 5:l.sent(),l.label=6;case 6:return(null===(a=null===(o=u.contentWindow)||void 0===o?void 0:o.document)||void 0===a?void 0:a.body)?[3,8]:[4,S(i)];case 7:return l.sent(),[3,6];case 8:return[4,t(u,u.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(s=u.parentNode)||void 0===s||s.removeChild(u),[7];case 11:return[2]}})})}var es=["monospace","sans-serif","serif"],ec=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function eu(t){return t.toDataURL()}function el(){var t=screen;return[O(Z(t.availTop),null),O(Z(t.width)-Z(t.availWidth)-O(Z(t.availLeft),0),null),O(Z(t.height)-Z(t.availHeight)-O(Z(t.availTop),0),null),O(Z(t.availLeft),null)]}function ed(t){for(var n=0;n<4;++n)if(t[n])return!1;return!0}function ef(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function eA(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function eh(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function eg(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function ep(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function ev(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function ey(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var em=Math,e_=function(){return 0},eI={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},eb=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),eC=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ek=["FRAGMENT_SHADER","VERTEX_SHADER"],ew=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],eE="WEBGL_debug_renderer_info";function eS(t){if(t.webgl)return t.webgl.context;var n,i=document.createElement("canvas");i.addEventListener("webglCreateContextError",function(){return n=void 0});for(var o=0,a=["webgl","experimental-webgl"];o<a.length;o++){var s=a[o];try{n=i.getContext(s)}catch(t){}if(n)break}return t.webgl={context:n},n}function eR(t){return Object.keys(t.__proto__).filter(eT)}function eT(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function eD(){return er()}function eB(t){return"function"==typeof t.getParameter}var eP={fonts:function(){var t=this;return ea(function(n,i){var o=i.document;return C(t,void 0,void 0,function(){var t,n,i,a,s,c,u,l,d,f,A;return k(this,function(h){switch(h.label){case 0:return(t=o.body).style.fontSize="48px",(n=o.createElement("div")).style.setProperty("visibility","hidden","important"),i={},a={},s=function(t){var i=o.createElement("span"),a=i.style;return a.position="absolute",a.top="0",a.left="0",a.fontFamily=t,i.textContent="mmMwWLliI0O&1",n.appendChild(i),i},c=function(t,n){return s("'".concat(t,"',").concat(n))},u=function(){for(var t={},n=function(n){t[n]=es.map(function(t){return c(n,t)})},i=0;i<ec.length;i++)n(ec[i]);return t},l=function(t){return es.some(function(n,o){return t[o].offsetWidth!==i[n]||t[o].offsetHeight!==a[n]})},d=es.map(s),f=u(),t.appendChild(n),[4,S(0)];case 1:for(h.sent(),A=0;A<es.length;A++)i[es[A]]=d[A].offsetWidth,a[es[A]]=d[A].offsetHeight;return[2,ec.filter(function(t){return l(f[t])})]}})})})},domBlockers:function(t){var n=(void 0===t?{}:t).debug;return C(this,void 0,void 0,function(){var t,i,o,a,s;return k(this,function(c){var u;switch(c.label){case 0:return $()||ei()?(i=Object.keys(t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',(u=atob)("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",u("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",u("LnNwb25zb3JpdA=="),".ylamainos",u("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",u("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",u("LmhlYWRlci1ibG9ja2VkLWFk"),u("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",u("I2FkXzMwMFgyNTA="),u("I2Jhbm5lcmZsb2F0MjI="),u("I2NhbXBhaWduLWJhbm5lcg=="),u("I0FkLUNvbnRlbnQ=")],adGuardChinese:[u("LlppX2FkX2FfSA=="),u("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",u("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),u("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",u("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",u("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",u("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),u("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),u("LmFkZ29vZ2xl"),u("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[u("YW1wLWF1dG8tYWRz"),u("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",u("I2FkX2ludmlld19hcmVh")],adGuardRussian:[u("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),u("LnJlY2xhbWE="),'div[id^="smi2adblock"]',u("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[u("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),u("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",u("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),u("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),u("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",u("I3Jla2xhbWk="),u("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),u("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),u("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[u("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",u("LndpZGdldF9wb19hZHNfd2lkZ2V0"),u("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",u("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[u("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),u("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",u("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",u("I3Jla2xhbW5pLWJveA=="),u("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",u("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[u("I2FkdmVydGVudGll"),u("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",u("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",u("LnNwb25zb3JsaW5rZ3J1ZW4="),u("I3dlcmJ1bmdza3k="),u("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),u("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[u("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",u("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[u("LnJla2xhbW9zX3RhcnBhcw=="),u("LnJla2xhbW9zX251b3JvZG9z"),u("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),u("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),u("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[u("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[u("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),u("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",u("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[u("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),u("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),u("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",u("LmFkX19tYWlu"),u("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[u("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[u("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),u("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[u("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),u("I2xpdmVyZUFkV3JhcHBlcg=="),u("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),u("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[u("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",u("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),u("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),u("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[u("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),u("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),u("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",u("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),u("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),u("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),u("ZGl2I3NrYXBpZWNfYWQ=")],ro:[u("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),u("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),u("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[u("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),u("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),u("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",u("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),u("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",u("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}),[4,function(t){var n;return C(this,void 0,void 0,function(){var i,o,a,s,c,u,l;return k(this,function(d){switch(d.label){case 0:for(o=(i=document).createElement("div"),a=Array(t.length),s={},ef(o),l=0;l<t.length;++l)"DIALOG"===(c=function(t){for(var n=function(t){for(var n,i,o="Unexpected syntax '".concat(t,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(t),s=a[1]||void 0,c={},u=/([.:#][\w-]+|\[.+?\])/gi,l=function(t,n){c[t]=c[t]||[],c[t].push(n)};;){var d=u.exec(a[2]);if(!d)break;var f=d[0];switch(f[0]){case".":l("class",f.slice(1));break;case"#":l("id",f.slice(1));break;case"[":var A=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(f);if(!A)throw Error(o);l(A[1],null!==(i=null!==(n=A[4])&&void 0!==n?n:A[5])&&void 0!==i?i:"");break;default:throw Error(o)}}return[s,c]}(t),i=n[0],o=n[1],a=document.createElement(null!=i?i:"div"),s=0,c=Object.keys(o);s<c.length;s++){var u=c[s],l=o[u].join(" ");"style"===u?function(t,n){for(var i=0,o=n.split(";");i<o.length;i++){var a=o[i],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(a);if(s){var c=s[1],u=s[2],l=s[4];t.setProperty(c,u,l||"")}}}(a.style,l):a.setAttribute(u,l)}return a}(t[l])).tagName&&c.show(),ef(u=i.createElement("div")),u.appendChild(c),o.appendChild(u),a[l]=c;d.label=1;case 1:return i.body?[3,3]:[4,S(50)];case 2:return d.sent(),[3,1];case 3:return i.body.appendChild(o),[4,S(0)];case 4:d.sent();try{for(l=0;l<t.length;++l)a[l].offsetParent||(s[t[l]]=!0)}finally{null===(n=o.parentNode)||void 0===n||n.removeChild(o)}return[2,s]}})})}((s=[]).concat.apply(s,i.map(function(n){return t[n]})))]):[2,void 0];case 1:return o=c.sent(),n&&function(t,n){for(var i="DOM blockers debug:\n```",o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];i+="\n".concat(s,":");for(var c=0,u=t[s];c<u.length;c++){var l=u[c];i+="\n ".concat(n[l]?"\uD83D\uDEAB":"➡️"," ").concat(l)}}}(t,o),(a=i.filter(function(n){var i=t[n];return L(i.map(function(t){return o[t]}))>.6*i.length})).sort(),[2,a]}})})},fontPreferences:function(){var t,n;return t=function(t,n){for(var i={},o={},a=0,s=Object.keys(eI);a<s.length;a++){var c=s[a],u=eI[c],l=u[0],d=void 0===l?{}:l,f=u[1],A=void 0===f?"mmMwWLliI0fiflO&1":f,h=t.createElement("span");h.textContent=A,h.style.whiteSpace="nowrap";for(var g=0,p=Object.keys(d);g<p.length;g++){var v=p[g],y=d[v];void 0!==y&&(h.style[v]=y)}i[c]=h,n.append(t.createElement("br"),h)}for(var m=0,_=Object.keys(eI);m<_.length;m++)o[c=_[m]]=i[c].getBoundingClientRect().width;return o},void 0===n&&(n=4e3),ea(function(i,o){var a=o.document,s=a.body,c=s.style;c.width="".concat(n,"px"),c.webkitTextSizeAdjust=c.textSizeAdjust="none",q()?s.style.zoom="".concat(1/o.devicePixelRatio):$()&&(s.style.zoom="reset");var u=a.createElement("div");return u.textContent=w([],Array(n/20<<0),!0).map(function(){return"word"}).join(" "),s.appendChild(u),t(a,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')},audio:function(){return $()&&en()&&et()?-4:function(){var t,n,i,o=window,a=o.OfflineAudioContext||o.webkitOfflineAudioContext;if(!a)return -2;if($()&&!ee()&&!(L(["DOMRectList"in(t=window),"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3))return -1;var s=new a(1,5e3,44100),c=s.createOscillator();c.type="triangle",c.frequency.value=1e4;var u=s.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,c.connect(u),u.connect(s.destination),c.start(0);var l=(n=s,i=function(){},[new Promise(function(t,o){var a=!1,s=0,c=0;n.oncomplete=function(n){return t(n.renderedBuffer)};var u=function(){setTimeout(function(){return o(eo("timeout"))},Math.min(500,c+5e3-Date.now()))},l=function(){try{var t=n.startRendering();switch(T(t)&&P(t),n.state){case"running":c=Date.now(),a&&u();break;case"suspended":document.hidden||s++,a&&s>=3?o(eo("suspended")):setTimeout(l,500)}}catch(t){o(t)}};l(),i=function(){a||(a=!0,c>0&&u())}}),i]),d=l[0],f=l[1],A=d.then(function(t){return function(t){for(var n=0,i=0;i<t.length;++i)n+=Math.abs(t[i]);return n}(t.getChannelData(0).subarray(4500))},function(t){if("timeout"===t.name||"suspended"===t.name)return -3;throw t});return P(A),function(){return f(),A}}()},screenFrame:function(){var t=this;if($()&&en()&&et())return function(){return Promise.resolve(void 0)};var n=function(){var t=this;return function(){if(void 0===I){var t=function(){var n=el();ed(n)?I=setTimeout(t,2500):(_=n,I=void 0)};t()}}(),function(){return C(t,void 0,void 0,function(){var t;return k(this,function(n){var i,o;switch(n.label){case 0:;return ed(t=el())?_?[2,w([],_,!0)]:(i=document).fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement?[4,((o=document).exitFullscreen||o.msExitFullscreen||o.mozCancelFullScreen||o.webkitExitFullscreen).call(o)]:[3,2]:[3,2];case 1:n.sent(),t=el(),n.label=2;case 2:return ed(t)||(_=t),[2,t]}})})}}();return function(){return C(t,void 0,void 0,function(){var t,i;return k(this,function(o){switch(o.label){case 0:return[4,n()];case 1:return t=o.sent(),[2,[(i=function(t){return null===t?null:N(t,10)})(t[0]),i(t[1]),i(t[2]),i(t[3])]]}})})}},canvas:function(){return function(t){return C(this,void 0,void 0,function(){var n,i,o,a,s,c,u;return k(this,function(l){var d,f,A;switch(l.label){case 0:;return n=!1,(d=document.createElement("canvas")).width=1,d.height=1,s=(a=[d,d.getContext("2d")])[0],c=a[1],(f=s,!c||!f.toDataURL)?(i=o="unsupported",[3,4]):[3,1];case 1:;return(A=c).rect(0,0,10,10),A.rect(2,2,6,6),n=!A.isPointInPath(5,5,"evenodd"),t?(i=o="skipped",[3,4]):[3,2];case 2:return[4,function(t,n){return C(this,void 0,void 0,function(){var i,o;return k(this,function(a){switch(a.label){case 0:var s,c,u;return s=t,c=n,s.width=240,s.height=60,c.textBaseline="alphabetic",c.fillStyle="#f60",c.fillRect(100,1,62,20),c.fillStyle="#069",c.font='11pt "Times New Roman"',u="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835)),c.fillText(u,2,15),c.fillStyle="rgba(102, 204, 0, 0.2)",c.font="18pt Arial",c.fillText(u,4,45),[4,S(0)];case 1:return a.sent(),i=eu(t),o=eu(t),i!==o?[2,["unstable","unstable"]]:(function(t,n){t.width=122,t.height=110,n.globalCompositeOperation="multiply";for(var i=0,o=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];i<o.length;i++){var a=o[i],s=a[0],c=a[1],u=a[2];n.fillStyle=s,n.beginPath(),n.arc(c,u,40,0,2*Math.PI,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,2*Math.PI,!0),n.arc(60,60,20,0,2*Math.PI,!0),n.fill("evenodd")}(t,n),[4,S(0)]);case 2:return a.sent(),[2,[eu(t),i]]}})})}(s,c)];case 3:i=(u=l.sent())[0],o=u[1],l.label=4;case 4:return[2,{winding:n,geometry:i,text:o}]}})})}($()&&en()&&et())},osCpu:function(){return navigator.oscpu},languages:function(){var t,n=navigator,i=[],o=n.language||n.userLanguage||n.browserLanguage||n.systemLanguage;if(void 0!==o&&i.push([o]),Array.isArray(n.languages))q()&&L([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||i.push(n.languages);else if("string"==typeof n.languages){var a=n.languages;a&&i.push(a.split(","))}return i},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return O(Z(navigator.deviceMemory),void 0)},screenResolution:function(){var t,n,i;if(!($()&&en()&&et()))return t=screen,(i=[(n=function(t){return O(x(t),null)})(t.width),n(t.height)]).sort().reverse(),i},hardwareConcurrency:function(){return O(x(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,n=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(n){var i=(new n).resolvedOptions().timeZone;if(i)return i}var o,a=-Math.max(Z(new Date(o=(new Date).getFullYear(),0,1).getTimezoneOffset()),Z(new Date(o,6,1).getTimezoneOffset()));return"UTC".concat(a>=0?"+":"").concat(a)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,n;if(!(Q()||L(["msWriteProfilerMark"in(t=window),"MSStream"in t,"msLaunchUri"in(n=navigator),"msSaveBlob"in n])>=3&&!Q()))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&$()&&!ee()?!function(){if("iPad"===navigator.platform)return!0;var t=screen,n=t.width/t.height;return L(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPhone":"iPad":t},plugins:function(){var t=navigator.plugins;if(t){for(var n=[],i=0;i<t.length;++i){var o=t[i];if(o){for(var a=[],s=0;s<o.length;++s){var c=o[s];a.push({type:c.type,suffixes:c.suffixes})}n.push({name:o.name,description:o.description,mimeTypes:a})}}return n}},touchSupport:function(){var t,n=navigator,i=0;void 0!==n.maxTouchPoints?i=x(n.maxTouchPoints):void 0!==n.msMaxTouchPoints&&(i=n.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(n){t=!1}return{maxTouchPoints:i,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],n=0,i=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<i.length;n++){var o=i[n],a=window[o];a&&"object"==typeof a&&t.push(o)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var n=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch(t){return!1}},colorGamut:function(){for(var t=0,n=["rec2020","p3","srgb"];t<n.length;t++){var i=n[t];if(matchMedia("(color-gamut: ".concat(i,")")).matches)return i}},invertedColors:function(){return!!eA("inverted")||!eA("none")&&void 0},forcedColors:function(){return!!eh("active")||!eh("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw Error("Too high value")}},contrast:function(){return eg("no-preference")?0:eg("high")||eg("more")?1:eg("low")||eg("less")?-1:eg("forced")?10:void 0},reducedMotion:function(){return!!ep("reduce")||!ep("no-preference")&&void 0},reducedTransparency:function(){return!!ev("reduce")||!ev("no-preference")&&void 0},hdr:function(){return!!ey("high")||!ey("standard")&&void 0},math:function(){var t,n,i,o,a,s,c,u=em.acos||e_,l=em.acosh||e_,d=em.asin||e_,f=em.asinh||e_,A=em.atanh||e_,h=em.atan||e_,g=em.sin||e_,p=em.sinh||e_,v=em.cos||e_,y=em.cosh||e_,m=em.tan||e_,_=em.tanh||e_,I=em.exp||e_,b=em.expm1||e_,C=em.log1p||e_;return{acos:u(.12312423423423424),acosh:l(1e308),acoshPf:em.log(1e154+em.sqrt(1e154*1e154-1)),asin:d(.12312423423423424),asinh:f(1),asinhPf:(t=1,em.log(1+em.sqrt(t*t+1))),atanh:A(.5),atanhPf:(n=.5,em.log(1.5/(1-n))/2),atan:h(.5),sin:g(-1e300),sinh:p(1),sinhPf:(i=1,em.exp(1)-1/em.exp(i)/2),cos:v(10.000000000123),cosh:y(1),coshPf:(o=1,(em.exp(1)+1/em.exp(o))/2),tan:m(-1e300),tanh:_(1),tanhPf:(a=1,(em.exp(2)-1)/(em.exp(2*a)+1)),exp:I(1),expm1:b(1),expm1Pf:(s=1,em.exp(1)-1),log1p:C(10),log1pPf:em.log(11),powPI:(c=-100,em.pow(em.PI,-100))}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),n=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],n[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return -1;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error){if("InvalidAccessError"===t.name){if(/\bfrom\b.*\binsecure\b/i.test(t.message))return -2;if(/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(t.message))return -3}if("SecurityError"===t.name&&/\bthird.party iframes?.*\bnot.allowed\b/i.test(t.message))return -3}throw t}(t)}},privateClickMeasurement:function(){var t,n=document.createElement("a"),i=null!==(t=n.attributionSourceId)&&void 0!==t?t:n.attributionsourceid;return void 0===i?void 0:String(i)},audioBaseLatency:function(){var t;return ei()||$()?window.AudioContext&&null!==(t=(new AudioContext).baseLatency)&&void 0!==t?t:-1:-2},webGlBasics:function(t){var n,i,o,a,s,c,u=eS(t.cache);if(!u)return -1;if(!eB(u))return -2;var l=er()?null:u.getExtension(eE);return{version:(null===(n=u.getParameter(u.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(i=u.getParameter(u.VENDOR))||void 0===i?void 0:i.toString())||"",vendorUnmasked:l?null===(o=u.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===o?void 0:o.toString():"",renderer:(null===(a=u.getParameter(u.RENDERER))||void 0===a?void 0:a.toString())||"",rendererUnmasked:l?null===(s=u.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===s?void 0:s.toString():"",shadingLanguageVersion:(null===(c=u.getParameter(u.SHADING_LANGUAGE_VERSION))||void 0===c?void 0:c.toString())||""}},webGlExtensions:function(t){var n=eS(t.cache);if(!n)return -1;if(!eB(n))return -2;var i=n.getSupportedExtensions(),o=n.getContextAttributes(),a=[],s=[],c=[],u=[];if(o)for(var l=0,d=Object.keys(o);l<d.length;l++){var f=d[l];a.push("".concat(f,"=").concat(o[f]))}for(var A=0,h=eR(n);A<h.length;A++){var g=n[y=h[A]];s.push("".concat(y,"=").concat(g).concat(eb.has(g)?"=".concat(n.getParameter(g)):""))}if(i)for(var p=0;p<i.length;p++){var v=i[p];if(!(v===eE&&er()||"WEBGL_polygon_mode"===v&&(q()||$()))){var y,m=n.getExtension(v);if(m)for(var _=0,I=eR(m);_<I.length;_++)g=m[y=I[_]],c.push("".concat(y,"=").concat(g).concat(eC.has(g)?"=".concat(n.getParameter(g)):""))}}for(var b=0;b<ek.length;b++)for(var C=ek[b],k=0;k<ew.length;k++){var w=ew[k],E=function(t,n,i){var o=t.getShaderPrecisionFormat(t[n],t[i]);return o?[o.rangeMin,o.rangeMax,o.precision]:[]}(n,C,w);u.push("".concat(C,".").concat(w,"=").concat(E.join(",")))}return c.sort(),s.sort(),{contextAttributes:a,parameters:s,shaderPrecisions:u,extensions:i,extensionParameters:c}}};function ex(t){var n;return void 0===t&&(t={}),C(this,void 0,void 0,function(){var i,o;return k(this,function(a){var s,c,u,l,d,f,A,h,g,p,v,y;switch(a.label){case 0:;return(null===(n=t.monitoring)||void 0===n||n)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(E,"/npm-monitoring"),!0),t.send()}catch(t){}}(),i=t.delayFallback,o=t.debug,[4,(void 0===(s=i)&&(s=50),c=s,u=2*s,(l=window.requestIdleCallback)?new Promise(function(t){return l.call(window,function(){return t()},{timeout:u})}):S(Math.min(c,u)))];case 1:;return a.sent(),d={cache:{},debug:o},f=eP,A=d,h=[],p=B(g=Object.keys(f).filter(function(t){return!function(t,n){for(var i=0,o=t.length;i<o;++i)if(t[i]===n)return!0;return!1}(h,t)}),function(t){var n,i,o;return n=f[t],i=A,P(o=new Promise(function(t){var o=Date.now();D(n.bind(null,i),function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=Date.now()-o;if(!n[0])return t(function(){return{error:n[1],duration:a}});var s=n[1];if("function"!=typeof s)return t(function(){return{value:s,duration:a}});t(function(){return new Promise(function(t){var n=Date.now();D(s,function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=a+Date.now()-n;if(!i[0])return t({error:i[1],duration:s});t({value:i[1],duration:s})})})})})})),function(){return o.then(function(t){return t()})}}),P(p),[2,(v=function(){return C(this,void 0,void 0,function(){var t,n,i;return k(this,function(o){switch(o.label){case 0:return[4,p];case 1:return[4,B(o.sent(),function(t){var n=t();return P(n),n})];case 2:return[4,Promise.all(o.sent())];case 3:for(t=o.sent(),n={},i=0;i<g.length;++i)n[g[i]]=t[i];return[2,n]}})})},y=o,Date.now(),{get:function(t){return C(this,void 0,void 0,function(){var n,i;return k(this,function(n){switch(n.label){case 0:return Date.now(),[4,v()];case 1:var o,a;return i={get visitorId(){return void 0===a&&(a=function(t,n){var i=function(t){for(var n=new Uint8Array(t.length),i=0;i<t.length;i++){var o=t.charCodeAt(i);if(o>127)return(new TextEncoder).encode(t);n[i]=o}return n}(t);n=n||0;var o,a=[0,i.length],s=a[1]%16,c=a[1]-s,u=[0,n],l=[0,n],d=[0,0],f=[0,0];for(o=0;o<c;o+=16)d[0]=i[o+4]|i[o+5]<<8|i[o+6]<<16|i[o+7]<<24,d[1]=i[o]|i[o+1]<<8|i[o+2]<<16|i[o+3]<<24,f[0]=i[o+12]|i[o+13]<<8|i[o+14]<<16|i[o+15]<<24,f[1]=i[o+8]|i[o+9]<<8|i[o+10]<<16|i[o+11]<<24,V(d,Y),G(d,31),V(d,X),U(u,d),G(u,27),M(u,l),V(u,K),M(u,J),V(f,X),G(f,33),V(f,Y),U(l,f),G(l,31),M(l,u),V(l,K),M(l,z);d[0]=0,d[1]=0,f[0]=0,f[1]=0;var A=[0,0];switch(s){case 15:A[1]=i[o+14],F(A,48),U(f,A);case 14:A[1]=i[o+13],F(A,40),U(f,A);case 13:A[1]=i[o+12],F(A,32),U(f,A);case 12:A[1]=i[o+11],F(A,24),U(f,A);case 11:A[1]=i[o+10],F(A,16),U(f,A);case 10:A[1]=i[o+9],F(A,8),U(f,A);case 9:A[1]=i[o+8],U(f,A),V(f,X),G(f,33),V(f,Y),U(l,f);case 8:A[1]=i[o+7],F(A,56),U(d,A);case 7:A[1]=i[o+6],F(A,48),U(d,A);case 6:A[1]=i[o+5],F(A,40),U(d,A);case 5:A[1]=i[o+4],F(A,32),U(d,A);case 4:A[1]=i[o+3],F(A,24),U(d,A);case 3:A[1]=i[o+2],F(A,16),U(d,A);case 2:A[1]=i[o+1],F(A,8),U(d,A);case 1:A[1]=i[o],U(d,A),V(d,Y),G(d,31),V(d,X),U(u,d)}return U(u,a),U(l,a),M(u,l),M(l,u),H(u),H(l),M(u,l),M(l,u),("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}(function(t){for(var n="",i=0,o=Object.keys(t).sort();i<o.length;i++){var a=o[i],s=t[a],c="error"in s?"error":JSON.stringify(s.value);n+="".concat(n?"|":"").concat(a.replace(/([:|\\])/g,"\\$1"),":").concat(c)}return n}(this.components))),a},set visitorId(e){a=e},confidence:function(t){var n=function(t){if(ei())return .4;if($())return!ee()||en()&&et()?.3:.5;var n="value"in t.platform?t.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}(t),i=N(.99+.01*n,1e-4);return{score:n,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(i))}}(o=n.sent()),components:o,version:E},y||null==t||t.debug,[2,i]}})})}})]}})})}for(var eZ=function(){function t(){o(this,t)}return s(t,[{key:"mixIn",value:function(t){return Object.assign(this,t)}},{key:"clone",value:function(){var t=new this.constructor;return Object.assign(t,this),t}}],[{key:"create",value:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return A(this,n)}}]),t}(),eO=function(t){u(i,t);var n=h(i);function i(){var t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4*a.length;o(this,i),t=n.call(this);var c=a;if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var u=c.byteLength,l=[],d=0;d<u;d+=1)l[d>>>2]|=c[d]<<24-d%4*8;t.words=l,t.sigBytes=u}else t.words=a,t.sigBytes=s;return t}return s(i,[{key:"toString",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:eL).stringify(this)}},{key:"concat",value:function(t){var n=this.words,i=t.words,o=this.sigBytes,a=t.sigBytes;if(this.clamp(),o%4)for(var s=0;s<a;s+=1){var c=i[s>>>2]>>>24-s%4*8&255;n[o+s>>>2]|=c<<24-(o+s)%4*8}else for(var u=0;u<a;u+=4)n[o+u>>>2]=i[u>>>2];return this.sigBytes+=a,this}},{key:"clamp",value:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=Math.ceil(n/4)}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);return t.words=this.words.slice(0),t}}],[{key:"random",value:function(t){for(var n,o=[],a=0;a<t;a+=4){var s=function(t){var n=t,i=987654321;return function(){var t=((i=36969*(65535&i)+(i>>16)&4294967295)<<16)+(n=18e3*(65535&n)+(n>>16)&4294967295)&4294967295;return t/=4294967296,(t+=.5)*(Math.random()>.5?1:-1)}}(4294967296*(n||Math.random()));n=987654071*s(),o.push(4294967296*s()|0)}return new i(o,t)}}]),i}(eZ),eL={stringify:function(t){for(var n=t.words,i=t.sigBytes,o=[],a=0;a<i;a+=1){var s=n[a>>>2]>>>24-a%4*8&255;o.push((s>>>4).toString(16)),o.push((15&s).toString(16))}return o.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o+=2)i[o>>>3]|=parseInt(t.substr(o,2),16)<<24-o%8*4;return new eO(i,n/2)}},eN={stringify:function(t){for(var n=t.words,i=t.sigBytes,o=[],a=0;a<i;a+=1){var s=n[a>>>2]>>>24-a%4*8&255;o.push(String.fromCharCode(s))}return o.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o+=1)i[o>>>2]|=(255&t.charCodeAt(o))<<24-o%4*8;return new eO(i,n)}},eM={stringify:function(t){try{return decodeURIComponent(escape(eN.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return eN.parse(unescape(encodeURIComponent(t)))}},eV=function(t){u(i,t);var n=h(i);function i(){var t;return o(this,i),(t=n.call(this))._minBufferSize=0,t}return s(i,[{key:"reset",value:function(){this._data=new eO,this._nDataBytes=0}},{key:"_append",value:function(t){var n=t;"string"==typeof n&&(n=eM.parse(n)),this._data.concat(n),this._nDataBytes+=n.sigBytes}},{key:"_process",value:function(t){var n,i=this._data,o=this.blockSize,a=i.words,s=i.sigBytes,c=s/(4*o),u=(c=t?Math.ceil(c):Math.max((0|c)-this._minBufferSize,0))*o,l=Math.min(4*u,s);if(u){for(var d=0;d<u;d+=o)this._doProcessBlock(a,d);n=a.splice(0,u),i.sigBytes-=l}return new eO(n,l)}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);return t._data=this._data.clone(),t}}]),i}(eZ),eG=function(t){u(i,t);var n=h(i);function i(t){var a;return o(this,i),(a=n.call(this)).blockSize=16,a.cfg=Object.assign(new eZ,t),a.reset(),a}return s(i,[{key:"reset",value:function(){g(l(i.prototype),"reset",this).call(this),this._doReset()}},{key:"update",value:function(t){return this._append(t),this._process(),this}},{key:"finalize",value:function(t){return t&&this._append(t),this._doFinalize()}}],[{key:"_createHelper",value:function(t){return function(n,i){return new t(i).finalize(n)}}},{key:"_createHmacHelper",value:function(t){return function(n,i){return new eF(t,i).finalize(n)}}}]),i}(eV),eF=function(t){u(i,t);var n=h(i);function i(t,a){o(this,i),s=n.call(this);var s,c=new t;s._hasher=c;var u=a;"string"==typeof u&&(u=eM.parse(u));var l=c.blockSize,d=4*l;u.sigBytes>d&&(u=c.finalize(a)),u.clamp();var f=u.clone();s._oKey=f;var A=u.clone();s._iKey=A;for(var h=f.words,g=A.words,p=0;p<l;p+=1)h[p]^=1549556828,g[p]^=909522486;return f.sigBytes=d,A.sigBytes=d,s.reset(),s}return s(i,[{key:"reset",value:function(){var t=this._hasher;t.reset(),t.update(this._iKey)}},{key:"update",value:function(t){return this._hasher.update(t),this}},{key:"finalize",value:function(t){var n=this._hasher,i=n.finalize(t);return n.reset(),n.finalize(this._oKey.clone().concat(i))}}]),i}(eZ),eU=function(t){u(i,t);var n=h(i);function i(t,a){var s;return o(this,i),(s=n.call(this)).high=t,s.low=a,s}return s(i)}(eZ),ej=function(t){u(i,t);var n=h(i);function i(){var t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8*a.length;return o(this,i),(t=n.call(this)).words=a,t.sigBytes=s,t}return s(i,[{key:"toX32",value:function(){for(var t=this.words,n=t.length,i=[],o=0;o<n;o+=1){var a=t[o];i.push(a.high),i.push(a.low)}return eO.create(i,this.sigBytes)}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);t.words=this.words.slice(0);for(var n=t.words,o=n.length,a=0;a<o;a+=1)n[a]=n[a].clone();return t}}]),i}(eZ),eW={stringify:function(t){var n=t.words,i=t.sigBytes,o=this._map;t.clamp();for(var a=[],s=0;s<i;s+=3)for(var c=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,u=0;u<4&&s+.75*u<i;u+=1)a.push(o.charAt(c>>>6*(3-u)&63));var l=o.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(t){var n=t.length,i=this._map,o=this._reverseMap;if(!o){this._reverseMap=[],o=this._reverseMap;for(var a=0;a<i.length;a+=1)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var c=t.indexOf(s);-1!==c&&(n=c)}return function(t,n,i){for(var o=[],a=0,s=0;s<n;s+=1)if(s%4){var c=i[t.charCodeAt(s-1)]<<s%4*2|i[t.charCodeAt(s)]>>>6-s%4*2;o[a>>>2]|=c<<24-a%4*8,a+=1}return eO.create(o,a)}(t,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},eH=[],eY=0;eY<64;eY+=1)eH[eY]=4294967296*Math.abs(Math.sin(eY+1))|0;var eX=function(t,n,i,o,a,s,c){var u=t+(n&i|~n&o)+a+c;return(u<<s|u>>>32-s)+n},eK=function(t,n,i,o,a,s,c){var u=t+(n&o|i&~o)+a+c;return(u<<s|u>>>32-s)+n},eJ=function(t,n,i,o,a,s,c){var u=t+(n^i^o)+a+c;return(u<<s|u>>>32-s)+n},ez=function(t,n,i,o,a,s,c){var u=t+(i^(n|~o))+a+c;return(u<<s|u>>>32-s)+n},eQ=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){this._hash=new eO([1732584193,4023233417,2562383102,271733878])}},{key:"_doProcessBlock",value:function(t,n){for(var i=0;i<16;i+=1){var o=n+i,a=t[o];t[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var s=this._hash.words,c=t[n+0],u=t[n+1],l=t[n+2],d=t[n+3],f=t[n+4],A=t[n+5],h=t[n+6],g=t[n+7],p=t[n+8],v=t[n+9],y=t[n+10],m=t[n+11],_=t[n+12],I=t[n+13],b=t[n+14],C=t[n+15],k=s[0],w=s[1],E=s[2],S=s[3];k=eX(k,w,E,S,c,7,eH[0]),S=eX(S,k,w,E,u,12,eH[1]),E=eX(E,S,k,w,l,17,eH[2]),w=eX(w,E,S,k,d,22,eH[3]),k=eX(k,w,E,S,f,7,eH[4]),S=eX(S,k,w,E,A,12,eH[5]),E=eX(E,S,k,w,h,17,eH[6]),w=eX(w,E,S,k,g,22,eH[7]),k=eX(k,w,E,S,p,7,eH[8]),S=eX(S,k,w,E,v,12,eH[9]),E=eX(E,S,k,w,y,17,eH[10]),w=eX(w,E,S,k,m,22,eH[11]),k=eX(k,w,E,S,_,7,eH[12]),S=eX(S,k,w,E,I,12,eH[13]),E=eX(E,S,k,w,b,17,eH[14]),w=eX(w,E,S,k,C,22,eH[15]),k=eK(k,w,E,S,u,5,eH[16]),S=eK(S,k,w,E,h,9,eH[17]),E=eK(E,S,k,w,m,14,eH[18]),w=eK(w,E,S,k,c,20,eH[19]),k=eK(k,w,E,S,A,5,eH[20]),S=eK(S,k,w,E,y,9,eH[21]),E=eK(E,S,k,w,C,14,eH[22]),w=eK(w,E,S,k,f,20,eH[23]),k=eK(k,w,E,S,v,5,eH[24]),S=eK(S,k,w,E,b,9,eH[25]),E=eK(E,S,k,w,d,14,eH[26]),w=eK(w,E,S,k,p,20,eH[27]),k=eK(k,w,E,S,I,5,eH[28]),S=eK(S,k,w,E,l,9,eH[29]),E=eK(E,S,k,w,g,14,eH[30]),w=eK(w,E,S,k,_,20,eH[31]),k=eJ(k,w,E,S,A,4,eH[32]),S=eJ(S,k,w,E,p,11,eH[33]),E=eJ(E,S,k,w,m,16,eH[34]),w=eJ(w,E,S,k,b,23,eH[35]),k=eJ(k,w,E,S,u,4,eH[36]),S=eJ(S,k,w,E,f,11,eH[37]),E=eJ(E,S,k,w,g,16,eH[38]),w=eJ(w,E,S,k,y,23,eH[39]),k=eJ(k,w,E,S,I,4,eH[40]),S=eJ(S,k,w,E,c,11,eH[41]),E=eJ(E,S,k,w,d,16,eH[42]),w=eJ(w,E,S,k,h,23,eH[43]),k=eJ(k,w,E,S,v,4,eH[44]),S=eJ(S,k,w,E,_,11,eH[45]),E=eJ(E,S,k,w,C,16,eH[46]),w=eJ(w,E,S,k,l,23,eH[47]),k=ez(k,w,E,S,c,6,eH[48]),S=ez(S,k,w,E,g,10,eH[49]),E=ez(E,S,k,w,b,15,eH[50]),w=ez(w,E,S,k,A,21,eH[51]),k=ez(k,w,E,S,_,6,eH[52]),S=ez(S,k,w,E,d,10,eH[53]),E=ez(E,S,k,w,y,15,eH[54]),w=ez(w,E,S,k,u,21,eH[55]),k=ez(k,w,E,S,p,6,eH[56]),S=ez(S,k,w,E,C,10,eH[57]),E=ez(E,S,k,w,h,15,eH[58]),w=ez(w,E,S,k,I,21,eH[59]),k=ez(k,w,E,S,f,6,eH[60]),S=ez(S,k,w,E,m,10,eH[61]),E=ez(E,S,k,w,l,15,eH[62]),w=ez(w,E,S,k,v,21,eH[63]),s[0]=s[0]+k|0,s[1]=s[1]+w|0,s[2]=s[2]+E|0,s[3]=s[3]+S|0}},{key:"_doFinalize",value:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=Math.floor(i/4294967296);n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u+=1){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);return t._hash=this._hash.clone(),t}}]),i}(eG),eq=eG._createHelper(eQ),e$=eG._createHmacHelper(eQ),e0=function(t){u(i,t);var n=h(i);function i(t){var a;return o(this,i),(a=n.call(this)).cfg=Object.assign(new eZ,{keySize:4,hasher:eQ,iterations:1},t),a}return s(i,[{key:"compute",value:function(t,n){for(var i,o=this.cfg,a=o.hasher.create(),s=eO.create(),c=s.words,u=o.keySize,l=o.iterations;c.length<u;){i&&a.update(i),i=a.update(t).finalize(n),a.reset();for(var d=1;d<l;d+=1)i=a.finalize(i),a.reset();s.concat(i)}return s.sigBytes=4*u,s}}]),i}(eZ),e1=function(t){u(i,t);var n=h(i);function i(t,a,s){var c;return o(this,i),(c=n.call(this)).cfg=Object.assign(new eZ,s),c._xformMode=t,c._key=a,c.reset(),c}return s(i,[{key:"reset",value:function(){g(l(i.prototype),"reset",this).call(this),this._doReset()}},{key:"process",value:function(t){return this._append(t),this._process()}},{key:"finalize",value:function(t){return t&&this._append(t),this._doFinalize()}}],[{key:"createEncryptor",value:function(t,n){return this.create(this._ENC_XFORM_MODE,t,n)}},{key:"createDecryptor",value:function(t,n){return this.create(this._DEC_XFORM_MODE,t,n)}},{key:"_createHelper",value:function(t){var n=function(t){return"string"==typeof t?tr:te};return{encrypt:function(i,o,a){return n(o).encrypt(t,i,o,a)},decrypt:function(i,o,a){return n(o).decrypt(t,i,o,a)}}}}]),i}(eV);e1._ENC_XFORM_MODE=1,e1._DEC_XFORM_MODE=2,e1.keySize=4,e1.ivSize=4;var e2=function(t){u(i,t);var n=h(i);function i(){var t;o(this,i);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return(t=n.call.apply(n,[this].concat(s))).blockSize=1,t}return s(i,[{key:"_doFinalize",value:function(){return this._process(!0)}}]),i}(e1),e4=function(t){u(i,t);var n=h(i);function i(t,a){var s;return o(this,i),(s=n.call(this))._cipher=t,s._iv=a,s}return s(i,null,[{key:"createEncryptor",value:function(t,n){return this.Encryptor.create(t,n)}},{key:"createDecryptor",value:function(t,n){return this.Decryptor.create(t,n)}}]),i}(eZ);function e3(t,n,i){var o,a=this._iv;a?(o=a,this._iv=void 0):o=this._prevBlock;for(var s=0;s<i;s+=1)t[n+s]^=o[s]}var e5=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i)}(e4);e5.Encryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){var i=this._cipher,o=i.blockSize;e3.call(this,t,n,o),i.encryptBlock(t,n),this._prevBlock=t.slice(n,n+o)}}]),i}(e5),e5.Decryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){var i=this._cipher,o=i.blockSize,a=t.slice(n,n+o);i.decryptBlock(t,n),e3.call(this,t,n,o),this._prevBlock=a}}]),i}(e5);var e6={pad:function(t,n){for(var i=4*n,o=i-t.sigBytes%i,a=o<<24|o<<16|o<<8|o,s=[],c=0;c<o;c+=4)s.push(a);var u=eO.create(s,o);t.concat(u)},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},e8=function(t){u(i,t);var n=h(i);function i(t,a,s){var c;return o(this,i),(c=n.call(this,t,a,Object.assign({mode:e5,padding:e6},s))).blockSize=4,c}return s(i,[{key:"reset",value:function(){g(l(i.prototype),"reset",this).call(this);var t,n=this.cfg,o=n.iv,a=n.mode;this._xformMode===this.constructor._ENC_XFORM_MODE?t=a.createEncryptor:(t=a.createDecryptor,this._minBufferSize=1),this._mode=t.call(a,this,o&&o.words),this._mode.__creator=t}},{key:"_doProcessBlock",value:function(t,n){this._mode.processBlock(t,n)}},{key:"_doFinalize",value:function(){var t,n=this.cfg.padding;return this._xformMode===this.constructor._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),n.unpad(t)),t}}]),i}(e1),e9=function(t){u(i,t);var n=h(i);function i(t){var a;return o(this,i),(a=n.call(this)).mixIn(t),a}return s(i,[{key:"toString",value:function(t){return(t||this.formatter).stringify(this)}}]),i}(eZ),e7={stringify:function(t){var n=t.ciphertext,i=t.salt;return(i?eO.create([1398893684,1701076831]).concat(i).concat(n):n).toString(eW)},parse:function(t){var n,i=eW.parse(t),o=i.words;return 1398893684===o[0]&&1701076831===o[1]&&(n=eO.create(o.slice(2,4)),o.splice(0,4),i.sigBytes-=16),e9.create({ciphertext:i,salt:n})}},te=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,null,[{key:"encrypt",value:function(t,n,i,o){var a=Object.assign(new eZ,this.cfg,o),s=t.createEncryptor(i,a),c=s.finalize(n),u=s.cfg;return e9.create({ciphertext:c,key:i,iv:u.iv,algorithm:t,mode:u.mode,padding:u.padding,blockSize:s.blockSize,formatter:a.format})}},{key:"decrypt",value:function(t,n,i,o){var a=n,s=Object.assign(new eZ,this.cfg,o);return a=this._parse(a,s.format),t.createDecryptor(i,s).finalize(a.ciphertext)}},{key:"_parse",value:function(t,n){return"string"==typeof t?n.parse(t,this):t}}]),i}(eZ);te.cfg=Object.assign(new eZ,{format:e7});var tt={execute:function(t,n,i,o){var a=o;a||(a=eO.random(8));var s=e0.create({keySize:n+i}).compute(t,a),c=eO.create(s.words.slice(n),4*i);return s.sigBytes=4*n,e9.create({key:s,iv:c,salt:a})}},tr=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,null,[{key:"encrypt",value:function(t,n,i,o){var a=Object.assign(new eZ,this.cfg,o),s=a.kdf.execute(i,t.keySize,t.ivSize);a.iv=s.iv;var c=te.encrypt.call(this,t,n,s.key,a);return c.mixIn(s),c}},{key:"decrypt",value:function(t,n,i,o){var a=n,s=Object.assign(new eZ,this.cfg,o);a=this._parse(a,s.format);var c=s.kdf.execute(i,t.keySize,t.ivSize,a.salt);return s.iv=c.iv,te.decrypt.call(this,t,a,c.key,s)}}]),i}(te);tr.cfg=Object.assign(te.cfg,{kdf:tt});for(var tn=function(t){return t<<8&4278255360|t>>>8&16711935},ti={stringify:function(t){for(var n=t.words,i=t.sigBytes,o=[],a=0;a<i;a+=2){var s=n[a>>>2]>>>16-a%4*8&65535;o.push(String.fromCharCode(s))}return o.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o+=1)i[o>>>1]|=t.charCodeAt(o)<<16-o%2*16;return eO.create(i,2*n)}},to=[],ta=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){this._hash=new eO([1732584193,4023233417,2562383102,271733878,3285377520])}},{key:"_doProcessBlock",value:function(t,n){for(var i=this._hash.words,o=i[0],a=i[1],s=i[2],c=i[3],u=i[4],l=0;l<80;l+=1){if(l<16)to[l]=0|t[n+l];else{var d=to[l-3]^to[l-8]^to[l-14]^to[l-16];to[l]=d<<1|d>>>31}var f=(o<<5|o>>>27)+u+to[l];f+=l<20?1518500249+(a&s|~a&c):l<40?1859775393+(a^s^c):l<60?(a&s|a&c|s&c)-1894007588:(a^s^c)-899497514,u=c,c=s,s=a<<30|a>>>2,a=o,o=f}i[0]=i[0]+o|0,i[1]=i[1]+a|0,i[2]=i[2]+s|0,i[3]=i[3]+c|0,i[4]=i[4]+u|0}},{key:"_doFinalize",value:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=Math.floor(i/4294967296),n[15+(o+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);return t._hash=this._hash.clone(),t}}]),i}(eG),ts=eG._createHelper(ta),tc=eG._createHmacHelper(ta),tu=[],tl=[],td=function(t){return 4294967296*(t-(0|t))|0},tf=2,tA=0;tA<64;)(function(t){for(var n=Math.sqrt(t),i=2;i<=n;i+=1)if(!(t%i))return!1;return!0})(tf)&&(tA<8&&(tu[tA]=td(Math.pow(tf,.5))),tl[tA]=td(Math.pow(tf,1/3)),tA+=1),tf+=1;for(var th=[],tg=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){this._hash=new eO(tu.slice(0))}},{key:"_doProcessBlock",value:function(t,n){for(var i=this._hash.words,o=i[0],a=i[1],s=i[2],c=i[3],u=i[4],l=i[5],d=i[6],f=i[7],A=0;A<64;A+=1){if(A<16)th[A]=0|t[n+A];else{var h=th[A-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,p=th[A-2],v=(p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10;th[A]=g+th[A-7]+v+th[A-16]}var y=o&a^o&s^a&s,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),_=f+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&l^~u&d)+tl[A]+th[A];f=d,d=l,l=u,u=c+_|0,c=s,s=a,a=o,o=_+(m+y)|0}i[0]=i[0]+o|0,i[1]=i[1]+a|0,i[2]=i[2]+s|0,i[3]=i[3]+c|0,i[4]=i[4]+u|0,i[5]=i[5]+l|0,i[6]=i[6]+d|0,i[7]=i[7]+f|0}},{key:"_doFinalize",value:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=Math.floor(i/4294967296),n[15+(o+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);return t._hash=this._hash.clone(),t}}]),i}(eG),tp=eG._createHelper(tg),tv=eG._createHmacHelper(tg),ty=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){this._hash=new eO([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}},{key:"_doFinalize",value:function(){var t=g(l(i.prototype),"_doFinalize",this).call(this);return t.sigBytes-=4,t}}]),i}(tg),tm=tg._createHelper(ty),t_=tg._createHmacHelper(ty),tI=[new eU(1116352408,3609767458),new eU(1899447441,602891725),new eU(3049323471,3964484399),new eU(3921009573,2173295548),new eU(961987163,4081628472),new eU(1508970993,3053834265),new eU(2453635748,2937671579),new eU(2870763221,3664609560),new eU(3624381080,2734883394),new eU(310598401,1164996542),new eU(607225278,1323610764),new eU(1426881987,3590304994),new eU(1925078388,4068182383),new eU(2162078206,991336113),new eU(2614888103,633803317),new eU(3248222580,3479774868),new eU(3835390401,2666613458),new eU(4022224774,944711139),new eU(264347078,2341262773),new eU(604807628,2007800933),new eU(770255983,1495990901),new eU(1249150122,1856431235),new eU(1555081692,3175218132),new eU(1996064986,2198950837),new eU(2554220882,3999719339),new eU(2821834349,766784016),new eU(2952996808,2566594879),new eU(3210313671,3203337956),new eU(3336571891,1034457026),new eU(3584528711,2466948901),new eU(113926993,3758326383),new eU(338241895,168717936),new eU(666307205,1188179964),new eU(773529912,1546045734),new eU(1294757372,1522805485),new eU(1396182291,2643833823),new eU(1695183700,2343527390),new eU(1986661051,1014477480),new eU(2177026350,1206759142),new eU(2456956037,344077627),new eU(2730485921,1290863460),new eU(2820302411,3158454273),new eU(3259730800,3505952657),new eU(3345764771,106217008),new eU(3516065817,3606008344),new eU(3600352804,1432725776),new eU(4094571909,1467031594),new eU(275423344,851169720),new eU(430227734,3100823752),new eU(506948616,1363258195),new eU(659060556,3750685593),new eU(883997877,3785050280),new eU(958139571,3318307427),new eU(1322822218,3812723403),new eU(1537002063,2003034995),new eU(1747873779,3602036899),new eU(1955562222,1575990012),new eU(2024104815,1125592928),new eU(2227730452,2716904306),new eU(2361852424,442776044),new eU(2428436474,593698344),new eU(2756734187,3733110249),new eU(3204031479,2999351573),new eU(3329325298,3815920427),new eU(3391569614,3928383900),new eU(3515267271,566280711),new eU(3940187606,3454069534),new eU(4118630271,4000239992),new eU(116418474,1914138554),new eU(174292421,2731055270),new eU(289380356,3203993006),new eU(460393269,320620315),new eU(685471733,587496836),new eU(852142971,1086792851),new eU(1017036298,365543100),new eU(1126000580,2618297676),new eU(1288033470,3409855158),new eU(1501505948,4234509866),new eU(1607167915,987167468),new eU(1816402316,1246189591)],tb=[],tC=0;tC<80;tC+=1)tb[tC]=new eU;for(var tk=function(t){u(i,t);var n=h(i);function i(){var t;return o(this,i),(t=n.call(this)).blockSize=32,t}return s(i,[{key:"_doReset",value:function(){this._hash=new ej([new eU(1779033703,4089235720),new eU(3144134277,2227873595),new eU(1013904242,4271175723),new eU(2773480762,1595750129),new eU(1359893119,2917565137),new eU(2600822924,725511199),new eU(528734635,4215389547),new eU(1541459225,327033209)])}},{key:"_doProcessBlock",value:function(t,n){for(var i=this._hash.words,o=i[0],a=i[1],s=i[2],c=i[3],u=i[4],l=i[5],d=i[6],f=i[7],A=o.high,h=o.low,g=a.high,p=a.low,v=s.high,y=s.low,m=c.high,_=c.low,I=u.high,b=u.low,C=l.high,k=l.low,w=d.high,E=d.low,S=f.high,R=f.low,T=A,D=h,B=g,P=p,x=v,Z=y,O=m,L=_,N=I,M=b,V=C,G=k,F=w,U=E,j=S,W=R,H=0;H<80;H+=1){var Y=void 0,X=void 0,K=tb[H];if(H<16)K.high=0|t[n+2*H],X=K.high,K.low=0|t[n+2*H+1],Y=K.low;else{var J=tb[H-15],z=J.high,Q=J.low,q=(z>>>1|Q<<31)^(z>>>8|Q<<24)^z>>>7,$=(Q>>>1|z<<31)^(Q>>>8|z<<24)^(Q>>>7|z<<25),ee=tb[H-2],et=ee.high,er=ee.low,en=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,ei=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),eo=tb[H-7],ea=eo.high,es=eo.low,ec=tb[H-16],eu=ec.high,el=ec.low;X=(X=(X=q+ea+((Y=$+es)>>>0<$>>>0?1:0))+en+((Y+=ei)>>>0<ei>>>0?1:0))+eu+((Y+=el)>>>0<el>>>0?1:0),K.high=X,K.low=Y}var ed=N&V^~N&F,ef=M&G^~M&U,eA=T&B^T&x^B&x,eh=D&P^D&Z^P&Z,eg=(T>>>28|D<<4)^(T<<30|D>>>2)^(T<<25|D>>>7),ep=(D>>>28|T<<4)^(D<<30|T>>>2)^(D<<25|T>>>7),ev=(N>>>14|M<<18)^(N>>>18|M<<14)^(N<<23|M>>>9),ey=(M>>>14|N<<18)^(M>>>18|N<<14)^(M<<23|N>>>9),em=tI[H],e_=em.high,eI=em.low,eb=W+ey,eC=j+ev+(eb>>>0<W>>>0?1:0),ek=ep+eh;j=F,W=U,F=V,U=G,V=N,G=M,N=O+(eC=(eC=(eC=eC+ed+((eb+=ef)>>>0<ef>>>0?1:0))+e_+((eb+=eI)>>>0<eI>>>0?1:0))+X+((eb+=Y)>>>0<Y>>>0?1:0))+((M=L+eb|0)>>>0<L>>>0?1:0)|0,O=x,L=Z,x=B,Z=P,B=T,P=D,T=eC+(eg+eA+(ek>>>0<ep>>>0?1:0))+((D=eb+ek|0)>>>0<eb>>>0?1:0)|0}o.low=h+D,h=o.low,o.high=A+T+(h>>>0<D>>>0?1:0),a.low=p+P,p=a.low,a.high=g+B+(p>>>0<P>>>0?1:0),s.low=y+Z,y=s.low,s.high=v+x+(y>>>0<Z>>>0?1:0),c.low=_+L,_=c.low,c.high=m+O+(_>>>0<L>>>0?1:0),u.low=b+M,b=u.low,u.high=I+N+(b>>>0<M>>>0?1:0),l.low=k+G,k=l.low,l.high=C+V+(k>>>0<G>>>0?1:0),d.low=E+U,E=d.low,d.high=w+F+(E>>>0<U>>>0?1:0),f.low=R+W,R=f.low,f.high=S+j+(R>>>0<W>>>0?1:0)}},{key:"_doFinalize",value:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[30+(o+128>>>10<<5)]=Math.floor(i/4294967296),n[31+(o+128>>>10<<5)]=i,t.sigBytes=4*n.length,this._process(),this._hash.toX32()}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);return t._hash=this._hash.clone(),t}}]),i}(eG),tw=eG._createHelper(tk),tE=eG._createHmacHelper(tk),tS=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){this._hash=new ej([new eU(3418070365,3238371032),new eU(1654270250,914150663),new eU(2438529370,812702999),new eU(355462360,4144912697),new eU(1731405415,4290775857),new eU(2394180231,1750603025),new eU(3675008525,1694076839),new eU(1203062813,3204075428)])}},{key:"_doFinalize",value:function(){var t=g(l(i.prototype),"_doFinalize",this).call(this);return t.sigBytes-=16,t}}]),i}(tk),tR=tk._createHelper(tS),tT=tk._createHmacHelper(tS),tD=[],tB=[],tP=[],tx=1,tZ=0,tO=0;tO<24;tO+=1){tD[tx+5*tZ]=(tO+1)*(tO+2)/2%64;var tL=(2*tx+3*tZ)%5;tx=tZ%5,tZ=tL}for(var tN=0;tN<5;tN+=1)for(var tM=0;tM<5;tM+=1)tB[tN+5*tM]=tM+(2*tN+3*tM)%5*5;for(var tV=1,tG=0;tG<24;tG+=1){for(var tF=0,tU=0,tj=0;tj<7;tj+=1){if(1&tV){var tW=(1<<tj)-1;tW<32?tU^=1<<tW:tF^=1<<tW-32}128&tV?tV=tV<<1^113:tV<<=1}tP[tG]=eU.create(tF,tU)}for(var tH=[],tY=0;tY<25;tY+=1)tH[tY]=eU.create();for(var tX=function(t){u(i,t);var n=h(i);function i(t){return o(this,i),n.call(this,Object.assign({outputLength:512},t))}return s(i,[{key:"_doReset",value:function(){this._state=[];for(var t=this._state,n=0;n<25;n+=1)t[n]=new eU;this.blockSize=(1600-2*this.cfg.outputLength)/32}},{key:"_doProcessBlock",value:function(t,n){for(var i=this._state,o=this.blockSize/2,a=0;a<o;a+=1){var s=t[n+2*a],c=t[n+2*a+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8);var u=i[a];u.high^=c,u.low^=s}for(var l=0;l<24;l+=1){for(var d=0;d<5;d+=1){for(var f=0,A=0,h=0;h<5;h+=1){var g=i[d+5*h];f^=g.high,A^=g.low}var p=tH[d];p.high=f,p.low=A}for(var v=0;v<5;v+=1)for(var y=tH[(v+4)%5],m=tH[(v+1)%5],_=m.high,I=m.low,b=y.high^(_<<1|I>>>31),C=y.low^(I<<1|_>>>31),k=0;k<5;k+=1){var w=i[v+5*k];w.high^=b,w.low^=C}for(var E=1;E<25;E+=1){var S=void 0,R=void 0,T=i[E],D=T.high,B=T.low,P=tD[E];P<32?(S=D<<P|B>>>32-P,R=B<<P|D>>>32-P):(S=B<<P-32|D>>>64-P,R=D<<P-32|B>>>64-P);var x=tH[tB[E]];x.high=S,x.low=R}var Z=tH[0],O=i[0];Z.high=O.high,Z.low=O.low;for(var L=0;L<5;L+=1)for(var N=0;N<5;N+=1){var M=L+5*N,V=i[M],G=tH[M],F=tH[(L+1)%5+5*N],U=tH[(L+2)%5+5*N];V.high=G.high^~F.high&U.high,V.low=G.low^~F.low&U.low}var j=i[0],W=tP[l];j.high^=W.high,j.low^=W.low}}},{key:"_doFinalize",value:function(){var t=this._data,n=t.words,i=8*t.sigBytes,o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(Math.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l<c;l+=1){var d=a[l],f=d.high,A=d.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),A=16711935&(A<<8|A>>>24)|4278255360&(A<<24|A>>>8),u.push(A),u.push(f)}return new eO(u,s)}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);t._state=this._state.slice(0);for(var n=t._state,o=0;o<25;o+=1)n[o]=n[o].clone();return t}}]),i}(eG),tK=eG._createHelper(tX),tJ=eG._createHmacHelper(tX),tz=eO.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),tQ=eO.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),tq=eO.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),t$=eO.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),t0=eO.create([0,1518500249,1859775393,2400959708,2840853838]),t1=eO.create([1352829926,1548603684,1836072691,2053994217,0]),t2=function(t,n,i){return t^n^i},t4=function(t,n,i){return t&n|~t&i},t3=function(t,n,i){return(t|~n)^i},t5=function(t,n,i){return t&i|n&~i},t6=function(t,n,i){return t^(n|~i)},t8=function(t,n){return t<<n|t>>>32-n},t9=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){this._hash=eO.create([1732584193,4023233417,2562383102,271733878,3285377520])}},{key:"_doProcessBlock",value:function(t,n){for(var i=0;i<16;i+=1){var o=n+i,a=t[o];t[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}for(var s,c=this._hash.words,u=t0.words,l=t1.words,d=tz.words,f=tQ.words,A=tq.words,h=t$.words,g=c[0],p=c[1],v=c[2],y=c[3],m=c[4],_=c[0],I=c[1],b=c[2],C=c[3],k=c[4],w=0;w<80;w+=1)s=(s=t8(s=(g+t[n+d[w]]|0)+(w<16?t2(p,v,y)+u[0]:w<32?t4(p,v,y)+u[1]:w<48?t3(p,v,y)+u[2]:w<64?t5(p,v,y)+u[3]:t6(p,v,y)+u[4])|0,A[w]))+m|0,g=m,m=y,y=t8(v,10),v=p,p=s,s=(s=t8(s=(_+t[n+f[w]]|0)+(w<16?t6(I,b,C)+l[0]:w<32?t5(I,b,C)+l[1]:w<48?t3(I,b,C)+l[2]:w<64?t4(I,b,C)+l[3]:t2(I,b,C)+l[4])|0,h[w]))+k|0,_=k,k=C,C=t8(b,10),b=I,I=s;s=c[1]+v+C|0,c[1]=c[2]+y+k|0,c[2]=c[3]+m+_|0,c[3]=c[4]+g+I|0,c[4]=c[0]+p+b|0,c[0]=s}},{key:"_doFinalize",value:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,s=a.words,c=0;c<5;c+=1){var u=s[c];s[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a}},{key:"clone",value:function(){var t=g(l(i.prototype),"clone",this).call(this);return t._hash=this._hash.clone(),t}}]),i}(eG),t7=eG._createHelper(t9),re=eG._createHmacHelper(t9),rt=function(t){u(i,t);var n=h(i);function i(t){var a;return o(this,i),(a=n.call(this)).cfg=Object.assign(new eZ,{keySize:4,hasher:ta,iterations:1},t),a}return s(i,[{key:"compute",value:function(t,n){for(var i=this.cfg,o=eF.create(i.hasher,t),a=eO.create(),s=eO.create([1]),c=a.words,u=s.words,l=i.keySize,d=i.iterations;c.length<l;){var f=o.update(n).finalize(s);o.reset();for(var A=f.words,h=A.length,g=f,p=1;p<d;p+=1){g=o.finalize(g),o.reset();for(var v=g.words,y=0;y<h;y+=1)A[y]^=v[y]}a.concat(f),u[0]+=1}return a.sigBytes=4*l,a}}]),i}(eZ),rr=[],rn=[],ri=[],ro=[],ra=[],rs=[],rc=[],ru=[],rl=[],rd=[],rf=[],rA=0;rA<256;rA+=1)rf[rA]=rA<128?rA<<1:rA<<1^283;for(var rh=0,rg=0,rp=0;rp<256;rp+=1){var rv=rg^rg<<1^rg<<2^rg<<3^rg<<4;rv=rv>>>8^255&rv^99,rr[rh]=rv,rn[rv]=rh;var ry=rf[rh],rm=rf[ry],r_=rf[rm],rI=257*rf[rv]^16843008*rv;ri[rh]=rI<<24|rI>>>8,ro[rh]=rI<<16|rI>>>16,ra[rh]=rI<<8|rI>>>24,rs[rh]=rI,rI=16843009*r_^65537*rm^257*ry^16843008*rh,rc[rv]=rI<<24|rI>>>8,ru[rv]=rI<<16|rI>>>16,rl[rv]=rI<<8|rI>>>24,rd[rv]=rI,rh?(rh=ry^rf[rf[rf[r_^ry]]],rg^=rf[rf[rg]]):rh=rg=1}var rb=[0,1,2,4,8,16,32,64,128,27,54],rC=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){var t;if(!this._nRounds||this._keyPriorReset!==this._key){this._keyPriorReset=this._key;var n=this._keyPriorReset,i=n.words,o=n.sigBytes/4;this._nRounds=o+6;var a=4*(this._nRounds+1);this._keySchedule=[];for(var s=this._keySchedule,c=0;c<a;c+=1)c<o?s[c]=i[c]:(t=s[c-1],c%o?o>6&&c%o==4&&(t=rr[t>>>24]<<24|rr[t>>>16&255]<<16|rr[t>>>8&255]<<8|rr[255&t]):t=(rr[(t=t<<8|t>>>24)>>>24]<<24|rr[t>>>16&255]<<16|rr[t>>>8&255]<<8|rr[255&t])^rb[c/o|0]<<24,s[c]=s[c-o]^t);this._invKeySchedule=[];for(var u=this._invKeySchedule,l=0;l<a;l+=1){var d=a-l;t=l%4?s[d]:s[d-4],u[l]=l<4||d<=4?t:rc[rr[t>>>24]]^ru[rr[t>>>16&255]]^rl[rr[t>>>8&255]]^rd[rr[255&t]]}}}},{key:"encryptBlock",value:function(t,n){this._doCryptBlock(t,n,this._keySchedule,ri,ro,ra,rs,rr)}},{key:"decryptBlock",value:function(t,n){var i=t[n+1];t[n+1]=t[n+3],t[n+3]=i,this._doCryptBlock(t,n,this._invKeySchedule,rc,ru,rl,rd,rn),i=t[n+1],t[n+1]=t[n+3],t[n+3]=i}},{key:"_doCryptBlock",value:function(t,n,i,o,a,s,c,u){for(var l=this._nRounds,d=t[n]^i[0],f=t[n+1]^i[1],A=t[n+2]^i[2],h=t[n+3]^i[3],g=4,p=1;p<l;p+=1){var v=o[d>>>24]^a[f>>>16&255]^s[A>>>8&255]^c[255&h]^i[g];g+=1;var y=o[f>>>24]^a[A>>>16&255]^s[h>>>8&255]^c[255&d]^i[g];g+=1;var m=o[A>>>24]^a[h>>>16&255]^s[d>>>8&255]^c[255&f]^i[g];g+=1;var _=o[h>>>24]^a[d>>>16&255]^s[f>>>8&255]^c[255&A]^i[g];g+=1,d=v,f=y,A=m,h=_}var I=(u[d>>>24]<<24|u[f>>>16&255]<<16|u[A>>>8&255]<<8|u[255&h])^i[g];g+=1;var b=(u[f>>>24]<<24|u[A>>>16&255]<<16|u[h>>>8&255]<<8|u[255&d])^i[g];g+=1;var C=(u[A>>>24]<<24|u[h>>>16&255]<<16|u[d>>>8&255]<<8|u[255&f])^i[g];g+=1;var k=(u[h>>>24]<<24|u[d>>>16&255]<<16|u[f>>>8&255]<<8|u[255&A])^i[g];g+=1,t[n]=I,t[n+1]=b,t[n+2]=C,t[n+3]=k}}]),i}(e8);rC.keySize=8;var rk=e8._createHelper(rC),rw=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],rE=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],rS=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],rR=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],rT=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function rD(t,n){var i=(this._lBlock>>>t^this._rBlock)&n;this._rBlock^=i,this._lBlock^=i<<t}function rB(t,n){var i=(this._rBlock>>>t^this._lBlock)&n;this._lBlock^=i,this._rBlock^=i<<t}var rP=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){for(var t=this._key.words,n=[],i=0;i<56;i+=1){var o=rw[i]-1;n[i]=t[o>>>5]>>>31-o%32&1}this._subKeys=[];for(var a=this._subKeys,s=0;s<16;s+=1){a[s]=[];for(var c=a[s],u=rS[s],l=0;l<24;l+=1)c[l/6|0]|=n[(rE[l]-1+u)%28]<<31-l%6,c[4+(l/6|0)]|=n[28+(rE[l+24]-1+u)%28]<<31-l%6;c[0]=c[0]<<1|c[0]>>>31;for(var d=1;d<7;d+=1)c[d]>>>=4*(d-1)+3;c[7]=c[7]<<5|c[7]>>>27}this._invSubKeys=[];for(var f=this._invSubKeys,A=0;A<16;A+=1)f[A]=a[15-A]}},{key:"encryptBlock",value:function(t,n){this._doCryptBlock(t,n,this._subKeys)}},{key:"decryptBlock",value:function(t,n){this._doCryptBlock(t,n,this._invSubKeys)}},{key:"_doCryptBlock",value:function(t,n,i){this._lBlock=t[n],this._rBlock=t[n+1],rD.call(this,4,252645135),rD.call(this,16,65535),rB.call(this,2,858993459),rB.call(this,8,16711935),rD.call(this,1,1431655765);for(var o=0;o<16;o+=1){for(var a=i[o],s=this._lBlock,c=this._rBlock,u=0,l=0;l<8;l+=1)u|=rR[l][((c^a[l])&rT[l])>>>0];this._lBlock=c,this._rBlock=s^u}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,rD.call(this,1,1431655765),rB.call(this,8,16711935),rB.call(this,2,858993459),rD.call(this,16,65535),rD.call(this,4,252645135),t[n]=this._lBlock,t[n+1]=this._rBlock}}]),i}(e8);rP.keySize=2,rP.ivSize=2,rP.blockSize=2;var rx=e8._createHelper(rP),rZ=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=rP.createEncryptor(eO.create(n)),this._des2=rP.createEncryptor(eO.create(i)),this._des3=rP.createEncryptor(eO.create(o))}},{key:"encryptBlock",value:function(t,n){this._des1.encryptBlock(t,n),this._des2.decryptBlock(t,n),this._des3.encryptBlock(t,n)}},{key:"decryptBlock",value:function(t,n){this._des3.decryptBlock(t,n),this._des2.encryptBlock(t,n),this._des1.decryptBlock(t,n)}}]),i}(e8);rZ.keySize=6,rZ.ivSize=2,rZ.blockSize=2;var rO=e8._createHelper(rZ),rL=[],rN=[],rM=[];function rV(){for(var t=this._X,n=this._C,i=0;i<8;i+=1)rN[i]=n[i];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<rN[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<rN[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<rN[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<rN[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<rN[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<rN[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<rN[6]>>>0?1:0)|0,this._b=n[7]>>>0<rN[7]>>>0?1:0;for(var o=0;o<8;o+=1){var a=t[o]+n[o],s=65535&a,c=a>>>16,u=((s*s>>>17)+s*c>>>15)+c*c,l=((4294901760&a)*a|0)+((65535&a)*a|0);rM[o]=u^l}t[0]=rM[0]+(rM[7]<<16|rM[7]>>>16)+(rM[6]<<16|rM[6]>>>16)|0,t[1]=rM[1]+(rM[0]<<8|rM[0]>>>24)+rM[7]|0,t[2]=rM[2]+(rM[1]<<16|rM[1]>>>16)+(rM[0]<<16|rM[0]>>>16)|0,t[3]=rM[3]+(rM[2]<<8|rM[2]>>>24)+rM[1]|0,t[4]=rM[4]+(rM[3]<<16|rM[3]>>>16)+(rM[2]<<16|rM[2]>>>16)|0,t[5]=rM[5]+(rM[4]<<8|rM[4]>>>24)+rM[3]|0,t[6]=rM[6]+(rM[5]<<16|rM[5]>>>16)+(rM[4]<<16|rM[4]>>>16)|0,t[7]=rM[7]+(rM[6]<<8|rM[6]>>>24)+rM[5]|0}var rG=function(t){u(i,t);var n=h(i);function i(){var t;o(this,i);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return(t=n.call.apply(n,[this].concat(s))).blockSize=4,t.ivSize=2,t}return s(i,[{key:"_doReset",value:function(){for(var t=this._key.words,n=this.cfg.iv,i=0;i<4;i+=1)t[i]=16711935&(t[i]<<8|t[i]>>>24)|4278255360&(t[i]<<24|t[i]>>>8);this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var o=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];var a=this._C;this._b=0;for(var s=0;s<4;s+=1)rV.call(this);for(var c=0;c<8;c+=1)a[c]^=o[c+4&7];if(n){var u=n.words,l=u[0],d=u[1],f=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),A=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=f>>>16|4294901760&A,g=A<<16|65535&f;a[0]^=f,a[1]^=h,a[2]^=A,a[3]^=g,a[4]^=f,a[5]^=h,a[6]^=A,a[7]^=g;for(var p=0;p<4;p+=1)rV.call(this)}}},{key:"_doProcessBlock",value:function(t,n){var i=this._X;rV.call(this),rL[0]=i[0]^i[5]>>>16^i[3]<<16,rL[1]=i[2]^i[7]>>>16^i[5]<<16,rL[2]=i[4]^i[1]>>>16^i[7]<<16,rL[3]=i[6]^i[3]>>>16^i[1]<<16;for(var o=0;o<4;o+=1)rL[o]=16711935&(rL[o]<<8|rL[o]>>>24)|4278255360&(rL[o]<<24|rL[o]>>>8),t[n+o]^=rL[o]}}]),i}(e2),rF=e2._createHelper(rG),rU=[],rj=[],rW=[];function rH(){for(var t=this._X,n=this._C,i=0;i<8;i+=1)rj[i]=n[i];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<rj[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<rj[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<rj[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<rj[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<rj[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<rj[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<rj[6]>>>0?1:0)|0,this._b=n[7]>>>0<rj[7]>>>0?1:0;for(var o=0;o<8;o+=1){var a=t[o]+n[o],s=65535&a,c=a>>>16,u=((s*s>>>17)+s*c>>>15)+c*c,l=((4294901760&a)*a|0)+((65535&a)*a|0);rW[o]=u^l}t[0]=rW[0]+(rW[7]<<16|rW[7]>>>16)+(rW[6]<<16|rW[6]>>>16)|0,t[1]=rW[1]+(rW[0]<<8|rW[0]>>>24)+rW[7]|0,t[2]=rW[2]+(rW[1]<<16|rW[1]>>>16)+(rW[0]<<16|rW[0]>>>16)|0,t[3]=rW[3]+(rW[2]<<8|rW[2]>>>24)+rW[1]|0,t[4]=rW[4]+(rW[3]<<16|rW[3]>>>16)+(rW[2]<<16|rW[2]>>>16)|0,t[5]=rW[5]+(rW[4]<<8|rW[4]>>>24)+rW[3]|0,t[6]=rW[6]+(rW[5]<<16|rW[5]>>>16)+(rW[4]<<16|rW[4]>>>16)|0,t[7]=rW[7]+(rW[6]<<8|rW[6]>>>24)+rW[5]|0}var rY=function(t){u(i,t);var n=h(i);function i(){var t;o(this,i);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return(t=n.call.apply(n,[this].concat(s))).blockSize=4,t.ivSize=2,t}return s(i,[{key:"_doReset",value:function(){var t=this._key.words,n=this.cfg.iv;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var i=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];var o=this._C;this._b=0;for(var a=0;a<4;a+=1)rH.call(this);for(var s=0;s<8;s+=1)o[s]^=i[s+4&7];if(n){var c=n.words,u=c[0],l=c[1],d=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),A=d>>>16|4294901760&f,h=f<<16|65535&d;o[0]^=d,o[1]^=A,o[2]^=f,o[3]^=h,o[4]^=d,o[5]^=A,o[6]^=f,o[7]^=h;for(var g=0;g<4;g+=1)rH.call(this)}}},{key:"_doProcessBlock",value:function(t,n){var i=this._X;rH.call(this),rU[0]=i[0]^i[5]>>>16^i[3]<<16,rU[1]=i[2]^i[7]>>>16^i[5]<<16,rU[2]=i[4]^i[1]>>>16^i[7]<<16,rU[3]=i[6]^i[3]>>>16^i[1]<<16;for(var o=0;o<4;o+=1)rU[o]=16711935&(rU[o]<<8|rU[o]>>>24)|4278255360&(rU[o]<<24|rU[o]>>>8),t[n+o]^=rU[o]}}]),i}(e2),rX=e2._createHelper(rY);function rK(){for(var t=this._S,n=this._i,i=this._j,o=0,a=0;a<4;a+=1){i=(i+t[n=(n+1)%256])%256;var s=t[n];t[n]=t[i],t[i]=s,o|=t[(t[n]+t[i])%256]<<24-8*a}return this._i=n,this._j=i,o}var rJ=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"_doReset",value:function(){var t=this._key,n=t.words,i=t.sigBytes;this._S=[];for(var o=this._S,a=0;a<256;a+=1)o[a]=a;for(var s=0,c=0;s<256;s+=1){var u=s%i,l=n[u>>>2]>>>24-u%4*8&255;c=(c+o[s]+l)%256;var d=o[s];o[s]=o[c],o[c]=d}this._j=0,this._i=this._j}},{key:"_doProcessBlock",value:function(t,n){t[n]^=rK.call(this)}}]),i}(e2);rJ.keySize=8,rJ.ivSize=0;var rz=e2._createHelper(rJ),rQ=function(t){u(i,t);var n=h(i);function i(){var t;o(this,i);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return Object.assign((t=n.call.apply(n,[this].concat(s))).cfg,{drop:192}),t}return s(i,[{key:"_doReset",value:function(){g(l(i.prototype),"_doReset",this).call(this);for(var t=this.cfg.drop;t>0;t-=1)rK.call(this)}}]),i}(rJ),rq=e2._createHelper(rQ);function r$(t,n,i,o){var a,s=this._iv;s?(a=s.slice(0),this._iv=void 0):a=this._prevBlock,o.encryptBlock(a,0);for(var c=0;c<i;c+=1)t[n+c]^=a[c]}var r0=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i)}(e4);r0.Encryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){var i=this._cipher,o=i.blockSize;r$.call(this,t,n,o,i),this._prevBlock=t.slice(n,n+o)}}]),i}(r0),r0.Decryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){var i=this._cipher,o=i.blockSize,a=t.slice(n,n+o);r$.call(this,t,n,o,i),this._prevBlock=a}}]),i}(r0);var r1=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i)}(e4);r1.Encryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){var i=this._cipher,o=i.blockSize,a=this._iv,s=this._counter;a&&(this._counter=a.slice(0),s=this._counter,this._iv=void 0);var c=s.slice(0);i.encryptBlock(c,0),s[o-1]=s[o-1]+1|0;for(var u=0;u<o;u+=1)t[n+u]^=c[u]}}]),i}(r1),r1.Decryptor=r1.Encryptor;var r2=function(t){var n=t;if(255==(t>>24&255)){var i=t>>16&255,o=t>>8&255,a=255&t;255===i?(i=0,255===o?(o=0,255===a?a=0:a+=1):o+=1):i+=1,n=0+(i<<16)+(o<<8)+a}else n+=16777216;return n},r4=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i)}(e4);r4.Encryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){var i,o=this._cipher,a=o.blockSize,s=this._iv,c=this._counter;s&&(this._counter=s.slice(0),c=this._counter,this._iv=void 0),(i=c)[0]=r2(i[0]),0===i[0]&&(i[1]=r2(i[1]));var u=c.slice(0);o.encryptBlock(u,0);for(var l=0;l<a;l+=1)t[n+l]^=u[l]}}]),i}(r4),r4.Decryptor=r4.Encryptor;var r3=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i)}(e4);r3.Encryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){this._cipher.encryptBlock(t,n)}}]),i}(r3),r3.Decryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){this._cipher.decryptBlock(t,n)}}]),i}(r3);var r5=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i)}(e4);r5.Encryptor=function(t){u(i,t);var n=h(i);function i(){return o(this,i),n.apply(this,arguments)}return s(i,[{key:"processBlock",value:function(t,n){var i=this._cipher,o=i.blockSize,a=this._iv,s=this._keystream;a&&(this._keystream=a.slice(0),s=this._keystream,this._iv=void 0),i.encryptBlock(s,0);for(var c=0;c<o;c+=1)t[n+c]^=s[c]}}]),i}(r5),r5.Decryptor=r5.Encryptor;var r6={pad:function(t,n){var i=4*n;t.clamp(),t.sigBytes+=i-(t.sigBytes%i||i)},unpad:function(t){for(var n=t.words,i=t.sigBytes-1;i>=0;i-=1)if(n[i>>>2]>>>24-i%4*8&255){t.sigBytes=i+1;break}}},r8={lib:{Base:eZ,WordArray:eO,BufferedBlockAlgorithm:eV,Hasher:eG,Cipher:e1,StreamCipher:e2,BlockCipherMode:e4,BlockCipher:e8,CipherParams:e9,SerializableCipher:te,PasswordBasedCipher:tr},x64:{Word:eU,WordArray:ej},enc:{Hex:eL,Latin1:eN,Utf8:eM,Utf16:ti,Utf16BE:ti,Utf16LE:{stringify:function(t){for(var n=t.words,i=t.sigBytes,o=[],a=0;a<i;a+=2){var s=tn(n[a>>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(s))}return o.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o+=1)i[o>>>1]|=tn(t.charCodeAt(o)<<16-o%2*16);return eO.create(i,2*n)}},Base64:eW},algo:{HMAC:eF,MD5:eQ,SHA1:ta,SHA224:ty,SHA256:tg,SHA384:tS,SHA512:tk,SHA3:tX,RIPEMD160:t9,PBKDF2:rt,EvpKDF:e0,AES:rC,DES:rP,TripleDES:rZ,Rabbit:rG,RabbitLegacy:rY,RC4:rJ,RC4Drop:rQ},mode:{CBC:e5,CFB:r0,CTR:r1,CTRGladman:r4,ECB:r3,OFB:r5},pad:{Pkcs7:e6,AnsiX923:{pad:function(t,n){var i=t.sigBytes,o=4*n,a=o-i%o,s=i+a-1;t.clamp(),t.words[s>>>2]|=a<<24-s%4*8,t.sigBytes+=a},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},Iso10126:{pad:function(t,n){var i=4*n,o=i-t.sigBytes%i;t.concat(eO.random(o-1)).concat(eO.create([o<<24],1))},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},Iso97971:{pad:function(t,n){t.concat(eO.create([2147483648],1)),r6.pad(t,n)},unpad:function(t){r6.unpad(t),t.sigBytes-=1}},NoPadding:{pad:function(){},unpad:function(){}},ZeroPadding:r6},format:{OpenSSL:e7,Hex:{stringify:function(t){return t.ciphertext.toString(eL)},parse:function(t){var n=eL.parse(t);return e9.create({ciphertext:n})}}},kdf:{OpenSSL:tt},MD5:eq,HmacMD5:e$,SHA1:ts,HmacSHA1:tc,SHA224:tm,HmacSHA224:t_,SHA256:tp,HmacSHA256:tv,SHA384:tR,HmacSHA384:tT,SHA512:tw,HmacSHA512:tE,SHA3:tK,HmacSHA3:tJ,RIPEMD160:t7,HmacRIPEMD160:re,PBKDF2:function(t,n,i){return rt.create(i).compute(t,n)},EvpKDF:function(t,n,i){return e0.create(i).compute(t,n)},AES:rk,DES:rx,TripleDES:rO,Rabbit:rF,RabbitLegacy:rX,RC4:rz,RC4Drop:rq};function r9(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"!=typeof document&&t){if(n&&window[t])return window[t];var i,o={},a=function(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=v(t))){i&&(t=i);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,c=!0,u=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return c=t.done,t},e:function(t){u=!0,s=t},f:function(){try{c||null==i.return||i.return()}finally{if(u)throw s}}}}(document.cookie?document.cookie.split("; "):[]);try{for(a.s();!(i=a.n()).done;){var s=i.value.split("="),c=s.slice(1).join("=");try{var u=s[0];if(o[u]=c,t===u)break}catch(t){}}}catch(t){a.e(t)}finally{a.f()}var l=t?o[t]:o;return t&&n&&(window[t]=l),l}}function r7(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=Object.assign({},i,{path:"/"})).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString());var o="";for(var a in i)i[a]&&(o+="; ".concat(a),!0!==i[a]&&(o+="= ".concat(i[a].split(";")[0])));return document.cookie="".concat(t,"=").concat(n).concat(o)}}t.WEB_ID_KEY=void 0,t.UIFID_COOKIE_NAME=void 0,t.UIFID_TEMP_COOKIE_NAME=void 0,t.FP_COOKIE_NAME=void 0,t.UA_COOKIE_NAME=void 0,t.FID_NAME=void 0,t.SIGN=void 0,t.FP_SECRET_KEY=void 0,t.MAX_AGE=void 0,t.UIFID_SECRET_KEY=void 0,function(t,n,i){function o(t,n){var i=parseInt(t.slice(n,n+2),16);return i>>>7==0?[1,i]:i>>>6==2?[2,i=((63&i)<<8)+parseInt(t.slice(n+2,n+4),16)]:[3,i=((63&i)<<16)+parseInt(t.slice(n+2,n+6),16)]}var a,s=0,c=[],u=[];for(a=0;a<4;++a)s+=(3&parseInt(t.slice(8+2*a,10+2*a),16))<<2*a;var l=parseInt(t.slice(16,24),16),d=2*parseInt(t.slice(32,40),16);for(a=40;a<d+40;a+=2)c.push(parseInt(t.slice(a,a+2),16));var f=d+40,A=parseInt(t.slice(f,f+4),16);for(f+=4,a=0;a<A;++a){var h=o(t,f);f+=2*h[0];for(var g="",p=0;p<h[1];++p){var v=o(t,f);g+=String.fromCharCode(s^v[1]),f+=2*v[0]}u.push(g)}n.p=null,function(t,n,i,o,a){var s,l,d,f,A=-1,h=[],g=null,p=[n];for(l=Math.min(n.length,0),d=0;d<l;++d)p.push(n[d]);p.p=o;for(var v=[];;)try{switch(c[t++]){case 22:s=c[t++],h[++A]=s<<24>>24;break;case 47:s=(c[t]<<8)+c[t+1],t+=2,h[++A]=s<<16>>16;break;case 1:s=(c[t]<<8)+c[t+1],t+=2,h[++A]=u[s];break;case 75:h[++A]=void 0;break;case 15:for(l=c[t++],d=c[t++],f=p;l>0;--l)f=f.p;f[d]=h[A--];break;case 2:l=h[A--],h[A]*=l;break;case 58:for(l=h[A--],d=null;f=v.pop();)if(2===f[0]||3===f[0]){d=f;break}if(d)t=d[2],d[0]=0,v.push(d);else{if(!g)return l;t=g[1],g[2],p=g[3],v=g[4],h[++A]=l,g=g[0]}break;default:throw Error("ioe")}}catch(n){for(;(s=v.pop())&&!s[0];);if(!s){t:for(;g;){for(l=g[4];s=l.pop();)if(s[0])break t;g=g[0]}if(!g)throw n;t=g[1],g[2],p=g[3],v=g[4],g=g[0]}1===(l=s[0])?(t=s[2],s[0]=0,v.push(s),h[++A]=n):2===l?(t=s[2],s[0]=0,v.push(s)):(t=s[3],s[0]=2,v.push(s),h[++A]=n)}}(l,[],0,n)}("504B0101154504e500000000e40645160000004b0100000f01000100010f01010100020f01020100030f01030100040f01040100050f01050100060f01060100070f01072f0190161802163c02163c022f03e8020f01080100080f01094b3a000909273c312021242b262005100c030c010a100c030c011a110008150423352e740423352e7708273c31201a232c2109273c31201a362c222b10273c31201a232c2b22203735372c2b312021702320717d7121277276237075242772737d7d777472212773772620742177",{get 0(){return t.WEB_ID_KEY},set 0(r){t.WEB_ID_KEY=r},get 1(){return t.UIFID_COOKIE_NAME},set 1(r){t.UIFID_COOKIE_NAME=r},get 2(){return t.UIFID_TEMP_COOKIE_NAME},set 2(r){t.UIFID_TEMP_COOKIE_NAME=r},get 3(){return t.FP_COOKIE_NAME},set 3(r){t.FP_COOKIE_NAME=r},get 4(){return t.UA_COOKIE_NAME},set 4(r){t.UA_COOKIE_NAME=r},get 5(){return t.FID_NAME},set 5(r){t.FID_NAME=r},get 6(){return t.SIGN},set 6(r){t.SIGN=r},get 7(){return t.FP_SECRET_KEY},set 7(r){t.FP_SECRET_KEY=r},get 8(){return t.MAX_AGE},set 8(r){t.MAX_AGE=r},get 9(){return t.UIFID_SECRET_KEY},set 9(r){t.UIFID_SECRET_KEY=r}}),t.preProcessUrl=void 0,t.generateFingerprint=void 0,t.removeUifidCookie=void 0,function(t,n,i){function o(t,n){var i=parseInt(t.slice(n,n+2),16);return i>>>7==0?[1,i]:i>>>6==2?[2,i=((63&i)<<8)+parseInt(t.slice(n+2,n+4),16)]:[3,i=((63&i)<<16)+parseInt(t.slice(n+2,n+6),16)]}var a,s=0,c=[],u=[];for(a=0;a<4;++a)s+=(3&parseInt(t.slice(8+2*a,10+2*a),16))<<2*a;var l=parseInt(t.slice(16,24),16),d=2*parseInt(t.slice(32,40),16);for(a=40;a<d+40;a+=2)c.push(parseInt(t.slice(a,a+2),16));var f=d+40,A=parseInt(t.slice(f,f+4),16);for(f+=4,a=0;a<A;++a){var h=o(t,f);f+=2*h[0];for(var g="",p=0;p<h[1];++p){var v=o(t,f);g+=String.fromCharCode(s^v[1]),f+=2*v[0]}u.push(g)}n.p=null,function t(n,i,o,a,s){var l,d,f,A,h,g=-1,p=[],v=null,y=[i];for(d=Math.min(i.length,o),f=0;f<d;++f)y.push(i[f]);y.p=a;for(var m=[];;)try{switch(c[n++]){case 54:p[++g]=!0;break;case 11:p[++g]=null;break;case 22:l=c[n++],p[++g]=l<<24>>24;break;case 61:l=((l=((l=c[n++])<<8)+c[n++])<<8)+c[n++],p[++g]=(l<<8)+c[n++];break;case 1:l=(c[n]<<8)+c[n+1],n+=2,p[++g]=u[l];break;case 75:p[++g]=void 0;break;case 42:p[++g]={};break;case 32:l=(c[n]<<8)+c[n+1],n+=2,d=u[l],f=p[g--],p[g][d]=f;break;case 16:for(d=c[n++],f=c[n++],A=y;d>0;--d)A=A.p;p[++g]=A[f];break;case 5:l=(c[n]<<8)+c[n+1],n+=2,d=u[l],p[g]=p[g][d];break;case 74:d=p[g--],p[g]=p[g][d];break;case 15:for(d=c[n++],f=c[n++],A=y;d>0;--d)A=A.p;A[f]=p[g--];break;case 48:d=p[g--],f=p[g--],A=p[g--],f[d]=A;break;case 18:for(d=c[n++],f=c[n++],A=y,A=y;d>0;--d)A=A.p;p[++g]=A,p[++g]=f;break;case 73:d=p[g--],p[g]+=d;break;case 44:d=p[g--],p[g]-=d;break;case 45:p[g]=-p[g];break;case 65:d=p[g--],p[g]=p[g]===d;break;case 60:d=p[g--],p[g]=p[g]!==d;break;case 39:d=p[g--],p[g]=p[g]>d;break;case 38:p[g]=!p[g];break;case 50:l=(l=(c[n]<<8)+c[n+1])<<16>>16,n+=2,p[g]?--g:n+=l;break;case 8:l=(l=(c[n]<<8)+c[n+1])<<16>>16,n+=2,p[g]?n+=l:--g;break;case 37:d=p[g--],(f=p[g--])[d]=p[g];break;case 67:p[g]=void 0;break;case 13:p[g]=typeof p[g];break;case 66:l=c[n++],d=p[g--],(f=function t(){var n=t._v;return(0,t._u)(n[0],arguments,n[1],n[2],this)})._v=[d,l,y],f._u=t,p[++g]=f;break;case 34:l=c[n++],d=p[g--],(A=[f=function t(){var n=t._v;return(0,t._u)(n[0],arguments,n[1],n[2],this)}]).p=y,f._v=[d,l,A],f._u=t,p[++g]=f;break;case 58:for(d=p[g--],f=null;A=m.pop();)if(2===A[0]||3===A[0]){f=A;break}if(f)n=f[2],f[0]=0,m.push(f);else{if(!v)return d;n=v[1],s=v[2],y=v[3],m=v[4],p[++g]=d,v=v[0]}break;case 12:g-=l=c[n++],f=p.slice(g+1,g+l+1),d=p[g--],A=p[g--],d._u===t?(d=d._v,v=[v,n,s,y,m],n=d[0],null==A&&(A=function(){return this}()),s=A,(y=[f].concat(f)).length=Math.min(d[1],l)+1,y.p=d[2],m=[]):(h=d.apply(A,f),p[++g]=h);break;case 53:for(l=c[n++],A=[void 0],h=l;h>0;--h)A[h]=p[g--];f=p[g--],h=new(d=Function.bind.apply(f,A)),p[++g]=h;break;case 59:n+=2+(l=(l=(c[n]<<8)+c[n+1])<<16>>16);break;case 17:l=(l=(c[n]<<8)+c[n+1])<<16>>16,n+=2,(d=p[g--])||(n+=l);break;case 49:--g;break;case 56:d=p[g],p[++g]=d;break;default:throw Error("ioe")}}catch(t){for(;(l=m.pop())&&!l[0];);if(!l){t:for(;v;){for(d=v[4];l=d.pop();)if(l[0])break t;v=v[0]}if(!v)throw t;n=v[1],s=v[2],y=v[3],m=v[4],v=v[0]}1===(d=l[0])?(n=l[2],l[0]=0,m.push(l),p[++g]=t):2===d?(n=l[2],l[0]=0,m.push(l)):(n=l[3],l[0]=2,m.push(l),p[++g]=t)}}(l,[],0,n,i)}("504B0101154504e50000070ce406451600000768100001261100082a1000012000003a100200380500011000010c0111001b1000010f00032a100003380500023d0000004a42010c012000003a2a0b1001011000011000020c022000003a0b1003090b1003092a1000010c022a2a0b1002011000010500030800030100041001020c022000030c033a0b1001061000010c010f00041000040500050f00051000040500060f00061000040500070f00071000040500080f00081000020b3c3200071000021600433c3200061000020500091100041000013a1000072608000410000626080004100008261100041000013a1002010d01000a3c0f00090b10021410000511000610020e3b000310020d1000090c020f000a10000a11000610000a3b001910000932001310020110000511000610020e3b000310020d4a0f000a10000a261100041000013a10000932000710020101000b4a1100200b1001021000012a1000082000081000052000051000062000061000020c033a0b10010510000a1000060c020f000b0b10021410020f1000090c020f000c1000091100691002011002134a0f000d10000d2611004f10000c11003310020b3805000c10020b05000d3805000e10000c1002100c023805000f10020b0500100500110c010c013805000f0c003b00031600430f000d10000d11000a10000d10020110021330160110020101000b301000020800012a0f000e10000e0500120f000f10000e0500130f001010000f11000f0b10010410000f1000090c023b00031600430f001110001011000f0b1001041000101000090c023b00031600430f00120b1001031000012a12000325310b1002081000031000080100043805001410000a0100150c023805001410000b0c010c03310b10020810000301001610000d0c03310b1002081000030100171000110c03310b1002081000030100181000120c03311000030c023a1000020500080f00051000020500050f00061000020500060f000710020110000611000610020e3b000310020d4a0f00080b1001051000081000070c020f00091002011002134a0f000a1000030800012a0f000b10000b0500120f000c10000b0500130f000d10020110000c4a0f000e10020110000d4a0f000f0b1001031000012a12000425310b100208100004100005010004380500141000080100150c02380500141000090c010c03310b10020810000401001610000a0c03310b10020810000401001710000e0c03310b10020810000401001810000f0c03311000040c023a0100040f0003100202380500191000020c013805001a3d0000040c42010c010f00041000043805001b3d0000041442020c01311000013805001f0100200c0116012d2711001c0100043805001410000101001e0c02380500141000030c013a3b0019010004380500141000010100200c02380500141000030c013a4b3a1001021000014a3a1001021000014a1100441001030100043805001410000101001c0c02380500141001021000014a0c013805001410000210010405001d16012c411100060100043b000301001e0c014912010325314b3a0100040f000310000211000a1003011000014a0f00031000032611001f10030b3805000c1000010c013805000f0c000f0003100003100301100001301000033a10030b3805000c010004380500141000010c01380500141000020c013805001410030c0c010c013805000f0c003a0b10021410020f0c010f0001100001110039100203380500212a12000225310b10020810000210020f1000010c03310b1002081000021002110b1002141002110c010c03311000020c013a1002033d0000052a420135013a0b10030a0c000f0002100002380500223d0000056042010c01380500223d0000056a42010c013805002c3d0000063242000c01314b3a100001380500230c003a1000010500240f000310040b05000d380500251000031004100c023805000f0c000f00040b10041510040f1000042a100404100404380500260c001004124935012000270100282000293620002a0c033110040b3805000c10040505002b0c013805000f0c000f00050b1004151004111000052a100404100404380500260c001004124935012000270100282000293620002a0c03310b1001012a12000225310b10040810000210040f1000040c03310b1004081000021004111000050c03311000020c01314b3a0b1001012a12000125310b10040810000110040f0100040c03310b1004081000011004110100040c03311000010c01314b3a0b10021510020d0100042a16012d2000270c03310b10021510020e0100042a16012d2000270c03314b3a1000013805002d1000013805001f0100200c011601490c013805002e01001e0c010f00022a0f0003100002380500023d000006cb42010c01311000033a1000013805002e01001c0c010f00020b10030710000216020c020f000310000316004a0f000410000316014a0f00050b1003061000050c01100103100004304b3a3d0000000042020f01163d0000007542020f00013d000002ad42030f00023d0000038f42020f00033d000004d242000f01173d0000066442000f01183d0000068e42010f00063d0000046422020f00043d000004a422020f00054b3a002f03303729072c36043737243c032824350336372600043120283506203d352c372009362c222b243130372002312e0a2c36032429292724262e09302b2120232c2b2021101a362c222b23372a282820282a373c1a030801700304001607212026373c353108312a1631372c2b2203202b26041031237d053220270c2106303620370c2106262a2b262431016803232c2103322c2103302c21042e203c3606232c2931203707232a370024262d01780629202b22312d0163072c2b21203d0a23017a073720362a29332004312d202b0322203109332c362c312a370c2107202b26373c3531032b2a3207203d352c372036042b2a2b200836242820162c31200636202630372009303620370422202b3105262431262d0536292c2620053635292c31",{0:Array,get 1(){return"undefined"!=typeof window?window:void 0},2:Object,3:Promise,4:Date,get 5(){return navigator},6:decodeURIComponent,get 7(){return p},get 8(){return c},get 9(){return i},get 10(){return ex},get 11(){return r8},get 12(){return t.WEB_ID_KEY},get 13(){return t.UIFID_COOKIE_NAME},get 14(){return t.UIFID_TEMP_COOKIE_NAME},get 15(){return t.FP_COOKIE_NAME},get 16(){return t.FP_SECRET_KEY},get 17(){return t.UA_COOKIE_NAME},get 18(){return t.MAX_AGE},get 19(){return t.FID_NAME},get 20(){return r9},get 21(){return r7},get 22(){return t.preProcessUrl},set 22(r){t.preProcessUrl=r},get 23(){return t.generateFingerprint},set 23(r){t.generateFingerprint=r},get 24(){return t.removeUifidCookie},set 24(r){t.removeUifidCookie=r}},void 0),function(t,n,i){function o(t,n){var i=parseInt(t.slice(n,n+2),16);return i>>>7==0?[1,i]:i>>>6==2?[2,i=((63&i)<<8)+parseInt(t.slice(n+2,n+4),16)]:[3,i=((63&i)<<16)+parseInt(t.slice(n+2,n+6),16)]}var a,s=0,c=[];for(a=0;a<4;++a)s+=(3&parseInt(t.slice(8+2*a,10+2*a),16))<<2*a;var u=parseInt(t.slice(16,24),16),l=2*parseInt(t.slice(32,40),16);for(a=40;a<l+40;a+=2)c.push(parseInt(t.slice(a,a+2),16));var d=l+40,f=parseInt(t.slice(d,d+4),16);for(d+=4,a=0;a<f;++a){var A=o(t,d);d+=2*A[0];for(var h=0;h<A[1];++h){var g=o(t,d);String.fromCharCode(s^g[1]),d+=2*g[0]}}n.p=null,function(t,n,i,o,a){var s,u,l,d,f=-1,A=[],h=null,g=[n];for(u=Math.min(n.length,0),l=0;l<u;++l)g.push(n[l]);g.p=o;for(var p=[];;)try{switch(c[t++]){case 75:A[++f]=void 0;break;case 58:for(u=A[f--],l=null;d=p.pop();)if(2===d[0]||3===d[0]){l=d;break}if(l)t=l[2],l[0]=0,p.push(l);else{if(!h)return u;t=h[1],h[2],g=h[3],p=h[4],A[++f]=u,h=h[0]}break;default:throw Error("ioe")}}catch(n){for(;(s=p.pop())&&!s[0];);if(!s){t:for(;h;){for(u=h[4];s=u.pop();)if(s[0])break t;h=h[0]}if(!h)throw n;t=h[1],h[2],g=h[3],p=h[4],h=h[0]}1===(u=s[0])?(t=s[2],s[0]=0,p.push(s),A[++f]=n):2===u?(t=s[2],s[0]=0,p.push(s)):(t=s[3],s[0]=2,p.push(s),A[++f]=n)}}(u,[],0,n)}("504B0101154504e500000000e4064516000000024b3a0000",{})}(n,i(162093),i(248385),i(414931),i(346984),i(705574),i(2885),i(663030),i(679308),i(9498),i(932651),i(173757),i(124300),i(832674),i(905442),i(446336),i(808483),i(840938),i(118438),i(325598),i(92999),i(611067),i(273723),i(724016),i(803903),i(214604),i(901250),i(755006),i(437048),i(488336),i(825666),i(177162),i(286633),i(943281),i(810658),i(82726),i(224727),i(796468),i(833291),i(685346),i(367456),i(851329),i(885854),i(911254),i(82748),i(802824),i(503e3))},204885:function(t,n,i){"use strict";function o(){!Promise.withResolvers&&(Promise.withResolvers=function(){var t={};return t.promise=new Promise(function(n,i){t.resolve=n,t.reject=i}),t})}i.d(n,{z:function(){return o}}),i(248385),i(679308)},30222:function(t,n,i){"use strict";i.d(n,{Z:function(){return o}});var o=(0,i(227346).p)("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgLyogZXNsaW50LWRpc2FibGUgbm8tZXZhbCAqLwogIC8qIGVzbGludC1kaXNhYmxlIG5vLXVuZGVmICovCiAgLy8g55uu5YmN5LuF5pSv5oyBeXV2NDIwCgogIGZ1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzIChzcmMpIHsKICAgIHJldHVybiBmZXRjaChzcmMpCiAgICAgIC50aGVuKGZ1bmN0aW9uIChyZXMpIHsKICAgICAgICByZXR1cm4gcmVzLnRleHQoKQogICAgICB9KQogICAgICAudGhlbihmdW5jdGlvbiAodGV4dCkgewogICAgICAgIGV2YWwodGV4dCk7CiAgICAgICAgc2VsZi5Nb2R1bGUgPSBNb2R1bGU7CiAgICAgICAgc2VsZi5hZGRPblBvc3RSdW4gPSBhZGRPblBvc3RSdW47CiAgICAgIH0pCiAgfQoKICB2YXIgTUFYX1NUUkVBTV9CVUZGRVJfTEVOR1RIID0gMTAyNCAqIDEwMjQgKiA1OyAvLyDliIbphY0gNU0g56m66Ze05a2Y5YKo5bin5pWw5o2uCiAgdmFyIEJBVENIX0RFQ09ERV9TSVpFID0gODsgLy8g5LiA5qyh5aSE55CG55qE5bin5pWw6YePCiAgdmFyIGluaXRUcyA9IDA7CgogIHZhciBEZWNvZGVyID0gZnVuY3Rpb24gKHNlbGYpIHsKICAgIHRoaXMuaW5pdGVkID0gZmFsc2U7CiAgICB0aGlzLmluZm9JZCA9IDA7CiAgICB0aGlzLnNlbGYgPSBzZWxmOwogICAgdGhpcy5tZXRhID0gc2VsZi5tZXRhOwogICAgdGhpcy50cyA9IDA7CiAgICB0aGlzLmluZm9saXN0ID0gW107CiAgICBzZWxmLnBhcl9icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQgPSB0aGlzLmJyb2Fkd2F5T25Ccm9hZHdheUluaXRlZC5iaW5kKHRoaXMpOwogICAgc2VsZi5wYXJfYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkID0gdGhpcy5icm9hZHdheU9uUGljdHVyZURlY29kZWQuYmluZCh0aGlzKTsKICB9OwoKICBEZWNvZGVyLnByb3RvdHlwZS50b1U4QXJyYXkgPSBmdW5jdGlvbiAocHRyLCBsZW5ndGgpIHsKICAgIHJldHVybiBNb2R1bGUuSEVBUFU4LnN1YmFycmF5KHB0ciwgcHRyICsgbGVuZ3RoKQogIH07CgogIERlY29kZXIucHJvdG90eXBlLmluaXQgPSBmdW5jdGlvbiAoKSB7CiAgICBNb2R1bGUuX2Jyb2Fkd2F5SW5pdCgwLCAyKTsKCiAgICAvLyDlrZjlgqjluKfmlbDmja7nmoRidWZmZXLlvIDlp4vkvY3nva4KICAgIHRoaXMuc3RyZWFtQnVmZmVyUHRyID0gTW9kdWxlLl9icm9hZHdheUNyZWF0ZVN0cmVhbShNQVhfU1RSRUFNX0JVRkZFUl9MRU5HVEgpOwogICAgdGhpcy5zdHJlYW1CdWZmZXIgPSB0aGlzLnRvVThBcnJheSh0aGlzLnN0cmVhbUJ1ZmZlclB0ciwgTUFYX1NUUkVBTV9CVUZGRVJfTEVOR1RIKTsKICAgIC8vIOeUqOadpeWtmOWCqOavj+W4p3NpemXnmoTmlbDmja7nmoTlvIDlp4vkvY3nva4KICAgIHRoaXMuYnVmZmVyU2l6ZXNQdHIgPSBNb2R1bGUuX21hbGxvYyg0ICogQkFUQ0hfREVDT0RFX1NJWkUpOwogICAgdGhpcy5idWZmZXJTaXplcyA9IHRoaXMudG9VOEFycmF5KHRoaXMuYnVmZmVyU2l6ZXNQdHIsIDQgKiBCQVRDSF9ERUNPREVfU0laRSk7CiAgICB0aGlzLnN0cmVhbUJ1ZmZlck9mZnNldCA9IDA7CiAgICB0aGlzLmZyYW1lTGVuc09mZnNldCA9IDA7CiAgICB0aGlzLmZyYW1lTGVuc0J1ZmZlciA9IG5ldyBVaW50MzJBcnJheShCQVRDSF9ERUNPREVfU0laRSk7CiAgfTsKCiAgRGVjb2Rlci5wcm90b3R5cGUuYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkID0gZnVuY3Rpb24gKG9mZnNldCwgd2lkdGgsIGhlaWdodCkgewogICAgdmFyIGluZm8gPSB0aGlzLmluZm9saXN0LnNoaWZ0KCk7CiAgICB2YXIgeVJvd2NvdW50ID0gaGVpZ2h0OwogICAgdmFyIHV2Um93Y291bnQgPSBoZWlnaHQgLyAyOwogICAgdmFyIHlMaW5lc2l6ZSA9IHdpZHRoOwogICAgdmFyIHV2TGluZXNpemUgPSB3aWR0aCAvIDI7CiAgICBpZiAodGhpcy5tZXRhICYmICh0aGlzLm1ldGEuY2hyb21hRm9ybWF0ID09PSA0NDQgfHwgdGhpcy5tZXRhLmNocm9tYUZvcm1hdCA9PT0gNDIyKSkgewogICAgICB1dlJvd2NvdW50ID0gaGVpZ2h0OwogICAgfQogICAgdmFyIGRhdGEgPSB0aGlzLnRvVThBcnJheShvZmZzZXQsIHlMaW5lc2l6ZSAqIHlSb3djb3VudCArIDIgKiAodXZMaW5lc2l6ZSAqIHV2Um93Y291bnQpKTsKICAgIC8vIHRoaXMuaW5mb2xpc3RbaW5mb2lkXSA9IG51bGw7CiAgICB2YXIgZGF0ZXRlbXAgPSBuZXcgVWludDhBcnJheShkYXRhLmxlbmd0aCk7CiAgICBkYXRldGVtcC5zZXQoZGF0YSk7CiAgICB2YXIgYnVmZmVyID0gZGF0ZXRlbXAuYnVmZmVyOwoKICAgIHRoaXMuc2VsZi5wb3N0TWVzc2FnZSgKICAgICAgewogICAgICAgIG1zZzogJ0RFQ09ERUQnLAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICB5TGluZXNpemUsCiAgICAgICAgdXZMaW5lc2l6ZSwKICAgICAgICBpbmZvLAogICAgICAgIGJ1ZmZlcgogICAgICB9LAogICAgICBbYnVmZmVyXQogICAgKTsKICB9OwoKICBEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQgPSBmdW5jdGlvbiAoKSB7CiAgICBpZiAodGhpcy5pbml0ZWQpIHsKICAgICAgcmV0dXJuCiAgICB9CiAgICB0aGlzLmluaXRlZCA9IHRydWU7CiAgICB2YXIgY29zdCA9IDA7CiAgICBpZiAoaW5pdFRzKSB7CiAgICAgIGNvc3QgPSBwZXJmb3JtYW5jZS5ub3coKSAtIGluaXRUczsKICAgIH0KICAgIHRoaXMuc2VsZi5wb3N0TWVzc2FnZSh7IG1zZzogJ0RFQ09ERVJfUkVBRFknLCBjb3N0IH0pOwogIH07CgogIERlY29kZXIucHJvdG90eXBlLnN0b3JlQnVmZmVyID0gZnVuY3Rpb24gKGRhdGEsIGZJbmZvKSB7CiAgICBpZiAoZkluZm8gJiYgZkluZm8ua2V5ZnJhbWUpIHsKICAgICAgdGhpcy5mbHVzaCgpOwogICAgfQogICAgdGhpcy5pbmZvbGlzdC5wdXNoKGZJbmZvKTsKICAgIHRoaXMuc3RyZWFtQnVmZmVyLnNldChkYXRhLCB0aGlzLnN0cmVhbUJ1ZmZlck9mZnNldCk7CiAgICB0aGlzLmZyYW1lTGVuc0J1ZmZlclt0aGlzLmZyYW1lTGVuc09mZnNldF0gPSBkYXRhLmxlbmd0aDsKICAgIHRoaXMuc3RyZWFtQnVmZmVyT2Zmc2V0ICs9IGRhdGEubGVuZ3RoOwogICAgdGhpcy5mcmFtZUxlbnNPZmZzZXQgKz0gMTsKICAgIHRoaXMuYmF0Y2hEZWNvZGUoKTsKICB9OwoKICBEZWNvZGVyLnByb3RvdHlwZS5iYXRjaERlY29kZSA9IGZ1bmN0aW9uIChmbHVzaCkgewogICAgLy8g5pSSMTDluKflpITnkIbkuIDmrKEg5oiW6ICFIOW8uuWItuino+eggQogICAgdmFyIHRvZG8gPSB0aGlzLmZyYW1lTGVuc09mZnNldCA+PSBCQVRDSF9ERUNPREVfU0laRSB8fCAoZmx1c2ggJiYgdGhpcy5mcmFtZUxlbnNPZmZzZXQpOwogICAgaWYgKHRvZG8pIHsKICAgICAgdGhpcy5idWZmZXJTaXplcy5zZXQobmV3IFVpbnQ4QXJyYXkodGhpcy5mcmFtZUxlbnNCdWZmZXIuYnVmZmVyKSwgMCk7CiAgICAgIE1vZHVsZS5fYnJvYWR3YXlQbGF5U3RyZWFtMSh0aGlzLmJ1ZmZlclNpemVzUHRyLCB0aGlzLmZyYW1lTGVuc09mZnNldCk7CiAgICAgIHRoaXMuZnJhbWVMZW5zT2Zmc2V0ID0gMDsKICAgICAgdGhpcy5zdHJlYW1CdWZmZXJPZmZzZXQgPSAwOwogICAgfQogIH07CgogIERlY29kZXIucHJvdG90eXBlLmRlY29kZSA9IGZ1bmN0aW9uIChkYXRhKSB7CiAgICB0aGlzLnN0cmVhbUJ1ZmZlci5zZXQoZGF0YSk7CiAgICBNb2R1bGUuX2Jyb2Fkd2F5UGxheVN0cmVhbShkYXRhLmxlbmd0aCwgMCk7CiAgfTsKCiAgRGVjb2Rlci5wcm90b3R5cGUuZmx1c2ggPSBmdW5jdGlvbiAoKSB7CiAgICB0aGlzLmJhdGNoRGVjb2RlKHRydWUpOwogICAgTW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKCk7CiAgfTsKCiAgRGVjb2Rlci5wcm90b3R5cGUuZGVzdHJveSA9IGZ1bmN0aW9uICgpIHsKICAgIE1vZHVsZS5fYnJvYWR3YXlFeGl0KCk7CiAgfTsKCiAgRGVjb2Rlci5wcm90b3R5cGUudXBkYXRlTWV0YSA9IGZ1bmN0aW9uIChtZXRhKSB7CiAgICB0aGlzLm1ldGEgPSBtZXRhOwogIH07CgogIHZhciBkZWNvZGVyOwoKICBmdW5jdGlvbiBvblBvc3RSdW4gKCkgewogICAgZGVjb2RlciA9IG5ldyBEZWNvZGVyKHRoaXMpOwogICAgZGVjb2Rlci5pbml0KCk7CiAgfQoKICB2YXIgV0FTTV9DRE5fUEFUSF9QUkVGSVggPSAnJzsKCiAgZnVuY3Rpb24gaW5pdCAodXJsKSB7CiAgICBXQVNNX0NETl9QQVRIX1BSRUZJWCA9IHVybC5zcGxpdCgnLycpLnNsaWNlKDAsIC0xKS5qb2luKCcvJyk7CiAgICBpbml0VHMgPSBwZXJmb3JtYW5jZS5ub3coKTsKICAgIGlmICghZGVjb2RlcikgewogICAgICB2YXIgdGFzazsKCiAgICAgIGlmICghc2VsZi5pbXBvcnRTY3JpcHRzKSB7CiAgICAgICAgdGFzayA9IHNoaW1JbXBvcnRTY3JpcHRzKHVybCk7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgdGFzayA9IG5ldyBQcm9taXNlKGZ1bmN0aW9uIChyZXNvbHZlLCByZWplY3QpIHsKICAgICAgICAgIGlmICghc2VsZi5jb25zb2xlKSB7CiAgICAgICAgICAgIHNlbGYuY29uc29sZSA9IHsKICAgICAgICAgICAgICBsb2c6IGZ1bmN0aW9uICgpIHt9LAogICAgICAgICAgICAgIHdhcm46IGZ1bmN0aW9uICgpIHt9LAogICAgICAgICAgICAgIGluZm86IGZ1bmN0aW9uICgpIHt9LAogICAgICAgICAgICAgIGVycm9yOiBmdW5jdGlvbiAoKSB7fQogICAgICAgICAgICB9OwogICAgICAgICAgfQogICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgc2VsZi5pbXBvcnRTY3JpcHRzKHVybCk7CiAgICAgICAgICAgIHJlc29sdmUoKTsKICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmVqZWN0KGUpOwogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9CgogICAgICB0YXNrCiAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkgewogICAgICAgICAgcmV0dXJuIGZldGNoKFdBU01fQ0ROX1BBVEhfUFJFRklYICsgJy9kZWNvZGVyLndvcmtlci5qcycpCiAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uIChyZXMpIHsKICAgICAgICAgICAgICByZXR1cm4gcmVzLmJsb2IoKQogICAgICAgICAgICB9KQogICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoYmxvYikgewogICAgICAgICAgICAgIHJldHVybiBzZWxmLm0oewogICAgICAgICAgICAgICAgbG9jYXRlRmlsZTogZnVuY3Rpb24gKHN1ZmZpeCkgewogICAgICAgICAgICAgICAgICBpZiAoL1wud29ya2VyXC5qcyQvLnRlc3Qoc3VmZml4KSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBVUkwuY3JlYXRlT2JqZWN0VVJMKGJsb2IpCiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgaWYgKC9cLndhc20kLy50ZXN0KHN1ZmZpeCkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gV0FTTV9DRE5fUEFUSF9QUkVGSVggKyAnL2RlY29kZXIud2FzbScKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBpZiAoL1wubWVtJC8udGVzdChzdWZmaXgpKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFdBU01fQ0ROX1BBVEhfUFJFRklYICsgJy9kZWNvZGVyLmpzLm1lbScKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIG1haW5TY3JpcHRVcmxPckJsb2I6IFdBU01fQ0ROX1BBVEhfUFJFRklYICsgJy9kZWNvZGVyLmpzJwogICAgICAgICAgICAgIH0pCiAgICAgICAgICAgIH0pCiAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uIChNb2QpIHsKICAgICAgICAgICAgICBzZWxmLk1vZHVsZSA9IE1vZDsKICAgICAgICAgICAgICBvblBvc3RSdW4uY2FsbChzZWxmKTsKICAgICAgICAgICAgfSkKICAgICAgICB9KQogICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZSkgewogICAgICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7CiAgICAgICAgICAgIG1zZzogJ0lOSVRfRkFJTEVEJywKICAgICAgICAgICAgbG9nOiBlLm1lc3NhZ2UKICAgICAgICAgIH0pOwogICAgICAgIH0pOwogICAgfQogIH0KCiAgc2VsZi5vbm1lc3NhZ2UgPSBmdW5jdGlvbiAoZSkgewogICAgdmFyIGRhdGEgPSBlLmRhdGE7CiAgICBpZiAoZGF0YS5tc2cgIT09ICdpbml0JyAmJiBkYXRhLm1zZyAhPT0gJ3ByZWxvYWQnICYmICFkZWNvZGVyKSByZXR1cm4KICAgIHN3aXRjaCAoZGF0YS5tc2cpIHsKICAgICAgY2FzZSAncHJlbG9hZCc6CiAgICAgICAgaW5pdChkYXRhLnVybCk7CiAgICAgICAgQkFUQ0hfREVDT0RFX1NJWkUgPSBkYXRhLmJhdGNoRGVjb2RlQ291bnQ7CiAgICAgICAgYnJlYWsKICAgICAgY2FzZSAnaW5pdCc6CiAgICAgICAgc2VsZi5tZXRhID0gZGF0YS5tZXRhOwogICAgICAgIEJBVENIX0RFQ09ERV9TSVpFID0gZGF0YS5iYXRjaERlY29kZUNvdW50OwogICAgICAgIGluaXQoZGF0YS51cmwpOwogICAgICAgIGJyZWFrCiAgICAgIGNhc2UgJ3VwZGF0ZW1ldGEnOgogICAgICAgIHNlbGYubWV0YSA9IGRhdGEubWV0YTsKICAgICAgICBkZWNvZGVyLnVwZGF0ZU1ldGEoZGF0YS5tZXRhKTsKICAgICAgICBicmVhawogICAgICBjYXNlICdpbml0RGVjb2Rlcic6CiAgICAgICAgaWYgKGRlY29kZXIuZnJhbWVMZW5zT2Zmc2V0KSB7CiAgICAgICAgICBkZWNvZGVyLmJhdGNoRGVjb2RlKHRydWUpOwogICAgICAgIH0KICAgICAgICBkZWNvZGVyLmZsdXNoKCk7CiAgICAgICAgZGVjb2Rlci5kZWNvZGUoZGF0YS5kYXRhKTsKICAgICAgICBicmVhawogICAgICBjYXNlICdkZWNvZGUnOgogICAgICAgIGRlY29kZXIuc3RvcmVCdWZmZXIoZGF0YS5kYXRhLCBkYXRhLmluZm8pOwogICAgICAgIGJyZWFrCiAgICAgIGNhc2UgJ2ZsdXNoJzoKICAgICAgICBkZWNvZGVyLmZsdXNoKCk7CiAgICAgICAgYnJlYWsKICAgICAgY2FzZSAnZmluaXNoX2ZsYWcnOgogICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICAgICAgbXNnOiAnQkFUQ0hfRklOSVNIX0ZMQUcnCiAgICAgICAgfSk7CiAgICAgICAgYnJlYWsKICAgICAgY2FzZSAnZGVzdG9yeSc6CiAgICAgICAgZGVjb2Rlci5kZXN0cm95KCk7CiAgICAgICAgYnJlYWsKICAgIH0KICB9OwoKfSgpKTsKCg==",null,!1)},126980:function(t,n,i){"use strict";i.d(n,{Z:function(){return o}});var o=(0,i(227346).p)("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgLyogZXNsaW50LWRpc2FibGUgbm8tZXZhbCAqLwogIC8qIGVzbGludC1kaXNhYmxlIG5vLXVuZGVmICovCiAgLy8g55uu5YmN5LuF5pSv5oyBeXV2NDIwCgogIGZ1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzIChzcmMpIHsKICAgIHJldHVybiBmZXRjaChzcmMpCiAgICAgIC50aGVuKGZ1bmN0aW9uIChyZXMpIHsKICAgICAgICByZXR1cm4gcmVzLnRleHQoKQogICAgICB9KQogICAgICAudGhlbihmdW5jdGlvbiAodGV4dCkgewogICAgICAgIGV2YWwodGV4dCk7CiAgICAgICAgc2VsZi5Nb2R1bGUgPSBNb2R1bGU7CiAgICAgICAgc2VsZi5hZGRPblBvc3RSdW4gPSBhZGRPblBvc3RSdW47CiAgICAgIH0pCiAgfQoKICB2YXIgTUFYX1NUUkVBTV9CVUZGRVJfTEVOR1RIID0gMTAyNCAqIDEwMjQgKiAzOwogIHZhciBpbml0VHMgPSAwOwoKICB2YXIgRGVjb2RlciA9IGZ1bmN0aW9uIChzZWxmKSB7CiAgICB0aGlzLmluaXRlZCA9IGZhbHNlOwogICAgdGhpcy5pbmZvSWQgPSAwOwogICAgdGhpcy5zZWxmID0gc2VsZjsKICAgIHRoaXMubWV0YSA9IHRoaXMuc2VsZi5tZXRhOwogICAgdGhpcy50cyA9IDA7CiAgICB0aGlzLmluZm9saXN0ID0gW107CiAgICBzZWxmLnBhcl9icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQgPSB0aGlzLmJyb2Fkd2F5T25Ccm9hZHdheUluaXRlZC5iaW5kKHRoaXMpOwogICAgc2VsZi5wYXJfYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkID0gdGhpcy5icm9hZHdheU9uUGljdHVyZURlY29kZWQuYmluZCh0aGlzKTsKICB9OwoKICBEZWNvZGVyLnByb3RvdHlwZS50b1U4QXJyYXkgPSBmdW5jdGlvbiAocHRyLCBsZW5ndGgpIHsKICAgIHJldHVybiBNb2R1bGUuSEVBUFU4LnN1YmFycmF5KHB0ciwgcHRyICsgbGVuZ3RoKQogIH07CgogIERlY29kZXIucHJvdG90eXBlLmluaXQgPSBmdW5jdGlvbiAoKSB7CiAgICBNb2R1bGUuX2Jyb2Fkd2F5SW5pdCgwLCAxKTsKICAgIHRoaXMub2Zmc2V0ID0gTW9kdWxlLl9icm9hZHdheUNyZWF0ZVN0cmVhbShNQVhfU1RSRUFNX0JVRkZFUl9MRU5HVEgpOwogIH07CgogIERlY29kZXIucHJvdG90eXBlLmJyb2Fkd2F5T25QaWN0dXJlRGVjb2RlZCA9IGZ1bmN0aW9uICgKICAgIG9mZnNldCwKICAgIHdpZHRoLAogICAgaGVpZ2h0LAogICAgaW5mb2lkLAogICAgc2xpY2VUeXBlCiAgKSB7CiAgICB2YXIgaW5mbyA9IHRoaXMuaW5mb2xpc3Quc2hpZnQoKTsKICAgIHZhciB5Um93Y291bnQgPSBoZWlnaHQ7CiAgICB2YXIgdXZSb3djb3VudCA9IGhlaWdodCAvIDI7CiAgICB2YXIgeUxpbmVzaXplID0gd2lkdGg7CiAgICB2YXIgdXZMaW5lc2l6ZSA9IHdpZHRoIC8gMjsKICAgIGlmICh0aGlzLm1ldGEgJiYgKHRoaXMubWV0YS5jaHJvbWFGb3JtYXQgPT09IDQ0NCB8fCB0aGlzLm1ldGEuY2hyb21hRm9ybWF0ID09PSA0MjIpKSB7CiAgICAgIHV2Um93Y291bnQgPSBoZWlnaHQ7CiAgICB9CiAgICBpZiAoaW5mbyAmJiBpbmZvLnByZWNpc2VTZWVrKSB7CiAgICAgIGlmICghaW5mby5vdXRwdXQpIHJldHVybgogICAgfQoKICAgIHZhciBkYXRhID0gdGhpcy50b1U4QXJyYXkob2Zmc2V0LCB5TGluZXNpemUgKiB5Um93Y291bnQgKyAyICogKHV2TGluZXNpemUgKiB1dlJvd2NvdW50KSk7CiAgICAvLyB0aGlzLmluZm9saXN0W2luZm9pZF0gPSBudWxsOwogICAgdmFyIGRhdGV0ZW1wID0gbmV3IFVpbnQ4QXJyYXkoZGF0YS5sZW5ndGgpOwogICAgZGF0ZXRlbXAuc2V0KGRhdGEpOwogICAgdmFyIGJ1ZmZlciA9IGRhdGV0ZW1wLmJ1ZmZlcjsKCiAgICB0aGlzLnNlbGYucG9zdE1lc3NhZ2UoCiAgICAgIHsKICAgICAgICBtc2c6ICdERUNPREVEJywKICAgICAgICB3aWR0aCwKICAgICAgICBoZWlnaHQsCiAgICAgICAgeUxpbmVzaXplLAogICAgICAgIHV2TGluZXNpemUsCiAgICAgICAgaW5mbywKICAgICAgICBidWZmZXIKICAgICAgfSwKICAgICAgW2J1ZmZlcl0KICAgICk7CiAgfTsKCiAgRGVjb2Rlci5wcm90b3R5cGUuYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkID0gZnVuY3Rpb24gKCkgewogICAgaWYgKHRoaXMuaW5pdGVkKSB7CiAgICAgIHJldHVybgogICAgfQogICAgdGhpcy5pbml0ZWQgPSB0cnVlOwogICAgdmFyIGNvc3QgPSAwOwogICAgaWYgKGluaXRUcykgewogICAgICBjb3N0ID0gcGVyZm9ybWFuY2Uubm93KCkgLSBpbml0VHM7CiAgICB9CiAgICB0aGlzLnNlbGYucG9zdE1lc3NhZ2UoeyBtc2c6ICdERUNPREVSX1JFQURZJywgY29zdCB9KTsKICB9OwoKICBEZWNvZGVyLnByb3RvdHlwZS5kZWNvZGUgPSBmdW5jdGlvbiAoZGF0YSwgaW5mbykgewogICAgbGV0IHRpbWUgPSBwYXJzZUludChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICBsZXQgaW5mb2lkID0gdGltZSAtIE1hdGguZmxvb3IodGltZSAvIDEwZTgpICogMTBlODsKICAgIHRoaXMuaW5mb2xpc3QucHVzaChpbmZvKTsKICAgIGlmIChpbmZvICYmIGluZm8ua2V5ZnJhbWUpIHsKICAgICAgdGhpcy5pbmZvbGlzdCA9IFtpbmZvXTsKICAgICAgTW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKGluZm9pZCk7CiAgICB9CiAgICBNb2R1bGUuSEVBUFU4LnNldChkYXRhLCB0aGlzLm9mZnNldCk7CiAgICBNb2R1bGUuX2Jyb2Fkd2F5UGxheVN0cmVhbShkYXRhLmxlbmd0aCwgdGhpcy5pbmZvSWQpOwogIH07CgogIERlY29kZXIucHJvdG90eXBlLmZsdXNoID0gZnVuY3Rpb24gKCkgewogICAgTW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKCk7CiAgfTsKCiAgRGVjb2Rlci5wcm90b3R5cGUuZGVzdHJveSA9IGZ1bmN0aW9uICgpIHsKICAgIE1vZHVsZS5fYnJvYWR3YXlFeGl0KCk7CiAgfTsKCiAgRGVjb2Rlci5wcm90b3R5cGUudXBkYXRlTWV0YSA9IGZ1bmN0aW9uIChtZXRhKSB7CiAgICB0aGlzLm1ldGEgPSBtZXRhOwogIH07CgogIHZhciBkZWNvZGVyOwoKICBmdW5jdGlvbiBvblBvc3RSdW4gKCkgewogICAgZGVjb2RlciA9IG5ldyBEZWNvZGVyKHRoaXMpOwogICAgZGVjb2Rlci5pbml0KCk7CiAgfQoKICB2YXIgV0FTTV9DRE5fUEFUSF9QUkVGSVggPSAnJzsKCiAgZnVuY3Rpb24gaW5pdCAodXJsKSB7CiAgICBXQVNNX0NETl9QQVRIX1BSRUZJWCA9IHVybC5zcGxpdCgnLycpLnNsaWNlKDAsIC0xKS5qb2luKCcvJyk7CiAgICBpbml0VHMgPSBwZXJmb3JtYW5jZS5ub3coKTsKICAgIHZhciBpc0RlZ3JhZGUgPSAvYXNtLy50ZXN0KHVybCk7CiAgICBpZiAoIWRlY29kZXIpIHsKICAgICAgdmFyIHRhc2s7CgogICAgICBpZiAoIXNlbGYuaW1wb3J0U2NyaXB0cykgewogICAgICAgIHRhc2sgPSBzaGltSW1wb3J0U2NyaXB0cyh1cmwpOwogICAgICB9IGVsc2UgewogICAgICAgIHRhc2sgPSBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7CiAgICAgICAgICBpZiAoIXNlbGYuY29uc29sZSkgewogICAgICAgICAgICBzZWxmLmNvbnNvbGUgPSB7CiAgICAgICAgICAgICAgbG9nOiBmdW5jdGlvbiAoKSB7fSwKICAgICAgICAgICAgICB3YXJuOiBmdW5jdGlvbiAoKSB7fSwKICAgICAgICAgICAgICBpbmZvOiBmdW5jdGlvbiAoKSB7fSwKICAgICAgICAgICAgICBlcnJvcjogZnVuY3Rpb24gKCkge30KICAgICAgICAgICAgfTsKICAgICAgICAgIH0KICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgIHNlbGYuaW1wb3J0U2NyaXB0cyh1cmwpOwogICAgICAgICAgICByZXNvbHZlKCk7CiAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJlamVjdChlKTsKICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgfQoKICAgICAgdGFzawogICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHsKICAgICAgICAgIGlmIChpc0RlZ3JhZGUpIHsKICAgICAgICAgICAgY29uc29sZS5sb2coJ2F1dG8gaW5zdGFuY2UgRGVjb2RlciEnKTsKICAgICAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uIChyZXNvbHZlLCByZWplY3QpIHsKICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICAgIG9uUG9zdFJ1bi5jYWxsKHNlbGYpOwogICAgICAgICAgICAgICAgICByZXNvbHZlKCk7CiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICAgIHJlamVjdChlKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSkKICAgICAgICAgIH0KCiAgICAgICAgICBpZiAoc2VsZi5tKSB7CiAgICAgICAgICAgIHJldHVybiBzZWxmCiAgICAgICAgICAgICAgLm0oewogICAgICAgICAgICAgICAgaW5zdGFudGlhdGVXYXNtOiBmdW5jdGlvbiAoaW5mbywgcmVjZWl2ZUluc3RhbmNlKSB7CiAgICAgICAgICAgICAgICAgIGZldGNoKGAke1dBU01fQ0ROX1BBVEhfUFJFRklYfS9kZWNvZGVyLndhc20uanNgKQogICAgICAgICAgICAgICAgICAgIC50aGVuKHJlcyA9PiByZXMuYXJyYXlCdWZmZXIoKSkKICAgICAgICAgICAgICAgICAgICAudGhlbihidWZmZXIgPT4gewogICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFdlYkFzc2VtYmx5Lmluc3RhbnRpYXRlKGJ1ZmZlciwgaW5mbykKICAgICAgICAgICAgICAgICAgICB9KQogICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uIChyZXN1bHQpIHsKICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByZWNlaXZlSW5zdGFuY2UocmVzdWx0Lmluc3RhbmNlKQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0pCiAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKE1vZCkgewogICAgICAgICAgICAgICAgc2VsZi5Nb2R1bGUgPSBNb2Q7CiAgICAgICAgICAgICAgICBvblBvc3RSdW4uY2FsbChzZWxmKTsKICAgICAgICAgICAgICB9KQogICAgICAgICAgfQoKICAgICAgICAgIHJldHVybiBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7CiAgICAgICAgICAgIGFkZE9uUG9zdFJ1bihvblBvc3RSdW4uYmluZChzZWxmKSk7CgogICAgICAgICAgICBNb2R1bGUub25SdW50aW1lSW5pdGlhbGl6ZWQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgcmVzb2x2ZSgpOwogICAgICAgICAgICB9OwoKICAgICAgICAgICAgTW9kdWxlLm9uQWJvcnQgPSBmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgIHJlamVjdChlICYmIGUubWVzc2FnZSA/IGUgOiBuZXcgRXJyb3IoJ3dhc20gaW5pdCBlcnJvcicpKTsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgIHJlamVjdChuZXcgRXJyb3IoJ3dhc20gbG9hZCB0aW1lb3V0JykpOwogICAgICAgICAgICB9LCA2MDAwKTsKICAgICAgICAgIH0pCiAgICAgICAgfSkKICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGUpIHsKICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICAgICAgICBtc2c6ICdJTklUX0ZBSUxFRCcsCiAgICAgICAgICAgIGxvZzogZS5tZXNzYWdlCiAgICAgICAgICB9KTsKICAgICAgICB9KTsKICAgIH0KICB9CgogIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgIHZhciBkYXRhID0gZS5kYXRhOwogICAgaWYgKCFkYXRhLm1zZykgewogICAgICBzZWxmLnBvc3RNZXNzYWdlKHsKICAgICAgICBtc2c6ICdFUlJPUjppbnZhbGlkIG1lc3NhZ2UnCiAgICAgIH0pOwogICAgfSBlbHNlIHsKICAgICAgaWYgKGRhdGEubXNnICE9PSAnaW5pdCcgJiYgZGF0YS5tc2cgIT09ICdwcmVsb2FkJyAmJiAhZGVjb2RlcikgcmV0dXJuCiAgICAgIHN3aXRjaCAoZGF0YS5tc2cpIHsKICAgICAgICBjYXNlICdwcmVsb2FkJzoKICAgICAgICAgIGluaXQoZGF0YS51cmwpOwogICAgICAgICAgYnJlYWsKICAgICAgICBjYXNlICdpbml0JzoKICAgICAgICAgIHNlbGYubWV0YSA9IGRhdGEubWV0YTsKICAgICAgICAgIGluaXQoZGF0YS51cmwpOwogICAgICAgICAgYnJlYWsKICAgICAgICBjYXNlICd1cGRhdGVtZXRhJzoKICAgICAgICAgIHNlbGYubWV0YSA9IGRhdGEubWV0YTsKICAgICAgICAgIGRlY29kZXIudXBkYXRlTWV0YShkYXRhLm1ldGEpOwogICAgICAgICAgYnJlYWsKICAgICAgICBjYXNlICdpbml0RGVjb2Rlcic6CiAgICAgICAgICBkZWNvZGVyLmRlY29kZShkYXRhLmRhdGEpOwogICAgICAgICAgYnJlYWsKICAgICAgICBjYXNlICdkZWNvZGUnOgogICAgICAgICAgZGVjb2Rlci5kZWNvZGUoZGF0YS5kYXRhLCBkYXRhLmluZm8pOwogICAgICAgICAgYnJlYWsKICAgICAgICBjYXNlICdmbHVzaCc6CiAgICAgICAgICBkZWNvZGVyLmZsdXNoKCk7CiAgICAgICAgICBicmVhawogICAgICAgIGNhc2UgJ2ZpbmlzaF9mbGFnJzoKICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICAgICAgICBtc2c6ICdCQVRDSF9GSU5JU0hfRkxBRycKICAgICAgICAgIH0pOwogICAgICAgICAgYnJlYWsKICAgICAgICBjYXNlICdkZXN0b3J5JzoKICAgICAgICAgIGRlY29kZXIuZGVzdHJveSgpOwogICAgICAgICAgYnJlYWsKICAgICAgfQogICAgfQogIH07Cgp9KCkpOwoK",null,!1)},636692:function(t,n,i){"use strict";i.d(n,{Z:function(){return p}}),i(149336);var o=i(315355),a=i(919209),s=i(732905),c=i(625813),u=i(278997),l=i(508881),d=i(272787);i(663030),i(9498);var f=i(942155),A=i.n(f),h=i(874668),g=i(597931),p=function(t){(0,c.Z)(A,t);var n,i,f=(n=A,i=function(){if("undefined"==typeof Reflect||!Reflect.construct||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(){var t,o=(0,l.Z)(n);return t=i?Reflect.construct(o,arguments,(0,l.Z)(this).constructor):o.apply(this,arguments),(0,u.Z)(this,t)});function A(t){var n;return(0,o.Z)(this,A),n=f.call(this),(0,d.Z)((0,s.Z)(n),"_parent",null),(0,d.Z)((0,s.Z)(n),"_decoderReady",!1),(0,d.Z)((0,s.Z)(n),"_inDecoding",!1),(0,d.Z)((0,s.Z)(n),"_toDecodeFirstframe",!0),(0,d.Z)((0,s.Z)(n),"_id",new Date().getMilliseconds()),(0,d.Z)((0,s.Z)(n),"_workerErrorCallback",null),(0,d.Z)((0,s.Z)(n),"_workerMessageCallback",null),(0,d.Z)((0,s.Z)(n),"_decoderWorker",null),n._parent=t,n}return(0,a.Z)(A,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"inDecoding",get:function(){return this._inDecoding}},{key:"decoderMode",get:function(){return this._decoderMode}},{key:"decoderReady",get:function(){return this._decoderReady}},{key:"needToDecode",get:function(){return this._inDecoding?0:this._continueDecodeThreshold}},{key:"maxDecodeOnce",get:function(){return this._maxDecodeOnce}},{key:"meta",get:function(){var t;return null===(t=this._parent)||void 0===t?void 0:t._meta},set:function(t){this._parent&&(this._parent._meta=t)}},{key:"init",value:function(t,n){this._workerMessageCallback=t,this._workerErrorCallback=n,this._initWorker()}},{key:"_initWorker",value:function(){throw Error("need override by children")}},{key:"checkToDecode",value:function(t){if(this.webcodec){t<=this.needToDecode&&this.doDecode();return}!this._inDecoding&&t<=this.needToDecode&&this.doDecode()}},{key:"doDecode",value:function(){var t=this,n=this._getFramesToDecode();n&&n.length&&this.meta&&(this._toDecodeFirstframe&&(this._toDecodeFirstframe=!1,this.analyse.addFirstFrameToDecode()),!this._avccpushed&&this._initDecoderWithConfiguration(this._decoderWorker,this.meta),g.kg.enable&&g.kg.log(this.TAG,"doDecode ".concat(n.length," frames")),n.forEach(function(n){t._doDecodeInternal(n)}),this._inDecoding=!0,this._decoderWorker.postMessage({msg:"finish_flag"}))}},{key:"preciseSeek",value:function(t){var n,i,o,a,s=this,c=null===(n=this._parent)||void 0===n?void 0:null===(i=n._timeRange)||void 0===i?void 0:i.getFramesForPreciseSeek(1e3*t),u=c.length;if(u<this.maxDecodeOnce){this.doDecode();return}null===(o=this._parent)||void 0===o||null===(a=o._timeRange)||void 0===a||a.updateFrameIndexForPreciseSeek(u),g.kg.enable&&g.kg.log(this.TAG,"doDecode ".concat(c.length," frames for precise seek")),c.forEach(function(t,n){s._doDecodeInternal(t,!0,n>=u-6)}),this._inDecoding=!0,this._decoderWorker.postMessage({msg:"finish_flag"})}},{key:"_getFramesToDecode",value:function(){var t=this._parent,n=t._timeRange,i=t._decodeEstimate;if(!!this._decoderReady&&!!n){var o=n.frameLength;if(o){var a=this._toDecodeFirstframe?(0,h.tT)().maxDecodeOnceFirstTime:this.maxDecodeOnce;1===o&&i.resetDecodeDot(performance.now());for(var s=[];a>0;){var c=n&&n.getFrame();if(!c)break;s.push(c),c.gopId&&c.gopId-1==0&&i.updateGopCount(),a--}return s}}}},{key:"_doDecodeInternal",value:function(t,n,i){null!=t&&t.meta&&(this.meta=t.meta,g.kg.warn(this.TAG,"detect metadata! flush decoder"),this._initDecoderWithConfiguration(this.__decoderWorker,t.meta));var o={dts:t.dts,pts:t.pts||t.dts+t.cts,keyframe:t.keyframe,gopId:t.gopId,id:this._id};n&&(o.preciseSeek=!0,o.output=i);var a=t.data.slice();this._decoderWorker.postMessage({msg:"decode",data:a,info:o},[a.buffer])}},{key:"_initDecoderWithConfiguration",value:function(){throw Error("need override by children")}},{key:"flushDecoder",value:function(){this._decoderWorker.postMessage({msg:"flush"})}},{key:"destroy",value:function(){throw Error("need override by children")}}]),A}(A())},845905:function(t,n,i){"use strict";i.d(n,{Z:function(){return v}}),i(149336);var o=i(315355),a=i(919209),s=i(732905),c=i(625813),u=i(278997),l=i(508881),d=i(272787);i(346984);var f=i(636692),A=i(284771),h=i(597931),g=i(874668),p=(0,g.tT)().maxDecodeOnceWebcodec,v=function(t){(0,c.Z)(v,t);var n,i,f=(n=v,i=function(){if("undefined"==typeof Reflect||!Reflect.construct||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(){var t,o=(0,l.Z)(n);return t=i?Reflect.construct(o,arguments,(0,l.Z)(this).constructor):o.apply(this,arguments),(0,u.Z)(this,t)});function v(){var t;(0,o.Z)(this,v);for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return t=f.call.apply(f,[this].concat(i)),(0,d.Z)((0,s.Z)(t),"TAG","WebCodecController"),(0,d.Z)((0,s.Z)(t),"_decoderMode",5),(0,d.Z)((0,s.Z)(t),"_maxDecodeOnce",p),(0,d.Z)((0,s.Z)(t),"_continueDecodeThreshold",p/2),(0,d.Z)((0,s.Z)(t),"_avccpushed",!1),t}return(0,a.Z)(v,[{key:"webcodec",get:function(){return!0}},{key:"needToDecode",get:function(){return this._inDecoding?(this._checkToDecode(),0):this._continueDecodeThreshold}},{key:"_initWorker",value:function(){var t=this;h.kg.log(this.TAG,"start init webcodec worker");var n=new A.Z;n.onMessage=function(n){var i,o;switch(n.data.type){case"DECODER_READY":h.kg.log(t.TAG,"webcodec worker ready "),t._decoderReady=!0,t._workerMessageCallback({type:"DECODER_READY"});break;case"DECODED":if(t._inDecoding=!0,(null===(i=n.data)||void 0===i?void 0:null===(o=i.info)||void 0===o?void 0:o.id)!==t._id)return;t._workerMessageCallback({type:"RECEIVE_FRAME",data:n.data});break;case"BATCH_FINISH_FLAG":if(t._inDecoding=!1,!t._workerMessageCallback)return;t._workerMessageCallback({type:"BATCH_FINISH"});break;case"CHECK_TO_DECODE":t._inDecoding=n.data.data;break;case"FAILED":t._whenError(n.data.message)}},n.onError=function(n){var i,o,a=null===(i=t._parent)||void 0===i?void 0:null===(o=i._parent)||void 0===o?void 0:o._parent;a&&a.removeChild(a.querySelector("canvas")),t._whenError(n.message)},n.addEventListener("message",n.onMessage),n.addEventListener("error",n.onError),this._decoderWorker=n,this._initDecoderWithConfiguration(n,this._parent.configuration)}},{key:"_whenError",value:function(t){v.canUse=!1,this._workerErrorCallback(t)}},{key:"_initDecoderWithConfiguration",value:function(t,n){t.postMessage({msg:"configuration",data:{codec:this._parent._meta.codec,codedHeight:this._parent._meta.height,codedWidth:this._parent._meta.width,description:n}}),this._avccpushed=!0}},{key:"_checkToDecode",value:function(){this._decoderWorker.postMessage({msg:"checkDecode"})}},{key:"destroy",value:function(){var t=this._decoderWorker;t.removeEventListener("message",t.onMessage),t.removeEventListener("error",t.onError),t.postMessage({msg:"destroy"}),t.terminate(),this._decoderWorker=null}}],[{key:"isSupported",value:function(){return(0,g.tT)().h264WithWebcodec&&!!window.VideoDecoder&&!1!==v.canUse}}]),v}(f.Z)},155363:function(t,n,i){"use strict";i.d(n,{DO:function(){return h},Dd:function(){return g},HQ:function(){return d},J2:function(){return v},Vw:function(){return A},X2:function(){return l},mt:function(){return p},u$:function(){return f}}),i(232070);var o=i(874668),a=0,s=0,c=0,u=!1;function l(){a++}function d(){return a}function f(){s++}function A(){return s}function h(t){try{localStorage.setItem("xgv_dis",t),(2===t||3===t)&&localStorage.setItem("xgv_dist",new Date().getTime())}catch(t){}}function g(){u=!0}function p(){if(!0===(!!u||0!==(0,o.tT)().evaluateVVCount&&(a>=(0,o.tT)().evaluateVVCount&&(c=s/a,a=0,s=0),c>=(0,o.tT)().disabledByLowdecodePrecent&&(u=!0),u)))return!0;try{var t=localStorage.getItem("xgv_dis");if(!t)return!1;if("1"===t)return!0;if("2"===t){var n=localStorage.getItem("xgv_dist")||0;if(n=Number(n),(new Date().getTime()-n)/1e3<(0,o.tT)().disabledDuration)return!0;v()}if("3"===t){var i=localStorage.getItem("xgv_dist")||0;if(i=Number(i),(new Date().getTime()-i)/1e3<(0,o.tT)().longDisabledDuration)return!0;v()}}catch(t){}}function v(){localStorage.removeItem("xgv_dist"),localStorage.removeItem("xgv_dis")}},484777:function(t,n,i){"use strict";i.d(n,{Z:function(){return u}});var o=i(315355),a=i(919209);i(759943),i(683656),i(228983),i(248385),i(679308);var s=function(){return"undefined"!=typeof navigator&&10>parseFloat((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))&&!window.MSStream},c=function(){return"wakeLock"in navigator},u=function(){function t(){var n=this;(0,o.Z)(this,t),this.enabled=!1,c()?(this._wakeLock=null,this.handleVisibilityChange=function(){null!==n._wakeLock&&n.visible&&n.enable()},document.addEventListener("visibilitychange",this.handleVisibilityChange),document.addEventListener("fullscreenchange",this.handleVisibilityChange)):s()?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"mp4","data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"),this._addSourceToVideo(this.noSleepVideo,"webm","data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK"),this.noSleepVideo.addEventListener("loadedmetadata",function(){n.noSleepVideo&&(n.noSleepVideo.duration<=1?n.noSleepVideo.setAttribute("loop",""):(n.onTimeupdate=function(){n.noSleepVideo.currentTime>.5&&(n.noSleepVideo.currentTime=Math.random())},n.noSleepVideo.addEventListener("timeupdate",n.onTimeupdate)))}))}return(0,a.Z)(t,[{key:"_addSourceToVideo",value:function(t,n,i){var o=document.createElement("source");o.src=i,o.type="video/".concat(n),t.appendChild(o)}},{key:"visible",get:function(){return"visible"===document.visibilityState}},{key:"isEnabled",get:function(){return this.enabled}},{key:"enable",value:function(){var t=this;if(c()&&this.visible)return navigator.wakeLock.request("screen").then(function(n){t._wakeLock=n,t.enabled=!0,t._wakeLock.addEventListener("release",function(){})}).catch(function(){t.enabled=!1});if(s())return this.disable(),this.noSleepTimer=window.setInterval(function(){!document.hidden&&(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3),this.enabled=!0,Promise.resolve();if(!!(null!==(n=this.noSleepVideo)&&void 0!==n&&n.paused)){var n,i=this.noSleepVideo.play();return i&&i.then(function(n){return t.enabled=!0,n}).catch(function(n){t.enabled=!1})}}},{key:"disable",value:function(){c()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):s()?this.noSleepTimer&&(window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}},{key:"toPlay",value:function(){if(!!this.noSleepVideo){if(this.noSleepVideo.paused){var t=performance.now();!this.lastTs&&(this.lastTs=t),t-this.lastTs>1e4&&(this.enable(),this.lastTs=t)}}}},{key:"destroy",value:function(){this.disable(),this.handleVisibilityChange&&(document.removeEventListener("visibilitychange",this.handleVisibilityChange),document.removeEventListener("fullscreenchange",this.handleVisibilityChange)),this.onTimeupdate&&this.noSleepVideo.removeEventListener("timeupdate",this.onTimeupdate),this.noSleepVideo=null,this.handleVisibilityChange=null}}]),t}()},574911:function(t,n,i){"use strict";i.d(n,{Z:function(){return u.Z}}),i(149336);var o=i(315355),a=i(625813),s=i(278997),c=i(508881),u=i(894382),l=i(874668);u.Z.init({h264Url:"https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/decoder/1.1.1/h264/decoder.js",h264AsmUrl:"https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/decoder/1.1.1/h264/decoder_asm.js",h265Url:"https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/base/decoder.js",h265SimdUrl:"https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/high/decoder_1656041798666.js",h265ThreadUrl:"https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/main/decoder.js",h265AsmUrl:"https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/high/decoder_asm.js"}),u.Z.setEleName=function(t){(0,l.HX)(t);var n=function(t){(0,a.Z)(l,t);var n,i,u=(n=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct||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(){var t,o=(0,c.Z)(n);return t=i?Reflect.construct(o,arguments,(0,c.Z)(this).constructor):o.apply(this,arguments),(0,s.Z)(this,t)});function l(){return(0,o.Z)(this,l),u.apply(this,arguments)}return l}(u.Z);"undefined"!=typeof customElements&&(customElements.get((0,l.mv)())||customElements.define((0,l.mv)(),n))};try{"undefined"!=typeof customElements&&(customElements.get((0,l.mv)())||customElements.define((0,l.mv)(),u.Z))}catch(t){}},383943:function(t,n,i){"use strict";i.d(n,{Z:function(){return A}}),i(149336);var o=i(315355),a=i(919209),s=i(625813),c=i(278997),u=i(508881),l=i(942155),d=i.n(l),f=i(534611),A=function(t){(0,s.Z)(d,t);var n,i,l=(n=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct||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(){var t,o=(0,u.Z)(n);return t=i?Reflect.construct(o,arguments,(0,u.Z)(this).constructor):o.apply(this,arguments),(0,c.Z)(this,t)});function d(t,n){var i;return(0,o.Z)(this,d),(i=l.call(this))._config=t,i._parent=n,i._meta=null,i._ready=!1,i._isLive=!0,i._innerDegrade=!1,i._singleTrack=-1,i}return(0,a.Z)(d,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"isLive",get:function(){return this._isLive}},{key:"innerDegrade",get:function(){return this._innerDegrade}},{key:"noAudio",get:function(){return 1===this._singleTrack||2===this._singleTrack}},{key:"noVideo",get:function(){return 3===this._singleTrack}},{key:"duration",get:function(){return this._timeRange.duration},set:function(t){this._timeRange&&(this._timeRange.duration=t)}},{key:"_bindEvents",value:function(){var t=this;this._parent.on(f.ZP.TIMELINE.APPEND_CHUNKS,this._appendChunk.bind(this)),this._parent.on(f.ZP.TIMELINE.RESET_BASE_DTS,this._resetDts.bind(this)),this._parent.on(f.ZP.TIMELINE.START_RENDER,this._startRender.bind(this)),this._parent.on(f.ZP.TIMELINE.DO_PLAY,this._doPlay.bind(this)),this._parent.on(f.ZP.TIMELINE.DO_PAUSE,this._doPause.bind(this)),this._parent.on(f.ZP.TIMELINE.DO_SEEK,this._doSeek.bind(this)),this._parent.on(f.ZP.TIMELINE.DESTROY,this._destroy.bind(this)),this._parent.on(f.ZP.TIMELINE.CHASE_FRAME,this._doChaseFrame.bind(this)),this._parent.on(f.ZP.TIMELINE.SINGLE_TRACK,function(n){t._singleTrack=n}),this._parent.on(f.ZP.TIMELINE.SET_PLAY_MODE,function(n){t._isLive="LIVE"===n}),this._parent.on(f.ZP.TIMELINE.INNER_DEGRADE,function(){t._innerDegrade=!0}),this._parent.on(f.ZP.TIMELINE.SET_VIDEO_DURATION,function(n){t.duration=n})}}]),d}(d())},944693:function(t,n,i){"use strict";i.d(n,{Z:function(){return c}}),i(124300),i(248385),i(832674),i(905442),i(446336),i(808483),i(840938),i(118438),i(325598),i(92999),i(611067),i(273723),i(724016),i(803903),i(214604),i(901250),i(755006),i(437048),i(488336),i(825666),i(177162),i(286633),i(943281),i(810658),i(82726),i(224727),i(705574);var o=[-5504,-5248,-6016,-5760,-4480,-4224,-4992,-4736,-7552,-7296,-8064,-7808,-6528,-6272,-7040,-6784,-2752,-2624,-3008,-2880,-2240,-2112,-2496,-2368,-3776,-3648,-4032,-3904,-3264,-3136,-3520,-3392,-22016,-20992,-24064,-23040,-17920,-16896,-19968,-18944,-30208,-29184,-32256,-31232,-26112,-25088,-28160,-27136,-11008,-10496,-12032,-11520,-8960,-8448,-9984,-9472,-15104,-14592,-16128,-15616,-13056,-12544,-14080,-13568,-344,-328,-376,-360,-280,-264,-312,-296,-472,-456,-504,-488,-408,-392,-440,-424,-88,-72,-120,-104,-24,-8,-56,-40,-216,-200,-248,-232,-152,-136,-184,-168,-1376,-1312,-1504,-1440,-1120,-1056,-1248,-1184,-1888,-1824,-2016,-1952,-1632,-1568,-1760,-1696,-688,-656,-752,-720,-560,-528,-624,-592,-944,-912,-1008,-976,-816,-784,-880,-848,5504,5248,6016,5760,4480,4224,4992,4736,7552,7296,8064,7808,6528,6272,7040,6784,2752,2624,3008,2880,2240,2112,2496,2368,3776,3648,4032,3904,3264,3136,3520,3392,22016,20992,24064,23040,17920,16896,19968,18944,30208,29184,32256,31232,26112,25088,28160,27136,11008,10496,12032,11520,8960,8448,9984,9472,15104,14592,16128,15616,13056,12544,14080,13568,344,328,376,360,280,264,312,296,472,456,504,488,408,392,440,424,88,72,120,104,24,8,56,40,216,200,248,232,152,136,184,168,1376,1312,1504,1440,1120,1056,1248,1184,1888,1824,2016,1952,1632,1568,1760,1696,688,656,752,720,560,528,624,592,944,912,1008,976,816,784,880,848],a=[-32124,-31100,-30076,-29052,-28028,-27004,-25980,-24956,-23932,-22908,-21884,-20860,-19836,-18812,-17788,-16764,-15996,-15484,-14972,-14460,-13948,-13436,-12924,-12412,-11900,-11388,-10876,-10364,-9852,-9340,-8828,-8316,-7932,-7676,-7420,-7164,-6908,-6652,-6396,-6140,-5884,-5628,-5372,-5116,-4860,-4604,-4348,-4092,-3900,-3772,-3644,-3516,-3388,-3260,-3132,-3004,-2876,-2748,-2620,-2492,-2364,-2236,-2108,-1980,-1884,-1820,-1756,-1692,-1628,-1564,-1500,-1436,-1372,-1308,-1244,-1180,-1116,-1052,-988,-924,-876,-844,-812,-780,-748,-716,-684,-652,-620,-588,-556,-524,-492,-460,-428,-396,-372,-356,-340,-324,-308,-292,-276,-260,-244,-228,-212,-196,-180,-164,-148,-132,-120,-112,-104,-96,-88,-80,-72,-64,-56,-48,-40,-32,-24,-16,-8,0,32124,31100,30076,29052,28028,27004,25980,24956,23932,22908,21884,20860,19836,18812,17788,16764,15996,15484,14972,14460,13948,13436,12924,12412,11900,11388,10876,10364,9852,9340,8828,8316,7932,7676,7420,7164,6908,6652,6396,6140,5884,5628,5372,5116,4860,4604,4348,4092,3900,3772,3644,3516,3388,3260,3132,3004,2876,2748,2620,2492,2364,2236,2108,1980,1884,1820,1756,1692,1628,1564,1500,1436,1372,1308,1244,1180,1116,1052,988,924,876,844,812,780,748,716,684,652,620,588,556,524,492,460,428,396,372,356,340,324,308,292,276,260,244,228,212,196,180,164,148,132,120,112,104,96,88,80,72,64,56,48,40,32,24,16,8,0],s=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]),c={decodeG711:function(t,n){if("g7110a"===n)return function(t){for(var n=new Uint8Array(2*t.length),i=0,a=0;i<t.length;){var s=o[t[i]];if(void 0===s)throw Error("can not decode g711 alaw data!");n[a]=255&s,n[a+1]=s>>8,i+=1,a+=2}return n}(t);if("g7110m"===n)return function(t){for(var n=new Uint8Array(2*t.length),i=0,o=0;i<t.length;){var s=a[t[i]];if(void 0===s)throw Error("can not decode g711 ulaw data!");n[o]=255&s,n[o+1]=s>>8,i+=1,o+=2}return n}(t);throw Error("no supported format=".concat(n," for g711"))},createAudioBufferFromPcm:function(t,n,i,o,a){for(var s=(d=n.byteLength,d/i/a),c=t.createBuffer(i,s,o),u=new DataView(n),l=0;l<i;l++){for(var d,f,A=c.getChannelData(l),h=void 0,g=0;g<s;g++){;h=u.getUint16(2*i*g+2*l,!0),A[g]=(f=h)>=32768?-(65536-f)/32768:f/32767}}return{audioBuffer:c,duration:s/o}},packageAACToAdts:function(t,n){var i,o,a,s,c,u,l,d,f,A=new Uint8Array(n.data.byteLength+7);var h=(i=t,o=n.data,a=i.sampleRateIndex,s=i.channelCount,c=i.config,u=a,a=(l=(7&c[0])<<1|c[1]>>>7)!==u?l:u,(d=new Uint8Array(7))[0]=255,d[1]=240,d[1]=1|d[1],d[2]=64,d[2]=d[2]|60&a<<2,d[2]=d[2]|1&s>>2,d[3]=192&s<<6,f=o.byteLength+7,d[3]=d[3]|3&f>>11,d[4]=255&f>>3,d[5]=224&f<<5,d[5]=31|d[5],d[6]=252,d);return A.set(h),A.set(n.data,7),A},concatAdts:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0,o=0,a=t.length;o<a;o++){if(!n||o%n!=0)i+=t[o].byteLength}for(var s=new Uint8Array(i),c=0,u=0,l=t.length;u<l;u++){if(!n||u%n!=0)s.set(t[u],c),c+=t[u].byteLength}return s},checkRefillFrame:function(t){var n=t[0].dts,i=t.filter(function(t){return t.dts===n}).length;if(!(i<=1))for(var o=0;o<i;o++)t[o].data=s}}},264288:function(t,n,i){"use strict";i.d(n,{c:function(){return a}});var o=i(548814),a=(0,o.qH)(function t(n,i){(0,o.PA)(this,t),this.type="file",this.message=n,this.data=i})},791823:function(t,n,i){"use strict";i.d(n,{l:function(){return s}});var o=i(315355),a=i(919209);i(248385);var s=function(){function t(){(0,o.Z)(this,t)}return(0,a.Z)(t,null,[{key:"start",value:function(t){return!t||!t.length||1===t.length&&t.end(0)-t.start(0)<1e-6||1===t.length&&0>t.start(0)?0:t.start(0)}},{key:"end",value:function(t){return!t||!t.length||1===t.length&&t.end(0)-t.start(0)<1e-6?0:t.end(t.length-1)}},{key:"get",value:function(t){if(t)try{return t.buffered}catch(t){}}},{key:"buffers",value:function(t,n){if(!t||!t.length)return[];for(var i=[],o=0,a=t.length;o<a;o++){var s=i.length;if(s&&n){var c=i[s-1],u=c[1];if(t.start(o)-u<=n){var l=t.end(o);l>u&&(c[1]=l)}else i.push([t.start(o),t.end(o)])}else i.push([t.start(o),t.end(o)])}return i}},{key:"length",value:function(t){return t&&t.length?t.reduce(function(t,n){return t+(n[1]-n[0])},0):0}},{key:"info",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n||!n.length)return{start:0,end:0,buffers:[]};for(var a=0,s=0,c=0,u=0,l=0,d=0,f=0,A=t.buffers(n,o),h=0,g=A.length;h<g;h++){var p=A[h];if(i+o>=p[0]&&i<p[1])a=p[0],s=p[1],c=h;else if(i+o<p[0]){u=p[0],l=p[1];break}else i+o>p[1]&&(d=p[0],f=p[1])}return{start:a,end:s,index:c,buffers:A,nextStart:u,nextEnd:l,prevStart:d,prevEnd:f,currentTime:i,behind:i-a,remaining:s?s-i:0,length:t.length&&t.length(A)}}}]),t}()},182432:function(t,n,i){"use strict";function o(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}function a(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?o(Object(i),!0).forEach(function(n){h(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function s(){s=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,n,i){t[n]=i.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(t,n,i){return Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{d({},"")}catch(t){d=function(t,n,i){return t[n]=i}}function f(t,n,i,a){var s=Object.create((n&&n.prototype instanceof g?n:g).prototype);return o(s,"_invoke",{value:function(t,n,i){var o="suspendedStart";return function(a,s){if("executing"===o)throw Error("Generator is already running");if("completed"===o){if("throw"===a)throw s;return R()}for(i.method=a,i.arg=s;;){var c=i.delegate;if(c){var u=function t(n,i){var o=i.method,a=n.iterator[o];if(void 0===a)return i.delegate=null,"throw"===o&&n.iterator.return&&(i.method="return",i.arg=void 0,t(n,i),"throw"===i.method)||"return"!==o&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+o+"' method")),h;var s=A(a,n.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,h;var c=s.arg;return c?c.done?(i[n.resultName]=c.value,i.next=n.nextLoc,"return"!==i.method&&(i.method="next",i.arg=void 0),i.delegate=null,h):c:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,h)}(c,i);if(u){if(u===h)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var l=A(t,n,i);if("normal"===l.type){if(o=i.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o="completed",i.method="throw",i.arg=l.arg)}}}(t,i,new E(a||[]))}),s}function A(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function g(){}function p(){}function v(){}var y={};d(y,c,function(){return this});var m=Object.getPrototypeOf,_=m&&m(m(S([])));_&&_!==n&&i.call(_,c)&&(y=_);var I=v.prototype=g.prototype=Object.create(y);function b(t){["next","throw","return"].forEach(function(n){d(t,n,function(t){return this._invoke(n,t)})})}function C(t,n){var a;o(this,"_invoke",{value:function(o,s){function c(){return new n(function(a,c){!function o(a,s,c,u){var l=A(t[a],t,s);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==typeof f&&i.call(f,"__await")?n.resolve(f.__await).then(function(t){o("next",t,c,u)},function(t){o("throw",t,c,u)}):n.resolve(f).then(function(t){d.value=t,c(d)},function(t){return o("throw",t,c,u)})}u(l.arg)}(o,s,a,c)})}return a=a?a.then(c,c):c()}})}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function w(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=void 0,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:void 0,done:!0}}return p.prototype=v,o(I,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===p||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,d(t,l,"GeneratorFunction")),t.prototype=Object.create(I),t},t.awrap=function(t){return{__await:t}},b(C.prototype),d(C.prototype,u,function(){return this}),t.AsyncIterator=C,t.async=function(n,i,o,a,s){void 0===s&&(s=Promise);var c=new C(f(n,i,o,a),s);return t.isGeneratorFunction(i)?c:c.next().then(function(t){return t.done?t.value:c.next()})},b(I),d(I,l,"Generator"),d(I,c,function(){return this}),d(I,"toString",function(){return"[object Generator]"}),t.keys=function(t){var n=Object(t),i=[];for(var o in n)i.push(o);return i.reverse(),function t(){for(;i.length;){var o=i.pop();if(o in n)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,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 n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(i,o){return c.type="throw",c.arg=t,n.next=i,o&&(n.method="next",n.arg=void 0),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],c=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(u&&l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,n){for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=n&&n<=s.finallyLoc&&(s=null);var c=s?s.completion:{};return c.type=t,c.arg=n,s?(this.method="next",this.next=s.finallyLoc,h):this.complete(c)},complete:function(t,n){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&&n&&(this.next=n),h},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),w(i),h}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var a=o.arg;w(i)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:S(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=void 0),h}},t}function c(t){return(c="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 u(t,n,i,o,a,s,c){try{var u=t[s](c),l=u.value}catch(t){i(t);return}u.done?n(l):Promise.resolve(l).then(o,a)}function l(t){return function(){var n=this,i=arguments;return new Promise(function(o,a){var s=t.apply(n,i);function c(t){u(s,o,a,c,l,"next",t)}function l(t){u(s,o,a,c,l,"throw",t)}c(void 0)})}}function d(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function f(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,S(o.key),o)}}function A(t,n,i){return n&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,n,i){return(n=S(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function g(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&v(t,n)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function y(){if("undefined"==typeof Reflect||!Reflect.construct||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 m(t,n,i){return(m=y()?Reflect.construct.bind():function(t,n,i){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(t,o));return i&&v(a,i.prototype),a}).apply(null,arguments)}i.d(n,{Ac:function(){return c},IP:function(){return p},Kd:function(){return I},Lc:function(){return b},PA:function(){return d},U2:function(){return k},WY:function(){return C},XW:function(){return g},Zj:function(){return a},_x:function(){return h},l5:function(){return s},qH:function(){return A},sf:function(){return E},wm:function(){return _},x:function(){return l}});function _(t){var n="function"==typeof Map?new Map:void 0;return(_=function(t){var i;if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,o)}function o(){return m(t,arguments,p(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),v(o,t)})(t)}function I(t,n){if(null==t)return{};var i,o,a=function(t,n){if(null==t)return{};var i,o,a={},s=Object.keys(t);for(o=0;o<s.length;o++)i=s[o],!(n.indexOf(i)>=0)&&(a[i]=t[i]);return a}(t,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++){if(i=s[o],!(n.indexOf(i)>=0))Object.prototype.propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}}return a}function b(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function C(t){var n=y();return function(){var i,o=p(t);return i=n?Reflect.construct(o,arguments,p(this).constructor):o.apply(this,arguments),function(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return b(t)}(this,i)}}function k(){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,i){var o=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=p(t)););return t}(t,n);if(o){var a=Object.getOwnPropertyDescriptor(o,n);return a.get?a.get.call(arguments.length<3?t:i):a.value}}).apply(this,arguments)}function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=Array(n);i<n;i++)o[i]=t[i];return o}function E(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return w(t,void 0);var i=Object.prototype.toString.call(t).slice(8,-1);if("Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return w(t,n)}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,c=!0,u=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return c=t.done,t},e:function(t){u=!0,s=t},f:function(){try{!c&&null!=i.return&&i.return()}finally{if(u)throw s}}}}function S(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}},654175:function(t,n,i){"use strict";i.d(n,{K:function(){return o}});var o={ERROR:"error",TTFB:"core.ttfb",LOAD_START:"core.loadstart",LOAD_RESPONSE_HEADERS:"core.loadresponseheaders",LOAD_COMPLETE:"core.loadcomplete",LOAD_RETRY:"core.loadretry",SOURCEBUFFER_CREATED:"core.sourcebuffercreated",ANALYZE_DURATION_EXCEEDED:"core.analyzedurationexceeded",REMOVE_BUFFER:"core.removebuffer",BUFFEREOS:"core.buffereos",KEYFRAME:"core.keyframe",METADATA_PARSED:"core.metadataparsed",SEI:"core.sei",SEI_IN_TIME:"core.seiintime",FLV_SCRIPT_DATA:"core.flvscriptdata",LOWDECODE:"core.lowdecode",SWITCH_URL_SUCCESS:"core.switchurlsuccess",SWITCH_URL_FAILED:"core.switchurlfailed",SPEED:"core.speed",HLS_MANIFEST_LOADED:"core.hlsmanifestloaded",HLS_LEVEL_LOADED:"core.hlslevelloaded",DEMUXED_TRACK:"core.demuxedtrack",STREAM_EXCEPTION:"core.streamexception",LARGE_AV_FIRST_FRAME_GAP_DETECT:"LARGE_AV_FIRST_FRAME_GAP_DETECT",LARGE_VIDEO_DTS_GAP_DETECT:"LARGE_VIDEO_DTS_GAP_DETECT",LARGE_AUDIO_DTS_GAP_DETECT:"LARGE_AUDIO_DTS_GAP_DETECT",AUDIO_GAP_DETECT:"AUDIO_GAP_DETECT",AUDIO_OVERLAP_DETECT:"AUDIO_OVERLAP_DETECT",MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT:"MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",REAL_TIME_SPEED:"real_time_speed"}},815839:function(t,n,i){"use strict";i.d(n,{J_:function(){return u},Kn:function(){return s},PO:function(){return c}});var o=i(182432),a=Object.prototype.toString;function s(t){return null!==t&&"object"===(0,o.Ac)(t)}function c(t){if("[object Object]"!==a.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function u(t){return"[object Date]"===a.call(t)}},275764:function(t,n,i){"use strict";i.d(n,{U:function(){return a},t:function(){return o}});var o={FETCH:"fetch",XHR:"xhr"},a={ARRAY_BUFFER:"arraybuffer",TEXT:"text",JSON:"json"}},673747:function(t,n,i){"use strict";i.d(n,{J_:function(){return u},Kn:function(){return s},PO:function(){return c}});var o=i(70427),a=Object.prototype.toString;function s(t){return null!==t&&"object"===(0,o.Ac)(t)}function c(t){if("[object Object]"!==a.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function u(t){return"[object Date]"===a.call(t)}},338726:function(t,n,i){"use strict";i.d(n,{Y:function(){return c},_:function(){return a}});var o=i(70427),a={DEBUG:1,LOG:2,WARN:3,ERROR:4},s=["Boolean","Number","String","Undefined","Null","Date","Object"],c=function(){function t(n,i){(0,o.PA)(this,t),this.name=n||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(null==i?void 0:i.logCacheLevel)||3,this.logMaxSize=(null==i?void 0:i.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return(0,o.qH)(t,[{key:"debug",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.DEBUG].concat(o)),!t.disabled&&(n=console).debug.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"log",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.LOG].concat(o)),!t.disabled&&(n=console).log.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"warn",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.WARN].concat(o)),!t.disabled&&(n=console).warn.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"error",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.ERROR].concat(o)),!t.disabled&&(n=console).error.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"logCache",value:function(t){if(!(t<this.logCacheLevel)){var n="";try{for(var i=arguments.length,a=Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];var l=a.map(function(t){return function t(n,i,a){!a&&(a=1),!i&&(i=2);var c={};if(!n||"object"!==(0,o.Ac)(n))return n;var u=Object.prototype.toString.call(n).slice(8,-1);if(!s.includes(u))return u;if(!(a>i)){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(a===i?c[l]=function(t){if("object"!==(0,o.Ac)(t))return t;var n=Object.prototype.toString.call(t).slice(8,-1);switch(n){case"Array":case"Uint8Array":case"ArrayBuffer":return n+"["+t.length+"]";case"Object":return"{}";default:return n}}(n[l]):"object"===(0,o.Ac)(n[l])?c[l]=t(n[l],i,a+1):c[l]=n[l]);return c}}(t)});n="[".concat(u(),"]")+this._prefix+JSON.stringify(l)}catch(t){return}if(t>=this.logCacheLevel&&(this.logSize+=n.length,this.logTextArray.push(n)),this.logSize>this.logMaxSize){var d=this.logTextArray.shift();this.logSize-=d.length}}}},{key:"getLogCache",value:function(){var t=this.logTextArray.join("\n");return this.reset(),t}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var n;!t.disabled&&(n=console).table.apply(n,arguments)}},{key:"setLogLevel",value:function(t){this.logCacheLevel=t}}],[{key:"enable",value:function(){t.disabled=!1}},{key:"disable",value:function(){t.disabled=!0}}]),t}();function u(){return new Date().toLocaleString()}(0,o._x)(c,"disabled",!0)},430517:function(t,n,i){"use strict";i.d(n,{C:function(){return s}});var o=i(70427),a=i(265614),s=function(t){(0,o.XW)(i,t);var n=(0,o.WY)(i);function i(t,s,c,u){var l;return(0,o.PA)(this,i),l=n.call(this,u),(0,o._x)((0,o.Lc)(l),"retryCount",0),(0,o._x)((0,o.Lc)(l),"isTimeout",!1),(0,o._x)((0,o.Lc)(l),"loaderType",a.t.FETCH),(0,o._x)((0,o.Lc)(l),"startTime",0),(0,o._x)((0,o.Lc)(l),"endTime",0),(0,o._x)((0,o.Lc)(l),"options",{}),l.url=t,l.request=s,l.response=c,l}return(0,o.qH)(i)}((0,o.wm)(Error))},341284:function(t,n,i){"use strict";i.d(n,{i:function(){return f}});var o=i(70427),a=i(261237),s=i(138),c=i(265614),u=i(699694),l=i(338726),d=["retry","retryDelay","onRetryError","transformError","changeUrlRetry"],f=function(){var t;function n(t,i){(0,o.PA)(this,n),this.promise=(0,u.Qo)(),this.alive=!!i.onProgress,i.logger||(i.logger=new l.Y("Loader")),this._loaderType=t,this._loader=t===c.t.FETCH&&"undefined"!=typeof fetch?new a.j:new s.c,this._config=i,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=i.retryCheckFunc,this._logger=i.logger,this._useUrlIdx=-1}return(0,o.qH)(n,[{key:"exec",value:function(){var t,n=this,i=this._config,a=i.retry,s=i.retryDelay,c=i.onRetryError,u=i.transformError,l=i.changeUrlRetry,f=(0,o.Kd)(i,d),A=f.urlList||this._config.urlList||[];var h=(t=(0,o.x)((0,o.l5)().mark(function t(){var i,d,g,p,v;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=f,n._changeUrl&&(n._changeUrl=!1,null!=A&&A[n._useUrlIdx]&&(i=Object.assign({},i,{url:A[n._useUrlIdx]}),n._logger.debug("[task],changeUrlRetry,urlIdx:",n._useUrlIdx,i.url))),t.next=5,n._loader.load(i);case 5:d=t.sent,n.promise.resolve(d),t.next=30;break;case 9:if(t.prev=9,t.t0=t.catch(0),n._loader.running=!1,n._logger.debug("[task request catch err]",t.t0),!n._canceled){t.next=15;break}return t.abrupt("return");case 15:if(t.t0.loaderType=n._loaderType,t.t0.retryCount=n._retryCount,g=t.t0,u&&(g=u(g)||g),c&&n._retryCount>0&&c(g,n._retryCount,{index:f.index,vid:f.vid,range:f.range,priOptions:f.priOptions}),n._retryCount++,p=!0,n._retryCheckFunc&&(p=n._retryCheckFunc(t.t0)),!(p&&n._retryCount<=a)){t.next=29;break}return clearTimeout(n._retryTimer),n._logger.debug("[task request setTimeout],retry",n._retryCount,",retry range,",f.range),l&&n._useUrlIdx<(null==A?void 0:A.length)-1&&(n._useUrlIdx<0&&(v=new URL(f.url).hostname,n._useUrlIdx=A.findIndex(function(t){return t.indexOf(v)>=0})),n._useUrlIdx++,n._changeUrl=!0,n._logger.debug("retry changeurl, urlIdx: ",n._useUrlIdx,",retry range,",f.range)),n._retryTimer=setTimeout(h,s),t.abrupt("return");case 29:n.promise.reject(g);case 30:case"end":return t.stop()}},t,null,[[0,9]])})),function(){return t.apply(this,arguments)});return h(),this.promise}},{key:"cancel",value:(t=(0,o.x)((0,o.l5)().mark(function t(){return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,t.abrupt("return",this._loader.cancel());case 4:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),n}()},570783:function(t,n,i){"use strict";function o(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}function a(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?o(Object(i),!0).forEach(function(n){h(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function s(){s=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,n,i){t[n]=i.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(t,n,i){return Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{d({},"")}catch(t){d=function(t,n,i){return t[n]=i}}function f(t,n,i,a){var s=Object.create((n&&n.prototype instanceof g?n:g).prototype);return o(s,"_invoke",{value:function(t,n,i){var o="suspendedStart";return function(a,s){if("executing"===o)throw Error("Generator is already running");if("completed"===o){if("throw"===a)throw s;return R()}for(i.method=a,i.arg=s;;){var c=i.delegate;if(c){var u=function t(n,i){var o=i.method,a=n.iterator[o];if(void 0===a)return i.delegate=null,"throw"===o&&n.iterator.return&&(i.method="return",i.arg=void 0,t(n,i),"throw"===i.method)||"return"!==o&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+o+"' method")),h;var s=A(a,n.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,h;var c=s.arg;return c?c.done?(i[n.resultName]=c.value,i.next=n.nextLoc,"return"!==i.method&&(i.method="next",i.arg=void 0),i.delegate=null,h):c:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,h)}(c,i);if(u){if(u===h)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var l=A(t,n,i);if("normal"===l.type){if(o=i.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o="completed",i.method="throw",i.arg=l.arg)}}}(t,i,new E(a||[]))}),s}function A(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function g(){}function p(){}function v(){}var y={};d(y,c,function(){return this});var m=Object.getPrototypeOf,_=m&&m(m(S([])));_&&_!==n&&i.call(_,c)&&(y=_);var I=v.prototype=g.prototype=Object.create(y);function b(t){["next","throw","return"].forEach(function(n){d(t,n,function(t){return this._invoke(n,t)})})}function C(t,n){var a;o(this,"_invoke",{value:function(o,s){function c(){return new n(function(a,c){!function o(a,s,c,u){var l=A(t[a],t,s);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==typeof f&&i.call(f,"__await")?n.resolve(f.__await).then(function(t){o("next",t,c,u)},function(t){o("throw",t,c,u)}):n.resolve(f).then(function(t){d.value=t,c(d)},function(t){return o("throw",t,c,u)})}u(l.arg)}(o,s,a,c)})}return a=a?a.then(c,c):c()}})}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function w(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=void 0,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:void 0,done:!0}}return p.prototype=v,o(I,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===p||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,d(t,l,"GeneratorFunction")),t.prototype=Object.create(I),t},t.awrap=function(t){return{__await:t}},b(C.prototype),d(C.prototype,u,function(){return this}),t.AsyncIterator=C,t.async=function(n,i,o,a,s){void 0===s&&(s=Promise);var c=new C(f(n,i,o,a),s);return t.isGeneratorFunction(i)?c:c.next().then(function(t){return t.done?t.value:c.next()})},b(I),d(I,l,"Generator"),d(I,c,function(){return this}),d(I,"toString",function(){return"[object Generator]"}),t.keys=function(t){var n=Object(t),i=[];for(var o in n)i.push(o);return i.reverse(),function t(){for(;i.length;){var o=i.pop();if(o in n)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,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 n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(i,o){return c.type="throw",c.arg=t,n.next=i,o&&(n.method="next",n.arg=void 0),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],c=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(u&&l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,n){for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=n&&n<=s.finallyLoc&&(s=null);var c=s?s.completion:{};return c.type=t,c.arg=n,s?(this.method="next",this.next=s.finallyLoc,h):this.complete(c)},complete:function(t,n){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&&n&&(this.next=n),h},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),w(i),h}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var a=o.arg;w(i)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:S(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=void 0),h}},t}function c(t){return(c="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 u(t,n,i,o,a,s,c){try{var u=t[s](c),l=u.value}catch(t){i(t);return}u.done?n(l):Promise.resolve(l).then(o,a)}function l(t){return function(){var n=this,i=arguments;return new Promise(function(o,a){var s=t.apply(n,i);function c(t){u(s,o,a,c,l,"next",t)}function l(t){u(s,o,a,c,l,"throw",t)}c(void 0)})}}function d(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function f(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,S(o.key),o)}}function A(t,n,i){return n&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,n,i){return(n=S(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function g(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&v(t,n)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function y(){if("undefined"==typeof Reflect||!Reflect.construct||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 m(t,n,i){return(m=y()?Reflect.construct.bind():function(t,n,i){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(t,o));return i&&v(a,i.prototype),a}).apply(null,arguments)}i.d(n,{Ac:function(){return c},IP:function(){return p},Kd:function(){return I},Lc:function(){return b},PA:function(){return d},U2:function(){return k},WY:function(){return C},XW:function(){return g},Zj:function(){return a},_x:function(){return h},l5:function(){return s},qH:function(){return A},sf:function(){return E},wm:function(){return _},x:function(){return l}});function _(t){var n="function"==typeof Map?new Map:void 0;return(_=function(t){var i;if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,o)}function o(){return m(t,arguments,p(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),v(o,t)})(t)}function I(t,n){if(null==t)return{};var i,o,a=function(t,n){if(null==t)return{};var i,o,a={},s=Object.keys(t);for(o=0;o<s.length;o++)i=s[o],!(n.indexOf(i)>=0)&&(a[i]=t[i]);return a}(t,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++){if(i=s[o],!(n.indexOf(i)>=0))Object.prototype.propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}}return a}function b(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function C(t){var n=y();return function(){var i,o=p(t);return i=n?Reflect.construct(o,arguments,p(this).constructor):o.apply(this,arguments),function(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return b(t)}(this,i)}}function k(){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,i){var o=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=p(t)););return t}(t,n);if(o){var a=Object.getOwnPropertyDescriptor(o,n);return a.get?a.get.call(arguments.length<3?t:i):a.value}}).apply(this,arguments)}function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=Array(n);i<n;i++)o[i]=t[i];return o}function E(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return w(t,void 0);var i=Object.prototype.toString.call(t).slice(8,-1);if("Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return w(t,n)}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,c=!0,u=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return c=t.done,t},e:function(t){u=!0,s=t},f:function(){try{!c&&null!=i.return&&i.return()}finally{if(u)throw s}}}}function S(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}},674495:function(t,n,i){"use strict";i.d(n,{Fc:function(){return u},WE:function(){return c},wb:function(){return s}});var o,a=i(570783),s={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",NETWORK_FORBIDDEN:"network_forbidden",NETWORK_NOTFOUND:"network_notfound",NETWROK_RANGE_NOT_SATISFIABLE:"network_range_not_satisfiable",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",RUNTIME:"runtime",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",MSE_CHANGE_TYPE:"MSE_CHANGE_TYPE",OPTION:"OPTION",DASH:"DASH",LICENSE:"LICENSE",CUSTOM_LICENSE:"CUSTOM_LICENSE",MSE_HIJACK:"MSE_HIJACK",EME_HIJACK:"EME_HIJACK",SIDX:"SIDX",NO_CANPLAY_ERROR:"NO_CANPLAY_ERROR",BUFFERBREAK_ERROR:"BUFFERBREAK_ERROR",WAITING_TIMEOUT_ERROR:"WAITING_TIMEOUT_ERROR",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_CODEC_NOT_SUPPORTED:"MEDIA_ERR_CODEC_NOT_SUPPORTED",MEDIA_ERR_URL_EMPTY:"MEDIA_ERR_URL_EMPTY"}},c=(o={},(0,a._x)(o,s.MANIFEST,{HLS:1100,DASH:1200}),(0,a._x)(o,s.NETWORK,2100),(0,a._x)(o,s.NETWORK_TIMEOUT,2101),(0,a._x)(o,s.NETWORK_FORBIDDEN,2103),(0,a._x)(o,s.NETWORK_NOTFOUND,2104),(0,a._x)(o,s.NETWROK_RANGE_NOT_SATISFIABLE,2116),(0,a._x)(o,s.DEMUX,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),(0,a._x)(o,s.REMUX,{FMP4:4100,MP4:4200}),(0,a._x)(o,s.MEDIA,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,MSE_CHANGE_TYPE:5205,EME_HIJACK:5301}),(0,a._x)(o,s.DRM,{LICENSE:7100,CUSTOM_LICENSE:7200}),(0,a._x)(o,s.OTHER,8e3),(0,a._x)(o,s.RUNTIME,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),o),u=function(t){(0,a.XW)(i,t);var n=(0,a.WY)(i);function i(t,o,u,l,d){var f;return(0,a.PA)(this,i),(f=n.call(this,d||(null==u?void 0:u.message))).errorType=t===s.NETWORK_TIMEOUT?s.NETWORK:t,f.originError=u,f.ext=l,f.errorCode=c[t][o]||c[t],f.errorMessage=f.message,!f.errorCode&&(f.errorType=s.OTHER,f.errorCode=c[f.errorType]),f}return(0,a.qH)(i,null,[{key:"create",value:function(t,n,o,a,c){return t instanceof i?t:(t instanceof Error&&(o=t,t=""),!t&&(t=s.OTHER),new i(t,n,o,a,c))}},{key:"network",value:function(t){var n;return new i(null!=t&&t.isTimeout?s.NETWORK_TIMEOUT:s.NETWORK,null,t instanceof Error?t:null,{url:null==t?void 0:t.url,response:null==t?void 0:t.response,httpCode:null==t?void 0:null===(n=t.response)||void 0===n?void 0:n.status})}}]),i}((0,a.wm)(Error))},637961:function(t,n,i){"use strict";i.d(n,{K:function(){return o}});var o={ERROR:"error",TTFB:"core.ttfb",LOAD_START:"core.loadstart",LOAD_RESPONSE_HEADERS:"core.loadresponseheaders",LOAD_COMPLETE:"core.loadcomplete",LOAD_RETRY:"core.loadretry",SOURCEBUFFER_CREATED:"core.sourcebuffercreated",MEDIASOURCE_OPENED:"core.mediasourceopened",ANALYZE_DURATION_EXCEEDED:"core.analyzedurationexceeded",APPEND_BUFFER:"core.appendbuffer",REMOVE_BUFFER:"core.removebuffer",BUFFEREOS:"core.buffereos",KEYFRAME:"core.keyframe",CHASEFRAME:"core.chaseframe",METADATA_PARSED:"core.metadataparsed",SEI:"core.sei",SEI_IN_TIME:"core.seiintime",FLV_SCRIPT_DATA:"core.flvscriptdata",LOWDECODE:"core.lowdecode",SWITCH_URL_SUCCESS:"core.switchurlsuccess",SWITCH_URL_FAILED:"core.switchurlfailed",SPEED:"core.speed",HLS_MANIFEST_LOADED:"core.hlsmanifestloaded",HLS_LEVEL_LOADED:"core.hlslevelloaded",DEMUXED_TRACK:"core.demuxedtrack",STREAM_EXCEPTION:"core.streamexception",LARGE_AV_FIRST_FRAME_GAP_DETECT:"LARGE_AV_FIRST_FRAME_GAP_DETECT",LARGE_VIDEO_DTS_GAP_DETECT:"LARGE_VIDEO_DTS_GAP_DETECT",LARGE_AUDIO_DTS_GAP_DETECT:"LARGE_AUDIO_DTS_GAP_DETECT",AUDIO_GAP_DETECT:"AUDIO_GAP_DETECT",AUDIO_OVERLAP_DETECT:"AUDIO_OVERLAP_DETECT",MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT:"MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",REAL_TIME_SPEED:"real_time_speed"}},782786:function(t,n,i){"use strict";i.d(n,{J_:function(){return u},Kn:function(){return s},PO:function(){return c}});var o=i(570783),a=Object.prototype.toString;function s(t){return null!==t&&"object"===(0,o.Ac)(t)}function c(t){if("[object Object]"!==a.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function u(t){return"[object Date]"===a.call(t)}},403826:function(t,n,i){"use strict";i.d(n,{Y:function(){return c},_:function(){return a}});var o=i(570783),a={DEBUG:1,LOG:2,WARN:3,ERROR:4},s=["Boolean","Number","String","Undefined","Null","Date","Object"],c=function(){function t(n,i){(0,o.PA)(this,t),this.name=n||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(null==i?void 0:i.logCacheLevel)||3,this.logMaxSize=(null==i?void 0:i.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return(0,o.qH)(t,[{key:"debug",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.DEBUG].concat(o)),!t.disabled&&(n=console).debug.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"log",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.LOG].concat(o)),!t.disabled&&(n=console).log.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"warn",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.WARN].concat(o)),!t.disabled&&(n=console).warn.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"error",value:function(){for(var n,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];this.logCache.apply(this,[a.ERROR].concat(o)),!t.disabled&&(n=console).error.apply(n,["[".concat(u(),"]"),this._prefix].concat(o))}},{key:"logCache",value:function(t){if(!(t<this.logCacheLevel)){var n="";try{for(var i=arguments.length,a=Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];var l=a.map(function(t){return function t(n,i,a){!a&&(a=1),!i&&(i=2);var c={};if(!n||"object"!==(0,o.Ac)(n))return n;var u=Object.prototype.toString.call(n).slice(8,-1);if(!s.includes(u))return u;if(!(a>i)){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(a===i?c[l]=function(t){if("object"!==(0,o.Ac)(t))return t;var n=Object.prototype.toString.call(t).slice(8,-1);switch(n){case"Array":case"Uint8Array":case"ArrayBuffer":return n+"["+t.length+"]";case"Object":return"{}";default:return n}}(n[l]):"object"===(0,o.Ac)(n[l])?c[l]=t(n[l],i,a+1):c[l]=n[l]);return c}}(t)});n="[".concat(u(),"]")+this._prefix+JSON.stringify(l)}catch(t){return}if(t>=this.logCacheLevel&&(this.logSize+=n.length,this.logTextArray.push(n)),this.logSize>this.logMaxSize){var d=this.logTextArray.shift();this.logSize-=d.length}}}},{key:"getLogCache",value:function(){var t=this.logTextArray.join("\n");return this.reset(),t}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var n;!t.disabled&&(n=console).table.apply(n,arguments)}},{key:"setLogLevel",value:function(t){this.logCacheLevel=t}}],[{key:"enable",value:function(){t.disabled=!1}},{key:"disable",value:function(){t.disabled=!0}}]),t}();function u(){return new Date().toLocaleString()}(0,o._x)(c,"disabled",!0)},602929:function(t,n,i){"use strict";i.d(n,{G7:function(){return c},Gu:function(){return a},pl:function(){return l},rO:function(){return u}});var o=i(782786);function a(t){if(!!t&&null!==t[0]&&void 0!==t[0]&&(0!==t[0]||null!==t[1]&&void 0!==t[1])){var n="bytes="+t[0]+"-";return t[1]&&(n+=t[1]),n}}function s(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function c(t,n){if(t){if(!n)return t;var i,a=Object.keys(n).map(function(t){if(null!=(i=n[t]))return Array.isArray(i)?t+="[]":i=[i],i.map(function(n){return(0,o.J_)(n)?n=n.toISOString():(0,o.Kn)(n)&&(n=JSON.stringify(n)),"".concat(s(t),"=").concat(s(n))}).join("&")}).filter(Boolean).join("&");if(a){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}}function u(t,n,i,o,a,s,c,u,l,d,f){return a=null!=a?parseFloat(a):null,Number.isNaN(o=parseInt(o||"0",10))&&(o=0),{data:t,done:n,options:{range:l,vid:d,index:u,contentLength:o,age:a,startTime:s,firstByteTime:c,endTime:Date.now(),priOptions:f},response:i}}function l(t,n){return Math.round(8e3*t/n/1024)}},524992:function(t,n,i){"use strict";i.d(n,{mf:function(){return m}});var o=i("570783"),a=i("319049"),s=i("65661"),c=i("205531"),u=i("491639"),l=i("264583"),d=i("403826"),f=i("942155"),A=i.n(f),h=["retry","retryDelay","onRetryError","transformError","changeUrlRetry"],g=function(t){(0,o.XW)(c,t);var n,i=(0,o.WY)(c);function c(t,n){var f;return(0,o.PA)(this,c),(f=i.call(this)).promise=(0,l.Qo)(),f.alive=!!n.onProgress,n.logger||(n.logger=new d.Y("Loader")),f._loaderType=t,f._loader=t===s.t.FETCH&&"undefined"!=typeof fetch?new a.j:new u.c,f._config=n,f._retryCount=0,f._retryTimer=null,f._canceled=!1,f._retryCheckFunc=n.retryCheckFunc,f._logger=n.logger,f._useUrlIdx=-1,f._isRetry=!1,f._retryType=0,f}return(0,o.qH)(c,[{key:"exec",value:function(){var t,n=this,i=this._config,a=i.retry,s=i.retryDelay,c=i.onRetryError,u=i.transformError,l=i.changeUrlRetry,d=(0,o.Kd)(i,h),f=d.urlList||this._config.urlList||[];var A=(t=(0,o.x)((0,o.l5)().mark(function t(){var i,h,g,p,v,y;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=d,n._isRetry&&(n._changeUrl?(n._changeUrl=!1,n._retryType=2,null!=f&&f[n._useUrlIdx]&&(n._retryCount=0,i=Object.assign({},i,{url:f[n._useUrlIdx]}),n._logger.debug("[task],changeUrlRetry,urlIdx:",n._useUrlIdx,i.url))):(n._logger.debug("[task],originUrlRetry,urlIdx:",n._useUrlIdx,i.url),n._retryType=1)),t.next=5,n._loader.load(i);case 5:h=t.sent,n.promise.resolve(h),t.next=36;break;case 9:if(t.prev=9,t.t0=t.catch(0),n._loader.running=!1,n._logger.debug("[task request catch err]",t.t0),!n._canceled){t.next=15;break}return t.abrupt("return");case 15:if(t.t0.loaderType=n._loaderType,t.t0.retryCount=n._retryCount,g=t.t0,u&&(g=u(g)||g),c&&n._retryCount>0&&c(g,n._retryCount,{index:d.index,vid:d.vid,range:d.range,priOptions:d.priOptions}),n._retryCount++,p=!0,n._retryCheckFunc&&(p=n._retryCheckFunc(t.t0)),v=0,d.outChangeUrlRetry>0?v=d.outChangeUrlRetry:n._isRetry&&(1===v?v=1:2===v&&(v=2)),n._logger.debug("[task error],isRetry",n._isRetry,",outChangeUrlRetry,",d.outChangeUrlRetry,",retryType",v),n.emitNetErrorEvent(d.url,v,t.t0),!(p&&n._retryCount<=a)){t.next=34;break}return n._isRetry=!0,clearTimeout(n._retryTimer),n._logger.debug("[task request setTimeout],retry",n._retryCount,",retry range,",d.range),l&&n._useUrlIdx<(null==f?void 0:f.length)-1&&(n._useUrlIdx<0&&(y=new URL(d.url).hostname,n._useUrlIdx=f.findIndex(function(t){return t.indexOf(y)>=0})),n._useUrlIdx++,n._changeUrl=!0,n._logger.debug("retry changeurl, urlIdx: ",n._useUrlIdx,",retry range,",d.range)),n._retryTimer=setTimeout(A,s),t.abrupt("return");case 34:n._isRetry=!1,n.promise.reject(g);case 36:case"end":return t.stop()}},t,null,[[0,9]])})),function(){return t.apply(this,arguments)});return A(),this.promise}},{key:"emitNetErrorEvent",value:function(t,n,i){var o,a=new URL(t);this.emit("networkError",{timeout:this._loader.curTimeout,retryType:n,url:t,domain:a.hostname,errCode:(null==i?void 0:null===(o=i.response)||void 0===o?void 0:o.status)||-1,message:null==i?void 0:i.message,isTimeout:null==i?void 0:i.isTimeout})}},{key:"cancel",value:(n=(0,o.x)((0,o.l5)().mark(function t(){return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,t.abrupt("return",this._loader.cancel());case 4:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),c}(A()),p=i("782786"),v=i("416556"),y=i("637961"),m=function(t){(0,o.XW)(u,t);var n,i=(0,o.WY)(u);function u(t){var n;return(0,o.PA)(this,u),n=i.call(this,t),(0,o._x)((0,o.Lc)(n),"type",s.t.FETCH),(0,o._x)((0,o.Lc)(n),"_queue",[]),(0,o._x)((0,o.Lc)(n),"_alive",[]),(0,o._x)((0,o.Lc)(n),"_currentTask",null),(0,o._x)((0,o.Lc)(n),"_finnalUrl",""),(0,o._x)((0,o.Lc)(n),"_config",void 0),n._config=(0,c.i)(t),(n._config.loaderType===s.t.XHR||!a.j.isSupported())&&(n.type=s.t.XHR),n.log=t.logger,n}return(0,o.qH)(u,[{key:"isFetch",value:function(){return this.type===s.t.FETCH}},{key:"load",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof t&&t?i=t:i.url=t||i.url||this._config.url,(i=Object.assign({},this._config,i)).params&&(i.params=Object.assign({},i.params)),i.headers&&(0,p.PO)(i.headers)&&(i.headers=Object.assign({},i.headers)),i.body&&(0,p.PO)(i.body)&&(i.body=Object.assign({},i.body)),i.transformRequest&&(i=i.transformRequest(i)||i),i.logger=this.log,i.dynamicTimeoutIns=this._config.dynamicTimeoutIns;var o=new g(this.type,i);return o.loader.on(y.K.REAL_TIME_SPEED,function(t){n.emit(y.K.REAL_TIME_SPEED,t)}),o.on("networkError",function(t){n.emit("networkError",t)}),this._queue.push(o),1===this._queue.length&&(!this._currentTask||!this._currentTask.running)&&this._processTask(),o.promise}},{key:"cancel",value:(n=(0,o.x)((0,o.l5)().mark(function t(){var n;return(0,o.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._queue.map(function(t){return t.cancel()}).concat(this._alive.map(function(t){return t.cancel()})),this._currentTask&&n.push(this._currentTask.cancel()),this._queue=[],this._alive=[],t.next=6,Promise.all(n);case 6:return t.next=8,(0,v._v)();case 8:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)})},{key:"_processTask",value:function(){var t=this;if(this._currentTask=this._queue.shift(),!!this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var n=this._currentTask.exec().catch(function(t){});n&&"function"==typeof n.finally&&n.finally(function(){var n,i;null!==(n=t._currentTask)&&void 0!==n&&n.alive&&(null===(i=t._alive)||void 0===i?void 0:i.length)>0&&(t._alive=t._alive.filter(function(n){return n&&n!==t._currentTask})),t._processTask()})}}}],[{key:"isFetchSupport",value:function(){return a.j.isSupported()}}]),u}(A())},269497:function(t,n,i){"use strict";i.d(n,{W:function(){return s}});var o=i(697946),a=i(481784),s=function(){function t(){(0,o.PA)(this,t)}return(0,o.qH)(t,null,[{key:"getRateIndexByRate",value:function(n){return t.FREQ.indexOf(n)}},{key:"parseADTS",value:function(n,i){for(var o,a,s=n.length,c=0;c+2<s&&(255!==n[c]||(246&n[c+1])!=240);){;c++}if(!(c>=s)){var u=c,l=[],d=(60&n[c+2])>>>2,f=t.FREQ[d];if(!f)throw Error("Invalid sampling index: ".concat(d));for(var A=((192&n[c+2])>>>6)+1,h=(1&n[c+2])<<2|(192&n[c+3])>>>6,g=t._getConfig(d,h,A),p=g.config,v=g.codec,y=0,m=t.getFrameDuration(f);c+7<s;){if(255!==n[c]||(246&n[c+1])!=240){c++;continue}if(!(a=(3&n[c+3])<<11|n[c+4]<<3|(224&n[c+5])>>5)||s-c<a)break;o=(1&~n[c+1])*2,l.push({pts:i+y*m,data:n.subarray(c+7+o,c+a)}),y++,c+=a}return{skip:u,remaining:c>=s?void 0:n.subarray(c),frames:l,samplingFrequencyIndex:d,sampleRate:f,objectType:A,channelCount:h,codec:v,config:p,originCodec:"mp4a.40.".concat(A)}}}},{key:"parseAudioSpecificConfig",value:function(n){if(!!n.length){var i=n[0]>>>3,o=(7&n[0])<<1|n[1]>>>7,a=(120&n[1])>>>3,s=t.FREQ[o];if(s){var c=t._getConfig(o,a,i),u=c.config;return{samplingFrequencyIndex:o,sampleRate:s,objectType:i,channelCount:a,config:u,codec:c.codec,originCodec:"mp4a.40.".concat(i)}}}}},{key:"getFrameDuration",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*n/t}},{key:"_getConfig",value:function(t,n,i){var o,s,c=[];return a.vU?t>=6?(o=5,s=t-3):(o=2,s=t):a.Dt?(o=2,s=t):(o=5,s=t,t>=6?s=t-3:1===n&&(o=2,s=t)),c[0]=o<<3,c[0]|=(14&t)>>1,c[1]=(1&t)<<7,c[1]|=n<<3,5===o&&(c[1]|=(14&s)>>1,c[2]=(1&s)<<7,c[2]|=8,c[3]=0),{config:c,codec:"mp4a.40.".concat(o)}}},{key:"getSilentFrame",value:function(t,n){if("mp4a.40.2"===t){if(1===n)return new Uint8Array([0,200,0,128,35,128]);if(2===n)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===n)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===n)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===n)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===n)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===n)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===n||3===n)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])}}}]),t}();(0,o._x)(s,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350])},752822:function(t,n,i){"use strict";i.d(n,{X:function(){return a}});var o=i(697946),a=(0,o.qH)(function t(n,i,a,s){(0,o.PA)(this,t),(0,o._x)(this,"duration",1024),(0,o._x)(this,"flag",{dependsOn:2,isNonSyncSample:0}),(0,o._x)(this,"keyframe",!0),this.originPts=this.pts=this.dts=n,this.data=i,this.size=i.byteLength,this.sampleOffset=s,a&&(this.duration=a)})},176143:function(t,n,i){"use strict";i.d(n,{q:function(){return s}});var o=i(697946),a=i(745740),s=function(){function t(){(0,o.PA)(this,t),(0,o._x)(this,"id",1),(0,o._x)(this,"type",a.Vc.VIDEO),(0,o._x)(this,"codecType",a._e.AVC),(0,o._x)(this,"pid",-1),(0,o._x)(this,"hvcC",void 0),(0,o._x)(this,"codec",""),(0,o._x)(this,"timescale",0),(0,o._x)(this,"formatTimescale",0),(0,o._x)(this,"sequenceNumber",0),(0,o._x)(this,"baseMediaDecodeTime",0),(0,o._x)(this,"baseDts",0),(0,o._x)(this,"duration",0),(0,o._x)(this,"warnings",[]),(0,o._x)(this,"samples",[]),(0,o._x)(this,"pps",[]),(0,o._x)(this,"sps",[]),(0,o._x)(this,"vps",[]),(0,o._x)(this,"fpsNum",0),(0,o._x)(this,"fpsDen",0),(0,o._x)(this,"sarRatio",[]),(0,o._x)(this,"width",0),(0,o._x)(this,"height",0),(0,o._x)(this,"nalUnitSize",4),(0,o._x)(this,"present",!1),(0,o._x)(this,"isVideoEncryption",!1),(0,o._x)(this,"isAudioEncryption",!1),(0,o._x)(this,"isVideo",!0),(0,o._x)(this,"lastKeyFrameDts",0),(0,o._x)(this,"kid",null),(0,o._x)(this,"pssh",null),(0,o._x)(this,"ext",void 0)}return(0,o.qH)(t,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[],this.hvcC=null}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var t=this.samples[0],n=this.samples[this.samples.length-1];return n.dts-t.dts+n.duration}return 0}},{key:"exist",value:function(){return!!/av01/.test(this.codec)||!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),t}()},532096:function(t,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(697946),a=function(){function t(){(0,o.PA)(this,t),this.buffer=new Uint8Array(0)}return(0,o.qH)(t,[{key:"write",value:function(){for(var t=this,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];i.forEach(function(n){n?t.buffer=function(t){for(var n=0,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];o.forEach(function(t){n+=t.length});var s=new t(n),c=0;return o.forEach(function(t){s.set(t,c),c+=t.length}),s}(Uint8Array,t.buffer,n):window.console.warn(n)})}}],[{key:"writeUint16",value:function(t){return new Uint8Array([t>>8&255,255&t])}},{key:"writeUint32",value:function(t){return new Uint8Array([t>>24,t>>16&255,t>>8&255,255&t])}}]),t}()},519357:function(t,n,i){"use strict";function o(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function a(t,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,u(o.key),o)}}function s(t,n,i){return n&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,n,i){return(n=u(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}i.d(n,{PA:function(){return o},_x:function(){return c},qH:function(){return s}});function u(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}},146202:function(t,n,i){"use strict";i.d(n,{Dt:function(){return c},vU:function(){return s}});var o="undefined"!=typeof window,a=o&&navigator.userAgent.toLocaleLowerCase();o&&/^((?!chrome|android).)*safari/.test(a);var s=o&&a.includes("firefox"),c=o&&a.includes("android")}}]); |