(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[0],{1317:function(e,t,n){var a;n(15), /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t{e.style[t]=s[t]}),document.body.appendChild(e)}copyStyleToCanvas(){const e=window.getComputedStyle(this.target);o.forEach(t=>{this.canvas.style[t]=e[t]})}reflow(e){const t=e.basedOn||(/^[\x00-\x7F]+$/.test(e.text)?"words":"letters");switch(t){case"words":this.units=e.text.split(/\b|(?=\W)/);break;case"letters":this.units=Array.from(e.text);break;default:throw new Error("Unsupported options basedOn: "+t)}this.maxLine=+e.maxLine||1,this.canvas.innerHTML=this.units.map(e=>`${e}`).join("");const n=this.putEllipsis(this.calcIndexes()),a=n>-1,r={clamped:a,text:a?this.units.slice(0,n).join(""):e.text};this.setState(r,e.onReflow.bind(this,r))}calcIndexes(){const e=[0];let t=this.canvas.firstElementChild;if(!t)return e;let n=0,a=1,r=t.offsetTop;for(;(t=t.nextElementSibling)&&(t.offsetTop>r&&(a++,e.push(n),r=t.offsetTop),n++,!(a>this.maxLine)););return e}putEllipsis(e){if(e.length<=this.maxLine)return-1;const t=e[this.maxLine],n=this.units.slice(0,t),a=this.canvas.children[t].offsetTop;this.canvas.innerHTML=n.map((e,t)=>`${e}`).join("")+`${this.props.ellipsis}`;const r=this.canvas.lastElementChild;let i=l(r,2);for(;i&&(r.offsetTop>a||r.offsetHeight>i.offsetHeight||r.offsetTop>i.offsetTop);)this.canvas.removeChild(i),i=l(r,2),n.pop();return n.length}isClamped(){return this.clamped}render(){const{text:e,clamped:t}=this.state,n=this.props,{component:a,ellipsis:s,trimRight:o,className:l}=n,c=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a=0||(r[n]=e[n]);return r}(n,["component","ellipsis","trimRight","className"]);return r.a.createElement(a,i({className:`LinesEllipsis ${t?"LinesEllipsis--clamped":""} ${l}`,ref:e=>this.target=e},function(e,t){if(!e||"object"!=typeof e)return e;const n={};return Object.keys(e).forEach(a=>{t.indexOf(a)>-1||(n[a]=e[a])}),n}(c,p)),t&&o?e.replace(/[\s\uFEFF\xA0]+$/,""):e,r.a.createElement("wbr",null),t&&r.a.createElement("span",{className:"LinesEllipsis-ellipsis"},s))}}u.defaultProps=c,t.a=u},1324:function(e,t,n){(function(t){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}n(7),n(6),n(12),n(15),n(68);var r=a(n(0));function i(){return(i=Object.assign||function(e){for(var t=1;t=t||n<0||f&&e-p>=i}function y(){var e=m();if(v(e))return j(e);l=setTimeout(y,function(e){var n=t-(e-c);return f?F(n,i-(e-p)):n}(e))}function j(e){return l=void 0,d&&a?h(e):(a=r=void 0,s)}function O(){var e=m(),n=v(e);if(a=arguments,r=this,c=e,n){if(void 0===l)return b(c);if(f)return clearTimeout(l),l=setTimeout(y,t),h(c)}return void 0===l&&(l=setTimeout(y,t)),s}return t=E(t)||0,o(n)&&(u=!!n.leading,i=(f="maxWait"in n)?A(E(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),O.cancel=function(){void 0!==l&&clearTimeout(l),p=0,a=c=r=l=void 0},O.flush=function(){return void 0===l?s:j(m())},O},H="undefined"!=typeof window;e.exports=function(e,t){return void 0===e&&(e=150),function(n){var a=function(a){var o,l;function c(n){var r;return(r=a.call(this,n)||this).state={winWidth:H?window.innerWidth:0},r.onResize=I(r.onResize.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),e,t),r}l=a,(o=c).prototype=Object.create(l.prototype),o.prototype.constructor=o,s(o,l);var p=c.prototype;return p.componentDidMount=function(){window.addEventListener("resize",this.onResize)},p.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.onResize.cancel()},p.onResize=function(){this.setState({winWidth:window.innerWidth})},p.render=function(){var e=this.props,t=e.innerRef,a=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a=0||(r[n]=e[n]);return r}(e,["innerRef"]);return r.default.createElement(n,i({ref:t},a,this.state))},c}(r.default.Component);return a.displayName="Responsive("+(n.displayName||n.name)+")",a.defaultProps={innerRef:function(){}},a}}}).call(this,n(65))},1327:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));n(7);var a,r=n(0),i=n.n(r),s=n(985);n(8),n(4),n(5),n(58),n(33),n(15),n(80),n(6),n(134),n(12),n(22);!function(e){e.START="jump_start",e.SCHEME_START="jump_schema_start",e.CHECK="jump_check",e.FAIL="jump_fail",e.APP_LINK="jump_app_link"}(a||(a={}));var o=n(372),l=n(984),c=n(986),p=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{l(a.next(e))}catch(e){i(e)}}function o(e){try{l(a.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((a=a.apply(e,t||[])).next())}))};let u;const m=["onelink.me","/download-link/ol"],f=({url:e,autofillSchemeUrl:t,autoFillParamList:n=o.b,needAppendSchemeUrl:a=!1})=>{if(!t)return e;try{const r=new URL(e),i=r.pathname.includes("/download-link/ol");let s=!1;for(const e of n){r.searchParams.has(e)&&(r.searchParams.set(e,""),s=!0)}return a&&s&&i&&r.searchParams.set("scheme_url",t),r.toString()}catch(e){}return e};function d({processedSchemes:e,processedFallbackURL:t,region:n,useNewRedirectPath:a,launchType:r="tiktok_app",useShortDl:i=!1,autoFillWhiteList:s=o.b}){var l;const c=e[0],p=`${(n?Object(o.t)(n):e.some(e=>e.startsWith("snssdk1180")))?o.j:o.h}/${a?o.i.now_app:null!==(l=o.i[r])&&void 0!==l?l:o.i.tiktok_app}`,u=i?"short_dl":"dl",m=i?f({url:t,autofillSchemeUrl:c,autoFillParamList:s}):t;return`${p}?redirect_url=${encodeURIComponent(c)}&${u}=${encodeURIComponent(m)}&decode_once=1`}function h(e,t){t?t(e):function(e){new URL(e).protocol.includes("javascript")?console.error("invalid link found in _safeJump"):location.href=e}(e)}function b(){const e=new URLSearchParams(window.location.search).get("ug_source");if(e)return{ug_source:e};const{userAgent:t}=navigator;for(const[e,n]of Object.entries(o.g))if(n.test(t))return{ug_source:e};return{}}function v({strategy:e,buildInSchemeParams:t={},buildInFallbackURLParams:n={},customs:a={}}){const{links:r,providerContext:i}=e;let{schemeParams:s={},fallbackURLParams:l={},experimentalFallbackTemplateURLParams:c={}}=e;const{disableAfdp:p=!1,addParamsUrl:u=!1,removeParamsUrlForAfdp:m=!1}=a;let{schemeParams:f={},fallbackURLParams:d={}}=i,{experimentalFallbackTemplateURLParams:h={}}=i;const{url_schemes:b,url_fallback:v}=r,y=null!=b?b:[];if(!y[0])throw new Error("Schemes empty");const j=Object(o.m)({links:r}),{appType:O}=j;s=Object(o.w)(s,j),l=Object(o.w)(l,j),c=Object(o.w)(c,j),f=Object(o.w)(f,j),d=Object(o.w)(d,j),h=Object(o.w)(h,j);const w=(null!=b?b:[]).map(e=>Object(o.u)(e,Object.assign(Object.assign(Object.assign(Object.assign({needlaunchlog:1,ug_medium:"fe_component"},i.uniqueId?{wid:i.uniqueId}:{}),t),f),s)));let g=null!=v?v:"",k=w[0];const L=new URLSearchParams(y[0]).get("params_url");if(p?g=g.replace("&af_dp={{schema}}",""):m&&(k=Object(o.v)(k,"params_url")),u&&L){const e=new URL(L),t=e.origin+e.pathname;g=`${g}¶ms_url=${encodeURIComponent(t)}`}g=g.replace("{{schema}}",encodeURIComponent(k)),c=Object(o.l)(Object.entries(c).map(([e,t])=>[e,Object(o.s)(t)?t.replace("{{schema}}",encodeURIComponent(w[0])):t])),h&&(h=Object(o.l)(Object.entries(h).map(([e,t])=>[e,Object(o.s)(t)?t.replace("{{schema}}",encodeURIComponent(w[0])):t])));const x=Object(o.u)(g,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pid:"website"},i.uniqueId?{wid:i.uniqueId}:{}),n),h),c),d),l));return{appType:O,parsedExtra:j,processedSchemes:w,processedFallbackURL:x}}function y(e){const{experimentalUseShortDl:t=!1,autoFillWhiteList:n}=e.providerContext;try{const{processedSchemes:a,processedFallbackURL:r}=v({strategy:e});return d({processedSchemes:a,processedFallbackURL:r,launchType:e.launchType,useShortDl:t,autoFillWhiteList:n})}catch(e){return console.warn(e),""}}var j=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r{const i=Object(r.useContext)(s.a),{impressionReported:l,enableImpression:c=!1,onImpression:p,enableImpAfdp:u,enableImpParamsUrl:f}=i,d=j(i,["impressionReported","enableImpression","onImpression","enableImpAfdp","enableImpParamsUrl"]),h=Object(r.useMemo)(()=>e?v({strategy:{links:e,schemeParams:{},fallbackURLParams:t,experimentalFallbackTemplateURLParams:n,providerContext:d},customs:{disableAfdp:!u,removeParamsUrlForAfdp:u,addParamsUrl:f}}).processedFallbackURL:"",[e,t,n,d]);Object(r.useEffect)(()=>{if(c&&h&&!1===(null==l?void 0:l.current)){const[e,t]=((e,t)=>{const n=m.some(t=>-1!==e.indexOf(t))&&["tiktok_app","tiktok_lite_app","tiktok_pro"].includes(t);if(!n)return[void 0,!1];const a=Object(o.p)(e);return[a,n&&Boolean(a)]})(h,a);if(t){l.current=!0;const t=`${h}&s2sAppType=${e}`;null==p||p(t),O(t)}}},[h,a,c])};function g(e){const{experimentalUseShortDl:t=!1,autoFillWhiteList:n,enableApiOptimization:a=!1,installedApps:r,experimentalEnableCoinApiOptimization:i=!0,experimentalUseAppLink:s,experimentalUseBetterAppLink:p,disableAfdp:u}=e.providerContext;try{const m=null!=u?u:function(){if(Object(o.r)())return!1;const e=Object(o.n)(),t=Object(l.a)();return e&&"facebook"===t}(),{processedSchemes:f,processedFallbackURL:h}=v({strategy:e,customs:{disableAfdp:m}});if(s){const s=a&&Object(c.a)({installedApps:r,launchType:e.launchType,experimentalEnableCoinApiOptimization:i});return p&&s?h:d({processedSchemes:f,processedFallbackURL:h,launchType:e.launchType,useShortDl:t,autoFillWhiteList:n})}return h}catch(e){return console.warn(e),""}}var k=n(1317),L=n.n(k),x=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r{var{customStyle:t={},customClassNames:n=[],jumpStartHandler:m,jumpFailHandler:j,jumpCheckHandler:O,jumpEventHandler:k,jumpHook:T,onClick:R,target:U,children:P,schemeParams:S={},fallbackURLParams:_={},experimentalFallbackTemplateURLParams:C={},type:E="div",withDefaultHref:A=!1}=e,F=x(e,["customStyle","customClassNames","jumpStartHandler","jumpFailHandler","jumpCheckHandler","jumpEventHandler","jumpHook","onClick","target","children","schemeParams","fallbackURLParams","experimentalFallbackTemplateURLParams","type","withDefaultHref"]);const I=Object(r.useContext)(s.a),{strategy:H}=I,N=x(I,["strategy"]),D=null!=T?T:N.jumpHook,$=Object(r.useMemo)(()=>{if(!(null==H?void 0:H.wrappers))return;return H.wrappers.find(e=>e.name===U)},[H,U]),W=Object(r.useMemo)(()=>{if($&&$.wrapper_url){return("enhance"===A?g:y)({launchType:$.launch_type,links:$.wrapper_url,schemeParams:S,fallbackURLParams:_,experimentalFallbackTemplateURLParams:C,providerContext:N})}return""},[$,S,_,C,N]),z=null==H?void 0:H.page_context;w({links:null==$?void 0:$.wrapper_url,fallbackURLParams:_,experimentalFallbackTemplateURLParams:C,launchType:null==$?void 0:$.launch_type});const M=Object(r.useCallback)(e=>{var t;null==R||R(e),A&&e.preventDefault(),(null==$?void 0:$.wrapper_url)&&function(e){var t;p(this,void 0,void 0,(function*(){const{links:n,launchType:r="tiktok_app",jumpLinkType:i=o.c.DEFAULT,jumpStartHandler:s,jumpFailHandler:p,jumpCheckHandler:m,jumpEventHandler:y,jumpHook:j,strategyContext:O,providerContext:w}=e,{schemeParams:g={},fallbackURLParams:k={}}=e,{checkOpenTime:L,useNewRedirectPath:x,experimentalSkipSchemes:T=!1,installedApps:R,enableApiOptimization:U=!1,experimentalEnableCoinApiOptimization:P=!0,experimentalUseAppLink:S,experimentalUseBetterAppLink:_,disableAfdp:C,experimentalUseShortDl:E=!1,autoFillWhiteList:A}=w;u=Date.now();const F=Object(o.n)(),I=Object(l.a)(),H=null!=C?C:F&&"facebook"===I;try{const{parsedExtra:e,processedSchemes:l,processedFallbackURL:C}=v({strategy:{links:n,providerContext:w,schemeParams:g,fallbackURLParams:k},buildInSchemeParams:Object.assign({jump_time:u},b()),buildInFallbackURLParams:Object.assign({jump_time:u},b()),customs:{disableAfdp:H}}),I=Object.assign(Object.assign({},e),{jumpTime:u,getInstalledAppResult:null!==(t=null==R?void 0:R.length)&&void 0!==t?t:-1,getInstalledAppData:R,jumpTriggerType:"manual"});null==s||s(Object.assign({jumpTime:u},e)),null==y||y(Object.assign({eventType:a.START},I));const N=U&&Object(c.a)({installedApps:R,launchType:r,experimentalEnableCoinApiOptimization:P}),D=S&&N&&_;if(Object(o.q)()){const[e,t]=l[0].split("://");return void h(`intent://${t}#Intent;scheme=${e};end`,j)}if(!F||i===o.c.APP_LINK||S&&!D||F&&/FBAN|FBAV/gi.test(navigator.userAgent)&&!T){const e=d({processedSchemes:l,processedFallbackURL:C,useNewRedirectPath:x,region:null==O?void 0:O.region,launchType:r,useShortDl:E,autoFillWhiteList:A});return null==y||y(Object.assign({eventType:a.APP_LINK,appLinkUrl:e},I)),void h(e,j)}if(!(T||N))for(const[t,n]of l.entries()){const r=Date.now();let i;if(null==y||y(Object.assign({eventType:a.SCHEME_START,schemeIndex:t,scheme:n},I)),h(n,j),"function"==typeof L)try{i=L(n,t)}catch(e){}else i=L;if(0===i)continue;const s=yield Object(o.k)(i),l=Date.now()-r;if(null==m||m(Object.assign({jumpTime:u,linkType:Object(o.o)(n),checkTime:l,checkStatus:s},e)),null==y||y(Object.assign({eventType:a.CHECK,schemeIndex:t,scheme:n,checkTime:l,checkStatus:s},I)),s)return}let $=C;if(E){const{pathname:e}=new URL($);e.includes("/download-link/ol")&&($=f({url:$,autofillSchemeUrl:l[0],autoFillParamList:A,needAppendSchemeUrl:!0}))}null==p||p(Object.assign({jumpTime:u,fallbackUrl:$},e)),null==y||y(Object.assign({eventType:a.FAIL,fallbackUrl:$},I)),h($,j)}catch(e){return void console.warn(e)}}))}({target:null!==(t=$.name)&&void 0!==t?t:"",jumpLinkType:$.jump_link_type,launchType:$.launch_type,links:$.wrapper_url,jumpStartHandler:m,jumpFailHandler:j,jumpCheckHandler:O,jumpEventHandler:k,jumpHook:D,schemeParams:S,fallbackURLParams:_,experimentalFallbackTemplateURLParams:C,providerContext:N,strategyContext:z})},[m,j,O,k,D,R,$,S,_,C,N,z,A]);return A?i.a.createElement("a",Object.assign({style:t,className:L()("matrix-smart-wrapper","matrix-smart-wrapper-a",n),onClick:M,href:W},F),P):i.a.createElement(E,Object.assign({style:t,className:L()("matrix-smart-wrapper",n),onClick:M},F),P)}},1374:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);function i(e){var t=e.width,n=void 0===t?"1em":t,a=e.height,i=void 0===a?"1em":a,s=(e.fill,e.style),o=e.className;return r.a.createElement("svg",{className:o,style:s,width:n,height:i,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("circle",{cx:"24",cy:"24",r:"24",fill:"#20D5EC"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.1213 15.8787C38.2929 17.0503 38.2929 18.9497 37.1213 20.1213L23.6213 33.6213C22.4497 34.7929 20.5503 34.7929 19.3787 33.6213L10.8787 25.1213C9.70711 23.9497 9.70711 22.0503 10.8787 20.8787C12.0503 19.7071 13.9497 19.7071 15.1213 20.8787L21.5 27.2574L32.8787 15.8787C34.0503 14.7071 35.9497 14.7071 37.1213 15.8787Z",fill:"white"}))}}}]);