Files
firefly-iii/public/build/assets/dashboard-9f02f998.js

30 lines
256 KiB
JavaScript
Raw Normal View History

2023-12-26 08:42:38 +01:00
var ia=Object.defineProperty;var sa=(n,t,e)=>t in n?ia(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var _=(n,t,e)=>(sa(n,typeof t!="symbol"?t+"":t,e),e);import{t as R,c as rt,m as rn,a as an,b as $i,d as Gn,e as oa,f as qo,g as Uo,h as Xo,i as ra,j as aa,s as Ke,k as Ko,l as la,n as ca,o as Go,p as ha,q as us,r as ua,u as ds,v as da,w as dt,x as j,y as I,z as lt,P as fa,I as Qn,A as Zn,B as ga,C as pa,D as ma,E as ba,F as ya,G as _a,H as xa,J as wa}from"./load-translations-36a0ce82.js";function Jn(n,t){const e=+R(n);return rt(n,e+t)}function va(n,t){return Jn(n,t*rn)}function Ma(n,t){return Jn(n,t*an)}function ka(n,t){const e=t*3;return $i(n,e)}function Pa(n,t){return Jn(n,t*1e3)}function Da(n,t){const e=t*7;return Gn(n,e)}function Ca(n,t){return $i(n,t*12)}function Ye(n,t){const e=R(n),i=R(t),s=e.getTime()-i.getTime();return s<0?-1:s>0?1:s}function Sa(n,t){const e=R(n),i=R(t),s=e.getFullYear()-i.getFullYear(),o=e.getMonth()-i.getMonth();return s*12+o}function Oa(n,t){const e=R(n),i=R(t);return e.getFullYear()-i.getFullYear()}function Qo(n,t){const e=R(n),i=R(t),s=fs(e,i),o=Math.abs(oa(e,i));e.setDate(e.getDate()-s*o);const r=+(fs(e,i)===-s),a=s*(o-r);return a===0?0:a}function fs(n,t){const e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function ti(n,t){return R(n).getTime()-R(t).getTime()}function ln(n){return n?Math[n]:Math.trunc}function Ta(n,t,e){const i=ti(n,t)/rn;return ln(e==null?void 0:e.roundingMethod)(i)}function Aa(n,t,e){const i=ti(n,t)/an;return ln(e==null?void 0:e.roundingMethod)(i)}function La(n){const t=R(n);return+qo(t)==+Uo(t)}function Zo(n,t){const e=R(n),i=R(t),s=Ye(e,i),o=Math.abs(Sa(e,i));let r;if(o<1)r=0;else{e.getMonth()===1&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-s*o);let a=Ye(e,i)===-s;La(R(n))&&o===1&&Ye(n,i)===1&&(a=!1),r=s*(o-Number(a))}return r===0?0:r}function Fa(n,t,e){const i=Zo(n,t)/3;return ln(e==null?void 0:e.roundingMethod)(i)}function Ra(n,t,e){const i=ti(n,t)/1e3;return ln(e==null?void 0:e.roundingMethod)(i)}function Ia(n,t,e){const i=Qo(n,t)/7;return ln(e==null?void 0:e.roundingMethod)(i)}function Ea(n,t){const e=R(n),i=R(t),s=Ye(e,i),o=Math.abs(Oa(e,i));e.setFullYear(1584),i.setFullYear(1584);const r=Ye(e,i)===-s,a=s*(o-+r);return a===0?0:a}function za(n){const t=R(n);return t.setSeconds(0,0),t}function Ba(n){const t=R(n),e=t.getFullYear();return t.setFullYear(e+1,0,0),t.setHours(23,59,59,999),t}function Na(n){const t=R(n);return t.setMinutes(59,59,999),t}function Wa(n){const t=R(n);return t.setSeconds(59,999),t}function Ha(n){const t=R(n);return t.setMilliseconds(999),t}function Va(){return Object.assign({},Xo())}function Ya(n){let e=R(n).getDay();return e===0&&(e=7),e}function ja(n,t){const e=t instanceof Date?rt(t,0):new t(0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}const $a=10;class Jo{constructor(){_(this,"subPriority",0)}validate(t,e){return!0}}class qa extends Jo{constructor(t,e,i,s,o){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=s,o&&(this.subPriority=o)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}}class Ua extends Jo{constructor(){super(...arguments);_(this,"priority",$a);_(this,"subPriority",-1)}set(e,i){return i.timestampIsSet?e:rt(e,ja(e,Date))}}class E{run(t,e,i,s){const o=this.parse(t,e,i,s);return o?{setter:new qa(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,e,i){return!0}}class Xa extends E{constructor(){super(...arguments);_(this,"priority",140);_(this,"incompatibleTokens",["R","u","t","T"])}parse(e,i,s){switch(i){case"G":case"GG":case"GGG":return s.era(e,{width:"abbreviated"})||s.era(e,{width:"narrow"});case"GGGGG":return s.era(e,{width:"narrow"});case"GGGG":default:return s.era(e,{width:"wide"})||s.era(e,{widt
* @kurkle/color v0.3.2
* https://github.com/kurkle/color#readme
* (c) 2023 Jukka Kurkela
* Released under the MIT License
*/function cn(n){return n+.5|0}const Nt=(n,t,e)=>Math.max(Math.min(n,e),t);function Ne(n){return Nt(cn(n*2.55),0,255)}function $t(n){return Nt(cn(n*255),0,255)}function Ft(n){return Nt(cn(n/2.55)/100,0,1)}function ps(n){return Nt(cn(n*100),0,100)}const yt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ti=[..."0123456789ABCDEF"],lc=n=>Ti[n&15],cc=n=>Ti[(n&240)>>4]+Ti[n&15],gn=n=>(n&240)>>4===(n&15),hc=n=>gn(n.r)&&gn(n.g)&&gn(n.b)&&gn(n.a);function uc(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&yt[n[1]]*17,g:255&yt[n[2]]*17,b:255&yt[n[3]]*17,a:t===5?yt[n[4]]*17:255}:(t===7||t===9)&&(e={r:yt[n[1]]<<4|yt[n[2]],g:yt[n[3]]<<4|yt[n[4]],b:yt[n[5]]<<4|yt[n[6]],a:t===9?yt[n[7]]<<4|yt[n[8]]:255})),e}const dc=(n,t)=>n<255?t(n):"";function fc(n){var t=hc(n)?lc:cc;return n?"#"+t(n.r)+t(n.g)+t(n.b)+dc(n.a,t):void 0}const gc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function sr(n,t,e){const i=t*Math.min(e,1-e),s=(o,r=(o+n/30)%12)=>e-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function pc(n,t,e){const i=(s,o=(s+n/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function mc(n,t,e){const i=sr(n,1,.5);let s;for(t+e>1&&(s=1/(t+e),t*=s,e*=s),s=0;s<3;s++)i[s]*=1-t-e,i[s]+=t;return i}function bc(n,t,e,i,s){return n===s?(t-e)/i+(t<e?6:0):t===s?(e-n)/i+2:(n-t)/i+4}function Xi(n){const e=n.r/255,i=n.g/255,s=n.b/255,o=Math.max(e,i,s),r=Math.min(e,i,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=bc(e,i,s,h,o),l=l*60+.5),[l|0,c||0,a]}function Ki(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map($t)}function Gi(n,t,e){return Ki(sr,n,t,e)}function yc(n,t,e){return Ki(mc,n,t,e)}function _c(n,t,e){return Ki(pc,n,t,e)}function or(n){return(n%360+360)%360}function xc(n){const t=gc.exec(n);let e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?Ne(+t[5]):$t(+t[5]));const s=or(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=yc(s,o,r):t[1]==="hsv"?i=_c(s,o,r):i=Gi(s,o,r),{r:i[0],g:i[1],b:i[2],a:e}}function wc(n,t){var e=Xi(n);e[0]=or(e[0]+t),e=Gi(e),n.r=e[0],n.g=e[1],n.b=e[2]}function vc(n){if(!n)return;const t=Xi(n),e=t[0],i=ps(t[1]),s=ps(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${s}%, ${Ft(n.a)})`:`hsl(${e}, ${i}%, ${s}%)`}const ms={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},bs={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"
* Chart.js v4.4.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/function St(){}const Tc=(()=>{let n=0;return()=>n++})();function F(n){return n===null||typeof n>"u"}function W(n){if(Array.isArray&&Array.isArray(n))return!0;const t=Object.prototype.toString.call(n);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function L(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function q(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function mt(n,t){return q(n)?n:t}function C(n,t){return typeof n>"u"?t:n}const Ac=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,ar=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function N(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function z(n,t,e,i){let s,o,r;if(W(n))if(o=n.length,i)for(s=o-1;s>=0;s--)t.call(e,n[s],s);else for(s=0;s<o;s++)t.call(e,n[s],s);else if(L(n))for(r=Object.keys(n),o=r.length,s=0;s<o;s++)t.call(e,n[r[s]],r[s])}function Hn(n,t){let e,i,s,o;if(!n||!t||n.length!==t.length)return!1;for(e=0,i=n.length;e<i;++e)if(s=n[e],o=t[e],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function Vn(n){if(W(n))return n.map(Vn);if(L(n)){const t=Object.create(null),e=Object.keys(n),i=e.length;let s=0;for(;s<i;++s)t[e[s]]=Vn(n[e[s]]);return t}return n}function lr(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function Lc(n,t,e,i){if(!lr(n))return;const s=t[n],o=e[n];L(s)&&L(o)?Ge(s,o,i):t[n]=Vn(o)}function Ge(n,t,e){const i=W(t)?t:[t],s=i.length;if(!L(n))return n;e=e||{};const o=e.merger||Lc;let r;for(let a=0;a<s;++a){if(r=i[a],!L(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],n,r,e)}return n}function je(n,t){return Ge(n,t,{merger:Fc})}function Fc(n,t,e){if(!lr(n))return;const i=t[n],s=e[n];L(i)&&L(s)?je(i,s):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=Vn(s))}const _s={"":n=>n,x:n=>n.x,y:n=>n.y};function Rc(n){const t=n.split("."),e=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Ic(n){const t=Rc(n);return e=>{for(const i of t){if(i==="")break;e=e&&e[i]}return e}}function qt(n,t){return(_s[t]||(_s[t]=Ic(t)))(n)}function Qi(n){return n.charAt(0).toUpperCase()+n.slice(1)}const Qe=n=>typeof n<"u",Ut=n=>typeof n=="function",xs=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0};function Ec(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}const $=Math.PI,H=2*$,zc=H+$,Yn=Number.POSITIVE_INFINITY,Bc=$/180,Z=$/2,Qt=$/4,ws=$*2/3,Wt=Math.log10,Dt=Math.sign;function $e(n,t,e){return Math.abs(n-t)<e}function vs(n){const t=Math.round(n);n=$e(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor(Wt(n))),i=n/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function Nc(n){const t=[],e=Math.sqrt(n);let i;for(i=1;i<e;i++)n%i===0&&(t.push(i),t.push(n/i));return e===(e|0)&&t.push(e),t.sort((s,o)=>s-o).pop(),t}function Ze(n){return!isNaN(parseFloat(n))&&isFinite(n)}function Wc(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function cr(n,t,e){let i,s,o;for(i=0,s=n.length;i<s;i++)o=n[i][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function xt(n){return n*($/180)}function Zi(n){return n*(180/$)}function Ms(n){if(!q(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function hr(n,t){const e=t.x-n.x,i=t.y-n.y,s=Math.sqrt(e*e+i*i);let o=Math.atan2(i,e);return o<-.5*$&&(o+=H),{angle:o,distance:s}}function Ai(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function Hc(n,t){return(n-t+zc)%H-$}function bt(n){return(n%H+H)%H}function Je(n,t,e,i){const s=bt(n),o=bt(t),r=bt(e),a=bt(o-s),l=bt(r-s),c=bt(s-o),h=bt(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function st(n,t,e){return Math.max(t,Math.min(e,n))}function Vc(n){return st(n,-32768,32767)}function Rt(n,t,e,i=1e-6){return n>=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function Ji(n,t,e){e=e||(r=>n[r]<t);let i=n.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,e(o)?s=o:i=o;return{lo:s,hi:i}}const oe=(n,t,e,i)=>Ji(n,e,i?s=>{const o=n[s][t];return o<e||o===e&&n[s+1][t]===e}:s=>n[s][t]<e),Yc=(n,t,e)=>Ji(n,e,i=>n[i][t]>=e);function jc(n,t,e){
* Chart.js v4.4.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/class Gh{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const o=e.listeners[s],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=fr.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}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((i,s)=>Math.max(i,s._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 i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var At=new Gh;const Es="transparent",Qh={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const i=ye(n||Es),s=i.valid&&ye(t||Es);return s&&s.valid?s.mix(i,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class Zh{constructor(t,e,i,s){const o=e[i];s=yn([t.to,s,o,t.from]);const r=yn([t.from,o,s]);this._active=!0,this._fn=t.fn||Qh[t.type||typeof r],this._easing=qe[t.easing]||qe.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=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=yn([t.to,e,s,t.from]),this._from=yn([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e<i),!this._active){this._target[s]=a,this._notify(!0);return}if(e<0){this._target[s]=o;return}l=e/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][e]()}}class Or{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!L(t))return;const e=Object.keys(U.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!L(o))return;const r={};for(const a of e)r[a]=o[a];(W(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,e){const i=e.options,s=tu(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&Jh(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,e){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,e));continue}const h=e[c];let u=o[c];const d=i.get(c);if(u)if(d&&u.active()){u.update(d,h,a);continue}else u.cancel();if(!d||!d.duration){t[c]=h;continue}o[c]=u=new Zh(d,t,c,h),s.push(u)}return s}update(t,e){if(this._properties.size===0
`)>-1?n.split(`
`):n}function Sf(n,t){const{element:e,datasetIndex:i,index:s}=t,o=n.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:n,label:r,parsed:o.getParsed(s),raw:n.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:e}}function vo(n,t){const e=n.chart.ctx,{body:i,footer:s,title:o}=n,{boxWidth:r,boxHeight:a}=t,l=tt(t.bodyFont),c=tt(t.titleFont),h=tt(t.footerFont),u=o.length,d=s.length,f=i.length,g=ct(t.padding);let p=g.height,m=0,b=i.reduce((M,x)=>M+x.before.length+x.lines.length+x.after.length,0);if(b+=n.beforeBody.length+n.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const M=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=f*M+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}d&&(p+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let y=0;const w=function(M){m=Math.max(m,e.measureText(M).width+y)};return e.save(),e.font=c.string,z(n.title,w),e.font=l.string,z(n.beforeBody.concat(n.afterBody),w),y=t.displayColors?r+2+t.boxPadding:0,z(i,M=>{z(M.before,w),z(M.lines,w),z(M.after,w)}),y=0,e.font=h.string,z(n.footer,w),e.restore(),m+=g.width,{width:m,height:p}}function Of(n,t){const{y:e,height:i}=t;return e<i/2?"top":e>n.height-i/2?"bottom":"center"}function Tf(n,t,e,i){const{x:s,width:o}=i,r=e.caretSize+e.caretPadding;if(n==="left"&&s+o+r>t.width||n==="right"&&s-o-r<0)return!0}function Af(n,t,e,i){const{x:s,width:o}=e,{width:r,chartArea:{left:a,right:l}}=n;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),Tf(c,n,t,e)&&(c="center"),c}function Mo(n,t,e){const i=e.yAlign||t.yAlign||Of(n,e);return{xAlign:e.xAlign||t.xAlign||Af(n,t,e,i),yAlign:i}}function Lf(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function Ff(n,t,e){let{y:i,height:s}=n;return t==="top"?i+=e:t==="bottom"?i-=s+e:i-=s/2,i}function ko(n,t,e,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=n,{xAlign:a,yAlign:l}=e,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=re(r);let g=Lf(t,a);const p=Ff(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,d)+s:a==="right"&&(g+=Math.max(u,f)+s),{x:st(g,0,i.width-t.width),y:st(p,0,i.height-t.height)}}function Dn(n,t,e){const i=ct(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function Po(n){return vt([],Lt(n))}function Rf(n,t,e){return Xt(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Do(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const Gr={beforeTitle:St,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:St,beforeBody:St,beforeLabel:St,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return F(e)||(t+=e),t},labelColor(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:St,afterBody:St,beforeFooter:St,footer:St,afterFooter:St};function ht(n,t,e,i){const s=n[t].call(e,i);return typeof s>"u"?Gr[t].call(e,i):s}class Wi extends wt{constructor(t){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=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.f
* chartjs-chart-sankey v0.12.0
* https://github.com/kurkle/chartjs-chart-sankey#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT license
*/function fg(n){const t=[],e=W(n)?n:F(n)?[]:[n];for(;e.length;){const i=e.pop();typeof i=="string"?t.unshift.apply(t,i.split(`
`)):Array.isArray(i)?e.push.apply(e,i):F(e)||t.unshift(""+i)}return t}function Di(n){return!n||["min","max"].indexOf(n)===-1?"max":n}const jt=n=>n!==void 0;function gg(n,t){const e=new Set(t.map(r=>r.to)),i=new Set(t.map(r=>r.from)),s=new Set([...n.keys()]);let o=0;for(;s.size;){const r=pg([...s],e);for(const a of r){const l=n.get(a);jt(l.x)||(l.x=o),s.delete(a)}s.size&&(e.clear(),t.filter(a=>s.has(a.from)).forEach(a=>e.add(a.to)),o++)}return[...n.keys()].filter(r=>!i.has(r)).forEach(r=>{const a=n.get(r);a.column||(a.x=o)}),o}function pg(n,t){const e=n.filter(i=>!t.has(i));return e.length?e:n.slice(0,1)}const mg=(n,t)=>n.x!==t.x?n.x-t.x:n.y-t.y;let Tn=-1;function bg(){return Tn=Tn<100?Tn+1:0,Tn}function ji(n,t,e=bg()){let i=0;for(const s of n)s.node._visited!==e&&(s.node._visited=e,i+=s.node[t].length+ji(s.node[t],t,e));return i}const Jr=n=>(t,e)=>ji(t.node[n],n)-ji(e.node[n],n)||t.node[n].length-e.node[n].length;function cs(n,t){n.from.sort(Jr("from"));for(const e of n.from){const i=e.node;jt(i.y)||(i.y=t,cs(i,t)),t=Math.max(i.y+i.out,t)}return t}function se(n,t){n.to.sort(Jr("to"));for(const e of n.to){const i=e.node;jt(i.y)||(i.y=t,se(i,t)),t=Math.max(i.y+i.in,t)}return t}function Ee(n,t){return jt(n.y)?n.y:(n.y=t,t)}function yg(n,t){const e=n.filter(h=>h.x===0),i=n.filter(h=>h.x===t),s=e.filter(h=>!jt(h.y)),o=i.filter(h=>!jt(h.y)),r=n.filter(h=>h.x>0&&h.x<t&&!jt(h.y));let a=e.reduce((h,u)=>Math.max(h,u.y+u.out||0),0),l=i.reduce((h,u)=>Math.max(h,u.y+u.in||0),0),c=0;return a>=l?(s.forEach(h=>{a=Ee(h,a),a=Math.max(a+h.out,se(h,a))}),o.forEach(h=>{l=Ee(h,l),l=Math.max(l+h.in,se(h,l))})):(o.forEach(h=>{l=Ee(h,l),l=Math.max(l+h.in,se(h,l))}),s.forEach(h=>{a=Ee(h,a),a=Math.max(a+h.out,se(h,a))})),r.forEach(h=>{let u=n.filter(d=>d.x===h.x&&jt(d.y)).reduce((d,f)=>Math.max(d,f.y+Math.max(f.in,f.out)),0);u=Ee(h,u),u=Math.max(u+h.in,cs(h,u)),u=Math.max(u+h.out,se(h,u)),c=Math.max(c,u)}),Math.max(a,l,c)}function _g(n,t){n.sort((r,a)=>Math.max(a.in,a.out)-Math.max(r.in,r.out));const e=n[0];e.y=0;const i=cs(e,0),s=se(e,0),o=yg(n,t);return Math.max(i,s,o)}function xg(n,t){let e=0,i=0;for(let s=0;s<=t;s++){let o=i;const r=n.filter(a=>a.x===s).sort((a,l)=>a.priority-l.priority);i=r[0].to.filter(a=>a.node.x>s+1).reduce((a,l)=>a+l.flow,0)||0;for(const a of r)a.y=o,o+=Math.max(a.out,a.in);e=Math.max(o,e)}return e}function wg(n,t){let e=1,i=0,s=0,o=0;const r=[];n.sort(mg);for(const a of n){if(a.y){if(a.x===0)r.push(a.y);else{for(i!==a.x&&(i=a.x,s=0),e=s+1;e<r.length&&!(r[e]>a.y);e++);s=e}a.y+=e*t,e++}o=Math.max(o,a.y+Math.max(a.in,a.out))}return o}function vg(n,t){n.forEach(e=>{const i=Math[t](e.in||e.out,e.out||e.in),s=i<e.in,o=i<e.out;let r=0,a=e.from.length;e.from.sort((l,c)=>l.node.y+l.node.out/2-(c.node.y+c.node.out/2)).forEach((l,c)=>{s?l.addY=c*(i-l.flow)/(a-1):(l.addY=r,r+=l.flow)}),r=0,a=e.to.length,e.to.sort((l,c)=>l.node.y+l.node.in/2-(c.node.y+c.node.in/2)).forEach((l,c)=>{o?l.addY=c*(i-l.flow)/(a-1):(l.addY=r,r+=l.flow)})})}function Mg(n,t,e,i){const s=[...n.values()],o=gg(n,t),a=(e?xg(s,o):_g(s,o))*.03,l=wg(s,a);return vg(s,i),{maxX:o,maxY:l}}function kg(n){const t=new Map;for(let i=0;i<n.length;i++){const{from:s,to:o,flow:r}=n[i];if(!t.has(s))t.set(s,{key:s,in:0,out:r,from:[],to:[{key:o,flow:r,index:i}]});else{const a=t.get(s);a.out+=r,a.to.push({key:o,flow:r,index:i})}if(!t.has(o))t.set(o,{key:o,in:r,out:0,from:[{key:s,flow:r,index:i}],to:[]});else{const a=t.get(o);a.in+=r,a.from.push({key:s,flow:r,index:i})}}const e=(i,s)=>s.flow-i.flow;return[...t.values()].forEach(i=>{i.from=i.from.sort(e),i.from.forEach(s=>{s.node=t.get(s.key)}),i.to=i.to.sort(e),i.to.forEach(s=>{s.node=t.get(s.key)})}),t}function Ho(n,t,e){for(const i of n)if(i.key===t&&i.index===e)return i.addY;return 0}class ai extends Et{parseObjectData(t,e,i,s){const{from:o="from",to:r="to",flow:a="flow"}=this.options.parsing,l=e.map(({[o]:y,[r]:w,[a]:M})=>({from:y,to:w,flow:M})),{xScale:c,yScale:h}=t,u=[],d=this._nodes=kg(l),{column:f,priority:g,size:p}=this.getDataset();if(g)for(const y of d.values())y.key in g&&(y.priority=g[y.key]);if(f)for(const y of d.valu
* chartjs-adapter-date-fns v3.0.0
* https://www.chartjs.org
* (c) 2022 chartjs-adapter-date-fns Contributors
* Released under the MIT license
*/const Ag={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Lr._date.override({_id:"date-fns",formats:function(){return Ag},parse:function(n,t){if(n===null||typeof n>"u")return null;const e=typeof n;return e==="number"||n instanceof Date?n=R(n):e==="string"&&(typeof t=="string"?n=zl(n,t,new Date,this.options):n=Hl(n,this.options)),ga(n)?n.getTime():null},format:function(n,t){return j(n,t,this.options)},add:function(n,t,e){switch(e){case"millisecond":return Jn(n,t);case"second":return Pa(n,t);case"minute":return Ma(n,t);case"hour":return va(n,t);case"day":return Gn(n,t);case"week":return Da(n,t);case"month":return $i(n,t);case"quarter":return ka(n,t);case"year":return Ca(n,t);default:return n}},diff:function(n,t,e){switch(e){case"millisecond":return ti(n,t);case"second":return Ra(n,t);case"minute":return Aa(n,t);case"hour":return Ta(n,t);case"day":return Qo(n,t);case"week":return Ia(n,t);case"month":return Zo(n,t);case"quarter":return Fa(n,t);case"year":return Ea(n,t);default:return 0}},startOf:function(n,t,e){switch(t){case"second":return Wl(n);case"minute":return za(n);case"hour":return Nl(n);case"day":return ya(n);case"week":return Ke(n);case"isoWeek":return Ke(n,{weekStartsOn:+e});case"month":return ba(n);case"quarter":return ma(n);case"year":return pa(n);default:return n}},endOf:function(n,t){switch(t){case"second":return Ha(n);case"minute":return Wa(n);case"hour":return Na(n);case"day":return qo(n);case"week":return xa(n);case"month":return Uo(n);case"quarter":return _a(n);case"year":return Ba(n);default:return n}}});at.register({LineController:Rn,LineElement:Vt,ArcElement:He,BarController:Fn,TimeScale:sn,PieController:Ri,BarElement:Nn,Filler:wf,Colors:tf,LinearScale:Vi,CategoryScale:Hi,PointElement:Bn,Tooltip:If,Legend:Cf});const ea={dates:wa,boxes:sc,accounts:ag,budgets:cg,categories:ug,sankey:Dg,subscriptions:Sg,piggies:Tg};function na(n){Object.keys(n).forEach(t=>{console.log(`Loading page component "${t}"`);let e=n[t]();Alpine.data(t,()=>e)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{na(ea)});window.bootstrapped&&na(ea);