(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["41590"],{160044:function(e,t,r){"use strict";r.d(t,{ZP:function(){return Q}});var n,o,i=r("101199"),a=r("280647"),l=r("59850"),s=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.value=void 0,this.type="memory",this.changeType=function(e){t.type=e},this.getValue=function(e){switch(t.type){case"memory":default:return t.value.get(e);case"localStorage":return JSON.parse(localStorage.getItem(e)||"{}")}},this.setValue=function(e,r){switch(t.type){case"memory":default:t.value.set(e,r);break;case"localStorage":localStorage.setItem(e,JSON.stringify(r))}},this.removeItem=function(e){switch(t.type){case"memory":default:t.value.delete(e);break;case"localStorage":localStorage.removeItem(e)}},this.value=new Map},u=function(e,t,r){var n=s.getValue(e);null!=n&&n.timer&&clearTimeout(n.timer);var o=void 0;t>-1&&(o=setTimeout(function(){s.removeItem(e)},t));var i={data:r,timer:o,startTime:new Date().getTime()};s.setValue(e,i)},c=function(e){var t=s.getValue(e);return{data:null==t?void 0:t.data,startTime:null==t?void 0:t.startTime}},f=function(e){s.changeType(e)},d=r("953857"),v=r.n(d),h=r("964544"),p=r.n(h);function m(e){return function(e){if(Array.isArray(e))return b(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 b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(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.")}()}r("88856");function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&void 0!==arguments[0]?arguments[0]:{};this.state=g(g({},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,r=Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return this.options=g(g({},this.options),e),this.run.apply(this,m(this.state.params))}},{key:"changeData",value:function(e){"function"==typeof e?this.setState({data:e(this.state.data)||{}}):this.setState({data:e})}}],O(e.prototype,t),n}();function j(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||S(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 S(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},s=o.staleTime,d=void 0===s?3e5:s,v=o.auto,h=void 0!==v&&v,p=o.defaultParams,m=void 0===p?[]:p,b=o.refreshDeps,y=o.initData,g=o.ready,O=void 0===g||g,_=o.cacheKey,x=o.cacheStoreType,C=void 0===x?"memory":x,P=o.cacheTime,L=void 0===P?3e5:P,I=o.loadingCheck,k=o.errorCheck,D=o.formatResult,R=o.requestKey,M=o.onError,A=o.onSuccess,F=(0,l.Z)(e),U=(0,l.Z)(A),Z=(0,l.Z)(M),W=D?(0,l.Z)(D):void 0,z=(0,l.Z)(R),B=(0,i.useCallback)(function(e,t){K(function(r){return T(T({},r),{},N({},e,t))})},[]),V=(0,i.useRef)(_);V.current=_;var q=(0,i.useRef)(O);q.current=O;var G=(0,i.useRef)(E),$=function(){if(V.current){var e=c(V.current)||{},t=e.data,r=e.startTime,n=-1===d||new Date().getTime()-(void 0===r?0:r)<=d;if(t&&n){G.current=t.currentRequestKey;var i={};return Object.keys(t.requests).forEach(function(e){var r=t.requests[e],n=new w(F,T(T({},o),{},{onSuccess:U,onError:Z,formatResult:W}),B.bind(null,e),{loading:r.loading,params:r.params,data:r.data,error:r.error});i[e]=n.state}),i}}return{}};var Y=(r=2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(function(){return"memory"!==C&&f(C),$()}))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&null!=l.return&&l.return()}finally{if(o)throw i}}return r}}(t,2)||S(t,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),H=Y[0],K=Y[1],J=(0,i.useRef)(H);J.current=H;var X=(0,i.useRef)(),Q=(0,i.useCallback)(function(){for(var e,t,r=arguments.length,n=Array(r),i=0;i0?Object.values(H).forEach(function(e){e.refresh()}):Q.apply(void 0,j(m))),function(){Object.values(J.current).forEach(function(e){e.unmount()})}},[O]),(0,a.Z)(function(){if(q.current&&h){var e=$();0===Object.keys(e).length?Object.values(H).forEach(function(e){e.refresh()}):K(e)}},j(void 0===b?[]:b));var er=[o.debounceInterval,o.throttleInterval,o.pollingInterval];if((0,a.Z)(function(){Object.values(H).forEach(function(e){e.refreshOptions({debounceInterval:o.debounceInterval,throttleInterval:o.throttleInterval,pollingInterval:o.pollingInterval})})},[].concat(er)),n=H[G.current]?T(T({},H[G.current]),{},{run:Q,reset:ee,requests:H}):{loading:h&&O,isPolling:!1,data:y,error:void 0,params:[],cancel:function(){},unmount:function(){},reset:function(){},refresh:function(){},refreshOptions:function(){},changeData:function(){},run:Q,requests:H},"undefined"!=typeof Proxy){var en=!(void 0!==I&&I),eo=!(void 0!==k&&k);return new Proxy(n,{get:function(e,t,r){return"data"===t||"loading"===t,e[t]}})}return n};function P(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||D(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 r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},r=t.ready,n=void 0===r||r,o=t.resetDeps,l=t.refreshDeps,s=t.itemKey,u=t.initPageSize,c=void 0===u?10:u,f=t.ref,d=t.threshold,v=void 0===d?100:d,h=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0)&&(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0))Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}(t,["ready","resetDeps","refreshDeps","itemKey","initPageSize","ref","threshold"]),p=t.hasMoreHanlder,m=t.isNoMore,b=t.hasMoreHandler,y=t.noMoreHandler;y=y||b||p||m;var g=t.incrementSize||c,O=k((0,i.useState)(!1),2),w=O[0],j=O[1],S=k((0,i.useState)(1),2),_=S[0],x=S[1],T=(0,i.useRef)(0),N=(0,i.useRef)(new Date().getTime()),E={data:{list:[]},current:1,pageSize:c,offset:0,startTime:N.current},L="boolean"!=typeof h.auto||h.auto,D=k((0,i.useState)(),2),R=D[0],M=D[1],A=C(e,I(I({},h),{},{ready:n,auto:L,defaultParams:[E],requestKey:function(e){var t,r;return((null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(r=t.list)||void 0===r?void 0:r.length)||0)+N.current},onSuccess:function(){var e;null!=R&&null!==(e=R.list)&&void 0!==e&&e.length&&f&&f.current&&(f.current.scrollTop=0),M(void 0),j(!1),x(function(e){return e+1}),t.onSuccess&&t.onSuccess.apply(t,arguments)},onError:function(){j(!1),t.onError&&t.onError.apply(t,arguments)}})),F=A.data,U=A.run,Z=A.error,W=A.reset,z=A.loading,B=A.requests,V=(0,i.useMemo)(function(){var e=[],t=F||{};return Object.keys(B).sort(function(e,t){return Number(e)-Number(t)}).forEach(function(r){var n,o,i=B[r];null!==(n=i.data)&&void 0!==n&&n.list&&(e=e.concat(null===(o=i.data)||void 0===o?void 0:o.list)),!i.loading&&(t=i.data)}),I(I({},t),{},{list:e})},[B,F]),q=!!(!z&&!w&&(y?y(F,Z,V):!F||!F.list.length||F.total&&V.list.length>=F.total)),G=(0,i.useCallback)(function(){var e,t,r,n=V.list;return{data:V,current:_,pageSize:1===_?c:g,offset:n.length,id:s&&n.length>0?(e=n[n.length-1],t=n.length-1,void 0===(r="function"==typeof s?s(e,t):e[s])?t:r):void 0,startTime:N.current}},[_,c,g,V]),$=(0,i.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!0===e&&M(V),W(),x(1),N.current=new Date().getTime(),U(E)},[U,W,V]),Y=(0,i.useRef)($);Y.current=$,(0,a.Z)(function(){n&&L&&Y.current()},[].concat(P(void 0===o?[]:o),P(void 0===l?[]:l)));var H=(0,i.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(M(void 0),!q&&!z&&!w)j(!0),U(I(I({},G()),e))},[q,z,w,U,V,G]);(0,i.useEffect)(function(){if(!f||!f.current)return function(){};var e=function(){if(!!f&&!!f.current)T.currente.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},n=r.defaultPageSize,o=void 0===n?10:n,l=r.initCurrent,s=void 0===l?1:l,u=r.resetFirst,c=void 0!==u&&u,f=r.resetDeps,d=r.refreshDeps,v=(r.requestKey,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0)&&(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0))Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}(r,["defaultPageSize","initCurrent","resetFirst","resetDeps","refreshDeps","requestKey"])),h=r.pageSize,p=r.current,m="boolean"!=typeof v.auto||v.auto,b=[F({current:s,pageSize:o},(null===(t=v.defaultParams)||void 0===t?void 0:t[0])||{})].concat(U((v.defaultParams||[]).slice(1))),y=C(e,F(F({},v),{},{defaultParams:b,auto:m})),g=y.data,O=y.params,w=y.run,j=y.loading,S=O&&O[0]?O[0]:b[0]||{},_=S.current,x=void 0===_?s:_,T=S.pageSize,N=void 0===T?o:T,E=S.sorter,P=S.filters;h&&(N=h),p&&(x=p);var L=(0,i.useCallback)(function(e){var t,r=function(e){if(Array.isArray(e))return e}(t=O)||W(t)||Z(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.")}(),n=r[0],o=r.slice(1);return w.apply(void 0,[F(F({},n),e)].concat(U(o)))},[w,O]),I=(null==g?void 0:g.total)||0,k=(0,i.useMemo)(function(){return Math.ceil(I/N)},[N,I]),D=(0,i.useCallback)(function(e,t){var r=e<=0?1:e,n=Math.ceil(I/(t<=0?1:t));return r>n&&(r=n),L({current:e,pageSize:t})},[I,L]);(0,i.useRef)(D).current=D;var R=(0,i.useCallback)(function(e){D(e,N)},[D,N]),M=(0,i.useCallback)(function(e){D(x,e)},[D,x]),A=(0,i.useRef)(R);A.current=R,(0,a.Z)(function(){m&&A.current(p||(c?1:s))},[].concat(U(void 0===f?[]:f),U(void 0===d?[]:d),[h,p]));var z=(0,i.useCallback)(function(e,t,r){L({current:void 0===e.current?s:e.current,pageSize:e.pageSize||o,filters:t,sorter:r})},[L]),B=(0,i.useCallback)(function(){w(b[0],b[1])},[]);return F(F({},y),{},{reset:B,loading:j,data:g,params:O,pagination:{current:x,pageSize:N,total:I,totalPage:k,onChange:D,changeCurrent:R,changePageSize:M},tableProps:{dataSource:(null==g?void 0:g.list)||[],loading:j,onChange:z,pagination:{current:x,pageSize:N,total:I}},sorter:void 0===E?{}:E,filters:void 0===P?{}:P})};function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)&&(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0))Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}var H=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=o.defaultValue,s=o.refreshDeps,u=o.debounceInterval,c=Y(o,["defaultValue","refreshDeps","debounceInterval"]),f="boolean"!=typeof c.auto||c.auto;var d=(r=2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(l))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&null!=l.return&&l.return()}finally{if(o)throw i}}return r}}(t,2)||G(t,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=d[0],h=d[1],p=C(e,q(q({defaultParams:[l]},c),{},{debounceInterval:void 0===u?300:u,auto:!1})),m=p.run,b=Y(p,["run"]);(0,a.Z)(function(){f&&m(v)},function(e){if(Array.isArray(e))return $(e)}(n=void 0===s?[]:s)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||G(n)||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(){m(v)},[v]);var y=(0,i.useCallback)(function(){return m(v)},[m,v]);return q(q({},b),{},{value:v,onChange:h,run:y})};function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function J(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=J(J({},(0,i.useContext)(X)),t),n=r.mode;return n===o.loadMore?M(e,r):n===o.pagination?B(e,r):n===o.search?H(e,r):C(e,r)}},953857:function(e){var t=0/0,r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof window&&window&&window.Object===Object&&window,s="object"==typeof self&&self&&self.Object===Object&&self,u=l||s||Function("return this")(),c=Object.prototype.toString,f=Math.max,d=Math.min,v=function(){return u.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){if("number"==typeof e)return e;if("symbol"==typeof(l=e)||(s=l)&&"object"==typeof s&&"[object Symbol]"==c.call(l))return t;if(h(e)){var l,s,u="function"==typeof e.valueOf?e.valueOf():e;e=h(u)?u+"":u}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var f=o.test(e);return f||i.test(e)?a(e.slice(2),f?2:8):n.test(e)?t:+e}e.exports=function(e,t,r){var n,o,i,a,l,s,u=0,c=!1,m=!1,b=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}t=p(t)||0,h(r)&&(c=!!r.leading,i=(m="maxWait"in r)?f(p(r.maxWait)||0,t):i,b="trailing"in r?!!r.trailing:b);function g(e){var r=e-s,n=e-u;return void 0===s||r>=t||r<0||m&&n>=i}function O(){var e,r,n,o,a=v();if(g(a))return w(a);l=setTimeout(O,(r=(e=a)-s,n=e-u,o=t-r,m?d(o,i-n):o))}function w(e){return(l=void 0,b&&n)?y(e):(n=o=void 0,a)}function j(){var e,r=v(),i=g(r);if(n=arguments,o=this,s=r,i){if(void 0===l){;return u=e=s,l=setTimeout(O,t),c?y(e):a}if(m)return l=setTimeout(O,t),y(s)}return void 0===l&&(l=setTimeout(O,t)),a}return j.cancel=function(){void 0!==l&&clearTimeout(l),u=0,n=s=o=l=void 0},j.flush=function(){return void 0===l?a:w(v())},j}},964544:function(e){var t="Expected a function",r=0/0,n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,s="object"==typeof window&&window&&window.Object===Object&&window,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),f=Object.prototype.toString,d=Math.max,v=Math.min,h=function(){return c.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(s=t)&&"object"==typeof s&&"[object Symbol]"==f.call(t))return r;if(p(e)){var t,s,u="function"==typeof e.valueOf?e.valueOf():e;e=p(u)?u+"":u}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var c=i.test(e);return c||a.test(e)?l(e.slice(2),c?2:8):o.test(e)?r:+e}e.exports=function(e,r,n){var o=!0,i=!0;if("function"!=typeof e)throw TypeError(t);return p(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),function(e,r,n){var o,i,a,l,s,u,c=0,f=!1,b=!1,y=!0;if("function"!=typeof e)throw TypeError(t);function g(t){var r=o,n=i;return o=i=void 0,c=t,l=e.apply(n,r)}r=m(r)||0,p(n)&&(f=!!n.leading,a=(b="maxWait"in n)?d(m(n.maxWait)||0,r):a,y="trailing"in n?!!n.trailing:y);function O(e){var t=e-u,n=e-c;return void 0===u||t>=r||t<0||b&&n>=a}function w(){var e,t,n,o,i=h();if(O(i))return j(i);s=setTimeout(w,(t=(e=i)-u,n=e-c,o=r-t,b?v(o,a-n):o))}function j(e){return(s=void 0,y&&o)?g(e):(o=i=void 0,l)}function S(){var e,t=h(),n=O(t);if(o=arguments,i=this,u=t,n){if(void 0===s){;return c=e=u,s=setTimeout(w,r),f?g(e):l}if(b)return s=setTimeout(w,r),g(u)}return void 0===s&&(s=setTimeout(w,r)),l}return S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=u=i=s=void 0},S.flush=function(){return void 0===s?l:j(h())},S}(e,r,{leading:o,maxWait:r,trailing:i})}},246925:function(e,t,r){var n=r(956823),o=r(745627),i=r(724521),a=r(404152),l=n.isFinite,s=Math.min;e.exports=function(e){var t=Math[e];return function(e,r){if(e=i(e),(r=null==r?0:s(o(r),292))&&l(e)){var n=(a(e)+"e").split("e");return+((n=(a(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}},179355:function(e,t,r){var n=r(246925)("round");e.exports=n},466918:function(e,t){"use strict";t.Z={dlgContent:"h4SyTldT",dlgContentAutoHeight:"e_Gmm2fT",dlogContentDefaultHeight:"aap7R6H8",hideList:"XyWOoa_0",cover:"lZy7CKv5",toast:"dSjzLda4",dropdownContainer:"QwcgihzY",dropDownListInCenterChange:"izRBH4bt",listContainer:"IEv8oDS8",clearOverflow:"MZ8s842b",shadowChange:"gisjtCil",overflowChange:"zsCPZmeW",conversationDtailAnimationKeyframes:"xMZXS6F0",dropDownListInNoCenterChange:"a9ZYMhW6",showDeleteAllMessageModal:"k6XrTa_o",dropDownListInNoCenterLeftTopChange:"QwVjNoOg",dropDownListOutChange:"_d6DItEa"}},97397:function(e,t,r){"use strict";r.d(t,{N:function(){return v}});var n=r("320165"),o=r("101199"),i=r("171119"),a=r("895269"),l=r("280676"),s=r("629686"),u=r("402748");let c=(0,o.forwardRef)((e,t)=>(0,n.jsxs)("svg",(0,u._)((0,s._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,n.jsx)("rect",{width:24,height:24,rx:12,fill:"#fff"}),(0,n.jsx)("path",{d:"M16.4 16.4a.908.908 0 0 1-1.284 0l-2.783-2.782L9.55 16.4a.908.908 0 1 1-1.284-1.285l2.783-2.783L8.266 9.55A.908.908 0 0 1 9.55 8.266l2.783 2.783 2.783-2.783a.908.908 0 0 1 1.285 1.284l-2.783 2.783 2.783 2.783a.908.908 0 0 1 0 1.285z",fill:"#fff",fillOpacity:".5"})]})));var f=r("176449");let d={[i.YY.Tray]:{[i.bu.IM]:"开启「开机自启动」,及时接收与你相关的互动消息。",[i.bu.Interact]:"开启「开机自启动」,及时接收与你相关的互动消息。",[i.bu.ShareBoard]:"开启「开机自启动」,及时接收与你相关的互动消息。"},[i.YY.Push]:{[i.bu.IM]:"开启「私信」开关,及时接收好友消息。",[i.bu.Interact]:"开启「点赞」「评论」「提及」等开关,及时接收与你相关的互动消息。",[i.bu.ShareBoard]:"开启「私信」开关,及时接收互动消息。"}},v=e=>{var t;let{guideType:r,scene:o,close:i}=e;return r?(0,n.jsxs)("div",{className:l.default.wrap,children:[(0,n.jsxs)("div",{className:l.default.left,children:[(0,n.jsx)("span",{className:l.default.text,children:null==d?void 0:null===(t=d[r])||void 0===t?void 0:t[o]}),(0,n.jsx)("span",{onClick:()=>{a.Gq.onOpen(o,r),i()},className:l.default.openBtn,children:"点击开启"})]}),(0,n.jsx)(f.Z,{needRenderInSSR:!0,onClick:()=>{a.Gq.onClose(o,r),i()},className:l.default.closeBtn,src:c,width:24,height:24,viewBox:"0 0 24 24"})]}):null}},709292:function(e,t,r){"use strict";r.d(t,{eD:function(){return g}}),r("490629");var n=r("320165"),o=r("101199"),i=r("469935"),a=r.n(i),l=r("863005"),s=r("618759"),u=r("537056"),c=r("499059"),f=r("65387"),d=r("629686"),v=r("402748");let h=(0,o.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,v._)((0,d._)({width:14,height:15,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.646 7.146L8 9.793V2.5H7v7.293L4.354 7.146l-.708.708 3.5 3.5.354.353.354-.353 3.5-3.5-.708-.708zM3 12.5v1h9v-1H3z",fill:"#fff",stroke:"#fff",strokeWidth:".5"})})));var p=r("755881"),m=r("176449"),b=r("589297"),y=r("455571");let g=(0,o.memo)(e=>{let{className:t,hintText:r,log:i,isLogin:d,defaultHeighlight:v=!0,isShow:g,style:O,textContainerClassName:w,showDivider:j=!1,defaultShow:S=!0,showAnimation:_=!1,downloadHintClassName:x,downloadButtonClassNmae:T,autoCancelHeighlight:N=!0,onClick:E,onVisibilityChange:C}=e,{downloadHref:P,downloadAttr:L}=(0,b.o)({channelId:i.channelId}),[I,k]=(0,l.C)({value:g,defaultValue:S}),[D,R]=(0,o.useState)(v),M=(0,o.useRef)(null);return((0,o.useEffect)(()=>{null==C||C(I)},[I,C]),(0,o.useEffect)(()=>{(async()=>{!(0,s.DT)()&&!(0,s.tq)()&&(0,y.D5)()&&!I&&d&&!await (0,u.Y)(!0)&&k(!0)})(),I&&p.Z.sendLog("addToDesktopShow",{enter_from:null==i?void 0:i.enterFrom,type:null==i?void 0:i.type,guide_type:null==i?void 0:i.guideType,channel_id:null==i?void 0:i.channelId,ug_channel_id:c.Le.getConfig(c.gI.WebUgChannelId)||""})},[I,d,i,k]),(0,o.useEffect)(()=>(D&&!M.current&&I&&N&&(M.current=setTimeout(()=>{R(!1),clearTimeout(M.current),M.current=null},5e3)),()=>{clearTimeout(M.current),M.current=null}),[D,I]),_||I)?(0,n.jsxs)("div",{className:a()(f.default.container,t,{[f.default.withDivider]:j,[f.default.hide]:!I}),style:O,children:[(0,n.jsxs)("div",{className:a()(f.default.downloadHint,x),children:[(0,n.jsx)("div",{className:a()(f.default.downloadHintText,w),children:null!=r?r:"下载电脑客户端,随时访问抖音"}),(0,n.jsxs)("a",{href:P,download:L,className:a()(f.default.downloadButton,T,{[f.default.highlight]:D}),onClick:()=>{if(E)return E(),!1;p.Z.sendLog("addToDesktopClick",{enter_from:null==i?void 0:i.enterFrom,type:null==i?void 0:i.type,guide_type:null==i?void 0:i.guideType,group_id:null==i?void 0:i.groupId,channel_id:null==i?void 0:i.channelId,ug_channel_id:c.Le.getConfig(c.gI.WebUgChannelId)||""})},children:[(0,n.jsx)(m.Z,{className:f.default.downloadIcon,src:h,width:14,height:14,viewBox:"0 0 14 14"}),(0,n.jsx)("span",{children:"下载"})]})]}),j&&(0,n.jsx)("div",{className:f.default.divider})]}):(0,n.jsx)(n.Fragment,{})})},817289:function(e,t,r){"use strict";r.d(t,{Z:function(){return m},W:function(){return h}}),r("362051");var n=r("320165"),o=r("101199"),i=r("469935"),a=r.n(i),l=r("732979"),s=r.n(l),u=r("426038"),c="gpMuD0LB",f="howj3SJD",d=r("535684");function v(){let e={};try{let t=JSON.parse(localStorage.getItem(u.LocalStorageKeys.PrivacyHintDisplayCount));t&&"object"==typeof t&&(e=t)}catch(e){}return e}function h(e){var t,r,n,o;let{scene:i="global"}=e,a=v();return!(s()(null!==(n=null==a?void 0:null===(t=a[i])||void 0===t?void 0:t.lastTime)&&void 0!==n?n:0).isToday()||(null!==(o=null==a?void 0:null===(r=a[i])||void 0===r?void 0:r.total)&&void 0!==o?o:0)>=5)}let p={};function m(e){let{className:t,hintText:r,from:i,scene:l="global",showTitleNotice:s,showWebPush:h,showLandingPage:m}=e;return(0,o.useEffect)(()=>{if(!p[l])p[l]=setTimeout(()=>{var e,t;let r=v();r[l]={lastTime:Date.now(),total:(null!==(t=null==r?void 0:null===(e=r[l])||void 0===e?void 0:e.total)&&void 0!==t?t:0)+1},localStorage.setItem(u.LocalStorageKeys.PrivacyHintDisplayCount,JSON.stringify(r))},3e3)},[]),(0,n.jsx)("div",{className:a()(c,t),children:(0,n.jsxs)("div",{children:[null!=r?r:"可在【设置】-【隐私设置】中修改在线状态,开启后查看互关朋友在线状态。",(0,n.jsx)("a",{href:"#",className:f,onClick:e=>{e.preventDefault(),(0,d.l)({from:i,showNotice:s,showWebPush:h,showLandingPage:m})},children:"去设置"})]})})}},352505:function(e,t,r){"use strict";r.d(t,{d:function(){return h}});var n=r("101199"),o=r("480333");r("591964"),r("490629"),r("374954");var i=r("908219"),a=r.n(i),l=r("179355"),s=r.n(l),u=r("542046"),c=r("499059");let f=()=>{var e,t;return(null===(t=performance)||void 0===t?void 0:null===(e=t.now)||void 0===e?void 0:e.call(t))||Date.now()||0},d=e=>s()(e,3);class v{constructor(e){(0,o._)(this,"scene",void 0),(0,o._)(this,"scrollContainer",void 0),(0,o._)(this,"reportInterval",void 0),(0,o._)(this,"collects",{fps:0,duration:0,scroll_duration:0,scroll_record_count:0,jank:0,jank_duration:0,bjank:0,bjank_duration:0,report_timestamp:-1}),(0,o._)(this,"scrollFps",[]),(0,o._)(this,"startTimer",void 0),(0,o._)(this,"endTimer",void 0),(0,o._)(this,"frame",0),(0,o._)(this,"lastTime",f()),(0,o._)(this,"isPageAppeared","visible"===document.visibilityState),(0,o._)(this,"requestId",null),(0,o._)(this,"running",!1),(0,o._)(this,"unsubscribeScroller",null),(0,o._)(this,"unsubscribeVisibilityChange",null),(0,o._)(this,"calculate",()=>{var e;if(!!(null===(e=window)||void 0===e?void 0:e.requestAnimationFrame))this.requestId=requestAnimationFrame(()=>{this.frame++;let e=f(),t=e-this.lastTime;t>1e3&&(this.collects.fps=d(1e3*this.frame/t),this.collects.duration=t,this.lastTime=e,this.frame=0),this.calculate()})}),(0,o._)(this,"report",()=>{this.isPageAppeared&&this.collects.duration>1e3&&(this.collects.report_timestamp=Date.now())}),(0,o._)(this,"reportScrollFps",()=>{let e=this.scrollFps;if(this.scrollFps=[],e.length){let t=e.reduce((e,t)=>e+t)/e.length,r=d(Math.min(60,...e));(0,u.G)(this.scene,{fps:d(t),drop_fps:60-r})}}),(0,o._)(this,"subscribeScroller",()=>{let e;if(!this.scrollContainer)return null;let t=a()(()=>{clearTimeout(e),this.collects.scroll_duration+=500,this.collects.scroll_record_count+=1,this.scrollFps.push(this.collects.fps),e=setTimeout(()=>{this.reportScrollFps()},this.reportInterval+50)},this.reportInterval,{leading:!1,trailing:!0});return this.scrollContainer.addEventListener("scroll",t),()=>this.scrollContainer.removeEventListener("scroll",t)}),(0,o._)(this,"subscribeVisibilityChange",()=>{let e=()=>{this.isPageAppeared="visible"===document.visibilityState,!this.isPageAppeared&&this.report()};return window.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),(0,o._)(this,"start",()=>{var e;if(!this.running)this.running=!0,this.calculate(),(null===(e=c.Le.getConfig(c.gI.AbtestData))||void 0===e?void 0:e.enableMemoryLeakFix)?(this.unsubscribeScroller=this.subscribeScroller(),this.unsubscribeVisibilityChange=this.subscribeVisibilityChange()):(this.subscribeScroller(),this.subscribeVisibilityChange())}),(0,o._)(this,"cancel",()=>{var e,t,r;clearTimeout(this.startTimer),clearTimeout(this.endTimer),cancelAnimationFrame(this.requestId),(null===(e=c.Le.getConfig(c.gI.AbtestData))||void 0===e?void 0:e.enableMemoryLeakFix)&&(null===(t=this.unsubscribeScroller)||void 0===t||t.call(this),this.unsubscribeScroller=null,null===(r=this.unsubscribeVisibilityChange)||void 0===r||r.call(this),this.unsubscribeVisibilityChange=null),this.running=!1});let{scene:t,scrollContainer:r=null,delay:n=100,reportInterval:i=500}=e;this.scene=t,this.scrollContainer=r,this.reportInterval=i,this.startTimer=setTimeout(this.start,n)}}function h(e,t){let r=(0,n.useRef)(null!=t?t:null),o=(0,n.useRef)();return(0,n.useEffect)(()=>{if(!(null!=t?t:r.current)||o.current)return;let n=new v({scene:e,scrollContainer:null!=t?t:r.current,delay:100});return o.current=n,()=>{n.report(),n.cancel()}},[t]),r}},920161:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n=(e,t)=>{let r=(null==e?void 0:e.parentElement)||(null==e?void 0:e.parentNode);return!!r&&r!==document&&r!==window&&((null==t?!!void 0:!!t(r))||n(r,t))}},41442:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r("320165");r("101199");var o=r("849023"),i=r("48795"),a="mhsNq9Zm",l="VVXKR8gM",s="BNewIsqc",u="rSadl9G_",c=r("337747"),f=(0,o.inject)("noticeStore")((0,o.observer)(e=>{let{content:t="",onConfirm:r=()=>{},onCancel:o=()=>{}}=e,f=()=>{c.J.emit(c.v.CLOSE_CONFIRM_MODAL)};return(0,n.jsxs)("div",{className:a,children:[(0,n.jsx)("div",{className:l,children:t}),(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)(i.Button,{theme:"solid",className:u,type:"secondary",onClick:()=>{null==o||o(),f()},children:"取消"}),(0,n.jsx)(i.Button,{theme:"solid",className:u,onClick:()=>{null==r||r(),f()},children:"确定"})]})]})}))},385922:function(e,t,r){"use strict";r.d(t,{Z:function(){return L}}),r("76375");var n=r("320165"),o=r("101199"),i=r("849023");r("490629");var a=r("469935"),l=r.n(a),s=r("908219"),u=r.n(s),c=r("48795"),f=r("414061"),d=r("46892"),v=r("132825"),h=r("795919"),p={cellContainer:"BkWSvF7g",userItem:"da6dcXmL",userInfo:"YQsiZs7I",userAvatar:"pTSSaCgd",userName:"G3ZEkzJ0",button:"zM1Rf7Rk",hasFollowedBtn:"yhwi9xpH",dividingLine:"vYIj2bR4"},m=r("234150"),b=r("34841"),y=r("696492"),g=r("534321"),O=r("33482"),w=r("598444"),j=r("580251"),S=r("337747");let _=(0,i.inject)("noticeStore")((0,i.observer)(e=>{var t,r,i;let{userInfo:a={},noticeStore:s={}}=e,{followStatusMap:_={}}=s,{sec_uid:x}=a,[T,N]=(0,o.useState)(y.EV.NoRelationStatus),[E,C]=(0,o.useState)(y.EV.NoRelationStatus),P=(0,o.useRef)(null),L=u()(async e=>{let{uid:t=""}=a;if(!t)return;let[r,n]=await (0,w.F)(null==v?void 0:h.P(t,e));if(r)return;let{follow_status:o,status_code:i}=n||{};if(0===i){var l;(0,j.Gb)(g.M5[e],{enter_from:"interact_cell",personal_relation:String(E)}),C(o),null===(l=s.setFollowStatusMap)||void 0===l||l.call(s,t,y.$y.FOLLOW,o),e===y.Ol.FOLLOW&&f.emit(f.EVENT.showClientDownloadGuide,{isShow:!0,type:"follow",text:"及时接收「关注的人」开播提醒"})}else{let{status_msg:e=""}=n;S.J.emit(S.v.SHOW_TOAST,{text:e})}},500);return(0,o.useEffect)(()=>{var e,t,r,n;let o=null!==(r=null==_?void 0:null===(e=_[null==a?void 0:a.uid])||void 0===e?void 0:e[y.$y.FOLLOWER])&&void 0!==r?r:(null==a?void 0:a.follower_status)||y.EV.NoRelationStatus;C(null!==(n=null==_?void 0:null===(t=_[null==a?void 0:a.uid])||void 0===t?void 0:t[y.$y.FOLLOW])&&void 0!==n?n:(null==a?void 0:a.follow_status)||y.EV.NoRelationStatus),N(o)},[a,_]),(0,n.jsxs)("div",{className:p.cellContainer,ref:P,children:[(0,n.jsxs)("div",{className:p.userItem,children:[x?(0,n.jsx)(m.a,{href:(0,d.HC)(x,"enter_from=interact_cell"),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsxs)("div",{className:p.userInfo,children:[(0,n.jsx)(b.n,{srcList:(null==a?void 0:null===(t=a.avatar_thumb)||void 0===t?void 0:t.url_list)||[],className:p.userAvatar}),(0,n.jsx)("div",{className:p.userName,children:(null==a?void 0:a.remark_name)||(null==a?void 0:a.nickname)||""})]})}):(0,n.jsxs)("div",{className:p.userInfo,children:[(0,n.jsx)(b.n,{srcList:(null==a?void 0:null===(r=a.avatar_thumb)||void 0===r?void 0:r.url_list)||[],className:p.userAvatar}),(0,n.jsx)("div",{className:p.userName,children:(null==a?void 0:a.remark_name)||(null==a?void 0:a.nickname)||""})]}),(0,n.jsx)(c.Button,{size:"small",className:l()(p.button,{[p.hasFollowedBtn]:E!==y.EV.NoRelationStatus}),theme:E===y.EV.NoRelationStatus?"solid":"outline",onClick:()=>{let e=E===y.EV.NoRelationStatus?y.Ol.FOLLOW:y.Ol.UNFOLLOW;e===y.Ol.UNFOLLOW?S.J.emit(S.v.OPEN_CONFIRM_MODAL,{content:"确认取消关注?",onConfirm:()=>L(e)}):L(e)},children:null===O.MN||void 0===O.MN?void 0:null===(i=O.MN[T])||void 0===i?void 0:i[E]})]}),(0,n.jsx)("div",{className:p.dividingLine})]})}));var x=r("629686"),T=r("402748");let N=(0,o.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,T._)((0,x._)({width:9,height:15,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207.77a1 1 0 0 1 0 1.415L2.914 7.478l5.293 5.292a1 1 0 1 1-1.414 1.415l-6-6a1 1 0 0 1 0-1.415l6-6a1 1 0 0 1 1.414 0z",fill:"#2F3035",fillOpacity:".7"})})));var E={listDlg:"UUfHbxg8",errorDom:"li_F8hXL",header:"fgTWu00L",back:"bQhYgvfw",backText:"tOLAl7zl",headerName:"hrqLacbr",listBox:"VPVUR37C",noMoreData:"yeOUgJJK",nodataTxt:"qBqWLV9Z"},C=r("414644"),P=r("176449"),L=(0,i.inject)("noticeStore")((0,i.observer)(e=>{let{noticeStore:t={}}=e,{followRecommendUserListObj:r}=t,o=(null==r?void 0:r.userList)||[],i=(null==o?void 0:o.length)||0;return(0,n.jsxs)("div",{className:E.listDlg,children:[(0,n.jsxs)("div",{className:E.header,children:[(0,n.jsxs)("div",{className:E.back,onClick:()=>{null==t||t.setShowFollowRecommendUserList(!1),S.J.emit(S.v.ENTER_NOTICELIST_FROM_OTHER_PAGE,{from:"user_page"})},children:[(0,n.jsx)(P.Z,{src:N,width:8,height:14,viewBox:"0 0 9 15"}),(0,n.jsx)("div",{className:E.backText,children:"返回"})]}),(0,n.jsx)("div",{className:E.headerName,children:null==r?void 0:r.title})]}),i?(0,n.jsxs)("div",{className:E.listBox,children:[null==o?void 0:o.map((e,t)=>(0,n.jsx)(_,{userInfo:e},null==e?void 0:e.uid)),(0,n.jsx)("div",{className:E.noMoreData,children:"暂时没有更多了"})]}):(0,n.jsx)(C.jj,{className:E.errorDom,titleClassName:E.nodataTxt,type:"emptyList",title:"暂无好友"})]})}))},316815:function(e,t,r){"use strict";r.d(t,{Z:function(){return G}});var n=r("629686"),o=r("402748");r("490629"),r("112459"),r("759943"),r("706056"),r("76375");var i=r("320165"),a=r("101199"),l=r("849023"),s=r("908219"),u=r.n(s),c=r("469935"),f=r.n(c),d=r("426038"),v=r("201497"),h=r("356336"),p=r("618759"),m=r("709705"),b=r("759894"),y=r("235586"),g=r("171119"),O={listDlg:"yg9odyl4",errorDom:"fXtgtqD0",header:"dXEFJgd3",headerName:"fhiVDoCe",listBox:"sKMx4DKd",noMoreData:"h_rM4R1q",getMoreList:"RQOLsL3h",downloadHintWrapper:"xTeiyDa9",nodataTxt:"rYgZ81Y2",listDlgTestGroup:"BJjkKmrs",listBoxLoading:"mROlbWfe",privacyHintAlign:"xrP3wYZA"},w=r("414644"),j=r("795653"),S={filterContainer:"GjJ3iWT6",curFilter:"RFffF4JU",arrow:"PbaXyEUJ",upArrow:"tmJhnoAd",filterList:"owCg2Yho",isTestGroupFilterList:"kTb4LYAV",dropdownContainer:"dbkPa6Dr",filterItem:"zO7imT_G",ohosFilterItem:"l6SXOIvW"};let _=(0,a.forwardRef)((e,t)=>(0,i.jsx)("svg",(0,o._)((0,n._)({width:10,height:6,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.102.72a.75.75 0 0 1 1.06 0l2.83 2.828L7.82.72a.75.75 0 0 1 1.06 1.06L5.522 5.14a.75.75 0 0 1-1.061 0L1.102 1.78a.75.75 0 0 1 0-1.06z",fill:"#2F3035",fillOpacity:".7"})})));var x=r("319053"),T=r("696492"),N=r("176449");let E=(0,l.inject)("noticeStore")((0,l.observer)(e=>{let{noticeStore:t={},className:r}=e,{showNoticeTypeList:n=!1,curNoticeFilter:o={},abTestData:a={}}=t,l=(0,j.O)(),s=e=>{t.setShowNoticeTypeList(!1),t.setCurNoticeFilter(e)};return(0,i.jsxs)("div",{className:f()(S.filterContainer,r),id:"noticeTypeList",children:[(0,i.jsxs)("div",{className:S.curFilter,onClick:()=>{t.setShowNoticeTypeList(!n)},"data-e2e":"cur-filter",children:[null==o?void 0:o.label,(0,i.jsx)("div",{className:f()(S.arrow,{[S.upArrow]:n}),children:(0,i.jsx)(N.Z,{src:_,width:10,height:6,viewBox:"0 0 10 6"})})]}),n&&(0,i.jsx)("div",{className:f()(S.filterList,S.isTestGroupFilterList),children:(0,i.jsx)("div",{className:S.dropdownContainer,"data-e2e":"cur-dropdown-list",children:null===x.YC||void 0===x.YC?void 0:x.YC.map((e,t)=>e.value!==T.gc.COMMENT_DANMAKU?(0,i.jsx)("div",{className:f()(S.filterItem,{[S.ohosFilterItem]:l}),onClick:()=>s(e),children:null==e?void 0:e.label},t):null)})})]})}));var C=r("499329"),P=r("580251"),L=r("613553");r("362051"),r("679308");var I=r("217969"),k=r("132825"),D=r("598444"),R=r("409554"),M=r("279291"),A=r("263070");let F=async function(){var e,t,r;let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{noticeListObj:l,curNoticeFilter:s,noticeGroupMap:u}=R.Z,{value:c=T.gc.ALL}=s,f=null==u?void 0:u[c];if(!f)return;let d=l;if(null==d?void 0:d.loading)return;R.Z.setNoticeListObj((0,o._)((0,n._)({},d),{loading:!0})),i&&(d={noticeList:[],minTime:0,maxTime:0,hasMore:1,loading:!1});let{minTime:v=0,maxTime:h=0,hasMore:p=1}=d;if(!p){R.Z.setNoticeListObj((0,o._)((0,n._)({},d),{loading:!1}));return}let[m,b]=i&&a?await (0,D.F)(I.ul({id_list:JSON.stringify([{notice_id_str:a,type:0}])})):[],y=null==b?void 0:null===(e=b.notice_list_v2)||void 0===e?void 0:e[0],g=y?[(0,o._)((0,n._)({},y),{__by_insert:!0})]:[],O=null==d?void 0:d.noticeList,w=!1;do{let[e,l]=await (0,D.F)(null==k?void 0:I.vo({notice_group:f,count:10,min_time:v,max_time:h}));e&&R.Z.setNoticeListObj((0,o._)((0,n._)({},d),{loading:!1})),v=(null==l?void 0:l.min_time)||0,h=(null==l?void 0:l.max_time)||0,p=null!==(t=null==l?void 0:l.has_more)&&void 0!==t?t:1;let s=null!==(r=null==l?void 0:l.notice_list_v2)&&void 0!==r?r:[],u=a?s.filter(e=>e.nid_str!==a):s;!w&&a&&(u=g.concat(u),w=!0),A.Z.log("noticeList",u,i,a,b);let c=await (0,M.O)(u);A.Z.log("noticeList",c),O=(null==O?void 0:O.concat(c))||[]}while((null==O?void 0:O.length)<9&&p);R.Z.setNoticeListObj({noticeList:O,minTime:v,maxTime:h,hasMore:p,loading:!1})};var U=r("455571"),Z=r("709292"),W=r("983218"),z=r("817289"),B=r("97397"),V=r("352505"),q=r("802309"),G=(0,l.inject)("noticeStore")((0,l.observer)(e=>{let{noticeStore:t={}}=e,{noticeListObj:r={},curNoticeFilter:l={},noticeGroupMap:s={},showUserList:c,abTestData:j}=t,S=(0,a.useRef)(""),{noticeList:_=[],hasMore:x=0}=r,N=(null==_?void 0:_.length)||0,[I,k]=(0,a.useState)(0),[D,R]=(0,a.useState)(0),[M,A]=(0,a.useState)(!1),G=(0,a.useRef)(null);(0,V.d)("pc_im_notice_list_fps",G.current),(0,a.useEffect)(()=>{q.Z.mark("notice_list_fcp")},[]),(0,a.useEffect)(()=>{if(!q.Z.get("notice_list_fmp"))return(_.length>0||0===x)&&(q.Z.mark("notice_list_fmp"),(0,P.Gb)("pc_notice_window_show_duration",{duration_fcp:q.Z.measure("notice_dialog_open","notice_list_fcp"),duration_fmp:q.Z.measure("notice_dialog_open","notice_list_fmp")})),()=>{q.Z.delete("notice_list_fmp")}},[_,x]);let $=e=>{var i,a;let l=null==_?void 0:_.slice();null==l||null===(i=l.splice)||void 0===i||i.call(l,e,1),null===(a=t.setNoticeListObj)||void 0===a||a.call(t,(0,o._)((0,n._)({},r),{noticeList:l}));let s=G.current;(0,L.j)(s)&&F(!1,S.current)},Y=(0,a.useCallback)(e=>{u()(()=>{(0,L.j)(e.target||{})&&(A(!0),F(!1,S.current))},300)()},[]);(0,a.useEffect)(()=>{(async()=>{var e,r;S.current=t.noticeListInsertNoticeId,await F(!0,S.current),t.setNoticeListInsertNoticeId(""),G.current&&(null===y.X||void 0===y.X||(0,y.X)({top:0},G.current));let{value:n}=l||{};null==t||null===(e=t.clearNoticeUnreadCountList)||void 0===e||e.call(t,n,0),null==t||null===(r=t.clearFollowStatusMap)||void 0===r||r.call(t)})()},[s,l]),(0,a.useEffect)(()=>{if(N>0){let e=G.current;R((null==e?void 0:e.clientHeight)||0);let t=u()(()=>k((null==e?void 0:e.scrollTop)||0),200);return e&&e.addEventListener("scroll",t),()=>{e&&e.removeEventListener("scroll",t)}}return()=>{}},[N]);let H=(0,a.useRef)(0);(0,a.useEffect)(()=>{if(navigator.userAgent.search("Firefox")&&!c){var e,t;null===(t=G.current)||void 0===t||null===(e=t.scrollTo)||void 0===e||e.call(t,0,H.current)}},[c]);let K=(0,a.useMemo)(()=>(0,p.DT)()?(0,m.$o)(d.LocalStorageKeys.ForceClientDownloadHint)||(0,U.Jo)()?(0,i.jsx)(Z.eD,{className:O.downloadHintWrapper,hintText:"下载客户端,随时接收消息",isLogin:!0,defaultShow:!1,log:{enterFrom:(0,b.vM)(),type:"notice_notif"}}):(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(i.Fragment,{}),[j]),J=(0,a.useMemo)(()=>(0,z.W)({}),[]),{trayPushGuideType:X,closeTrayPushGuide:Q}=(0,v.o)({scene:g.bu.Interact,runOnShow:!0,isShowPrivacyHint:J});return(0,i.jsxs)("div",{className:f()(O.listDlg,O.listDlgTestGroup),"data-e2e":"listDlgTest-container",children:[(0,i.jsxs)("div",{className:f()(O.header),children:[(0,i.jsx)("div",{className:O.headerName,children:"互动消息"}),(0,i.jsx)(E,{})]}),X&&(0,i.jsx)(B.N,{guideType:X,scene:g.bu.Interact,close:Q}),N?(0,i.jsxs)("div",{className:O.listBox,ref:G,onScroll:e=>{H.current=e.currentTarget.scrollTop,Y(e)},children:[!J&&K,J&&(0,i.jsx)(z.Z,{className:O.privacyHintAlign,from:"interact",showTitleNotice:!0,showWebPush:[h.WebPushType.Push,h.WebPushType.PushNPull].includes(null==j?void 0:j.douyinWebPush),showLandingPage:!1}),null==_?void 0:_.map((e,t)=>(0,i.jsx)(C.Z,{notice:e,showScene:T.DL.NOTICE_LIST,handleDelete:()=>$(t),noticeListScrollTop:I,noticeListViewPortHeight:D,noticeRank:t+1},null==e?void 0:e.nid_str)),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:O.noMoreData,children:0===x?"暂时没有更多了":M?(0,i.jsx)(W.gb,{}):(0,i.jsx)("span",{className:O.getMoreList,onClick:()=>{A(!0),F(!1,S.current)},children:"点击加载更多"})})})]}):(0,i.jsxs)("div",{className:O.listBox,ref:G,onScroll:Y,children:[!r.loading&&K,(null==r?void 0:r.loading)?(0,i.jsx)("div",{className:O.listBoxLoading,children:(0,i.jsx)(W.gb,{})}):(0,i.jsx)(w.jj,{className:O.errorDom,titleClassName:O.nodataTxt,type:"emptyList",title:"暂无互动消息"})]})]})}))},154978:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r("629686"),o=r("320165"),i=r("101199"),a=r("746517"),l=r("469935"),s=r.n(l),u=r("414061"),c=r("960496"),f="A52vaBLG",d="hlJ2yOba",v="zXlz7IOt",h="SAM6ovJn",p=i.forwardRef((e,t)=>{let{logParams:r,changeType:l,className:p,loginPanelClassName:m}=e;return(0,i.useEffect)(()=>()=>{u.emit(u.EVENT.showHeaderPopUp,{type:"notice",isShow:!0})},[]),(0,o.jsx)("div",{className:s()(f,p),children:(0,o.jsxs)("div",{ref:t,className:s()(d,m),children:[(0,o.jsx)("p",{className:v,children:"登录后即可查看通知消息"}),(0,o.jsx)("div",{className:h,onClick:()=>{var e,t;l("",!0),(0,a.navShowAccount)({success:()=>{window.location.reload()},enterMethod:"interact",headerText:"登录后即可查看通知消息",next:`${c.tJ}${null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.host}`,teaEvtParams:(0,n._)({is_guide:"1",enter_method:"interact"},r)})},children:"立即登录"})]})})})},235024:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}}),r("490629"),r("76375");var n=r("320165"),o=r("101199"),i=r("849023"),a=r("414644"),l=r("176449"),s=r("337747"),u=r("613553"),c=r("629686"),f=r("402748");r("679308");var d=r("132825"),v=r("217969"),h=r("598444"),p=r("409554"),m=r("696492");let b=async(e,t)=>{let r;let{minTime:n=0,maxTime:o=0,itemId:i}=e||{},a=null;switch(t){case m.vq.NORMAL:case m.vq.DIGG_ITEM:let[l,s]=await (0,h.F)(null==d?void 0:v.Ds({item_id:i,count:50,min_cursor:n,max_cursor:o}));l&&(a=l||Error("err"));let{user_list:u,min_cursor:c=0,max_cursor:f=0}=s||{};r={userList:null!=u?u:[],minTime:c,maxTime:f,hasMore:!1};break;case m.vq.DIGG_COMMENT:case m.vq.DIGG_DANMAKU:let[p,b]=await (0,h.F)(null==d?void 0:v.Ex({notice_id:i,count:50,min_time:n,max_time:o,notice_type:0}));p&&(a=p||Error("err"));let{user_list:y,min_time:g=0,max_time:O=0,has_more:w=1}=b||{};r={userList:null!=y?y:[],minTime:g,maxTime:O,hasMore:!!w}}return[a,r]},y=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{userListObj:r,userListFilter:n}=p.Z,{itemId:o="0",diggType:i=m.vq.NORMAL}=n||{};if("0"===o)return;let a=r;if(null==a?void 0:a.loading)return;p.Z.setUserListObj((0,f._)((0,c._)({},a),{loading:!0})),t&&(a={userList:[],minTime:0,maxTime:0,hasMore:!0,loading:!1,userType:i});let{minTime:l=0,maxTime:s=0,hasMore:u=!0}=a;if(!u){p.Z.setUserListObj((0,f._)((0,c._)({},a),{loading:!1}));return}let[d,v]=await b({itemId:o,minTime:l,maxTime:s},i);d&&p.Z.setUserListObj((0,f._)((0,c._)({},a),{loading:!1}));let{userList:h=[],minTime:y=0,maxTime:g=0,hasMore:O=!0}=v,w=(null==a?void 0:null===(e=a.userList)||void 0===e?void 0:e.concat(h))||[];p.Z.setUserListObj({userList:w,minTime:y,maxTime:g,hasMore:O,loading:!1,userType:i})};var g=r("908219"),O=r.n(g),w=r("534321"),j=r("319053"),S=r("469935"),_=r.n(S),x=r("48795"),T=r("414061"),N=r("46892"),E=r("795919"),C={cellContainer:"xTgTfh7X",userItem:"rE1AUxz3",userInfo:"BQn_w1NM",userAvatar:"BxaOROzz",userName:"E5TO3Wiu",button:"iPAW8naL",hasFollowedBtn:"oGcoIc26",dividingLine:"kIBTUlt8"},P=r("234150"),L=r("34841"),I=r("33482"),k=r("580251");let D=(0,i.inject)("noticeStore")((0,i.observer)(e=>{var t,r,i;let{userInfo:a={},userCount:l=0,userRank:c=0,userListScrollTop:f=0,userListViewPortHeight:v=0,interactType:p,noticeStore:b={}}=e,{followStatusMap:y={}}=b,{sec_uid:g}=a,[j,S]=(0,o.useState)(m.EV.NoRelationStatus),[D,R]=(0,o.useState)(m.EV.NoRelationStatus),M=(0,o.useRef)(null),A=(0,o.useRef)(!1),F=O()(async e=>{let{uid:t=""}=a;if(!t)return;let[r,n]=await (0,h.F)(null==d?void 0:E.P(t,e));if(r)return;let{follow_status:o,status_code:i}=n||{};if(0===i){var l;(0,k.Gb)(w.M5[e],{enter_from:"interact_cell",personal_relation:String(D)}),R(o),null===(l=b.setFollowStatusMap)||void 0===l||l.call(b,t,m.$y.FOLLOW,o),e===m.Ol.FOLLOW&&T.emit(T.EVENT.showClientDownloadGuide,{isShow:!0,type:"follow",text:"及时接收「关注的人」开播提醒"})}else{let{status_msg:e=""}=n;s.J.emit(s.v.SHOW_TOAST,{text:e})}},500);return(0,o.useEffect)(()=>{var e,t,r,n;let o=null!==(r=null==y?void 0:null===(e=y[null==a?void 0:a.uid])||void 0===e?void 0:e[m.$y.FOLLOWER])&&void 0!==r?r:(null==a?void 0:a.follower_status)||m.EV.NoRelationStatus;R(null!==(n=null==y?void 0:null===(t=y[null==a?void 0:a.uid])||void 0===t?void 0:t[m.$y.FOLLOW])&&void 0!==n?n:(null==a?void 0:a.follow_status)||m.EV.NoRelationStatus),S(o)},[a,y]),(0,o.useEffect)(()=>{(0,u.o)(M.current,v,f,30)&&!A.current&&((0,k.Gb)("interact_like_show",{rank:c,personal_relation:String(D),from_user_id:null==a?void 0:a.uid,like_cnt:l,interact_type:p}),A.current=!0)},[v,f]),(0,n.jsxs)("div",{className:C.cellContainer,ref:M,children:[(0,n.jsxs)("div",{className:C.userItem,children:[g?(0,n.jsx)(P.a,{href:(0,N.HC)(g,"enter_from=interact_cell"),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsxs)("div",{className:C.userInfo,children:[(0,n.jsx)(L.n,{srcList:(null==a?void 0:null===(t=a.avatar_thumb)||void 0===t?void 0:t.url_list)||[],className:C.userAvatar}),(0,n.jsx)("div",{className:C.userName,children:(null==a?void 0:a.remark_name)||(null==a?void 0:a.nickname)||""})]})}):(0,n.jsxs)("div",{className:C.userInfo,children:[(0,n.jsx)(L.n,{srcList:(null==a?void 0:null===(r=a.avatar_thumb)||void 0===r?void 0:r.url_list)||[],className:C.userAvatar}),(0,n.jsx)("div",{className:C.userName,children:(null==a?void 0:a.remark_name)||(null==a?void 0:a.nickname)||""})]}),(0,n.jsx)(x.Button,{size:"small",className:_()(C.button,{[C.hasFollowedBtn]:D!==m.EV.NoRelationStatus}),theme:D===m.EV.NoRelationStatus?"solid":"outline",onClick:()=>{let e=D===m.EV.NoRelationStatus?m.Ol.FOLLOW:m.Ol.UNFOLLOW;e===m.Ol.UNFOLLOW?s.J.emit(s.v.OPEN_CONFIRM_MODAL,{content:"确认取消关注?",onConfirm:()=>F(e)}):F(e)},theme:"solid",children:null===I.MN||void 0===I.MN?void 0:null===(i=I.MN[j])||void 0===i?void 0:i[D]})]}),(0,n.jsx)("div",{className:C.dividingLine})]})})),R=(0,o.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,f._)((0,c._)({width:9,height:15,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207.77a1 1 0 0 1 0 1.415L2.914 7.478l5.293 5.292a1 1 0 1 1-1.414 1.415l-6-6a1 1 0 0 1 0-1.415l6-6a1 1 0 0 1 1.414 0z",fill:"#2F3035",fillOpacity:".7"})})));var M={listDlg:"RsBK7BxD",errorDom:"GCUuMGgG",header:"l_iE3uty",back:"CQIfTWrv",backText:"m5dYUmPY",headerName:"TyC5N67Y",listBox:"XiMQNhjS",noMoreData:"SVTfywzo",nodataTxt:"ufHrCw6S"},A=(0,i.inject)("noticeStore")((0,i.observer)(e=>{var t;let{noticeStore:r={}}=e,{userListObj:i={},userListFilter:c={}}=r,f=(null==i?void 0:i.userList)||[],d=(null==f?void 0:f.length)||0,[v,h]=(0,o.useState)(null===(t=w.XV[m.I6.DIGG])||void 0===t?void 0:t[m.vq.NORMAL]),[p,b]=(0,o.useState)(0),[g,S]=(0,o.useState)(0),_=(0,o.useRef)(null),x=(0,o.useCallback)(e=>{O()(()=>{(0,u.j)(e.target||{})&&y()},300)()},[]);return(0,o.useEffect)(()=>{let{type:e=j.FJ[m.I6.DIGG],diggType:t=m.vq.NORMAL}=c;if(e===j.FJ[m.I6.DIGG]){var n;y(!0),h(null===(n=w.XV[m.I6.DIGG])||void 0===n?void 0:n[t])}return()=>{var e;return null===(e=r.clearUserList)||void 0===e?void 0:e.call(r)}},[c]),(0,o.useEffect)(()=>{if(d>0){let e=_.current;S((null==e?void 0:e.clientHeight)||0);let t=O()(()=>b((null==e?void 0:e.scrollTop)||0),200);return e&&e.addEventListener("scroll",t),()=>{e&&e.removeEventListener("scroll",t)}}return()=>{}},[d]),(0,n.jsxs)("div",{className:M.listDlg,children:[(0,n.jsxs)("div",{className:M.header,children:[(0,n.jsxs)("div",{className:M.back,onClick:()=>{null==r||r.setShowUserList(!1),s.J.emit(s.v.ENTER_NOTICELIST_FROM_OTHER_PAGE,{from:"user_page"})},children:[(0,n.jsx)(l.Z,{src:R,width:8,height:14,viewBox:"0 0 9 15"}),(0,n.jsx)("div",{className:M.backText,children:"返回"})]}),(0,n.jsx)("div",{className:M.headerName,children:"赞过的人"})]}),d?(0,n.jsxs)("div",{className:M.listBox,ref:_,onScroll:x,children:[null==f?void 0:f.map((e,t)=>(0,n.jsx)(D,{userInfo:e,userListScrollTop:p,userListViewPortHeight:g,userRank:t+1,userCount:d,interactType:v},null==e?void 0:e.uid)),(0,n.jsx)("div",{className:M.noMoreData,children:"暂时没有更多了"})]}):(0,n.jsx)(a.jj,{className:M.errorDom,titleClassName:M.nodataTxt,type:"emptyList",title:"暂无好友"})]})}))},279291:function(e,t,r){"use strict";r.d(t,{O:function(){return f}}),r(706056),r(374954),r(679308);var n=r(337793),o=r.n(n),i=r(263070),a=r(319053),l=r(696492);let s=e=>null===a.Et||void 0===a.Et?void 0:a.Et.includes(e),u=(e,t)=>(null===a.p0||void 0===a.p0?void 0:a.p0.includes(e))&&"-1"===t,c=e=>null==e?void 0:e.is_block,f=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.DL.NOTICE_LIST,r=[];return o()(e,e=>{var n,o;let{type:f}=e||{};if(!f||t===l.DL.NOTICE_PUSH&&!s(f))return;let{[null===a.ke||void 0===a.ke?void 0:a.ke[f]]:d={},aweme_id:v}=e||{},{aweme:h={}}=d,{aweme_type:p=l.Wu.GENERAL,status:m={}}=h;if(u(f,v||(null==h?void 0:h.aweme_id)))return;let b=!1;switch(f){case l.I6.COMMENT:let{comment_type:y=l.W1.NORMAL,comment:g={}}=d,{user:O={}}=g;(null===a.hz||void 0===a.hz?void 0:a.hz.includes(y))&&(null===a.eY||void 0===a.eY?void 0:a.eY.includes(p))&&!c(O)&&(r.push(e),b=!0);break;case l.I6.COMMENT_DANMAKU:let{from_user:w=[]}=d,j=null==w?void 0:w[0];(null===a.eY||void 0===a.eY?void 0:a.eY.includes(p))&&!c(j)&&(r.push(e),b=!0);break;case l.I6.DIGG:let{digg_type:S=l.vq.NORMAL,from_user:_=[]}=d,x=(null==_?void 0:_[0])||{};(null===(n=(0,a.Ym))||void 0===n?void 0:n.includes(S))&&(null===a.eY||void 0===a.eY?void 0:a.eY.includes(p))&&!c(x)&&(r.push(e),b=!0);break;case l.I6.AT:let{sub_type:T=l.vw.NORMAL,user_info:N={}}=d;(null===a.v4||void 0===a.v4?void 0:a.v4.includes(T))&&(null===a.eY||void 0===a.eY?void 0:a.eY.includes(p))&&!c(N)&&(r.push(e),b=!0);break;case l.I6.FOLLOW:case l.I6.FOLLOW_REQUEST:let{from_user:E={}}=d;!c(E)&&(r.push(e),b=!0);break;case l.I6.RECOMMEND:case l.I6.FOLLOW_RECOMMEND:case l.I6.FOLLOW_DIGG_RECOMMEND:case l.I6.FOLLOWER_DIGG_RECOMMEND:let{from_user:C={}}=d;(null===a.eY||void 0===a.eY?void 0:a.eY.includes(p))&&!c(C)&&(r.push(e),b=!0)}!b&&i.Z.log("消息过滤:",null!==(o=null===a.ke||void 0===a.ke?void 0:a.ke[f])&&void 0!==o?o:"unknown",e)}),r}},378104:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(696492);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.yK.USE_COUNT,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e===n.yK.USE_COUNT?"group":"g",o=e===n.yK.USE_COUNT?"count":"c",i=e===n.yK.USE_COUNT?"latest_time":"?",a={};return null==t||t.forEach(e=>{let{[r]:t,[o]:n,[i]:l}=e||{};a[t]={unreadCount:n,latestTime:l}}),a}},849023:function(e,t,r){"use strict";r.r(t),r.d(t,{useLocalStore:function(){return E},observerBatching:function(){return s},Provider:function(){return eo},observer:function(){return et},isUsingStaticRendering:function(){return h},useAsObservableSource:function(){return N},useStaticRendering:function(){return P},enableStaticRendering:function(){return v},useLocalObservable:function(){return x},PropTypes:function(){return eh},inject:function(){return ea},useObserver:function(){return C},disposeOnUnmount:function(){return function e(t,r){if(Array.isArray(r))return r.map(function(r){return e(t,r)});var n=Object.getPrototypeOf(t).constructor,o=Object.getPrototypeOf(t.constructor),a=Object.getPrototypeOf(Object.getPrototypeOf(t));if(!(n===i.Component||n===i.PureComponent||o===i.Component||o===i.PureComponent||a===i.Component||a===i.PureComponent))throw Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if("string"!=typeof r&&"function"!=typeof r&&!Array.isArray(r))throw Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var l="string"==typeof r,s=!!t[el]||!!t[es];if((l?t[el]||(t[el]=[]):t[es]||(t[es]=[])).push(r),!s&&z(t,"componentWillUnmount",eu),"string"!=typeof r)return r}},MobXProviderContext:function(){return en},Observer:function(){return _}}),r("313036"),r("374954"),r("76375"),r("932651"),r("374285"),r("566071"),r("759943"),r("414931");var n,o=r("731343"),i=r("101199");if(!i.useState)throw Error("mobx-react-lite requires React with Hooks support");if(!o.makeObservable)throw Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var a=r("890710");function l(e){e()}function s(e){!e&&(e=l),(0,o.configure)({reactionScheduler:e})}function u(e){return(0,o.getDependencyTree)(e)}r("706056"),r("490629");var c=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var r=Date.now();t.registrations.forEach(function(n,o){r-n.registeredAt>=e&&(t.finalize(n.value),t.registrations.delete(o))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),f=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:c)(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),d=!1;function v(e){d=e}function h(){return d}var p=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function m(e){return"observer".concat(e)}var b=function(){};function y(){return new b}function g(e,t){if(void 0===t&&(t="observed"),d)return e();var r,n,a=p(i.useState(y),1)[0],l=p(i.useState(),2)[1],s=function(){return l([])},c=i.useRef(null);!c.current&&(c.current={reaction:null,mounted:!1,changedBeforeMount:!1});var v=c.current;if(!v.reaction&&(v.reaction=new o.Reaction(m(t),function(){v.mounted?s():v.changedBeforeMount=!0}),f.register(a,v,v)),i.useDebugValue(v.reaction,u),i.useEffect(function(){return f.unregister(v),v.mounted=!0,v.reaction?v.changedBeforeMount&&(v.changedBeforeMount=!1,s()):(v.reaction=new o.Reaction(m(t),function(){s()}),s()),function(){v.reaction.dispose(),v.reaction=null,v.mounted=!1,v.changedBeforeMount=!1}},[]),v.reaction.track(function(){try{r=e()}catch(e){n=e}}),n)throw n;return r}var O="function"==typeof Symbol&&Symbol.for,w=O?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)(function(e){return null}).$$typeof,j=O?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)(function(e){return null}).$$typeof,S={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function _(e){var t=e.children,r=e.render,n=t||r;return"function"!=typeof n?null:g(n)}function x(e,t){return(0,i.useState)(function(){return(0,o.observable)(e(),t,{autoBind:!0})})[0]}_.displayName="Observer";var T=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function N(e){var t=T((0,i.useState)(function(){return(0,o.observable)(e,{},{deep:!1})}),1)[0];return(0,o.runInAction)(function(){Object.assign(t,e)}),t}function E(e,t){var r=t&&N(t);return(0,i.useState)(function(){return(0,o.observable)(e(r),void 0,{autoBind:!0})})[0]}function C(e,t){return void 0===t&&(t="observed"),g(e,t)}function P(e){d=e}s(a.unstable_batchedUpdates),n=f.finalizeAllImmediately;var L=0,I={};function k(e){return!I[e]&&(I[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+L+")";return L++,t}(e)),I[e]}function D(e,t){if(R(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o2?o-2:0),a=2;al.methods.indexOf(r)&&l.methods.push(r);var s=Object.getOwnPropertyDescriptor(e,t);if(!s||!s[U]){var u=e[t],c=function e(t,r,n,o,i){var a,l=W(i,o);return(a={})[U]=!0,a.get=function(){return l},a.set=function(i){if(this===t)l=W(i,o);else{var a=e(this,r,n,o,i);Object.defineProperty(this,r,a)}},a.configurable=!0,a.enumerable=n,a}(e,t,s?s.enumerable:void 0,l,u);Object.defineProperty(e,t,c)}}var B=o.$mobx||"$mobx",V=k("isMobXReactObserver"),q=k("isUnmounted"),G=k("skipRender"),$=k("isForcingUpdate");function Y(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function H(e){var t=this;if(!0===d)return e.call(this);A(this,G,!1),A(this,$,!1);var r=Y(this),n=e.bind(this),a=!1,l=new o.Reaction(r+".render()",function(){if(!a&&(a=!0,!0!==t[q])){var e=!0;try{A(t,$,!0),!t[G]&&i.Component.prototype.forceUpdate.call(t),e=!1}finally{A(t,$,!1),e&&l.dispose()}}});function s(){a=!1;var e=void 0,t=void 0;if(l.track(function(){try{t=(0,o._allowStateChanges)(!1,n)}catch(t){e=t}}),e)throw e;return t}return l.reactComponent=this,s[B]=l,this.render=s,s.call(this)}function K(e,t){return this.state!==t||!D(this.props,e)}function J(e,t){var r=k("reactProp_"+t+"_valueHolder"),n=k("reactProp_"+t+"_atomHolder");function i(){return!this[n]&&A(this,n,(0,o.createAtom)("reactive "+t)),this[n]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return o._allowStateReadsStart&&o._allowStateReadsEnd&&(e=(0,o._allowStateReadsStart)(!0)),i.call(this).reportObserved(),o._allowStateReadsStart&&o._allowStateReadsEnd&&(0,o._allowStateReadsEnd)(e),this[r]},set:function(e){this[$]||D(this[r],e)?A(this,r,e):(A(this,r,e),A(this,G,!0),i.call(this).reportChanged(),A(this,G,!1))}})}var X="function"==typeof Symbol&&Symbol.for,Q=X?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)(function(e){return null}).$$typeof,ee=X?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)(function(e){return null}).$$typeof;function et(e){if(e.isMobxInjector,ee&&e.$$typeof===ee)throw Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(Q&&e.$$typeof===Q){var t=e.render;if("function"!=typeof t)throw Error("render property of ForwardRef was not a function");return(0,i.forwardRef)(function(){var e=arguments;return(0,i.createElement)(_,null,function(){return t.apply(void 0,e)})})}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(i.Component,e)?function(e){var t=e.prototype;if(e[V]?Y(t):e[V]=!0,t.componentWillReact)throw Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==i.PureComponent){if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==K)throw Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=K}J(t,"props"),J(t,"state");var r=t.render;if("function"!=typeof r)throw Error("[mobx-react] class component ("+Y(t)+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.");return t.render=function(){return H.call(this,r)},z(t,"componentWillUnmount",function(){var e;!0!==d&&(null==(e=this.render[B])||e.dispose(),this[q]=!0,!this.render[B]&&Y(this))}),e}(e):function(e,t){if(j&&e.$$typeof===j)throw Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(d)return e;var r,n=(r=void 0,void 0!==r&&r),o=e,a=e.displayName||e.name;if(w&&e.$$typeof===w&&(n=!0,"function"!=typeof(o=e.render)))throw Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var l=function(e,t){return g(function(){return o(e,t)},a)};return""!==a&&(l.displayName=a),e.contextTypes&&(l.contextTypes=e.contextTypes),n&&(l=(0,i.forwardRef)(l)),function(e,t){Object.keys(e).forEach(function(r){!S[r]&&Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}(e,l=(0,i.memo)(l)),l}(e)}function er(){return(er=Object.assign||function(e){for(var t=1;t=0)&&(o[r]=e[r]);return o}(e,["children"]),n=i.useContext(en),o=i.useRef(er({},n,r)).current;return i.createElement(en.Provider,{value:o},t)}function ei(e,t,r,n){var o=i.forwardRef(function(r,n){var o=er({},r);return Object.assign(o,e(i.useContext(en)||{},o)||{}),n&&(o.ref=n),i.createElement(t,o)});return n&&(o=et(o)),o.isMobxInjector=!0,!function(e,t){var r=Object.getOwnPropertyNames(Object.getPrototypeOf(e));Object.getOwnPropertyNames(e).forEach(function(n){!M[n]&&-1===r.indexOf(n)&&Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}(t,o),o.wrappedComponent=t,o.displayName=function(e,t){var r,n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r=t?"inject-with-"+t+"("+n+")":"inject("+n+")"}(t,r),o}eo.displayName="MobXProvider";function ea(){for(var e=arguments.length,t=Array(e),r=0;r6?s-6:0),c=6;c>",l=l||n,null!=r[n])return e.apply(void 0,[r,n,i,a,l].concat(u));if(t){var o=null===r[n]?"null":"undefined";return Error("The "+a+" `"+l+"` is marked as required in `"+i+"`, but its value is `"+o+"`.")}return null})}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function ef(e){var t,r,n=typeof e;if(Array.isArray(e))return"array";if(e instanceof RegExp)return"object";return(t=n,r=e,"symbol"===t||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol)?"symbol":n}function ed(e,t){return ec(function(r,n,i,a,l){return(0,o.untracked)(function(){if(e&&ef(r[n])===t.toLowerCase())return null;switch(t){case"Array":a=o.isObservableArray;break;case"Object":a=o.isObservableObject;break;case"Map":a=o.isObservableMap;break;default:throw Error("Unexpected mobxType: "+t)}var a,s=r[n];if(!a(s)){var u=function(e){var t=ef(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(s),c=e?" or javascript `"+t.toLowerCase()+"`":"";return Error("Invalid prop `"+l+"` of type `"+u+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+c+".")}return null})})}function ev(e,t){return ec(function(r,n,i,a,l){for(var s=arguments.length,u=Array(s>5?s-5:0),c=5;c