1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4096],{73814:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(67294),r=n(6431);function o(e){let t=(0,i.useRef)(null),n=(0,i.useRef)(null);return n.current&&n.current.update(e),(0,i.useEffect)(()=>(n.current=new r.cW({...e,ref:t}),()=>{n.current=null}),[]),i.createElement("div",{ref:t})}},65167:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/favorite/portfolios",function(){return n(36475)}])},19406:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(54163),r=n(87058),o=n(70411);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return Math.round((n.getTime()-(0,i.Z)(n)-(a.getTime()-(0,i.Z)(a)))/864e5)}},50070:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(23050),r=n(19406),o=n(70411);function a(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),s=(0,i.Z)(t),l=a(n,s),c=Math.abs((0,r.Z)(n,s));n.setDate(n.getDate()-l*c);var u=Number(a(n,s)===-l),d=l*(c-u);return 0===d?0:d}},87058:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(23050),r=n(70411);function o(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}},36475:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return eo},default:function(){return ea}});var i,r=n(85893),o=n(28677),a=n(79910),s=n(67294),l=n(14009),c=n(30681),u=n(11787),d=n(76846),p=n(42377),f=n(94746),g=n(73447),h=n(44432),m=n(73680),x=n(54335);let v=x.default.div.withConfig({componentId:"sc-e7899044-0"})(["position:relative;width:100%;display:flex;flex-direction:column;justify-content:space-between;border-radius:24px;cursor:pointer;background-image:url(/account/portfolio-card-bg.png);background-position:center;background-size:cover;background-repeat:no-repeat;@media (max-width:743px){border-radius:20px;}"]),b=x.default.div.withConfig({componentId:"sc-e7899044-1"})(["height:100%;position:relative;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px;@media (max-width:743px){padding:16px;}"]),j=x.default.div.withConfig({componentId:"sc-e7899044-2"})(["display:flex;align-items:flex-start;gap:16px;flex:1;min-width:0;"]),w=x.default.div.withConfig({componentId:"sc-e7899044-3"})(["display:flex;flex-direction:column;gap:6px;flex:1;min-width:0;"]),y=x.default.button.withConfig({componentId:"sc-e7899044-4"})(["width:36px;height:36px;border-radius:60px;background:rgba(17,17,17,0.6);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;padding:4px;transition:background 0.2s;svg path{fill:",";stroke:",";}&:hover{background:rgba(17,17,17,0.8);}"],e=>{let{theme:t,$isActive:n}=e;return n?t.icons.warring:"transparent"},e=>{let{theme:t,$isActive:n}=e;return n&&t.icons.warring}),O=x.default.div.withConfig({componentId:"sc-e7899044-5"})(["display:flex;flex-direction:column;gap:20px;background:",";padding:20px;border-radius:20px;@media (max-width:743px){padding:16px;border-radius:16px;gap:16px;}"],e=>{let{theme:t}=e;return t.interactiveControls.secondary}),k=x.default.div.withConfig({componentId:"sc-e7899044-6"})(["display:flex;align-items:center;gap:16px;"]),S=x.default.div.withConfig({componentId:"sc-e7899044-7"})(["display:flex;align-items:center;"]),C=x.default.div.withConfig({componentId:"sc-e7899044-8"})(["margin-left:","px;flex-shrink:0;& > div{border:1.2px solid ",";}"],e=>{let{$marginLeft:t=0}=e;return t},e=>{let{theme:t}=e;return t.background.secondary});var M=n(31337),E=n(76300),T=n(12382);let _=x.default.div.withConfig({componentId:"sc-33d000ec-0"})(["display:flex;align-items:center;justify-content:space-between;gap:16px;"]),I=x.default.div.withConfig({componentId:"sc-33d000ec-1"})(["display:flex;flex-direction:column;gap:12px;flex:1;min-width:0;"]),L=x.default.div.withConfig({componentId:"sc-33d000ec-2"})(["display:flex;align-items:center;gap:8px;flex-wrap:wrap;"]),P=x.default.span.withConfig({componentId:"sc-33d000ec-3"})(["padding:3px 8px;border-radius:8px;background:",";
1span{display:block;}"],e=>{let{$isPositive:t,theme:n}=e;return t?n.interactiveButtons.successBackground:n.interactiveButtons.criticalBackground}),N=x.default.div.withConfig({componentId:"sc-33d000ec-4"})(["width:4px;height:4px;border-radius:50%;background:",";flex-shrink:0;"],e=>{let{$isPositive:t,theme:n}=e;return t?n.text.positive:n.text.negative}),U=(0,s.memo)(e=>{let{portfolio:t,keyPortfolio:n}=e,{wallet:i,saved_last:o}=t||{};return t?(0,r.jsxs)(_,{children:[(0,r.jsx)(I,{children:(0,r.jsx)(E.ew,{quotes:[n],initValues:{[n]:o||[]},children:e=>{var t;let{total:o,percents:a}=(0,f.m_)(n,e),{total:s}=(0,f.M8)(n,e),l=a>=0,c=null==e?void 0:null===(t=e[n])||void 0===t?void 0:t[1],u="number"==typeof c?c:Number(null==s?void 0:s.replace(/\s/g,"").replace(",","."))||0,d="".concat((0,T.Hd)(u,T.lB.round_number)," ").concat((0,T.jK)(i));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.Typography,{variant:[{resolution:null,variant:"header4-Bold"},{resolution:743,variant:"header5-Bold"}],colorName:"primary",children:[o,"\xa0",(0,T.jK)(i)]}),(0,r.jsxs)(L,{children:[(0,r.jsx)(P,{$isPositive:l,children:(0,r.jsxs)(p.Typography,{variant:[{resolution:null,variant:"description-Medium"},{resolution:743,variant:"caption-Medium"}],colorName:l?"positive":"negative",tag:"span",children:[l?"+":"",d]})}),(0,r.jsx)(N,{$isPositive:l}),(0,r.jsx)(P,{$isPositive:l,children:(0,r.jsxs)(p.Typography,{variant:[{resolution:null,variant:"description-Medium"},{resolution:743,variant:"caption-Medium"}],colorName:l?"positive":"negative",tag:"span",children:[l?"+":"",(0,m.j)(a,!0,0),"%"]})})]})]})}})}),(0,r.jsx)(M.k,{portfolio:t,isActivePortfolio:!1,style:{width:"78px",height:"40px"}})]}):null});var z=["title","titleId"];function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var R=function(e){var t=e.title,n=e.titleId,r=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,z);return s.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",fill:"none","aria-labelledby":n},r),t?s.createElement("title",{id:n},t):null,i||(i=s.createElement("path",{d:"M6.7 5.465a.316.316 0 01.6 0l.564 1.695a2.529 2.529 0 001.6 1.6l1.695.564a.316.316 0 010 .6l-1.695.564a2.528 2.528 0 00-1.6 1.6L7.3 13.784a.316.316 0 01-.6 0l-.565-1.695a2.529 2.529 0 00-1.6-1.6l-1.694-.564a.316.316 0 010-.6l1.695-.565a2.529 2.529 0 001.6-1.6L6.7 5.466zM3.32 1.003a.19.19 0 01.36 0l.339 1.017c.151.453.506.808.96.96l1.016.338a.19.19 0 010 .36l-1.017.34a1.514 1.514 0 00-.96.96L3.68 5.993a.19.19 0 01-.36 0l-.34-1.017a1.514 1.514 0 00-.959-.96L1.004 3.68a.19.19 0 010-.36l1.017-.34a1.514 1.514 0 00.96-.96l.338-1.016zM9.504.085a.127.127 0 01.24 0l.225.678c.101.302.338.54.64.64l.678.226a.127.127 0 010 .24l-.677.225a1.015 1.015 0 00-.64.64l-.226.678a.127.127 0 01-.24 0l-.226-.677a1.015 1.015 0 00-.64-.64l-.677-.226a.127.127 0 010-.24l.677-.226c.303-.1.54-.338.641-.64l.225-.678z",fill:"#fff"})))};let Z=x.default.div.withConfig({componentId:"sc-70493608-0"})(["width:fit-content;display:flex;align-items:center;gap:4px;padding:2px 6px 3px 6px;border-radius:6px;background:linear-gradient(90deg,#f63b56 0%,#7815f9 100%);"]),B=x.default.div.withConfig({componentId:"sc-70493608-1"})(["display:flex;width:fit-content;align-items:center;padding:2px 6px;border-radius:6px;background:",";"],e=>e.theme.background.fieldSecondary),q=e=>{let{type:t}=e,{t:n}=(0,o.$G)("favorites");return"club_analytic"===t?(0,r.jsxs)(Z,{children:[(0,r.jsx)(R,{}),(0,r.jsx)(p.Typography,{variant:"caption2-Medium",colorName:"contrastThemed",children:n("portfolios.badgeClubAnalyst")})]}):"personal"===t?(0,r.jsx)(B,{children:(0,r.jsx)(p.Typography,{variant:"caption2-Medium",colorName:"systemText",colorCategory:"interactiveButtons",children:n("portfolios.badgePersonal")})}):null},W=(0,s.memo)(e=>{var t;let{portfolio:n,onRemove:i}=e,{t:a}
1=(0,o.$G)("favorites"),[l,d]=(0,s.useState)(n.is_favorited),[x,M]=(0,s.useState)(()=>null==n?void 0:n.is_follower),[E]=(0,c.xq)(),{id:T,wallet:_,public_key:I,title:L,is_favorited:P,is_follower:N,favorites_count:z,followers:D,last_followers:R,type:Z}=n||{},B=(0,f.De)(T,_),W=async e=>{e.stopPropagation();let t=!x;await (0,c.Xd)({follow:t,portfolio_id:n.id}),M(t),!t&&i&&i(T)},$=async e=>{e.stopPropagation();try{await E({id:T,isFavorited:!N}).unwrap(),d(e=>!e)}catch(e){(0,h.Mb)(e,"PortfolioCard: toggleFavorite")}};return(0,s.useEffect)(()=>{d(P||!1),M(N||!1)},[P,N]),(0,r.jsxs)(v,{onClick:()=>{I&&window.open("".concat(u.ns.portfolios.public.portfolio).concat(I),"_blank","noopener,noreferrer")},children:[(0,r.jsxs)(b,{children:[(0,r.jsxs)(j,{children:[(0,r.jsx)(p.Avatar,{size:"42px",link:""}),(0,r.jsxs)(w,{children:[(0,r.jsx)(p.Typography,{variant:"caption-Medium",colorCategory:"icons",colorName:"secondary",children:a("portfolios.userLabel")}),(0,r.jsx)(p.Typography,{variant:"header6-SemiBold",colorName:"contrastThemed",children:L})]})]}),(0,r.jsx)(y,{onClick:e=>W(e),$isActive:x,children:(0,r.jsx)(g.Z,{})})]}),(0,r.jsxs)(O,{children:[(0,r.jsx)(q,{type:Z}),(0,r.jsx)(U,{portfolio:n,keyPortfolio:B}),(0,r.jsxs)(k,{children:["number"==typeof z&&(0,r.jsx)(p.Like,{type:"content",isActive:l,amount:z||0,onClick:$}),(0,r.jsxs)(S,{children:[null===(t=R||[1,2,3])||void 0===t?void 0:t.slice(0,3).map((e,t)=>(0,r.jsx)(C,{$marginLeft:t>0?-5:0,children:(0,r.jsx)(p.Avatar,{size:"20px",link:(null==e?void 0:e.avatar)?(0,h.zo)(e.avatar,"8"):void 0})},t)),(0,r.jsxs)(p.Typography,{variant:"description-Medium",colorName:"secondary",marginLeft:8,children:[(0,m.j)(D||0),"\xa0",a("followersForm",{count:D||0})]})]})]})]})]})}),$=x.default.div.withConfig({componentId:"sc-b6760ac5-0"})(["display:flex;flex-direction:column;width:100%;border-radius:24px;background-image:url(/account/portfolio-card-bg.png);background-position:center;background-size:cover;background-repeat:no-repeat;@media (max-width:743px){border-radius:20px;}"]),A=x.default.div.withConfig({componentId:"sc-b6760ac5-1"})(["display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px;@media (max-width:743px){padding:16px;}"]),F=x.default.div.withConfig({componentId:"sc-b6760ac5-2"})(["display:flex;flex-direction:column;gap:6px;flex:1;"]),G=x.default.div.withConfig({componentId:"sc-b6760ac5-3"})(["background:",";border-radius:20px;padding:20px;display:flex;flex-direction:column;@media (max-width:743px){padding:16px;border-radius:16px;}"],e=>{let{theme:t}=e;return t.interactiveControls.secondary}),H=x.default.div.withConfig({componentId:"sc-b6760ac5-4"})(["display:flex;justify-content:space-between;gap:16px;align-items:center;"]),J=x.default.div.withConfig({componentId:"sc-b6760ac5-5"})(["width:100%;display:flex;align-items:center;margin-bottom:20px;@media (max-width:743px){.skeleton{max-height:22px;}}"]),X=x.default.div.withConfig({componentId:"sc-b6760ac5-6"})(["display:flex;justify-content:space-between;align-items:center;gap:16px;"]),K=x.default.div.withConfig({componentId:"sc-b6760ac5-7"})(["width:100%;display:flex;align-items:center;"]),Y=()=>(0,r.jsxs)($,{children:[(0,r.jsxs)(A,{children:[(0,r.jsx)(p.Skeleton,{height:42,maxWidth:42,radius:42,bottom:0,right:12}),(0,r.jsxs)(F,{children:[(0,r.jsx)(p.Skeleton,{height:14,maxWidth:120,bottom:6}),(0,r.jsx)(p.Skeleton,{height:18,maxWidth:180,bottom:0})]})]}),(0,r.jsxs)(G,{children:[(0,r.jsx)(H,{children:(0,r.jsx)(p.Skeleton,{height:24,maxWidth:190,bottom:12})}),(0,r.jsxs)(J,{children:[(0,r.jsx)(p.Skeleton,{height:24,maxWidth:73,bottom:0,right:8}),(0,r.jsx)(p.Skeleton,{height:6,maxWidth:6,radius:6,bottom:0,right:8}),(0,r.jsx)(p.Skeleton,{height:24,maxWidth:70,bottom:0})]}),(0,r.jsx)(X,{children:(0,r.jsxs)(K,{children:[(0,r.jsx)(p.Skeleton,{height:24,maxWidth:24,radius:24,right:-8,bottom:0}),(0,r.jsx)(p.Skeleton,{height:24,maxWidth:24,radius:24,right:-8,bottom:0}),(0,r.jsx)(p.Skeleton,{height:24,maxWidth:24,radius:24,right:8,bottom:0}),(0,r.jsx)(p.Skeleton,{height:18,maxWidth:110,bottom:0})]})})]})]});var Q=n(86455);let V=x.default.div.withConfig({componentId:"sc-5b4610f3-0"})(["position:relative;margin-bottom:24px;input{border-color:transparent;border-radius:12px;padding-right:32px;&:hover{border-color:",";}&:focus{border-color:",";}}@media (max-width:743px){margin-inline:18px;}"],e=>{let{theme:t}=e;return t.icons.accentSecondary},e=>{let{theme:t}=e;return t.stroke.accent}),ee=e=>{let{setSearch:t,search:n}=e,{t:i}=(0,o.$G)("favorites");return(0,r.jsx)(V,{children:(0,r.jsx)(p.Input,{value:n,placeholder:i("portfolios.searchPlaceholder"),onChange:e=>{t(e)},name:"search",icon:(0,r.jsx)(Q.Z,{}),positionIcon:"left"})})},et=x.default.div.withConfig({componentId:"sc-f4ca6ae4-0"})(["display:grid;gap:24px;grid-template-columns:repeat(2,1fr);@media (max-width:1279px){gap:16px;}@media (max-width:743px){grid-template-columns:1fr;gap:10px;}"]),en=()=>
1{let[e,t]=(0,s.useState)(!0),[n,i]=(0,s.useState)(""),[o,a]=(0,s.useState)([]);(0,s.useEffect)(()=>{(async()=>{try{let e=await (0,c.r3)({only_follow:!0});a(e.data),t(!1)}catch(e){t(!1)}})()},[]);let p=(0,s.useMemo)(()=>o.filter(e=>e.title.toLowerCase().includes(n.toLowerCase())),[n,o]),f=e=>{a(t=>t.filter(t=>t.id!==e))};return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ee,{setSearch:i,search:n}),(0,r.jsx)(et,{children:[,,,,].fill(0).map((e,t)=>(0,r.jsx)(Y,{},t))})]}):n&&0===p.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ee,{setSearch:i,search:n}),(0,r.jsx)(d.u,{searchValue:n})]}):0!==p.length||e||n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ee,{setSearch:i,search:n}),(0,r.jsx)(et,{children:p.map(e=>(0,r.jsx)(W,{portfolio:e,onRemove:f},e.id))})]}):(0,r.jsx)(l.ub,{variant:"portfolios",linkButton:u.ns.feed.portfolios})};var ei=n(95294);let er=()=>{let{t:e}=(0,o.$G)("favorites");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ei.j,{title:e("meta.portfoliosTitle"),description:e("meta.portfoliosDescription")}),(0,r.jsx)(en,{})]})};er.getLayout=function(e){return(0,r.jsx)(a.V,{children:e})};var eo=!0,ea=er},53407:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var i=n(85893),r=n(15304),o=n(42377),a=n(67294),s=(e,t)=>{(0,a.useEffect)(()=>{if((null==t?void 0:t.onChartClick)&&null!==e.current){let n=(0,r.JE)(e.current);null==n||n.off("click"),null==n||n.on("click",e=>{null==t||t.onChartClick(e)})}},[null==t?void 0:t.onChartClick]),(0,a.useEffect)(()=>{if((null==t?void 0:t.onChartMouseOver)&&null!==e.current){let n=(0,r.JE)(e.current);null==n||n.off("mouseover"),null==n||n.on("mouseover",e=>{null==t||t.onChartMouseOver(e)})}},[null==t?void 0:t.onChartMouseOver]),(0,a.useEffect)(()=>{if((null==t?void 0:t.onChartMouseOut)&&null!==e.current){let n=(0,r.JE)(e.current);null==n||n.off("mouseout"),null==n||n.on("mouseout",e=>{null==t||t.onChartMouseOut(e)})}},[null==t?void 0:t.onChartMouseOut])};let l=(0,a.forwardRef)((e,t)=>{let{option:n,style:l,settings:c,loading:u,theme:d,onChartClick:p,onChartMouseOver:f,onChartMouseOut:g,doResize:h,resizeIfStyleChanged:m}=e,x=(0,a.useRef)(null),v=(0,o.useOpenSideMenu)();return(0,a.useImperativeHandle)(t,()=>({getChart:()=>x,handleResize(){if(null!==x.current){let e=(0,r.JE)(x.current);e&&e.resize()}}})),(0,a.useEffect)(()=>{if(null!==x.current){let e=(0,r.JE)(x.current);e&&e.resize()}},[v,h]),(0,a.useEffect)(()=>{let e;function t(){null==e||e.resize()}return null!==x.current&&(e=(0,r.S1)(x.current,d)),window.addEventListener("resize",t),()=>{null==e||e.dispose(),window.removeEventListener("resize",t)}},[d]),(0,a.useEffect)(()=>{null!==x.current&&(0,r.JE)(x.current).setOption(n,c)},[n,c,d]),(0,a.useEffect)(()=>{if(null!==x.current){let e=(0,r.JE)(x.current);!0===u?e.showLoading():e.hideLoading()}},[u,d]),(0,a.useEffect)(()=>{if(m&&x.current){var e;null===(e=(0,r.JE)(x.current))||void 0===e||e.resize()}},[l,m]),s(x,{onChartClick:p,onChartMouseOver:f,onChartMouseOut:g}),(0,i.jsx)("div",{ref:x,style:{width:"100%",height:"400px",...l}})})},95294:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var i=n(85893),r=n(9008),o=n.n(r),a=n(11163);n(67294);var s=n(72991);let l=e=>{let{title:t,description:n,children:r,canonical:l,ogImage:c,noindex:u,ogType:d="website"}=e,{asPath:p}=(0,a.useRouter)(),f=l?(0,s.WN)(l):(0,s.Z2)(p),g=(0,s.WN)(c||s.R0),h=null!=u?u:(0,s.YE)(p);return(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:t},"title"),(0,i.jsx)("meta",{name:"description",content:n},"description"),(0,i.jsx)("link",{rel:"canonical",href:f},"canonical"),(0,i.jsx)("meta",{property:"og:type",content:d},"og:type"),(0,i.jsx)("meta",{property:"og:site_name",content:s.VU},"og:site_name"),(0,i.jsx)("meta",{property:"og:locale",content:s.G3},"og:locale"),(0,i.jsx)("meta",{property:"og:title",content:t},"og:title"),(0,i.jsx)("meta",{property:"og:description",content:n},"og:description"),(0,i.jsx)("meta",{property:"og:url",content:f},"og:url"),(0,i.jsx)("meta",{property:"og:image",content:g},"og:image"),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,i.jsx)("meta",{name:"twitter:title",content:t},"twitter:title"),(0,i.jsx)("meta",{name:"twitter:description",content:n},"twitter:description"),(0,i.jsx)("meta",{name:"twitter:image",content:g},"twitter:image"),h?(0,i.jsx)("meta",{name:"robots",content:"noindex, follow"},"robots"):null,r]})}},35956:function(e,t,n){"use strict";n.d(t,{KG:function(){return g},Tb:function(){return s},Y4:function(){return f},ey:function(){return l},gB:function(){return u},hf:function(){return a},hz:function(){return d},sG:function(){return p}});var i=n(82003);let{useGetUserQuery:r,useLazyGetUserQuery:o,useShortenUrlMutation:a,useGetSubscriptionsQuery:s,useGetUsersInfoByKeyQuery:l,useLazyGetUsersInfoByKeyQuery:c,useTelegramLoginMutation:u,useLazyGetTelegramInfoQuery:d,useSendTelegramInfoMutation:p,useSendTelegramCodeMutation:f,useConfirmTelegramCodeMutation:g}=n(84898).M.injectEndpoints({endpoints:e=>({getUser:e.query({query:()=>({url:"/auth/user"})}),getSubscriptions:e.query({query:e=>({url:"/auth/subscription",params:e})}),shortenUrl:e.mutation({query:e=>({url:"/shorten",method:"POST",baseURL:i.e.smsServiceApi,data:e})}),getUsersInfoByKey:e.query({query:e=>({url:"/auth/info",params:{user_key:e}})}),telegramLogin:e.mutation({query:e=>({url:"/auth/telegram/login",method:"POST",data:e})}),getTelegramInfo:e.query({query:e=>({url:"/auth/telegram/info",params:e})}),sendTelegramInfo:e.mutation({query:e=>({url:"/auth/telegram/info",method:"POST",data:e})}),sendTelegramCode:e.mutation({query:e=>({url:"/auth/telegram/code",method:"POST",data:e})}),confirmTelegramCode:e.mutation({query:e=>({url:"/auth/telegram/confirm",method:"POST",data:e})})})})},31337:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var i=n(85893),r=n(67294),o=n(54335);let a=(e,t)=>({grid:{left:0,right:0,top:0,bottom:0,containLabel:!1}
1,xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",show:!1,splitLine:{show:!1},axisLine:{show:!1},min:"dataMin",max:"dataMax"},visualMap:{show:!1,dimension:1,pieces:[{gt:Math.min(...e,-.00001),lte:0,color:t.stroke.negative},{gt:0,lte:Math.max(...e,1e-5),color:t.stroke.positive}]},series:[{data:e,type:"line",smooth:!0,symbol:"none",lineStyle:{width:1.5,opacity:.8}}]});var s=n(53407);let l=(0,r.memo)(e=>{let{portfolio:t,isActivePortfolio:n,style:r}=e,l=(0,o.useTheme)();return(0,i.jsx)(s.$,{option:a(t.saved_value,l),style:{height:"45px",width:n?"200px":"110px",marginBottom:"2px",pointerEvents:"none",...r},doResize:n})})},94746:function(e,t,n){"use strict";n.d(t,{$m:function(){return u},De:function(){return a},KT:function(){return d},M8:function(){return c},XP:function(){return s},YG:function(){return o},m_:function(){return l}});var i=n(73680),r=n(12382);let o=(e,t)=>"portfolio_".concat(e,"_day_").concat(t),a=(e,t)=>"portfolio_".concat(e,"_all_").concat(t),s=e=>"sync_broker_portfolio_".concat(e,"_status"),l=(e,t)=>{let n=t[e]||[],o=n[5]||0,a=(0,i.Q)(100*(n[3]||0),2);return{total:(0,r.Hd)(o,r.lB.currency,null,2),percents:a,freeMoney:(0,i.Q)(n[15]||0,2)}},c=(e,t)=>{let n=t[e]||[],r=n[1]||0,o=(0,i.Q)(100*(n[3]||0),2);return{total:(0,i.j)(r,!0,2,!1,!0),percents:o,averageXIRR:100*n[2]||0}},u=(e,t)=>{let n=t[e]||[],i=n[16]||0,o=n[17]||0,a=(0,r.Hd)(i/o*100,r.lB.currency,null,2);return{passive:(0,r.Hd)(i,r.lB.currency,null,2),passivePercent:a}},d=(e,t)=>{let n=t[e]||[],r=n[1]||0,o=n[3]||0;return isNaN(o)&&(o=0),{diff:(0,i.j)(r,!0,2,!1,!0),diffPercent:(0,i.j)(100*o,!0,2,!1,!0),averageDayXIRR:100*n[2]||0}}},45338:function(e,t,n){"use strict";n.d(t,{QS:function(){return c}});var i=n(67294);let r={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},o={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},a="mousemove",s="mouseup";function l(e,t){if(0===t)return e;let n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function c(e){var t,n,c;let u;let{trackMouse:d}=e,p=i.useRef(Object.assign({},o)),f=i.useRef(Object.assign({},r)),g=i.useRef(Object.assign({},f.current));for(u in g.current=Object.assign({},f.current),f.current=Object.assign(Object.assign({},r),e),r)void 0===f.current[u]&&(f.current[u]=r[u]);let[h,m]=i.useMemo(()=>(function(e,t){let n=t=>{let n="touches"in t;n&&t.touches.length>1||e((e,r)=>{r.trackMouse&&!n&&(document.addEventListener(a,i),document.addEventListener(s,d));let{clientX:c,clientY:u}=n?t.touches[0]:t,p=l([c,u],r.rotationAngle);return r.onTouchStartOrOnMouseDown&&r.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),o),{initial:p.slice(),xy:p,start:t.timeStamp||0})})},i=t=>{e((e,n)=>{let i="touches"in t;if(i&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:o,clientY:a}=i?t.touches[0]:t,[s,c]=l([o,a],n.rotationAngle),u=s-e.xy[0],d=c-e.xy[1],p=Math.abs(u),f=Math.abs(d),g=(t.timeStamp||0)-e.start,h=p>f?u>0?"Right":"Left":d>0?"Down":"Up",m="number"==typeof n.delta?n.delta:n.delta[h.toLowerCase()]||r.delta;if(p<m&&f<m&&!e.swiping)return e;let x={absX:p,absY:f,deltaX:u,deltaY:d,dir:h,event:t,first:e.first,initial:e.initial,velocity:Math.sqrt(p*p+f*f)/(g||1),vxvy:[u/(g||1),d/(g||1)]};x.first&&n.onSwipeStart&&n.onSwipeStart(x),n.onSwiping&&n.onSwiping(x);let v=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${h}`])&&(v=!0),v&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:x,swiping:!0})})},c=t=>{e((e,n)=>{let i;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){i=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(i);let r=n[`onSwiped${i.dir}`];r&&r(i)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),o),{eventData:i})})},u=()=>{document.removeEventListener(a,i),document.removeEventListener(s,d)},d=e=>{u(),c(e)},p=(e,t)=>{let o=()=>{};if(e&&e.addEventListener){let a=Object.assign(Object.assign({},r.touchEventOptions),t.touchEventOptions),s=[["touchstart",n,a],["touchmove",i,Object.assign(Object.assign({},a),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",c,a]];
1s.forEach(([t,n,i])=>e.addEventListener(t,n,i)),o=()=>s.forEach(([t,n])=>e.removeEventListener(t,n))}return o},f={ref:t=>{null!==t&&e((e,n)=>{if(e.el===t)return e;let i={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),i.cleanUpTouch=void 0),n.trackTouch&&t&&(i.cleanUpTouch=p(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),i)})}};return t.trackMouse&&(f.onMouseDown=n),[f,p]})(e=>p.current=e(p.current,f.current),{trackMouse:d}),[d]);return p.current=(t=p.current,n=f.current,c=g.current,n.trackTouch&&t.el?t.cleanUpTouch?n.preventScrollOnSwipe!==c.preventScrollOnSwipe||n.touchEventOptions.passive!==c.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:m(t.el,n)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:m(t.el,n)}):(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0}))),h}}},function(e){e.O(0,[7603,9510,5304,5209,9910,2888,9774,179],function(){return e(e.s=65167)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.