douxiaoyun.js/profiles/douyin-profile/Default/Cache/Cache_Data/f_0003a3
2026-07-17 22:23:39 +08:00

2 lines
84 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see 70039.3c0ebc55.js.LICENSE.txt */
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?t():"function"==typeof define&&define.amd?define([],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).xss={})}(this,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var r=/[^a-zA-Z0-9\\_:.-]/gim,i=/</g,o=/>/g,s=/&#([a-zA-Z0-9]*);?/gim,a=/&quot;/g,l=/&colon;?/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,f=/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,p=/"/g,d=function(e){return e.replace(i,"&lt;").replace(o,"&gt;")},g={indexOf:function(e,t){var n,r;for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1},forEach:function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},some:function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return!0;return!1},trim:function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},includes:function(e,t){if("string"==typeof e)return -1!==e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1},uniq:function(e){for(var t={},n=[],r=0;r<e.length;r++)t[e[r]]||(n.push(e[r]),t[e[r]]=!0);return n},from:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},keys:function(e){var t=[];for(var n in e)t.push(n);return t}};function m(e){return null==e}function v(e){var t;return'"'===(t=e)[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]?e.substr(1,e.length-2):e}function y(e){var t,n,r,i,o,s,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(e=function(e){e=e.replace(/rn/g,"n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?t+=String.fromCharCode(r>>6|192)+String.fromCharCode(63&r|128):t+=String.fromCharCode(r>>12|224)+String.fromCharCode(r>>6&63|128)+String.fromCharCode(63&r|128)}return t}(e);u<e.length;)i=(t=e.charCodeAt(u++))>>2,o=(3&t)<<4|(n=e.charCodeAt(u++))>>4,s=(15&n)<<2|(r=e.charCodeAt(u++))>>6,a=63&r,isNaN(n)?s=a=64:isNaN(r)&&(a=64),c=c+l.charAt(i)+l.charAt(o)+l.charAt(s)+l.charAt(a);return c}function b(e){var t,n,r,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");c<e.length;)t=a.indexOf(e.charAt(c++))<<2|(i=a.indexOf(e.charAt(c++)))>>4,n=(15&i)<<4|(o=a.indexOf(e.charAt(c++)))>>2,r=(3&o)<<6|(s=a.indexOf(e.charAt(c++))),l+=String.fromCharCode(t),64!==o&&(l+=String.fromCharCode(n)),64!==s&&(l+=String.fromCharCode(r));return function(e){for(var t="",n=0,r=0,i=0,o=0;n<e.length;)(r=e.charCodeAt(n))<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(t+=String.fromCharCode((31&r)<<6|63&(o=e.charCodeAt(n+1))),n+=2):(o=e.charCodeAt(n+1),t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&(i=e.charCodeAt(n+2))),n+=3);return t}(l)}function k(e,t,n){var r="",i=0,o=!1,s=!1,a=0,l=e.length,c="",u="";e:for(a=0;a<l;a++){var f=e.charAt(a);if(!1===o){if("<"===f){o=a;continue}}else if(!1===s){if("<"===f){r+=n(e.slice(i,a)),o=a,i=a;continue}if(">"===f||a===l-1){r+=n(e.slice(i,o)),c=function(e){var t,n=g.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=g.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(u=e.slice(o,a+1)),r+=t(o,r.length,c,u,"</"===u.slice(0,2)),i=a+1,o=!1;continue}if('"'===f||"'"===f)for(var h=1,p=e.charAt(a-h);""===p.trim()||"="===p;){if("="===p){s=f;continue e}p=e.charAt(a-++h)}}else if(f===s){s=!1;continue}}return i<l&&(r+=n(e.substr(i))),r}function C(e,t){var n=0,i=0,o=[],s=!1,a=e.length;function l(e,n){if(!((e=(e=g.trim(e)).replace(r,"").toLowerCase()).length<1)){var i=t(e,n||"");i&&o.push(i)}}for(var c=0;c<a;c++){var u=e.charAt(c),f=void 0;if(!1!==s||"="!==u){if(!1===s||c!==i){if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===s){if(-1===(f=function(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,c))){l(g.trim(e.slice(n,c))),s=!1,n=c+1;continue}c=f-1;continue}if(-1===(f=function(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,c-1))){l(s,v(g.trim(e.slice(n,c)))),s=!1,n=c+1;continue}}}else{if(-1===(f=e.indexOf(u,c+1)))break;l(s,g.trim(e.slice(i+1,f))),s=!1,n=(c=f)+1}}else s=e.slice(n,c),n=c+1,i='"'===e.charAt(n)||"'"===e.charAt(n)?n:function(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}return -1}(e,c+1)}return n<e.length&&(!1===s?l(e.slice(n)):l(s,v(g.trim(e.slice(n))))),g.trim(o.join(" "))}function w(e,t,n){if(n=function(e){return e=function(e){for(var t="",n=0,r=e.length;n<r;n++)t+=32>e.charCodeAt(n)?" ":e.charAt(n);return g.trim(t)}(e=(e=(e=e.replace(a,'"')).replace(s,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(l,":").replace(c," "))}(n),"href"===t||"src"===t){if("#"===(n=g.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"===t){if(u.lastIndex=0,u.test(n))return""}else if("style"===t&&(h.lastIndex=0,h.test(n)||(f.lastIndex=0,f.test(n)&&(u.lastIndex=0,u.test(n)))))return"";return n=function(e){return e=d(e=e.replace(p,"&quot;"))}(n)}var O=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},x=function(){function e(e){var t=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{});t.stripIgnoreTag&&(t.onIgnoreTag,t.onIgnoreTag=function(){return""}),t.whiteList={},t.onTag=function(){},t.onTagAttr=function(){},t.onIgnoreTag=function(){},t.onIgnoreTagAttr=function(){},t.safeAttrValue=w,t.escapeHtml=d,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,n,r,i,o,s,a=this.options,l=a.whiteList,c=a.onTag,u=a.onIgnoreTag,f=a.onTagAttr,h=a.onIgnoreTagAttr,p=a.safeAttrValue,d=a.escapeHtml;a.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),a.allowCommentTag||(e=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("--\x3e",r);if(-1===i)break;n=i+3}return t}(e));var m=!1;a.stripIgnoreTagBody&&(n=a.stripIgnoreTagBody,"function"!=typeof(r=u)&&(r=function(){}),i=!Array.isArray(n),o=[],s=!1,u=(m={onIgnoreTag:function(e,t,a){var l;if(l=e,i||-1!==g.indexOf(n,l)){if(a.isClosing){var c="[/removed]",u=a.position+c.length;return o.push([!1!==s?s:a.position,u]),s=!1,c}return s||(s=a.position),"[removed]"}return r(e,t,a)},remove:function(e){var t="",n=0;return g.forEach(o,function(r){t+=e.slice(n,r[0]),n=r[1]}),t+=e.slice(n)}}).onIgnoreTag);var v=k(e,function(e,t,n,r,i){var o={sourcePosition:e,position:t,isClosing:i,isWhite:Object.prototype.hasOwnProperty.call(l,n)},s=c(n,r,o);if(null!=s)return s;if(o.isWhite){if(o.isClosing)return"</".concat(n,">");var a=function(e){var t=g.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=g.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=g.trim(e.slice(0,-1))),{html:e,closing:n}}(r),m=l[n],v=C(a.html,function(e,t){var r=-1!==g.indexOf(m,e),i=f(n,e,t,r);return null==i?r?(t=p(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(i=h(n,e,t,r))?void 0:i:i});return r="<".concat(n),v&&(r+=" ".concat(v)),a.closing&&(r+=" /"),r+=">"}return null==(s=u(n,r,o))?d(r):s},d);return m&&(v=m.remove(v)),v},e}(),_=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")(),S=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,n,r="douyin_web";if(!g.includes(r,"bid"))return r;if(e.config&&e.config.bid)return e.config.bid;if(_&&_._xssBid)return _._xssBid;if(_&&_.slardar&&"function"==typeof _.slardar.config){var i=(_.slardar.config()||{}).bid;if(i)return i}if(_&&_.Slardar&&"function"==typeof _.Slardar.config){var o=(_.Slardar.config()||{}).bid;if(o)return o}return(null===(n=null===(t=null==_?void 0:_.Slardar)||void 0===t?void 0:t._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var t;return g.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==_?void 0:_.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[e.getConfigRegion()];if(t)return t+e.getSlardarBid()}}return e.prototype.setConfig=function(e){this.config=e},e.prototype.upload=function(){var e=this,t=this.gerReportUrl();!this.lock&&t&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var n=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),_.fetch(t,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}).catch(function(e){}),e.lock=!1,e.upload()},this.timeout))},e.prototype.generateKey=function(e){return e.collectKey?[e.collectMode,e.collectKey].join("___"):""},e.prototype.push=function(e){this.batchData.push(e),this.upload()},e.prototype.report=function(e){var t=this.generateKey(e);if(_.fetch&&e.collectKey){var n="object"==typeof window?window.location.href:"SSR";e.documentUrl=n;var r={age:Math.floor(Date.now()),type:"xss",url:n,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==n||(r.url=t),"SSR"===n&&(r.url="SSR___".concat(r.url),r.body.ssr=!0),this.push(r)}},e}()),A=function(e){for(var t=0,n=function(n){Array.isArray(e[n])?0===e[n].length?delete e[n]:(e[n]=g.from(g.uniq(e[n])),t+=e[n].length):0===g.keys(e[n]).length?delete e[n]:g.keys(e[n]).forEach(function(r){e[n][r]=g.from(g.uniq(e[n][r])),t+=e[n][r].length})},r=0,i=g.keys(e);r<i.length;r++)n(i[r]);return{count:t,ret:e}};function E(e,t){return S.setConfig(t),new x(t).process(e)}function j(e){var t,n=(t=/\s|\n|\t/.exec(e))?t.index:-1;if(-1===n)return{html:"",closing:"/"===e[e.length-2]};var r="/"===(e=e.slice(n+1,-1).trim())[e.length-1];return r&&(e=e.slice(0,-1).trim()),{html:e,closing:r}}var T=function(e){return -1===(e=(e=(e=(e=e.replace(/&colon;/gi,":")).replace(/&tab;/gi,"")).replace(/&newline;/gi,"")).replace(/(\t|\n|\r)/g,"")).indexOf("&#")?e.trim().toLowerCase():e.trim().replace(/&#(?:(x)([0-9a-f]+)|([0-9]+));?/gi,function(e,t,n,r){return String.fromCharCode(t?parseInt(n,16):parseInt(r))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function I(e,t){if(void 0===e&&(e=""),"string"!=typeof e)return!0;if(e=T(e),g.includes(e,"base64")&&!function(e){if(""===e||""===e.trim())return!0;try{return!g.includes(e,"data:text/html;base64")}catch(e){return!0}}(e))return t&&t("data:text/html;base64"),!1;var n=["expression(","behavior:","view-source:"];if(g.some(n,function(t){return -1!==e.indexOf(t)}))return g.forEach(n,function(n){-1!==e.indexOf(n)&&t&&t(n)}),!1;var r=["data:application","data:javascript","data:text/html","data:texthtml"];if(g.some(r,function(t){return -1!==e.indexOf(t)}))return g.forEach(r,function(n){-1!==e.indexOf(n)&&t&&t(n)}),!1;if(e.indexOf("javascript:")>0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var i=e.slice(11).replace(/\s/g,"").trim();return!!g.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===i})||(t&&t("javascript:"),!1)}return!0}var L=function(e,t){var n,r,i="<%= isSaveValidUrl =>";if("string"!=typeof e||(r=Number("<%= urlLimit =>"),void 0!==n&&(r=n),"NaN"!==e.toString()&&-1!==r&&e.length>=r)||I(e,t))return e;try{if(!0===(i=JSON.parse(i))||"true"===i){var o=new URL(e);return o.origin+o.pathname}}catch(e){}return"#"};function P(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!I(e=T(e)))return!1;var i,o={url:(i=e.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]},s=o.scheme,a=o.host;return r?!!r(e):!(!s||!a)&&(!g.includes(["http","https","file"],s)||("object"==typeof window&&window&&(t=n(n([],t,!0),[location.host],!1)),g.some(t,function(e){return!!(e instanceof RegExp&&e.test(a))||e===a})))}var N={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:[]},R={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=A(this.collect),t=e.count,n=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(e,t,r){return e&&g.indexOf(["href","src"],t)>-1?R.domainWhiteList&&Array.isArray(R.domainWhiteList)&&R.domainWhiteList.length>0&&!P(r,n([],R.domainWhiteList,!0))?"":"".concat(t,'="').concat(L(r,function(e){var t;null===(t=R.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(g.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(r,'"'):(R.collect.whiteList[e]=R.collect.whiteList[e]||[],void R.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;k(t,function(e,t,n,r){C(j(r).html.replace("/",""),function(e){R.collect.whiteList[n]=R.collect.whiteList[n]||[],R.collect.whiteList[n].push(e)})},d)},whiteList:N,mergeWhiteList:function(e){for(var t,n={},r=0,i=g.keys(N);r<i.length;r++)n[t=i[r]]=g.from(N[t]);for(var o=0,s=g.keys(e);o<s.length;o++)n[t=s[o]]=t in N?N[t].concat(e[t]):g.from(e[t]);return n},setWhiteList:function(e){for(var t=0,n=g.keys(e);t<n.length;t++){var r=n[t];this.whiteList[r]=r in N?N[r].concat(e[r]):g.from(e[r])}}};try{var M={},D="merge";g.includes(D,"override")&&(R.whiteList=M.whiteList),g.includes(D,"merge")&&R.setWhiteList(M.whiteList)}catch(e){}var z=function(e,t){for(var n={},r=0,i=g.keys(e);r<i.length;r++){var o=i[r];Array.isArray(e[o])?n[o]=g.from(e[o]):n[o]=z({},e[o])}for(var s=0,a=g.keys(t);s<a.length;s++)(o=a[s])in e?Array.isArray(e[o])?n[o]=e[o].concat(t[o]):n[o]=z(e[o],t[o]):Array.isArray(t[o])?n[o]=g.from(t[o]):n[o]=z({},t[o]);return n},Z={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 $={};$.blackAttrRegExps&&($.blackAttrRegExps=$.blackAttrRegExps.map(function(e){return new RegExp(e.toString().slice(1,e.toString().length-1))}));var F="merge";g.includes(F,"override")&&(Z=$),g.includes(F,"merge")&&(Z=z(Z,$))}catch(e){}var W={mode:"black",whiteList:{},blackConfig:Z,collect:null,initCollect:function(){W.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var e=A(W.collect),t=e.count,n=e.ret;return W.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"black"}},onIgnoreTag:function(e,t){var n;if(!g.includes(Z.blackTags,e))return k(t,function(e,t,n,r,i){if(-1!==n.indexOf("/"))return d(r);if(i)return"</".concat(n,">");var o=j(r),s=C(o.html,function(e,t){var r,i=0;if(Z.blackList[n]&&g.includes(Z.blackList[n],e)&&(W.collect.blackList[n]=W.collect.blackList[n]||[],W.collect.blackList[n].push(e),i++),Z.blackAttrRegExps.length&&Z.blackAttrRegExps.some(function(t){return t.test(e)})&&g.forEach(Z.blackAttrRegExps,function(t){t.test(e)&&(W.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),i++)}),Z.blackAttrs.length&&g.includes(Z.blackAttrs,e)&&(Z.blackAttrs.push(e),i++),!i){if(Z.filterList&&Z.filterList[n]&&g.includes(Z.filterList[n],e)){var o=L(t,function(e){var t;null===(t=W.collect)||void 0===t||t.filterProtocol.push(e)});return o!==t&&(W.collect.filterList[n]=W.collect.filterList[n]||[],W.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(o,"'"):e}return Z.filterAttrs&&g.includes(Z.filterAttrs,e)?((o=L(t,function(e){var t;null===(t=W.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(r=W.collect)||void 0===r||r.filterAttrs.push(e)),t?"".concat(e,"='").concat(o,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return r="<".concat(n),s&&(r+=" ".concat(s)),o.closing&&(r+=" /"),r+=">"},d);null===(n=W.collect)||void 0===n||n.blackTags.push(e)}},X=function(e){var t=e.reportOnly,n=void 0===t||t,r=e.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),r?"enforce":n?"report":"enforce")},U=function(e){return function(n,r,i){if(!n||"string"!=typeof n)return n;var o=r;e===E&&(o=R).initCollect();var s=e(n,o);if(O(s)===O(n))return n;if(!i)return s;var a=i.logType,l=X(i),c=o.removeCollect();return S.report(t(t({type:a,disposition:l},c),{sourceText:y(n),filterText:y(s)})),"enforce"===l?s:n}},H=U(function(e,t){return void 0===t&&(t={}),t&&t.whiteList||(t.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 x(t).process(e)}),V=U(E),K=function(e,t,n){var r=[],i=L(e,function(e){r.push(e)});if(i===e)return e;r=g.from(g.uniq(r));var o=t||n||{};if(!o)return i;var s=o.logType,a=X(n);return S.report({type:s,disposition:a,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:y(e),filterText:y(i)}),"enforce"===a?i:e},B=_._xssProject||{},G=_.xssNamespace||{},Y="3.0.26",J={FilterXSS:x,version:Y,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:H,_filterXSS:V,filterUrl:K,Config:R,BlackConfig:W,project:B,setProjectName:function(e){B[e]=this,_._xssProjectName=e}};G.douyin_web=J,_.xssNamespace=G,_.Math&&!_.Math.xssNamespace&&(_.Math.xssNamespace=G),B[Y]=J,_.globalThis=_,_.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:J},_.xss=J,_.isSafeUrl=P,_.isSafeDomain=P,_.isSafeProtocol=I,_._xssProject=B,_._xssProjectName&&(B[_._xssProjectName]=J);var q=J.setProjectName.bind(J);e.BlackConfig=W,e.Config=R,e.FilterXSS=x,e._filterXSS=V,e.filterUrl=K,e.filterXSS=H,e.isSafeDomain=P,e.isSafeProtocol=I,e.isSafeUrl=P,e.project=B,e.setProjectName=q,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,r=e.region;G[t]=J;R.bid=n,R.region=r,R.enabled=!0},e.xssNamespace=G,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["70039"],{452811:function(e,t,n){"use strict";var r=n(177405).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"==typeof e||"[object String]"===t,new Date(NaN))};var i=r(n(321669)),o=r(n(826204));e.exports=t.default},303673:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(101199));t.withModel=function(e,t){return function(n){var o=function(o){if(Array.isArray(e)){var a,l,c,u=[];try{for(var f=i(e),h=f.next();!h.done;h=f.next()){var p=h.value;u.push(p())}}catch(e){a={error:e}}finally{try{h&&!h.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}c=t(u,o)}else c=t(e(),o);var d=r(r({},o),c);return s.default.createElement(n,r({},d))};return o.displayName=n.displayName+"Wrapper",o}}},305026:function(e,t,n){"use strict";n.d(t,{F6:function(){return function e(t){if(!t.parent||!t.parent.children)return[];let n=e(t.parent);if("property"===t.parent.type){let e=t.parent.children[0].value;n.push(e)}else if("array"===t.parent.type){let e=t.parent.children.indexOf(t);-1!==e&&n.push(e)}return n}},Hk:function(){return function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){let i=t.children;if(Array.isArray(i))for(let t=0;t<i.length&&i[t].offset<=n;t++){let o=e(i[t],n,r);if(o)return o}return t}}},Qc:function(){return s},SN:function(){return l},Vn:function(){return c},jv:function(){return a},k$:function(){return o},zA:function(){return function e(t){switch(t.type){case"array":return t.children.map(e);case"object":let n=Object.create(null);for(let r of t.children){let t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}}},zx:function(){return u}});var r,i=n(770187);function o(e,t){let n,r=[],i={};let o={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function a(e,t,r,i){o.value=e,o.offset=t,o.length=r,o.type=i,o.colonOffset=void 0,n=o}try{c(e,{onObjectBegin:(e,o)=>{if(t<=e)throw i;n=void 0,s=t>e,r.push("")},onObjectProperty:(e,n,o)=>{if(t<n)throw i;if(a(e,n,o,"property"),r[r.length-1]=e,t<=n+o)throw i},onObjectEnd:(e,o)=>{if(t<=e)throw i;n=void 0,r.pop()},onArrayBegin:(e,o)=>{if(t<=e)throw i;n=void 0,r.push(0)},onArrayEnd:(e,o)=>{if(t<=e)throw i;n=void 0,r.pop()},onLiteralValue:(e,n,r)=>{if(t<n)throw i;if(a(e,n,r,f(e)),t<=n+r)throw i},onSeparator:(e,o,a)=>{if(t<=o)throw i;if(":"===e&&n&&"property"===n.type)n.colonOffset=o,s=!1,n=void 0;else if(","===e){let e=r[r.length-1];"number"==typeof e?r[r.length-1]=e+1:(s=!0,r[r.length-1]=""),n=void 0}}})}catch(e){if(e!==i)throw e}return{path:r,previousNode:n,isAtPropertyKey:s,matches:e=>{let t=0;for(let n=0;t<e.length&&n<r.length;n++)if(e[t]===r[n]||"*"===e[t])t++;else if("**"!==e[t])return!1;return t===e.length}}}function s(e,t=[],n=r.DEFAULT){let i=null,o=[],a=[];function l(e){Array.isArray(o)?o.push(e):null!==i&&(o[i]=e)}return c(e,{onObjectBegin:()=>{let e={};l(e),a.push(o),o=e,i=null},onObjectProperty:e=>{i=e},onObjectEnd:()=>{o=a.pop()},onArrayBegin:()=>{let e=[];l(e),a.push(o),o=e,i=null},onArrayEnd:()=>{o=a.pop()},onLiteralValue:l,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),o[0]}function a(e,t=[],n=r.DEFAULT){let i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(e){"property"===i.type&&(i.length=e-i.offset,i=i.parent)}function s(e){return i.children.push(e),e}c(e,{onObjectBegin:e=>{i=s({type:"object",offset:e,length:-1,parent:i,children:[]})},onObjectProperty:(e,t,n)=>{(i=s({type:"property",offset:t,length:-1,parent:i,children:[]})).children.push({type:"string",value:e,offset:t,length:n,parent:i})},onObjectEnd:(e,t)=>{o(e+t),i.length=e+t-i.offset,i=i.parent,o(e+t)},onArrayBegin:(e,t)=>{i=s({type:"array",offset:e,length:-1,parent:i,children:[]})},onArrayEnd:(e,t)=>{i.length=e+t-i.offset,i=i.parent,o(e+t)},onLiteralValue:(e,t,n)=>{s({type:f(e),offset:t,length:n,parent:i,value:e}),o(t+n)},onSeparator:(e,t,n)=>{"property"===i.type&&(":"===e?i.colonOffset=t:","===e&&o(t))},onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n);let l=i.children[0];return l&&delete l.parent,l}function l(e,t){if(!e)return;let n=e;for(let e of t)if("string"==typeof e){if("object"!==n.type||!Array.isArray(n.children))return;let t=!1;for(let r of n.children)if(Array.isArray(r.children)&&r.children[0].value===e&&2===r.children.length){n=r.children[1],t=!0;break}if(!t)return}else{if("array"!==n.type||e<0||!Array.isArray(n.children)||e>=n.children.length)return;n=n.children[e]}return n}(r||(r={})).DEFAULT={allowTrailingComma:!1};function c(e,t,n=r.DEFAULT){var o;let s=(0,i.t)(e,!1),a=[],l=0;function u(e){return e?t=>0===l&&e(t,s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter()):()=>!0}function f(e){return e?t=>0===l&&e(t,s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter(),()=>a.slice()):()=>!0}function h(e){return e?()=>{l>0?l++:!1===e(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter(),()=>a.slice())&&(l=1)}:()=>!0}function p(e){return e?()=>{l>0&&l--,0===l&&e(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter())}:()=>!0}let d=h(t.onObjectBegin),g=f(t.onObjectProperty),m=p(t.onObjectEnd),v=h(t.onArrayBegin),y=p(t.onArrayEnd),b=f(t.onLiteralValue),k=u(t.onSeparator),C=(o=t.onComment)?()=>0===l&&o(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter()):()=>!0,w=u(t.onError),O=n&&n.disallowComments,x=n&&n.allowTrailingComma;function _(){for(;;){let e=s.scan();switch(s.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:!O&&S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:O?S(10):C();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],n=[]){if(w(e),t.length+n.length>0){let e=s.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){_();break}if(-1!==n.indexOf(e))break;e=_()}}}function A(e){let t=s.getTokenValue();return e?b(t):(g(t),a.push(t)),_(),!0}function E(){switch(s.getToken()){case 3:return function(){v(),_();let e=!0,t=!1;for(;4!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){if(!t&&S(4,[],[]),k(","),_(),4===s.getToken()&&x)break}else t&&S(6,[],[]);e?(a.push(0),e=!1):a[a.length-1]++,!E()&&S(4,[],[4,5]),t=!0}return y(),!e&&a.pop(),4!==s.getToken()?S(8,[4],[]):_(),!0}();case 1:return function(){d(),_();let e=!1;for(;2!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){if(!e&&S(4,[],[]),k(","),_(),2===s.getToken()&&x)break}else e&&S(6,[],[]);!(10!==s.getToken()?(S(3,[],[2,5]),!1):(A(!1),6===s.getToken()?(k(":"),_(),!E()&&S(4,[],[2,5])):S(5,[],[2,5]),a.pop(),!0))&&S(4,[],[2,5]),e=!0}return m(),2!==s.getToken()?S(7,[2],[]):_(),!0}();case 10:return A(!0);default:return function(){switch(s.getToken()){case 11:let e=Number(s.getTokenValue());isNaN(e)&&(S(2),e=0),b(e);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return _(),!0}()}}if(_(),17===s.getToken())return!!n.allowEmptyContent||(S(4,[],[]),!1);return E()?(17!==s.getToken()&&S(9,[],[]),!0):(S(4,[],[]),!1)}function u(e,t){let n=(0,i.t)(e),r=[],o,s=0,a;do switch(a=n.getPosition(),o=n.scan()){case 12:case 13:case 17:s!==a&&r.push(e.substring(s,a)),void 0!==t&&r.push(n.getTokenValue().replace(/[^\r\n]/g,t)),s=n.getPosition()}while(17!==o);return r.join("")}function f(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":if(!e)return"null";if(Array.isArray(e))return"array";return"object";default:return"null"}}},671674:function(e,t,n){var r=n(105723);e.exports=function(e,t){var n;return r(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}},78155:function(e,t,n){"use strict";e.exports=c;var r,i,o=n(570581),s=o.LongBits,a=o.utf8;function l(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(c.create=function(e){return o.Buffer.isBuffer(e)?new i(e):u(e)})(e)}:u};function h(){var e=new s(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw l(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw l(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw l(this,8);return new s(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,c.prototype.uint32=(r=4294967295,function(){if(r=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return r;if(r=(r|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return r;if(r=(r|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return r;if(r=(r|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return r;if(r=(r|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return r;if((this.pos+=5)>this.len)throw this.pos=this.len,l(this,10);return r}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw l(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw l(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw l(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw l(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw l(this,e);return(this.pos+=e,Array.isArray(this.buf))?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw l(this,e);this.pos+=e}else do if(this.pos>=this.len)throw l(this);while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){i=e,c.create=f(),i._configure();var t=o.Long?"toLong":"toNumber";o.merge(c.prototype,{int64:function(){return h.call(this)[t](!1)},uint64:function(){return h.call(this)[t](!0)},sint64:function(){return h.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},486878:function(e,t,n){"use strict";e.exports=n(632733)},61928:function(e,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function r(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(i.key),i)}}var i=function(){var e,t,n;function i(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),this.bufferedList=e}return e=i,t=[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}],r(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();t.default=i},825710:function(e,t,n){"use strict";n.r(t)},363784:function(e,t,n){"use strict";n(932651),n(490629),n(683656),n(759943);var r=n(908219),i=n.n(r),o=n(350856),s=n.n(o),a=n(795233),l=n.n(a),c=n(101199),u=n(469935),f=n.n(u),h=n(622689),p=n.n(h),d=n(324793),g=n(392885),m=n(426337),v=n(80946),y=n(515586);n(269571);var b=n(155553),k=n(230720);let C=d.U.PREFIX;class w extends m.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{addLink:e=>{this.setState(t=>({links:[...t.links,e]}))},removeLink:e=>{this.setState(t=>{let n=t.links.slice(),r=n.indexOf(e);if(-1!==r)return n.splice(r,1),{links:n}})},setChildMap:e=>{this.childMap=e},setScrollHeight:e=>{this.setState({scrollHeight:e})},setSlideBarTop:e=>{this.setState({slideBarTop:`${e}px`})},setClickLink:e=>{this.setState({clickLink:e})},setActiveLink:(e,t)=>{this.setState({activeLink:e},()=>{t()})},setClickLinkWithCallBack:(e,t,n)=>{this.setState({clickLink:e},()=>{n(t)})},getContainer:()=>{let{getContainer:e}=this.props,t=e();return t||window},getContainerBoundingTop:()=>{let e=this.adapter.getContainer();return"getBoundingClientRect"in e?e.getBoundingClientRect().top:0},getLinksBoundingTop:()=>{let{links:e}=this.state,{offsetTop:t}=this.props,n=this.adapter.getContainerBoundingTop();return e.map(e=>{let r=null;try{r=document.querySelector(e)}catch(e){}return r&&r.getBoundingClientRect().top-n-t||-1/0})},getAnchorNode:e=>{let t=`#${this.anchorID} ${e}`;return document.querySelector(t)},getContentNode:e=>document.querySelector(e),notifyChange:(e,t)=>this.props.onChange(e,t),notifyClick:(e,t)=>this.props.onClick(e,t),canSmoothScroll:()=>"scrollBehavior"in document.body.style})}componentDidMount(){let{defaultAnchor:e=""}=this.props;this.anchorID=(0,b.ZP)("semi-anchor").replace(".",""),this.scrollContainer=this.adapter.getContainer(),this.handler=i()(this.handleScroll,100),this.clickHandler=s()(this.handleClickLink,100),this.scrollContainer.addEventListener("scroll",this.handler),this.scrollContainer.addEventListener("scroll",this.clickHandler),this.setScrollHeight(),this.setChildMap(),e&&this.foundation.handleClick(null,e,!1)}componentDidUpdate(e,t){this.updateScrollHeight(t,this.state),this.updateChildMap(t,this.state)}componentWillUnmount(){this.scrollContainer.removeEventListener("scroll",this.handler),this.scrollContainer.removeEventListener("scroll",this.clickHandler)}render(){let{size:e,railTheme:t,style:n,className:r,children:i,maxWidth:o,maxHeight:s,showTooltip:a,position:l,autoCollapse:u}=this.props,h=this.props["aria-label"],{activeLink:p,scrollHeight:d,slideBarTop:g}=this.state,m=f()(C,r,{[`${C}-size-${e}`]:e}),v=f()(`${C}-slide`,`${C}-slide-${t}`),b=f()(`${C}-slide-bar`,{[`${C}-slide-bar-${e}`]:e,[`${C}-slide-bar-${t}`]:t,[`${C}-slide-bar-active`]:p}),k=`${C}-link-wrapper`,w=Object.assign(Object.assign({},n),{maxWidth:o,maxHeight:s});return c.createElement(y.Z.Provider,{value:{activeLink:p,showTooltip:a,position:l,childMap:this.childMap,autoCollapse:u,size:e,onClick:(e,t)=>this.handleClick(e,t),addLink:this.addLink,removeLink:this.removeLink}},c.createElement("div",Object.assign({role:"navigation","aria-label":h||"Side navigation",className:m,style:w,id:this.anchorID},this.getDataAttr(this.props)),c.createElement("div",{"aria-hidden":!0,className:v,style:{height:d}},c.createElement("span",{className:b,style:{top:g}})),c.createElement("div",{className:k,role:"list"},this.renderChildren())))}constructor(e){var t;super(e),t=this,this.addLink=e=>{this.foundation.addLink(e)},this.removeLink=e=>{this.foundation.removeLink(e)},this.handleScroll=()=>{this.foundation.handleScroll()},this.handleClick=(e,t)=>{this.foundation.handleClick(e,t)},this.handleClickLink=()=>{this.foundation.handleClickLink()},this.setChildMap=()=>{this.foundation.setChildMap()},this.setScrollHeight=()=>{this.foundation.setScrollHeight()},this.updateScrollHeight=(e,t)=>{this.foundation.updateScrollHeight(e,t)},this.updateChildMap=(e,t)=>{this.foundation.updateChildMap(e,t)},this.renderChildren=()=>{let e=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return c.Children.map(n,n=>{if(c.isValidElement(n)){let i={direction:t.context.direction,level:r,children:[]},{children:o}=n.props;return o&&c.Children.count(o)>0&&(i.children=e(o,r+1)),c.cloneElement(n,i)}return null})};return e(this.props.children)},this.state={activeLink:"",links:[],clickLink:!1,scrollHeight:"100%",slideBarTop:"0"},this.foundation=new g.Z(this.adapter),this.childMap={}}}w.contextType=k.Z,w.Link=v.Z,w.PropTypes={size:p().oneOf(d.j.SIZE),railTheme:p().oneOf(d.j.SLIDE_COLOR),className:p().string,style:p().object,scrollMotion:p().bool,autoCollapse:p().bool,offsetTop:p().number,targetOffset:p().number,showTooltip:p().bool,position:p().oneOf(d.j.POSITION_SET),maxWidth:p().oneOfType([p().string,p().number]),maxHeight:p().oneOfType([p().string,p().number]),getContainer:p().func,onChange:p().func,onClick:p().func,defaultAnchor:p().string,"aria-label":p().string},w.defaultProps={size:"default",railTheme:"primary",className:"",scrollMotion:!1,autoCollapse:!1,offsetTop:0,targetOffset:0,showTooltip:!1,maxWidth:d.j.MAX_WIDTH,maxHeight:d.j.MAX_HEIGHT,getContainer:l(),onChange:l(),onClick:l(),defaultAnchor:""},t.Z=w},277632:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}}),n(679308),n(374954),n(591964),n(932651);var r=n(243392),i=n.n(r),o=n(390063),s=n.n(o),a=n(198412),l=n.n(a),c=n(101199),u=n(469935),f=n.n(u),h=n(622689),p=n.n(h),d=n(328638),g=n(14010),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let v=g.j.SIZE,y=g.j.SHAPE,b=g.j.OVERLAP_FROM,k=g.U.PREFIX;class C extends c.PureComponent{getAllAvatars(){let{children:e}=this.props;return e?Array.isArray(e)?c.Children.toArray(e):[e]:[]}getMergeAvatars(e){let{maxCount:t}=this.props,n=e,r=e.length-t,i=e.slice(0,t),o=e.slice(t);if(r>0){let e=this.renderMoreAvatar(r,o);i.push(e),n=i}return n}renderMoreAvatar(e,t){let{renderMore:n}=this.props,r=f()(`${k}-item-more`),i=null==t?void 0:t.reduce((e,t)=>{let{children:n,alt:r}=t.props,i=null!=r?r:"string"==typeof n?n:"";return 0===i.length?e:e.length>0?`${e},${i}`:i},""),o=` Number of remaining Avatars${e},${i}`,a=c.createElement(d.Z,{className:r,key:"_+n",alt:o},`+${e}`);return s()(n)&&(a=c.createElement(c.Fragment,{key:"_+n"},n(e,t))),a}render(){let e;let t=this.props,{children:n,maxCount:r,overlapFrom:o,size:s,shape:a,renderMore:u}=t,h=m(t,["children","maxCount","overlapFrom","size","shape","renderMore"]),p=f()({[`${k}-group`]:!0});if(n){let t=this.getAllAvatars();e=(i()(r)?this.getMergeAvatars(t):t).map((e,t)=>{let n=f()(l()(e.props,"className"),{[`${k}-item-start-${t}`]:"start"===o,[`${k}-item-end-${t}`]:"end"===o});return c.cloneElement(e,Object.assign(Object.assign({},h),{className:n,size:s,shape:a,key:t}))})}return c.createElement("div",{className:p,role:"list"},e)}}C.defaultProps={size:"medium",shape:"circle",overlapFrom:"start"},C.propTypes={children:p().node,shape:p().oneOf(y),size:p().oneOf(v),maxCount:p().number,renderMore:p().func,overlapFrom:p().oneOf(b)}},509931:function(e,t,n){"use strict";n(932651),n(679308);var r=n(350856),i=n.n(r),o=n(101199),s=n(469935),a=n.n(s),l=n(622689),c=n.n(l),u=n(426337),f=n(70106),h=n(964609),p=n(93223),d=n(635574);n(903331);var g=n(109841);class m extends u.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyChange:(e,t)=>{this.props.onChange(e,t)},setNewActiveIndex:e=>{this.setState({activeIndex:e})},setPreActiveIndex:e=>{this.setState({preIndex:e})},setIsReverse:e=>{this.setState({isReverse:e})},setIsInit:e=>{this.setState({isInit:e})},getChildren:()=>this.getChildren()})}static getDerivedStateFromProps(e,t){let n={};return!(0,g.Z)(e.activeIndex)&&e.activeIndex!==t.activeIndex&&(n.activeIndex=e.activeIndex),n}componentDidMount(){this.handleAutoPlay()}componentWillUnmount(){this.foundation.destroy()}render(){let{animation:e,className:t,style:n,slideDirection:r}=this.props,{isReverse:s}=this.state,l=a()(t,{[f.UX.CAROUSEL]:!0});return o.createElement("div",Object.assign({className:l,style:n,onMouseEnter:i()(this.handleMouseEnter,400),onMouseLeave:i()(this.handleMouseLeave,400)},this.getDataAttr(this.props)),o.createElement("div",{className:a()([`${f.UX.CAROUSEL_CONTENT}-${e}`],{[`${f.UX.CAROUSEL_CONTENT}`]:!0,[`${f.UX.CAROUSEL_CONTENT}-reverse`]:"left"===r?s:!s}),"x-semi-prop":"children"},this.renderChildren()),this.renderIndicator(),this.renderArrow())}constructor(e){super(e),this.play=()=>(this.foundation.setForcePlay(!0),this.foundation.handleAutoPlay()),this.stop=()=>(this.foundation.setForcePlay(!1),this.foundation.stop()),this.goTo=e=>this.foundation.goTo(e),this.prev=()=>this.foundation.prev(),this.next=()=>this.foundation.next(),this.handleAutoPlay=()=>{!this.foundation.getIsControlledComponent()&&this.foundation.handleAutoPlay()},this.handleMouseEnter=()=>{let{autoPlay:e}=this.props;(!0===e||"object"==typeof e&&e.hoverToPause)&&this.foundation.stop()},this.handleMouseLeave=()=>{let{autoPlay:e}=this.props;("object"!=typeof e||e.hoverToPause)&&!this.foundation.getIsControlledComponent()&&this.foundation.handleAutoPlay()},this.onIndicatorChange=e=>this.foundation.onIndicatorChange(e),this.getChildren=()=>{let{children:e}=this.props;return o.Children.toArray(e).filter(e=>o.isValidElement(e))},this.getValidIndex=e=>this.foundation.getValidIndex(e),this.renderChildren=()=>{let{speed:e,animation:t}=this.props,{activeIndex:n,preIndex:r,isInit:i}=this.state,s=this.getChildren();return o.createElement(o.Fragment,null,s.map((s,l)=>{let c=l===n,u=l===this.getValidIndex(n-1),h=l===this.getValidIndex(n+1),p={transitionTimingFunction:"ease",transitionDuration:`${e}ms`,animationTimingFunction:"ease",animationDuration:`${e}ms`};return o.cloneElement(s,{style:Object.assign(Object.assign({},s.props.style),p),className:a()(s.props.className,{[`${f.UX.CAROUSEL_CONTENT}-item-prev`]:u,[`${f.UX.CAROUSEL_CONTENT}-item-next`]:h,[`${f.UX.CAROUSEL_CONTENT}-item-current`]:c,[`${f.UX.CAROUSEL_CONTENT}-item`]:!0,[`${f.UX.CAROUSEL_CONTENT}-item-active`]:c,[`${f.UX.CAROUSEL_CONTENT}-item-slide-in`]:"slide"===t&&!i&&c,[`${f.UX.CAROUSEL_CONTENT}-item-slide-out`]:"slide"===t&&!i&&l===r})})}))},this.renderIndicator=()=>{let{activeIndex:e}=this.state,{showIndicator:t,indicatorType:n,theme:r,indicatorPosition:i,indicatorSize:s,trigger:l}=this.props,c=a()({[f.UX.CAROUSEL_INDICATOR]:!0}),u=this.getChildren();return t&&u.length>1?o.createElement("div",{className:c},o.createElement(p.Z,{type:n,total:u.length,activeIndex:e,position:i,trigger:l,size:s,theme:r,onIndicatorChange:this.onIndicatorChange})):null},this.renderArrow=()=>{let{showArrow:e,arrowType:t,theme:n,arrowProps:r}=this.props,i=this.getChildren();return e&&i.length>1?o.createElement(d.Z,{type:t,theme:n,prev:this.prev,next:this.next,arrowProps:r}):null},this.foundation=new h.Z(this.adapter);let t=this.foundation.getDefaultActiveIndex();this.state={activeIndex:t,preIndex:t,isReverse:!1,isInit:!0}}}m.propTypes={activeIndex:c().number,animation:c().oneOf(f.j2.ANIMATION_MAP),arrowProps:c().object,autoPlay:c().oneOfType([c().bool,c().object]),className:c().string,defaultActiveIndex:c().number,indicatorPosition:c().oneOf(f.j2.POSITION_MAP),indicatorSize:c().oneOf(f.j2.SIZE),indicatorType:c().oneOf(f.j2.TYPE_MAP),theme:c().oneOf(f.j2.THEME_MAP),onChange:c().func,arrowType:c().oneOf(f.j2.ARROW_MAP),showArrow:c().bool,showIndicator:c().bool,slideDirection:c().oneOf(f.j2.DIRECTION),speed:c().number,style:c().object,trigger:c().oneOf(f.j2.TRIGGER)},m.defaultProps={children:[],animation:"slide",autoPlay:!0,arrowType:"always",defaultActiveIndex:f.KT.DEFAULT_ACTIVE_INDEX,indicatorPosition:"center",indicatorSize:"small",indicatorType:"dot",theme:"light",onChange:()=>void 0,showArrow:!0,showIndicator:!0,slideDirection:"left",speed:f.KT.DEFAULT_SPEED,trigger:"click"},t.Z=m},438136:function(e,t,n){"use strict";n(932651);var r=n(198412),i=n.n(r),o=n(795233),s=n.n(o),a=n(101199),l=n(469935),c=n.n(l),u=n(622689),f=n.n(u),h=n(88204),p=n(426337),d=n(104200),g=n(236913),m=n(633272),v=n(260129),y=n(574015),b=n(141551),k=n(906899),C=n(608104);n(358194);var w=n(678503),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let x=h.j2.POSITION_SET,_=h.j2.TRIGGER_SET;class S extends p.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>{var t,n;return null===(n=(t=this.props).onVisibleChange)||void 0===n?void 0:n.call(t,e)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){let{render:e,menu:t,contentClassName:n,style:r,showTick:i,prefixCls:o,trigger:s}=this.props,l=c()(o,n),{level:u=0}=this.context,f=null;return a.isValidElement(e)?f=e:Array.isArray(t)&&(f=this.renderMenu()),a.createElement(C.Z.Provider,{value:{showTick:i,level:u+1,trigger:s}},a.createElement("div",{className:l,style:r},a.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},f)))}renderMenu(){let{menu:e}=this.props,t=e.map((e,t)=>{switch(e.node){case"title":{let{name:n,node:r}=e,i=O(e,["name","node"]);return a.createElement(S.Title,Object.assign({},i,{key:r+n+t}),n)}case"item":{let{node:n,name:r}=e,i=O(e,["node","name"]);return a.createElement(S.Item,Object.assign({},i,{key:n+r+t}),r)}case"divider":return a.createElement(S.Divider,{key:e.node+t});default:return null}});return a.createElement(S.Menu,null,t)}renderPopCard(){let{render:e,contentClassName:t,style:n,showTick:r,prefixCls:i}=this.props,o=c()(i,t),{level:s=0}=this.context;return a.createElement(C.Z.Provider,{value:{showTick:r,level:s+1}},a.createElement("div",{className:o,style:n},a.createElement("div",{className:`${i}-content`},e)))}render(){let e=this.props,{children:t,position:n,trigger:r,onVisibleChange:o,zIndex:s,className:l,motion:u,margin:f,style:p,prefixCls:g}=e,m=O(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]),{spacing:v}=this.props,{level:y}=this.context,{popVisible:b}=this.state,k=this.renderContent();return y>0?v="number"==typeof v?v:h.KT.NESTED_SPACING:null==v&&(v=h.KT.SPACING),a.createElement(d.Z,Object.assign({zIndex:s,motion:u,margin:f,content:k,className:l,prefixCls:g,spacing:v,position:n,trigger:r,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},m),a.isValidElement(t)?a.cloneElement(t,{className:c()(i()(t,"props.className"),{[`${g}-showing`]:b}),"aria-haspopup":!0,"aria-expanded":b,onKeyDown:e=>{this.foundation.handleKeyDown(e);let n=i()(t,"props.onKeyDown");n&&n(e)}}):t)}constructor(e){super(e),this.handleVisibleChange=e=>this.foundation.handleVisibleChange(e),this.state={popVisible:e.visible},this.foundation=new m.Z(this.adapter),this.tooltipRef=a.createRef()}}S.Menu=v.Z,S.Item=y.Z,S.Divider=b.Z,S.Title=k.Z,S.contextType=C.Z,S.propTypes={children:f().node,contentClassName:f().oneOfType([f().string,f().array]),className:f().string,getPopupContainer:f().func,margin:f().oneOfType([f().number,f().object]),mouseEnterDelay:f().number,mouseLeaveDelay:f().number,menu:f().array,motion:f().oneOfType([f().bool,f().func,f().object]),onVisibleChange:f().func,prefixCls:f().string,position:f().oneOf(x),rePosKey:f().oneOfType([f().string,f().number]),render:f().node,spacing:f().oneOfType([f().number,f().object]),showTick:f().bool,style:f().object,trigger:f().oneOf(_),visible:f().bool,zIndex:f().number},S.__SemiComponentName__="Dropdown",S.defaultProps=(0,w.GW)(S.__SemiComponentName__,{onVisibleChange:s(),prefixCls:h.UX.PREFIX,zIndex:g.KT.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:h.j2.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:s()}),t.Z=S},739697:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}}),n(490629),n(932651),n(706056);var r=n(934198),i=n.n(r),o=n(795233),s=n.n(o),a=n(426337),l=n(101199),c=n(622689),u=n.n(c),f=n(469935),h=n.n(f),p=n(109841),d=n(678503),g=n(26253),m=n(318330),v=n(104200),y=n(549644),b=n(438136);let k=`${m.UX.PREFIX}-item`;class C extends a.Z{_invokeContextFunc(e){if(e&&this.context&&"function"==typeof this.context[e]){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.context[e](...n)}return null}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{cloneDeep:d.Xh,updateTooltipShow:e=>this.setState({tooltipShow:e}),updateSelected:e=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:e=>this._invokeContextFunc("updateSelectedKeys",[...e]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeContextFunc("onSelect",...n)},notifyGlobalOnClick:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeContextFunc("onClick",...n)},notifyClick:function(){return e.props.onClick(...arguments)},notifyMouseEnter:function(){return e.props.onMouseEnter(...arguments)},notifyMouseLeave:function(){return e.props.onMouseLeave(...arguments)},getIsCollapsed:()=>this.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===m.j2.MODE_HORIZONTAL)return null;let i="large";t===m.j2.ICON_POS_RIGHT&&(i="default");let o=h()(`${k}-icon`,{[`${k}-icon-toggle-${this.context.toggleIconPosition}`]:n,[`${k}-icon-info`]:!n});return l.createElement("i",{className:o,key:r},(0,d.ID)(e)?l.cloneElement(e,{size:e.props.size||i}):e)}render(){var e;let{text:t,icon:n,toggleIcon:r,className:o,isSubNav:s,style:a,indent:c,onMouseEnter:u,onMouseLeave:f,link:d,linkOptions:g,disabled:v,level:y=0,tabIndex:C}=this.props,{mode:w,isInSubNav:O,prefixCls:x,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),A=this.adapter.getSelected(),E=null,j=null===(e=this.props)||void 0===e?void 0:e.children;if((0,p.Z)(j)){let e=null;w===m.j2.MODE_VERTICAL&&!_&&!S&&(e=i()(n&&!c?y:y-1,e=>this.renderIcon(null,m.j2.ICON_POS_RIGHT,!1,e))),E=l.createElement(l.Fragment,null,e,this.context.toggleIconPosition===m.j2.TOGGLE_ICON_LEFT&&this.renderIcon(r,m.j2.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),n||c||O?this.renderIcon(n,m.j2.ICON_POS_LEFT,!1,"key-position-left"):null,(0,p.Z)(t)?"":l.createElement("span",{className:`${m.UX.PREFIX}-item-text`},t),this.context.toggleIconPosition===m.j2.TOGGLE_ICON_RIGHT&&this.renderIcon(r,m.j2.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}else E=j;"string"==typeof d&&(E=l.createElement("a",Object.assign({className:`${x}-item-link`,href:d,tabIndex:-1},g),E));let T="";if(O&&(S||w===m.j2.MODE_HORIZONTAL)){let e=h()({[k]:!0,[`${k}-sub`]:s,[`${k}-selected`]:A,[`${k}-collapsed`]:S,[`${k}-disabled`]:v});T=l.createElement(b.Z.Item,{selected:A,active:A,forwardRef:this.setItemRef,className:e,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:f,disabled:v,onKeyDown:this.handleKeyPress},E)}else{let e=h()(`${o||`${k}-normal`}`,{[k]:!0,[`${k}-sub`]:s,[`${k}-selected`]:A&&!s,[`${k}-collapsed`]:S,[`${k}-disabled`]:v,[`${k}-has-link`]:"string"==typeof d}),t={"aria-disabled":v};if(s){let e=this.adapter.getIsOpen();t["aria-expanded"]=e}T=l.createElement("li",Object.assign({role:s?null:"menuitem",tabIndex:s?-1:C},t,{style:a,ref:this.setItemRef,className:e,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:f,onKeyPress:this.handleKeyPress},this.getDataAttr(this.props)),E)}return((S&&!O&&!s||S&&s&&v)&&(T=this.wrapTooltip(T)),"function"==typeof this.context.renderWrapper)?this.context.renderWrapper({itemElement:T,isSubNav:s,isInSubNav:O,props:this.props}):T}constructor(e){super(e),this.setItemRef=e=>{this.props.forwardRef&&this.props.forwardRef(e)},this.wrapTooltip=e=>{let{text:t,tooltipHideDelay:n,tooltipShowDelay:r}=this.props,i=null!=n?n:this.context.tooltipHideDelay,o=null!=r?r:this.context.tooltipShowDelay;return l.createElement(v.Z,{content:t,wrapWhenSpecial:!1,position:"right",trigger:"hover",mouseEnterDelay:o,mouseLeaveDelay:i},e)},this.handleClick=e=>this.foundation.handleClick(e),this.handleKeyPress=e=>this.foundation.handleKeyPress(e),this.state={tooltipShow:!1},this.foundation=new g.Z(this.adapter)}}C.contextType=y.Z,C.propTypes={text:u().oneOfType([u().string,u().node]),itemKey:u().oneOfType([u().string,u().number]),onClick:u().func,onMouseEnter:u().func,onMouseLeave:u().func,icon:u().oneOfType([u().node]),className:u().string,toggleIcon:u().string,style:u().object,forwardRef:u().func,indent:u().oneOfType([u().bool,u().number]),isCollapsed:u().bool,isSubNav:u().bool,link:u().string,linkOptions:u().object,disabled:u().bool,tabIndex:u().number},C.defaultProps={isSubNav:!1,indent:!1,forwardRef:s(),isCollapsed:!1,onClick:s(),onMouseEnter:s(),onMouseLeave:s(),disabled:!1,tabIndex:0}},935158:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}}),n(932651);var r=n(85079),i=n.n(r),o=n(876553),s=n.n(o),a=n(101199),l=n(622689),c=n.n(l),u=n(634957);class f extends a.PureComponent{componentDidMount(){let{items:e}=this.props;this.cachedKeys=Object.keys(e);let{root:t,threshold:n,rootMargin:r,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:n,rootMargin:r},i)),this.observeElement()}componentDidUpdate(){let{items:e}=this.props,t=Object.keys(e);!s()(this.cachedKeys,t)&&(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{items:t}=this.props;if(i()(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(e=>{let n=t[e];if(!!(n&&(0,u.Z)(n)))this.observer.observe(n)})}render(){let{children:e}=this.props;return e}}f.propTypes={onIntersect:c().func,option:c().object,root:c().any,threshold:c().number,rootMargin:c().string,items:c().object},f.defaultProps={onIntersect:()=>void 0,threshold:.75,rootMargin:"0px",option:{},items:{}}},487628:function(e,t,n){"use strict";n.d(t,{x:function(){return v}}),n(932651),n(706056),n(490629);var r=n(101199),i=n(890710),o=n(622689),s=n.n(o),a=n(429780),l=n(428924),c=n(426337),u=n(219627);n(528665);var f=n(155553),h=n(371187),p=n(371648),d=n(469935),g=n.n(d);let m=()=>{var e;return(e=class e extends c.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(e,t,n)=>{this.setState({list:e,removedItems:t,updatedItems:n})},handleMouseInSideChange:e=>{this.setState({mouseInSide:e})},getInputWrapperRect:()=>{var e;return null===(e=this.innerWrapperRef.current)||void 0===e?void 0:e.getBoundingClientRect()}})}static create(t){var n;let o=null!==(n=t.id)&&void 0!==n?n:(0,f.ZP)("toast");if(e.ref){let n=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(e=>{e in t&&(n.style[e]="number"==typeof t[e]?`${t[e]}px`:t[e])}),!!t.stack!==e.ref.stack&&(e.ref.stack=!!t.stack),e.ref.has(o)?e.ref.update(o,Object.assign(Object.assign({},t),{id:o})):e.ref.add(Object.assign(Object.assign({},t),{id:o}))}else{let n=document.createElement("div");!this.wrapperId&&(this.wrapperId=(0,f.ZP)("toast-wrapper").slice(0,26)),n.className=l.UX.WRAPPER,n.id=this.wrapperId,n.style.zIndex=String("number"==typeof t.zIndex?t.zIndex:e.defaultOpts.zIndex),["top","left","bottom","right"].map(r=>{if(r in e.defaultOpts||r in t){let i=t[r]?t[r]:e.defaultOpts[r];n.style[r]="number"==typeof i?`${i}px`:i}}),e.defaultOpts.getPopupContainer?e.defaultOpts.getPopupContainer().appendChild(n):document.body.appendChild(n),i.render(r.createElement(e,{ref:t=>e.ref=t}),n,()=>{e.ref.add(Object.assign(Object.assign({},t),{id:o})),e.ref.stack=!!t.stack})}return o}static close(t){e.ref&&e.ref.remove(t)}static destroyAll(){if(e.ref){e.ref.destroyAll();let t=document.querySelector(`#${this.wrapperId}`);i.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),e.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"info"}))}static warning(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"warning"}))}static error(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"error"}))}static success(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(n=>{n in t&&(e.defaultOpts[n]=t[n])}),"string"==typeof t.theme&&l.j2.themes.includes(t.theme)&&(e.defaultOpts.theme=t.theme),"number"==typeof t.zIndex&&(e.defaultOpts.zIndex=t.zIndex),"number"==typeof t.duration&&(e.defaultOpts.duration=t.duration),"function"==typeof t.getPopupContainer&&(e.defaultOpts.getPopupContainer=t.getPopupContainer)}has(e){return this.foundation.hasToast(e)}add(e){return this.foundation.addToast(e)}update(e,t){return this.foundation.updateToast(e,t)}remove(e){return this.foundation.removeToast(e)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:e}=this.state,{removedItems:t,updatedItems:n}=this.state;e=Array.from(new Set([...e,...t]));let i=n.map(e=>{let{id:t}=e;return t}),o=e=>{var t;(null===(t=null==e?void 0:e.foundation)||void 0===t?void 0:t._id)&&i.includes(e.foundation._id)&&e.foundation.restartCloseTimer()};return r.createElement(r.Fragment,null,r.createElement("div",{className:g()({[`${l.UX.PREFIX}-innerWrapper`]:!0,[`${l.UX.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},e.map((n,i)=>{let s=void 0!==t.find(e=>e.id===n.id);return r.createElement(p.Z,{key:n.id,motion:n.motion,animationState:s?"leave":"enter",startClassName:s?`${l.UX.PREFIX}-animation-hide`:`${l.UX.PREFIX}-animation-show`},t=>{let{animationClassName:a,animationEventsNeedBind:l,isAnimating:c}=t;return s&&!c?null:r.createElement(u.Z,Object.assign({},n,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:e.length,index:i},className:g()({[n.className]:!!n.className,[a]:!0})},l,{style:Object.assign({},n.style),close:e=>this.remove(e),ref:o}))})})))}constructor(e){super(e),this.stack=!1,this.innerWrapperRef=r.createRef(),this.handleMouseEnter=e=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=e=>{var t;this.stack&&(null===(t=this.foundation.getInputWrapperRect())||void 0===t?void 0:t.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new a.Z(this.adapter)}}).defaultOpts={motion:!0,zIndex:1010,content:""},e.propTypes={content:s().node,duration:s().number,onClose:s().func,icon:s().node,direction:s().oneOf(l.j2.directions),stack:s().bool},e.defaultProps={},e};class v{static create(e){let t=m();return t.useToast=h.Z,e&&t.config(e),t}}t.Z=v.create()},754251:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.used=!1,n.resolve=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.used=!0,e(...r)},n.reject=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.used=!0,t(...r)},n}function i(){try{return parseInt(performance.now(),10)}catch(e){return new Date().getTime()}}n.d(t,{Q:function(){return r},j:function(){return i}}),n(679308),n(490629),n(527553)},81030:function(e,t,n){"use strict";n.d(t,{Cc:function(){return o},Yz:function(){return i}});var r=n(480333);n(374954),n(490629);let i=new class e{get size(){return this._pool.length}findIndex(e){return this._pool.findIndex(t=>t===e)}exist(e){return this.findIndex(e)>-1}add(e){if(!(!e||this.exist(e))&&e instanceof Worker)this._pool.push(e)}remove(e){let t=this.findIndex(e);t>-1&&this._pool.splice(t,1)}pop(){return this._pool.pop()}constructor(){(0,r._)(this,"_pool",[])}},o=new class e{getWorker(){return this.curWorker}associateWorkerWithInstance(e,t){if(!!t)this.curWorker=t,this.instances.add(e)}removeInstance(e){this.instances.delete(e)}getInstanceCount(){return this.instances.size}constructor(){(0,r._)(this,"curWorker",void 0),(0,r._)(this,"instances",new Set)}}},761532:function(e,t,n){"use strict";n.d(t,{U:function(){return i},j:function(){return o}});var r=n(707852);let i={PREFIX:`${r.T}-banner`},o={TYPE:["info","success","danger","warning"]}},550625:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(64360),i=n(954444);function o(e){return(0,i.Z)(e)&&(0,r.Z)(new Date(e))}},683213:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n(490629);var r=n(856445);class i extends r.Z{constructor(){super(...arguments),this.handleVisibleChange=e=>{let{visible:t,onVisibleChange:n}=this.getProps();!(t in this.getProps())&&this.setState({visible:e}),n&&n(e)},this.handleCurrentIndexChange=e=>{let{currentIndex:t,onChange:n}=this.getProps();!(t in this.getProps())&&this.setState({currentIndex:e}),n&&n(e)}}}},698293:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(397997);function i(e){return(0,r.Z)(e)&&"function"==typeof e.then}},852075:function(e,t,n){"use strict";n(490629);var r=n(198412),i=n.n(r),o=n(777296);t.Z=function(e){if("development"===i()(o,"env.NODE_ENV"))for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]}},382344:function(e,t,n){"use strict";n.d(t,{w:function(){return c}}),n(490629);var r=n(320165),i=n(509608),o=n(299690),s=n(705998),a=n(101199),l=n(693653);n(656855);let c=(0,l.r)((0,a.forwardRef)((e,t)=>{let{playerRef:n}=(0,a.useContext)(i.E),[o,l]=(0,a.useState)(()=>{var e,t;return(null===(t=n.current.config.shared)||void 0===t?void 0:null===(e=t.definition)||void 0===e?void 0:e.list)||[]});(0,i.T)(()=>n.current.on("config_updated",()=>{var e,t;l((null===(t=n.current.config.shared)||void 0===t?void 0:null===(e=t.definition)||void 0===e?void 0:e.list)||[])}));let[c,u]=(0,a.useState)(()=>{var e,t;let{defaultDefinition:r,list:i=[]}=null!==(t=null===(e=n.current.config.shared)||void 0===e?void 0:e.definition)&&void 0!==t?t:{};return r?i.find(e=>e.definition===r):i[0]}),f=(0,s.DM)(e=>{u(e),n.current.src=e.url,n.current.emit("definition_change",{from:c,to:e})}),h=(0,s.DM)(()=>c);(0,a.useImperativeHandle)(t,()=>({changeDefinition:f,getCurrentDefinition:h}),[]);let p=o.map(e=>{let t=(null==c?void 0:c.definition)===e.definition;return(0,r.jsx)("div",{onClick:()=>{f(e)},className:"list-item"+(t?" selected":""),children:e.text},e.text)}),d=(0,s.DM)(()=>{n.current.focus({isLock:!0})}),g=(0,s.DM)(()=>{n.current.focus({isLock:!1})});return(0,r.jsxs)("div",{className:"douyin-player-icon douyin-player-definition",onMouseEnter:d,onMouseLeave:g,children:[(0,r.jsx)("div",{className:"douyin-player-definition-list",children:p}),(0,r.jsx)("span",{children:null==c?void 0:c.text})]})}),{position:o.PZ.CONTROL_RIGHT})},838271:function(e,t,n){"use strict";n(679308),Promise.all([n.e("23145"),n.e("21248"),n.e("23634"),n.e("41162"),n.e("21133"),n.e("42794"),n.e("44077"),n.e("27998"),n.e("6060"),n.e("82568"),n.e("8937")]).then(n.bind(n,801067))},620303:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(538660),i=n(189566);function o(e,t,n){var o=(0,i._)(e,t,"set");return(0,r._)(e,o,n),n}},40689:function(e,t,n){"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}n.d(t,{_:function(){return r}})},722049:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r=n(456187),i=n(368183);let o={name:"characterReference",tokenize:function(e,t,n){let o,s;let a=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),c};function c(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=i.H$,f(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=i.AF,f):(e.enter("characterReferenceValue"),o=7,s=i.pY,f(t))}function f(c){if(59===c&&l){let o=e.exit("characterReferenceValue");return s!==i.H$||(0,r.T)(a.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return s(c)&&l++<o?(e.consume(c),f):n(c)}}}},954260:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(368183),i=n(121530),o=n(29394);let s={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let o,s,c,u,f;let h=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),p}(t)};function p(i){return 33===i?(e.consume(i),d):47===i?(e.consume(i),s=!0,v):63===i?(e.consume(i),o=3,h.interrupt?t:M):(0,r.jv)(i)?(e.consume(i),c=String.fromCharCode(i),y):n(i)}function d(i){return 45===i?(e.consume(i),o=2,g):91===i?(e.consume(i),o=5,u=0,m):(0,r.jv)(i)?(e.consume(i),o=4,h.interrupt?t:M):n(i)}function g(r){return 45===r?(e.consume(r),h.interrupt?t:M):n(r)}function m(r){let i="CDATA[";if(r===i.charCodeAt(u++))return(e.consume(r),u===i.length)?h.interrupt?t:E:m;return n(r)}function v(t){return(0,r.jv)(t)?(e.consume(t),c=String.fromCharCode(t),y):n(t)}function y(a){if(null===a||47===a||62===a||(0,r.z3)(a)){let l=47===a,u=c.toLowerCase();if(!l&&!s&&i.L.includes(u))return o=1,h.interrupt?t(a):E(a);if(i.G.includes(c.toLowerCase()))return(o=6,l)?(e.consume(a),b):h.interrupt?t(a):E(a);return o=7,h.interrupt&&!h.parser.lazy[h.now().line]?n(a):s?function t(n){return(0,r.xz)(n)?(e.consume(n),t):S(n)}(a):k(a)}return 45===a||(0,r.H$)(a)?(e.consume(a),c+=String.fromCharCode(a),y):n(a)}function b(r){return 62===r?(e.consume(r),h.interrupt?t:E):n(r)}function k(t){return 47===t?(e.consume(t),S):58===t||95===t||(0,r.jv)(t)?(e.consume(t),C):(0,r.xz)(t)?(e.consume(t),k):S(t)}function C(t){return 45===t||46===t||58===t||95===t||(0,r.H$)(t)?(e.consume(t),C):w(t)}function w(t){return 61===t?(e.consume(t),O):(0,r.xz)(t)?(e.consume(t),w):k(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),f=t,x):(0,r.xz)(t)?(e.consume(t),O):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,r.z3)(n)?w(n):(e.consume(n),t)}(t)}function x(t){return t===f?(e.consume(t),f=null,_):null===t||(0,r.Ch)(t)?n(t):(e.consume(t),x)}function _(e){return 47===e||62===e||(0,r.xz)(e)?k(e):n(e)}function S(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||(0,r.Ch)(t)?E(t):(0,r.xz)(t)?(e.consume(t),A):n(t)}function E(t){return 45===t&&2===o?(e.consume(t),L):60===t&&1===o?(e.consume(t),P):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),M):93===t&&5===o?(e.consume(t),R):(0,r.Ch)(t)&&(6===o||7===o)?(e.exit("htmlFlowData"),e.check(a,z,j)(t)):null===t||(0,r.Ch)(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),E)}function j(t){return e.check(l,T,z)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||(0,r.Ch)(t)?j(t):(e.enter("htmlFlowData"),E(t))}function L(t){return 45===t?(e.consume(t),M):E(t)}function P(t){return 47===t?(e.consume(t),c="",N):E(t)}function N(t){if(62===t){let n=c.toLowerCase();return i.L.includes(n)?(e.consume(t),D):E(t)}return(0,r.jv)(t)&&c.length<8?(e.consume(t),c+=String.fromCharCode(t),N):E(t)}function R(t){return 93===t?(e.consume(t),M):E(t)}function M(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),M):E(t)}function D(t){return null===t||(0,r.Ch)(t)?(e.exit("htmlFlowData"),z(t)):(e.consume(t),D)}function z(n){return e.exit("htmlFlow"),t(n)}}},a={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(o.w,t,n)}}},l={partial:!0,tokenize:function(e,t,n){let i=this;return function(t){return(0,r.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}}},78751:function(e,t,n){"use strict";n.d(t,{E:function(){return p}});var r=n(368183);let i={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},o={tokenize:function(e,t,n){let i,o,s;return l;function l(t){return 46===t||95===t?e.check(a,u,c)(t):null===t||(0,r.z3)(t)||(0,r.B8)(t)||45!==t&&(0,r.Xh)(t)?u(t):(s=!0,e.consume(t),l)}function c(t){return 95===t?i=!0:(o=i,i=void 0),e.consume(t),l}function u(e){return o||i||!s?n(e):t(e)}},partial:!0},s={tokenize:function(e,t){let n=0,i=0;return o;function o(l){return 40===l?(n++,e.consume(l),o):41===l&&i<n?s(l):33===l||34===l||38===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||60===l||63===l||93===l||95===l||126===l?e.check(a,t,s)(l):null===l||(0,r.z3)(l)||(0,r.B8)(l)?t(l):(e.consume(l),o)}function s(t){return 41===t&&i++,e.consume(t),o}},partial:!0},a={tokenize:function(e,t,n){return i;function i(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),i):38===a?(e.consume(a),s):93===a?(e.consume(a),o):60===a||null===a||(0,r.z3)(a)||(0,r.B8)(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||(0,r.z3)(e)||(0,r.B8)(e)?t(e):i(e)}function s(t){return(0,r.jv)(t)?function t(o){return 59===o?(e.consume(o),i):(0,r.jv)(o)?(e.consume(o),t):n(o)}(t):n(t)}},partial:!0},l={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(e){return(0,r.H$)(e)?n(e):t(e)}},partial:!0},c={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!g.call(r,r.previous)||b(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(i,e.attempt(o,e.attempt(s,a),n),n)(t))};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:g},u={name:"protocolAutolink",tokenize:function(e,t,n){let i=this,a="",l=!1;return function(t){return(72===t||104===t)&&m.call(i,i.previous)&&!b(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),c):n(t)};function c(t){if((0,r.jv)(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),c;if(58===t){let n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),u}return n(t)}function u(t){if(47===t)return(e.consume(t),l)?f:(l=!0,u);return n(t)}function f(t){return null===t||(0,r.Av)(t)||(0,r.z3)(t)||(0,r.B8)(t)||(0,r.Xh)(t)?n(t):e.attempt(o,e.attempt(s,h),n)(t)}function h(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:m},f={name:"emailAutolink",tokenize:function(e,t,n){let i,o;let s=this;return function(t){return!y(t)||!v.call(s,s.previous)||b(s.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return y(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(l,u,c)(t):45===t||95===t||(0,r.H$)(t)?(o=!0,e.consume(t),a):u(t)}function c(t){return e.consume(t),i=!0,a}function u(a){return o&&i&&(0,r.jv)(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:v},h={};function p(){return{text:h}}let d=48;for(;d<123;)h[d]=f,58==++d?d=65:91===d&&(d=97);h[43]=f,h[45]=f,h[46]=f,h[95]=f,h[72]=[f,u],h[104]=[f,u],h[87]=[f,c],h[119]=[f,c];function g(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,r.z3)(e)}function m(e){return!(0,r.jv)(e)}function v(e){return!(47===e||y(e))}function y(e){return 43===e||45===e||46===e||95===e||(0,r.H$)(e)}function b(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}},889267:function(e,t,n){"use strict";function r(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}n.d(t,{y:function(){return r}})},743698:function(e,t,n){"use strict";n.d(t,{Uy:function(){return K},Vk:function(){return H}});var r,i=n(629686);n(313036),n(76375),n(414931),n(181365),n(490629),n(932651),n(527553),n(374954),n(559352),n(362051);var o=Symbol.for("immer-nothing"),s=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function u(e){return!!e&&!!e[a]}function f(e){var t;return!!e&&(p(e)||Array.isArray(e)||!!e[s]||!!(null===(t=e.constructor)||void 0===t?void 0:t[s])||y(e)||b(e))}var h=Object.prototype.constructor.toString();function p(e){if(!e||"object"!=typeof e)return!1;let t=c(e);if(null===t)return!0;let n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===h}function d(e,t){0===g(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function g(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===g(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t,n){let r=g(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function k(e){return e.copy_||e.base_}function C(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=p(e);if(!0!==t&&("class_only"!==t||n)){let t=c(e);return null!==t&&n?(0,i._)({},e):Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(c(e),t)}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x(e)||u(e)||!f(e)?e:(g(e)>1&&(e.set=e.add=e.clear=e.delete=O),Object.freeze(e),t&&Object.entries(e).forEach(e=>{let[t,n]=e;return w(n,!0)}),e)}function O(){l(2)}function x(e){return Object.isFrozen(e)}var _={};function S(e){let t=_[e];return!t&&l(0,e),t}function A(){return r}function E(e,t){t&&(S("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function j(e){T(e),e.drafts_.forEach(L),e.drafts_=null}function T(e){e===r&&(r=e.parent_)}function I(e){var t;return t=r,r={drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function L(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function P(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return void 0!==e&&e!==n?(n[a].modified_&&(j(t),l(4)),f(e)&&(e=N(t,e),!t.parent_&&M(t,e)),t.patches_&&S("Patches").generateReplacementPatches_(n[a].base_,e,t.patches_,t.inversePatches_)):e=N(t,n,[]),j(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==o?e:void 0}function N(e,t,n){if(x(t))return t;let r=t[a];if(!r)return d(t,(i,o)=>R(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return M(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;let t=r.copy_,i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),d(i,(i,s)=>R(e,r,t,i,s,n,o)),M(e,t,!1),n&&e.patches_&&S("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function R(e,t,n,r,i,o,s){if(u(i)){let s=N(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,r)?o.concat(r):void 0);if(v(n,r,s),!u(s))return;e.canAutoFreeze_=!1}else s&&n.add(i);if(f(i)&&!x(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;N(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof r&&Object.prototype.propertyIsEnumerable.call(n,r)&&M(e,i)}}function M(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w(t,n)}var D={get(e,t){if(t===a)return e;let n=k(e);if(!m(n,t))return function(e,t,n){var r;let i=$(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.draft_):void 0}(e,n,t);let r=n[t];return e.finalized_||!f(r)?r:r===Z(e.base_,t)?(W(e),e.copy_[t]=U(r,e)):r},has:(e,t)=>t in k(e),ownKeys:e=>Reflect.ownKeys(k(e)),set(e,t,n){let r=$(k(e),t);if(null==r?void 0:r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){var i,o;let r=Z(k(e),t),s=null==r?void 0:r[a];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(o=r)?0!==i||1/i==1/o:i!=i&&o!=o)&&(void 0!==n||m(e.base_,t)))return!0;W(e),F(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==Z(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,W(e),F(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=k(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){l(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){l(12)}},z={};function Z(e,t){let n=e[a];return(n?k(n):e)[t]}d(D,(e,t)=>{z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),z.deleteProperty=function(e,t){return z.set.call(this,e,t,void 0)},z.set=function(e,t,n){return D.set.call(this,e[0],t,n,e[0])};function $(e,t){if(!(t in e))return;let n=c(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=c(n)}}function F(e){!e.modified_&&(e.modified_=!0,e.parent_&&F(e.parent_))}function W(e){!e.copy_&&(e.copy_=C(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var X=class{createDraft(e){!f(e)&&l(8),u(e)&&(e=H(e));let t=I(this),n=U(e,void 0);return n[a].isManual_=!0,T(t),n}finishDraft(e,t){let n=e&&e[a];(!n||!n.isManual_)&&l(9);let{scope_:r}=n;return E(r,t),P(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=S("Patches").applyPatches_;return u(e)?r(e,t):this.produce(e,e=>r(e,t))}constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{let r;if("function"==typeof e&&"function"!=typeof t){let n=t;t=e;let r=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return r.produce(e,e=>t.call(this,e,...o))}}if("function"!=typeof t&&l(6),void 0!==n&&"function"!=typeof n&&l(7),f(e)){let i=I(this),o=U(e,void 0),s=!0;try{r=t(o),s=!1}finally{s?j(i):T(i)}return E(i,n),P(r,i)}if(e&&"object"==typeof e)l(1,e);else{if(void 0===(r=t(e))&&(r=e),r===o&&(r=void 0),this.autoFreeze_&&w(r,!0),n){let t=[],i=[];S("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}},this.produceWithPatches=(e,t)=>{let n,r;if("function"==typeof e){var i=this;return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return i.produceWithPatches(t,t=>e(t,...r))}}return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}};function U(e,t){let n=y(e)?S("MapSet").proxyMap_(e,t):b(e)?S("MapSet").proxySet_(e,t):function(e,t){let n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,s=D;n&&(o=[i],s=z);let{revoke:a,proxy:l}=Proxy.revocable(o,s);return i.draft_=l,i.revoke_=a,l}(e,t);return(t?t.scope_:r).drafts_.push(n),n}function H(e){return!u(e)&&l(10,e),function e(t){let n;if(!f(t)||x(t))return t;let r=t[a];if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=C(t,r.scope_.immer_.useStrictShallowCopy_)}else n=C(t,!0);return d(n,(t,r)=>{v(n,t,e(r))}),r&&(r.finalized_=!1),n}(e)}var V=new X,K=V.produce;V.produceWithPatches.bind(V),V.setAutoFreeze.bind(V),V.setUseStrictShallowCopy.bind(V),V.applyPatches.bind(V),V.createDraft.bind(V),V.finishDraft.bind(V)}}]);