montana/Russian/Site/messenger/dist/4810.1e0aaa2102436ee6cd4c.js

2 lines
36 KiB
JavaScript
Raw Normal View History

2026-05-18 18:05:32 +03:00
"use strict";(self.webpackChunkmontana_messenger=self.webpackChunkmontana_messenger||[]).push([[4810],{24810(t,e,n){n.r(e),n.d(e,{create:()=>lt});const a=window.devicePixelRatio||1,o={begin:.8,end:1},i=300,l=10,s=.5,r="300 10px Helvetica, Arial, sans-serif",c=i,d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],f=["begin 200 fast","end 200 fast","labelFromIndex 200 fast floor","labelToIndex 200 fast ceil","xAxisScale 400","yMinViewport","yMaxViewport","yMinViewportSecond","yMaxViewportSecond","yMinMinimap","yMaxMinimap","yMinMinimapSecond","yMaxMinimapSecond","yAxisScale","yAxisScaleSecond"];function p(t){const e=t.length;let n=t[0],a=t[0];for(let o=0;o<e;o++){const e=t[o];e>n?n=e:e<a&&(a=e)}return{max:n,min:a}}function m(t){return[].concat.apply([],t)}function y(t){const e=[],n=t.length;for(let a=0,o=t[0].length;a<o;a++){e[a]=0;for(let o=0;o<n;o++)e[a]+=t[o][a]}return e}function g(t,e){return new Proxy({},{get:(n,a)=>void 0!==n[a]?n[a]:void 0!==e[a]?e[a]:t[a]})}function v(t,e,n=!0){let a,o,i=null;return(...l)=>{a=!0,o=l,i||(n&&(a=!1,t(...o)),i=window.setInterval(()=>{if(!a)return window.clearInterval(i),void(i=null);a=!1,t(...o)},e))}}function x(t){let e,n=!1;return function(...a){e=a,n||(n=!0,requestAnimationFrame(()=>{n=!1,t(...e)}))}}const M=[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 b(t){return M[t]||M[M.length-1]}function w(t,e,n){const a=Math.min(e+l,n-e);return a<=40&&(t=Math.min(1,t,a/40)),t}function k(t,e){return e-l<=20?Math.min(1,t,(e-l)/20):t}function S(t){return.45*Math.min(...t.getSize())}function L(t){return t>=1e3?Math.min(t/1e3,1):0}function F(t,e,n){const a={begin:0,end:1},o=function(){const e={};return t.datasets.forEach(({key:t})=>{e[t]=!0}),e}(),l=function(){const e=[],n=t.datasets.map(({key:t})=>`opacity#${t} 300`);return m([f,n]).forEach(t=>{const[n,a,...o]=t.split(" ");e.push({prop:n,duration:a,options:o})}),e}(),s=function(t){const e={};let n=null,a=null,o=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===o||o>=4)}function h(){const r=!u();!a||Date.now()-a>=200?(l&&(o=l,s||u(!0)||(s=Date.now())),a=Date.now(),l=0):l++;const f={};Object.keys(e).forEach(t=>{const{startedAt:n,from:a,to:o,duration:l=i,options:s}=e[t],r=Math.min(1,(Date.now()-n)/l);let d=a+(o-a)*(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,i,c,d){e[t]={from:o,to:i,duration:c,options:d,current:o,startedAt:Date.now(),progress:0},n||(a=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:a,from:o,to:i,progress:l}=e[n];t[n]=a,t[`${n}From`]=o,t[`${n}To`]=i,t[`${n}Progress`]=l}),t},isRunning:d,isFast:u}}(d),r=x(d);let c={};function d(){const t=s.isFast()?g(c,s.getState()):c;t.static=c,n(t)}return{update:function({range:n={},filter:i={},focusOn:d,minimapDelta:u}={},h){Object.assign(a,n),Object.assign(o,i);const f=c;c=function(t,e,n,a,o,i,l){const{begin:s,end:r}=n,c=t.xLabels.length-1,d=Math.max(0,Math.ceil(c*s)),u=Math.min(Math.floor(c*r),c),h=function(t,e,n){return a=(n-e)/Math.floor(t/45),Math.ceil(Math.log2(a||1));var a}(e.width,d,u),f=t.isStacked?function(t,e,n,a,o){const i=t.datasets.filter(t=>e[t.key]).map(({values:t})=>t),l=i.length?y(i):[],{max:s=o.yMaxMinimap}=p(l),{max:r=o.yMaxViewport}=p(l.slice(n,a+1));return{yMinViewport:0,yMaxViewport:r,yMinMinimap:0,yMaxMinimap:s}}(t,a,d,u,l):function(t,e,n,a,o){const i=t.hasSecondYAxis&&t.datasets.slice(-1)[0],l=t.datasets.filter(t=>e[t.key]&&t!==i),s=A(t,n,a,o,l);if(i){const{yMinViewport:e,yMaxViewport:l,yMinMinimap:r,yMaxMini
//# sourceMappingURL=4810.1e0aaa2102436ee6cd4c.js.map