telegram-tt/dist/6.07bb6a4903ade91c5d4d.js

1 line
34 KiB
JavaScript
Raw Normal View History

2021-04-18 23:17:33 +02:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{105:function(t,e,n){"use strict";function o(t){const e=t.length;let n=t[0],o=t[0];for(let i=0;i<e;i++){const e=t[i];e>n?n=e:e<o&&(o=e)}return{max:n,min:o}}function i(t){return[].concat.apply([],t)}function a(t){const e=[],n=t.length;for(let o=0,i=t[0].length;o<i;o++){e[o]=0;for(let i=0;i<n;i++)e[o]+=t[i][o]}return e}function l(t,e){return new Proxy({},{get:(n,o)=>void 0!==n[o]?n[o]:void 0!==e[o]?e[o]:t[o]})}function s(t,e,n=!0){let o,i,a=null;return(...l)=>{o=!0,i=l,a||(n&&(o=!1,t(...i)),a=window.setInterval(()=>{if(!o)return window.clearInterval(a),void(a=null);o=!1,t(...i)},e))}}function r(t){let e,n=!1;return function(...o){e=o,n||(n=!0,requestAnimationFrame(()=>{n=!1,t(...e)}))}}function c(t,e,n=!0,o=!0){let i=null;return function(){i?(clearTimeout(i),i=null):n&&t(),i=setTimeout(()=>{o&&t(),i=null},e)}}n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return l})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return r})),n.d(e,"a",(function(){return c}))},302:function(t,e,n){},306:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return U}));var o=n(41);function i(t){const e={};let n=null,i=null,a=null,l=null,s=null,r=null;function c(t){delete e[t],d()||(cancelAnimationFrame(n),n=null)}function d(){return Boolean(Object.keys(e).length)}function u(t){return!(!t&&(r||s))&&(null===a||a>=o.z)}function h(){const r=!u();!i||Date.now()-i>=o.A?(l&&(a=l,s||u(!0)||(s=Date.now())),i=Date.now(),l=0):l++;const f={};Object.keys(e).forEach(t=>{const{startedAt:n,from:i,to:a,duration:l=o.B,options:s}=e[t],r=Math.min(1,(Date.now()-n)/l);let d=i+(a-i)*(u=r,1-Math.pow(1-u,1.675));var u;s.includes("ceil")?d=Math.ceil(d):s.includes("floor")&&(d=Math.floor(d)),e[t].current=d,e[t].progress=r,f[t]=d,1===r&&c(t)}),r||t(f),d()&&(n=requestAnimationFrame(h))}return{add:function(t,o,a,c,d){e[t]={from:o,to:a,duration:c,options:d,current:o,startedAt:Date.now(),progress:0},n||(!function(){i=null,l=null,s&&Date.now()-s>5e3&&(s=null);r=Boolean(s)||!u(!0)}(),n=requestAnimationFrame(h))},remove:c,get:function(t){return e[t]},getState:function(){const t={};return Object.keys(e).forEach(n=>{const{current:o,from:i,to:a,progress:l}=e[n];t[n]=o,t[n+"From"]=i,t[n+"To"]=a,t[n+"Progress"]=l}),t},isRunning:d,isFast:u}}var a=n(105);const l=[1,2,8,18,50,100,250,500,1e3,2500,5e3,1e4,25e3,5e4,1e5,25e4,5e5,1e6,25e5,5e6,1e7,25e6,5e7,1e8];function s(t){return l[t]||l[l.length-1]}function r(t,e,n){const i=Math.min(e+o.h,n-e);return i<=4*o.h&&(t=Math.min(1,t,i/(4*o.h))),t}function c(t,e){return e-o.h<=2*o.h?Math.min(1,t,(e-o.h)/(2*o.h)):t}function d(t){return Math.min(...t.getSize())*o.t}function u(t,e){return Math.abs(e.value-t.value)>o.j}function h(t){return t>=o.x?Math.min(t/1e3,1):0}function f(t,e,n){const l={begin:0,end:1},r=function(){const e={};return t.datasets.forEach(({key:t})=>{e[t]=!0}),e}(),c=function(){const e=[],n=t.datasets.map(({key:t})=>`opacity#${t} 300`);return Object(a.c)([o.a,n]).forEach(t=>{const[n,o,...i]=t.split(" ");e.push({prop:n,duration:o,options:i})}),e}(),d=i(f),u=Object(a.g)(f);let h={};function f(){const t=d.isFast()?Object(a.d)(h,d.getState()):h;t.static=h,n(t)}return{update:function({range:n={},filter:i={},focusOn:f,minimapDelta:y}={},g){Object.assign(l,n),Object.assign(r,i);const v=h;h=function(t,e,n,i,l,r,c){const{begin:d,end:u}=n,h=t.xLabels.length-1,f=Math.max(0,Math.ceil(h*d)),y=Math.min(Math.floor(h*u),h),g=function(t,e,n){const i=n-e,a=Math.floor(t/o.c);return l=i/a,Math.ceil(Math.log2(l||1));var l}(e.width,f,y),v=t.isStacked?function(t,e,n,o,i){const l=t.datasets.filter(t=>e[t.key]).map(({values:t})=>t),s=l.length?Object(a.e)(l):[],{max:r=i.yMaxMinimap}=Object(a.b)(s),{max:c=i.yMaxViewport}=Object(a.b)(s.slice(n,o+1));return{yMinViewport:0,yMaxViewport:c,yMinMinimap:0,yMaxMinimap:r}}(t,i,f,y,c):function(t,e,n,o,i){const a=t.hasSecondYAxis&&t.datasets.slice(-1)[0],l=t.datasets.filter(t=>e[t.key]&&t!==a),s=p(t,n,o,i,l);if(a){e[a.key];const{yMinViewport:l,yMaxViewport:r,yMinMinima