(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["55663"],{793571:function(e,t,n){"use strict";var r=n(101199),o=n(280647);function i(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=l.immediately,u=void 0!==a&&a,c=l.trailing,d=void 0===c||c,s=l.leading,v=void 0!==s&&s,f=(0,r.useRef)(),h=(0,r.useRef)(!1),m=(0,r.useRef)(!1),p=(0,r.useRef)(e);p.current=e;var g=(0,r.useRef)([]),y=(0,r.useCallback)(function(){f.current&&clearTimeout(f.current)},[]),w=(0,r.useCallback)(function(){for(var e,n=arguments.length,r=Array(n),o=0;o-1&&(o=setTimeout(function(){u.removeItem(e)},t));var i={data:n,timer:o,startTime:new Date().getTime()};u.setValue(e,i)},d=function(e){var t=u.getValue(e);return{data:null==t?void 0:t.data,startTime:null==t?void 0:t.startTime}},s=function(e){u.changeType(e)},v=n("953857"),f=n.n(v),h=n("964544"),m=n.n(h);function p(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("88856");function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};this.state=w(w({},this.state),e),this.onChangeState&&this.onChangeState(this.state)}},{key:"cancelPolling",value:function(){void 0!==this.pollingTimer&&(window.clearTimeout(this.pollingTimer),this.pollingTimer=void 0)}},{key:"dontPolling",value:function(){this.setState({isPolling:!1})}},{key:"_run",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return this.options=w(w({},this.options),e),this.run.apply(this,p(this.state.params))}},{key:"changeData",value:function(e){"function"==typeof e?this.setState({data:e(this.state.data)||{}}):this.setState({data:e})}}],b(e.prototype,t),r}();function x(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||j(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},u=o.staleTime,v=void 0===u?3e5:u,f=o.auto,h=void 0!==f&&f,m=o.defaultParams,p=void 0===m?[]:m,g=o.refreshDeps,y=o.initData,w=o.ready,b=void 0===w||w,C=o.cacheKey,S=o.cacheStoreType,E=void 0===S?"memory":S,T=o.cacheTime,L=void 0===T?3e5:T,M=o.loadingCheck,I=o.errorCheck,R=o.formatResult,z=o.requestKey,D=o.onError,N=o.onSuccess,A=(0,a.Z)(e),F=(0,a.Z)(N),V=(0,a.Z)(D),W=R?(0,a.Z)(R):void 0,H=(0,a.Z)(z),Z=(0,i.useCallback)(function(e,t){$(function(n){return O(O({},n),{},k({},e,t))})},[]),B=(0,i.useRef)(C);B.current=C;var q=(0,i.useRef)(b);q.current=b;var U=(0,i.useRef)(P),K=function(){if(B.current){var e=d(B.current)||{},t=e.data,n=e.startTime,r=-1===v||new Date().getTime()-(void 0===n?0:n)<=v;if(t&&r){U.current=t.currentRequestKey;var i={};return Object.keys(t.requests).forEach(function(e){var n=t.requests[e],r=new _(A,O(O({},o),{},{onSuccess:F,onError:V,formatResult:W}),Z.bind(null,e),{loading:n.loading,params:n.params,data:n.data,error:n.error});i[e]=r.state}),i}}return{}};var G=(n=2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(function(){return"memory"!==E&&s(E),K()}))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&null!=a.return&&a.return()}finally{if(o)throw i}}return n}}(t,2)||j(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),X=G[0],$=G[1],J=(0,i.useRef)(X);J.current=X;var Y=(0,i.useRef)(),Q=(0,i.useCallback)(function(){for(var e,t,n=arguments.length,r=Array(n),i=0;i0?Object.values(X).forEach(function(e){e.refresh()}):Q.apply(void 0,x(p))),function(){Object.values(J.current).forEach(function(e){e.unmount()})}},[b]),(0,l.Z)(function(){if(q.current&&h){var e=K();0===Object.keys(e).length?Object.values(X).forEach(function(e){e.refresh()}):$(e)}},x(void 0===g?[]:g));var en=[o.debounceInterval,o.throttleInterval,o.pollingInterval];if((0,l.Z)(function(){Object.values(X).forEach(function(e){e.refreshOptions({debounceInterval:o.debounceInterval,throttleInterval:o.throttleInterval,pollingInterval:o.pollingInterval})})},[].concat(en)),r=X[U.current]?O(O({},X[U.current]),{},{run:Q,reset:ee,requests:X}):{loading:h&&b,isPolling:!1,data:y,error:void 0,params:[],cancel:function(){},unmount:function(){},reset:function(){},refresh:function(){},refreshOptions:function(){},changeData:function(){},run:Q,requests:X},"undefined"!=typeof Proxy){var er=!(void 0!==M&&M),eo=!(void 0!==I&&I);return new Proxy(r,{get:function(e,t,n){return"data"===t||"loading"===t,e[t]}})}return r};function T(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||R(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.ready,r=void 0===n||n,o=t.resetDeps,a=t.refreshDeps,u=t.itemKey,c=t.initPageSize,d=void 0===c?10:c,s=t.ref,v=t.threshold,f=void 0===v?100:v,h=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0)&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}}return o}(t,["ready","resetDeps","refreshDeps","itemKey","initPageSize","ref","threshold"]),m=t.hasMoreHanlder,p=t.isNoMore,g=t.hasMoreHandler,y=t.noMoreHandler;y=y||g||m||p;var w=t.incrementSize||d,b=I((0,i.useState)(!1),2),_=b[0],x=b[1],j=I((0,i.useState)(1),2),C=j[0],S=j[1],O=(0,i.useRef)(0),k=(0,i.useRef)(new Date().getTime()),P={data:{list:[]},current:1,pageSize:d,offset:0,startTime:k.current},L="boolean"!=typeof h.auto||h.auto,R=I((0,i.useState)(),2),z=R[0],D=R[1],N=E(e,M(M({},h),{},{ready:r,auto:L,defaultParams:[P],requestKey:function(e){var t,n;return((null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.list)||void 0===n?void 0:n.length)||0)+k.current},onSuccess:function(){var e;null!=z&&null!==(e=z.list)&&void 0!==e&&e.length&&s&&s.current&&(s.current.scrollTop=0),D(void 0),x(!1),S(function(e){return e+1}),t.onSuccess&&t.onSuccess.apply(t,arguments)},onError:function(){x(!1),t.onError&&t.onError.apply(t,arguments)}})),A=N.data,F=N.run,V=N.error,W=N.reset,H=N.loading,Z=N.requests,B=(0,i.useMemo)(function(){var e=[],t=A||{};return Object.keys(Z).sort(function(e,t){return Number(e)-Number(t)}).forEach(function(n){var r,o,i=Z[n];null!==(r=i.data)&&void 0!==r&&r.list&&(e=e.concat(null===(o=i.data)||void 0===o?void 0:o.list)),!i.loading&&(t=i.data)}),M(M({},t),{},{list:e})},[Z,A]),q=!!(!H&&!_&&(y?y(A,V,B):!A||!A.list.length||A.total&&B.list.length>=A.total)),U=(0,i.useCallback)(function(){var e,t,n,r=B.list;return{data:B,current:C,pageSize:1===C?d:w,offset:r.length,id:u&&r.length>0?(e=r[r.length-1],t=r.length-1,void 0===(n="function"==typeof u?u(e,t):e[u])?t:n):void 0,startTime:k.current}},[C,d,w,B]),K=(0,i.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!0===e&&D(B),W(),S(1),k.current=new Date().getTime(),F(P)},[F,W,B]),G=(0,i.useRef)(K);G.current=K,(0,l.Z)(function(){r&&L&&G.current()},[].concat(T(void 0===o?[]:o),T(void 0===a?[]:a)));var X=(0,i.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(D(void 0),!q&&!H&&!_)x(!0),F(M(M({},U()),e))},[q,H,_,F,B,U]);(0,i.useEffect)(function(){if(!s||!s.current)return function(){};var e=function(){if(!!s&&!!s.current)O.currente.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},r=n.defaultPageSize,o=void 0===r?10:r,a=n.initCurrent,u=void 0===a?1:a,c=n.resetFirst,d=void 0!==c&&c,s=n.resetDeps,v=n.refreshDeps,f=(n.requestKey,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0)&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}}return o}(n,["defaultPageSize","initCurrent","resetFirst","resetDeps","refreshDeps","requestKey"])),h=n.pageSize,m=n.current,p="boolean"!=typeof f.auto||f.auto,g=[A({current:u,pageSize:o},(null===(t=f.defaultParams)||void 0===t?void 0:t[0])||{})].concat(F((f.defaultParams||[]).slice(1))),y=E(e,A(A({},f),{},{defaultParams:g,auto:p})),w=y.data,b=y.params,_=y.run,x=y.loading,j=b&&b[0]?b[0]:g[0]||{},C=j.current,S=void 0===C?u:C,O=j.pageSize,k=void 0===O?o:O,P=j.sorter,T=j.filters;h&&(k=h),m&&(S=m);var L=(0,i.useCallback)(function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=b)||W(t)||V(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n.slice(1);return _.apply(void 0,[A(A({},r),e)].concat(F(o)))},[_,b]),M=(null==w?void 0:w.total)||0,I=(0,i.useMemo)(function(){return Math.ceil(M/k)},[k,M]),R=(0,i.useCallback)(function(e,t){var n=e<=0?1:e,r=Math.ceil(M/(t<=0?1:t));return n>r&&(n=r),L({current:e,pageSize:t})},[M,L]);(0,i.useRef)(R).current=R;var z=(0,i.useCallback)(function(e){R(e,k)},[R,k]),D=(0,i.useCallback)(function(e){R(S,e)},[R,S]),N=(0,i.useRef)(z);N.current=z,(0,l.Z)(function(){p&&N.current(m||(d?1:u))},[].concat(F(void 0===s?[]:s),F(void 0===v?[]:v),[h,m]));var H=(0,i.useCallback)(function(e,t,n){L({current:void 0===e.current?u:e.current,pageSize:e.pageSize||o,filters:t,sorter:n})},[L]),Z=(0,i.useCallback)(function(){_(g[0],g[1])},[]);return A(A({},y),{},{reset:Z,loading:x,data:w,params:b,pagination:{current:S,pageSize:k,total:M,totalPage:I,onChange:R,changeCurrent:z,changePageSize:D},tableProps:{dataSource:(null==w?void 0:w.list)||[],loading:x,onChange:H,pagination:{current:S,pageSize:k,total:M}},sorter:void 0===P?{}:P,filters:void 0===T?{}:T})};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}}return o}var X=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.defaultValue,u=o.refreshDeps,c=o.debounceInterval,d=G(o,["defaultValue","refreshDeps","debounceInterval"]),s="boolean"!=typeof d.auto||d.auto;var v=(n=2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(a))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&null!=a.return&&a.return()}finally{if(o)throw i}}return n}}(t,2)||U(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=v[0],h=v[1],m=E(e,q(q({defaultParams:[a]},d),{},{debounceInterval:void 0===c?300:c,auto:!1})),p=m.run,g=G(m,["run"]);(0,l.Z)(function(){s&&p(f)},function(e){if(Array.isArray(e))return K(e)}(r=void 0===u?[]:u)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||U(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),(0,i.useEffect)(function(){p(f)},[f]);var y=(0,i.useCallback)(function(){return p(f)},[p,f]);return q(q({},g),{},{value:f,onChange:h,run:y})};function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=J(J({},(0,i.useContext)(Y)),t),r=n.mode;return r===o.loadMore?D(e,n):r===o.pagination?Z(e,n):r===o.search?X(e,n):E(e,n)}},953857:function(e){var t=0/0,n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,l=parseInt,a="object"==typeof window&&window&&window.Object===Object&&window,u="object"==typeof self&&self&&self.Object===Object&&self,c=a||u||Function("return this")(),d=Object.prototype.toString,s=Math.max,v=Math.min,f=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if("symbol"==typeof(a=e)||(u=a)&&"object"==typeof u&&"[object Symbol]"==d.call(a))return t;if(h(e)){var a,u,c="function"==typeof e.valueOf?e.valueOf():e;e=h(c)?c+"":c}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||i.test(e)?l(e.slice(2),s?2:8):r.test(e)?t:+e}e.exports=function(e,t,n){var r,o,i,l,a,u,c=0,d=!1,p=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,l=e.apply(i,n)}t=m(t)||0,h(n)&&(d=!!n.leading,i=(p="maxWait"in n)?s(m(n.maxWait)||0,t):i,g="trailing"in n?!!n.trailing:g);function w(e){var n=e-u,r=e-c;return void 0===u||n>=t||n<0||p&&r>=i}function b(){var e,n,r,o,l=f();if(w(l))return _(l);a=setTimeout(b,(n=(e=l)-u,r=e-c,o=t-n,p?v(o,i-r):o))}function _(e){return(a=void 0,g&&r)?y(e):(r=o=void 0,l)}function x(){var e,n=f(),i=w(n);if(r=arguments,o=this,u=n,i){if(void 0===a){;return c=e=u,a=setTimeout(b,t),d?y(e):l}if(p)return a=setTimeout(b,t),y(u)}return void 0===a&&(a=setTimeout(b,t)),l}return x.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=u=o=a=void 0},x.flush=function(){return void 0===a?l:_(f())},x}},964544:function(e){var t="Expected a function",n=0/0,r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof window&&window&&window.Object===Object&&window,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),s=Object.prototype.toString,v=Math.max,f=Math.min,h=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(u=t)&&"object"==typeof u&&"[object Symbol]"==s.call(t))return n;if(m(e)){var t,u,c="function"==typeof e.valueOf?e.valueOf():e;e=m(c)?c+"":c}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var d=i.test(e);return d||l.test(e)?a(e.slice(2),d?2:8):o.test(e)?n:+e}e.exports=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw TypeError(t);return m(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),function(e,n,r){var o,i,l,a,u,c,d=0,s=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError(t);function w(t){var n=o,r=i;return o=i=void 0,d=t,a=e.apply(r,n)}n=p(n)||0,m(r)&&(s=!!r.leading,l=(g="maxWait"in r)?v(p(r.maxWait)||0,n):l,y="trailing"in r?!!r.trailing:y);function b(e){var t=e-c,r=e-d;return void 0===c||t>=n||t<0||g&&r>=l}function _(){var e,t,r,o,i=h();if(b(i))return x(i);u=setTimeout(_,(t=(e=i)-c,r=e-d,o=n-t,g?f(o,l-r):o))}function x(e){return(u=void 0,y&&o)?w(e):(o=i=void 0,a)}function j(){var e,t=h(),r=b(t);if(o=arguments,i=this,c=t,r){if(void 0===u){;return d=e=c,u=setTimeout(_,n),s?w(e):a}if(g)return u=setTimeout(_,n),w(c)}return void 0===u&&(u=setTimeout(_,n)),a}return j.cancel=function(){void 0!==u&&clearTimeout(u),d=0,o=c=i=u=void 0},j.flush=function(){return void 0===u?a:x(h())},j}(e,n,{leading:o,maxWait:n,trailing:i})}},982364:function(e,t){"use strict";t.Z={semiIcon:"oOAgB5Od",settingsDot:"d6BENh_d",cooperation:"AgPyOphm",navuiOuter:"By0S9JHW",btn:"UgsDQUDw",navui:"ww9n8F95",active:"ML_awFAF",isClient:"ymoOwTvc",submenuPopover:"skLZFnhW",item:"PDdIhG_m",activeItem:"x5kuulEz",subMenu:"RTbsUGJw",menuHidden:"gqTpSX2x",textLabel:"FO8ulC5z",wider:"yJZaNoTp",subMenuContent:"ASNnyl5Q",btnOuter:"XXWRlaaY"}},693947:function(e,t,n){"use strict";n.d(t,{s:function(){return b},R:function(){return x}}),n("490629");var r=n("320165"),o=n("101199"),i=n("890710"),l=n("469935"),a=n.n(l),u=n("431356"),c=n.n(u),d=n("261784"),s=n("991742"),v=n("863005"),f=n("177683"),h={popover:"yK8mjWlq",content:"AizOe7Qc",contentVisible:"AV2Fzvx4"};let m=(0,o.memo)(e=>{let{position:t="right",defaultVisible:n=!1,visible:i,onVisibleChange:l,content:u,children:c,contentClassName:d,mouseEnterDelay:s,mouseLeaveDelay:m,className:p}=e,[g,y]=(0,v.C)({defaultValue:n,value:i}),w=(0,o.useRef)(null),b=(0,o.useRef)(null),{onMouseEnter:_,onMouseLeave:x}=(0,f.U)({enterDelay:s,leaveDelay:m,onMouseEnter:()=>{y(!0),!g&&(null==l||l(!0))},onMouseLeave:()=>{y(!1),g&&(null==l||l(!1))}});return(0,r.jsxs)("div",{className:a()(h.popover,p),ref:w,onMouseEnter:_,onMouseLeave:x,children:[c,(0,r.jsx)("div",{className:a()(h.content,d,g&&h.contentVisible),ref:b,style:{top:-12},children:u})]})});var p=n("982364"),g=n("176449"),y=n("234150"),w=n("611311");let b=e=>{var t;let{menuItem:n,closeMenu:i,onPanelShow:l,onPanelClose:u}=e,s=c()(null==n?void 0:n.subMenu)&&n.subMenu.length>0,[v,f]=(0,o.useState)(!1),h=(0,o.useCallback)(e=>{f(e),e&&s&&(null==l||l(1,null==n?void 0:n.subMenuKey)),!e&&s&&(null==u||u())},[s,l,u]);return(0,r.jsx)(m,{position:"right",className:a()(p.Z.submenuPopover),contentClassName:p.Z.subMenuContent,mouseLeaveDelay:0,onVisibleChange:h,content:(0,r.jsx)("div",{className:a()(p.Z.subMenu,{[p.Z.menuHidden]:!s}),children:null==n?void 0:null===(t=n.subMenu)||void 0===t?void 0:t.filter(e=>{let{hidden:t}=e;return!t}).map((e,t)=>{var n;return(0,r.jsx)(b,{menuItem:e,closeMenu:i,onPanelShow:(e,t)=>null==l?void 0:l(e+1,t)},null!==(n=e.key)&&void 0!==n?n:t)})}),children:"textLabel"!==n.type?(0,r.jsxs)(y.a,{className:a()(n.className,p.Z.item,{[p.Z.activeItem]:v}),onClick:e=>{var t;n.url?null==i||i():e.preventDefault(),null===(t=n.onClick)||void 0===t||t.call(n,i)},href:n.url,target:"_blank",children:[n.text,s&&(0,r.jsx)(g.Z,{src:d.Z,width:12,height:12,viewBox:"0 0 24 24"})]}):(0,r.jsx)("div",{className:p.Z.textLabel,children:n.text})})},_=e=>{let{portalRef:t,position:n="right",btnRect:l,changeType:u,menuItems:c,wider:d,onPanelShow:v,customChildren:f=null,customChildrenLen:h=0,panelClassName:m}=e,g=(0,o.useRef)(null),y=c.filter(e=>{let{hidden:t}=e;return!t}).length,w=f?h:39*y+24+2*(y-1),_=(0,o.useMemo)(()=>{if(!l)return{display:"none"};let e=l.bottom>w?l.bottom-w- -20:l.top;return(e=Math.min(e,document.documentElement.clientHeight-w),"top"===n&&(0,s.S7)())?{left:8,top:e-54}:{left:60,top:e-12}},[l,w,n]);return(0,o.useEffect)(()=>{var e;let t=e=>{null==e||e.preventDefault(),null==e||e.stopPropagation()};return null===(e=g.current)||void 0===e||e.addEventListener("wheel",t),()=>{var e;null===(e=g.current)||void 0===e||e.removeEventListener("wheel",t)}},[]),(0,i.createPortal)((0,r.jsxs)("div",{ref:g,className:a()("coopPanel",m,{[p.Z.wider]:d}),style:_,onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},children:[c.length>0&&(null==c?void 0:c.filter(e=>{let{hidden:t}=e;return!t}).map((e,t)=>{var n;return(0,r.jsx)(b,{menuItem:e,closeMenu:()=>u(!1),onPanelShow:(e,t)=>null==v?void 0:v(e+1,t)},null!==(n=e.key)&&void 0!==n?n:t)})),f]}),t.current)},x=e=>{let{abTestData:t,onClick:n,portalRef:i,children:l,menuItems:u,wider:c,onPanelShow:d,className:s,panelClassName:v,customChildren:f,customChildrenLen:h,btnOuterRef:m}=e,[g,y]=(0,o.useState)(),{type:b,changeType:x}=(0,w.P)({delayDisappear:50});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:p.Z.btnOuter,ref:m,children:(0,r.jsx)("div",{onMouseEnter:e=>{var t,n;if(!b)null==d||d(1),y(null==e?void 0:null===(n=e.target)||void 0===n?void 0:null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n)),x(!0)},onMouseLeave:()=>{x(!1)},className:a()(p.Z.btn,p.Z.tabType,s,{[p.Z.active]:b,[p.Z.navui]:!0}),onClick:n,children:l})}),b&&(0,r.jsx)(_,{customChildren:f,wider:c,position:"top",menuItems:u,btnRect:g,portalRef:i,changeType:x,onPanelShow:d,customChildrenLen:h,panelClassName:v})]})}},738121:function(e,t,n){"use strict";n.d(t,{w:function(){return eG},N:function(){return eX}});var r=n("629686"),o=n("402748");n("490629"),n("706056");var i=n("320165"),l=n("101199"),a=n("890710"),u=n("469935"),c=n.n(u),d=n("48795"),s=n("568955"),v=n("414800"),f=n("638052"),h=n("356336"),m=n("759894"),p=n("618759"),g=n("409250"),y=n("749113"),w=n("889429"),b=n("795653"),_=n("414061"),x=n("426038");function j(){return(j=Object.assign||function(e){for(var t=1;t(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 12a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0zm1.5 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0zm-8.762-4a.5.5 0 0 1 .5-.5h.5a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5h-.5a.5.5 0 0 1-.5-.5V8zm.004 2.996a.5.5 0 0 1 .5-.5h.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-.5a.5.5 0 0 1-.5-.5v-5z",fill:"currentColor"})}))),L=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm0 1.5a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm.435-11.994c-1.44-.167-2.208.368-2.617.874-.127.154-.31.465-.372.66l-.003.01c-.028.079-.203.568-.029.746.144.148.35.155.516.16l.098.004c.146.011.537-.033.592-.237.076-.285.249-.746.68-1.017.506-.317 1.138-.164 1.477.037.446.263.552.87.33 1.195-.116.17-.338.354-.595.566-.248.206-.529.439-.777.71-.49.538-.479 1.247-.45 1.704h1.266l-.003-.083c-.005-.134-.014-.341.043-.557.074-.28.265-.443.593-.72.176-.15.39-.33.646-.581.73-.713.732-1.074.734-1.451l.001-.118c.01-.379-.411-1.703-2.13-1.902zm-.45 8.107a.882.882 0 1 0 0-1.764.882.882 0 0 0 0 1.764z",fill:"currentColor"})}))),M=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.956 5.83c.3.286.313.76.028 1.061l-4.756 5.013a.75.75 0 1 1-1.088-1.033l4.755-5.012a.75.75 0 0 1 1.06-.028zM6.76 8.493a1.242 1.242 0 0 1 1.242-1.247H15a.75.75 0 0 0 0-1.5H8.002A2.742 2.742 0 0 0 5.26 8.498l.032 8.012a2.75 2.75 0 0 0 2.75 2.739h8.008a2.75 2.75 0 0 0 2.75-2.75v-4.5a.75.75 0 0 0-1.5 0v4.5c0 .69-.56 1.25-1.25 1.25H8.042a1.25 1.25 0 0 1-1.25-1.245L6.76 8.492zm2.254 5.496a.75.75 0 1 0 0 1.5H14.5a.75.75 0 1 0 0-1.5H9.014zm.005-3.485a.75.75 0 0 0 0 1.5h2.98a.75.75 0 1 0 0-1.5H9.02z",fill:"currentColor"})}))),I=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.609 10.256c.934-.133 1.73.617 1.808 1.516.058.666.132 1.416.205 1.867.06.369.153.884.246 1.382.213 1.144-.707 2.223-1.905 2.105a24.877 24.877 0 0 1-.538-.06 3.679 3.679 0 0 1-1.217-.385c-.549-.281-.83-.816-.917-1.32-.072-.418-.167-.99-.203-1.342-.019-.175-.043-.409-.07-.65-.095-.898.167-1.908 1.07-2.47a9.2 9.2 0 0 1 .223-.134c.372-3.384 3.243-6.074 6.79-6.074 3.588 0 6.488 2.755 6.801 6.201l.01.006c.903.563 1.166 1.573 1.07 2.47l-.07.65c-.036.353-.13.925-.203 1.343-.087.504-.368 1.039-.917 1.32-.163.084-.359.17-.58.243-.326.663-.833 1.209-1.535 1.62-.765.449-1.738.724-2.911.853a1.321 1.321 0 1 1 .096-1.216c.946-.124 1.67-.353 2.21-.669.2-.117.378-.249.534-.395-.977-.141-1.66-1.094-1.474-2.097.094-.497.187-1.012.246-1.381.073-.451.148-1.201.205-1.867.084-.966.996-1.76 2.019-1.472a5.636 5.636 0 0 0-10.993-.044zm.082 1.206c.211-.074.504.066.534.414.057.661.135 1.453.216 1.954.062.384.158.911.25 1.41a.577.577 0 0 1-.61.695 23.126 23.126 0 0 1-.511-.056 2.487 2.487 0 0 1-.816-.262c-.126-.065-.242-.216-.284-.46-.074-.424-.16-.957-.193-1.262a275.71 275.71 0 0 0-.069-.653c-.066-.613.126-1.088.513-1.329l.113-.069a4.83 4.83 0 0 1 .857-.382zm10.618 0c-.211-.074-.504.066-.534.414a31.26 31.26 0 0 1-.216 1.954 65.04 65.04 0 0 1-.25 1.41c-.075.4.244.732.61.695.177-.017.351-.036.511-.056.307-.037.592-.147.817-.262.125-.065.241-.216.283-.46.074-.424.161-.957.193-1.262.018-.177.043-.412.07-.653.065-.613-.127-1.088-.514-1.329a4.832 4.832 0 0 0-.97-.452z",fill:"currentColor"})}))),R=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("path",{d:"M12.315 6.05H7.05a.81.81 0 0 0-.81.81v10.53c0 .447.363.81.81.81h10.53a.81.81 0 0 0 .81-.81v-5.265",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),(0,i.jsx)("ellipse",{cx:17.175,cy:7.265,rx:2.025,ry:2.025,fill:"currentColor"})]}))),z=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.155 10.05a2 2 0 0 1 2 2v5.5a2 2 0 0 1-2 2h-8.5a2 2 0 0 1-2-2v-5.5a2 2 0 0 1 2-2l-.003-1.358a4.25 4.25 0 1 1 8.5-.017l.003 1.376zm-1.5 0l-.003-1.372a2.75 2.75 0 1 0-5.5.011l.003 1.362h5.5zm-7 1.5h8.5a.5.5 0 0 1 .5.5v5.5a.5.5 0 0 1-.5.5h-8.5a.5.5 0 0 1-.5-.5v-5.5a.5.5 0 0 1 .5-.5z",fill:"currentColor"})}))),D=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("path",{d:"M11.633 4.624c.8.059 1.501.442 1.978 1.01.43.509.677 1.168.652 1.876l-.003.069c-.01.179-.04.354-.082.522l-.074.282 1.238-.318.072-.017c1.5-.345 3.04.516 3.444 1.977l.033.116c.157.685.04 1.37-.279 1.948l-.02-.049a1.499 1.499 0 0 0-.99-.859c.07-.239.083-.497.023-.757l-.012-.047a1.55 1.55 0 0 0-1.836-1.105h-.005l-4.734 1.207c-.01.003-.02 0-.027-.006A.03.03 0 0 1 11 10.45l.009-.13.086-1.41c.206.045.43.05.664-.004.613-.144 1.097-.635 1.194-1.256a1.494 1.494 0 0 0-.19-.994l-.036-.058a1.55 1.55 0 0 0-1.17-.704l-.047-.004A1.547 1.547 0 0 0 9.874 7.27v.006l-.297 4.802a.03.03 0 0 1-.033.026l-.008-.002-.104-.04-1.356-.523c.107-.18.18-.386.2-.623l.003-.058a1.539 1.539 0 0 0-.796-1.421l-.052-.027-.067-.032a1.564 1.564 0 0 0-.95-.096l-.065.014c-.467.118-.871.445-1.06.92a1.522 1.522 0 0 0 .824 1.96l.006.002 4.55 1.763c.02.008.023.03.013.043l-.072.086-.924 1.108a1.472 1.472 0 0 0-.498-.361l-.043-.019-.055-.021a1.59 1.59 0 0 0-1.617.305l-.043.04a1.517 1.517 0 0 0 .118 2.259 1.57 1.57 0 0 0 2.145-.169h.002l.002-.002 3.11-3.715a.034.034 0 0 1 .025-.011c.008 0 .015.003.02.008l.003.006.06.092.54.833c-.409.881-.847 1.752-1.317 2.596h-.001l-.294.526a2.848 2.848 0 0 1-.156-.318l-.109-.267-.812.972c-.983 1.177-2.74 1.405-3.958.493l-.058-.045a2.78 2.78 0 0 1-1.052-1.938l-.006-.071a2.762 2.762 0 0 1 1.02-2.325l.226-.187-1.193-.46c-1.464-.563-2.228-2.178-1.674-3.616a2.82 2.82 0 0 1 1.617-1.61 2.886 2.886 0 0 1 2.564.234l.248.154.076-1.258v.001a2.863 2.863 0 0 1 2.979-2.684l.078.005zm4.7 9.45l-.105.261.105-.261zm-1.762-3.152c.02.208.086.417.21.62l.024.036c-.1.1-.185.217-.254.346l-.057.117-.402.945-1.057-1.633-.003-.006a.026.026 0 0 1 .02-.034l.11-.028 1.41-.363z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M17.733 13.85a41.154 41.154 0 0 0 1.909 3.898l.419.753-.964.487-.516-.974c-.06-.113-.123-.233-.203-.39l-.016-.03-.033-.009a7.014 7.014 0 0 0-3.57.001l-.033.01-.016.03c-.08.156-.144.276-.203.388l-.516.974-.964-.486.42-.754a41.245 41.245 0 0 0 1.909-3.897l.519-1.223c.444.08.894.08 1.338 0l.52 1.222zm4.399-1.312a3.444 3.444 0 0 0-.16.83c-.02.31-.03.624-.03.935v2.746c0 .311.01.626.03.935.018.28.072.559.16.83H20.7a3.46 3.46 0 0 0 .16-.83c.02-.312.03-.627.03-.935v-2.746c0-.308-.01-.622-.03-.934a3.46 3.46 0 0 0-.16-.831h1.432zm-5.905 1.796a41.06 41.06 0 0 1-.881 2.004l-.062.13.142-.02a8.087 8.087 0 0 1 2.236 0l.142.02-.062-.13a41.06 41.06 0 0 1-.882-2.004l-.316-.775-.317.776z",fill:"currentColor"})]}))),N=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{d:"M12 3.2c.877 0 1.74.085 2.187.254.392.15.32.312.28.627-.023.175-.045.327-.067.458l-.02-.003c.134.023.263.044.388.07l.322.076.032.01c.226.07.463.19.656.366.169.152.339.38.389.678l.014.133v.001c.006.16.007.326.004.487l.034-.013c.641-.243 1.445-.378 2.09-.007.52.3.902.921 1.144 1.635.234.689.366 1.556.344 2.557a5.617 5.617 0 0 1 1.032 3.284c0 2.258-.941 3.98-2.564 5.114-1.493 1.042-3.513 1.553-5.803 1.613l-.462.007c-2.469 0-4.664-.461-6.26-1.55-1.634-1.117-2.57-2.846-2.57-5.184 0-1.298.375-2.41 1.008-3.33-.018-.99.119-1.846.353-2.528.243-.705.623-1.32 1.138-1.617v-.001c.645-.372 1.45-.236 2.09.007l.037.014A7.85 7.85 0 0 1 7.8 5.87l.013-.132c.05-.298.22-.526.388-.68a1.77 1.77 0 0 1 .656-.366l.033-.01c.238-.06.5-.113.78-.159l-.073.011c-.021-.13-.043-.28-.066-.452-.04-.315-.111-.478.28-.627.446-.17 1.311-.254 2.188-.254zm-.01 2.45c-1.09 0-2.066.112-2.756.287a.597.597 0 0 0-.093.04c-.019.01-.033.02-.044.029-.007.191-.008.35.003.477.008.097.019.15.024.17a.35.35 0 0 0 .072.051c.074.043.184.088.334.131a.65.65 0 0 1 .471.639c-.005.25-.052.501-.146.778a.65.65 0 0 1-1.064.265 4.672 4.672 0 0 0-1.49-.957c-.54-.204-.86-.167-.982-.096v-.001c-.116.067-.357.328-.558.915-.192.56-.319 1.333-.28 2.283a.65.65 0 0 1-.127.415c-.548.734-.883 1.635-.883 2.737l.008.357c.088 1.747.82 2.95 1.995 3.753 1.291.882 3.186 1.323 5.526 1.323l.432-.005c2.132-.056 3.874-.533 5.088-1.38 1.264-.883 2.008-2.202 2.008-4.048l-.004-.196a4.316 4.316 0 0 0-.899-2.49.65.65 0 0 1-.132-.423c.045-.963-.079-1.747-.271-2.314-.202-.595-.446-.859-.562-.926l-.055-.025c-.151-.051-.455-.057-.927.122a4.667 4.667 0 0 0-1.49.956.65.65 0 0 1-1.064-.264 2.577 2.577 0 0 1-.145-.78.65.65 0 0 1 .471-.638c.15-.043.26-.088.334-.13a.343.343 0 0 0 .071-.053.961.961 0 0 0 .026-.169c.01-.127.01-.286.003-.477-.012-.008-.025-.02-.043-.03a.604.604 0 0 0-.096-.04c-.69-.174-1.665-.286-2.755-.286zm4.413 4.705a.273.273 0 0 1 .26.077 3.022 3.022 0 1 1-4.562 3.951.134.134 0 0 0-.21 0 3.022 3.022 0 1 1-4.563-3.951.273.273 0 0 1 .26-.077c.234.053.722.16 1.321.27a1.999 1.999 0 1 0 2.87 1.799c0-.594-.26-1.125-.67-1.491.309.026.61.046.887.046.297 0 .62-.022.951-.052a2 2 0 1 0 2.177-.31c.58-.107 1.051-.21 1.28-.261zm-5.877.957c.01-.025.047-.025.056 0l.246.712a.03.03 0 0 0 .018.019l.706.238c.025.01.025.046 0 .055l-.714.244a.03.03 0 0 0-.018.019l-.239.705a.029.029 0 0 1-.055 0l-.244-.708a.03.03 0 0 0-.017-.019l-.704-.244a.029.029 0 0 1 0-.055l.707-.239a.031.031 0 0 0 .017-.018l.241-.709zm4.141 0c.01-.025.045-.025.055 0l.246.712a.03.03 0 0 0 .017.019l.706.238c.026.01.026.046 0 .055l-.714.244a.03.03 0 0 0-.017.019l-.24.705a.029.029 0 0 1-.054 0l-.244-.708a.03.03 0 0 0-.018-.019l-.704-.244c-.026-.01-.025-.046 0-.055l.707-.239a.03.03 0 0 0 .018-.018l.242-.709z"})}))),A=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4.25a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5h-4zm-3 3A2.75 2.75 0 0 0 4.25 10v7A2.75 2.75 0 0 0 7 19.75h10A2.75 2.75 0 0 0 19.75 17v-7A2.75 2.75 0 0 0 17 7.25H7zM5.75 10c0-.69.56-1.25 1.25-1.25h10c.69 0 1.25.56 1.25 1.25v7c0 .69-.56 1.25-1.25 1.25H7c-.69 0-1.25-.56-1.25-1.25v-7zm3.5 3.5a.75.75 0 0 1 .75-.75h1.25V11.5a.75.75 0 0 1 1.5 0v1.25H14a.75.75 0 0 1 0 1.5h-1.25v1.25a.75.75 0 0 1-1.5 0v-1.25H10a.75.75 0 0 1-.75-.75z",fill:"currentColor"})}))),F=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69 9.347V7.824H5.6a.75.75 0 1 1 0-1.5h3.09V4.8a.75.75 0 0 1 1.5 0v1.524h8.21a.75.75 0 0 1 0 1.5h-8.21v1.523a.75.75 0 1 1-1.5 0zM5.6 11.298a.75.75 0 1 0 0 1.5h8.21v1.476a.75.75 0 0 0 1.5 0v-1.476h3.09a.75.75 0 0 0 0-1.5h-3.09V9.726a.75.75 0 0 0-1.5 0v1.572H5.6zm0 4.973a.75.75 0 0 0 0 1.5h3.09v1.43a.75.75 0 0 0 1.5 0v-1.43h8.21a.75.75 0 0 0 0-1.5h-8.21v-1.618a.75.75 0 1 0-1.5 0v1.618H5.6z",fill:"currentColor"})}))),V=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.634 5.401a6.004 6.004 0 0 1 8.028 7.363l1.598 1.598a2.75 2.75 0 0 1-3.89 3.89l-1.588-1.59A6.004 6.004 0 0 1 5.398 8.63L5.83 7.6l.79.79 1.807 1.806a1.25 1.25 0 1 0 1.768-1.768L8.392 6.624 7.6 5.832l1.034-.43zm1.734 1.078l.888.888a2.75 2.75 0 0 1-3.89 3.889l-.894-.895a4.504 4.504 0 0 0 6.21 4.74l.464-.195.357.356 1.928 1.929a1.25 1.25 0 1 0 1.768-1.768l-1.935-1.936-.355-.354.192-.463a4.504 4.504 0 0 0-4.733-6.191z",fill:"currentColor"})}))),W=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("rect",{x:6,y:7,width:13,height:11,rx:2,stroke:"currentColor",strokeWidth:1.5}),(0,i.jsx)("path",{d:"M14.75 12.067a.5.5 0 0 1 0 .866l-3 1.732a.5.5 0 0 1-.75-.433v-3.464a.5.5 0 0 1 .75-.433l3 1.732z",fill:"currentColor"})]}))),H=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("mask",{id:"theme-dark_svg__a",fill:"#fff",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.53 14.247A6.004 6.004 0 0 0 12.101 6a6.004 6.004 0 1 1-5.889 8.239c.106.005.211.008.318.008z"})}),(0,i.jsx)("path",{d:"M12.101 6l.063-1.198-1.879-.098.703 1.745L12.101 6zm-5.889 8.239l.063-1.198-1.879-.098.703 1.745 1.113-.449zm5.122-5.996a4.804 4.804 0 0 1-4.804 4.804v2.4a7.204 7.204 0 0 0 7.204-7.204h-2.4zm-.346-1.794c.223.552.346 1.157.346 1.794h2.4c0-.95-.184-1.858-.52-2.692l-2.226.898zm1.05.75a4.804 4.804 0 0 1 4.55 4.797h2.4a7.204 7.204 0 0 0-6.824-7.194l-.125 2.396zm4.55 4.797a4.804 4.804 0 0 1-4.805 4.804v2.4a7.204 7.204 0 0 0 7.205-7.204h-2.4zM11.783 16.8a4.806 4.806 0 0 1-4.458-3.01l-2.226.898a7.206 7.206 0 0 0 6.684 4.512v-2.4zM6.53 13.047c-.086 0-.17-.002-.255-.006l-.125 2.396c.126.007.253.01.38.01v-2.4z",fill:"currentColor",mask:"url(#theme-dark_svg__a)"})]}))),Z=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.667 3.833H6.833l.962-.32-.417-1.25-1.423.474.365 1.096H2.5v1.5h6.637c-.074.235-.165.502-.275.787-.375.979-.935 2.099-1.69 2.87l-.151.15a7.123 7.123 0 0 1-1.068-1.59 8.929 8.929 0 0 1-.485-1.162 3.818 3.818 0 0 1-.02-.066l-.005-.015v-.001l-.721.206A133.6 133.6 0 0 0 4 6.72v.004l.003.008.008.027.03.092c.024.078.061.187.111.322.1.268.25.638.46 1.053.289.575.702 1.262 1.264 1.887-.499.378-1.013.722-1.479 1.013a23.996 23.996 0 0 1-1.53.877l-.021.011-.005.002a315.797 315.797 0 0 1 .674 1.34h.003l.007-.005.027-.013.098-.051a25.376 25.376 0 0 0 1.542-.889 20.901 20.901 0 0 0 1.832-1.277c.865.614 1.884 1.149 2.702 1.538a28.145 28.145 0 0 0 1.634.714l.027.01.007.003h.002v.001h.001l.268-.7.269-.7h-.001l-.005-.003-.021-.008a24.688 24.688 0 0 1-.416-.17c-.281-.118-.675-.289-1.12-.501a18.585 18.585 0 0 1-2.186-1.207l.057-.057c.97-.99 1.618-2.336 2.02-3.383.2-.52.344-.984.44-1.324h.964v-1.5zm3.186 5.865a.75.75 0 0 0-1.373 0l-2.379 5.412-.95 2.078 1.365.624.752-1.645h3.798l.752 1.645 1.364-.624-.95-2.078-2.379-5.412zm-.686 2.166l1.232 2.803h-2.464l1.232-2.803z",fill:"currentColor"})}))),B=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("path",{d:"M14.903 10.967a1.25 1.25 0 0 1 0 2.066l-3.407 2.324a1.25 1.25 0 0 1-1.954-1.032v-4.65a1.25 1.25 0 0 1 1.954-1.032l3.407 2.324zM10.842 9.77v4.46L14.11 12l-3.268-2.23z",fill:"#fff"}),(0,i.jsx)("path",{d:"M4.667 8.083a2.75 2.75 0 0 1 2.75-2.75h9.166a2.75 2.75 0 0 1 2.75 2.75v7.834a2.75 2.75 0 0 1-2.75 2.75H7.417a2.75 2.75 0 0 1-2.75-2.75V8.083zm2.75-1.25c-.69 0-1.25.56-1.25 1.25v7.834c0 .69.56 1.25 1.25 1.25h9.166c.69 0 1.25-.56 1.25-1.25V8.083c0-.69-.56-1.25-1.25-1.25H7.417z",fill:"#fff"})]}))),q=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("path",{d:"M17.004 12.212a.6.6 0 0 1 0-1.2h1.2a.6.6 0 1 1 0 1.2h-1.2zM15.954 8.489a.6.6 0 1 1-.848-.849l.848-.848a.6.6 0 1 1 .849.848l-.849.849zM15.11 15.558a.6.6 0 0 1 .85-.849l.848.849a.6.6 0 1 1-.849.848l-.848-.848zM7.191 7.638a.6.6 0 0 1 .849-.848l.848.848a.6.6 0 1 1-.848.849l-.849-.849zM8.038 16.405a.6.6 0 0 1-.848-.849l.848-.848a.6.6 0 1 1 .849.848l-.849.849zM5.8 12.212a.6.6 0 0 1 0-1.2H7a.6.6 0 1 1 0 1.2H5.8zM11.41 5.396a.6.6 0 1 1 1.2 0v1.2a.6.6 0 0 1-1.2 0v-1.2zM11.41 16.6a.6.6 0 0 1 1.2 0v1.2a.6.6 0 0 1-1.2 0v-1.2z",fill:"currentColor"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4 11.6a2.4 2.4 0 1 0-4.8 0 2.4 2.4 0 0 0 4.8 0zm1.2 0a3.6 3.6 0 1 0-7.2 0 3.6 3.6 0 0 0 7.2 0z",fill:"currentColor"})]}))),U=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{d:"M16.876 12.58l-.567-.492a.75.75 0 0 0-.183.491h.75zm2.244-2.593l.567.49a.75.75 0 0 0-.007-.99l-.56.5zm-3.548-3.981l.56-.5a.75.75 0 0 0-1.243.19l.683.31zm-7 0l.701-.267a.75.75 0 0 0-1.248-.246l.547.513zM4.84 9.99l-.547-.513a.75.75 0 0 0-.015 1.01l.562-.497zm2.299 2.603h.75a.75.75 0 0 0-.188-.496l-.562.496zm8.737 5.564v-.75.75zm1-1h-.75.75zM8.14 18.92l7.737-.012-.003-1.5-7.736.012.002 1.5zm9.484-1.762V12.58h-1.5v4.578h1.5zm-.182-4.087l2.244-2.592-1.134-.982-2.244 2.592 1.134.982zm2.237-3.582l-3.548-3.981-1.12.998 3.548 3.98 1.12-.997zM8.025 5.493L4.293 9.477l1.095 1.025L9.12 6.518 8.025 5.493zm-3.747 4.993l2.299 2.604 1.124-.993-2.299-2.604-1.124.993zm2.111 2.107v4.575h1.5v-4.574h-1.5zm9.183-6.587l-.683-.31v-.001l.001-.001v-.002l.002-.001-.003.006a2.446 2.446 0 0 1-.132.223 3.264 3.264 0 0 1-.499.586c-.453.42-1.172.85-2.262.85v1.5c1.534 0 2.604-.621 3.282-1.25.335-.311.574-.622.73-.858a3.916 3.916 0 0 0 .246-.43v-.001l.001-.001-.683-.31zm-3.576 1.35c-1.088 0-1.76-.426-2.168-.832a2.858 2.858 0 0 1-.537-.747 1.115 1.115 0 0 1-.02-.044v.002l.001.002.001.001-.7.268-.702.267a.038.038 0 0 0 .001.002 1.544 1.544 0 0 1 .019.046l.042.094a4.358 4.358 0 0 0 .838 1.173c.647.644 1.686 1.268 3.224 1.268v-1.5zm3.882 11.551a1.75 1.75 0 0 0 1.747-1.75h-1.5a.25.25 0 0 1-.25.25l.003 1.5zm-7.74-1.488a.25.25 0 0 1-.25-.25h-1.5a1.75 1.75 0 0 0 1.753 1.75l-.002-1.5z",fill:"currentColor"})}))),K=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsxs)("g",{fill:"currentColor",children:[(0,i.jsx)("path",{d:"M10.55 8.405a.956.956 0 0 1-.966.946.956.956 0 0 1-.965-.946c0-.522.432-.946.965-.946.533 0 .965.424.965.946zM12.923 8.868a.956.956 0 0 0 .966-.946.956.956 0 0 0-.966-.945.956.956 0 0 0-.965.945c0 .523.432.946.965.946zM16.558 9.954a.956.956 0 0 1-.965.946.956.956 0 0 1-.965-.946c0-.522.432-.946.965-.946.533 0 .965.424.965.946zM15.95 14.192a.956.956 0 0 0 .965-.946.956.956 0 0 0-.965-.945.956.956 0 0 0-.965.945c0 .523.432.946.965.946z"}),(0,i.jsx)("path",{d:"M4.44 8.61C5.74 5.888 8.563 4 11.836 4 16.345 4 20 7.582 20 12s-3.655 8-8.164 8a8.27 8.27 0 0 1-3.07-.596l-.014-.006-.015-.006a1.994 1.994 0 0 1-1.112-1.29c-.289-1.057.348-2.143 1.424-2.43h.003c.59-.155.966-.793.809-1.366-.16-.587-.785-.942-1.393-.787-1.699.445-3.818-.09-4.362-2.079-.127-.464-.128-1-.065-1.479.061-.473.195-.965.399-1.351zm7.396-3.191c-2.695 0-5.021 1.556-6.09 3.804l-.008.015-.008.015c-.106.198-.206.52-.254.888-.048.369-.034.706.028.932.254.928 1.313 1.411 2.59 1.076l.004-.001c1.37-.353 2.792.44 3.161 1.791.366 1.336-.477 2.745-1.83 3.102a.565.565 0 0 0-.406.693.566.566 0 0 0 .306.363c.78.308 1.623.484 2.507.484 3.71 0 6.716-2.946 6.716-6.581 0-3.635-3.007-6.581-6.716-6.581z"})]})}))),G=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("circle",{cx:12,cy:12,r:6.4,stroke:"currentColor",strokeWidth:1.2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 17a5 5 0 0 0 0-10v10z",fill:"currentColor"})]}))),X=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 12a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0zm1.5 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0zm-11.28-.153a.75.75 0 0 1 0-1.06l2.42-2.42a1.25 1.25 0 0 1 1.768 0l2.33 2.329a.75.75 0 1 1-1.061 1.06l-1.403-1.403-.004 4.912a.75.75 0 1 1-1.5-.001l.004-4.91-1.494 1.493a.75.75 0 0 1-1.06 0z",fill:"currentColor"})}))),$=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:7,height:8,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.22 2.78a.75.75 0 1 0 1.06 1.06l1.494-1.494-.004 4.91a.75.75 0 0 0 1.5.002l.004-4.912 1.403 1.403a.75.75 0 1 0 1.06-1.06L4.409.358a1.25 1.25 0 0 0-1.768 0L.22 2.779z",fill:"currentColor"})}))),J=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("rect",{x:6,y:7,width:13,height:11,rx:2,stroke:"currentColor",strokeWidth:1.5}),(0,i.jsx)("path",{d:"M14.75 12.067a.5.5 0 0 1 0 .866l-3 1.732a.5.5 0 0 1-.75-.433v-3.464a.5.5 0 0 1 .75-.433l3 1.732z",fill:"currentColor"})]}))),Y=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("rect",{x:6.5,y:6.5,width:11,height:11,rx:5.5,fill:"#fff",stroke:"#FE2C55",strokeWidth:5})}))),Q=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("rect",{x:4.75,y:4.75,width:14.5,height:14.5,rx:7.25,stroke:"currentColor",strokeWidth:1.5})})));var ee=n("963964"),et=n("881055"),en=n("396868"),er=n("365169");let eo=e=>{let{isLogin:t,externalRef:n}=e,[r,o]=(0,l.useState)(!1),i=n||(0,l.useRef)(null),a=(0,l.useRef)(!1),u=(0,l.useRef)(null),c=(0,l.useRef)(null),{unloginNeedShowLoginModal:d}=(0,er.Iq)(e=>{let{unloginNeedShowLoginModal:t}=e;return{unloginNeedShowLoginModal:t}}),{attemptOpen:s,executeClose:v}=(0,ee.B)({popName:"默认landing设置弹窗",onOpen:()=>{o(!0)},onClose:()=>{o(!1),!a.current&&et.N.setUserSettingInfo({setType:k.y.RecordShowWindow,recordShowWindow:1})}}),f=()=>(s(),u.current=setTimeout(()=>{v()},3e4),()=>{clearTimeout(u.current)}),h=async e=>{a.current=!0;try{await et.N.setUserSettingInfo({setType:k.y.LandingMode,landingMode:e}),_.emit(_.EVENT.SyncLandingMode,{mode:e}),v()}catch(e){en.F.info("服务异常,请重试")}},m=async()=>{a.current=!0;try{await et.N.setUserSettingInfo({setType:k.y.IgnoreShowWindow,ignoreShowWindow:1}),v()}catch(e){en.F.info("服务异常,请重试")}},p=async()=>{try{var e,t;let n=!1;(null===(t=window)||void 0===t?void 0:null===(e=t.EXPOSE_DATA)||void 0===e?void 0:e.showUserLandingWindow)===1?n=!0:(await et.N.intConfig(),n=(null===et.N||void 0===et.N?void 0:et.N.showUserLandingWindow)===1),n&&f()}catch(e){}};return(0,l.useEffect)(()=>{if(t)return p(),()=>{u.current&&clearTimeout(u.current)};if(d){let e=_.listen(_.EVENT.coldStartLoginClose,()=>{c.current=setTimeout(()=>{p()},3e4)});return()=>{clearTimeout(c.current),u.current&&clearTimeout(u.current),null==e||e()}}p()},[t,d]),(0,l.useEffect)(()=>{if(r){let e=()=>{!a.current&&et.N.setUserSettingInfo({setType:k.y.RecordShowWindow,recordShowWindow:1})};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}},[null==a?void 0:a.current,r]),{isShowLandingGuidePopup:r,handleSave:h,handleClose:()=>{v()},landingGuidePopupPortalRef:i,handleClick:()=>{clearTimeout(u.current)},handleNeverShowAgain:m}};var ei=n("499059");let el=e=>{let{isLogin:t,externalRef:n}=e,[r,o]=(0,l.useState)(!1),i=n||(0,l.useRef)(null),a=(0,l.useRef)(!1),u=(0,l.useRef)(null),c=(0,l.useRef)(null),{unloginNeedShowLoginModal:d}=(0,er.Iq)(e=>{let{unloginNeedShowLoginModal:t}=e;return{unloginNeedShowLoginModal:t}}),{attemptOpen:s,executeClose:v}=(0,ee.B)({popName:"默认landing设置弹窗",onOpen:()=>{o(!0)},onClose:()=>{o(!1),!a.current&&et.N.setUserSettingInfo({setType:k.y.RecordShowWindow,recordShowWindow:1})}}),f=()=>(s(),u.current=setTimeout(()=>{v()},3e4),()=>{clearTimeout(u.current)}),h=async e=>{a.current=!0;try{await et.N.setUserSettingInfo({setType:k.y.LandingMode,landingMode:e}),_.emit(_.EVENT.SyncLandingMode,{mode:e}),v()}catch(e){en.F.info("服务异常,请重试")}},p=async()=>{a.current=!0;try{await et.N.setUserSettingInfo({setType:k.y.IgnoreShowWindow,ignoreShowWindow:1}),v()}catch(e){en.F.info("服务异常,请重试")}},g=async()=>{try{var e,t,n,r,o,i;ei.Le.setConfig(ei.gI.JxValidActionCollect,{status:"stop"});let l=!1;if((null===(t=window)||void 0===t?void 0:null===(e=t.EXPOSE_DATA)||void 0===e?void 0:e.landingReason)==="new_user_landing_select_libra"&&(null===(r=window)||void 0===r?void 0:null===(n=r.EXPOSE_DATA)||void 0===n?void 0:n.isShowToday)==="0"&&(null===(i=window)||void 0===i?void 0:null===(o=i.EXPOSE_DATA)||void 0===o?void 0:o.initIsRootPath)==="1"?l=!0:(await et.N.intConfig(),(null===et.N||void 0===et.N?void 0:et.N.landingReason)==="new_user_landing_select_libra"&&(null===et.N||void 0===et.N?void 0:et.N.isShowToday)===!1&&(l=!0)),!l)return;let a=ei.Le.getConfig(ei.gI.JxValidActionCollect);(null==a?void 0:a.validActionCount)===0&&f()}catch(e){}};return(0,l.useEffect)(()=>{var e,n,r,o,i,l,a,s;if(!t&&((null===(n=window)||void 0===n?!void 0:null===(e=n.EXPOSE_DATA)||void 0===e?!void 0:!e.landingReason)||(null===(o=window)||void 0===o?void 0:null===(r=o.EXPOSE_DATA)||void 0===r?void 0:r.landingReason)==="new_user_landing_select_libra")&&(null===(l=window)||void 0===l?void 0:null===(i=l.EXPOSE_DATA)||void 0===i?void 0:i.isShowToday)!=="1"&&(null===(s=window)||void 0===s?void 0:null===(a=s.EXPOSE_DATA)||void 0===a?void 0:a.initIsRootPath)!=="0"&&"discover"===(0,m.vM)()){if(!d)return ei.Le.setConfig(ei.gI.JxValidActionCollect,{status:"start"}),c.current=setTimeout(()=>{g()},15e3),()=>{clearTimeout(c.current),u.current&&clearTimeout(u.current)};{let e=_.listen(_.EVENT.coldStartLoginClose,()=>{ei.Le.setConfig(ei.gI.JxValidActionCollect,{status:"start"}),c.current=setTimeout(()=>{g()},15e3)});return()=>{clearTimeout(c.current),u.current&&clearTimeout(u.current),null==e||e()}}}},[t,d]),(0,l.useEffect)(()=>{if(r){let e=()=>{!a.current&&et.N.setUserSettingInfo({setType:k.y.RecordShowWindow,recordShowWindow:1})};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}},[null==a?void 0:a.current,r]),{isShowLandingGuidePopup:r,handleSave:h,handleClose:()=>{v()},landingGuidePopupPortalRef:i,handleClick:()=>{clearTimeout(u.current)},handleNeverShowAgain:p}},ea=e=>{let t=(0,l.useRef)(null),n=eo((0,o._)((0,r._)({},e),{externalRef:t})),i=el((0,o._)((0,r._)({},e),{externalRef:t}));return i.isShowLandingGuidePopup?(0,o._)((0,r._)({},i),{landingGuidePopupPortalRef:t}):(0,o._)((0,r._)({},n),{landingGuidePopupPortalRef:t})};var eu=n("913285"),ec=n("693947"),ed=n("339808"),es=n("19277"),ev=n("601034"),ef=n("907382");let eh=e=>{let{abTestData:t}=e,[n,r]=(0,l.useState)(""),o=(0,ed.a)();(0,l.useEffect)(()=>{r((0,es.Bj)((0,ev.yW)(),{themeColorOptimize:null==t?void 0:t.themeColorOptimize}))},[o.pathname,t]);let{handleChangeTheme:i,isDark:a,isClassicMode:u,isLightMode:c,isDarkMode:d}=(0,ef.C)();return{isDark:a,showThemeChanger:!n,handleChangeTheme:i,isClassicMode:u,isLightMode:c,isDarkMode:d}};var em=n("604649"),ep=n("535684"),eg=n("334413"),ey=n("982364"),ew=n("250146"),eb=n("183690"),e_=n("147597"),ex=n("966473");let ej=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("rect",{x:6.5,y:6.5,width:11,height:11,rx:5.5,fill:"#fff",stroke:"#FE2C55",strokeWidth:5})})));var eC="QFAN8o3k",eS="qcEWcoYv",eO="rS2qVuTf",ek="Ad4hjsg4",eP="VMQuY918",eE="wWsGm9rR",eT="AA5XXn89",eL="_kza1GO8",eM="ySowIrbo",eI="pghPjd7W",eR="_WtFGVa8",ez="maUfGIlY",eD="a6MD6GF5",eN="en27VzGR",eA="RPoKP9OS",eF="vus9CGuz";let eV=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("rect",{x:4.75,y:4.75,width:14.5,height:14.5,rx:7.25,stroke:"currentColor",strokeWidth:1.5})})));var eW=n("316213");let eH=e=>{let{icon:t,children:n,onClick:r}=e;return(0,i.jsxs)("div",{className:eF,onClick:r,children:[t,n]})},eZ={[k.Fd.Discover]:"discover",[k.Fd.Recommend]:"recommend"},eB=e=>{let{onSave:t,onNeverShowAgain:n,onClose:r,onClick:o,onBlur:a}=e,[u,d]=(0,l.useState)(k.Fd.Discover),s=(0,ex.x)(()=>{f.logInstance.sendLog("defaultLandingSettingShow",{enter_method:"pop_up"})}),v=e=>{f.logInstance.sendLog("defaultLandingSettingClick",{enter_method:"pop_up",click_position:"save",click_result:eZ[e]}),null==t||t(e)};return(0,l.useEffect)(()=>{if(s.current){var e,t;null===(t=s.current)||void 0===t||null===(e=t.focus)||void 0===e||e.call(t)}},[s.current]),(0,i.jsxs)("div",{ref:s,className:eC,tabIndex:-1,onClick:o,onBlur:a,children:[(0,i.jsxs)("div",{className:eS,children:[(0,i.jsx)("div",{className:eO,children:"默认首页设置"}),(0,i.jsx)(eW.z,{onClick:()=>{f.logInstance.sendLog("defaultLandingSettingClick",{enter_method:"pop_up",click_position:"close",click_result:eZ[u]}),null==r||r()},className:ek,svg:(0,i.jsx)(e_.Z,{style:{fontSize:"20px"}})})]}),(0,i.jsx)("div",{className:eP,children:"每次打开抖音默认进入的页面:"}),(0,i.jsxs)("div",{className:eE,children:[(0,i.jsxs)("div",{className:eT,children:[(0,i.jsx)("div",{className:c()(eL,eM)}),(0,i.jsx)("div",{className:eR,children:(0,i.jsx)(eH,{icon:u===k.Fd.Discover?(0,i.jsx)(ej,{}):(0,i.jsx)(eV,{}),onClick:()=>d(k.Fd.Discover),children:"精选页"})})]}),(0,i.jsxs)("div",{className:eT,children:[(0,i.jsx)("div",{className:c()(eL,eI)}),(0,i.jsx)("div",{className:eR,children:(0,i.jsx)(eH,{icon:u===k.Fd.Recommend?(0,i.jsx)(ej,{}):(0,i.jsx)(eV,{}),onClick:()=>d(k.Fd.Recommend),children:"推荐页"})})]})]}),(0,i.jsxs)("div",{className:ez,children:[(0,i.jsx)("div",{onClick:()=>{f.logInstance.sendLog("defaultLandingSettingClick",{enter_method:"pop_up",click_position:"never_show",click_result:eZ[u]}),null==n||n()},className:c()(eD,eN),children:"不再提示"}),(0,i.jsx)("div",{onClick:()=>null==v?void 0:v(u),className:c()(eD,eA),children:"保存"})]})]})};var eq=n("771410");let eU="theme_color",eK="default_landing",eG=e=>{let{abTestData:t,isLogin:n}=e,l=(0,eg.mw)(),u=eX(e,l),{isMas:c,isShowRedPoint:d,onMouseEnterHandler:h,onMouseLeaveHandler:g}=l,{landingGuidePopupPortalRef:y,isShowLandingGuidePopup:w,handleSave:b,handleClose:_,handleClick:x,handleNeverShowAgain:j}=ea({isLogin:e.isLogin}),{isSupportGameHelper:S}=(0,s.u)();return(0,i.jsxs)(eu.k,{componentName:v.y.SettingsPanelFragment,children:[(0,i.jsxs)(ec.R,(0,o._)((0,r._)({},e),{wider:!0,menuItems:u,onPanelShow:(e,r)=>{f.logInstance.sendLog("settingPanelShow",{enter_from:(0,m.mo)(),panel_type:e}),S&&eq.Z.report("dygame_module_show",{traffic_source:"sidebar",enter_method:"sidebar",location:{current_page:"sidebar"},module_name:"game_ai_assistant_setting",attr:{is_login:n?"1":"0"}}),(null==t?void 0:t.feedbackOnline)&&f.logInstance.sendLog("customerServiceEntryShow",{entrance_id:(0,p.DT)()?"IM338523-3585":"IM6383-3586",timestamp:new Date().getTime()}),2===e&&r===eU&&f.logInstance.sendLog("settingPanelShow",{enter_from:(0,m.mo)(),panel_type:e,panel_name:eU}),2===e&&r===eK&&f.logInstance.sendLog("defaultLandingSettingShow",{enter_method:"click_setting"})},btnOuterRef:y,children:[(0,i.jsx)(C,{className:ey.Z.semiIcon,onMouseEnter:h,onMouseLeave:g}),!c&&d&&(0,i.jsx)("span",{className:ey.Z.settingsDot})]})),w&&y.current&&(0,a.createPortal)((0,i.jsx)(eB,{onSave:b,onClose:_,onNeverShowAgain:j,onClick:x,onBlur:_}),y.current)]})},eX=(e,t)=>{var n,r;let{isClient:o,isLogin:a,abTestData:u}=e,{isDark:c,handleChangeTheme:d,showThemeChanger:v,isClassicMode:j,isDarkMode:C,isLightMode:S}=eh({abTestData:u}),{userInfo:ee,dispatch:et}=(0,P.useUserInfoContext)()||{},{isUseDriverCheck:en,showDriverCheck:er}=(0,eg.YZ)(),{hasMoreClientSettings:eo,hasDesktopWidget:ei,hasNoticeSettings:el,openClientSettings:ea}=(0,eg.Nt)(),{isMas:eu,isShowUpdateTag:ec,askToUpdate:ed}=t||{},[es,ev]=(0,l.useState)(!1),ef=(null==u?void 0:u.multiSceneLightMode)!==h.MultiSceneLightMode.Off&&(null==u?void 0:u.multiSceneLightMode)!==h.MultiSceneLightMode.A4,ey=(null==u?void 0:u.multiSceneLightMode)!==h.MultiSceneLightMode.Off,e_=(null==u?void 0:u.volumeBalance)===h.VolumeBalance.On&&(null==u?void 0:u.volumeBalanceControl),{landingMode:ex,changeLandingMode:ej}=(0,eb.E)(!1,null===(r=window)||void 0===r?void 0:null===(n=r.EXPOSE_DATA)||void 0===n?void 0:n.landingMode),{isSupportGameHelper:eC}=(0,s.u)(),eS=e=>{if(g.Q.getItem({sKey:x.CookieKeys.DyI18n})!==e)g.Q.setItem(x.CookieKeys.DyI18n,e),location.href="https://www.douyin.com"},eO=[{text:(0,i.jsx)(e$,{icon:ex===k.Fd.Recommend?(0,i.jsx)(Y,{}):(0,i.jsx)(Q,{}),children:"推荐频道"}),onClick:()=>ej(k.Fd.Recommend)},{text:(0,i.jsx)(e$,{icon:ex===k.Fd.Discover?(0,i.jsx)(Y,{}):(0,i.jsx)(Q,{}),children:"精选频道"}),onClick:()=>ej(k.Fd.Discover)},{text:(0,i.jsx)(e$,{icon:ex===k.Fd.Follow?(0,i.jsx)(Y,{}):(0,i.jsx)(Q,{}),children:"关注频道"}),onClick:()=>ej(k.Fd.Follow)}];return(0,l.useEffect)(()=>{ev(!1===window.isMainland)},[u]),[{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(Z,{}),children:y.a.t("language",{},"语言设置")}),hidden:!es,subMenu:[{text:(0,i.jsx)(e$,{children:"English"}),onClick:()=>eS("en")},{text:(0,i.jsx)(e$,{children:y.a.t("chinese",{},"简体中文")}),onClick:()=>eS("zh")}]},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(W,{}),children:"默认首页设置"}),hidden:!1,subMenuKey:eK,subMenu:[{type:"textLabel",text:"启动时,默认进入:"},...eO]},{text:ef?(0,i.jsx)(e$,{icon:(0,i.jsx)(K,{}),children:"背景设置"}):(0,i.jsxs)("div",{className:E.themeLabel,children:[(0,i.jsx)(e$,{icon:ey?(0,i.jsx)(K,{}):(0,i.jsx)(U,{}),children:ey?y.a.t("depth_mode",{},"背景设置"):y.a.t("depth_mode",{},"深浅模式")}),ey&&(0,i.jsx)(eJ,{tooltip:"经典模式",active:j,onClick:()=>d(x.ThemeMode.Classic),children:(0,i.jsx)(G,{})}),(0,i.jsx)(eJ,{tooltip:"浅色模式",active:S||!ey&&!c,onClick:()=>d(x.ThemeMode.Light),children:(0,i.jsx)(q,{})}),(0,i.jsx)(eJ,{tooltip:"深色模式",active:C||!ey&&c,onClick:()=>d(x.ThemeMode.Dark),children:(0,i.jsx)(H,{})})]}),hidden:!v,className:E.themeHover,subMenuKey:eU,subMenu:ef?[{text:(0,i.jsx)(e$,{icon:j?(0,i.jsx)(Y,{}):(0,i.jsx)(Q,{}),children:"经典模式"}),onClick:()=>d(x.ThemeMode.Classic)},{text:(0,i.jsx)(e$,{icon:C?(0,i.jsx)(Y,{}):(0,i.jsx)(Q,{}),children:"深色模式"}),onClick:()=>d(x.ThemeMode.Dark)},{text:(0,i.jsx)(e$,{icon:S?(0,i.jsx)(Y,{}):(0,i.jsx)(Q,{}),children:"浅色模式"}),onClick:()=>d(x.ThemeMode.Light)}]:void 0},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(V,{}),children:y.a.t("general_settings",{},"通用设置")}),hidden:!a&&!o,subMenu:[{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(z,{}),children:"隐私设置"}),hidden:o,onClick:e=>{f.logInstance.sendLog("settingPanelClick",{enter_from:(0,m.mo)(),menu:"隐私设置"}),(0,ep.l)({from:"personal_panel",showNotice:!0,showPlay:e_,defaultContentTab:ep.X.PrivateSetting,showWebPush:[h.WebPushType.Push,h.WebPushType.PushNPull].includes(null==u?void 0:u.douyinWebPush),showLandingPage:!1}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(R,{}),children:"通知设置"}),hidden:o||(0,w.G6)()||(0,p.tq)()||(0,p.iO)()||(0,p._1)(),onClick:e=>{f.logInstance.sendLog("settingPanelClick",{enter_from:(0,m.mo)(),menu:"通知设置"}),(0,ep.l)({from:"personal_panel",showNotice:!0,showPlay:e_,abTestData:u,defaultContentTab:ep.X.NoticeSetting,showWebPush:[h.WebPushType.Push,h.WebPushType.PushNPull].includes(null==u?void 0:u.douyinWebPush),showLandingPage:!1}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(B,{}),children:"播放设置"}),hidden:!e_||o||(0,p.tq)()||(0,p.iO)()||(0,p._1)(),onClick:e=>{f.logInstance.sendLog("settingPanelClick",{enter_from:(0,m.mo)(),menu:"播放设置"}),(0,ep.l)({from:"personal_panel",showNotice:!0,showPlay:e_,abTestData:u,defaultContentTab:ep.X.PlaySetting,showWebPush:[h.WebPushType.Push,h.WebPushType.PushNPull].includes(null==u?void 0:u.douyinWebPush),showLandingPage:!1}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(J,{}),children:"默认页面"}),hidden:!0,onClick:e=>{f.logInstance.sendLog("settingPanelClick",{enter_from:(0,m.mo)(),menu:"默认页面"}),(0,ep.l)({from:"personal_panel",showNotice:!0,showPlay:e_,defaultContentTab:ep.X.LandingPageSetting,showWebPush:[h.WebPushType.Push,h.WebPushType.PushNPull].includes(null==u?void 0:u.douyinWebPush),showLandingPage:!0}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(F,{}),children:"基本设置"}),hidden:!o||!eo,onClick:e=>{ea("setting"),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(R,{}),children:"通知设置"}),hidden:!o||(0,b.O)()||!eo||!el,onClick:e=>{ea("notice"),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(J,{}),children:"默认页面"}),hidden:!0,onClick:e=>{(0,ep.l)({from:"personal_panel",defaultContentTab:ep.X.LandingPageSetting,showNotice:!1,showWebPush:!1,showLandingPage:!0}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(F,{}),children:"挂件设置"}),hidden:!o||!eo||!ei,onClick:e=>{ea("desktopWidget"),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(T,{}),children:"关于抖音"}),hidden:!o,onClick:e=>{ea("info"),null==e||e()}}]},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(D,{}),children:"AI设置"}),hidden:!1,onClick:e=>{f.logInstance.sendLog("settingPanelClick",{enter_from:(0,m.mo)(),menu:"AI设置"}),(0,ep.l)({from:"personal_panel",showNotice:!1,showWebPush:!1,showLandingPage:!1,showPrivate:!1,showAiEntry:!0,abTestData:u,defaultContentTab:ep.X.AiEntrySetting,isLogin:a}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(N,{}),children:"游戏助手设置"}),hidden:!eC,onClick:e=>{f.logInstance.sendLog("settingPanelClick",{enter_from:(0,m.mo)(),menu:"游戏助手设置"}),eq.Z.report("dygame_module_click",{traffic_source:"sidebar",enter_method:"sidebar",location:{current_page:"sidebar"},module_name:"game_ai_assistant_setting",attr:{is_login:a?"1":"0"}}),(0,ep.l)({from:"personal_panel",showNotice:!1,showWebPush:!1,showLandingPage:!1,showPrivate:!1,showAiEntry:!1,abTestData:u,defaultContentTab:ep.X.GameHelperSetting,isLogin:a,title:"游戏助手"}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(O,{className:E.keyBoard}),children:y.a.t("keyboard_shortcuts",{},"键盘快捷键")}),onClick:e=>{(0,ew.n5)({logParams:{clickMethod:"navigation_bar"},abTestData:u,userInfo:ee,userDispatch:et}),f.logInstance.sendLog("pageClick",{enter_from:(0,m.mo)(),click_position:"fast_keyboard"}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(z,{}),children:"隐私设置"}),hidden:!a||!o,onClick:e=>{(0,ep.l)({from:"share",showNotice:!1,showWebPush:!1,showLandingPage:!1}),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(A,{}),children:"问题修复"}),hidden:!o||(0,b.O)()||!en,onClick:e=>{er(),null==e||e()}},{text:(0,i.jsxs)("div",{className:E.upgradeLabel,children:[(0,i.jsx)(e$,{icon:(0,i.jsx)(X,{}),children:"软件更新"}),ec&&(0,i.jsxs)("div",{className:E.upgradeLabelTag,children:[(0,i.jsx)($,{})," 有新版"]})]}),hidden:!o||(0,b.O)()||eu,onClick:ed},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(L,{}),children:y.a.t("common_problem",{},"常见问题")}),onClick:e=>{(0,em.Y)(),null==e||e()}},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(M,{}),children:y.a.t("feedback",{},"意见反馈")}),onClick:e=>{_.emit(_.EVENT.showFeedback),null==e||e()},hidden:!!(null==u?void 0:u.feedbackOnline)},{text:(0,i.jsx)(e$,{icon:(0,i.jsx)(I,{}),children:y.a.t("feedback_online",{},"我的客服")}),hidden:!(null==u?void 0:u.feedbackOnline),onClick:e=>{_.emit(_.EVENT.showFeedback),null==e||e()}}]},e$=e=>{let{icon:t,children:n}=e;return(0,i.jsxs)("div",{className:E.itemLabel,children:[t,n]})},eJ=e=>{let{children:t,tooltip:n,active:r,onClick:o}=e;return(0,i.jsx)(d.Tooltip,{position:"top",content:n,className:E.tipClassName,arrowPointAtCenter:!0,children:(0,i.jsx)("div",{className:c()(E.tipAnchor,{[E.active]:r}),onClick:e=>{e.preventDefault(),!r&&o()},children:t})})}},604649:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z},Y:function(){return H}});var r=n("629686"),o=n("402748");n("414931"),n("490629"),n("679308"),n("431723"),n("362051");var i=n("320165"),l=n("101199"),a=n("469935"),u=n.n(a),c=n("395677"),d=n("328981"),s=n("618759"),v=n("326367"),f=n("601034"),h=n("409250"),m=n("19277"),p=n("428658"),g=n("795653"),y=n("992378"),w=n("810069"),b=n("499059"),_=n("889429"),x=n("687581"),j=n("414061"),C=n("880327"),S=n("642613"),O=n("103680"),k=n("798357");let P=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("path",{d:"M6.667 8.75a.833.833 0 1 1 1.666 0v2.083a.833.833 0 1 1-1.666 0V8.75zM12.5 7.917a.833.833 0 0 0-.833.833v2.083a.833.833 0 1 0 1.666 0V8.75a.833.833 0 0 0-.833-.833z",fill:"#0C0D0F"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.125 3.125c-.805 0-1.458.653-1.458 1.458v9.792c0 .805.653 1.458 1.458 1.458h4.083c.012 0 .023.005.03.014l1.997 2.162a1.042 1.042 0 0 0 1.53 0l1.996-2.162a.042.042 0 0 1 .03-.014h4.084c.805 0 1.458-.653 1.458-1.458V4.583c0-.805-.653-1.458-1.458-1.458H3.125zm-.208 1.458c0-.115.093-.208.208-.208h13.75c.115 0 .208.093.208.208v9.792a.208.208 0 0 1-.208.208h-4.083c-.36 0-.705.151-.95.416L10 16.995 8.157 15a1.292 1.292 0 0 0-.949-.416H3.125a.208.208 0 0 1-.208-.208V4.583z",fill:"#0C0D0F"})]})));var E=n("426038"),T=n("987826"),L=n("210091"),M=n("675403"),I=n("179414");let R=(0,l.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,o._)((0,r._)({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("circle",{cx:18,cy:18,r:18,fill:"#EFF0F3"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 8.5a9.5 9.5 0 1 0 0 19 9.5 9.5 0 0 0 0-19zm-1.42 14.175c0 .73.611 1.325 1.363 1.325.753 0 1.363-.594 1.363-1.325s-.612-1.325-1.363-1.325c-.754 0-1.363.594-1.363 1.325zm3.318-4.47c.87-.72 1.438-1.286 1.705-1.703.265-.417.4-.86.397-1.327 0-.845-.361-1.585-1.087-2.22-.726-.637-1.7-.955-2.928-.955-1.165 0-2.108.314-2.826.942-.717.628-1.135 1.493-1.159 2.292-.023.798 1.89.632 1.96.238.074-.417.388-1.091.754-1.397.365-.305.82-.46 1.363-.46.562 0 1.012.148 1.343.441.332.295.5.647.5 1.058 0 .295-.096.566-.283.813-.121.156-.495.485-1.117.988-.622.501-1.038.954-1.246 1.357-.208.402-.312.914-.312 1.538l.003.184.006.321h1.94c-.01-.583.04-.988.148-1.213.109-.228.389-.527.84-.898z",fill:"#2F3035"})]})));var z=n("624508"),D=new z.h({feedbackShow:{eventName:"feedback_show",params:{enter_from:""}},feedbackClick:{eventName:"feedback_click",params:{enter_from:"",player_muted:1,player_volume:0,vtypes:[],system_volume_info:"",player_maxDb:0,has_analyser:0,equalize_volumeState:"",userAB:"",mute_icon_display:"",audio_ctx_state:"",css_droped:0,click_position:"",is_video_in_dom:0,logids:"",vtype:""}},feedbackReport:{eventName:"feedback_report",params:{}},settingPanelClick:{eventName:"setting_panel_click",params:{enter_from:"",menu:"",theme_color:void 0,if_reddot:void 0}}}),N=n("975626"),A=n("176449"),F=n("396868"),V=n("364770");let W=(0,s.DT)()?T.CLIENT_APP_ID.toString():T.APP_ID.toString(),H=e=>{window.open("https://www.douyin.com/help",(0,v.f)()?"_self":"_blank"),D.sendLog("settingPanelClick",{enter_from:(null==e?void 0:e.enterFrom)||(0,f.yW)(),menu:"常见问题"}),D.sendLog("feedbackClick",{enter_from:(null==e?void 0:e.enterFrom)||(0,f.yW)(),click_position:"help",logids:(0,N.Wf)()})};var Z=function(e){let{isXiguaDomain:t,renderIconInSSR:a,version:v="",extra:z,enterFrom:Z}=e,[B,q]=(0,l.useState)(!1),U=(0,l.useRef)(!1),[K,G]=(0,l.useState)(""),X=(0,l.useRef)(null),$=(0,l.useRef)(null),J=(0,l.useRef)(W),Y=(0,l.useRef)(""),Q=(0,l.useRef)(document.createElement("div")),ee=(0,l.useRef)(null),et=(0,l.useRef)(null),[en,er]=(0,l.useState)(!1),{targetResource:eo}=(0,M.II)(e=>{let{targetResource:t}=e;return{targetResource:t}});(0,l.useEffect)(()=>{var e;let t=null===(e=localStorage)||void 0===e?void 0:e.getItem("FeedBackFlag");G(t),"1"!==t&&(D.sendLog("feedbackShow",{enter_from:Z||(0,f.yW)()}),setTimeout(()=>{var e;null===(e=localStorage)||void 0===e||e.setItem("FeedBackFlag","1"),G("1")},3e3))},[]),(0,l.useEffect)(()=>{if(B){let e=e=>{var t,n,r;if((null===(t=e.data)||void 0===t?void 0:t.action)==="postFeedback"){let t=null===(r=e.data)||void 0===r?void 0:null===(n=r.data)||void 0===n?void 0:n.content;ee.current=t}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}},[B]);let{isFullscreen:ei}=(0,c.O)(),el=async()=>{var e,t,i,l,a,u,c,P,M,R,A,V,W;let H=(await n.e("9875").then(n.t.bind(n,25295,23))).default,B=h.Q.getItem({sKey:E.CookieKeys.Theme}),{stuff_detail:K}=eo||{},{theme:G}=K||{},et=G&&!G.is_support_light_theme?E.ThemeValues.Dark:(0,m.Dr)(B);Y.current=et;let en=h.Q.getItem({sKey:E.CookieKeys.MonitorWebId}),er=h.Q.getItem({sKey:E.CookieKeys.MonitorDeviceId}),ei="";try{let[e,t]=await Promise.allSettled([(0,d.d)(),(0,L.a)()]),n=(0,N.L7)(e,[]),r=(0,N.L7)(t,[]);ei=n.concat(r).join(",")}catch(e){}let{device_manufacture:el="",device_model:ea="",guid:eu="",version:ec=""}=(0,p.rp)(),{os:ed,version:es}=(0,g.fV)(),ev=(0,y.$h)().info,ef=null===(e=(0,w.Es)())||void 0===e?void 0:e.user_unique_id;X.current=new H(document.createElement("div"),{zIndex:T.FEEDBACK_Z_INDEX,appId:J.current,bizId:T.BIDID,webId:ef,appName:T.APPNAME,height:570,extra_params:(0,o._)((0,r._)({},null!=z?z:{}),{MONITOR_WEB_ID:en,MONITOR_DEVICE_ID:er,abTestVids:ei,manufacturer:el,version:v||(null===(t=window)||void 0===t?void 0:t.version),device_model:ea,guid:eu,clientVersion:ec,os:ed,gpuVender:ev,hardwareConcurrency:null!==(A=null===(i=navigator)||void 0===i?void 0:i.hardwareConcurrency)&&void 0!==A?A:-1,env:null===(l=b.Le.getConfig(b.gI.Env))||void 0===l?void 0:l.envService,custom_field_info:{env:null===(a=b.Le.getConfig(b.gI.Env))||void 0===a?void 0:a.envService,os:ed,clientVersion:ec,domain:document.domain,version:v||(null===(u=window)||void 0===u?void 0:u.version),browserInfo:(0,_.Lq)(),osVersion:es},vtype:null===(P=window)||void 0===P?void 0:null===(c=P.player)||void 0===c?void 0:c.vtype}),ext:{headerToggle:!0},sdkUrl:T.SDKURL,theme:et,getFeedbackResult:e=>{if(e){var t,n,i,l,a,u,c,d;let e=null!==(d=b.Le.getConfig(b.gI.FeedBackInfo))&&void 0!==d?d:{},s={page:(0,f.yW)(),web_id:en,devide_id:er},v=document.querySelectorAll(".xgplayer-error"),h={screenWidth:document.body.clientWidth,screenHeight:document.body.clientHeight,feedVideoCount:document.querySelectorAll('[data-e2e="feed-video"]').length,feedActiveVideoCount:document.querySelectorAll('[data-e2e="feed-active-video"]').length,isVideoError:Array.from(v).map(e=>(null==e?void 0:e.offsetParent)!==null),videoPosition:null===(t=document.querySelector('[data-e2e="feed-active-video"]'))||void 0===t?void 0:t.getBoundingClientRect(),slideListPosition:null===(n=document.querySelector('[data-e2e="slideList"]'))||void 0===n?void 0:n.getBoundingClientRect(),swiperTransfrom:null===(a=document.querySelector('[data-e2e="slideList"]'))||void 0===a?void 0:null===(l=a.firstChild)||void 0===l?void 0:null===(i=l.style)||void 0===i?void 0:i.cssText,calcTransfrom:((null===(c=document.querySelector('[data-e2e="feed-active-video"]'))||void 0===c?void 0:null===(u=c.getBoundingClientRect())||void 0===u?void 0:u.height)+12)*(null==e?void 0:e.activeIndex)};x.oe.event.info({name:x.Mo.SubmitFeedBack,report:(0,r._)({},e,s,h)}),F.F.info("已经提交反馈");let m=(0,o._)((0,r._)({},(0,N.Y3)()),{enter_from:(0,f.yW)(),content:ee.current});D.sendLog("feedbackReport",m)}},getInterfaceError:e=>{e&&F.F.info("接口状态异常")},onVisibleChange:async e=>{var t,n,r,o,i,l,a,u,c,d,v,h,m,p,g,y,w,_,x,P,E,T,L,M,R,z,A,F,V,W,H,B,q,U,K,G,J,Y,ee,et,en,er,eo,ei;null==j||null===(t=j.emit)||void 0===t||t.call(j,j.EVENT.feedbackVisibleChange,e);let el=(0,C.r)()&&((0,S.W)()||document.getElementById("slideMode"))||document.getElementsByClassName("xgplayer-fullscreen-parent")[0],ea=null===(n=X.current)||void 0===n?void 0:n._iframeContainer;if(b.Le.setConfig(b.gI.IsShowFeedBackModal,e),e){_=b.Le.getConfig(b.gI.FeedBackInfo);let e={};if((0,s.DT)())try{e=await O.invoke("getVolumeInfo")}catch(t){e="getSystemVolumeInfoError"}let t="",n=0,j=[],C="",S="";try{t=JSON.stringify(b.Le.getConfig(b.gI.AbtestData));let e=(0,k.t)();n=e instanceof Element&&"flex"===getComputedStyle(e).display?0:1,null===(L=window)||void 0===L||null===(T=L.player)||void 0===T||null===(E=T.plugins)||void 0===E||null===(P=E.mp4encryptplayer)||void 0===P||null===(x=P.reportBugPostPlayerLog)||void 0===x||x.call(P),null===(F=window)||void 0===F||null===(A=F.player)||void 0===A||null===(z=A.getPlugin)||void 0===z||null===(R=z.call(A,"VodLoggerPlugin"))||void 0===R||null===(M=R.reportBugPostPlayerLog)||void 0===M||M.call(R),null===(H=window)||void 0===H||null===(W=H.player)||void 0===W||null===(V=W.emit)||void 0===V||V.call(W,"xglog_cache"),j=b.Le.getConfig(b.gI.recentVtypes),C=null===(q=window)||void 0===q?void 0:null===(B=q.player)||void 0===B?void 0:B.vtype,S=window.location.href}catch(e){}let X=null===(i=window.player)||void 0===i?void 0:null===(o=i.root)||void 0===o?void 0:null===(r=o.querySelector)||void 0===r?void 0:r.call(o,".xg-volume-mute"),ee=2;if((null===(l=window.player)||void 0===l?void 0:l.video)&&(ee=Number(!!window.player.video.parentNode)),D.sendLog("settingPanelClick",{enter_from:Z||(0,f.yW)(),menu:"意见反馈"}),D.sendLog("feedbackClick",{enter_from:Z||(0,f.yW)(),player_muted:Number(null!==(K=null!==(U=null===(u=window.player)||void 0===u?void 0:null===(a=u.video)||void 0===a?void 0:a.muted)&&void 0!==U?U:null===(c=window.player)||void 0===c?void 0:c.muted)&&void 0!==K?K:-1),player_volume:null!==(G=null===(v=window.player)||void 0===v?void 0:null===(d=v.video)||void 0===d?void 0:d.volume)&&void 0!==G?G:null===(h=window.player)||void 0===h?void 0:h.volume,system_volume_info:e,player_maxDb:null!==(J=null===(m=window.globalCtx)||void 0===m?void 0:m.maxDb)&&void 0!==J?J:-1,has_analyser:Number(null!==(Y=null===(p=window.globalCtx)||void 0===p?void 0:p.hasAnalyser)&&void 0!==Y&&Y),equalize_volumeState:null===(g=window.player)||void 0===g?void 0:g.equalizeVolumeState,mute_icon_display:X instanceof Element?getComputedStyle(X,null).display:"no_icon",audio_ctx_state:null===(w=window.globalCtx)||void 0===w?void 0:null===(y=w.audioCtx)||void 0===y?void 0:y.state,userAB:t,pageUrl:S,vtypes:j,vtype:C,css_droped:n,click_position:"feedback",is_video_in_dom:ee,logids:(0,N.Wf)()}),!$.current)return;el?(ea=el,Q.current.className=I.default.iframeContainer,Q.current.appendChild($.current),el.appendChild(Q.current)):ea.appendChild($.current)}else{if(!X.current)return;el?null===(er=Q.current)||void 0===er||null===(en=er.remove)||void 0===en||en.call(er):Q.current&&(null===(ei=Q.current)||void 0===ei||null===(eo=ei.remove)||void 0===eo||eo.call(ei)),$.current=X.current._sdkIframeEle,null===(et=X.current._sdkIframeEle)||void 0===et||null===(ee=et.remove)||void 0===ee||ee.call(et)}}}),q(!0),U.current=!0,$.current=X.current._sdkIframeEle,null===(R=X.current._sdkIframeEle)||void 0===R||null===(M=R.remove)||void 0===M||M.call(R),"/LynxFeedBack"===location.pathname&&(null===(V=(W=X.current).show)||void 0===V||V.call(W))};return(0,l.useEffect)(()=>{var e,t,n,r;null===(t=X.current)||void 0===t||null===(e=t.hide)||void 0===e||e.call(t),null===(r=Q.current)||void 0===r||null===(n=r.remove)||void 0===n||n.call(r)},[ei]),(0,l.useEffect)(()=>{let e=j.listen(j.EVENT.showFeedback,()=>{var e,t;null===(t=X.current)||void 0===t||null===(e=t.show)||void 0===e||e.call(t)});return()=>e()},[]),(0,l.useEffect)(()=>{let e=()=>{if(!!B){try{var e,t;null===(t=X.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)}catch(e){}el()}},t=j.listen(j.EVENT.changeTheme,t=>{let{theme:n}=t;Y.current&&Y.current!==n&&e()}),n=j.listen(j.EVENT.loginShowFeedback,t=>{let{isShow:n=!1}=t,r=n?"538982":W;J.current!==r&&(J.current=r,e()),n&&setTimeout(()=>{var e,t;null===(t=X.current)||void 0===t||null===(e=t.show)||void 0===e||e.call(t)},0)});return()=>{t(),n()}},[B]),(0,l.useEffect)(()=>()=>{try{var e,t;null===(t=X.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)}catch(e){}},[]),(0,l.useEffect)(()=>(el(),()=>{}),[]),(0,i.jsxs)("div",{onMouseEnter:()=>{D.sendLog("feedbackShow",{enter_from:Z||(0,f.yW)()})},className:u()(I.default.opContainer,I.default.hidebar,{[I.default.showText]:"1"!==K,[I.default.xiguaOpContainer]:t}),children:[t&&(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(V.e,{text:"反馈",isXiguaDomain:t,children:(0,i.jsx)("div",{className:I.default.icon,children:(0,i.jsx)(A.Z,{src:P,width:28,height:28,viewBox:"-4 -4 28 28"})})}),(0,i.jsx)("div",{className:I.default.topBar}),(0,i.jsx)("div",{className:I.default.bottomBar})]}),!t&&(0,i.jsxs)("div",{className:I.default.content,children:[(0,i.jsx)("div",{className:I.default.icon,onMouseEnter:()=>{er(!0)},onMouseLeave:()=>{clearTimeout(et.current),et.current=setTimeout(()=>{er(!1)},200)},children:(0,i.jsx)(A.Z,{src:R,width:36,height:36,needRenderInSSR:a})}),(0,i.jsxs)("div",{className:u()(I.default.menu,{[I.default.show]:en}),onMouseEnter:()=>clearTimeout(et.current),onMouseLeave:()=>er(!1),children:[(0,i.jsx)("div",{className:I.default.item,onClick:()=>{er(!1),H({enterFrom:Z})},children:"常见问题"}),(0,i.jsx)("div",{className:I.default.item,onClick:()=>{var e,t;null===(t=X.current)||void 0===t||null===(e=t.show)||void 0===e||e.call(t)},children:"意见反馈"})]})]})]})}},975626:function(e,t,n){"use strict";n.d(t,{L7:function(){return w},Wf:function(){return P},Y3:function(){return k}});var r=n(629686),o=n(402748);n(706056),n(362051),n(490629);var i=n(426038),l=n(499059),a=n(618759),u=n(759894),c=n(992378),d=n(631407),s=n(272726),v=n(709705),f=n(137375),h=n(703259),m=n(108954),p=n(767192),g=n(766511),y=n(902622);let w=(e,t)=>"fulfilled"===e.status?e.value:t,b=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=document.createElement("canvas"),o=r.getContext("2d");r.width=e.videoWidth,r.height=e.videoHeight,o.drawImage(e,0,0,r.width,r.height);let{data:i}=null===(t=o.getImageData)||void 0===t?void 0:t.call(o,0,0,r.width,r.height),l=!0;for(let e=0;en||i[e+1]>n||i[e+2]>n){l=!1;break}return l},_=()=>{let e=1===document.querySelectorAll('[data-e2e="feed-active-video"]').length,t=l.Le.getConfig(l.gI.HasLiveContent);return{current_video_type:e?0:t?1:-1,client_type:(0,a.DT)()?1:0}},x=()=>{var e,t,n,r,o,i,l,a,v,g,w,b,_,x,j;if(0===document.querySelectorAll('[data-e2e="feed-active-video"]').length||!window.player)return{};let{player:C}=window,S=C.video,O=null==S?void 0:S.getBoundingClientRect(),{preloadTime:k,preloadSize:P}=(0,m.P)(C);return{group_id:null===(e=C.config)||void 0===e?void 0:e.vid,enter_from:(0,u.vM)(),is_mute:C.muted?1:0,gear_name:null===(t=C.curDefinition)||void 0===t?void 0:t.gearName,decoder_mode:null===(o=C.video)||void 0===o?void 0:null===(r=o.getStats)||void 0===r?void 0:null===(n=r.call(o))||void 0===n?void 0:n.decoderMode,gpu_info:null===(i=(0,c.$h)())||void 0===i?void 0:i.info,equalize_state:null!==(b=C.equalizeVolumeState)&&void 0!==b?b:"",lufs:null!==(_=null==C?void 0:C.lufs)&&void 0!==_?_:y.G7,use_new_mammon_worklet_processor:null!==(x=null==C?void 0:C.useMammonWorkletProcessorV3)&&void 0!==x&&x,hit_new_mammon_worklet_processor:null!==(j=null==C?void 0:C.hitMammonWorkletProcessorV3)&&void 0!==j&&j,cpu_core:null===(l=navigator)||void 0===l?void 0:l.hardwareConcurrency,duration:null===(a=C.config)||void 0===a?void 0:a.duration,video_width:null==S?void 0:S.videoWidth,video_height:null==S?void 0:S.videoHeight,video_ratio:(null==S?void 0:S.videoWidth)/(null==S?void 0:S.videoHeight),video_rect_width:null==O?void 0:O.width,video_rect_height:null==O?void 0:O.height,player_version:C.version,video_quality:null===(v=C.curDefinition)||void 0===v?void 0:v.qualityType,video_size:null===(g=C.curDefinition)||void 0===g?void 0:g.size,definition:null===(w=C.curDefinition)||void 0===w?void 0:w.definition,preload_time:k,preload_size:P,preload_type:(0,f.me)(C)?2:1,player_volume:C.volume,play_order:(0,p.G)(),first_video_after_cold_start:(0,d.R)(0)&&1===(0,p.G)(),is_video_support:Number((0,s.k)().isSupport),is_supported_265:(0,h.VV)()?1:0}},j=()=>{var e,t,n,r,o,i,a,u,c,d,s,v,f,m,p,g;if(0===document.querySelectorAll('[data-e2e="feed-active-video"]').length||!window.player)return{};let{player:y}=window,{lowdecodeVV:w=0,vv:b=0}=null!==(m=null===(t=y.video)||void 0===t?void 0:null===(e=t.getStats)||void 0===e?void 0:e.call(t))&&void 0!==m?m:{};return{drop_frame:null===(n=y.videoFrameInfo)||void 0===n?void 0:n.dropped,total_play_frame:null===(r=y.videoFrameInfo)||void 0===r?void 0:r.total,drop_frame_rate:null===(o=y.videoFrameInfo)||void 0===o?void 0:o.droppedRate,drop_frame_duration:null===(i=y.videoFrameInfo)||void 0===i?void 0:i.droppedDuration,decode_fps:null!==(p=null===(a=y.video)||void 0===a?void 0:a.decodeFps)&&void 0!==p?p:0,has_down_definition:!!y.definitionList.find(e=>{var t;return(null==e?void 0:e.definition)===(null===(t=y.curDefinition)||void 0===t?void 0:t.definition)+1}),current_vtype:y.vtype,internet_speed:l.Le.getConfig(l.gI.NetworkSpeed),reason:l.Le.getConfig(l.gI.SrDegradeCode),codec_format:(null===(u=y.curDefinition)||void 0===u?void 0:u.isH265)===2?"bytevc2":(null===(c=y.curDefinition)||void 0===c?void 0:c.isH265)===1?"bytevc":"h264",video_format:null!==(g=y.playerType)&&void 0!==g?g:"mp4",using_pcdn:(null===(s=y.bandwidth)||void 0===s?void 0:null===(d=s.pcdn)||void 0===d?void 0:d.size)>0?1:0,media_type:null===(v=y.config)||void 0===v?void 0:v.mediaType,definition:null===(f=y.curDefinition)||void 0===f?void 0:f.definition,h265_failure_rate:10===b?w/b:-1,is_265_degrade_web:(0,h.OS)({player:y})}},C=()=>{var e;if(0===document.querySelectorAll('[data-e2e="feed-active-video"]').length||!window.player)return{};let{player:t}=window;return{loading_icon_status:t.hasClass("xgplayer-isloading"),block_count:null===(e=t.config)||void 0===e?void 0:e.blockCount,is_black_screen:!!t.video&&b(t.video),current_position:t.currentTime,buffer_time:(0,g._)(t)}},S=()=>{var e,t,n,r;if(0===document.querySelectorAll('[data-e2e="feed-active-video"]').length||!window.player)return{};let{player:o}=window,i=null===(r=o.plugins)||void 0===r?void 0:null===(n=r.xgVodLogger)||void 0===n?void 0:null===(t=n.getCacheLog)||void 0===t?void 0:null===(e=t.call(n,"oneplay"))||void 0===e?void 0:e[0],l={};return i&&Object.keys(i).forEach(e=>{l[`xg_${e}`]=i[e]}),l},O=()=>{var e,t,n,r,o,i,l,a,u,c,d,s,v,f,h,m,p,g;if(0===document.querySelectorAll('[data-e2e="feed-active-video"]').length||!window.player)return{};let{player:y}=window,w=null===(n=y.plugins)||void 0===n?void 0:null===(t=n.xgVodLogger)||void 0===t?void 0:null===(e=t.getCacheLog)||void 0===e?void 0:e.call(t,"oneerror"),b=(null==w?void 0:null===(r=w.map)||void 0===r?void 0:r.call(w,e=>{var t;return{type:"one_error",local_time:e.local_time,vtype:y.vtype,codec_type:null===(t=y.curDefinition)||void 0===t?void 0:t.isH265,end_type:e.end_type,errc:e.errc,vsc_message:e.vsc_message}}))||[],_=null===(l=y.plugins)||void 0===l?void 0:null===(i=l.xgVodLogger)||void 0===i?void 0:null===(o=i.getCacheLog)||void 0===o?void 0:o.call(i,"oneevent"),x=(null==_?void 0:null===(c=_.filter)||void 0===c?void 0:null===(u=c.call(_,e=>["playCatch","progress_error","degrade"].includes(e.end_type)))||void 0===u?void 0:null===(a=u.map)||void 0===a?void 0:a.call(u,e=>({type:"oneevents",local_time:e.local_time,vtype:e.vtype,codec_type:e.codec_type,end_type:e.end_type,err_msg:e.err_msg,errc:e.errc,first_frame_interval:e.first_frame_interval,initial_type:e.initial_type,media_type:e.media_type,retry_count:e.retry_count})))||[],j=null===(v=y.plugins)||void 0===v?void 0:null===(s=v.xgVodLogger)||void 0===s?void 0:null===(d=s.getCacheLog)||void 0===d?void 0:d.call(s,"onetemp"),C=(null==j?void 0:null===(f=j.map)||void 0===f?void 0:f.call(j,e=>({type:"one_temp",local_time:e.local_time,vtype:e.vtype,codec_type:e.codec_type,end_type:e.end_type,try_err_c:e.try_err_c,accu_errc:e.accu_errc})))||[],S=null===(p=y.plugins)||void 0===p?void 0:null===(m=p.xgVodLogger)||void 0===m?void 0:null===(h=m.getCacheLog)||void 0===h?void 0:h.call(m,"oneopera");return JSON.stringify([...b,...x,...C,...(null==S?void 0:null===(g=S.map)||void 0===g?void 0:g.call(S,e=>({type:"one_temp",local_time:e.local_time,vtype:e.vtype,codec_type:e.codec_type,end_type:e.end_type,opera_type:e.opera_type,buffer_time:e.buffer_time,bu_acu_t:e.bu_acu_t,bc:e.bc})))||[]])},k=()=>(0,o._)((0,r._)({},_(),x(),j(),C(),S()),{events:O()}),P=()=>{let e="";try{let t=(0,v.$o)(i.LocalStorageKeys.logTrace).map(e=>({time:null==e?void 0:e.time,logId:null==e?void 0:e.logId,url:null==e?void 0:e.url}));e=JSON.stringify(t)}catch(t){e=""}return e}},334413:function(e,t,n){"use strict";n.d(t,{Nt:function(){return x},YZ:function(){return _},mw:function(){return j}}),n(490629),n(706056);var r=n(101199),o=n(350856),i=n.n(o),l=n(390063),a=n.n(l),u=n(414061),c=n(618759),d=n(512423),s=n(391302),v=n(795653),f=n(103680),h=n(759894),m=n(915821),p=n(396868),g=n(350746),y=n(139072);let w=()=>{u.emit(u.EVENT.showHeaderPopUp,{type:y.n.CLIENT_SET,isShow:!0})},b=()=>{u.emit(u.EVENT.showHeaderPopUp,{type:y.n.CLIENT_SET,isShow:!1})},_=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{var e;let{archInfo:n}=(0,c.Y5)((0,d.i)()),r=(0,s.x1)(),o=!n||(e=[c.b5.ia32,c.b5.x64],e.includes(n));t(!!((0,c.DT)()&&(0,v.dz)()&&o&&!r))},[]),{isUseDriverCheck:e,showDriverCheck:()=>{f.invoke("openDriverCheckWindow"),u.emit(u.EVENT.openClientDriverCheck),g.Z.sendLog("clientDriverCheckClick",{enter_from:"menu"}),g.Z.sendLog("settingPanelClick",{enter_from:(0,h.mo)(),menu:"问题修复"})}}},x=()=>{var e,t,n,o;let[i,l]=(0,r.useState)();(0,r.useEffect)(()=>{f.invoke("GET_PAGE_STORE").then(e=>{let{data:t}=e;l(null==t?void 0:t.abTestData)})},[]);let a=(0,m.y)(null!==(n=(0,c.FJ)().awemePcClient)&&void 0!==n?n:"",">=","1.0.6");return{hasMoreClientSettings:a,openClientSettings:e=>{g.Z.sendLog("clientSettingClick",{position:e}),g.Z.sendLog("settingPanelClick",{enter_from:(0,h.mo)(),menu:{setting:"基本设置",notice:"通知设置",info:"关于抖音",desktopWidget:"挂件设置"}[e]||a?"设置":"关于抖音"}),f.invoke("WINDOW_SHOW_ABOUT",{tab:e})},hasNoticeSettings:(0,v.dz)()&&!!(null==i?void 0:null===(e=i.cientPush)||void 0===e?void 0:e.val)&&(null==i?void 0:i.douyinClientPush)!==1,hasDesktopWidget:(0,v.dz)()&&(0,m.y)(null!==(o=(0,c.FJ)().awemePcClient)&&void 0!==o?o:"",">=","3.1.1")&&[1,2].includes(null==i?void 0:null===(t=i.desktop_widget)||void 0===t?void 0:t.val)}},j=()=>{let[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1),[l,u]=(0,r.useState)(!1),[d,s]=(0,r.useState)({isNeedUpdate:!1,isSilentDownload:!1}),[v,y]=(0,r.useState)(!1);(0,r.useEffect)(()=>{f.invoke("GET_IS_MAS").then(e=>{let{data:n}=e;t(n)})},[]);let _=r.useRef(i()(()=>{p.F.info("当前已是最新版本")},3e3,{leading:!0,maxWait:3e3,trailing:!1})),x=(0,r.useCallback)(()=>{g.Z.sendLog("clientSettingClick",{position:"update",badge:n?1:0}),g.Z.sendLog("settingPanelClick",{enter_from:(0,h.mo)(),if_reddot:n?1:0,menu:"软件更新"}),n?f.invoke("SHOW_UPDATE_MODAL"):_.current()},[n]);return(0,r.useEffect)(()=>{let{isNeedUpdate:e=!1,isSilentDownload:t=!1}=null!=d?d:{};o(e&&(!t||v))},[d,v]),(0,r.useEffect)(()=>{f.invoke("GET_CLIENT_UPDATE_INFO").then(e=>{var t;let{isNeedUpdate:n=!1,isSilentUpdate:r=!1}=null!==(t=null==e?void 0:e.data)&&void 0!==t?t:{};s({isNeedUpdate:n,isSilentDownload:r})})},[l]),(0,r.useEffect)(()=>{f.invoke("GET_IS_UPDATE_PACKAGE_READY").then(e=>{var t;y(null!==(t=e.data)&&void 0!==t&&t)}),f.invoke("GET_PAGE_STORE").then(e=>{var t,n,r;u(null!==(r=null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(t=n.page)||void 0===t?void 0:t.isUpdateTipShow)&&void 0!==r&&r)})},[]),(0,r.useEffect)(()=>{let e=async(e,t)=>{var n,r;let{data:o}=t;y(!0),(0,m.y)(null!==(n=(0,c.FJ)().awemePcClient)&&void 0!==n?n:"",">=","1.4.0")?(null==o?void 0:o.isSilentUpdate)&&u(!0):(0,m.y)(null!==(r=(0,c.FJ)().awemePcClient)&&void 0!==r?r:"",">=","1.1.3")&&u(!0),g.Z.sendLog("clientSettingBadgeShow")},t=f.on("UPDATE_DOWNLOAD_SUCCESS",e);return()=>{a()(t)&&t()}},[]),(0,r.useEffect)(()=>{let e=async(e,t)=>{var n,r;let{data:o}=t;u(null!==(r=null==o?void 0:null===(n=o.page)||void 0===n?void 0:n.isUpdateTipShow)&&void 0!==r&&r)},t=f.on("PAGE_STORE_CHANGE",e);return()=>{a()(t)&&(null==t||t())}},[]),{isMas:e,isShowRedPoint:l,isShowUpdateTag:n,askToUpdate:x,onMouseEnterHandler:()=>{w(),g.Z.sendLog("clientSettingHover",{badge:l&&n?1:0}),l&&f.invoke("QUIT_UPDATE_TIP"),u(!1)},onMouseLeaveHandler:b}}},364770:function(e,t,n){"use strict";n.d(t,{e:function(){return m}});var r=n("629686"),o=n("402748");n("490629"),n("706056");var i=n("320165"),l=n("101199"),a=n("890710"),u=n("793571"),c=n("469935"),d=n.n(c),s=n("674095");let v=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:4,height:17,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{d:"M0 0a8 8 0 0 0 2.168 5.476l1.174 1.25a2 2 0 0 1 0 2.738l-1.174 1.25A8 8 0 0 0 0 16.19V0z",fill:"#323442"})})));var f=n("176449"),h={left:"top",right:"top",top:"left",bottom:"left"};let m=e=>{let{type:t="left",text:n,offsetArrow:c,offsetContainer:m,className:p,children:g,delay:y=200,isXiguaDomain:w,onMouseEnter:b}=e,[_,x]=(0,l.useState)({width:0,height:0}),[j,C]=(0,l.useState)(t),[S,O]=(0,l.useState)(!1),[k,P]=(0,l.useState)({}),[E,T]=(0,l.useState)(c),L=(0,l.useRef)(null),M=(0,l.useRef)();(0,l.useRef)(null);let{run:I,cancel:R}=(0,u.Z)(O,y),z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=window.innerWidth,i=window.innerHeight;return{left:e<0?e:0,top:t<0?t:0,right:e+n>o?o-e-n:0,bottom:t+r>i?i-t-r:0}},D=(0,l.useCallback)(()=>{if(!L.current)return{};let{x:e,y:n,width:i,height:l}=M.current.getBoundingClientRect(),a=e,u=n,c=(_.width-i)/2,d=(_.height-l)/2;if(["left","right"].includes(t)){switch(t){case"left":a-=_.width+10;break;case"right":a+=i+10}"number"==typeof m?u+=m:u+=-d}else if(["top","bottom"].includes(t)){switch(t){case"top":u-=_.height+10;break;case"bottom":u+=l+10}"number"==typeof m?a+=m:a+=-c}let{top:s,left:v,right:f,bottom:h}=z(a,u,_.width,_.height);return C(t),["left","right"].includes(t)?(s&&(u-=s),h&&(u+=h),v&&!f&&(a+=_.width+20+i,C("right")),f&&!v&&(a-=_.width+20+i,C("left"))):["top","bottom"].includes(t)&&(v&&(T(v),a-=v),f&&(T(f),a+=f),s&&!h&&(u+=_.height+20+l,C("bottom")),h&&!s&&(u-=_.height+20+l,C("top"))),(0,o._)((0,r._)({},k),{left:`${a}px`,top:`${u}px`})},[k,_]),N=(0,l.useCallback)(()=>{let e=l.Children.only(g);return l.cloneElement(e,{onMouseEnter:e=>{R(),I(!0),M.current||(M.current=e.target),P(D()),null==b||b()},onMouseLeave:()=>{I(!1)}})},[_,g]);return(0,l.useEffect)(()=>{let e=e=>{if(!!S)P(D())};return document.addEventListener("scroll",e,!0),()=>{document.removeEventListener("scroll",e,!0)}},[D]),(0,l.useEffect)(()=>{if(!!L.current)x(L.current.getBoundingClientRect())},[S]),(0,l.useEffect)(()=>{M.current&&P(D())},[_]),(0,i.jsxs)(i.Fragment,{children:[S&&a.createPortal((0,i.jsxs)("div",{ref:L,style:(0,r._)({position:"fixed"},k),onMouseEnter:e=>{R()},onMouseLeave:()=>{I(!1)},className:d()(s.default.tooltip,s.default[t],p,{[s.default.xiguaTooltip]:w}),children:[(0,i.jsx)(f.Z,{width:4,height:17,src:v,style:{[h[j]]:E&&`calc(50% - ${E}px)`},className:d()(s.default.icon,s.default[j]),viewBox:"0 0 4 17"}),(0,i.jsx)("span",{className:"",children:n})]}),document.body),N()]})}},766511:function(e,t,n){"use strict";n.d(t,{U:function(){return r},_:function(){return o}});let r=(e,t)=>{var n,r,o,i;let l=(null==e?void 0:null===(n=e.buffered)||void 0===n?void 0:n.length)||0,a=null!==(r=e.removedBuffer)&&void 0!==r?r:0;if(!e||!e.buffered||l<=0)return Math.min(a,t);try{let n=0,{buffered:r}=e||{};for(let e=0;e<(null==r?void 0:r.length);e++)n+=(null==r?void 0:null===(o=r.end)||void 0===o?void 0:o.call(r,e))-(null==r?void 0:null===(i=r.start)||void 0===i?void 0:i.call(r,e));return Math.min(n+a,t)}catch(e){return Math.min(a,t)}},o=e=>{let t=null==e?void 0:e.getBufferedRange();return t&&t[1]?Math.round((t[1]-e.currentTime)*1e3):0}},108954:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(550506),o=n(137375);let i=e=>{let t={preloadTime:0,preloadSize:0,startBuffer:0,audioDuration:0,minDuration:0};if(!e)return t;try{var n,i,l,a;let{preLoadData:u,plugins:c}=e||{},{buffer:d=0,startBuffer:s=0}=null==e?void 0:null===(i=e.plugins)||void 0===i?void 0:null===(n=i.xglogger)||void 0===n?void 0:n.levelInfo;if(t.startBuffer=s,(0,o.me)(e)){let{duration:e,byteLength:n,audioDuration:r=0}=u||(null==c?void 0:null===(l=c.mp4encryptplayer)||void 0===l?void 0:l.preLoadData)||{};return t.preloadSize=n,t.preloadTime=e,t.audioDuration=1e3*r,t.minDuration=Math.min(1e3*e,1e3*r)||0,t}if(d>0){let n=d/1e3,o=(null==e?void 0:null===(a=e.curDefinition)||void 0===a?void 0:a.realBitrate)||0,i=(0,r.e)(n*o);t.preloadSize=i,t.preloadTime=n}return t}catch(e){return{preloadSize:0,preloadTime:0,startBuffer:0,audioDuration:0,minDuration:0}}}},210091:function(e,t,n){"use strict";n.d(t,{V:function(){return u},a:function(){return c}});var r=n(629686);n(679308),n(228983),n(759943);var o=n(30995),i=n(911429),l=n(788641);let{COMMON_SEARCH_PARAMS:a}=o||{};async function u(e,t){var n,o;let u=await (0,i.U2)("/aweme/v1/web/ab/params/",(0,r._)({},a,e),{},void 0,t,{psm:"aweme.api.pc_web",cluster:"default"});if((null==u?void 0:u.status_code)===0&&(null==u?void 0:null===(o=u.data)||void 0===o?void 0:null===(n=o.info)||void 0===n?void 0:n.parameters))try{let e=JSON.parse(u.data.info.parameters);return(0,l.nh)(e||{})}catch(e){}return{}}async function c(e,t){var n,o,l;let u=await (0,i.U2)("/aweme/v1/web/ab/params/",(0,r._)({},a,e),{},void 0,t,{psm:"aweme.api.pc_web",cluster:"default"});return(null==u?void 0:u.status_code)===0&&(null==u?void 0:null===(o=u.data)||void 0===o?void 0:null===(n=o.info)||void 0===n?void 0:n.version_name)?null===(l=u.data.info.version_name)||void 0===l?void 0:l.split(","):[]}},261784:function(e,t,n){"use strict";var r=n(629686),o=n(402748),i=n(320165),l=n(101199);let a=(0,l.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,r._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.383 22.761a1.01 1.01 0 0 1-.136-1.453l8.283-9.628-8.26-8.962a1.009 1.009 0 0 1 .086-1.456 1.089 1.089 0 0 1 1.503.082l8.87 9.625c.352.382.362.955.024 1.347L7.883 22.63a1.088 1.088 0 0 1-1.5.132z",fill:"#2F3035"})})));t.Z=a}}]);