Deploying to gh-pages from @ c4e746a211 🚀

This commit is contained in:
unanmed committed 2023-01-06 14:50:20 +00:00
1 parent 47263c79ee
commit 27f4b6a64a
3 files changed
+4 -4

No files matched your search

@@ -17,4 +17,4 @@ function round(t){return t+.5|0}const lim=(t,e,n)=>Math.max(Math.min(t,n),e);fun
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,a){const o=e.listeners[a],i=e.duration;o.forEach((a=>a({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,r=o.length-1,l=!1;for(;r>=0;--r)i=o[r],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),l=!0):(o[r]=o[o.length-1],o.pop());l&&(a.draw(),this._notify(a,n,t,"progress")),o.length||(n.running=!1,this._notify(a,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let a=n.length-1;for(;a>=0;--a)n[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const a=color(t||transparent),o=a.valid&&color(e||transparent);return o&&o.valid?o.mix(a,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Animation{constructor(t,e,n,a){const o=e[n];a=resolve([t.to,a,o,t.from]);const i=resolve([t.from,o,a]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const a=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,a,t.from]),this._from=resolve([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,a=this._prop,o=this._from,i=this._loop,r=this._to;let l;if(this._active=o!==r&&(i||e<n),!this._active)return this._target[a]=r,void this._notify(!0);e<0?this._target[a]=o:(l=e/n%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(o,r,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let a=0;a<n.length;a++)n[a][e]()}}class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const o=t[a];if(!isObject(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[a]).forEach((t=>{t!==a&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,a=resolveTargetOptions(t,n);if(!a)return[];const o=this._createAnimations(a,n);return n.$shared&&awaitAll(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,a=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),r=Date.now();let l;for(l=i.length-1;l>=0;--l){const s=i[l];if("$"===s.charAt(0))continue;if("options"===s){a.push(...this._animateOptions(t,e));continue}const c=e[s];let d=o[s];const p=n.get(s);if(d){if(p&&d.active()){d.update(p,c,r);continue}d.cancel()}p&&p.duration?(o[s]=d=new Animation(p,t,s,c),a.push(d)):t[s]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],a=Object.keys(e);for(let o=0;o<a.length;o++){const e=t[a[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},a=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:a?i:o,end:a?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const a=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:a.end,bottom:o.start,left:a.start}}function tLine truncated
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,a){const o=e.listeners[a],i=e.duration;o.forEach((a=>a({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,r=o.length-1,l=!1;for(;r>=0;--r)i=o[r],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),l=!0):(o[r]=o[o.length-1],o.pop());l&&(a.draw(),this._notify(a,n,t,"progress")),o.length||(n.running=!1,this._notify(a,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let a=n.length-1;for(;a>=0;--a)n[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const a=color(t||transparent),o=a.valid&&color(e||transparent);return o&&o.valid?o.mix(a,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Animation{constructor(t,e,n,a){const o=e[n];a=resolve([t.to,a,o,t.from]);const i=resolve([t.from,o,a]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const a=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,a,t.from]),this._from=resolve([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,a=this._prop,o=this._from,i=this._loop,r=this._to;let l;if(this._active=o!==r&&(i||e<n),!this._active)return this._target[a]=r,void this._notify(!0);e<0?this._target[a]=o:(l=e/n%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(o,r,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let a=0;a<n.length;a++)n[a][e]()}}class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const o=t[a];if(!isObject(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[a]).forEach((t=>{t!==a&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,a=resolveTargetOptions(t,n);if(!a)return[];const o=this._createAnimations(a,n);return n.$shared&&awaitAll(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,a=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),r=Date.now();let l;for(l=i.length-1;l>=0;--l){const s=i[l];if("$"===s.charAt(0))continue;if("options"===s){a.push(...this._animateOptions(t,e));continue}const c=e[s];let d=o[s];const p=n.get(s);if(d){if(p&&d.active()){d.update(p,c,r);continue}d.cancel()}p&&p.duration?(o[s]=d=new Animation(p,t,s,c),a.push(d)):t[s]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],a=Object.keys(e);for(let o=0;o<a.length;o++){const e=t[a[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},a=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:a?i:o,end:a?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const a=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:a.end,bottom:o.start,left:a.start}}function tLine truncated
@@ -15,4 +15,4 @@ var De=Object.defineProperty;var Ee=(t,e,i)=>e in t?De(t,e,{enumerable:!0,config
* Released under the MIT License
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,i,n,s){const a=i.listeners[s],r=i.duration;a.forEach(l=>l({chart:e,initial:i.initial,numSteps:r,currentStep:Math.min(n-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let i=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const a=n.items;let r=a.length-1,l=!1,c;for(;r>=0;--r)c=a[r],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(e),l=!0):(a[r]=a[a.length-1],a.pop());l&&(s.draw(),this._notify(s,n,e,"progress")),a.length||(n.running=!1,this._notify(s,n,e,"complete"),n.initial=!1),i+=a.length}),this._lastDate=e,i===0&&(this._running=!1)}_getAnims(e){const i=this._charts;let n=i.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(e,n)),n}listen(e,i,n){this._getAnims(e).listeners[i].push(n)}add(e,i){!i||!i.length||this._getAnims(e).items.push(...i)}has(e){return this._getAnims(e).items.length>0}start(e){const i=this._charts.get(e);!i||(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const i=this._charts.get(e);return!(!i||!i.running||!i.items.length)}stop(e){const i=this._charts.get(e);if(!i||!i.items.length)return;const n=i.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();i.items=[],this._notify(e,i,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const n=color(t||transparent),s=n.valid&&color(e||transparent);return s&&s.valid?s.mix(n,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class Animation{constructor(e,i,n,s){const a=i[n];s=resolve([e.to,s,a,e.from]);const r=resolve([e.from,a,s]);this._active=!0,this._fn=e.fn||interpolators[e.type||typeof r],this._easing=effects[e.easing]||effects.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=i,this._prop=n,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(e,i,n){if(this._active){this._notify(!1);const s=this._target[this._prop],a=n-this._start,r=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=resolve([e.to,i,s,e.from]),this._from=resolve([e.from,s,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const i=e-this._start,n=this._duration,s=this._prop,a=this._from,r=this._loop,l=this._to;let c;if(this._active=a!==l&&(r||i<n),!this._active){this._target[s]=l,this._notify(!0);return}if(i<0){this._target[s]=a;return}c=i/n%2,c=r&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[s]=this._fn(a,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((i,n)=>{e.push({res:i,rej:n})})}_notify(e){const i=e?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][i]()}}class Animations{constructor(e,i){this._chart=e,this._properties=new Map,this.configure(i)}configure(e){if(!isObject(e))return;const i=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!isObject(a))return;const r={};for(const l of i)r[l]=a[l];(isArray(a.properties)&&a.properties||[s]).forEach(l=>{(l===s||!n.has(l))&&n.set(l,r)})})}_animateOptions(e,i){const n=i.options,s=resolveTargetOptions(e,n);if(!s)return[];const a=this._createAnimations(s,n);return n.$shared&&awaitAll(e.options.$animations,n).then(()=>{e.options=n},()=>{}),a}_createAnimations(e,i){const n=this._properties,s=[],a=e.$animations||(e.$animations={}),r=Object.keys(i),l=Date.now();let c;for(c=r.length-1;c>=0;--c){const d=r[c];if(d.charAt(0)==="$")continue;if(d==="options"){s.push(...this._animateOptions(e,i));continue}const u=i[d];let h=a[d];const f=n.get(d);if(h)if(f&&h.active()){h.update(f,u,l);continue}else h.cancel();if(!f||!f.duration){e[d]=u;continue}a[d]=h=new Animation(f,e,d,u),s.push(h)}return s}update(e,i){if(this._properties.size===0){Object.assign(e,i);return}const n=this._createAnimations(e,i);if(n.length)return animator.add(this._chart,n),!0}}function awaitAll(t,e){const i=[],n=Object.keys(e);for(let s=0;s<n.length;s++){const a=t[n[s]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}function resolveTargetOptions(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function scaleClip(t,e){const i=t&&t.options||{},n=i.reverse,s=i.min===void 0?e:0,a=i.max===void 0?e:0;return{start:n?a:s,end:n?s:a}}function defaultClip(t,e,i){if(i===!1)return!1;const n=scaleClip(t,i),s=scaleClip(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}Line truncated
`)>-1?t.split(`
`):t}function createTooltipItem(t,e){const{element:i,datasetIndex:n,index:s}=e,a=t.getDatasetMeta(n).controller,{label:r,value:l}=a.getLabelAndValue(s);return{chart:t,label:r,parsed:a.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:l,dataset:a.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function getTooltipSize(t,e){const i=t.chart.ctx,{body:n,footer:s,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=toFont(e.bodyFont),d=toFont(e.titleFont),u=toFont(e.footerFont),h=a.length,f=s.length,g=n.length,m=toPadding(e.padding);let _=m.height,w=0,B=n.reduce((L,P)=>L+P.before.length+P.lines.length+P.after.length,0);if(B+=t.beforeBody.length+t.afterBody.length,h&&(_+=h*d.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),B){const L=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=g*L+(B-g)*c.lineHeight+(B-1)*e.bodySpacing}f&&(_+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let D=0;const N=function(L){w=Math.max(w,i.measureText(L).width+D)};return i.save(),i.font=d.string,each(t.title,N),i.font=c.string,each(t.beforeBody.concat(t.afterBody),N),D=e.displayColors?r+2+e.boxPadding:0,each(n,L=>{each(L.before,N),each(L.lines,N),each(L.after,N)}),D=0,i.font=u.string,each(t.footer,N),i.restore(),w+=m.width,{width:w,height:_}}function determineYAlign(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}function doesNotFitWithAlign(t,e,i,n){const{x:s,width:a}=n,r=i.caretSize+i.caretPadding;if(t==="left"&&s+a+r>e.width||t==="right"&&s-a-r<0)return!0}function determineXAlign(t,e,i,n){const{x:s,width:a}=i,{width:r,chartArea:{left:l,right:c}}=t;let d="center";return n==="center"?d=s<=(l+c)/2?"left":"right":s<=a/2?d="left":s>=r-a/2&&(d="right"),doesNotFitWithAlign(d,t,e,i)&&(d="center"),d}function determineAlignment(t,e,i){const n=i.yAlign||e.yAlign||determineYAlign(t,i);return{xAlign:i.xAlign||e.xAlign||determineXAlign(t,e,i,n),yAlign:n}}function alignX(t,e){let{x:i,width:n}=t;return e==="right"?i-=n:e==="center"&&(i-=n/2),i}function alignY(t,e,i){let{y:n,height:s}=t;return e==="top"?n+=i:e==="bottom"?n-=s+i:n-=s/2,n}function getBackgroundPoint(t,e,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,d=s+a,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:g}=toTRBLCorners(r);let m=alignX(e,l);const _=alignY(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,f)+s:l==="right"&&(m+=Math.max(h,g)+s),{x:_limitValue(m,0,n.width-e.width),y:_limitValue(_,0,n.height-e.height)}}function getAlignedX(t,e,i){const n=toPadding(i.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,i){return createContext(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const defaultCallbacks={beforeTitle:noop,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return isNullOrUndef(i)||(e+=i),e},labelColor(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(t,e,i,n){const s=t[e].call(i,n);return typeof s>"u"?defaultCallbacks[e].call(i,n):s}class Tooltip extends Element{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&i.options.animation&&n Line truncated
`):t}function createTooltipItem(t,e){const{element:i,datasetIndex:n,index:s}=e,a=t.getDatasetMeta(n).controller,{label:r,value:l}=a.getLabelAndValue(s);return{chart:t,label:r,parsed:a.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:l,dataset:a.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function getTooltipSize(t,e){const i=t.chart.ctx,{body:n,footer:s,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=toFont(e.bodyFont),d=toFont(e.titleFont),u=toFont(e.footerFont),h=a.length,f=s.length,g=n.length,m=toPadding(e.padding);let _=m.height,w=0,B=n.reduce((L,P)=>L+P.before.length+P.lines.length+P.after.length,0);if(B+=t.beforeBody.length+t.afterBody.length,h&&(_+=h*d.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),B){const L=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=g*L+(B-g)*c.lineHeight+(B-1)*e.bodySpacing}f&&(_+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let D=0;const N=function(L){w=Math.max(w,i.measureText(L).width+D)};return i.save(),i.font=d.string,each(t.title,N),i.font=c.string,each(t.beforeBody.concat(t.afterBody),N),D=e.displayColors?r+2+e.boxPadding:0,each(n,L=>{each(L.before,N),each(L.lines,N),each(L.after,N)}),D=0,i.font=u.string,each(t.footer,N),i.restore(),w+=m.width,{width:w,height:_}}function determineYAlign(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}function doesNotFitWithAlign(t,e,i,n){const{x:s,width:a}=n,r=i.caretSize+i.caretPadding;if(t==="left"&&s+a+r>e.width||t==="right"&&s-a-r<0)return!0}function determineXAlign(t,e,i,n){const{x:s,width:a}=i,{width:r,chartArea:{left:l,right:c}}=t;let d="center";return n==="center"?d=s<=(l+c)/2?"left":"right":s<=a/2?d="left":s>=r-a/2&&(d="right"),doesNotFitWithAlign(d,t,e,i)&&(d="center"),d}function determineAlignment(t,e,i){const n=i.yAlign||e.yAlign||determineYAlign(t,i);return{xAlign:i.xAlign||e.xAlign||determineXAlign(t,e,i,n),yAlign:n}}function alignX(t,e){let{x:i,width:n}=t;return e==="right"?i-=n:e==="center"&&(i-=n/2),i}function alignY(t,e,i){let{y:n,height:s}=t;return e==="top"?n+=i:e==="bottom"?n-=s+i:n-=s/2,n}function getBackgroundPoint(t,e,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,d=s+a,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:g}=toTRBLCorners(r);let m=alignX(e,l);const _=alignY(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,f)+s:l==="right"&&(m+=Math.max(h,g)+s),{x:_limitValue(m,0,n.width-e.width),y:_limitValue(_,0,n.height-e.height)}}function getAlignedX(t,e,i){const n=toPadding(i.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,i){return createContext(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const defaultCallbacks={beforeTitle:noop,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return isNullOrUndef(i)||(e+=i),e},labelColor(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(t,e,i,n){const s=t[e].call(i,n);return typeof s>"u"?defaultCallbacks[e].call(i,n):s}class Tooltip extends Element{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&i.options.animation&&n Line truncated
+2 -2
View File
@@ -18,7 +18,7 @@
<meta name="x5-fullscreen" content="true">
<meta name="x5-page-mode" content="app">
<link id="mota-css" type='text/css' href='/HumanBreak/styles.css' rel='stylesheet'>
<script type="module" crossorigin src="/HumanBreak/assets/index.1c34e5b0.js"></script>
<script type="module" crossorigin src="/HumanBreak/assets/index.82c2b06c.js"></script>
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/antdv.82ccdc2e.js">
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/common.b7335525.js">
<link rel="stylesheet" href="/HumanBreak/assets/index.a547fc67.css">
@@ -215,7 +215,7 @@
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="/HumanBreak/assets/polyfills-legacy.fcbd97b9.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.8015cf6b.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.cfce5727.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>