2 lines
88 KiB
Plaintext
2 lines
88 KiB
Plaintext
/*! For license information please see 60672.e5e13500.js.LICENSE.txt */
|
||
!function(t,e){"object"==typeof module&&"object"==typeof module.exports?e():"function"==typeof define&&define.amd?define([],e):(t="undefined"!=typeof globalThis?globalThis:t||self)&&e()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).xss={})}(this,function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function n(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var r=/[^a-zA-Z0-9\\_:.-]/gim,i=/</g,a=/>/g,o=/&#([a-zA-Z0-9]*);?/gim,s=/"/g,l=/:?/gim,c=/&newline;?/gim,u=/((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,d=/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,f=/"/g,p=function(t){return t.replace(i,"<").replace(a,">")},m={indexOf:function(t,e){var n,r;for(n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return -1},forEach:function(t,e,n){var r,i;for(r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t)},some:function(t,e,n){var r,i;for(r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return!0;return!1},trim:function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},includes:function(t,e){if("string"==typeof t)return -1!==t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1},uniq:function(t){for(var e={},n=[],r=0;r<t.length;r++)e[t[r]]||(n.push(t[r]),e[t[r]]=!0);return n},from:function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e},keys:function(t){var e=[];for(var n in t)e.push(n);return e}};function g(t){return null==t}function v(t){var e;return'"'===(e=t)[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]?t.substr(1,t.length-2):t}function y(t){var e,n,r,i,a,o,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(t=function(t){t=t.replace(/rn/g,"n");for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?e+=String.fromCharCode(r>>6|192)+String.fromCharCode(63&r|128):e+=String.fromCharCode(r>>12|224)+String.fromCharCode(r>>6&63|128)+String.fromCharCode(63&r|128)}return e}(t);u<t.length;)i=(e=t.charCodeAt(u++))>>2,a=(3&e)<<4|(n=t.charCodeAt(u++))>>4,o=(15&n)<<2|(r=t.charCodeAt(u++))>>6,s=63&r,isNaN(n)?o=s=64:isNaN(r)&&(s=64),c=c+l.charAt(i)+l.charAt(a)+l.charAt(o)+l.charAt(s);return c}function b(t){var e,n,r,i,a,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");c<t.length;)e=s.indexOf(t.charAt(c++))<<2|(i=s.indexOf(t.charAt(c++)))>>4,n=(15&i)<<4|(a=s.indexOf(t.charAt(c++)))>>2,r=(3&a)<<6|(o=s.indexOf(t.charAt(c++))),l+=String.fromCharCode(e),64!==a&&(l+=String.fromCharCode(n)),64!==o&&(l+=String.fromCharCode(r));return function(t){for(var e="",n=0,r=0,i=0,a=0;n<t.length;)(r=t.charCodeAt(n))<128?(e+=String.fromCharCode(r),n++):r>191&&r<224?(e+=String.fromCharCode((31&r)<<6|63&(a=t.charCodeAt(n+1))),n+=2):(a=t.charCodeAt(n+1),e+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&(i=t.charCodeAt(n+2))),n+=3);return e}(l)}function _(t,e,n){var r="",i=0,a=!1,o=!1,s=0,l=t.length,c="",u="";t:for(s=0;s<l;s++){var d=t.charAt(s);if(!1===a){if("<"===d){a=s;continue}}else if(!1===o){if("<"===d){r+=n(t.slice(i,s)),a=s,i=s;continue}if(">"===d||s===l-1){r+=n(t.slice(i,a)),c=function(t){var e,n=m.spaceIndex(t);return e=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(e=m.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}(u=t.slice(a,s+1)),r+=e(a,r.length,c,u,"</"===u.slice(0,2)),i=s+1,a=!1;continue}if('"'===d||"'"===d)for(var h=1,f=t.charAt(s-h);""===f.trim()||"="===f;){if("="===f){o=d;continue t}f=t.charAt(s-++h)}}else if(d===o){o=!1;continue}}return i<l&&(r+=n(t.substr(i))),r}function w(t,e){var n=0,i=0,a=[],o=!1,s=t.length;function l(t,n){if(!((t=(t=m.trim(t)).replace(r,"").toLowerCase()).length<1)){var i=e(t,n||"");i&&a.push(i)}}for(var c=0;c<s;c++){var u=t.charAt(c),d=void 0;if(!1!==o||"="!==u){if(!1===o||c!==i){if(/\s|\n|\t/.test(u)){if(t=t.replace(/\s|\n|\t/g," "),!1===o){if(-1===(d=function(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"="===n?e:-1}return -1}(t,c))){l(m.trim(t.slice(n,c))),o=!1,n=c+1;continue}c=d-1;continue}if(-1===(d=function(t,e){for(;e>0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}return -1}(t,c-1))){l(o,v(m.trim(t.slice(n,c)))),o=!1,n=c+1;continue}}}else{if(-1===(d=t.indexOf(u,c+1)))break;l(o,m.trim(t.slice(i+1,d))),o=!1,n=(c=d)+1}}else o=t.slice(n,c),n=c+1,i='"'===t.charAt(n)||"'"===t.charAt(n)?n:function(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"'"===n||'"'===n?e:-1}return -1}(t,c+1)}return n<t.length&&(!1===o?l(t.slice(n)):l(o,v(m.trim(t.slice(n))))),m.trim(a.join(" "))}function S(t,e,n){if(n=function(t){return t=function(t){for(var e="",n=0,r=t.length;n<r;n++)e+=32>t.charCodeAt(n)?" ":t.charAt(n);return m.trim(e)}(t=(t=(t=t.replace(s,'"')).replace(o,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})).replace(l,":").replace(c," "))}(n),"href"===e||"src"===e){if("#"===(n=m.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(u.lastIndex=0,u.test(n))return""}else if("style"===e&&(h.lastIndex=0,h.test(n)||(d.lastIndex=0,d.test(n)&&(u.lastIndex=0,u.test(n)))))return"";return n=function(t){return t=p(t=t.replace(f,"""))}(n)}var L=function(t){return"string"==typeof t?t.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},P=function(){function t(t){var e=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{});e.stripIgnoreTag&&(e.onIgnoreTag,e.onIgnoreTag=function(){return""}),e.whiteList={},e.onTag=function(){},e.onTagAttr=function(){},e.onIgnoreTag=function(){},e.onIgnoreTagAttr=function(){},e.safeAttrValue=S,e.escapeHtml=p,this.options=Object.assign(e,t)}return t.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e,n,r,i,a,o,s=this.options,l=s.whiteList,c=s.onTag,u=s.onIgnoreTag,d=s.onTagAttr,h=s.onIgnoreTagAttr,f=s.safeAttrValue,p=s.escapeHtml;s.stripBlankChar&&(t=(e=(e=t.split("")).filter(function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)})).join("")),s.allowCommentTag||(t=function(t){for(var e="",n=0;n<t.length;){var r=t.indexOf("\x3c!--",n);if(-1===r){e+=t.slice(n);break}e+=t.slice(n,r);var i=t.indexOf("--\x3e",r);if(-1===i)break;n=i+3}return e}(t));var g=!1;s.stripIgnoreTagBody&&(n=s.stripIgnoreTagBody,"function"!=typeof(r=u)&&(r=function(){}),i=!Array.isArray(n),a=[],o=!1,u=(g={onIgnoreTag:function(t,e,s){var l;if(l=t,i||-1!==m.indexOf(n,l)){if(s.isClosing){var c="[/removed]",u=s.position+c.length;return a.push([!1!==o?o:s.position,u]),o=!1,c}return o||(o=s.position),"[removed]"}return r(t,e,s)},remove:function(t){var e="",n=0;return m.forEach(a,function(r){e+=t.slice(n,r[0]),n=r[1]}),e+=t.slice(n)}}).onIgnoreTag);var v=_(t,function(t,e,n,r,i){var a={sourcePosition:t,position:e,isClosing:i,isWhite:Object.prototype.hasOwnProperty.call(l,n)},o=c(n,r,a);if(null!=o)return o;if(a.isWhite){if(a.isClosing)return"</".concat(n,">");var s=function(t){var e=m.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=m.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=m.trim(t.slice(0,-1))),{html:t,closing:n}}(r),g=l[n],v=w(s.html,function(t,e){var r=-1!==m.indexOf(g,t),i=d(n,t,e,r);return null==i?r?(e=f(n,t,e,null))?"".concat(t,'="').concat(e,'"'):t:null==(i=h(n,t,e,r))?void 0:i:i});return r="<".concat(n),v&&(r+=" ".concat(v)),s.closing&&(r+=" /"),r+=">"}return null==(o=u(n,r,a))?p(r):o},p);return g&&(v=g.remove(v)),v},t}(),k=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")(),C=new(function(){function t(){var t=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var e,n,r="douyin_web";if(!m.includes(r,"bid"))return r;if(t.config&&t.config.bid)return t.config.bid;if(k&&k._xssBid)return k._xssBid;if(k&&k.slardar&&"function"==typeof k.slardar.config){var i=(k.slardar.config()||{}).bid;if(i)return i}if(k&&k.Slardar&&"function"==typeof k.Slardar.config){var a=(k.Slardar.config()||{}).bid;if(a)return a}return(null===(n=null===(e=null==k?void 0:k.Slardar)||void 0===e?void 0:e._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var e;return m.includes("cn","region")?t.config&&t.config.region?t.config.region:((null===(e=null==k?void 0:k.gfdatav1)||void 0===e?void 0:e.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var e={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[t.getConfigRegion()];if(e)return e+t.getSlardarBid()}}return t.prototype.setConfig=function(t){this.config=t},t.prototype.upload=function(){var t=this,e=this.gerReportUrl();!this.lock&&e&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var n=t.batchData.slice(0,100);t.batchData=t.batchData.slice(100),k.fetch(e,{method:"post",body:JSON.stringify(n),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 e=this.generateKey(t);if(k.fetch&&t.collectKey){var n="object"==typeof window?window.location.href:"SSR";t.documentUrl=n;var r={age:Math.floor(Date.now()),type:"xss",url:n,body:t,"user-agent":""};"enforce"===t.disposition&&"SSR"!==n||(r.url=e),"SSR"===n&&(r.url="SSR___".concat(r.url),r.body.ssr=!0),this.push(r)}},t}()),x=function(t){for(var e=0,n=function(n){Array.isArray(t[n])?0===t[n].length?delete t[n]:(t[n]=m.from(m.uniq(t[n])),e+=t[n].length):0===m.keys(t[n]).length?delete t[n]:m.keys(t[n]).forEach(function(r){t[n][r]=m.from(m.uniq(t[n][r])),e+=t[n][r].length})},r=0,i=m.keys(t);r<i.length;r++)n(i[r]);return{count:e,ret:t}};function j(t,e){return C.setConfig(e),new P(e).process(t)}function A(t){var e,n=(e=/\s|\n|\t/.exec(t))?e.index:-1;if(-1===n)return{html:"",closing:"/"===t[t.length-2]};var r="/"===(t=t.slice(n+1,-1).trim())[t.length-1];return r&&(t=t.slice(0,-1).trim()),{html:t,closing:r}}var E=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,e,n,r){return String.fromCharCode(e?parseInt(n,16):parseInt(r))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function T(t,e){if(void 0===t&&(t=""),"string"!=typeof t)return!0;if(t=E(t),m.includes(t,"base64")&&!function(t){if(""===t||""===t.trim())return!0;try{return!m.includes(t,"data:text/html;base64")}catch(t){return!0}}(t))return e&&e("data:text/html;base64"),!1;var n=["expression(","behavior:","view-source:"];if(m.some(n,function(e){return -1!==t.indexOf(e)}))return m.forEach(n,function(n){-1!==t.indexOf(n)&&e&&e(n)}),!1;var r=["data:application","data:javascript","data:text/html","data:texthtml"];if(m.some(r,function(e){return -1!==t.indexOf(e)}))return m.forEach(r,function(n){-1!==t.indexOf(n)&&e&&e(n)}),!1;if(t.indexOf("javascript:")>0)return e&&e("javascript:"),!1;if(/^javascript:/i.test(t)){var i=t.slice(11).replace(/\s/g,"").trim();return!!m.some(["void","void(0)","void0","false","undefined",";"],function(t){return t===i})||(e&&e("javascript:"),!1)}return!0}var O=function(t,e){var n,r,i="<%= isSaveValidUrl =>";if("string"!=typeof t||(r=Number("<%= urlLimit =>"),void 0!==n&&(r=n),"NaN"!==t.toString()&&-1!==r&&t.length>=r)||T(t,e))return t;try{if(!0===(i=JSON.parse(i))||"true"===i){var a=new URL(t);return a.origin+a.pathname}}catch(t){}return"#"};function R(t,e,r){if(void 0===t&&(t=""),void 0===e&&(e=[]),"string"!=typeof t)return!0;if(!T(t=E(t)))return!1;var i,a={url:(i=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:i[1],slash:i[2],host:i[3],port:i[4],path:i[5],query:i[6],hash:i[7]},o=a.scheme,s=a.host;return r?!!r(t):!(!o||!s)&&(!m.includes(["http","https","file"],o)||("object"==typeof window&&window&&(e=n(n([],e,!0),[location.host],!1)),m.some(e,function(t){return!!(t instanceof RegExp&&t.test(s))||t===s})))}var W={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:[]},I={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var t=x(this.collect),e=t.count,n=t.ret;return this.collect=null,{collectKey:0===e?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(t,e,r){return t&&m.indexOf(["href","src"],e)>-1?I.domainWhiteList&&Array.isArray(I.domainWhiteList)&&I.domainWhiteList.length>0&&!R(r,n([],I.domainWhiteList,!0))?"":"".concat(e,'="').concat(O(r,function(t){var e;null===(e=I.collect)||void 0===e||e.filterProtocol.push(t)}),'"'):t&&(m.indexOf(["style","class","id"],e)>-1||e.indexOf("data-")>-1)?"".concat(e,'="').concat(r,'"'):(I.collect.whiteList[t]=I.collect.whiteList[t]||[],void I.collect.whiteList[t].push(e))},onIgnoreTag:function(t,e){if("style"===t)return e;_(e,function(t,e,n,r){w(A(r).html.replace("/",""),function(t){I.collect.whiteList[n]=I.collect.whiteList[n]||[],I.collect.whiteList[n].push(t)})},p)},whiteList:W,mergeWhiteList:function(t){for(var e,n={},r=0,i=m.keys(W);r<i.length;r++)n[e=i[r]]=m.from(W[e]);for(var a=0,o=m.keys(t);a<o.length;a++)n[e=o[a]]=e in W?W[e].concat(t[e]):m.from(t[e]);return n},setWhiteList:function(t){for(var e=0,n=m.keys(t);e<n.length;e++){var r=n[e];this.whiteList[r]=r in W?W[r].concat(t[r]):m.from(t[r])}}};try{var V={},Z="merge";m.includes(Z,"override")&&(I.whiteList=V.whiteList),m.includes(Z,"merge")&&I.setWhiteList(V.whiteList)}catch(t){}var F=function(t,e){for(var n={},r=0,i=m.keys(t);r<i.length;r++){var a=i[r];Array.isArray(t[a])?n[a]=m.from(t[a]):n[a]=F({},t[a])}for(var o=0,s=m.keys(e);o<s.length;o++)(a=s[o])in t?Array.isArray(t[a])?n[a]=t[a].concat(e[a]):n[a]=F(t[a],e[a]):Array.isArray(e[a])?n[a]=m.from(e[a]):n[a]=F({},e[a]);return n},M={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 N={};N.blackAttrRegExps&&(N.blackAttrRegExps=N.blackAttrRegExps.map(function(t){return new RegExp(t.toString().slice(1,t.toString().length-1))}));var Y="merge";m.includes(Y,"override")&&(M=N),m.includes(Y,"merge")&&(M=F(M,N))}catch(t){}var X={mode:"black",whiteList:{},blackConfig:M,collect:null,initCollect:function(){X.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var t=x(X.collect),e=t.count,n=t.ret;return X.collect=null,{collectKey:0===e?null:JSON.stringify(n),collectMode:"black"}},onIgnoreTag:function(t,e){var n;if(!m.includes(M.blackTags,t))return _(e,function(t,e,n,r,i){if(-1!==n.indexOf("/"))return p(r);if(i)return"</".concat(n,">");var a=A(r),o=w(a.html,function(t,e){var r,i=0;if(M.blackList[n]&&m.includes(M.blackList[n],t)&&(X.collect.blackList[n]=X.collect.blackList[n]||[],X.collect.blackList[n].push(t),i++),M.blackAttrRegExps.length&&M.blackAttrRegExps.some(function(e){return e.test(t)})&&m.forEach(M.blackAttrRegExps,function(e){e.test(t)&&(X.collect.blackAttrRegExps.push("".concat(e.toString(),"->").concat(t)),i++)}),M.blackAttrs.length&&m.includes(M.blackAttrs,t)&&(M.blackAttrs.push(t),i++),!i){if(M.filterList&&M.filterList[n]&&m.includes(M.filterList[n],t)){var a=O(e,function(t){var e;null===(e=X.collect)||void 0===e||e.filterProtocol.push(t)});return a!==e&&(X.collect.filterList[n]=X.collect.filterList[n]||[],X.collect.filterList[n].push(t)),e?"".concat(t,"='").concat(a,"'"):t}return M.filterAttrs&&m.includes(M.filterAttrs,t)?((a=O(e,function(t){var e;null===(e=X.collect)||void 0===e||e.filterProtocol.push(t)}))!==e&&(null===(r=X.collect)||void 0===r||r.filterAttrs.push(t)),e?"".concat(t,"='").concat(a,"'"):t):e?"".concat(t,"='").concat(e,"'"):t}});return r="<".concat(n),o&&(r+=" ".concat(o)),a.closing&&(r+=" /"),r+=">"},p);null===(n=X.collect)||void 0===n||n.blackTags.push(t)}},D=function(t){var e=t.reportOnly,n=void 0===e||e,r=t.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),r?"enforce":n?"report":"enforce")},G=function(t){return function(n,r,i){if(!n||"string"!=typeof n)return n;var a=r;t===j&&(a=I).initCollect();var o=t(n,a);if(L(o)===L(n))return n;if(!i)return o;var s=i.logType,l=D(i),c=a.removeCollect();return C.report(e(e({type:s,disposition:l},c),{sourceText:y(n),filterText:y(o)})),"enforce"===l?o:n}},J=G(function(t,e){return void 0===e&&(e={}),e&&e.whiteList||(e.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 P(e).process(t)}),H=G(j),z=function(t,e,n){var r=[],i=O(t,function(t){r.push(t)});if(i===t)return t;r=m.from(m.uniq(r));var a=e||n||{};if(!a)return i;var o=a.logType,s=D(n);return C.report({type:o,disposition:s,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:y(t),filterText:y(i)}),"enforce"===s?i:t},B=k._xssProject||{},U=k.xssNamespace||{},K="3.0.26",Q={FilterXSS:P,version:K,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:J,_filterXSS:H,filterUrl:z,Config:I,BlackConfig:X,project:B,setProjectName:function(t){B[t]=this,k._xssProjectName=t}};U.douyin_web=Q,k.xssNamespace=U,k.Math&&!k.Math.xssNamespace&&(k.Math.xssNamespace=U),B[K]=Q,k.globalThis=k,k.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:Q},k.xss=Q,k.isSafeUrl=R,k.isSafeDomain=R,k.isSafeProtocol=T,k._xssProject=B,k._xssProjectName&&(B[k._xssProjectName]=Q);var q=Q.setProjectName.bind(Q);t.BlackConfig=X,t.Config=I,t.FilterXSS=P,t._filterXSS=H,t.filterUrl=z,t.filterXSS=J,t.isSafeDomain=R,t.isSafeProtocol=T,t.isSafeUrl=R,t.project=B,t.setProjectName=q,t.setXssNamespace=function(t){var e=t.appId,n=t.bid,r=t.region;U[e]=Q;I.bid=n,I.region=r,I.enabled=!0},t.xssNamespace=U,Object.defineProperty(t,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["60672"],{440608:function(t,e,n){"use strict";function r(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(t){n(t);return}s.done?e(l):Promise.resolve(l).then(r,i)}n.d(e,{p:function(){return c}});function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r,i,a;r=t,i=e,a=n[e],i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a})}return t}function a(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}var o=function(){};function s(t){return l.apply(this,arguments)}function l(){var t;return t=function(t){var e,n,r,i,a,s,l,c,u,d,h,f,p,m,g,v,y;return function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,function(b){switch(b.label){case 0:e=t.url,n=t.method,r=t.data,a=void 0===(i=t.success)?o:i,l=void 0===(s=t.fail)?o:s,u=void 0!==(c=t.withCredentials)&&c,h=void 0===(d=t.getResponseText)?o:d,f={method:n,headers:{"Content-Type":"application/json"},credentials:u?"include":"omit"},"POST"===n&&r&&(f.body=r),b.label=1;case 1:return b.trys.push([1,4,,5]),[4,fetch(e,f)];case 2:return[4,(p=b.sent()).text()];case 3:if(m=b.sent(),h(m),p.status>=400)throw Error(m||p.statusText);return g=m.trim()?JSON.parse(m):{},a(g),[3,5];case 4:var _,w;return _=v=b.sent(),y=(null!=(w=Error)&&"undefined"!=typeof Symbol&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](_):_ instanceof w)?v:Error("Network request failed"),l(y),[3,5];case 5:return[2]}})},(l=function(){var e=this,n=arguments;return new Promise(function(i,a){var o=t.apply(e,n);function s(t){r(o,i,a,s,l,"next",t)}function l(t){r(o,i,a,s,l,"throw",t)}s(void 0)})}).apply(this,arguments)}var c=function(){return window.fetch?{get:function(t){s(a(i({},t),{method:"GET"})).catch(o)},post:function(t){s(a(i({},t),{method:"POST"})).catch(o)}}:{get:o,post:o}}},66472:function(t,e,n){"use strict";n.r(e),n.d(e,{componentsToDebugString:function(){return tt},default:function(){return ti},getFullscreenElement:function(){return W},getScreenFrame:function(){return Y},hashComponents:function(){return te},isAndroid:function(){return I},isChromium:function(){return E},isDesktopSafari:function(){return O},isEdgeHTML:function(){return A},isGecko:function(){return R},isTrident:function(){return j},isWebKit:function(){return T},load:function(){return tr},loadSources:function(){return C},murmurX64Hash128:function(){return ta},prepareForSources:function(){return tn},sources:function(){return $},transformSource:function(){return x},withIframe:function(){return Z}});var r,i,a=n(954090),o="3.4.2";function s(t,e){return new Promise(function(n){return setTimeout(n,t,e)})}function l(t){return!!t&&"function"==typeof t.then}function c(t,e){try{var n=t();l(n)?n.then(function(t){return e(!0,t)},function(t){return e(!1,t)}):e(!0,n)}catch(t){e(!1,t)}}function u(t,e,n){return void 0===n&&(n=16),(0,a.mG)(this,void 0,void 0,function(){var r,i,o,l;return(0,a.Jh)(this,function(a){switch(a.label){case 0:r=Array(t.length),i=Date.now(),o=0,a.label=1;case 1:if(!(o<t.length))return[3,4];if(r[o]=e(t[o],o),!((l=Date.now())>=i+n))return[3,3];return i=l,[4,s(0)];case 2:a.sent(),a.label=3;case 3:return++o,[3,1];case 4:return[2,r]}})})}function d(t){t.then(void 0,function(){})}function h(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]+e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]+e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]+e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]+e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function f(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]*e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]*e[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=t[3]*e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]*e[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[2]*e[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[3]*e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function p(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e|t[0]>>>32-e]:(e-=32,[t[1]<<e|t[0]>>>32-e,t[0]<<e|t[1]>>>32-e])}function m(t,e){return 0==(e%=64)?t:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e]:[t[1]<<e-32,0]}function g(t,e){return[t[0]^e[0],t[1]^e[1]]}function v(t){return t=f(t=g(t,[0,t[0]>>>1]),[4283543511,3981806797]),t=f(t=g(t,[0,t[0]>>>1]),[3301882366,444984403]),t=g(t,[0,t[0]>>>1])}function y(t,e){e=e||0;var n,r=(t=t||"").length%16,i=t.length-r,a=[0,e],o=[0,e],s=[0,0],l=[0,0],c=[2277735313,289559509],u=[1291169091,658871167];for(n=0;n<i;n+=16)s=[255&t.charCodeAt(n+4)|(255&t.charCodeAt(n+5))<<8|(255&t.charCodeAt(n+6))<<16|(255&t.charCodeAt(n+7))<<24,255&t.charCodeAt(n)|(255&t.charCodeAt(n+1))<<8|(255&t.charCodeAt(n+2))<<16|(255&t.charCodeAt(n+3))<<24],l=[255&t.charCodeAt(n+12)|(255&t.charCodeAt(n+13))<<8|(255&t.charCodeAt(n+14))<<16|(255&t.charCodeAt(n+15))<<24,255&t.charCodeAt(n+8)|(255&t.charCodeAt(n+9))<<8|(255&t.charCodeAt(n+10))<<16|(255&t.charCodeAt(n+11))<<24],s=p(s=f(s,c),31),a=h(a=p(a=g(a,s=f(s,u)),27),o),a=h(f(a,[0,5]),[0,1390208809]),l=p(l=f(l,u),33),o=h(o=p(o=g(o,l=f(l,c)),31),a),o=h(f(o,[0,5]),[0,944331445]);switch(s=[0,0],l=[0,0],r){case 15:l=g(l,m([0,t.charCodeAt(n+14)],48));case 14:l=g(l,m([0,t.charCodeAt(n+13)],40));case 13:l=g(l,m([0,t.charCodeAt(n+12)],32));case 12:l=g(l,m([0,t.charCodeAt(n+11)],24));case 11:l=g(l,m([0,t.charCodeAt(n+10)],16));case 10:l=g(l,m([0,t.charCodeAt(n+9)],8));case 9:l=p(l=f(l=g(l,[0,t.charCodeAt(n+8)]),u),33),o=g(o,l=f(l,c));case 8:s=g(s,m([0,t.charCodeAt(n+7)],56));case 7:s=g(s,m([0,t.charCodeAt(n+6)],48));case 6:s=g(s,m([0,t.charCodeAt(n+5)],40));case 5:s=g(s,m([0,t.charCodeAt(n+4)],32));case 4:s=g(s,m([0,t.charCodeAt(n+3)],24));case 3:s=g(s,m([0,t.charCodeAt(n+2)],16));case 2:s=g(s,m([0,t.charCodeAt(n+1)],8));case 1:s=p(s=f(s=g(s,[0,t.charCodeAt(n)]),c),31),a=g(a,s=f(s,u))}return a=g(a,[0,t.length]),a=h(a,o=g(o,[0,t.length])),o=h(o,a),a=v(a),a=h(a,o=v(o)),o=h(o,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function b(t){return parseInt(t)}function _(t){return parseFloat(t)}function w(t,e){return"number"==typeof t&&isNaN(t)?e:t}function S(t){return t.reduce(function(t,e){return t+(e?1:0)},0)}function L(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function P(t){return t&&"object"==typeof t&&"message"in t?t:{message:t}}function k(t){return"function"!=typeof t}function C(t,e,n){var r=Object.keys(t).filter(function(t){return!function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return!1}(n,t)}),i=u(r,function(n){var r,i,a;return r=t[n],i=e,d(a=new Promise(function(t){var e=Date.now();c(r.bind(null,i),function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=Date.now()-e;if(!n[0])return t(function(){return{error:P(n[1]),duration:i}});var a=n[1];if(k(a))return t(function(){return{value:a,duration:i}});t(function(){return new Promise(function(t){var e=Date.now();c(a,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=i+Date.now()-e;if(!n[0])return t({error:P(n[1]),duration:a});t({value:n[1],duration:a})})})})})})),function(){return a.then(function(t){return t()})}});return d(i),function(){return(0,a.mG)(this,void 0,void 0,function(){var t,e,n;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return[4,i];case 1:return[4,u(a.sent(),function(t){var e=t();return d(e),e})];case 2:return[4,Promise.all(a.sent())];case 3:for(n=0,t=a.sent(),e={};n<r.length;++n)e[r[n]]=t[n];return[2,e]}})})}}function x(t,e){var n=function(t){return k(t)?e(t):function(){var n=t();return l(n)?n.then(e):e(n)}};return function(e){var r=t(e);return l(r)?r.then(n):n(r)}}function j(){var t=window,e=navigator;return S(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function A(){var t=window,e=navigator;return S(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!j()}function E(){var t=window,e=navigator;return S(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function T(){var t=window,e=navigator;return S(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function O(){var t=window;return S(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function R(){var t,e,n=window;return S(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function W(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function I(){var t=E(),e=R();if(!t&&!e)return!1;var n=window;return S(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function V(t){var e=Error(t);return e.name=t,e}function Z(t,e,n){var r,i,o;return void 0===n&&(n=50),(0,a.mG)(this,void 0,void 0,function(){var l,c;return(0,a.Jh)(this,function(a){switch(a.label){case 0:l=document,a.label=1;case 1:if(l.body)return[3,3];return[4,s(n)];case 2:return a.sent(),[3,1];case 3:c=l.createElement("iframe"),a.label=4;case 4:return a.trys.push([4,,10,11]),[4,new Promise(function(t,n){var r=!1,i=function(){r=!0,t()};c.onload=i,c.onerror=function(t){r=!0,n(t)};var a=c.style;a.setProperty("display","block","important"),a.position="absolute",a.top="0",a.left="0",a.visibility="hidden",e&&"srcdoc"in c?c.srcdoc=e:c.src="about:blank",l.body.appendChild(c);var o=function(){var t,e;if(!r)(null===(e=null===(t=c.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)==="complete"?i():setTimeout(o,10)};o()})];case 5:a.sent(),a.label=6;case 6:if(null===(i=null===(r=c.contentWindow)||void 0===r?void 0:r.document)||void 0===i?void 0:i.body)return[3,8];return[4,s(n)];case 7:return a.sent(),[3,6];case 8:return[4,t(c,c.contentWindow)];case 9:return[2,a.sent()];case 10:return null===(o=c.parentNode)||void 0===o||o.removeChild(c),[7];case 11:return[2]}})})}var F=["monospace","sans-serif","serif"],M=["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 N(t){return t.toDataURL()}function Y(){var t=this;return!function(){if(void 0===i){var t=function(){var e=X();D(e)?i=setTimeout(t,2500):(r=e,i=void 0)};t()}}(),function(){return(0,a.mG)(t,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(e){switch(e.label){case 0:var n;if(!D(t=X()))return[3,2];if(r)return[2,(0,a.ev)([],r,!0)];if(!W())return[3,2];return[4,((n=document).exitFullscreen||n.msExitFullscreen||n.mozCancelFullScreen||n.webkitExitFullscreen).call(n)];case 1:e.sent(),t=X(),e.label=2;case 2:return!D(t)&&(r=t),[2,t]}})})}}function X(){var t=screen;return[w(_(t.availTop),null),w(_(t.width)-_(t.availWidth)-w(_(t.availLeft),0),null),w(_(t.height)-_(t.availHeight)-w(_(t.availTop),0),null),w(_(t.availLeft),null)]}function D(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function G(t){t.style.setProperty("display","block","important")}function J(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function H(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function z(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function B(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function U(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var K=Math,Q=function(){return 0},q={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},$={fonts:function(){return Z(function(t,e){var n=e.document,r=n.body;r.style.fontSize="48px";var i=n.createElement("div"),a={},o={},s=function(t){var e=n.createElement("span"),r=e.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,e.textContent="mmMwWLliI0O&1",i.appendChild(e),e},l=F.map(s),c=function(){for(var t={},e=function(e){t[e]=F.map(function(t){var n,r;return n=e,r=t,s("'".concat(n,"',").concat(r))})},n=0;n<M.length;n++)e(M[n]);return t}();r.appendChild(i);for(var u=0;u<F.length;u++)a[F[u]]=l[u].offsetWidth,o[F[u]]=l[u].offsetHeight;return M.filter(function(t){var e;return e=c[t],F.some(function(t,n){return e[n].offsetWidth!==a[t]||e[n].offsetHeight!==o[t]})})})},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return(0,a.mG)(this,void 0,void 0,function(){var t,n,r,i,o;return(0,a.Jh)(this,function(l){switch(l.label){case 0:var c;if(!function(){return T()||I()}())return[2,void 0];return n=Object.keys(t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',(c=atob)("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",c("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",c("LnNwb25zb3JpdA=="),".ylamainos",c("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",c("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",c("LmhlYWRlci1ibG9ja2VkLWFk"),c("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",c("I2FkXzMwMFgyNTA="),c("I2Jhbm5lcmZsb2F0MjI="),c("I2NhbXBhaWduLWJhbm5lcg=="),c("I0FkLUNvbnRlbnQ=")],adGuardChinese:[c("LlppX2FkX2FfSA=="),c("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",c("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),c("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",c("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",c("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",c("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),c("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),c("LmFkZ29vZ2xl"),c("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[c("YW1wLWF1dG8tYWRz"),c("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",c("I2FkX2ludmlld19hcmVh")],adGuardRussian:[c("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),c("LnJlY2xhbWE="),'div[id^="smi2adblock"]',c("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[c("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),c("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",c("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),c("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),c("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",c("I3Jla2xhbWk="),c("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),c("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),c("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[c("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",c("LndpZGdldF9wb19hZHNfd2lkZ2V0"),c("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",c("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[c("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),c("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",c("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",c("I3Jla2xhbW5pLWJveA=="),c("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",c("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[c("I2FkdmVydGVudGll"),c("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",c("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",c("LnNwb25zb3JsaW5rZ3J1ZW4="),c("I3dlcmJ1bmdza3k="),c("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),c("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[c("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",c("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[c("LnJla2xhbW9zX3RhcnBhcw=="),c("LnJla2xhbW9zX251b3JvZG9z"),c("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),c("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),c("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[c("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:[c("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),c("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",c("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[c("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),c("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),c("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",c("LmFkX19tYWlu"),c("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[c("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[c("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),c("I2xpdmVyZUFkV3JhcHBlcg=="),c("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),c("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[c("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",c("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),c("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),c("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[c("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),c("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),c("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",c("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),c("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),c("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),c("ZGl2I3NrYXBpZWNfYWQ=")],ro:[c("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),c("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[c("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),c("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),c("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",c("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),c("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",c("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}),[4,function(t){var e;return(0,a.mG)(this,void 0,void 0,function(){var n,r,i,o,l,c,u;return(0,a.Jh)(this,function(a){switch(a.label){case 0:for(r=(n=document).createElement("div"),i=Array(t.length),o={},G(r),l=0;l<t.length;++l)"DIALOG"===(c=function(t){for(var e=function(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(t),a=i[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,l=function(t,e){o[t]=o[t]||[],o[t].push(e)};;){var c=s.exec(i[2]);if(!c)break;var u=c[0];switch(u[0]){case".":l("class",u.slice(1));break;case"#":l("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(d)l(d[1],null!==(n=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==n?n:"");else throw Error(r);break;default:throw Error(r)}}return[a,o]}(t),n=e[0],r=e[1],i=document.createElement(null!=n?n:"div"),a=0,o=Object.keys(r);a<o.length;a++){var s=o[a],l=r[s].join(" ");"style"===s?function(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var i=r[n],a=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(a){var o=a[1],s=a[2],l=a[4];t.setProperty(o,s,l||"")}}}(i.style,l):i.setAttribute(s,l)}return i}(t[l])).tagName&&c.show(),G(u=n.createElement("div")),u.appendChild(c),r.appendChild(u),i[l]=c;a.label=1;case 1:if(n.body)return[3,3];return[4,s(50)];case 2:return a.sent(),[3,1];case 3:n.body.appendChild(r);try{for(l=0;l<t.length;++l)!i[l].offsetParent&&(o[t[l]]=!0)}finally{null===(e=r.parentNode)||void 0===e||e.removeChild(r)}return[2,o]}})})}((o=[]).concat.apply(o,n.map(function(e){return t[e]})))];case 1:return r=l.sent(),e&&function(t,e){for(var n="DOM blockers debug:\n```",r=0,i=Object.keys(t);r<i.length;r++){var a=i[r];n+="\n".concat(a,":");for(var o=0,s=t[a];o<s.length;o++){var l=s[o];n+="\n ".concat(e[l]?"\uD83D\uDEAB":"➡️"," ").concat(l)}}}(t,r),(i=n.filter(function(e){var n=t[e];return S(n.map(function(t){return r[t]}))>.6*n.length})).sort(),[2,i]}})})},fontPreferences:function(){return function(t,e){return void 0===e&&(e=4e3),Z(function(n,r){var i=r.document,o=i.body,s=o.style;s.width="".concat(e,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",E()?o.style.zoom="".concat(1/r.devicePixelRatio):T()&&(o.style.zoom="reset");var l=i.createElement("div");return l.textContent=(0,a.ev)([],Array(e/20<<0),!0).map(function(){return"word"}).join(" "),o.appendChild(l),t(i,o)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(t,e){for(var n={},r={},i=0,a=Object.keys(q);i<a.length;i++){var o=a[i],s=q[o],l=s[0],c=void 0===l?{}:l,u=s[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,h=t.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var f=0,p=Object.keys(c);f<p.length;f++){var m=p[f],g=c[m];void 0!==g&&(h.style[m]=g)}n[o]=h,e.appendChild(t.createElement("br")),e.appendChild(h)}for(var v=0,y=Object.keys(q);v<y.length;v++){var o=y[v];r[o]=n[o].getBoundingClientRect().width}return r})},audio:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return -2;if(function(){var t;return T()&&!O()&&!(S(["DOMRectList"in(t=window),"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3)}())return -1;var n=new e(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,r.connect(i),i.connect(n.destination),r.start(0);var a=function(t){var e=function(){};return[new Promise(function(n,r){var i=!1,a=0,o=0;t.oncomplete=function(t){return n(t.renderedBuffer)};var s=function(){setTimeout(function(){return r(V("timeout"))},Math.min(500,o+5e3-Date.now()))},c=function(){try{var e=t.startRendering();switch(l(e)&&d(e),t.state){case"running":o=Date.now(),i&&s();break;case"suspended":!document.hidden&&a++,i&&a>=3?r(V("suspended")):setTimeout(c,500)}}catch(t){r(t)}};c(),e=function(){!i&&(i=!0,o>0&&s())}}),e]}(n),o=a[0],s=a[1],c=o.then(function(t){return function(t){for(var e=0,n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(4500))},function(t){if("timeout"===t.name||"suspended"===t.name)return -3;throw t});return d(c),function(){return s(),c}},screenFrame:function(){var t=this,e=Y();return function(){return(0,a.mG)(t,void 0,void 0,function(){var t,n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,e()];case 1:return t=r.sent(),[2,[(n=function(t){return null===t?null:L(t,10)})(t[0]),n(t[1]),n(t[2]),n(t[3])]]}})})}},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,n=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(e.languages)){;if(!(E()&&S([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3))n.push(e.languages)}else if("string"==typeof e.languages){var i=e.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return w(_(navigator.deviceMemory),void 0)},screenResolution:function(){var t=screen,e=function(t){return w(b(t),null)},n=[e(t.width),e(t.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return w(b(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=new e().resolvedOptions().timeZone;if(n)return n}var r=-function(){var t=new Date().getFullYear();return Math.max(_(new Date(t,0,1).getTimezoneOffset()),_(new Date(t,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){if(!(j()||A()))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&&T()&&!O()?!function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return S(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPhone":"iPad":t},plugins:function(){var t=navigator.plugins;if(!!t){for(var e=[],n=0;n<t.length;++n){var r=t[n];if(!!r){for(var i=[],a=0;a<r.length;++a){var o=r[a];i.push({type:o.type,suffixes:o.suffixes})}e.push({name:r.name,description:r.description,mimeTypes:i})}}return e}},canvas:function(){var t,e,n=!1,r=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),i=r[0],a=r[1];if(function(t,e){return!!(e&&t.toDataURL)}(i,a)){n=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(i,a);var o=N(i);o!==N(i)?t=e="unstable":(e=o,function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var i=r[n],a=i[0],o=i[1],s=i[2];e.fillStyle=a,e.beginPath(),e.arc(o,s,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(i,a),t=N(i))}else t=e="";return{winding:n,geometry:t,text:e}},touchSupport:function(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=b(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<n.length;e++){var r=n[e],i=window[r];i&&"object"==typeof i&&t.push(r)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var n=e[t];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!J("inverted")||!J("none")&&void 0},forcedColors:function(){return!!H("active")||!H("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 z("no-preference")?0:z("high")||z("more")?1:z("low")||z("less")?-1:z("forced")?10:void 0},reducedMotion:function(){return!!B("reduce")||!B("no-preference")&&void 0},hdr:function(){return!!U("high")||!U("standard")&&void 0},math:function(){var t,e,n,r,i,a,o,s,l=K.acos||Q,c=K.acosh||Q,u=K.asin||Q,d=K.asinh||Q,h=K.atanh||Q,f=K.atan||Q,p=K.sin||Q,m=K.sinh||Q,g=K.cos||Q,v=K.cosh||Q,y=K.tan||Q,b=K.tanh||Q,_=K.exp||Q,w=K.expm1||Q,S=K.log1p||Q;return{acos:l(.12312423423423424),acosh:c(1e308),acoshPf:(t=1e154,K.log(1e154+K.sqrt(t*t-1))),asin:u(.12312423423423424),asinh:d(1),asinhPf:(e=1,K.log(1+K.sqrt(e*e+1))),atanh:h(.5),atanhPf:(n=.5,K.log(1.5/(1-n))/2),atan:f(.5),sin:p(-1e300),sinh:m(1),sinhPf:(r=1,K.exp(1)-1/K.exp(r)/2),cos:g(10.000000000123),cosh:v(1),coshPf:(i=1,(K.exp(1)+1/K.exp(i))/2),tan:y(-1e300),tanh:b(1),tanhPf:(a=1,(K.exp(2)-1)/(K.exp(2*a)+1)),exp:_(1),expm1:w(1),expm1Pf:(o=1,K.exp(1)-1),log1p:S(10),log1pPf:K.log(11),powPI:(s=-100,K.pow(K.PI,-100))}},videoCard:function(){var t,e=document.createElement("canvas"),n=null!==(t=e.getContext("webgl"))&&void 0!==t?t:e.getContext("experimental-webgl");if(n&&"getExtension"in n){var r=n.getExtension("WEBGL_debug_renderer_info");if(r)return{vendor:(n.getParameter(r.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(n.getParameter(r.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]}};function tt(t){return JSON.stringify(t,function(t,e){if(e instanceof Error){var n,r;return n=e,(0,a.pi)({name:n.name,message:n.message,stack:null===(r=n.stack)||void 0===r?void 0:r.split("\n")},n)}return e},2)}function te(t){return y(function(t){for(var e="",n=0,r=Object.keys(t).sort();n<r.length;n++){var i=r[n],a=t[i],o=a.error?"error":JSON.stringify(a.value);e+="".concat(e?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(o)}return e}(t))}function tn(t){var e,n,r;return void 0===t&&(t=50),e=t,n=2*t,(r=window.requestIdleCallback)?new Promise(function(t){return r.call(window,function(){return t()},{timeout:n})}):s(Math.min(e,n))}function tr(t){var e=void 0===t?{}:t,n=e.delayFallback,r=e.debug,i=e.monitoring,s=void 0===i||i;return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return s&&!function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),t.send()}catch(t){}}(),[4,tn(n)];case 1:var e,i;return t.sent(),[2,(e=C($,{debug:r},[]),i=r,Date.now(),{get:function(t){return(0,a.mG)(this,void 0,void 0,function(){var n,r;return(0,a.Jh)(this,function(n){switch(n.label){case 0:return Date.now(),[4,e()];case 1:return r=function(t){var e,n,r;return{get visitorId(){return void 0===r&&(r=te(this.components)),r},set visitorId(visitorId){r=visitorId},confidence:(n=function(t){return L(.99+.01*t,1e-4)}(e=function(t){if(I())return .4;if(T())return O()?.5:.3;var e=t.platform.value||"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}(t)),{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}),components:t,version:o}}(n.sent()),i||null==t||t.debug,[2,r]}})})}})]}})})}var ti={load:tr,hashComponents:te,componentsToDebugString:tt},ta=y},659456:function(t,e,n){"use strict";n.d(e,{n:function(){return d}});var r=n(315355),i=n(919209),a=n(732905),o=n(625813),s=n(92833),l=n(272787),c=n(483803),u=n(19470),d=function(t){(0,o.Z)(n,t);var e=(0,s.Z)(n);function n(){var t;(0,r.Z)(this,n);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return t=e.call.apply(e,[this].concat(o)),(0,l.Z)((0,a.Z)(t),"priority",30),(0,l.Z)((0,a.Z)(t),"incompatibleTokens",["t","T"]),t}return(0,i.Z)(n,[{key:"parse",value:function(t,e){return(0,u.jg)((0,u.ZL)(e.length,t),function(t){return Math.floor(t*Math.pow(10,-e.length+3))})}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}]),n}(c._)},142945:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;var s=o[0],l=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}(l,function(t){return t.test(s)}):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}(l,function(t){return t.test(s)});return n=t.valueCallback?t.valueCallback(c):c,{value:n=r.valueCallback?r.valueCallback(n):n,rest:e.slice(s.length)}}};t.exports=e.default},331085:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},978865:function(t,e,n){var r=n(584897),i=n(340378),a=n(79594);t.exports=function(t,e){var n={};return e=a(e,3),i(t,function(t,i,a){r(n,i,e(t,i,a))}),n}},636513:function(t,e,n){"use strict";n.r(e)},100318:function(t,e,n){"use strict";n(932651);var r=n(795233),i=n.n(r),a=n(469935),o=n.n(a),s=n(622689),l=n.n(s),c=n(101199),u=n(680093),d=n(627658),h=n(426337),f=n(67495),p=n(451659),m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};class g extends h.Z{componentDidMount(){this.foundation.init()}componentDidUpdate(t){if(!("number"==typeof t.value&&isNaN(t.value)&&"number"==typeof this.props.value&&isNaN(this.props.value)))t.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:t=>{this.setState({value:t})},getProps:()=>this.props,isInProps:t=>t in this.props,notifyChange:t=>{this.props.onChange&&this.props.onChange(t)}})}render(){let t;let e=this.props,{children:n,options:r,mode:i,prefixCls:a,className:s,style:l,direction:d,type:h,buttonSize:g,id:v}=e,y=m(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),b=h===u.j2.TYPE_BUTTON,_=h===u.j2.TYPE_PURECARD,w=h===u.j2.TYPE_CARD||_,S=h===u.j2.TYPE_DEFAULT,L=a||u.hl.PREFIX,P=o()(s,{[L]:!0,[`${L}-wrapper`]:!0,[`${L}-${d}`]:d&&!b,[`${L}-${d}-default`]:d&&S,[`${L}-${d}-card`]:d&&w,[`${L}-buttonRadio`]:b}),k=this.state.value;return r?t=(r||[]).map((t,e)=>"string"==typeof t?c.createElement(p.Z,{key:e,disabled:this.props.disabled,value:t},t):c.createElement(p.Z,{key:e,disabled:t.disabled||this.props.disabled,value:t.value,extra:t.extra,className:t.className,style:t.style,addonId:t.addonId,addonStyle:t.addonStyle,addonClassName:t.addonClassName,extraId:t.extraId},t.label)):n&&(t=c.Children.map(n,(t,e)=>c.isValidElement(t)?c.cloneElement(t,{key:e}):null)),c.createElement("div",Object.assign({className:P,style:l,id:v,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(y)),c.createElement(f.Z.Provider,{value:{radioGroup:{onChange:this.onChange,value:k,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:b,isCardRadio:w,isPureCardRadio:_,buttonSize:g,prefixCls:a},mode:i}},t))}constructor(t){super(t),this.onChange=t=>{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:t.value||t.defaultValue},this.foundation=new d.Z(this.adapter)}}g.propTypes={defaultValue:l().any,disabled:l().bool,name:l().string,options:l().array,buttonSize:l().oneOf(u.j2.BUTTON_SIZE),type:l().oneOf([u.j2.TYPE_DEFAULT,u.j2.TYPE_BUTTON,u.j2.TYPE_CARD,u.j2.TYPE_PURECARD]),value:l().any,onChange:l().func,children:l().node,prefixCls:l().string,className:l().string,style:l().object,direction:l().oneOf(u.j2.DIRECTION_SET),mode:l().oneOf(u.j2.MODE),"aria-label":l().string,"aria-describedby":l().string,"aria-errormessage":l().string,"aria-invalid":l().bool,"aria-labelledby":l().string,"aria-required":l().bool,id:l().string},g.defaultProps={disabled:!1,onChange:i(),direction:u.j2.DEFAULT_DIRECTION,mode:"",type:u.j2.TYPE_DEFAULT,buttonSize:"middle"},e.Z=g},240054:function(t,e,n){"use strict";n.d(e,{U:function(){return i}});var r=n(707852);let i={PREFIX:`${r.T}-audio-player`}},800658:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}}),n(932651);var r=n(78430),i=n(708863),a=n(856445),o=n(109242),s=n(214684);class l extends a.Z{init(){}destroy(){}selectYear(t,e){let{currentYear:n,currentMonth:r}=this.getStates(),{type:i}=this.getProps(),a=o.j2.PANEL_TYPE_LEFT,l=o.j2.PANEL_TYPE_RIGHT,c=(0,s.ZP)(n);if(c[e]=t.value,"monthRange"===i){let n=c[a]===c[l]&&r[a]>r[l];e===a&&t.value>c[l]||e===a&&n?c[l]=t.value+1:e===l&&n&&(c[a]=t.value-1)}this._adapter.setCurrentYear(c,()=>this.autoSelectMonth(t,e,c)),this._adapter.notifySelectYear(c)}selectMonth(t,e){let{currentMonth:n,currentYear:r}=this.getStates(),{type:i}=this.getProps(),a=o.j2.PANEL_TYPE_LEFT,l=o.j2.PANEL_TYPE_RIGHT,c=(0,s.ZP)(n);c[e]=t.month,"monthRange"===i&&e===a&&r[a]===r[l]&&t.value>c[l]&&(c[l]=t.month),this._adapter.setCurrentMonth(c),this._adapter.notifySelectMonth(c)}autoSelectMonth(t,e,n){let{disabledDate:a,locale:s}=this._adapter.getProps(),{months:l,currentMonth:c}=this._adapter.getStates(),u=e===o.j2.PANEL_TYPE_LEFT?"right":"left",d=(0,r.Z)(Date.now(),t.year),h=a((0,i.Z)(d,c[e]-1)),f=a((0,i.Z)((0,r.Z)(Date.now(),n[u]),c[u]-1));if(!h&&!f)return;let p=n,m=c;if(h){let n;let r=l.findIndex(t=>{let{month:n}=t;return n===c[e]});!(n=l.slice(r).find(t=>{let{month:e}=t;return!a((0,i.Z)(d,e-1))}))&&(n=l.slice(0,r).find(t=>{let{month:e}=t;return!a((0,i.Z)(d,e-1))})),n&&!f?m[e]=n.month:n&&f&&(p={left:t.year,right:t.year},m={left:n.month,right:n.month})}else!h&&f&&(p={left:t.year,right:t.year},m={left:c[e],right:c[e]});this._adapter.setCurrentYearAndMonth(p,m),this._adapter.notifySelectYearAndMonth(p,m)}backToMain(){this._adapter.notifyBackToMain()}constructor(t){super(Object.assign({},t))}}},712711:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(480333),i=n(629686),a=n(402748);n(374954),n(932651);var o=n(299690),s=n(846766),l=n(268474),c=n(938631);let u=t=>{let{TTCommon:e}=window;return e?(u=t=>{if(!t)return 0;try{let{alg_type:n,sharp_level:r,scale_type:i,sr_enable:a,sr_local_error:o,proc_avg:s,render_from:l}=JSON.parse(e.executeWithElement(t,"getSrCurrentInfo",""))||{};return{is_super_resolution:3===a&&0===o||!o&&s>0?1:0,sr_alg_type:n,sr_sharp_level:r,sr_scale_type:i,sr_enable:a,sr_local_error:o,sr_render_from:l}}catch(t){return{}}})(t):(u=()=>{},{})};class d{init(){this.initLog(),this.initEvt()}initLog(){let t=(0,s.Kj)(this.options);this.log=(0,s.Px)(this.options),this.tea=new c.Z(this.options,t)}initEvt(){var t,e,n;let r=this._player;r&&(this._player.on(o.le.SEI,this.handleSEIParsed),this._player.on(o.wW,this.handleError),this._player.on(o.le.TTFB,this.handleTTFB),this._player.on(o.le.RESPONSEHEADERS,this.setCdnIp),this._player.on(o.le.METADATA,this.handleMetaDataLoaded),this._player.on(o.le.PROP_SPEED,this.handleSpeedUpdate),this._player.on("rtm_timing",this.handleRTCTiming),this._player.on(o.le.RTM_WEBTS_TIMING,this.handleRTMWebTsTiming),this._player.on("pause",this.handlePause),this._player.once(o.le.KEYFRAME,this.handleKeyframe),this._player.on(o.le.PROP_ENDEDSTATUS,this.handleEndStatus),this._player.on(o.le.RTM_NETWORK,this.handleRTMNetwork),null===(t=this._player._core)||void 0===t||t.on("srstate_change",this.handleSRStateChange),null===(e=this._player._core)||void 0===e||e.on("workerinit",this.handleWorkerInit),null===(n=this._player._core)||void 0===n||n.on("av-unsync",this.handleAVUnsync),r.addEventListener("loadstart",this.reportStartPlay),r.addEventListener("loadeddata",this.handleLoadeddata),r.addEventListener("canplay",this.handleCanplay),r.addEventListener("waiting",this.handleWaiting),r.addEventListener("playing",this.handleOncePlaying),r.addEventListener("playing",this.handlePlaying),r.addEventListener("timeupdate",this.handleTimeupdate),r.addEventListener("ended",this.handleEnd),r.addEventListener("degrade",this.handleDegrade),this.initWindowListener())}offEvt(){var t,e,n;let r=this._player;r&&(this._player.off(o.le.SEI,this.handleSEIParsed),this._player.off(o.wW,this.handleError),this._player.off(o.le.TTFB,this.handleTTFB),this._player.off(o.le.RESPONSEHEADERS,this.setCdnIp),this._player.off(o.le.METADATA,this.handleMetaDataLoaded),this._player.off(o.le.PROP_SPEED,this.handleSpeedUpdate),this._player.off("rtm_timing",this.handleRTCTiming),this._player.off(o.le.RTM_WEBTS_TIMING,this.handleRTMWebTsTiming),this._player.off("pause",this.handlePause),this._player.off(o.le.KEYFRAME,this.handleKeyframe),this._player.off(o.le.PROP_ENDEDSTATUS,this.handleEndStatus),this._player.off(o.le.RTM_NETWORK,this.handleRTMNetwork),null===(t=this._player._core)||void 0===t||t.off("srstate_change",this.handleSRStateChange),null===(e=this._player._core)||void 0===e||e.off("workerinit",this.handleWorkerInit),null===(n=this._player._core)||void 0===n||n.off("av-unsync",this.handleAVUnsync),r.removeEventListener("loadstart",this.reportStartPlay),r.removeEventListener("loadeddata",this.handleLoadeddata),r.removeEventListener("canplay",this.handleCanplay),r.removeEventListener("waiting",this.handleWaiting),r.removeEventListener("playing",this.handleOncePlaying),r.removeEventListener("playing",this.handlePlaying),r.removeEventListener("timeupdate",this.handleTimeupdate),r.removeEventListener("ended",this.handleEnd),r.removeEventListener("degrade",this.handleDegrade),this.removeWindowListener())}initWindowListener(){window.addEventListener("beforeunload",this.destroyFunc)}removeWindowListener(){window.removeEventListener("beforeunload",this.destroyFunc)}stallEnd(){let t=(0,l.Xn)();if(this.inWaitingStart){let e=t-this.inWaitingStart;e>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e,this.log.playing.stall_time+=t-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=t,this.log.playing.stall_count++,this.tea.push(this.log.stall))}this.inWaitingStart=0}reportPause(){this.log.pause.timestamp=(0,l.Xn)(),this.tea.push(this.log.pause)}handleUserLeave(){if(!this.destroyed&&!!this.started)this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval()}reportPlayStop(){this.tea.push(this.log.play_stop)}updatePlayStopParams(){let t=(0,l.Xn)(),e=t-this.log.start_play.start_play_time,{play_stop:n}=this.log;if(this.inWaitingStart&&t-this.inWaitingStart>200&&(n.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,Object.assign(n,{stall_time_per_100sec:n.stall_time/e*100,stall_count_per_100sec:1e3*n.stall_count/e*100}),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),!(this.log.play_stop.stall_time_per_100sec>100)&&!(this.log.play_stop.stall_time_per_100sec<0))this.log.playing.index?(Object.assign(this.log.playing,{is_last:1}),this.reportPlaying(!1)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.msg),Object.assign(n,{duration:e/1e3,play_time:e})}reportPlaying(t){this.log.playing.index++;let e=this.log.playing.timestamp,n=0,r=(0,l.Xn)();this.inWaitingStart&&this.inWaitingStart<r&&(n=Math.min(this.log.playing.play_time,r-Math.max(this.inWaitingStart,e))),this.getPlayerQuality(),this.getPlayerBuffer(),this.updateSpeedAndFPS();let o=r-e;o<0&&(o=1e4),n>200&&(this.log.playing.stall_time+=n,this.log.playing.stall_count++),Object.assign(this.log.playing,{duration:t?0:o/1e3,stall_time_per_100sec:t?0:this.log.playing.stall_time/o*100,stall_count_per_100sec:t?0:1e3*this.log.playing.stall_count/o*100,first_frame_view:this.log.first_frame.first_frame_view}),this.log.playing.video_render_stall_time_per_100sec=this.log.playing.stall_time_per_100sec,this.log.playing.video_render_stall_count_per_100sec=this.log.playing.stall_count_per_100sec,this.log.playing.timestamp=r,this.tea.push(Object.assign((0,a._)((0,i._)({},u(this._player._video)),{time_hour:new Date(r).getHours()}),this.log.playing)),this.log.playing.stall_time=0,this.log.playing.stall_count=0,this.log.playing.rtm_network=[]}setPlayResultTimer(){this.clearPlayResultTimer(),this.log.play_result.start=(0,l.Xn)(),this.playResultTimer=setTimeout(()=>{if(!(this.log.play_result.timestamp>=this.log.play_result.start))this.log.play_result.elapsed=(0,l.Xn)()-this.log.play_result.start,this.log.play_result.is_shorter=+(this.log.play_result.elapsed<this.log.play_result.threshold),!this.log.play_result.is_shorter&&(this.log.play_result.is_threshold=1,this.tea.push(this.log.play_result))},this.log.play_result.threshold)}clearPlayResultTimer(){clearTimeout(this.playResultTimer)}clearPlayingInterval(){clearInterval(this.intervalId)}getPlayerBuffer(){let t=this._player,e=t.buffered;if(e){let n=Math.max(0,e.length-1);try{let r=(e.end(n)-t.currentTime)*1e3;return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(t){}}return 0}getBuffered(){let t=[];try{for(let e=0;e<this._player.buffered.length;e++)t.push([this._player.buffered.start(e),this._player.buffered.end(e)])}catch(t){}return t}getPlayerQuality(){let t=this._player;try{let e=t.getVideoPlaybackQuality();this.log.playing.drop_count=e.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=this.log.playing.drop_count/(e.totalVideoFrames-this.tempTotalFrameCount),this.log.play_stop.drop_percent=e.droppedVideoFrames/e.totalVideoFrames,this.tempDroppedFrameCount=e.droppedVideoFrames,this.tempTotalFrameCount=e.totalVideoFrames,this.log.stall.drop_count=this.log.playing.drop_count,this.log.stall.drop_percent=this.log.playing.drop_percent}catch(t){}}updateSpeedAndFPS(){if(this.speedInfo){let{totalByteSize:t,recentSpeed:e,renderFrames:n,demuxFrames:r,decodeFrames:i,decodedFrames:a}=this.speedInfo,o=(0,l.Xn)(),s=o-this.playingSpeedInfoCache.timestamp;if(this.playingSpeedInfoCache.timestamp){if(t>=this.playingSpeedInfoCache.totalByteSize){let n=t-this.playingSpeedInfoCache.totalByteSize;this.log.playing.downloaded_size=n,this.log.playing.download_speed=8*n/s,this.log.playing.current_speed=e/8e3}else this.log.playing.downloaded_size=t,this.log.playing.download_speed=e/1e3,this.log.playing.current_speed=e/8e3;let o=n-this.playingSpeedInfoCache.renderFrames;this.log.playing.render_fps=o/s*1e3,Object.assign(this.log.playing,{demux_frames:r-this.playingSpeedInfoCache.demuxFrames,decode_frames:i-this.playingSpeedInfoCache.decodeFrames,decoded_frames:a-this.playingSpeedInfoCache.decodedFrames,render_frames:o})}else this.log.playing.downloaded_size=t,this.log.playing.current_speed=e/8e3;this.playingSpeedInfoCache={totalByteSize:t,demuxFrames:r,decodeFrames:i,decodedFrames:a,renderFrames:n,timestamp:o}}}constructor(t){var e=this;(0,r._)(this,"options",void 0),(0,r._)(this,"_player",void 0),(0,r._)(this,"log",{}),(0,r._)(this,"tea",void 0),(0,r._)(this,"inWaitingStart",0),(0,r._)(this,"tempDroppedFrameCount",0),(0,r._)(this,"tempTotalFrameCount",0),(0,r._)(this,"started",!1),(0,r._)(this,"firstFrameViewed",!1),(0,r._)(this,"destroyed",!1),(0,r._)(this,"loadeddata",!1),(0,r._)(this,"speedInfo",void 0),(0,r._)(this,"playingSpeedInfoCache",{renderFrames:0,demuxFrames:0,decodeFrames:0,decodedFrames:0,totalByteSize:0,timestamp:0}),(0,r._)(this,"playResultTimer",void 0),(0,r._)(this,"intervalId",void 0),(0,r._)(this,"reportUrlChange",t=>{this.tea.push(Object.assign(this.log.play_url_change,{url:t}))}),(0,r._)(this,"updateExt",t=>{var e;null===(e=this.tea)||void 0===e||e.updateCommonParams(t)}),(0,r._)(this,"reportStartPlay",()=>{this.log.start_play.start_play_time=(0,l.Xn)(),!this.started&&this.tea.push(this.log.start_play),this.started=!0,this.setPlayResultTimer()}),(0,r._)(this,"handleTTFB",t=>{let{responseUrl:e,url:n,elapsed:r}=t;this.log.first_frame.ttfb=r||-1,this.log.first_frame.is_redirect=+(e!==n)}),(0,r._)(this,"setCdnIp",t=>{var e;let{headers:n,elapsed:r}=t;r&&(this.log.first_frame.sdp_elapse=r||-1),n&&(null===(e=this.tea)||void 0===e||e.updateCommonParams({cdn_ip:n["x-server-ip"]||n["X-Server-Ip"]||n["X-SERVER-IP"]}))}),(0,r._)(this,"handleMetaDataLoaded",t=>{let{trackType:e,codec:n,isEncrypted:r}=t;this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=n,this.log.play_metadata_loaded.mediaType=e,"video"===e&&this.tea.updateCommonParams({codec_type:n,is_encrypted:r?1:0}),this.tea.push(this.log.play_metadata_loaded)}),(0,r._)(this,"handleSpeedUpdate",t=>{if(this.speedInfo=t,this.speedInfo){let{recentSpeed:t,renderFrames:e}=this.speedInfo;this.log.stall.current_speed=t/8e3,this.log.stall.render_fps=e}}),(0,r._)(this,"handleRTCTiming",t=>{if(t&&"object"==typeof t){let e=t.play_start_time,n=t.dtls_connected_time,r=t.report_start_time;Object.assign(this.log.first_frame,t),e&&r&&n&&(this.log.first_frame.rtm_report_start_time=r,this.log.first_frame.rtm_first_time=e,this.log.first_frame.dtls_connected_time=n)}}),(0,r._)(this,"handleRTMWebTsTiming",t=>{"object"==typeof t&&Object.assign(this.log.first_frame,t)}),(0,r._)(this,"handleKeyframe",t=>{this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=t.pts}),(0,r._)(this,"handleEndStatus",()=>{this.stallEnd()}),(0,r._)(this,"handleRTMNetwork",t=>{this.log.playing.rtm_network.push(t)}),(0,r._)(this,"handleSRStateChange",function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.running?e.log.playing.is_super_resolution=1:(e.log.playing.is_super_resolution=0,e.log.playing.sr_code=t.code,e.log.playing.sr_message=t.message)}),(0,r._)(this,"handleWorkerInit",t=>{let{costtime:e,workerReadyTime:n,workerinitStartTime:r}=t.detail||t,o=n>this.log.start_play.start_play_time?n-r:0;this.log.play_stop.worker_init_cost=this.log.first_frame.worker_init_cost=o,this.tea.push((0,a._)((0,i._)({},this.log.worker_message),{cost_time:e,worker_init_cost:o}))}),(0,r._)(this,"handleAVUnsync",t=>{let{currentTime:e,gap:n,reason:r,direction:o,meanGap:s}=t.detail||t;this.tea.push((0,a._)((0,i._)({},this.log.play_av_unsync),{currentTime:e,duration:n,reason:r,direction:o,meanGap:s}))}),(0,r._)(this,"handleWaiting",()=>{if(!this.inWaitingStart&&!!this.firstFrameViewed&&!!this.loadeddata)!(this._player.media.currentTime<=0)&&(this.inWaitingStart=this.log.stall.stall_start=(0,l.Xn)(),this.log.stall.play_current_time=this._player.currentTime,this.log.stall.buffered=this.getBuffered(),this.log.stall.start_diff=this.inWaitingStart-this.log.first_frame.timestamp,this.log.stall.audio_buffer_time=this.getPlayerBuffer())}),(0,r._)(this,"handleLoadeddata",()=>{this.loadeddata=!0,this.reportFirstframe()}),(0,r._)(this,"handleCanplay",()=>{this.stallEnd(),this.reportFirstframe()}),(0,r._)(this,"handleOncePlaying",()=>{if(this._player.removeEventListener("playing",this.handleOncePlaying),this._player.paused){this.handlePause();return}this.playingSpeedInfoCache={totalByteSize:0,demuxFrames:0,decodeFrames:0,decodedFrames:0,renderFrames:0,timestamp:0},this.reportPlaying(!0),this.clearPlayingInterval();this.intervalId=setInterval(()=>{(100>Math.abs((0,l.Xn)()-this.log.playing.timestamp-1e4)||(0,l.Xn)()-this.log.playing.timestamp>=1e4)&&(this._player?this._player.paused?this.handlePause():this.reportPlaying(!1):this.destroyFunc())},1e3)}),(0,r._)(this,"handlePlaying",()=>{this.stallEnd()}),(0,r._)(this,"handleTimeupdate",()=>{this.stallEnd()}),(0,r._)(this,"handleSEIParsed",t=>{if(100===t.code){let e;let{log:{playing:n,first_frame:r,play_result:i}}=this;try{e=new TextDecoder("utf-8").decode(t.content)}catch(n){e=(0,l.j2)(t.content)}e=e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);try{let t=JSON.parse(e),a=t.ts||t.heart_beat&&t.heart_beat.ts;if(Object.assign(r,t.loudness),Object.assign(i,t.loudness),!a){n.sei_string=e;return}n.sei_delay=(0,l.Xn)()-a,r.first_sei_delay=n.sei_delay,n.sei_source=t.source,n.ntp_sync=0,r.ntp_sync=0}catch(t){n.sei_string=e}n.sei_delay?n.sei_string=void 0:n.sei_string=e}}),(0,r._)(this,"handlePause",()=>{this.stallEnd(),this.clearPlayingInterval(),this.reportPlaying(!1),this._player.addEventListener("playing",this.handleOncePlaying),this.reportPause()}),(0,r._)(this,"handleEnd",()=>{this.stallEnd(),this.clearPlayingInterval(),this.log.playing.is_last=1,this.reportPlaying(!1),this.tea.push(this.log.play_stop)}),(0,r._)(this,"handleError",t=>{var e,n,r,a;t=t.detail||t;let o=this._player.error||{},s=(null==t?void 0:t.snapshot_play_url)||(null===(e=this._player)||void 0===e?void 0:e.snapshotPlayUrl)||this._player.src||"",c=(null==t?void 0:t.snapshot_play_protocol)||(null===(n=this._player)||void 0===n?void 0:n.snapshotPlayProtocol)||(null===(a=this._player.config)||void 0===a?void 0:null===(r=a.baseConfig)||void 0===r?void 0:r.protocol)||"",u=(0,l.l6)(s,c),d={snapshot_play_url:s,snapshot_play_format:u};Object.assign(this.log.play_error,{code:t.httpCode||t.code||o.code,info:t.message||o.message});let h=this.log.playing.rtm_network,f=h.length?h[h.length-1]:void 0;this.tea.push((0,i._)({},this.log.play_error,d,f&&{rtm_network:f})),!this.destroyed&&(!this.firstFrameViewed&&(Object.assign(this.log.first_frame_failed,{code:this.log.play_error.code,msg:t.message||o.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=(0,l.Xn)()),this.tea.push((0,i._)({},this.log.first_frame_failed,d)),!this.log.play_result.is_threshold&&(this.clearPlayResultTimer(),this.log.play_result.reason=t.message||o.message,this.log.play_result.code=this.log.play_error.code,this.tea.push((0,i._)({},this.log.play_result,d)))),this.log.play_stop.snapshot_play_url=s,this.log.play_stop.snapshot_play_format=u,this.handleUserLeave(),delete this.log.play_stop.snapshot_play_url,delete this.log.play_stop.snapshot_play_format)}),(0,r._)(this,"handleDegrade",t=>{Object.assign(this.log.degrade,{message:t.message}),this.tea.push(this.log.degrade)}),(0,r._)(this,"reportFirstframe",()=>{var t;if(this.firstFrameViewed)return;this.firstFrameViewed=!0;let e=(0,l.Xn)();if(Object.assign(this.log.first_frame,{first_frame_view:e-this.log.start_play.start_play_time,buffered:this.getPlayerBuffer()}),this.log.first_frame.rtm_first_time){let t=performance.now()-this.log.first_frame.rtm_report_start_time;Object.assign(this.log.first_frame,{play_to_frist_frame:t-this.log.first_frame.rtm_first_time,waiting_first_frame:t-this.log.first_frame.dtls_connected_time})}let n=null===(t=this._player)||void 0===t?void 0:t._firstFrameStartTime;n>0&&Object.assign(this.log.first_frame,{actual_first_frame_view:performance.now()-n}),this.tea.push(this.log.first_frame),this.clearPlayResultTimer(),this.log.play_result.result=1,this.tea.push(this.log.play_result),this.log.play_stop.is_stream_received=1}),(0,r._)(this,"destroyFunc",()=>{!this.destroyed&&(this.handleUserLeave(),this.destroyed=!0,this.offEvt(),this.clearPlayingInterval(),this.clearPlayResultTimer())}),this.options=(0,s.FW)(t),this._player=this.options.player,this.init()}}},900312:function(t,e,n){"use strict";n.d(e,{F:function(){return i}});var r=n(368183);function i(t){let e=[],n=-1,i=0,a=0;for(;++n<t.length;){let o=t.charCodeAt(n),s="";if(37===o&&(0,r.H$)(t.charCodeAt(n+1))&&(0,r.H$)(t.charCodeAt(n+2)))a=2;else if(o<128)!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))&&(s=String.fromCharCode(o));else if(o>55295&&o<57344){let e=t.charCodeAt(n+1);o<56320&&e>56319&&e<57344?(s=String.fromCharCode(o,e),a=1):s="<22>"}else s=String.fromCharCode(o);s&&(e.push(t.slice(i,n),encodeURIComponent(s)),i=n+a+1,s=""),a&&(n+=a,a=0)}return e.join("")+t.slice(i)}},628801:function(t,e,n){"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(t){return"'"+t+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(t){return!!t&&!!t[X]}function a(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===D}(t)||Array.isArray(t)||!!t[Y]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Y])||u(t)||d(t))}function o(t,e,n){void 0===n&&(n=!1),0===s(t)?(n?Object.keys:G)(t).forEach(function(r){n&&"symbol"==typeof r||e(r,t[r],t)}):t.forEach(function(n,r){return e(r,n,t)})}function s(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:u(t)?2:d(t)?3:0}function l(t,e){return 2===s(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}n.d(e,{Uy:function(){return K}}),n(76375),n(414931),n(490629),n(374954),n(362051),n(559352),n(313036),n(181365),n(527553),n(679308);function c(t,e,n){var r=s(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function u(t){return Z&&t instanceof Map}function d(t){return F&&t instanceof Set}function h(t){return t.o||t.t}function f(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=J(t);delete e[X];for(var n=G(e),r=0;r<n.length;r++){var i=n[r],a=e[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function p(t,e){return void 0===e&&(e=!1),g(t)||i(t)||!a(t)||(s(t)>1&&(t.set=t.add=t.clear=t.delete=m),Object.freeze(t),e&&o(t,function(t,e){return p(e,!0)},!0)),t}function m(){r(2)}function g(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function v(t){var e=H[t];return e||r(18,t),e}function y(){return I}function b(t,e){e&&(v("Patches"),t.u=[],t.s=[],t.v=e)}function _(t){w(t),t.p.forEach(L),t.p=null}function w(t){t===I&&(I=t.l)}function S(t){return I={p:[],l:I,h:t,m:!0,_:0}}function L(t){var e=t[X];0===e.i||1===e.i?e.j():e.g=!0}function P(t,e){e._=e.p.length;var n=e.p[0],i=void 0!==t&&t!==n;return e.h.O||v("ES5").S(e,t,i),i?(n[X].P&&(_(e),r(4)),a(t)&&(t=k(e,t),e.l||x(e,t)),e.u&&v("Patches").M(n[X].t,t,e.u,e.s)):t=k(e,n,[]),_(e),e.u&&e.v(e.u,e.s),t!==N?t:void 0}function k(t,e,n){if(g(e))return e;var r=e[X];if(!r)return o(e,function(i,a){return C(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return x(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=f(r.k):r.o,a=i,s=!1;3===r.i&&(a=new Set(i),i.clear(),s=!0),o(a,function(e,a){return C(t,r,i,e,a,n,s)}),x(t,i,!1),n&&t.u&&v("Patches").N(r,n,t.u,t.s)}return r.o}function C(t,e,n,r,o,s,u){if(i(o)){var d=k(t,o,s&&e&&3!==e.i&&!l(e.R,r)?s.concat(r):void 0);if(c(n,r,d),!i(d))return;t.m=!1}else u&&n.add(o);if(a(o)&&!g(o)){if(!t.h.D&&t._<1)return;k(t,o),e&&e.A.l||x(t,o)}}function x(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&p(e,n)}function j(t,e){var n=t[X];return(n?h(n):t)[e]}function A(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function E(t){t.P||(t.P=!0,t.l&&E(t.l))}function T(t){t.o||(t.o=f(t.t))}function O(t,e,n){var r,i,a,o,s,l,c,h,f,p=u(e)?v("MapSet").F(e,n):d(e)?v("MapSet").T(e,n):t.O?(r=e,i=n,s=o={i:(a=Array.isArray(r))?1:0,A:i?i.A:I,P:!1,I:!1,R:{},l:i,t:r,k:null,o:null,j:null,C:!1},l=z,a&&(s=[o],l=B),h=(c=Proxy.revocable(s,l)).revoke,f=c.proxy,o.k=f,o.j=h,f):v("ES5").J(e,n);return(n?n.A:I).p.push(p),p}function R(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return f(t)}var W,I,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Z="undefined"!=typeof Map,F="undefined"!=typeof Set,M="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,N=V?Symbol.for("immer-nothing"):((W={})["immer-nothing"]=!0,W),Y=V?Symbol.for("immer-draftable"):"__$immer_draftable",X=V?Symbol.for("immer-state"):"__$immer_state",D=""+Object.prototype.constructor,G="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,J=Object.getOwnPropertyDescriptors||function(t){var e={};return G(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},H={},z={get:function(t,e){if(e===X)return t;var n,r,i,o=h(t);if(!l(o,e)){;return n=t,(i=A(o,e))?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(n.k):void 0}var s=o[e];return t.I||!a(s)?s:s===j(t.t,e)?(T(t),t.o[e]=O(t.A.h,s,t)):s},has:function(t,e){return e in h(t)},ownKeys:function(t){return Reflect.ownKeys(h(t))},set:function(t,e,n){var r=A(h(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i,a,o=j(h(t),e),s=null==o?void 0:o[X];if(s&&s.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(((i=n)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==n||l(t.t,e)))return!0;T(t),E(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==j(t.t,e)||e in t.t?(t.R[e]=!1,T(t),E(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=h(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){r(12)}},B={};o(z,function(t,e){B[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),B.deleteProperty=function(t,e){return B.set.call(this,t,e,void 0)},B.set=function(t,e,n){return z.set.call(this,t[0],e,n,t[0])};var U=new(function(){function t(t){var e=this;this.O=M,this.D=!0,this.produce=function(t,n,i){if("function"==typeof t&&"function"!=typeof n){var o,s=n;return n=t,function(t){var r=this;void 0===t&&(t=s);for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return e.produce(t,function(t){var e;return(e=n).call.apply(e,[r,t].concat(a))})}}if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),a(t)){var l=S(e),c=O(e,t,void 0),u=!0;try{o=n(c),u=!1}finally{u?_(l):w(l)}return"undefined"!=typeof Promise&&o instanceof Promise?o.then(function(t){return b(l,i),P(t,l)},function(t){throw _(l),t}):(b(l,i),P(o,l))}if(!t||"object"!=typeof t){if(void 0===(o=n(t))&&(o=t),o===N&&(o=void 0),e.D&&p(o,!0),i){var d=[],h=[];v("Patches").M(t,o,d,h),i(d,h)}return o}r(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return e.produceWithPatches(n,function(e){return t.apply(void 0,[e].concat(i))})};var r,i,a=e.produce(t,n,function(t,e){r=t,i=e});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(t){return[t,r,i]}):[a,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){a(t)||r(8),i(t)&&(i(e=t)||r(22,e),t=function t(e){if(!a(e))return e;var n,r=e[X],i=s(e);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=R(e,i),r.I=!1}else n=R(e,i);return o(n,function(e,i){var a,o;r&&(a=r.t,o=e,(2===s(a)?a.get(o):a[o])===i)||c(n,e,t(i))}),3===i?new Set(n):n}(e));var e,n=S(this),l=O(this,t,void 0);return l[X].C=!0,w(n),l},e.finishDraft=function(t,e){var n=(t&&t[X]).A;return b(n,e),P(void 0,n)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!M&&r(20),this.O=t},e.applyPatches=function(t,e){for(n=e.length-1;n>=0;n--){var n,r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var a=v("Patches").$;return i(t)?a(t,e):this.produce(t,function(t){return a(t,e)})},t}()),K=U.produce;U.produceWithPatches.bind(U),U.setAutoFreeze.bind(U),U.setUseProxies.bind(U),U.applyPatches.bind(U),U.createDraft.bind(U),U.finishDraft.bind(U)}}]); |