@sisense/sdk-ui-preact 1.34.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +1 -1
- package/dist/ai.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +3 -3
- package/dist/{use-common-filters-Bw15BNGn-9af1ab9b.js → use-common-filters-CRL16HJ4-74ae559f.js} +4 -4
- package/dist/{use-common-filters-Bw15BNGn-57e81698.cjs → use-common-filters-CRL16HJ4-f5d9b1aa.cjs} +2 -2
- package/package.json +4 -7
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Ft, B as Ca, F as ce, A as gl, u as ve, _ as te, r as Ze, O as gp, d as qe, $ as sd, h as ee, a as k, b as me, q as V, p as Y, N as Be, D as ae, Q as se, s as Lt, x as F, H as f, P as hg, n as bp, c as W, e as ei, k as bl, S as vl, f as $n, i as wr, T as yl, j as ti, l as wl, m as zt, o as jt, t as fg, v as mg, w as gg, L as bg, y as ni, z as vg, R as vp, C as z, E as xe, G as Wr, I as Da, J as he, K as yg, M as yp, U as wg, V as j, W as Un, X as wp, Y as xr, Z as Kt, a0 as xg, a1 as xp, a2 as kp, a3 as Sp, a4 as xl, a5 as _p, a6 as xn, a7 as Ee, a8 as kg, a9 as Cp, aa as Sg, ab as _g, ac as Cg, ad as ft, ae as Dg, af as Dp, ag as Mg, ah as Tg, ai as $t, aj as St, ak as on, al as ir, am as ea, an as Mp, ao as ld, ap as cd, aq as ri, ar as Ag, as as dd, at as ud, au as Mt, av as Vn, aw as an, ax as kn, ay as Tp, az as Br, aA as Fn, aB as pd, aC as Eg, aD as Wt, aE as Ng, aF as Lg, aG as Ap, aH as Ig, aI as Kr, aJ as Og, aK as kl, aL as vt, aM as bo, aN as Ht, aO as Ep, aP as Pg, aQ as yt, aR as oi, aS as ai, aT as ii, aU as si, aV as Rg, aW as Yr, aX as Ge, aY as Sn, aZ as li, a_ as Np, a$ as Fg, b0 as Sl, b1 as Lp, b2 as Ip, b3 as ur, b4 as Q, b5 as re, b6 as Te, b7 as ci, b8 as _l, b9 as Cl, ba as Io, bb as Dl, bc as jg, bd as Op, be as Ml, bf as Tl, bg as Oo, bh as di, bi as Pp, bj as Rp, bk as ui, bl as Al, bm as hd, bn as zg, bo as Hg, bp as Wg, bq as Bg, br as El, bs as Nl, bt as sr, bu as mn, bv as Ma, bw as Yg, bx as Ta, by as pi, bz as $g, bA as xo, bB as Ve, bC as Rs, bD as Fp, bE as Ll, bF as Fs, bG as Ug, bH as Vg, bI as qg, bJ as jp, bK as zp, bL as Hp, bM as Gg, bN as Wp, bO as Qg, bP as Zg, bQ as fd, bR as Ji, bS as Xg, bT as Kg, bU as Jg, bV as eb, bW as tb, bX as qn, bY as vo, bZ as nb, b_ as rb, b$ as Bp, c0 as ob, c1 as Yp, c2 as qt, c3 as md, c4 as gd, c5 as bd, c6 as vd, c7 as ab, c8 as hi, c9 as ib, ca as sb, cb as es, cc as Il, cd as Dn, ce as Po, cf as $p, cg as lb, ch as cb, ci as fi, cj as Up, ck as db, cl as ub, cm as pb, cn as ts, co as ns, cp as hb, cq as fb, cr as mb, cs as rs, ct as gb, cu as bb, cv as vb, cw as yb, cx as Aa, cy as js, cz as Vp, cA as wb, cB as os, cC as xb, cD as kb, cE as mi, cF as Sb, cG as qp, cH as Ol, cI as _b, cJ as Cb, cK as Ue, cL as Gp, cM as Ea, cN as Et, cO as yd, cP as un, cQ as wd, cR as xd, cS as Db, cT as Mb, cU as Tb, cV as Ab, cW as zs, cX as Eb, cY as Nb, cZ as Lb, c_ as Qp, c$ as Ib, d0 as Ob, d1 as Pb, d2 as Rb, d3 as Fb, d4 as jb, d5 as Na, d6 as zb, d7 as Hb, d8 as Gn, d9 as Wb, da as Bb, db as Yb, dc as $b, dd as Zp, de as Ub, df as mt, dg as Vb, dh as Pl, di as qb, dj as Gb, dk as Rl, dl as it, dm as Ro, dn as Qb, dp as Zb, dq as Xp, dr as Xb, ds as Kb, dt as Jb, du as e0, dv as Kp, dw as t0, dx as n0, dy as kd, dz as r0, dA as o0, dB as a0, dC as i0, dD as s0, dE as l0, dF as c0, dG as d0, dH as Sd, dI as as, dJ as ta, dK as u0, dL as p0, dM as h0, dN as f0, dO as m0, dP as g0, dQ as Hs, dR as b0, dS as v0, dT as Me, dU as Pt, dV as Ws, dW as Bs, dX as y0, dY as w0, dZ as _d, d_ as Jp, d$ as x0, e0 as k0, e1 as S0, e2 as _0, e3 as C0, e4 as D0, e5 as M0, e6 as Fl, e7 as T0, e8 as or, e9 as A0, ea as E0, eb as eh, ec as jl, ed as N0, ee as kr, ef as L0, eg as zl, eh as th, ei as Cd, ej as I0, ek as nh, el as O0, em as P0, en as Dd, eo as rh, ep as R0, eq as is, er as F0, es as oh, et as j0, eu as z0, ev as H0, ew as W0, ex as B0 } from "./use-common-filters-
|
|
2
|
-
import { ey as sI, ez as lI, eA as cI, eB as dI, eC as uI, eD as pI, eE as hI, eF as fI, eG as mI, eH as gI, eI as bI } from "./use-common-filters-
|
|
1
|
+
import { g as Ft, B as Ca, F as ce, A as gl, u as ve, _ as te, r as Ze, O as gp, d as qe, $ as sd, h as ee, a as k, b as me, q as V, p as Y, N as Be, D as ae, Q as se, s as Lt, x as F, H as f, P as hg, n as bp, c as W, e as ei, k as bl, S as vl, f as $n, i as wr, T as yl, j as ti, l as wl, m as zt, o as jt, t as fg, v as mg, w as gg, L as bg, y as ni, z as vg, R as vp, C as z, E as xe, G as Wr, I as Da, J as he, K as yg, M as yp, U as wg, V as j, W as Un, X as wp, Y as xr, Z as Kt, a0 as xg, a1 as xp, a2 as kp, a3 as Sp, a4 as xl, a5 as _p, a6 as xn, a7 as Ee, a8 as kg, a9 as Cp, aa as Sg, ab as _g, ac as Cg, ad as ft, ae as Dg, af as Dp, ag as Mg, ah as Tg, ai as $t, aj as St, ak as on, al as ir, am as ea, an as Mp, ao as ld, ap as cd, aq as ri, ar as Ag, as as dd, at as ud, au as Mt, av as Vn, aw as an, ax as kn, ay as Tp, az as Br, aA as Fn, aB as pd, aC as Eg, aD as Wt, aE as Ng, aF as Lg, aG as Ap, aH as Ig, aI as Kr, aJ as Og, aK as kl, aL as vt, aM as bo, aN as Ht, aO as Ep, aP as Pg, aQ as yt, aR as oi, aS as ai, aT as ii, aU as si, aV as Rg, aW as Yr, aX as Ge, aY as Sn, aZ as li, a_ as Np, a$ as Fg, b0 as Sl, b1 as Lp, b2 as Ip, b3 as ur, b4 as Q, b5 as re, b6 as Te, b7 as ci, b8 as _l, b9 as Cl, ba as Io, bb as Dl, bc as jg, bd as Op, be as Ml, bf as Tl, bg as Oo, bh as di, bi as Pp, bj as Rp, bk as ui, bl as Al, bm as hd, bn as zg, bo as Hg, bp as Wg, bq as Bg, br as El, bs as Nl, bt as sr, bu as mn, bv as Ma, bw as Yg, bx as Ta, by as pi, bz as $g, bA as xo, bB as Ve, bC as Rs, bD as Fp, bE as Ll, bF as Fs, bG as Ug, bH as Vg, bI as qg, bJ as jp, bK as zp, bL as Hp, bM as Gg, bN as Wp, bO as Qg, bP as Zg, bQ as fd, bR as Ji, bS as Xg, bT as Kg, bU as Jg, bV as eb, bW as tb, bX as qn, bY as vo, bZ as nb, b_ as rb, b$ as Bp, c0 as ob, c1 as Yp, c2 as qt, c3 as md, c4 as gd, c5 as bd, c6 as vd, c7 as ab, c8 as hi, c9 as ib, ca as sb, cb as es, cc as Il, cd as Dn, ce as Po, cf as $p, cg as lb, ch as cb, ci as fi, cj as Up, ck as db, cl as ub, cm as pb, cn as ts, co as ns, cp as hb, cq as fb, cr as mb, cs as rs, ct as gb, cu as bb, cv as vb, cw as yb, cx as Aa, cy as js, cz as Vp, cA as wb, cB as os, cC as xb, cD as kb, cE as mi, cF as Sb, cG as qp, cH as Ol, cI as _b, cJ as Cb, cK as Ue, cL as Gp, cM as Ea, cN as Et, cO as yd, cP as un, cQ as wd, cR as xd, cS as Db, cT as Mb, cU as Tb, cV as Ab, cW as zs, cX as Eb, cY as Nb, cZ as Lb, c_ as Qp, c$ as Ib, d0 as Ob, d1 as Pb, d2 as Rb, d3 as Fb, d4 as jb, d5 as Na, d6 as zb, d7 as Hb, d8 as Gn, d9 as Wb, da as Bb, db as Yb, dc as $b, dd as Zp, de as Ub, df as mt, dg as Vb, dh as Pl, di as qb, dj as Gb, dk as Rl, dl as it, dm as Ro, dn as Qb, dp as Zb, dq as Xp, dr as Xb, ds as Kb, dt as Jb, du as e0, dv as Kp, dw as t0, dx as n0, dy as kd, dz as r0, dA as o0, dB as a0, dC as i0, dD as s0, dE as l0, dF as c0, dG as d0, dH as Sd, dI as as, dJ as ta, dK as u0, dL as p0, dM as h0, dN as f0, dO as m0, dP as g0, dQ as Hs, dR as b0, dS as v0, dT as Me, dU as Pt, dV as Ws, dW as Bs, dX as y0, dY as w0, dZ as _d, d_ as Jp, d$ as x0, e0 as k0, e1 as S0, e2 as _0, e3 as C0, e4 as D0, e5 as M0, e6 as Fl, e7 as T0, e8 as or, e9 as A0, ea as E0, eb as eh, ec as jl, ed as N0, ee as kr, ef as L0, eg as zl, eh as th, ei as Cd, ej as I0, ek as nh, el as O0, em as P0, en as Dd, eo as rh, ep as R0, eq as is, er as F0, es as oh, et as j0, eu as z0, ev as H0, ew as W0, ex as B0 } from "./use-common-filters-CRL16HJ4-74ae559f.js";
|
|
2
|
+
import { ey as sI, ez as lI, eA as cI, eB as dI, eC as uI, eD as pI, eE as hI, eF as fI, eG as mI, eH as gI, eI as bI } from "./use-common-filters-CRL16HJ4-74ae559f.js";
|
|
3
3
|
class Y0 {
|
|
4
4
|
constructor(t, n = []) {
|
|
5
5
|
this.component = t, this.contextConnectors = n, this.contexts = [], this.subscriptions = [], this.prepareContexts();
|
|
@@ -2039,7 +2039,7 @@ const By = (e) => Ye(void 0, [e], function* ({ defaultDataSource: t, url: n, tok
|
|
|
2039
2039
|
if (!d)
|
|
2040
2040
|
throw new se("errors.sisenseContextNoAuthentication");
|
|
2041
2041
|
Wy();
|
|
2042
|
-
const u = new wv(l, d, "sdk-ui-1.
|
|
2042
|
+
const u = new wv(l, d, "sdk-ui-1.35.0"), p = yield u.login(), h = dh(d) || !p, m = yield Fy(i || {}, u, h), g = new Wp(Hy(l, m.user.tenant.name), d), b = new Ly(u, g);
|
|
2043
2043
|
return {
|
|
2044
2044
|
httpClient: u,
|
|
2045
2045
|
pivotClient: g,
|
package/dist/{use-common-filters-Bw15BNGn-9af1ab9b.js → use-common-filters-CRL16HJ4-74ae559f.js}
RENAMED
|
@@ -74562,7 +74562,7 @@ const bFt = { sdkComponentInit: { internal: !0, external: !0 }, sdkHookInit: { i
|
|
|
74562
74562
|
const { tracking: n, app: o } = Cr(), { trackEvent: i } = B3(), r = An(_X), a = me(!1);
|
|
74563
74563
|
Ae(() => {
|
|
74564
74564
|
if (!(!n || !o) && !a.current && !r) {
|
|
74565
|
-
const s = { packageName: n.packageName, packageVersion: "1.
|
|
74565
|
+
const s = { packageName: n.packageName, packageVersion: "1.35.0", componentName: t, attributesUsed: Object.entries(e).filter(([, l]) => !!l).map(([l]) => l).join(", ") };
|
|
74566
74566
|
i(xFt, s, !n.enabled).finally(() => a.current = !0);
|
|
74567
74567
|
}
|
|
74568
74568
|
}, [t, e, n, r, i, o]);
|
|
@@ -74584,7 +74584,7 @@ const CX = class extends Fi {
|
|
|
74584
74584
|
}
|
|
74585
74585
|
sendErrorTracking(e) {
|
|
74586
74586
|
try {
|
|
74587
|
-
this.handler({ packageName: "sdk-ui", packageVersion: "1.
|
|
74587
|
+
this.handler({ packageName: "sdk-ui", packageVersion: "1.35.0", component: this.componentName, error: e });
|
|
74588
74588
|
} catch (n) {
|
|
74589
74589
|
console.log("Failed to send tracking error event: ", n);
|
|
74590
74590
|
}
|
|
@@ -90319,13 +90319,13 @@ function nfe(t, e, n, o) {
|
|
|
90319
90319
|
return !i(n, o);
|
|
90320
90320
|
}
|
|
90321
90321
|
const BK = "sdkHookInit", ofe = (t, e, n, o) => {
|
|
90322
|
-
n && wX(BK, { packageName: e, packageVersion: "1.
|
|
90322
|
+
n && wX(BK, { packageName: e, packageVersion: "1.35.0", hookName: t }, n.httpClient).finally(o);
|
|
90323
90323
|
};
|
|
90324
90324
|
function oce(t) {
|
|
90325
90325
|
const { tracking: e, app: n } = Cr(), { trackEvent: o } = B3(), i = me(!1);
|
|
90326
90326
|
Ae(() => {
|
|
90327
90327
|
if (!(!e || !n) && !i.current) {
|
|
90328
|
-
const r = { packageName: e.packageName || "sdk-ui", packageVersion: "1.
|
|
90328
|
+
const r = { packageName: e.packageName || "sdk-ui", packageVersion: "1.35.0", hookName: t };
|
|
90329
90329
|
o(BK, r, !e.enabled).finally(() => i.current = !0);
|
|
90330
90330
|
}
|
|
90331
90331
|
}, [e, t, o, n]);
|
package/dist/{use-common-filters-Bw15BNGn-57e81698.cjs → use-common-filters-CRL16HJ4-f5d9b1aa.cjs}
RENAMED
|
@@ -755,7 +755,7 @@ Error generating stack: `+Mt.message+`
|
|
|
755
755
|
`)}}),J$=(t,e,n,o,i,r,a)=>{var s,l;const d=[],_=[];o.seriesValues.forEach(j=>{_.push(j),d.push(j)}),o.rangeValues.forEach(([j,E])=>{_.push(E),d.push(j)});const M=Se(ee({},o),{y:_,seriesToColorMap:o.seriesToColorMap}),c=TA(Se(ee({},t),{type:"cartesian"}),e,n,M,i,r,a),$={};c.options.series.forEach(j=>{$[j.name]=j});const S=Se(ee({},o),{y:d,seriesToColorMap:o.seriesToColorMap}),g=TA(Se(ee({},t.seriesOther),{type:"cartesian"}),e,n,S,i,r,a),D={};g.options.series.forEach(j=>{D[j.name]=j});let W=1/0,G=-1/0,Y=-1,H=0;if(c.options.series.forEach((j,E)=>{if(o.breakBy.length===0&&E<o.seriesValues.length)hm(j.name)&&(Y=qBt(j,D,$)),j.zIndex=1,j.data.forEach(z=>{z.y&&z.y<W&&(W=z.y),z.y&&z.y>G&&(G=z.y)});else{const z=D[j.name].data;j.yAxis=0;let C=0;o.breakBy.length===0&&(C=E-o.seriesValues.length);const y=o.rangeValues[C],f=y[0].column.name.indexOf("_")+1,w=y[1].column.name.substring(f),x=y[0].column.name.substring(f);j.type="arearange",hm(j.name)&&ZBt(j,D),H=Math.max(j.data.length,H),j.data=j.data.map((P,U)=>{const Z=Se(ee({},P),{low:z[U].y,high:P.y,y:void 0,upperPointName:w,lowerPointName:x});return Z.low&&Z.low<W&&(W=Z.low),Z.high&&Z.high>G&&(G=Z.high),Z}),hm(j.name)&&KBt(j,D)}}),c.options.xAxis||(c.options.xAxis=[]),Y>0&&QBt(c.options.xAxis,Y,H),e==="arearange"&&n.lineType==="smooth"){const j="areasplinerange";c.options.chart.type=j,(s=c.options.navigator)!=null&&s.series&&(c.options.navigator.series.type=j)}e==="arearange"&&(c.options.tooltip=eFt(!1,o,i));const[R]=(l=c.options.yAxis)!=null?l:[],N=Se(ee({},R),{min:W,max:G});return c.options.yAxis=[N],c},QX=t=>t instanceof Object&&"data"in t,nFt=t=>t.rows.length===0,pm="$rownum",JX=t=>{let e=0;const n=t.rows.map(i=>{const r=t.columns.map((a,s)=>{var l;const d=i[s];if(QX(d)){let c=d.data.toString();if(as(a.type)){const $="1111-11-11T";c.startsWith($)&&(c=c.replace($,"1970-01-01T"))}return ee(ee({rawValue:d.data,displayValue:(l=d.text)!=null?l:c,compareValue:Vm(c,a.type)},d.blur!==void 0?{blur:d.blur}:{}),d.color?{color:d.color}:{})}let _,M;return as(a.type)&&(_=Vm(`${d}`,a.type),M=new Date(_.value).toISOString()),{rawValue:M??d,displayValue:`${d??""}`,compareValue:_}});return e++,r.push({displayValue:`${e}`,rawValue:e}),r}),o=t.columns.map((i,r)=>({name:i.name,type:i.type,index:r,direction:0}));return o.push({name:pm,type:"number",index:o.length,direction:0}),{columns:o,rows:n}},wy=(t,e)=>{var n;if(e.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const o=t.x.length;let i=vp(e,t.x.map(({column:{name:M}})=>M));i=i.map((M,c)=>Se(ee({},M),{direction:tq(t.x[c].sortType)}));const r=vp(e,t.breakBy.map(({column:{name:M}})=>M)),a=t.y.filter(({sortType:M})=>M&&M!=="sortNone"),s=i.length>1?1:0,l=eq(e,a,i,((n=i[s])==null?void 0:n.direction)===0?pm:void 0),d=t.y.map(({column:{name:M}})=>M),_=t.breakBy.length>0?aFt(e,l,i,d[0],r,t.breakBy):oFt(e,l,i,d,t.y);return Se(ee({},_),{xAxisCount:o,type:"cartesian"})},tq=t=>{switch(t){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},eq=(t,e,n,o)=>{if(n.length===0)return[{key:"",xValues:[""],rawValues:[]}];const i=e.map(({column:{name:M}})=>({column:M,agg:"sum",title:M}));if(o){const M={column:o,title:o,agg:"min"};i.push(M)}const r=xX(t,n,i),a=[];let s=0;if(n.length===2){s=1;const M=Fi(r,n[0].name);M&&a.push(M)}if(e.map(M=>{const c=Fi(r,M.column.name);return c&&a.push(Se(ee({},c),{direction:M.sortType==="sortAsc"?1:-1})),M}),o){const M=Fi(r,o);M&&a.push(M)}if(n.length>0){const M=Fi(r,n[s].name);M&&a.push(M)}const l=hN(r,a),d=vp(l,n.map(M=>M.name)),_=wX(l,d);return _.rows.map(M=>{const c=xb(M,_.columns),$=c.map(D=>D.displayValue),S=c.map(D=>{var W;return(W=D.rawValue)!=null?W:D.displayValue}),g=c.map(D=>{var W;return(W=D==null?void 0:D.compareValue)==null?void 0:W.value});return{key:S.join(","),xValues:$,rawValues:S,compareValues:g}})},nq=(t,e,n)=>{var o,i;const r=n?Kr(t,n):1e-5,{color:a,rawValue:s}=(i=t[(o=n==null?void 0:n.index)!=null?o:0])!=null?i:{};return ee({rawValue:s,xValue:e.rawValues,xDisplayValue:e.xValues,xCompareValue:e.compareValues,value:r===void 0?NaN:r,blur:n?pN(t,n):void 0},a&&{color:a})},oFt=(t,e,n,o,i)=>{const r=o.length>0?vp(t,o):[void 0],a=i.reduce((d,_)=>(d[_.column.name]=_,d),{}),s=fN(t.rows,n),l=r.map(d=>{var _,M;let c=e.map(D=>{const W=s[D.key],G=W?W[0]:[];return nq(G,D,d)});const $=(_=d==null?void 0:d.name)!=null?_:"",S=$?Qi(a[$]):"",g=(M=a[$])==null?void 0:M.color;return g&&(c=FBt(c,g)),{name:$,title:S,data:c}});return{xValues:e,series:l}},iFt=(t,e,n)=>xb(t,e).map((o,i)=>{const r=ni(n[i].numberFormatConfig);return Li(e[i].type)?ki(r,parseFloat(o.displayValue)):o.displayValue}).join(","),rFt=(t,e)=>xb(t,e).map(({rawValue:n})=>n),aFt=(t,e,n,o,i,r)=>{const a=Fi(t,o),s=dN(t.rows,i).map(l=>{const d=l[0];return{seriesName:iFt(d,i,r),seriesValues:rFt(d,i),rowsByXColumns:fN(l,n)}}).map(l=>{const d=e.map(_=>{const M=l.rowsByXColumns[_.key],c=M?M[0]:[];return nq(c,_,a)});return{name:l.seriesName,data:d,custom:{rawValue:l.seriesValues}}});return{xValues:e,series:s}},oq=(t,e)=>{const n=()=>Se(ee({},t),{y:[]}),o=n(),i=n(),r=1,a=0;t.seriesValues.forEach(d=>{o.y.push(d),i.y.push(d)}),t.rangeValues.forEach(d=>{const _=d[r],M=d[a];o.y.push(_),i.y.push(M)});const s=wy(o,e),l=wy(i,e);return Se(ee({},s),{type:"range",seriesOther:l})},iq=t=>t.rangeValues?!1:t.y.some(e=>hm(Qi(e))),rq=t=>{const e=t.y.filter(i=>hm(Qi(i))).map(i=>{const r=Se(ee({},i),{column:Wm(i.column,{title:i.column.title&&A_(i.column.title),name:`${i.column.name}_upper`})});return[Se(ee({},i),{column:Wm(i.column,{title:i.column.title&&A_(i.column.title),name:`${i.column.name}_lower`})}),r]}),n=e.concat(t.y).flat(),o=t.y;return Se(ee({},t),{rangeValues:e,seriesValues:o,y:n})},sFt=(t,e)=>{const n=rq(t);return Se(ee({},oq(n,e)),{type:"cartesian"})},lFt=(t,e,n,o,i,r,a)=>{switch(t.type){case"range":return J$(t,e,n,o,i,r,a);case"cartesian":{const s=o,l=iq(s)?J$(Se(ee({},t),{type:"range"}),e,n,rq(s),i,r,a):TA(t,e,n,s,i,r,a);return t$t(l.options.series),l}case"categorical":return C6t(t,e,n,o,i,r);case"scatter":return Y6t(t,e,n,o,r);case"boxplot":return tFt(t,n,o,i,r);default:throw new Mn("errors.unexpectedChartType",{chartType:t.type})}},cFt={legend:{enabled:!0,position:"bottom"},navigator:{enabled:!0},markers:{enabled:!1,fill:"filled",size:"small"},seriesLabels:{enabled:!1,rotation:0},xAxis:{enabled:!0,gridLines:!1,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"X Axis title"}},yAxis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y Axis title"}},y2Axis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y2 Axis title"}},convolution:{enabled:!1,selectedConvolutionType:"byPercentage",minimalIndependentSlicePercentage:3,independentSlicesCount:7},labels:{categories:!0,enabled:!0,percent:!0,decimals:!1,value:!1}},gg=()=>Wa(cFt),uFt=(t,e)=>{var n;if(!e)return t;const o={backgroundColor:e.chart.backgroundColor},i={style:{fontFamily:e.typography.fontFamily}},r={itemStyle:{color:e.chart.textColor,fontFamily:e.typography.fontFamily}},a={series:{dataLabels:{style:{color:e.chart.textColor,fontFamily:e.typography.fontFamily}}}},s={activeDataLabelStyle:{color:e.chart.textColor},breadcrumbs:{buttonTheme:{fill:e.general.brandColor,stroke:e.general.brandColor,style:{color:e.general.primaryButtonTextColor},states:{hover:{fill:e.general.primaryButtonHoverColor,stroke:e.general.primaryButtonHoverColor}}}}},l={chart:o,tooltip:i,legend:r,plotOptions:a,drilldown:s},d={labels:{style:{color:e.chart.textColor,fontFamily:e.typography.fontFamily}},title:{style:{color:e.chart.textColor,fontFamily:e.typography.fontFamily}}},_={color:e==null?void 0:e.chart.backgroundColor,label:{style:{color:e.chart.textColor,fontFamily:e.typography.fontFamily}}},M=Vi(t,l);return M.xAxis=(n=M.xAxis)==null?void 0:n.map(c=>{var $;return c.plotBands=($=c.plotBands)==null?void 0:$.map(S=>Vi(S,Se(ee({},_),{color:S.color||(e==null?void 0:e.chart.backgroundColor)}))),Vi(c,d)}),M.yAxis&&(M.yAxis=M.yAxis.map(c=>{var $;return c.plotBands=($=c.plotBands)==null?void 0:$.map(S=>Vi(S,Se(ee({},_),{color:S.color||(e==null?void 0:e.chart.backgroundColor)}))),Vi(c,d)})),M},dFt=600,hFt=300,pFt=(t,e,n)=>{const o={duration:e.chart.animation.init.duration==="auto"?dFt:e.chart.animation.init.duration},i={duration:e.chart.animation.redraw.duration==="auto"?hFt:e.chart.animation.redraw.duration};return Vi(t,{accessibility:{enabled:n},chart:{animation:i},plotOptions:{series:{animation:o}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})},fFt="_alert_box_10ttx_1",mFt="_content_10ttx_8",gFt="_alert_10ttx_1",hM={alert_box:fFt,content:mFt,alert:gFt},vFt=({alerts:t=[]})=>re("div",{className:hM.alert_box,children:re("div",{className:hM.content,children:[...new Set(t)].map((e,n)=>re("div",{className:hM.alert,children:e},`alert-${n}`))})});function aq(t,e,n){n=typeof n=="function"?n:void 0;var o=n?n(t,e):void 0;return o===void 0?Xy(t,e,void 0,n):!!o}var sq={exports:{}};(function(t,e){(function(n,o){t.exports=o(an)})(typeof self<"u"?self:es,function(n){return function(o){function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return o[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}var r={};return i.m=o,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:l})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=0)}([function(o,i,r){function a(){return a=Object.assign?Object.assign.bind():function(G){for(var Y=1;Y<arguments.length;Y++){var H=arguments[Y];for(var R in H)Object.prototype.hasOwnProperty.call(H,R)&&(G[R]=H[R])}return G},a.apply(this,arguments)}function s(G){return M(G)||_(G)||d(G)||l()}function l(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
756
756
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(G,Y){if(G){if(typeof G=="string")return c(G,Y);var H=Object.prototype.toString.call(G).slice(8,-1);return H==="Object"&&G.constructor&&(H=G.constructor.name),H==="Map"||H==="Set"?Array.from(G):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?c(G,Y):void 0}}function _(G){if(typeof Symbol<"u"&&G[Symbol.iterator]!=null||G["@@iterator"]!=null)return Array.from(G)}function M(G){if(Array.isArray(G))return c(G)}function c(G,Y){(Y==null||Y>G.length)&&(Y=G.length);for(var H=0,R=new Array(Y);H<Y;H++)R[H]=G[H];return R}function $(G){"@babel/helpers - typeof";return($=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(G)}Object.defineProperty(i,"__esModule",{value:!0}),r.d(i,"HighchartsReact",function(){return W});var S=r(1),g=r.n(S),D=typeof window<"u"?S.useLayoutEffect:S.useEffect,W=Object(S.memo)(Object(S.forwardRef)(function(G,Y){var H=Object(S.useRef)(),R=Object(S.useRef)(),N=Object(S.useRef)(G.constructorType),j=Object(S.useRef)(G.highcharts);return D(function(){function E(){var C=G.highcharts||(typeof window>"u"?"undefined":$(window))==="object"&&window.Highcharts,y=G.constructorType||"chart";C?C[y]?G.options?R.current=C[y](H.current,G.options,G.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(R.current){if(G.allowChartUpdate!==!1)if(G.constructorType!==N.current||G.highcharts!==j.current)N.current=G.constructorType,j.current=G.highcharts,E();else if(!G.immutable&&R.current){var z;(z=R.current).update.apply(z,[G.options].concat(s(G.updateArgs||[!0,!0])))}else E()}else E()},[G.options,G.allowChartUpdate,G.updateArgs,G.containerProps,G.highcharts,G.constructorType]),D(function(){return function(){R.current&&(R.current.destroy(),R.current=null)}},[]),Object(S.useImperativeHandle)(Y,function(){return{get chart(){return R.current},container:H}},[]),g.a.createElement("div",a({},G.containerProps,{ref:H}))}));i.default=W},function(o,i){o.exports=n}])})})(sq);var yFt=sq.exports;const bFt=tl(yFt);function CN(t){const e=fe(void 0);return Ae(()=>{e.current=t},[t]),e.current}var lq={exports:{}};(function(t){(function(e){t.exports?t.exports=e:e(Highcharts)})(function(e){var n=e.relativeLength;e.wrap(e.seriesTypes.column.prototype,"translate",function(o){var i=this.options,r=i.topMargin||0,a=i.bottomMargin||0;o.call(this),this.points.forEach(function(s){var l=s.shapeArgs,d=l.width,_=l.height,M=l.x,c=l.y,$=n(i.borderRadiusTopLeft||0,d),S=n(i.borderRadiusTopRight||0,d),g=n(i.borderRadiusBottomRight||0,d),D=n(i.borderRadiusBottomLeft||0,d);if($||S||g||D){var W=Math.min(d,_)/2;$>W&&($=W),S>W&&(S=W),g>W&&(g=W),D>W&&(D=W),s.dlBox=s.shapeArgs,s.shapeType="path",s.shapeArgs={d:[["M",M+$,c+r],["L",M+d-S,c+r],["C",M+d-S/2,c,M+d,c+S/2,M+d,c+S],["L",M+d,c+_-g],["C",M+d,c+_-g/2,M+d-g/2,c+_,M+d-g,c+_+a],["L",M+D,c+_+a],["C",M+D/2,c+_,M,c+_-D/2,M,c+_-D],["L",M,c+$],["C",M,c+$/2,M+$/2,c,M+$,c],["Z"]]}}})})})})(lq);var xFt=lq.exports;const wFt=tl(xFt),_Ft=()=>{(function(t){t.seriesTypes.line.prototype.drawLegendSymbol=t.seriesTypes.area.prototype.drawLegendSymbol,bu.wrap(bu.Series.types.treemap.prototype,"pointAttribs",function(e,...n){var o;const i=e.call(this,...n),r=n[0];return(o=r.options.custom)!=null&&o.blur&&(i.fill=bu.color(r.color).setOpacity(.2).get("rgba"),i.stroke=bu.color(i.stroke).setOpacity(.2).get("rgba")),i})})(bu),function(t){t.Point.prototype.importEvents=function(){const e=this;this.importedEvents&&this.importedEvents.forEach(function(i){i()}),this.importedEvents=[];const n=t.merge(e.series.options.point,e.options),o=n.events;e.events=o,t.objectEach(o,function(i,r){t.isFunction(i)&&e.importedEvents.push(t.addEvent(e,r,i))})}}(bu),wFt(bu)};_Ft();const SFt=_p(function({options:t}){var e,n,o,i,r,a;const s=CN(t),l=Ue(g=>{var D,W,G,Y,H,R,N,j;const E=t;!((Y=(G=(W=(D=E==null?void 0:E.plotOptions)==null?void 0:D.series)==null?void 0:W.point)==null?void 0:G.events)!=null&&Y.click)&&!((j=(N=(R=(H=E==null?void 0:E.plotOptions)==null?void 0:H.series)==null?void 0:R.point)==null?void 0:N.events)!=null&&j.contextmenu)&&(g.container.onclick=null)},[t]),d=g=>g==null?void 0:g.some(({data:D})=>D.some(W=>!!W.marker)),_=(s==null?void 0:s.xAxis)&&(t==null?void 0:t.xAxis)&&((e=s==null?void 0:s.xAxis[0])==null?void 0:e.type)!==((n=t==null?void 0:t.xAxis[0])==null?void 0:n.type),M=!!s&&((o=s==null?void 0:s.navigator)==null?void 0:o.enabled)!==((i=t==null?void 0:t.navigator)==null?void 0:i.enabled),c=d(s==null?void 0:s.series)&&!d(t==null?void 0:t.series),$=!!s&&((r=s==null?void 0:s.chart)==null?void 0:r.type)!==((a=t==null?void 0:t.chart)==null?void 0:a.type),S=_||M||$||c;return re(bFt,{highcharts:bu,options:Wa(t),containerProps:{style:{height:"100%",width:"100%"}},immutable:S,callback:l})},(t,e)=>aq(t,e,(n,o)=>Eu(n)&&Eu(o)?n.toString()===o.toString():void 0)),CFt=t=>t,kN=({chartType:t,chartData:e,dataOptions:n,designOptions:o,onDataPointClick:i,onDataPointContextMenu:r,onDataPointsSelected:a,onBeforeRender:s=CFt})=>{const{app:l}=vr(),{t:d}=wa(),_=[],M=Ue((S,g)=>yC(S,g,l==null?void 0:l.settings.locale,l==null?void 0:l.settings.dateConfig),[]),{themeSettings:c}=er(),$=We(()=>{var S;const{options:g,alerts:D}=lFt(e,t,o,n,d,c,M);_.push(...D);const W=((S=l==null?void 0:l.settings.accessibilityConfig)==null?void 0:S.enabled)||!1,G=pFt(g,c,W),Y=IBt(G,n,{onDataPointClick:i,onDataPointContextMenu:r,onDataPointsSelected:a}),H=uFt(Y,c);return s(H)},[t,e,n,o,c,i,r,s,d]);return $&&Dn("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!_.length&&re(vFt,{alerts:_}),re(SFt,{options:$})]})},kFt=[...kC,...TC,...MC,...OC,...PC],cq=t=>kFt.includes(t),TN=t=>!!t.chartType&&cq(t.chartType)&&!!t.chartData,MN=t=>{var e;return{x:t.category.map(Jr),y:t.value.map(Wi),breakBy:((e=t.breakBy)==null?void 0:e.map(Jr))||[],seriesToColorMap:t.seriesToColorMap}};function uq(t){return[...t.x.map(LA),...t.breakBy.map(LA)].filter(TFt)}function dq(t){return t.y.map(LA).filter(Ro)}function hq(t){return"category"in t&&Wo(t.category)&&"value"in t&&Wo(t.value)&&"breakBy"in t&&Wo(t.breakBy)}function pq(t){return"x"in t&&Wo(t.x)&&t.x.every(Tv)&&"y"in t&&Wo(t.y)&&t.y.every(Tv)&&"breakBy"in t&&Wo(t.breakBy)&&t.breakBy.every(Tv)}function LA(t){return t.column}function TFt(t){return!Ro(t)}function MFt(t){return t.y.some(e=>e.showOnRightAxis)}function fq(t,e){return wy(t,e)}function mq(t,e,n){var o,i,r,a;const s=zp(e,MFt(n)),l=vg(e??{},gg()),d=$C(n,t,l);return Se(ee({},s),{designPerSeries:d,stackType:e.subtype?gq[e.subtype]:qX,showTotal:(i=(o=e.totalLabels)==null?void 0:o.enabled)!=null?i:!1,totalLabelRotation:(a=(r=e.totalLabels)==null?void 0:r.rotation)!=null?a:0})}const gq={"bar/classic":"classic","bar/stacked":"stacked","bar/stacked100":"stack100","column/classic":"classic","column/stackedcolumn":"stacked","column/stackedcolumn100":"stack100"};function vq(t){return"subtype"in t&&t.subtype?Object.keys(gq).includes(t.subtype):!0}var yq=x_?function(t,e){return x_.set(t,e),t}:aS;function _y(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=oS(t.prototype),o=t.apply(n,e);return $r(o)?o:n}}var OFt=1;function PFt(t,e,n){var o=e&OFt,i=_y(t);function r(){var a=this&&this!==na&&this instanceof r?i:t;return a.apply(o?n:this,arguments)}return r}var AFt=Math.max;function bq(t,e,n,o){for(var i=-1,r=t.length,a=n.length,s=-1,l=e.length,d=AFt(r-a,0),_=Array(l+d),M=!o;++s<l;)_[s]=e[s];for(;++i<a;)(M||i<r)&&(_[n[i]]=t[i]);for(;d--;)_[s++]=t[i++];return _}var EFt=Math.max;function xq(t,e,n,o){for(var i=-1,r=t.length,a=-1,s=n.length,l=-1,d=e.length,_=EFt(r-s,0),M=Array(_+d),c=!o;++i<_;)M[i]=t[i];for(var $=i;++l<d;)M[$+l]=e[l];for(;++a<s;)(c||i<r)&&(M[$+n[a]]=t[i++]);return M}function LFt(t,e){for(var n=t.length,o=0;n--;)t[n]===e&&++o;return o}var wq=f8(yq),NFt=/\{\n\/\* \[wrapped with (.+)\] \*/,RFt=/,? & /;function DFt(t){var e=t.match(NFt);return e?e[1].split(RFt):[]}var IFt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function jFt(t,e){var n=e.length;if(!n)return t;var o=n-1;return e[o]=(n>1?"& ":"")+e[o],e=e.join(n>2?", ":" "),t.replace(IFt,`{
|
|
757
757
|
/* [wrapped with `+e+`] */
|
|
758
|
-
`)}function _q(t,e){var n=t==null?0:t.length;return!!n&&iN(t,e,0)>-1}var zFt=1,BFt=2,$Ft=8,FFt=16,WFt=32,HFt=64,VFt=128,UFt=256,GFt=512,YFt=[["ary",VFt],["bind",zFt],["bindKey",BFt],["curry",$Ft],["curryRight",FFt],["flip",GFt],["partial",WFt],["partialRight",HFt],["rearg",UFt]];function XFt(t,e){return zH(YFt,function(n){var o="_."+n[0];e&n[1]&&!_q(t,o)&&t.push(o)}),t.sort()}function Sq(t,e,n){var o=e+"";return oL(t,jFt(o,XFt(DFt(o),n)))}var qFt=1,ZFt=2,KFt=4,QFt=8,t6=32,e6=64;function Cq(t,e,n,o,i,r,a,s,l,d){var _=e&QFt,M=_?a:void 0,c=_?void 0:a,$=_?r:void 0,S=_?void 0:r;e|=_?t6:e6,e&=~(_?e6:t6),e&KFt||(e&=~(qFt|ZFt));var g=[t,e,i,$,M,S,c,s,l,d],D=n.apply(void 0,g);return lA(t)&&wq(D,g),D.placeholder=o,Sq(D,t,e)}function kq(t){var e=t;return e.placeholder}var JFt=Math.min;function tWt(t,e){for(var n=t.length,o=JFt(e.length,n),i=nS(t);o--;){var r=e[o];t[o]=Hy(r,n)?i[r]:void 0}return t}var n6="__lodash_placeholder__";function N_(t,e){for(var n=-1,o=t.length,i=0,r=[];++n<o;){var a=t[n];(a===e||a===n6)&&(t[n]=n6,r[i++]=n)}return r}var eWt=1,nWt=2,oWt=8,iWt=16,rWt=128,aWt=512;function ON(t,e,n,o,i,r,a,s,l,d){var _=e&rWt,M=e&eWt,c=e&nWt,$=e&(oWt|iWt),S=e&aWt,g=c?void 0:_y(t);function D(){for(var W=arguments.length,G=Array(W),Y=W;Y--;)G[Y]=arguments[Y];if($)var H=kq(D),R=LFt(G,H);if(o&&(G=bq(G,o,i,$)),r&&(G=xq(G,r,a,$)),W-=R,$&&W<d){var N=N_(G,H);return Cq(t,e,ON,D.placeholder,n,G,N,s,l,d-W)}var j=M?n:this,E=c?j[t]:t;return W=G.length,s?G=tWt(G,s):S&&W>1&&G.reverse(),_&&l<W&&(G.length=l),this&&this!==na&&this instanceof D&&(E=g||_y(E)),E.apply(j,G)}return D}function sWt(t,e,n){var o=_y(t);function i(){for(var r=arguments.length,a=Array(r),s=r,l=kq(i);s--;)a[s]=arguments[s];var d=r<3&&a[0]!==l&&a[r-1]!==l?[]:N_(a,l);if(r-=d.length,r<n)return Cq(t,e,ON,i.placeholder,void 0,a,d,void 0,void 0,n-r);var _=this&&this!==na&&this instanceof i?o:t;return lS(_,this,a)}return i}var lWt=1;function cWt(t,e,n,o){var i=e&lWt,r=_y(t);function a(){for(var s=-1,l=arguments.length,d=-1,_=o.length,M=Array(_+l),c=this&&this!==na&&this instanceof a?r:t;++d<_;)M[d]=o[d];for(;l--;)M[d++]=arguments[++s];return lS(c,i?n:this,M)}return a}var o6="__lodash_placeholder__",pM=1,uWt=2,dWt=4,i6=8,F0=128,r6=256,hWt=Math.min;function pWt(t,e){var n=t[1],o=e[1],i=n|o,r=i<(pM|uWt|F0),a=o==F0&&n==i6||o==F0&&n==r6&&t[7].length<=e[8]||o==(F0|r6)&&e[7].length<=e[8]&&n==i6;if(!(r||a))return t;o&pM&&(t[2]=e[2],i|=n&pM?0:dWt);var s=e[3];if(s){var l=t[3];t[3]=l?bq(l,s,e[4]):s,t[4]=l?N_(t[3],o6):e[4]}return s=e[5],s&&(l=t[5],t[5]=l?xq(l,s,e[6]):s,t[6]=l?N_(t[5],o6):e[6]),s=e[7],s&&(t[7]=s),o&F0&&(t[8]=t[8]==null?e[8]:hWt(t[8],e[8])),t[9]==null&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}var fWt="Expected a function",a6=1,mWt=2,fM=8,mM=16,gM=32,s6=64,l6=Math.max;function gWt(t,e,n,o,i,r,a,s){var l=e&mWt;if(!l&&typeof t!="function")throw new TypeError(fWt);var d=o?o.length:0;if(d||(e&=~(gM|s6),o=i=void 0),a=a===void 0?a:l6(cA(a),0),s=s===void 0?s:cA(s),d-=i?i.length:0,e&s6){var _=o,M=i;o=i=void 0}var c=l?void 0:X3(t),$=[t,e,n,o,i,_,M,r,a,s];if(c&&pWt($,c),t=$[0],e=$[1],n=$[2],o=$[3],i=$[4],s=$[9]=$[9]===void 0?l?0:t.length:l6($[9]-d,0),!s&&e&(fM|mM)&&(e&=~(fM|mM)),!e||e==a6)var S=PFt(t,e,n);else e==fM||e==mM?S=sWt(t,e,s):(e==gM||e==(a6|gM))&&!i.length?S=cWt(t,e,n,o):S=ON.apply(void 0,$);var g=c?yq:wq;return Sq(g(S,$),t,e)}var vWt=8;function BC(t,e,n){e=n?void 0:e;var o=gWt(t,vWt,void 0,void 0,void 0,void 0,void 0,e);return o.placeholder=BC.placeholder,o}BC.placeholder={};const yWt={dataOptions:{translateDataOptionsToInternal:MN,getAttributes:uq,getMeasures:dq,isCorrectDataOptions:hq,isCorrectDataOptionsInternal:pq},data:{loadData:uN,getChartData:fq},designOptions:{translateStyleOptionsToDesignOptions:BC(mq)("bar"),isCorrectStyleOptions:vq},renderer:{ChartRendererComponent:kN,isCorrectRendererProps:TN}},bWt={dataOptions:{translateDataOptionsToInternal:MN,getAttributes:uq,getMeasures:dq,isCorrectDataOptions:hq,isCorrectDataOptionsInternal:pq},data:{loadData:uN,getChartData:fq},designOptions:{translateStyleOptionsToDesignOptions:BC(mq)("column"),isCorrectStyleOptions:vq},renderer:{ChartRendererComponent:kN,isCorrectRendererProps:TN}},xWt={areamap:DBt,column:bWt,bar:yWt};function _b(t){const e=xWt[t];if(e)return e;throw new Error(`Unsupported chart type: ${t}`)}function Sb(t){return["areamap","column","bar"].includes(t)}function Tq(t,e,n){for(var o=-1,i=e.length,r={};++o<i;){var a=e[o],s=rS(t,a);n(s,a)&&HY(r,og(a,t),s)}return r}function wWt(t,e){return Tq(t,e,function(n,o){return a8(t,o)})}var _Wt=uS(function(t,e){return t==null?{}:wWt(t,e)});const SWt=Object.freeze({"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"},"arearange/basic":{lineType:"straight",stackType:"classic"},"arearange/spline":{lineType:"smooth",stackType:"classic"},"bar/classic":{stackType:"classic"},"bar/stacked":{stackType:"stacked"},"bar/stacked100":{stackType:"stack100"},"column/classic":{stackType:"classic"},"column/stackedcolumn":{stackType:"stacked"},"column/stackedcolumn100":{stackType:"stack100"},"line/basic":{lineType:"straight"},"line/spline":{lineType:"smooth"},"pie/classic":{pieType:"classic"},"pie/donut":{pieType:"donut"},"pie/ring":{pieType:"ring"},"polar/column":{polarType:"column"},"polar/area":{polarType:"area"},"polar/line":{polarType:"line"},"indicator/numeric":{indicatorType:"numeric"},"indicator/gauge":{indicatorType:"gauge"},treemap:{},sunburst:{},"boxplot/full":{boxplotType:"full"},"boxplot/hollow":{boxplotType:"hollow"},scattermap:{},"areamap/world":{mapType:"world"},"areamap/usa":{mapType:"usa"}});function CWt(t){let e;switch(t.subtype){case"indicator/numeric":e=ee({indicatorType:"numeric",numericSubtype:t.numericSubtype},t.numericSubtype==="numericSimple"?{skin:t.skin}:null);break;case"indicator/gauge":e=ee({indicatorType:"gauge",skin:t.skin},t.tickerBarHeight?{tickerBarHeight:t.tickerBarHeight}:null);break}return Se(ee(ee({},Dl),e),{indicatorComponents:t.indicatorComponents||Dl.indicatorComponents,forceTickerView:!!t.forceTickerView})}const kWt=(t,e,n)=>{const o="y"in n&&Array.isArray(n.y)?n.y.some(s=>s.showOnRightAxis):!1;let i;switch(t){case"area":i=a6t(e,n,o);break;case"arearange":case"line":i=r6t(e,n,o);break;case"pie":i=u6t(e);break;case"funnel":i=d6t(e);break;case"treemap":i=h6t(e);break;case"sunburst":i=p6t(e);break;case"polar":i=m6t(e,n);break;case"indicator":i=CWt(e);break;case"scatter":i=v6t(e);break;case"boxplot":i=y6t(e);break;case"scattermap":i=x6t(e);break;default:throw new Mn("errors.chartTypeNotSupported",{chartType:t})}const r="subtype"in e&&e.subtype?e.subtype:"line/basic",a=SWt[r];return ee(ee({},i),a)};function TWt(t,e,n){const o=vg(n??{},gg());if(Sb(t)){const i=_b(t);if(!i.designOptions.isCorrectStyleOptions(o))throw new Mn("errors.optionsTranslation.invalidStyleOptions",{chartType:t});if(!i.dataOptions.isCorrectDataOptionsInternal(e))throw new Mn("errors.optionsTranslation.invalidInternalDataOptions",{chartType:t});return i.designOptions.translateStyleOptionsToDesignOptions(o,e)}else return kWt(t,o,e)}function vg(t,e){return Vi.withOptions({mergeArrays:!1},e,t)}function $C(t,e,n){return MWt(t).map(o=>{const i=o.seriesId,r=o.seriesStyleOptions,a=i6t(e,vg(r,n));return{seriesId:i,designOptions:_Wt(a,["lineWidth","marker"])}}).reduce((o,{seriesId:i,designOptions:r})=>Se(ee({},o),{[i]:r}),{})}function MWt(t){return t.y.filter(OWt).map(({column:{name:e},seriesStyleOptions:n})=>({seriesId:e,seriesStyleOptions:n}))}function OWt(t){return t.seriesStyleOptions!==void 0}const PWt=t=>Hl(t)?"cartesian":ih(t)?"categorical":$l(t)?"scatter":jp(t)?"scattermap":fg(t)?"indicator":rN(t)?"areamap":rh(t)?"boxplot":"table";var AWt=Object.defineProperty,EWt=Object.defineProperties,LWt=Object.getOwnPropertyDescriptors,R_=Object.getOwnPropertySymbols,Mq=Object.prototype.hasOwnProperty,Oq=Object.prototype.propertyIsEnumerable,$s=Math.pow,c6=(t,e,n)=>e in t?AWt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ce=(t,e)=>{for(var n in e||(e={}))Mq.call(e,n)&&c6(t,n,e[n]);if(R_)for(var n of R_(e))Oq.call(e,n)&&c6(t,n,e[n]);return t},Ye=(t,e)=>EWt(t,LWt(e)),Cb=(t,e)=>{var n={};for(var o in t)Mq.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&R_)for(var o of R_(t))e.indexOf(o)<0&&Oq.call(t,o)&&(n[o]=t[o]);return n},Vl=(t,e,n)=>new Promise((o,i)=>{var r=l=>{try{s(n.next(l))}catch(d){i(d)}},a=l=>{try{s(n.throw(l))}catch(d){i(d)}},s=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,a);s((n=n.apply(t,e)).next())});function NWt(t){let{i18n:e,defaultNS:n,children:o}=t;const i=We(()=>({i18n:e,defaultNS:n}),[e,n]);return sn(AH.Provider,{value:i},o)}function Yd(t){return t===void 0||typeof t=="string"||"title"in t&&"type"in t}const va={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function PN(t){return[fa(va.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:t}),fa(va.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:t}),fa(va.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:t})]}function RWt(t){return[...PN(t),fa(va.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:t}),fa(va.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:t}),fa(va.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:t})]}function DWt(t){return[...PN(t),fa(va.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:t}),fa(va.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:t})]}function IWt(t){return[...PN(t),fa(va.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:t}),fa(va.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:t}),fa(va.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:t})]}const jWt=t=>{const e=Wa(t),n=fa(va.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:t}),o=fa(va.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:t});return e.name=`${e.name} (Outliers)`,e.jaql=i=>{const r=Object.assign(Object.assign({},t.jaql(!0)),{filter:{or:[{fromNotEqual:n.jaql(!0)},{toNotEqual:o.jaql(!0)}]}});return i?r:{jaql:r}},e},zWt=t=>{const e=Wa(t),n=fa(va.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:t}),o=fa(va.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:t});return e.jaql=i=>{const r=Object.assign(Object.assign({},t.jaql(!0)),{filter:{or:[{fromNotEqual:n.jaql(!0)},{toNotEqual:o.jaql(!0)}]}});return i?r:{jaql:r}},e};function Sy(t){return!!t&&"operator"in t&&(t.operator==="AND"||t.operator==="OR")&&!!t.right&&!!t.left}function Pq(t=[],e=[]){if(!Sy(t)&&!Sy(e))return zs(t,e);const{filters:n,relations:o}=Cy(t),i=AN(e),r=zs(n,i),a=Ov(n,o,r);return Mv(r,a)}function Cy(t){if(!t)return{filters:[],relations:null};if(Wo(t))return{filters:t,relations:null};const e=new Set;function n(i){if(Aq(i))return e.add(i),{instanceid:i.config.guid};if(Sy(i)){const r=n(i.left),a=n(i.right);return{left:r,right:a,operator:i.operator}}throw new HC}const o=n(t);return{filters:Array.from(e),relations:o}}function AN(t){return t?Cy(t).filters:[]}function Mv(t,e){if(!e||EN(e))return t;const n=o(e);return Aq(n)?[n]:n;function o(i){if(FC(i))return t.find(r=>r.config.guid===i.instanceid);if(WC(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new HC}}function EN(t){return!!t&&"instanceid"in t}function Ov(t,e,n){if(e===null)return null;const o=$Wt(t,n);return o.length===0?e:o.reduce((i,r)=>{switch(r.type){case"add":return FWt(r.payload,i);case"remove":return NA(r.payload,i)}},e)}function u6(t,e){return t.config.guid===e.config.guid}function BWt(t,e,n){if(!t)return null;return o(t);function o(i){if(FC(i))return i.instanceid===e.config.guid?{instanceid:n.config.guid}:i;if(WC(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new HC}}function $Wt(t,e){const n=[],o=[...t],i=[...e];return o.forEach(r=>{i.some(a=>u6(r,a))||n.push({type:"remove",payload:r})}),i.forEach(r=>{o.some(a=>u6(r,a))||n.push({type:"add",payload:r})}),n}function FWt(t,e){return e?{left:e,right:{instanceid:t.config.guid},operator:"AND"}:{instanceid:t.config.guid}}function NA(t,e){if(!e)return null;if(EN(e))return e.instanceid===t.config.guid?null:e;const n=NA(t,e.left),o=NA(t,e.right);return n===null&&o?o:o===null&&n?n:n===null&&o===null?null:{left:n,right:o,operator:e.operator}}function WWt(t,e){if(!t)return null;function n(o){if(HWt(o))return{instanceid:o.instanceId};if(VWt(o))return n(o.value);if(UWt(o))return{operator:o.operator,left:n(o.left),right:n(o.right)};if(GWt(o)){const i=e.find(r=>{if(!Zd(r))return!1;const a=r.filters.map(s=>s.config.guid);return o.levels.every(s=>a.includes(s.instanceId))});if(i)return{instanceid:i.config.guid};throw new Error("Broken filter relations model. Cascading filter not found.")}throw new Error("Broken filter relations model. Unknown node type.")}return n(t)}function HWt(t){return"instanceId"in t}function VWt(t){return"value"in t}function UWt(t){return"operator"in t}function GWt(t){return"levels"in t&&Wo(t.levels)}function FC(t){return"instanceid"in t}function WC(t){return"operator"in t}function Aq(t){return"config"in t&&"guid"in t.config}function YWt(t,e){if(!t)return;function n(o){if(FC(o)){const i=e.find(r=>r.config.guid===o.instanceid);return i&&Zd(i)?{type:"CascadingIdentifier",levels:i.filters.map(r=>({type:"Identifier",instanceId:r.config.guid}))}:{type:"Identifier",instanceId:o.instanceid}}else{if(WC(o))return{type:"LogicalExpression",operator:o.operator,left:n(o.left),right:n(o.right)};throw new Error("Unknown node type in filter relations rules.")}}return n(t)}function XWt(t,e){return t.find(n=>n.config.guid===e)}class HC extends Error{constructor(){super("Broken filter relations. Unknown node type.")}}function qWt(t){return t.nodeType==="openBracket"}function ZWt(t){return t.nodeType==="closeBracket"}function KWt(t){return t.nodeType==="attribute"}function QWt(t){return t.nodeType==="operator"}function ky(t){if(Zd(t))return t.filters.map(ky).join("-");const{attribute:e}=t,n=t.jaql().jaql,o=e.expression||n.dim,i=e.granularity||((n==null?void 0:n.datatype)==="datetime"?bm.translateJaqlToGranularity(n):"");return`${o}${i}`}function zs(t=[],e=[]){const n=[...t];return e.forEach(o=>{const i=n.findIndex(r=>ky(o)===ky(r));i!==-1?n[i]=o:n.push(o)}),n}function JWt(t){if(!t)return t;const e=Wa(t);function n(o){if("instanceId"in o)return{instanceid:o.instanceId};if("value"in o)return n(o.value);if("operator"in o){const i={operator:o.operator};return"left"in o&&(i.left=n(o.left)),"right"in o&&(i.right=n(o.right)),i}return o}return n(e)}function tHt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function RA(t,e){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},RA(t,e)}function eHt(t,e){if(Bm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Bm(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nHt(t){var e=eHt(t,"string");return Bm(e)=="symbol"?e:e+""}function oHt(t,e,n){return e=nHt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const lv={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function Eq(t,e,n){const o={chart:{textColor:t.dashboards.widgetTextColor,backgroundColor:t.dashboards.widgetBackgroundColor,secondaryTextColor:t.dashboards.widgetSecondaryTextColor,panelBackgroundColor:t.dashboards.widgetBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:t.typography.fontFamily,primaryTextColor:t.typography.primaryTextColor,secondaryTextColor:t.typography.secondaryTextColor,fontsLoader:{fonts:iHt(t.typography.fontFamily,n,t.typography.customFontSelected)}},palette:{variantColors:e.colors},general:{brandColor:t.general.brandColor,backgroundColor:t.general.backgroundColor,primaryButtonTextColor:t.general.primaryButtonTextColor,primaryButtonHoverColor:t.general.primaryButtonHoverColor,popover:b_().general.popover,buttons:{cancel:{backgroundColor:{default:t.general.secondaryButtonBaseColor,hover:t.general.secondaryButtonHoverColor,focus:t.general.secondaryButtonHoverColor},textColor:t.general.secondaryButtonTextColor}}},widget:{spaceAround:lv[t.dashboards.widgetSpacing],cornerRadius:lv[t.dashboards.widgetCornerRadius],shadow:lv[t.dashboards.widgetShadow],border:t.dashboards.widgetBorderEnabled,borderColor:t.dashboards.widgetBorderColor,header:{titleTextColor:t.dashboards.widgetTitleColor,titleAlignment:lv[t.dashboards.widgetTitleAlignment],dividerLine:t.dashboards.widgetTitleDividerEnabled,dividerLineColor:t.dashboards.widgetTitleDividerColor,backgroundColor:t.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:t.dashboards.layoutBackgroundColor,dividerLineWidth:V3,dividerLineColor:H3},filter:{panel:{titleColor:t.dashboards.panelTitleTextColor,backgroundColor:t.dashboards.panelBackgroundColor}}};return Vi.withOptions({mergeArrays:!1},b_(),o)}function Lq(t){return t.dashboards.colorPaletteName}function iHt(t,e,n){const o=n?"fonts/":"resources/base/fonts/";return[{fontFamily:t,fontWeight:"normal",fontStyle:"normal",src:[{url:`${e}${o}${t}-Regular.eot`},{local:`${t}-Regular`},{url:`${e}${o}${t}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${e}${o}${t}-Regular.ttf`,format:"truetype"}]},{fontFamily:t,fontWeight:600,fontStyle:"normal",src:[{url:`${e}${o}${t}-SemiBold.eot`},{local:`${t}-SemiBold`},{url:`${e}${o}${t}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${e}${o}${t}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:t,fontWeight:"bold",fontStyle:"normal",src:[{url:`${e}${o}${t}-Bold.eot`},{local:`${t}-Bold`},{url:`${e}${o}${t}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${e}${o}${t}-Bold.ttf`,format:"truetype"}]}]}function Nq(t,e){return Vl(this,null,function*(){const n=yield rHt(t,e);if(!n)throw new Mn("errors.themeNotFound",{themeOid:t});const o=Lq(n),i=yield Rq(o,e);return Eq(n,i,e.url)})}function rHt(t,e){return Vl(this,null,function*(){return e.get(`api/v1/themes/${t}`).catch(()=>{throw new Mn("errors.themeNotFound",{themeOid:t})})})}function Rq(t,e){return Vl(this,null,function*(){const n=yield e.get(`api/palettes/${t}`);if(n&&"status"in n&&n.status==="error")throw new Mn("errors.paletteNotFound",{paletteName:t});return n})}const aHt={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},d6="composesdk",Dq=(t,e,n,o=!1)=>{const i=Object.assign({action:t,cat:d6,eventType:"product",direct:!0},e);return o&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",i),Promise.resolve()):n.post("api/activities/",[i],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(r=>{console.error(`unable to log action=${t}, category=${d6}`,r)})},h6=(t,e,n,o,i)=>{const r=aHt[`${t}`];return r.internal&&Dq(t,e,n,i),r.external&&o&&o(Ce({action:t},e)),Promise.resolve()},LN=()=>{const{tracking:t,app:e}=vr(),n=Ue((i,r={},a=!1)=>e?h6(i,r,e.httpClient,t.onTrackingEvent,a):Promise.resolve(),[t,e]),o=Ue((i,r=!1)=>{if(!e)return Promise.resolve();const{packageName:a,packageVersion:s,component:l,error:d}=i;let _="";return typeof d=="string"?_=d:d instanceof Error&&(_=d.message||d.toString()),h6("sdkError",{packageName:a,packageVersion:s,component:l,error:_},e.httpClient,t.onTrackingEvent,r)},[t,e]);return{trackEvent:n,trackError:o}},sHt="sdkComponentInit",Iq=eo(!1),lHt=({skipNested:t=!0,children:e})=>re(Iq.Provider,{value:t,children:e}),cHt=(t,e)=>{const{tracking:n,app:o}=vr(),{trackEvent:i}=LN(),r=On(Iq),a=fe(!1);Ae(()=>{if(!(!n||!o)&&!a.current&&!r){const s={packageName:n.packageName,packageVersion:"1.34.0",componentName:t,attributesUsed:Object.entries(e).filter(([,l])=>!!l).map(([l])=>l).join(", ")};i(sHt,s,!n.enabled).finally(()=>a.current=!0)}},[t,e,n,r,i,o])};var uHt="[object Boolean]";function jq(t){return t===!0||t===!1||ba(t)&&Wl(t)==uHt}const zq=class extends Ei{constructor(e){super(e),this.postponedErrors=[],this.handler=e.handler,this.componentName=e.componentName}componentDidMount(){var e;this.context.isInitialized&&(this.httpClient=(e=this.context.app)==null?void 0:e.httpClient)}componentDidCatch(e){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(e):this.postponedErrors.push(e)),e}sendErrorTracking(e){try{this.handler({packageName:"sdk-ui",packageVersion:"1.34.0",component:this.componentName,error:e})}catch(n){console.log("Failed to send tracking error event: ",n)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(e=>this.sendErrorTracking(e)),this.postponedErrors=[],this.props.children}};zq.contextType=q3;let dHt=zq;const hHt=({componentName:t,config:e})=>{const{skip:n,transparent:o}=e||{};return i=>function(r){const{trackError:a}=LN();return jq(n)&&n||Eu(n)&&n(r)?re(i,Ce({},r)):(cHt(t,r),re(lHt,{skipNested:!o,children:re(dHt,{componentName:t,handler:a,children:re(i,Ce({},r))})}))}},pHt="_container_1wquj_1",fHt="_card_1wquj_11",mHt="_text_1wquj_19",vM={container:pHt,card:fHt,text:mHt};function Bq({color:t="#FFCB05"}){return re("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:re("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Dn("g",{children:[re("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:t}),re("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const $q=({error:t=new Mn("errors.componentRenderError")})=>{var e,n,o,i,r,a;const{themeSettings:s}=er(),{app:l}=vr(),{t:d}=wa(),[_,M]=Ee(!1),c=()=>{M(!0)},$=()=>{M(!1)},S=re("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:re(Bq,{color:(e=s==null?void 0:s.general)==null?void 0:e.brandColor})}),g=t instanceof Q_?d(t.key,Ce({},t.interpolationOptions)):d(t instanceof Error?t.message:t),D=d("errorBoxText",{errorMessage:g,interpolation:{escapeValue:!1}}),W=(o=(n=l==null?void 0:l.settings)==null?void 0:n.errorBoundaryConfig)==null?void 0:o.alwaysShowErrorText;return re("div",{onMouseEnter:W?void 0:c,onMouseLeave:W?void 0:$,className:vM.container,"aria-label":"error-box",children:Dn("div",{className:vM.card,style:{backgroundColor:((i=s==null?void 0:s.general)==null?void 0:i.backgroundColor)||"rgba(255,255,255,0.5)"},children:[S,(W||_)&&re("div",{className:vM.text,style:{color:((r=s==null?void 0:s.typography)==null?void 0:r.primaryTextColor)||oh,fontFamily:((a=s==null?void 0:s.typography)==null?void 0:a.fontFamily)||"inherit"},children:D})]})})};let Fq=class extends Ei{constructor(t){var e;super(t),this.showErrorBox=!0,this.showErrorBox=(e=t.showErrorBox)!=null?e:!0,this.onError=t.onError,this.isContainerComponent=t.isContainerComponent||!1,this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){var e;this.setState({error:t}),(e=this.onError)==null||e.call(this,t instanceof Error?t:new Error(t))}componentDidUpdate(t,e){e.error!==null&&gHt(t.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const t=this.state.error||this.props.error;return!t||this.isContainerComponent&&!this.showErrorBox?this.props.children:this.showErrorBox?re($q,{error:t}):null}};function gHt(t=[],e=[]){return t.length!==e.length||t.some((n,o)=>!Lu(n,e[o]))}const Wq=({componentName:t})=>e=>function(n){const o=vr(),i=r=>{var a,s;return(s=(a=o.errorBoundary).onError)==null?void 0:s.call(a,r,{componentName:t,componentProps:n})};return re(Fq,{resetKeys:Object.values(n),showErrorBox:o.errorBoundary.showErrorBox,onError:i,isContainerComponent:!!(n!=null&&n.children),children:re(e,Ce({},n))})},NN=({color:t})=>{const e={backgroundColor:t||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},n=Ye(Ce({},e),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),o=Ye(Ce({},e),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),i=Ye(Ce({},e),{marginRight:"unset"});return Dn("div",{children:[re("style",{children:`
|
|
758
|
+
`)}function _q(t,e){var n=t==null?0:t.length;return!!n&&iN(t,e,0)>-1}var zFt=1,BFt=2,$Ft=8,FFt=16,WFt=32,HFt=64,VFt=128,UFt=256,GFt=512,YFt=[["ary",VFt],["bind",zFt],["bindKey",BFt],["curry",$Ft],["curryRight",FFt],["flip",GFt],["partial",WFt],["partialRight",HFt],["rearg",UFt]];function XFt(t,e){return zH(YFt,function(n){var o="_."+n[0];e&n[1]&&!_q(t,o)&&t.push(o)}),t.sort()}function Sq(t,e,n){var o=e+"";return oL(t,jFt(o,XFt(DFt(o),n)))}var qFt=1,ZFt=2,KFt=4,QFt=8,t6=32,e6=64;function Cq(t,e,n,o,i,r,a,s,l,d){var _=e&QFt,M=_?a:void 0,c=_?void 0:a,$=_?r:void 0,S=_?void 0:r;e|=_?t6:e6,e&=~(_?e6:t6),e&KFt||(e&=~(qFt|ZFt));var g=[t,e,i,$,M,S,c,s,l,d],D=n.apply(void 0,g);return lA(t)&&wq(D,g),D.placeholder=o,Sq(D,t,e)}function kq(t){var e=t;return e.placeholder}var JFt=Math.min;function tWt(t,e){for(var n=t.length,o=JFt(e.length,n),i=nS(t);o--;){var r=e[o];t[o]=Hy(r,n)?i[r]:void 0}return t}var n6="__lodash_placeholder__";function N_(t,e){for(var n=-1,o=t.length,i=0,r=[];++n<o;){var a=t[n];(a===e||a===n6)&&(t[n]=n6,r[i++]=n)}return r}var eWt=1,nWt=2,oWt=8,iWt=16,rWt=128,aWt=512;function ON(t,e,n,o,i,r,a,s,l,d){var _=e&rWt,M=e&eWt,c=e&nWt,$=e&(oWt|iWt),S=e&aWt,g=c?void 0:_y(t);function D(){for(var W=arguments.length,G=Array(W),Y=W;Y--;)G[Y]=arguments[Y];if($)var H=kq(D),R=LFt(G,H);if(o&&(G=bq(G,o,i,$)),r&&(G=xq(G,r,a,$)),W-=R,$&&W<d){var N=N_(G,H);return Cq(t,e,ON,D.placeholder,n,G,N,s,l,d-W)}var j=M?n:this,E=c?j[t]:t;return W=G.length,s?G=tWt(G,s):S&&W>1&&G.reverse(),_&&l<W&&(G.length=l),this&&this!==na&&this instanceof D&&(E=g||_y(E)),E.apply(j,G)}return D}function sWt(t,e,n){var o=_y(t);function i(){for(var r=arguments.length,a=Array(r),s=r,l=kq(i);s--;)a[s]=arguments[s];var d=r<3&&a[0]!==l&&a[r-1]!==l?[]:N_(a,l);if(r-=d.length,r<n)return Cq(t,e,ON,i.placeholder,void 0,a,d,void 0,void 0,n-r);var _=this&&this!==na&&this instanceof i?o:t;return lS(_,this,a)}return i}var lWt=1;function cWt(t,e,n,o){var i=e&lWt,r=_y(t);function a(){for(var s=-1,l=arguments.length,d=-1,_=o.length,M=Array(_+l),c=this&&this!==na&&this instanceof a?r:t;++d<_;)M[d]=o[d];for(;l--;)M[d++]=arguments[++s];return lS(c,i?n:this,M)}return a}var o6="__lodash_placeholder__",pM=1,uWt=2,dWt=4,i6=8,F0=128,r6=256,hWt=Math.min;function pWt(t,e){var n=t[1],o=e[1],i=n|o,r=i<(pM|uWt|F0),a=o==F0&&n==i6||o==F0&&n==r6&&t[7].length<=e[8]||o==(F0|r6)&&e[7].length<=e[8]&&n==i6;if(!(r||a))return t;o&pM&&(t[2]=e[2],i|=n&pM?0:dWt);var s=e[3];if(s){var l=t[3];t[3]=l?bq(l,s,e[4]):s,t[4]=l?N_(t[3],o6):e[4]}return s=e[5],s&&(l=t[5],t[5]=l?xq(l,s,e[6]):s,t[6]=l?N_(t[5],o6):e[6]),s=e[7],s&&(t[7]=s),o&F0&&(t[8]=t[8]==null?e[8]:hWt(t[8],e[8])),t[9]==null&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}var fWt="Expected a function",a6=1,mWt=2,fM=8,mM=16,gM=32,s6=64,l6=Math.max;function gWt(t,e,n,o,i,r,a,s){var l=e&mWt;if(!l&&typeof t!="function")throw new TypeError(fWt);var d=o?o.length:0;if(d||(e&=~(gM|s6),o=i=void 0),a=a===void 0?a:l6(cA(a),0),s=s===void 0?s:cA(s),d-=i?i.length:0,e&s6){var _=o,M=i;o=i=void 0}var c=l?void 0:X3(t),$=[t,e,n,o,i,_,M,r,a,s];if(c&&pWt($,c),t=$[0],e=$[1],n=$[2],o=$[3],i=$[4],s=$[9]=$[9]===void 0?l?0:t.length:l6($[9]-d,0),!s&&e&(fM|mM)&&(e&=~(fM|mM)),!e||e==a6)var S=PFt(t,e,n);else e==fM||e==mM?S=sWt(t,e,s):(e==gM||e==(a6|gM))&&!i.length?S=cWt(t,e,n,o):S=ON.apply(void 0,$);var g=c?yq:wq;return Sq(g(S,$),t,e)}var vWt=8;function BC(t,e,n){e=n?void 0:e;var o=gWt(t,vWt,void 0,void 0,void 0,void 0,void 0,e);return o.placeholder=BC.placeholder,o}BC.placeholder={};const yWt={dataOptions:{translateDataOptionsToInternal:MN,getAttributes:uq,getMeasures:dq,isCorrectDataOptions:hq,isCorrectDataOptionsInternal:pq},data:{loadData:uN,getChartData:fq},designOptions:{translateStyleOptionsToDesignOptions:BC(mq)("bar"),isCorrectStyleOptions:vq},renderer:{ChartRendererComponent:kN,isCorrectRendererProps:TN}},bWt={dataOptions:{translateDataOptionsToInternal:MN,getAttributes:uq,getMeasures:dq,isCorrectDataOptions:hq,isCorrectDataOptionsInternal:pq},data:{loadData:uN,getChartData:fq},designOptions:{translateStyleOptionsToDesignOptions:BC(mq)("column"),isCorrectStyleOptions:vq},renderer:{ChartRendererComponent:kN,isCorrectRendererProps:TN}},xWt={areamap:DBt,column:bWt,bar:yWt};function _b(t){const e=xWt[t];if(e)return e;throw new Error(`Unsupported chart type: ${t}`)}function Sb(t){return["areamap","column","bar"].includes(t)}function Tq(t,e,n){for(var o=-1,i=e.length,r={};++o<i;){var a=e[o],s=rS(t,a);n(s,a)&&HY(r,og(a,t),s)}return r}function wWt(t,e){return Tq(t,e,function(n,o){return a8(t,o)})}var _Wt=uS(function(t,e){return t==null?{}:wWt(t,e)});const SWt=Object.freeze({"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"},"arearange/basic":{lineType:"straight",stackType:"classic"},"arearange/spline":{lineType:"smooth",stackType:"classic"},"bar/classic":{stackType:"classic"},"bar/stacked":{stackType:"stacked"},"bar/stacked100":{stackType:"stack100"},"column/classic":{stackType:"classic"},"column/stackedcolumn":{stackType:"stacked"},"column/stackedcolumn100":{stackType:"stack100"},"line/basic":{lineType:"straight"},"line/spline":{lineType:"smooth"},"pie/classic":{pieType:"classic"},"pie/donut":{pieType:"donut"},"pie/ring":{pieType:"ring"},"polar/column":{polarType:"column"},"polar/area":{polarType:"area"},"polar/line":{polarType:"line"},"indicator/numeric":{indicatorType:"numeric"},"indicator/gauge":{indicatorType:"gauge"},treemap:{},sunburst:{},"boxplot/full":{boxplotType:"full"},"boxplot/hollow":{boxplotType:"hollow"},scattermap:{},"areamap/world":{mapType:"world"},"areamap/usa":{mapType:"usa"}});function CWt(t){let e;switch(t.subtype){case"indicator/numeric":e=ee({indicatorType:"numeric",numericSubtype:t.numericSubtype},t.numericSubtype==="numericSimple"?{skin:t.skin}:null);break;case"indicator/gauge":e=ee({indicatorType:"gauge",skin:t.skin},t.tickerBarHeight?{tickerBarHeight:t.tickerBarHeight}:null);break}return Se(ee(ee({},Dl),e),{indicatorComponents:t.indicatorComponents||Dl.indicatorComponents,forceTickerView:!!t.forceTickerView})}const kWt=(t,e,n)=>{const o="y"in n&&Array.isArray(n.y)?n.y.some(s=>s.showOnRightAxis):!1;let i;switch(t){case"area":i=a6t(e,n,o);break;case"arearange":case"line":i=r6t(e,n,o);break;case"pie":i=u6t(e);break;case"funnel":i=d6t(e);break;case"treemap":i=h6t(e);break;case"sunburst":i=p6t(e);break;case"polar":i=m6t(e,n);break;case"indicator":i=CWt(e);break;case"scatter":i=v6t(e);break;case"boxplot":i=y6t(e);break;case"scattermap":i=x6t(e);break;default:throw new Mn("errors.chartTypeNotSupported",{chartType:t})}const r="subtype"in e&&e.subtype?e.subtype:"line/basic",a=SWt[r];return ee(ee({},i),a)};function TWt(t,e,n){const o=vg(n??{},gg());if(Sb(t)){const i=_b(t);if(!i.designOptions.isCorrectStyleOptions(o))throw new Mn("errors.optionsTranslation.invalidStyleOptions",{chartType:t});if(!i.dataOptions.isCorrectDataOptionsInternal(e))throw new Mn("errors.optionsTranslation.invalidInternalDataOptions",{chartType:t});return i.designOptions.translateStyleOptionsToDesignOptions(o,e)}else return kWt(t,o,e)}function vg(t,e){return Vi.withOptions({mergeArrays:!1},e,t)}function $C(t,e,n){return MWt(t).map(o=>{const i=o.seriesId,r=o.seriesStyleOptions,a=i6t(e,vg(r,n));return{seriesId:i,designOptions:_Wt(a,["lineWidth","marker"])}}).reduce((o,{seriesId:i,designOptions:r})=>Se(ee({},o),{[i]:r}),{})}function MWt(t){return t.y.filter(OWt).map(({column:{name:e},seriesStyleOptions:n})=>({seriesId:e,seriesStyleOptions:n}))}function OWt(t){return t.seriesStyleOptions!==void 0}const PWt=t=>Hl(t)?"cartesian":ih(t)?"categorical":$l(t)?"scatter":jp(t)?"scattermap":fg(t)?"indicator":rN(t)?"areamap":rh(t)?"boxplot":"table";var AWt=Object.defineProperty,EWt=Object.defineProperties,LWt=Object.getOwnPropertyDescriptors,R_=Object.getOwnPropertySymbols,Mq=Object.prototype.hasOwnProperty,Oq=Object.prototype.propertyIsEnumerable,$s=Math.pow,c6=(t,e,n)=>e in t?AWt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ce=(t,e)=>{for(var n in e||(e={}))Mq.call(e,n)&&c6(t,n,e[n]);if(R_)for(var n of R_(e))Oq.call(e,n)&&c6(t,n,e[n]);return t},Ye=(t,e)=>EWt(t,LWt(e)),Cb=(t,e)=>{var n={};for(var o in t)Mq.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&R_)for(var o of R_(t))e.indexOf(o)<0&&Oq.call(t,o)&&(n[o]=t[o]);return n},Vl=(t,e,n)=>new Promise((o,i)=>{var r=l=>{try{s(n.next(l))}catch(d){i(d)}},a=l=>{try{s(n.throw(l))}catch(d){i(d)}},s=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,a);s((n=n.apply(t,e)).next())});function NWt(t){let{i18n:e,defaultNS:n,children:o}=t;const i=We(()=>({i18n:e,defaultNS:n}),[e,n]);return sn(AH.Provider,{value:i},o)}function Yd(t){return t===void 0||typeof t=="string"||"title"in t&&"type"in t}const va={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function PN(t){return[fa(va.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:t}),fa(va.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:t}),fa(va.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:t})]}function RWt(t){return[...PN(t),fa(va.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:t}),fa(va.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:t}),fa(va.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:t})]}function DWt(t){return[...PN(t),fa(va.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:t}),fa(va.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:t})]}function IWt(t){return[...PN(t),fa(va.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:t}),fa(va.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:t}),fa(va.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:t})]}const jWt=t=>{const e=Wa(t),n=fa(va.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:t}),o=fa(va.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:t});return e.name=`${e.name} (Outliers)`,e.jaql=i=>{const r=Object.assign(Object.assign({},t.jaql(!0)),{filter:{or:[{fromNotEqual:n.jaql(!0)},{toNotEqual:o.jaql(!0)}]}});return i?r:{jaql:r}},e},zWt=t=>{const e=Wa(t),n=fa(va.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:t}),o=fa(va.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:t});return e.jaql=i=>{const r=Object.assign(Object.assign({},t.jaql(!0)),{filter:{or:[{fromNotEqual:n.jaql(!0)},{toNotEqual:o.jaql(!0)}]}});return i?r:{jaql:r}},e};function Sy(t){return!!t&&"operator"in t&&(t.operator==="AND"||t.operator==="OR")&&!!t.right&&!!t.left}function Pq(t=[],e=[]){if(!Sy(t)&&!Sy(e))return zs(t,e);const{filters:n,relations:o}=Cy(t),i=AN(e),r=zs(n,i),a=Ov(n,o,r);return Mv(r,a)}function Cy(t){if(!t)return{filters:[],relations:null};if(Wo(t))return{filters:t,relations:null};const e=new Set;function n(i){if(Aq(i))return e.add(i),{instanceid:i.config.guid};if(Sy(i)){const r=n(i.left),a=n(i.right);return{left:r,right:a,operator:i.operator}}throw new HC}const o=n(t);return{filters:Array.from(e),relations:o}}function AN(t){return t?Cy(t).filters:[]}function Mv(t,e){if(!e||EN(e))return t;const n=o(e);return Aq(n)?[n]:n;function o(i){if(FC(i))return t.find(r=>r.config.guid===i.instanceid);if(WC(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new HC}}function EN(t){return!!t&&"instanceid"in t}function Ov(t,e,n){if(e===null)return null;const o=$Wt(t,n);return o.length===0?e:o.reduce((i,r)=>{switch(r.type){case"add":return FWt(r.payload,i);case"remove":return NA(r.payload,i)}},e)}function u6(t,e){return t.config.guid===e.config.guid}function BWt(t,e,n){if(!t)return null;return o(t);function o(i){if(FC(i))return i.instanceid===e.config.guid?{instanceid:n.config.guid}:i;if(WC(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new HC}}function $Wt(t,e){const n=[],o=[...t],i=[...e];return o.forEach(r=>{i.some(a=>u6(r,a))||n.push({type:"remove",payload:r})}),i.forEach(r=>{o.some(a=>u6(r,a))||n.push({type:"add",payload:r})}),n}function FWt(t,e){return e?{left:e,right:{instanceid:t.config.guid},operator:"AND"}:{instanceid:t.config.guid}}function NA(t,e){if(!e)return null;if(EN(e))return e.instanceid===t.config.guid?null:e;const n=NA(t,e.left),o=NA(t,e.right);return n===null&&o?o:o===null&&n?n:n===null&&o===null?null:{left:n,right:o,operator:e.operator}}function WWt(t,e){if(!t)return null;function n(o){if(HWt(o))return{instanceid:o.instanceId};if(VWt(o))return n(o.value);if(UWt(o))return{operator:o.operator,left:n(o.left),right:n(o.right)};if(GWt(o)){const i=e.find(r=>{if(!Zd(r))return!1;const a=r.filters.map(s=>s.config.guid);return o.levels.every(s=>a.includes(s.instanceId))});if(i)return{instanceid:i.config.guid};throw new Error("Broken filter relations model. Cascading filter not found.")}throw new Error("Broken filter relations model. Unknown node type.")}return n(t)}function HWt(t){return"instanceId"in t}function VWt(t){return"value"in t}function UWt(t){return"operator"in t}function GWt(t){return"levels"in t&&Wo(t.levels)}function FC(t){return"instanceid"in t}function WC(t){return"operator"in t}function Aq(t){return"config"in t&&"guid"in t.config}function YWt(t,e){if(!t)return;function n(o){if(FC(o)){const i=e.find(r=>r.config.guid===o.instanceid);return i&&Zd(i)?{type:"CascadingIdentifier",levels:i.filters.map(r=>({type:"Identifier",instanceId:r.config.guid}))}:{type:"Identifier",instanceId:o.instanceid}}else{if(WC(o))return{type:"LogicalExpression",operator:o.operator,left:n(o.left),right:n(o.right)};throw new Error("Unknown node type in filter relations rules.")}}return n(t)}function XWt(t,e){return t.find(n=>n.config.guid===e)}class HC extends Error{constructor(){super("Broken filter relations. Unknown node type.")}}function qWt(t){return t.nodeType==="openBracket"}function ZWt(t){return t.nodeType==="closeBracket"}function KWt(t){return t.nodeType==="attribute"}function QWt(t){return t.nodeType==="operator"}function ky(t){if(Zd(t))return t.filters.map(ky).join("-");const{attribute:e}=t,n=t.jaql().jaql,o=e.expression||n.dim,i=e.granularity||((n==null?void 0:n.datatype)==="datetime"?bm.translateJaqlToGranularity(n):"");return`${o}${i}`}function zs(t=[],e=[]){const n=[...t];return e.forEach(o=>{const i=n.findIndex(r=>ky(o)===ky(r));i!==-1?n[i]=o:n.push(o)}),n}function JWt(t){if(!t)return t;const e=Wa(t);function n(o){if("instanceId"in o)return{instanceid:o.instanceId};if("value"in o)return n(o.value);if("operator"in o){const i={operator:o.operator};return"left"in o&&(i.left=n(o.left)),"right"in o&&(i.right=n(o.right)),i}return o}return n(e)}function tHt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function RA(t,e){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},RA(t,e)}function eHt(t,e){if(Bm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Bm(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nHt(t){var e=eHt(t,"string");return Bm(e)=="symbol"?e:e+""}function oHt(t,e,n){return e=nHt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const lv={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function Eq(t,e,n){const o={chart:{textColor:t.dashboards.widgetTextColor,backgroundColor:t.dashboards.widgetBackgroundColor,secondaryTextColor:t.dashboards.widgetSecondaryTextColor,panelBackgroundColor:t.dashboards.widgetBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:t.typography.fontFamily,primaryTextColor:t.typography.primaryTextColor,secondaryTextColor:t.typography.secondaryTextColor,fontsLoader:{fonts:iHt(t.typography.fontFamily,n,t.typography.customFontSelected)}},palette:{variantColors:e.colors},general:{brandColor:t.general.brandColor,backgroundColor:t.general.backgroundColor,primaryButtonTextColor:t.general.primaryButtonTextColor,primaryButtonHoverColor:t.general.primaryButtonHoverColor,popover:b_().general.popover,buttons:{cancel:{backgroundColor:{default:t.general.secondaryButtonBaseColor,hover:t.general.secondaryButtonHoverColor,focus:t.general.secondaryButtonHoverColor},textColor:t.general.secondaryButtonTextColor}}},widget:{spaceAround:lv[t.dashboards.widgetSpacing],cornerRadius:lv[t.dashboards.widgetCornerRadius],shadow:lv[t.dashboards.widgetShadow],border:t.dashboards.widgetBorderEnabled,borderColor:t.dashboards.widgetBorderColor,header:{titleTextColor:t.dashboards.widgetTitleColor,titleAlignment:lv[t.dashboards.widgetTitleAlignment],dividerLine:t.dashboards.widgetTitleDividerEnabled,dividerLineColor:t.dashboards.widgetTitleDividerColor,backgroundColor:t.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:t.dashboards.layoutBackgroundColor,dividerLineWidth:V3,dividerLineColor:H3},filter:{panel:{titleColor:t.dashboards.panelTitleTextColor,backgroundColor:t.dashboards.panelBackgroundColor}}};return Vi.withOptions({mergeArrays:!1},b_(),o)}function Lq(t){return t.dashboards.colorPaletteName}function iHt(t,e,n){const o=n?"fonts/":"resources/base/fonts/";return[{fontFamily:t,fontWeight:"normal",fontStyle:"normal",src:[{url:`${e}${o}${t}-Regular.eot`},{local:`${t}-Regular`},{url:`${e}${o}${t}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${e}${o}${t}-Regular.ttf`,format:"truetype"}]},{fontFamily:t,fontWeight:600,fontStyle:"normal",src:[{url:`${e}${o}${t}-SemiBold.eot`},{local:`${t}-SemiBold`},{url:`${e}${o}${t}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${e}${o}${t}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:t,fontWeight:"bold",fontStyle:"normal",src:[{url:`${e}${o}${t}-Bold.eot`},{local:`${t}-Bold`},{url:`${e}${o}${t}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${e}${o}${t}-Bold.ttf`,format:"truetype"}]}]}function Nq(t,e){return Vl(this,null,function*(){const n=yield rHt(t,e);if(!n)throw new Mn("errors.themeNotFound",{themeOid:t});const o=Lq(n),i=yield Rq(o,e);return Eq(n,i,e.url)})}function rHt(t,e){return Vl(this,null,function*(){return e.get(`api/v1/themes/${t}`).catch(()=>{throw new Mn("errors.themeNotFound",{themeOid:t})})})}function Rq(t,e){return Vl(this,null,function*(){const n=yield e.get(`api/palettes/${t}`);if(n&&"status"in n&&n.status==="error")throw new Mn("errors.paletteNotFound",{paletteName:t});return n})}const aHt={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},d6="composesdk",Dq=(t,e,n,o=!1)=>{const i=Object.assign({action:t,cat:d6,eventType:"product",direct:!0},e);return o&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",i),Promise.resolve()):n.post("api/activities/",[i],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(r=>{console.error(`unable to log action=${t}, category=${d6}`,r)})},h6=(t,e,n,o,i)=>{const r=aHt[`${t}`];return r.internal&&Dq(t,e,n,i),r.external&&o&&o(Ce({action:t},e)),Promise.resolve()},LN=()=>{const{tracking:t,app:e}=vr(),n=Ue((i,r={},a=!1)=>e?h6(i,r,e.httpClient,t.onTrackingEvent,a):Promise.resolve(),[t,e]),o=Ue((i,r=!1)=>{if(!e)return Promise.resolve();const{packageName:a,packageVersion:s,component:l,error:d}=i;let _="";return typeof d=="string"?_=d:d instanceof Error&&(_=d.message||d.toString()),h6("sdkError",{packageName:a,packageVersion:s,component:l,error:_},e.httpClient,t.onTrackingEvent,r)},[t,e]);return{trackEvent:n,trackError:o}},sHt="sdkComponentInit",Iq=eo(!1),lHt=({skipNested:t=!0,children:e})=>re(Iq.Provider,{value:t,children:e}),cHt=(t,e)=>{const{tracking:n,app:o}=vr(),{trackEvent:i}=LN(),r=On(Iq),a=fe(!1);Ae(()=>{if(!(!n||!o)&&!a.current&&!r){const s={packageName:n.packageName,packageVersion:"1.35.0",componentName:t,attributesUsed:Object.entries(e).filter(([,l])=>!!l).map(([l])=>l).join(", ")};i(sHt,s,!n.enabled).finally(()=>a.current=!0)}},[t,e,n,r,i,o])};var uHt="[object Boolean]";function jq(t){return t===!0||t===!1||ba(t)&&Wl(t)==uHt}const zq=class extends Ei{constructor(e){super(e),this.postponedErrors=[],this.handler=e.handler,this.componentName=e.componentName}componentDidMount(){var e;this.context.isInitialized&&(this.httpClient=(e=this.context.app)==null?void 0:e.httpClient)}componentDidCatch(e){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(e):this.postponedErrors.push(e)),e}sendErrorTracking(e){try{this.handler({packageName:"sdk-ui",packageVersion:"1.35.0",component:this.componentName,error:e})}catch(n){console.log("Failed to send tracking error event: ",n)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(e=>this.sendErrorTracking(e)),this.postponedErrors=[],this.props.children}};zq.contextType=q3;let dHt=zq;const hHt=({componentName:t,config:e})=>{const{skip:n,transparent:o}=e||{};return i=>function(r){const{trackError:a}=LN();return jq(n)&&n||Eu(n)&&n(r)?re(i,Ce({},r)):(cHt(t,r),re(lHt,{skipNested:!o,children:re(dHt,{componentName:t,handler:a,children:re(i,Ce({},r))})}))}},pHt="_container_1wquj_1",fHt="_card_1wquj_11",mHt="_text_1wquj_19",vM={container:pHt,card:fHt,text:mHt};function Bq({color:t="#FFCB05"}){return re("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:re("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Dn("g",{children:[re("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:t}),re("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const $q=({error:t=new Mn("errors.componentRenderError")})=>{var e,n,o,i,r,a;const{themeSettings:s}=er(),{app:l}=vr(),{t:d}=wa(),[_,M]=Ee(!1),c=()=>{M(!0)},$=()=>{M(!1)},S=re("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:re(Bq,{color:(e=s==null?void 0:s.general)==null?void 0:e.brandColor})}),g=t instanceof Q_?d(t.key,Ce({},t.interpolationOptions)):d(t instanceof Error?t.message:t),D=d("errorBoxText",{errorMessage:g,interpolation:{escapeValue:!1}}),W=(o=(n=l==null?void 0:l.settings)==null?void 0:n.errorBoundaryConfig)==null?void 0:o.alwaysShowErrorText;return re("div",{onMouseEnter:W?void 0:c,onMouseLeave:W?void 0:$,className:vM.container,"aria-label":"error-box",children:Dn("div",{className:vM.card,style:{backgroundColor:((i=s==null?void 0:s.general)==null?void 0:i.backgroundColor)||"rgba(255,255,255,0.5)"},children:[S,(W||_)&&re("div",{className:vM.text,style:{color:((r=s==null?void 0:s.typography)==null?void 0:r.primaryTextColor)||oh,fontFamily:((a=s==null?void 0:s.typography)==null?void 0:a.fontFamily)||"inherit"},children:D})]})})};let Fq=class extends Ei{constructor(t){var e;super(t),this.showErrorBox=!0,this.showErrorBox=(e=t.showErrorBox)!=null?e:!0,this.onError=t.onError,this.isContainerComponent=t.isContainerComponent||!1,this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){var e;this.setState({error:t}),(e=this.onError)==null||e.call(this,t instanceof Error?t:new Error(t))}componentDidUpdate(t,e){e.error!==null&&gHt(t.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const t=this.state.error||this.props.error;return!t||this.isContainerComponent&&!this.showErrorBox?this.props.children:this.showErrorBox?re($q,{error:t}):null}};function gHt(t=[],e=[]){return t.length!==e.length||t.some((n,o)=>!Lu(n,e[o]))}const Wq=({componentName:t})=>e=>function(n){const o=vr(),i=r=>{var a,s;return(s=(a=o.errorBoundary).onError)==null?void 0:s.call(a,r,{componentName:t,componentProps:n})};return re(Fq,{resetKeys:Object.values(n),showErrorBox:o.errorBoundary.showErrorBox,onError:i,isContainerComponent:!!(n!=null&&n.children),children:re(e,Ce({},n))})},NN=({color:t})=>{const e={backgroundColor:t||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},n=Ye(Ce({},e),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),o=Ye(Ce({},e),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),i=Ye(Ce({},e),{marginRight:"unset"});return Dn("div",{children:[re("style",{children:`
|
|
759
759
|
@keyframes loading-dots-animation {
|
|
760
760
|
${Object.entries({"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}}).map(([r,a])=>`${r} { ${Object.entries(a).map(([s,l])=>`${s}: ${l};`).join("")} }`).join("")}
|
|
761
761
|
}
|
|
@@ -1007,7 +1007,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStat
|
|
|
1007
1007
|
`))},[q,it,Xe])}const Et=AZ(T),zt=fe(),Lt=ku(()=>{zt.current!==void 0&&(document.body.style.WebkitUserSelect=zt.current,zt.current=void 0),ft.clear()});Ae(()=>Lt,[Lt]);const Pt=Xe=>{SW.clear(),Tx=!0,St(!0),u&&!At&&u(Xe)},vt=ku(Xe=>{SW.start(800+k,()=>{Tx=!1}),St(!1),v&&At&&v(Xe),at.start(K.transitions.duration.shortest,()=>{lt.current=!1})}),Ct=Xe=>{lt.current&&Xe.type!=="touchstart"||(it&&it.removeAttribute("title"),dt.clear(),mt.clear(),P||Tx&&U?dt.start(Tx?U:P,()=>{Pt(Xe)}):Pt(Xe))},kt=Xe=>{dt.clear(),mt.start(k,()=>{vt(Xe)})},{isFocusVisibleRef:Rt,onBlur:Ht,onFocus:Bt,ref:qt}=EZ(),[,te]=Ee(!1),Qt=Xe=>{Ht(Xe),Rt.current===!1&&(te(!1),kt(Xe))},oe=Xe=>{it||tt(Xe.currentTarget),Bt(Xe),Rt.current===!0&&(te(!0),Ct(Xe))},le=Xe=>{lt.current=!0;const rn=X.props;rn.onTouchStart&&rn.onTouchStart(Xe)},ie=Xe=>{le(Xe),mt.clear(),at.clear(),Lt(),zt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ft.start(Z,()=>{document.body.style.WebkitUserSelect=zt.current,Ct(Xe)})},me=Xe=>{X.props.onTouchEnd&&X.props.onTouchEnd(Xe),Lt(),mt.start(b,()=>{vt(Xe)})};Ae(()=>{if(!At)return;function Xe(rn){(rn.key==="Escape"||rn.key==="Esc")&&vt(rn)}return document.addEventListener("keydown",Xe),()=>{document.removeEventListener("keydown",Xe)}},[vt,At]);const ke=xa(X.ref,qt,tt,e);!q&&q!==0&&(At=!1);const ye=fe(),Te=Xe=>{const rn=X.props;rn.onMouseMove&&rn.onMouseMove(Xe),q0={x:Xe.clientX,y:Xe.clientY},ye.current&&ye.current.update()},ge={},qe=typeof q=="string";C?(ge.title=!At&&qe&&!f?q:null,ge["aria-describedby"]=At?Et:null):(ge["aria-label"]=qe?q:null,ge["aria-labelledby"]=At&&!qe?Et:null);const Pe=ce({},ge,F,X.props,{className:Wn(F.className,X.props.className),onTouchStart:le,ref:ke},B?{onMouseMove:Te}:{});process.env.NODE_ENV!=="production"&&(Pe["data-mui-internal-clone-element"]=!0,Ae(()=>{it&&!it.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
1008
1008
|
`))},[it]));const Re={};x||(Pe.onTouchStart=ie,Pe.onTouchEnd=me),f||(Pe.onMouseOver=Mx(Ct,Pe.onMouseOver),Pe.onMouseLeave=Mx(kt,Pe.onMouseLeave),st||(Re.onMouseOver=Ct,Re.onMouseLeave=kt)),y||(Pe.onFocus=Mx(oe,Pe.onFocus),Pe.onBlur=Mx(Qt,Pe.onBlur),st||(Re.onFocus=oe,Re.onBlur=Qt)),process.env.NODE_ENV!=="production"&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join(`
|
|
1009
1009
|
`));const hn=We(()=>{var Xe;let rn=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return(Xe=O.popperOptions)!=null&&Xe.modifiers&&(rn=rn.concat(O.popperOptions.modifiers)),ce({},O.popperOptions,{modifiers:rn})},[et,O]),ze=ce({},R,{isRtl:ot,arrow:N,disableInteractive:st,placement:p,PopperComponentProp:h,touch:lt.current}),Je=_ce(ze),fn=(n=(o=I.popper)!=null?o:E.Popper)!=null?n:Sce,En=(i=(r=(a=I.transition)!=null?a:E.Transition)!=null?r:Q)!=null?i:Ey,xe=(s=(l=I.tooltip)!=null?l:E.Tooltip)!=null?s:Cce,Le=(d=(_=I.arrow)!=null?_:E.Arrow)!=null?d:kce,Ze=cv(fn,ce({},O,(M=A.popper)!=null?M:z.popper,{className:Wn(Je.popper,O==null?void 0:O.className,(c=($=A.popper)!=null?$:z.popper)==null?void 0:c.className)}),ze),Qe=cv(En,ce({},J,(S=A.transition)!=null?S:z.transition),ze),Un=cv(xe,ce({},(g=A.tooltip)!=null?g:z.tooltip,{className:Wn(Je.tooltip,(D=(W=A.tooltip)!=null?W:z.tooltip)==null?void 0:D.className)}),ze),wn=cv(Le,ce({},(G=A.arrow)!=null?G:z.arrow,{className:Wn(Je.arrow,(Y=(H=A.arrow)!=null?H:z.arrow)==null?void 0:Y.className)}),ze);return jt(to,{children:[ao(X,Pe),jt(fn,ce({as:h??Wb,placement:p,anchorEl:B?{getBoundingClientRect:()=>({top:q0.y,left:q0.x,right:q0.x,bottom:q0.y,width:0,height:0})}:it,popperRef:ye,open:it?At:!1,id:Et,transition:!0},Re,Ze,{popperOptions:hn,children:({TransitionProps:Xe})=>jt(En,ce({timeout:K.transitions.duration.shorter},Xe,Qe,{children:jt(xe,ce({},Un,{children:[q,N?jt(Le,ce({},wn,{ref:nt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(O2.propTypes={arrow:yt.bool,children:Bp.isRequired,classes:yt.object,className:yt.string,components:yt.shape({Arrow:yt.elementType,Popper:yt.elementType,Tooltip:yt.elementType,Transition:yt.elementType}),componentsProps:yt.shape({arrow:yt.object,popper:yt.object,tooltip:yt.object,transition:yt.object}),describeChild:yt.bool,disableFocusListener:yt.bool,disableHoverListener:yt.bool,disableInteractive:yt.bool,disableTouchListener:yt.bool,enterDelay:yt.number,enterNextDelay:yt.number,enterTouchDelay:yt.number,followCursor:yt.bool,id:yt.string,leaveDelay:yt.number,leaveTouchDelay:yt.number,onClose:yt.func,onOpen:yt.func,open:yt.bool,placement:yt.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:yt.elementType,PopperProps:yt.object,slotProps:yt.shape({arrow:yt.object,popper:yt.object,tooltip:yt.object,transition:yt.object}),slots:yt.shape({arrow:yt.elementType,popper:yt.elementType,tooltip:yt.elementType,transition:yt.elementType}),sx:yt.oneOfType([yt.arrayOf(yt.oneOfType([yt.func,yt.object,yt.bool])),yt.func,yt.object]),title:yt.node,TransitionComponent:yt.elementType,TransitionProps:yt.object});const Tce=t=>Li(t)?"right":"left",CW=({displayValue:t,width:e,padding:n,ellipsizedLength:o,isHtml:i})=>{const r=t.length>o;return re("div",{className:dv.tableCellContent,style:{maxWidth:`${e-n}px`},children:i?re("div",{dangerouslySetInnerHTML:{__html:t}}):r?re(O2,{title:t,children:re("div",{children:t})}):re("div",{children:t})})},Mce=({dataTable:t,dataOptions:e,height:n,width:o,customStyles:i,themeSettings:r,onSortUpdate:a})=>{var s,l,d;const _=i&&i.showFieldTypeIcon!==void 0?i.showFieldTypeIcon:!0,M=jQ+(_?zQ:0),c=(i==null?void 0:i.paddingVertical)||dW,$=(i==null?void 0:i.paddingHorizontal)||dW,S=((s=i==null?void 0:i.columns)==null?void 0:s.width)==="auto"?(o-$*2-1)/e.columns.length:void 0,g=We(()=>e.columns.map(R=>({isHtml:"isHtml"in R&&!!R.isHtml,width:S})),[e.columns,S]),[D,W]=Ee(((l=document.fonts)==null?void 0:l.status)==="loaded"),G=(d=r.typography)==null?void 0:d.fontFamily,Y=We(()=>Zse(t,_,g,G),[t,_,g,G,D]);Ae(()=>{var R;(R=document.fonts)==null||R.ready.then(()=>{W(!0)}).catch(N=>{console.warn("Failed to observe font loading",N)})},[]);const H=We(()=>t.columns.map((R,N)=>{const j=Y[N],E=e.columns[N],z=pW({isHeaderCell:!0,themeSettings:r,customStyles:i});return j?re(Cx.Column,{maxWidth:lE,minWidth:lE,allowCellsRecycling:!0,width:j,header:re(Cx.Cell,{className:Ny(dv.tableHeader),style:z,children:re(Vse,{column:R,onClick:a,isSelected:!!Math.abs(R.direction),showFieldTypeIcon:_,sortIcon:(i==null?void 0:i.sortIcon)||"standard",children:CW({displayValue:Qi(E),width:j,padding:M,ellipsizedLength:Xse})})}),cell:C=>{var y=C,{rowIndex:f}=y,w=Cb(y,["rowIndex"]);return re(Cx.Cell,Ye(Ce({className:Ny(dv.tableCell),style:pW({colIndex:N,rowIndex:f,themeSettings:r,customStyles:i})},w),{children:CW({displayValue:t.rows[f][N].displayValue,width:j,padding:BQ,ellipsizedLength:qse,isHtml:"isHtml"in E&&E.isHtml})}))},align:Tce(R.type)},`col${N}`):null}),[t,Y,r,i,a,_,e,M]);return We(()=>re("div",{className:dv.tableWrapper,style:{padding:`${c}px ${$}px`},children:re(Cx.Table,{className:dv.table,rowHeight:(i==null?void 0:i.rowHeight)||Gse,rowsCount:t.rows.length,width:o-$*2,height:n-c*2,headerHeight:(i==null?void 0:i.headerHeight)||Use,children:H})}),[H,i,t,n,$,c,o])},Oce="_component_1rw9b_1",Pce={component:Oce},Ace=(t,e)=>{if(!t.columns.some(i=>Li(i.type)))return t;const n=t.columns,o=t.rows.map(i=>i.map((r,a)=>{const s=n[a].type,l=ni(e.columns[a].numberFormatConfig);if(Li(s)){const d=Vm(r.displayValue,s);return{displayValue:ki(l,d.value),compareValue:d}}else return r}));return{columns:n,rows:o}},Ece=({dataTable:t,dataOptions:e,designOptions:n={},onSortUpdate:o,themeSettings:i,width:r=400,height:a=500})=>{const s=fe(null),l=fe(t),d=We(()=>Ace(t,e),[t,e]);Or(()=>{l.current=t},[t]);const _=We(()=>Ce({sortIcon:"caret",showFieldTypeIcon:!1},n),[n]);return re("div",{className:Pce.component,ref:s,children:re(Mce,{dataTable:d,dataOptions:e,onSortUpdate:o,height:a,width:r,customStyles:_,themeSettings:i})})},Lce=t=>({"& .MuiPaginationItem-circular.Mui-selected":{color:t.chart.textColor},"& .MuiPaginationItem-circular":{color:t.chart.secondaryTextColor,fontFamily:t.typography.fontFamily}});var Nce=Object.prototype,Rce=Nce.hasOwnProperty;function Dce(t,e){return t!=null&&Rce.call(t,e)}function Ice(t,e){return t!=null&&r8(t,e,Dce)}function jce(t,e){for(const n of e)Ice(t,n)&&console.warn(`Prop '${n}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const zce=t=>(jce(t,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:t.paddingVertical,paddingHorizontal:t.paddingHorizontal,header:Ce(Ce({},t.headersColor?{color:{enabled:t.headersColor}}:null),t.header),rows:Ce(Ce({},t.alternatingRowsColor?{alternatingColor:{enabled:t.alternatingRowsColor}}:null),t.rows),columns:Ce(Ce({},t.alternatingColumnsColor?{alternatingColor:{enabled:t.alternatingColumnsColor}}:null),t.columns)}),JQ=25,tJ=10,eJ=({dataSet:t,dataOptions:e,styleOptions:n={},filters:o,onDataReady:i})=>{const{rowsPerPage:r=JQ,width:a,height:s}=n,{themeSettings:l}=er(),[d,_]=Ee(0),{filters:M,relations:c}=mS(o),[$,S]=Ee(1),g=fe(null),D=We(()=>sK(e),[e]),W=We(()=>iR(D.columns.filter(Ro).map(CC)),[D]),G=We(()=>zce(n),[n]),[Y,H]=Ee(D),[R,N]=Ee(t),[j,E]=HXt({dataSet:R,dataOptions:Y,filters:M,filterRelations:c,count:r*tJ,offset:d}),z=We(()=>{if(j&&i){const P=i(j);if(!dK(P))throw new Mn("errors.incorrectOnDataReadyHandler");return P}return j},[j]),C=VXt({data:z,innerDataOptions:E,dataColumnNamesMapping:W,needToAggregate:!Yd(R)});Ae(()=>{H(D),N(t),S(1),_(0)},[t,D]);const y=Ue(P=>{j&&(Math.floor(j.rows.length/r)===P&&_(j.rows.length),S(P))},[j,r]),f=Ue(P=>{S(1),_(0),Y&&H(WYt(Y,P))},[Y]),w=We(()=>{if(!C||Yd(R))return C;const P=C.columns.find(U=>U.direction!==0);return P?hN(C,[P]):C},[C,R]),x=We(()=>w?{columns:w.columns,rows:w.rows.slice(($-1)*r,$*r)}:void 0,[w,$,r]);return E?re(l2,{defaultSize:oR("table"),size:{width:a,height:s},children:P=>{if(!C||!x)return re(VC,{themeSettings:l});if(nFt(C))return re(nR,{iconType:"table"});const U=Math.ceil(C.rows.length/r);return Dn("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:l.chart.backgroundColor},"aria-label":"table-root",children:[re(Ece,{dataTable:x,dataOptions:E,designOptions:G,themeSettings:l,width:P.width,height:P.height-32,onSortUpdate:f}),re(fK,{ref:g,page:$,count:U,onChange:(Z,B)=>y(B),sx:Lce(l)})]})}}):null},nJ=t=>{const{dataSet:e}=t;return!!e&&typeof e!="string"&&"rows"in e&&"columns"in e},Bce=eo(null),zM={didCatch:!1,error:null};class oJ extends Ei{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=zM}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,o,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];(n=(o=this.props).onReset)===null||n===void 0||n.call(o,{args:r,reason:"imperative-api"}),this.setState(zM)}}componentDidCatch(e,n){var o,i;(o=(i=this.props).onError)===null||o===void 0||o.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:o}=this.state,{resetKeys:i}=this.props;if(o&&n.error!==null&&$ce(e.resetKeys,i)){var r,a;(r=(a=this.props).onReset)===null||r===void 0||r.call(a,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(zM)}}render(){const{children:e,fallbackRender:n,FallbackComponent:o,fallback:i}=this.props,{didCatch:r,error:a}=this.state;let s=e;if(r){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")s=n(l);else if(o)s=sn(o,l);else if(i===null||Jn(i))s=i;else throw a}return sn(Bce.Provider,{value:{didCatch:r,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function $ce(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,o)=>!Object.is(n,e[o]))}const iJ=eo(void 0),Fce=({children:t})=>{const[e,n]=Ee([]),[o,i]=Ee([]),r=()=>n([]),a=()=>i([]);return re(iJ.Provider,{value:{errors:e,warnings:o,clearError:r,clearWarning:a,setErrors:n,setWarnings:i},children:t})},rJ=()=>On(iJ)||{errors:[],warnings:[],setErrors:()=>{console.warn("setErrors called, but context is not available.")},setWarnings:()=>{console.warn("setWarnings called, but context is not available.")},clearError:()=>{console.warn("clearError called, but context is not available.")},clearWarning:()=>{console.warn("clearWarning called, but context is not available.")}};function HR(t,e,n){const o=CN(t);return typeof t!="object"&&t===o?!1:o==null||(e?e.some(i=>!Lu(o[i],t[i])):!Lu(o,t))?!0:n?n(t,o):!1}const Wce=t=>{const[e,n]=Ee(0),{setErrors:o,errors:i}=rJ(),r=HR(t,["dataOptions","filters"]);if(Ae(()=>{r&&i.length>0&&(n(e+1),o([]))},[t.dataOptions,t.filters]),!Yd(t.dataSet))throw new Mn("errors.undefinedDataSource");const a=Wa(t.dataOptions),s=e$t(a);a.value.push(...s);const l=n$t(a);a.value.push(...l);const d=Ue(({error:_})=>(console.debug("Unexpected error occurred when rendering advanced chart:",_),re(JA,Ce({},t))),[t,i]);return i.length===2?null:re(oJ,{fallbackRender:d,onError:_=>{o(M=>[...M,_.message])},children:re(JA,Ye(Ce({},t),{dataOptions:a}))},`errorboundary_${e}`)},aJ=Nb({componentName:"Chart",shouldSkipSisenseContextWaiting:nJ,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(t=>{if(Hce(t))return re(eJ,Ce({},t));if(Vce(t))return re(Wce,Ce({},t));if(sJ(t))return re(JA,Ce({},t));throw new Mn("errors.chartInvalidProps")});function Hce(t){return t.chartType==="table"&&"columns"in t.dataOptions}function sJ(t){return t.chartType!=="table"}function Vce(t){return!sJ(t)||!Hl(t.chartType)?!1:t.dataOptions.value.some(e=>(e==null?void 0:e.forecast)!==void 0||(e==null?void 0:e.trend)!==void 0)}var Uce=function(t){return t.None="",t.Large="30px",t.Medium="20px",t.Small="10px",t}({}),dE=function(t){return t.None="",t.Light="0.15",t.Medium="0.3",t.Dark="0.7",t}(dE||{}),hE=function(t){return t.None="",t.Large="3px 12px",t.Medium="2px 8px",t.Small="1px 4px",t}(hE||{}),lJ=function(t){return t.None="",t.Large="15px",t.Medium="10px",t.Small="5px",t}({});const Gce=(t,e)=>{const n=Id(t,"shadow",e.widget.shadow),o=Id(t,"spaceAround",e.widget.spaceAround);if(n==="None"||o==="None")return"none";if(n in dE&&o in hE){const i=dE[`${n}`];return`0px ${hE[`${o}`]} rgba(9, 9, 10, ${i})`}return"none"};function Yce(t){return gi("MuiCard",t)}yi("MuiCard",["root"]);const Xce=["className","raised"],qce=t=>{const{classes:e}=t;return Ui({root:["root"]},Yce,e)},Zce=Vn(o2,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({overflow:"hidden"})),cJ=He(function(t,e){const n=Ni({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=n,r=Bn(n,Xce),a=ce({},n,{raised:i}),s=qce(a);return jt(Zce,ce({className:Wn(s.root,o),elevation:i?8:void 0,ref:e,ownerState:a},r))});process.env.NODE_ENV!=="production"&&(cJ.propTypes={children:yt.node,classes:yt.object,className:yt.string,raised:Uu(yt.bool,t=>t.raised&&t.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:yt.oneOfType([yt.arrayOf(yt.oneOfType([yt.func,yt.object,yt.bool])),yt.func,yt.object])});function Kce(t){return gi("MuiCardContent",t)}yi("MuiCardContent",["root"]);const Qce=["className","component"],Jce=t=>{const{classes:e}=t;return Ui({root:["root"]},Kce,e)},tue=Vn("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),uJ=He(function(t,e){const n=Ni({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=n,r=Bn(n,Qce),a=ce({},n,{component:i}),s=Jce(a);return jt(tue,ce({as:i,className:Wn(s.root,o),ownerState:a,ref:e},r))});process.env.NODE_ENV!=="production"&&(uJ.propTypes={children:yt.node,classes:yt.object,className:yt.string,component:yt.elementType,sx:yt.oneOfType([yt.arrayOf(yt.oneOfType([yt.func,yt.object,yt.bool])),yt.func,yt.object])});function eue(t){return gi("MuiIconButton",t)}const nue=yi("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),oue=["edge","children","className","color","disabled","disableFocusRipple","size"],iue=t=>{const{classes:e,disabled:n,color:o,edge:i,size:r}=t,a={root:["root",n&&"disabled",o!=="default"&&`color${ro(o)}`,i&&`edge${ro(i)}`,`size${ro(r)}`]};return Ui(a,eue,e)},rue=Vn($p,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${ro(n.color)}`],n.edge&&e[`edge${ro(n.edge)}`],e[`size${ro(n.size)}`]]}})(({theme:t,ownerState:e})=>ce({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Hi(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var n;const o=(n=(t.vars||t).palette)==null?void 0:n[e.color];return ce({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&ce({color:o==null?void 0:o.main},!e.disableRipple&&{"&:hover":ce({},o&&{backgroundColor:t.vars?`rgba(${o.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hi(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${nue.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),Km=He(function(t,e){const n=Ni({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:r,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:d="medium"}=n,_=Bn(n,oue),M=ce({},n,{edge:o,color:a,disabled:s,disableFocusRipple:l,size:d}),c=iue(M);return jt(rue,ce({className:Wn(c.root,r),centerRipple:!0,focusRipple:!l,disabled:s,ref:e},_,{ownerState:M,children:i}))});process.env.NODE_ENV!=="production"&&(Km.propTypes={children:Uu(yt.node,t=>ta.toArray(t.children).some(e=>Jn(e)&&e.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
1010
|
-
`)):null),classes:yt.object,className:yt.string,color:yt.oneOfType([yt.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),yt.string]),disabled:yt.bool,disableFocusRipple:yt.bool,disableRipple:yt.bool,edge:yt.oneOf(["end","start",!1]),size:yt.oneOfType([yt.oneOf(["small","medium","large"]),yt.string]),sx:yt.oneOfType([yt.arrayOf(yt.oneOfType([yt.func,yt.object,yt.bool])),yt.func,yt.object])});function aue({fill:t="rgba(38, 46, 61, 0.67)"}){return re("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:re("path",{fill:t,d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}const sue=ma(i2,{target:"e1g12j10",label:"StyledMuiPopover"})(".MuiPaper-root.MuiPopover-paper:not([style*='top']),.MuiPaper-root.MuiPopover-paper:not([style*='left']){opacity:0 !important;}"),dJ=t=>{const e=t,{children:n,open:o,id:i,position:r,onClose:a}=e,s=Cb(e,["children","open","id","position","onClose"]);return re(sue,Ye(Ce({id:i,className:"csdk-accessible",anchorEl:r==null?void 0:r.anchorEl,anchorOrigin:r==null?void 0:r.anchorOrigin,transformOrigin:r==null?void 0:r.contentOrigin,transitionDuration:0,open:o,slotProps:{paper:{sx:{display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"}}},onClose:a},s),{children:n}))};function lue({title:t,description:e,errorMessages:n=[],styleOptions:o,onRefresh:i}){var r,a,s;const[l,d]=Ee(null),{themeSettings:_}=er(),{typography:{primaryTextColor:M,secondaryTextColor:c,fontFamily:$}}=_,{t:S}=wa(),g=H=>{d(H.currentTarget)},D=()=>{d(null)},W=We(()=>t?re(Qa,{variant:"body2",style:{color:M,fontFamily:$,fontSize:13},children:t}):null,[t,M,$]),G=We(()=>n.length===0?null:n.map(H=>Dn(Ws,{children:[re(gm,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),Dn("div",{className:"csdk-flex",children:[re("div",{className:"csdk-shrink-0 csdk-grow-0",children:re(aue,{fill:"#fa5656"})}),re(Qa,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:$,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:H})]})]})),[n,c,$]),Y=We(()=>e?Dn(Ws,{children:[re(gm,{sx:{my:"8px",borderColor:c,opacity:.3}}),re(Qa,{variant:"body2",style:{color:c,fontFamily:$,fontSize:13},children:e})]}):null,[e,c,$]);return Dn(Ws,{children:[re(O2,{title:S("widgetHeader.info.tooltip"),style:{color:(r=_.chart)==null?void 0:r.textColor,fontFamily:(a=_.typography)==null?void 0:a.fontFamily},children:re(Km,{onClick:g,sx:{p:0},children:re("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:re("path",{fill:(o==null?void 0:o.titleTextColor)||_.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),re(dJ,{open:!!l,position:l?{anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:D,children:Dn(cJ,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[Dn("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:nN(_.general.backgroundColor)},children:[re(Qa,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:_.typography.primaryTextColor,fontFamily:_.typography.fontFamily},children:S("widgetHeader.info.details")}),re(Km,{onClick:i,sx:{p:0},children:re("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:re("path",{fill:(s=_.chart)==null?void 0:s.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),re(gm,{sx:{borderColor:_.typography.secondaryTextColor,opacity:.3}}),Dn(uJ,{style:{backgroundColor:_.general.backgroundColor,padding:12},children:[W,G,Y]})]})})]})}const cue=({title:t,description:e,errorMessages:n=[],warningMessages:o=[],dataSetName:i,styleOptions:r,onRefresh:a})=>{var s;const{themeSettings:l}=er(),d=()=>{var _;const M=re(Ws,{children:re(lue,{title:i,description:e,styleOptions:r,errorMessages:n,warningMessages:o,onRefresh:a})});return r!=null&&r.renderToolbar?(_=r==null?void 0:r.renderToolbar)==null?void 0:_.call(r,a,M):M};return Dn(Ws,{children:[Dn("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(r==null?void 0:r.backgroundColor)||l.widget.header.backgroundColor},children:[re("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:uue((r==null?void 0:r.titleAlignment)||l.widget.header.titleAlignment),color:(r==null?void 0:r.titleTextColor)||l.widget.header.titleTextColor,fontFamily:(s=l.typography)==null?void 0:s.fontFamily,fontSize:15},children:t||""}),re("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:d()})]}),Id(r,"dividerLine",l.widget.header.dividerLine)&&re(gm,{style:{backgroundColor:(r==null?void 0:r.dividerLineColor)||l.widget.header.dividerLineColor||"#e6e6e6"}})]})};function uue(t){return t.toLowerCase()}const hJ=t=>re(Fce,{children:re(due,Ce({},t))}),due=({dataSetName:t,styleOptions:e,title:n,description:o,topSlot:i,bottomSlot:r,children:a,onRefresh:s=()=>{}})=>{var l,d,_;const{errors:M,warnings:c}=rJ(),{themeSettings:$}=er();return re("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden csdk-accessible",children:re("div",{className:"csdk-h-full",style:{padding:lJ[Id(e,"spaceAround",$.widget.spaceAround)]||"0px"},children:Dn("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(e==null?void 0:e.backgroundColor)||"unset",borderWidth:Id(e,"border",$.widget.border)?"1px":0,borderColor:(e==null?void 0:e.borderColor)||$.widget.borderColor,borderRadius:Uce[(e==null?void 0:e.cornerRadius)||$.widget.cornerRadius]||0,boxShadow:Gce(e,$),display:"flex",flexDirection:"column"},children:[!((l=e==null?void 0:e.header)!=null&&l.hidden)&&re(cue,{title:n,description:o,dataSetName:t,errorMessages:M,warningMessages:c,styleOptions:e==null?void 0:e.header,onRefresh:s}),i,re(FZ,{theme:{chart:{backgroundColor:(e==null?void 0:e.backgroundColor)||((d=$.chart)==null?void 0:d.backgroundColor)}},children:re("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(e==null?void 0:e.backgroundColor)||((_=$.chart)==null?void 0:_.backgroundColor)},children:a})}),r]})})})};var hue="[object String]";function pJ(t){return typeof t=="string"||!Wo(t)&&ba(t)&&Wl(t)==hue}const pue=t=>{const e=fue(t);return e.config.disabled=!t.config.disabled,e},fue=t=>{const e=Wa(t);return Object.setPrototypeOf(e,t),e};function mue(t,e,n){return Kd(t,[],{guid:e,excludeMembers:!1,backgroundFilter:n})}function P2(t){if(!pS(t))throw new Mn("errors.notAMembersFilter");const{attribute:e,config:{guid:n,backgroundFilter:o}}=t;return mue(e,n,o)}function VR(t){return"members"in t&&t.members.length===0}function Gs(t,e){return t.expression===(e==null?void 0:e.expression)&&t.granularity===e.granularity}function fJ(t,e){return t===void 0&&e===void 0?!1:[t,e].some(n=>n===void 0)||t.length!==e.length?!0:t.length===0&&e.length===0?!1:t.some((n,o)=>!aq(n,e[o],mJ))}function UR(t,e){return Gs(t.attribute,e.attribute)}function mJ(t,e){const n=fb(gue,vue);return Lu(n(t),n(e))}function gue(t){return Ye(Ce({},t),{name:""})}function vue(t){return Ye(Ce({},t),{config:Ye(Ce({},t.config),{guid:""})})}function yue(t,e,n,o){if(n===void 0&&o===void 0)return!1;if([n,o].some(r=>r===void 0))return!0;function i(r,a){const s=r,l=r,d=a,_=a;return r===void 0&&a===void 0?!0:[r,a].some(M=>M===void 0)||s.operator!==d.operator?!1:l.instanceid&&_.instanceid?!fJ(t==null?void 0:t.filter(M=>M.config.guid===l.instanceid),e==null?void 0:e.filter(M=>M.config.guid===_.instanceid)):i(s.left,d.left)&&i(s.right,d.right)||i(s.left,d.right)&&i(s.right,d.left)}return!i(n,o)}const gJ="sdkHookInit",bue=(t,e,n,o)=>{n&&Dq(gJ,{packageName:e,packageVersion:"1.34.0",hookName:t},n.httpClient).finally(o)};function xue(t){const{tracking:e,app:n}=vr(),{trackEvent:o}=LN(),i=fe(!1);Ae(()=>{if(!(!e||!n)&&!i.current){const r={packageName:e.packageName||"sdk-ui",packageVersion:"1.34.0",hookName:t};o(gJ,r,!e.enabled).finally(()=>i.current=!0)}},[e,t,o,n])}const vJ=t=>e=>(...n)=>(xue(t),e(...n));function pE(t,e){switch(e.type){case"loading":return wue(t);case"success":return _ue(e.data);case"error":return Sue(e.error)}}function wue(t){return t.status==="loading"?t:Ye(Ce({},t),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function _ue(t){return{isLoading:!1,isError:!1,isSuccess:!0,data:t,status:"success",error:void 0}}function Sue(t){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:t}}function yJ({enabled:t},e){const n=fe(!1);return Ue((o,i=!1)=>{const r=t===!1||!o,a=n.current;return n.current=r,!r&&(a||e||i)},[t,e])}var BM=function(){return na.Date.now()},Cue="Expected a function",kue=Math.max,Tue=Math.min;function Mue(t,e,n){var o,i,r,a,s,l,d=0,_=!1,M=!1,c=!0;if(typeof t!="function")throw new TypeError(Cue);e=fy(e)||0,$r(n)&&(_=!!n.leading,M="maxWait"in n,r=M?kue(fy(n.maxWait)||0,e):r,c="trailing"in n?!!n.trailing:c);function $(N){var j=o,E=i;return o=i=void 0,d=N,a=t.apply(E,j),a}function S(N){return d=N,s=setTimeout(W,e),_?$(N):a}function g(N){var j=N-l,E=N-d,z=e-j;return M?Tue(z,r-E):z}function D(N){var j=N-l,E=N-d;return l===void 0||j>=e||j<0||M&&E>=r}function W(){var N=BM();if(D(N))return G(N);s=setTimeout(W,g(N))}function G(N){return s=void 0,c&&o?$(N):(o=i=void 0,a)}function Y(){s!==void 0&&clearTimeout(s),d=0,o=l=i=s=void 0}function H(){return s===void 0?a:G(BM())}function R(){var N=BM(),j=D(N);if(o=arguments,i=this,l=N,j){if(s===void 0)return S(l);if(M)return clearTimeout(s),s=setTimeout(W,e),$(l)}return s===void 0&&(s=setTimeout(W,e)),a}return R.cancel=Y,R.flush=H,R}function GR(t,{onLocalStateChange:e,syncCompareFn:n=Lu}={}){const[o,i]=Ee(t),r=fe(t);Ae(()=>{n(r.current,t)||i(t),r.current=t},[t,n]);const a=Ue(s=>{i(l=>{const d=Eu(s)?s(l):s;return e==null||e(d),d})},[e]);return[o,a]}function Oue({chartType:t,dataOptions:e,enabled:n}){const[o,i]=Ee([]),r=We(()=>{var M;const c=Hl(t)&&((M=e.category)==null?void 0:M.length)===1||$l(t);return n&&c},[n,t,e]),a=We(()=>{if(o.length===0)return M=>Ye(Ce({},M),{series:M.series.map(c=>Ye(Ce({},c),{data:c.data.map($=>Ye(Ce({},$),{selected:!1}))}))});if($l(t))return M=>Ye(Ce({},M),{series:M.series.map(c=>Ye(Ce({},c),{data:c.data.map($=>Ye(Ce({},$),{selected:!o.some(S=>{var g,D;return S.x===$.x&&S.y===$.y&&S.size===$.z&&S.breakByPoint===((g=$.custom)==null?void 0:g.maskedBreakByPoint)&&S.breakByColor===((D=$.custom)==null?void 0:D.maskedBreakByColor)})}))}))});{const M=o.reduce((c,{categoryValue:$})=>($&&(c[`${$}`]=!0),c),{});return c=>Ye(Ce({},c),{series:c.series.map($=>Ye(Ce({},$),{data:$.data.map(S=>{var g,D;return M[(D=(g=S.custom)==null?void 0:g.xValue)==null?void 0:D[0]]?S:Ye(Ce({},S),{selected:!0})})}))})}},[o,t]),s=We(()=>M=>{var c;return Ye(Ce({},M),{chart:Ye(Ce({},M.chart),{events:Ye(Ce({},(c=M.chart)==null?void 0:c.events),{click:()=>{i([])}})})})},[]),l=Ue(M=>(r&&(M=a(M),M=s(M)),M),[a,s,r]),d=Ue(M=>{r&&i(M)},[r]),_=Ue(M=>{r&&i([M])},[r]);return{onBeforeRender:l,onDataPointsSelected:d,onDataPointClick:_}}const bJ=()=>{const t=UC();if(!t)throw new Mn("errors.missingMenuRoot");const{openMenu:e,closeMenu:n}=t;return{openMenu:e,closeMenu:n}};function fE(t){return t&&t.length?aR(t):[]}function Pue(t,e,n,o){for(var i=-1,r=t==null?0:t.length;++i<r;){var a=t[i];e(o,a,n(a),t)}return o}function Aue(t,e){return function(n,o){if(n==null)return n;if(!Uy(n))return t(n,o);for(var i=n.length,r=-1,a=Object(n);++r<i&&o(a[r],r,a)!==!1;);return n}}var Eue=Aue(ZE);function Lue(t,e,n,o){return Eue(t,function(i,r,a){e(o,i,n(i),a)}),o}function xJ(t,e){return function(n,o){var i=Wo(n)?Pue:Lue,r=e?e():{};return i(n,t,sS(o),r)}}var Hb=xJ(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});const Nue=wg(jt("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Rue=["slots","slotProps"],Due=Vn($p)(({theme:t})=>ce({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`},t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":ce({},t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":ce({boxShadow:t.shadows[0]},t.palette.mode==="light"?{backgroundColor:R6(t.palette.grey[200],.12)}:{backgroundColor:R6(t.palette.grey[600],.12)})})),Iue=Vn(Nue)({width:24,height:16});function wJ(t){const{slots:e={},slotProps:n={}}=t,o=Bn(t,Rue),i=t;return jt("li",{children:jt(Due,ce({focusRipple:!0},o,{ownerState:i,children:jt(Iue,ce({as:e.CollapsedIcon,ownerState:i},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(wJ.propTypes={slotProps:yt.shape({collapsedIcon:yt.oneOfType([yt.func,yt.object])}),slots:yt.shape({CollapsedIcon:yt.elementType}),sx:yt.object});function jue(t){return gi("MuiBreadcrumbs",t)}const zue=yi("MuiBreadcrumbs",["root","ol","li","separator"]),Bue=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],$ue=t=>{const{classes:e}=t;return Ui({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},jue,e)},Fue=Vn(Qa,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${zue.li}`]:e.li},e.root]})({}),Wue=Vn("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Hue=Vn("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Vue(t,e,n,o){return t.reduce((i,r,a)=>(a<t.length-1?i=i.concat(r,jt(Hue,{"aria-hidden":!0,className:e,ownerState:o,children:n},`separator-${a}`)):i.push(r),i),[])}const _J=He(function(t,e){const n=Ni({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:r="nav",slots:a={},slotProps:s={},expandText:l="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:_=1,maxItems:M=8,separator:c="/"}=n,$=Bn(n,Bue),[S,g]=Ee(!1),D=ce({},n,{component:r,expanded:S,expandText:l,itemsAfterCollapse:d,itemsBeforeCollapse:_,maxItems:M,separator:c}),W=$ue(D),G=Xd({elementType:a.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:D}),Y=fe(null),H=N=>{const j=()=>{g(!0);const E=Y.current.querySelector("a[href],button,[tabindex]");E&&E.focus()};return _+d>=N.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${_}} >= maxItems={${M}}`].join(`
|
|
1010
|
+
`)):null),classes:yt.object,className:yt.string,color:yt.oneOfType([yt.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),yt.string]),disabled:yt.bool,disableFocusRipple:yt.bool,disableRipple:yt.bool,edge:yt.oneOf(["end","start",!1]),size:yt.oneOfType([yt.oneOf(["small","medium","large"]),yt.string]),sx:yt.oneOfType([yt.arrayOf(yt.oneOfType([yt.func,yt.object,yt.bool])),yt.func,yt.object])});function aue({fill:t="rgba(38, 46, 61, 0.67)"}){return re("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:re("path",{fill:t,d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}const sue=ma(i2,{target:"e1g12j10",label:"StyledMuiPopover"})(".MuiPaper-root.MuiPopover-paper:not([style*='top']),.MuiPaper-root.MuiPopover-paper:not([style*='left']){opacity:0 !important;}"),dJ=t=>{const e=t,{children:n,open:o,id:i,position:r,onClose:a}=e,s=Cb(e,["children","open","id","position","onClose"]);return re(sue,Ye(Ce({id:i,className:"csdk-accessible",anchorEl:r==null?void 0:r.anchorEl,anchorOrigin:r==null?void 0:r.anchorOrigin,transformOrigin:r==null?void 0:r.contentOrigin,transitionDuration:0,open:o,slotProps:{paper:{sx:{display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"}}},onClose:a},s),{children:n}))};function lue({title:t,description:e,errorMessages:n=[],styleOptions:o,onRefresh:i}){var r,a,s;const[l,d]=Ee(null),{themeSettings:_}=er(),{typography:{primaryTextColor:M,secondaryTextColor:c,fontFamily:$}}=_,{t:S}=wa(),g=H=>{d(H.currentTarget)},D=()=>{d(null)},W=We(()=>t?re(Qa,{variant:"body2",style:{color:M,fontFamily:$,fontSize:13},children:t}):null,[t,M,$]),G=We(()=>n.length===0?null:n.map(H=>Dn(Ws,{children:[re(gm,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),Dn("div",{className:"csdk-flex",children:[re("div",{className:"csdk-shrink-0 csdk-grow-0",children:re(aue,{fill:"#fa5656"})}),re(Qa,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:$,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:H})]})]})),[n,c,$]),Y=We(()=>e?Dn(Ws,{children:[re(gm,{sx:{my:"8px",borderColor:c,opacity:.3}}),re(Qa,{variant:"body2",style:{color:c,fontFamily:$,fontSize:13},children:e})]}):null,[e,c,$]);return Dn(Ws,{children:[re(O2,{title:S("widgetHeader.info.tooltip"),style:{color:(r=_.chart)==null?void 0:r.textColor,fontFamily:(a=_.typography)==null?void 0:a.fontFamily},children:re(Km,{onClick:g,sx:{p:0},children:re("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:re("path",{fill:(o==null?void 0:o.titleTextColor)||_.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),re(dJ,{open:!!l,position:l?{anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:D,children:Dn(cJ,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[Dn("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:nN(_.general.backgroundColor)},children:[re(Qa,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:_.typography.primaryTextColor,fontFamily:_.typography.fontFamily},children:S("widgetHeader.info.details")}),re(Km,{onClick:i,sx:{p:0},children:re("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:re("path",{fill:(s=_.chart)==null?void 0:s.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),re(gm,{sx:{borderColor:_.typography.secondaryTextColor,opacity:.3}}),Dn(uJ,{style:{backgroundColor:_.general.backgroundColor,padding:12},children:[W,G,Y]})]})})]})}const cue=({title:t,description:e,errorMessages:n=[],warningMessages:o=[],dataSetName:i,styleOptions:r,onRefresh:a})=>{var s;const{themeSettings:l}=er(),d=()=>{var _;const M=re(Ws,{children:re(lue,{title:i,description:e,styleOptions:r,errorMessages:n,warningMessages:o,onRefresh:a})});return r!=null&&r.renderToolbar?(_=r==null?void 0:r.renderToolbar)==null?void 0:_.call(r,a,M):M};return Dn(Ws,{children:[Dn("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(r==null?void 0:r.backgroundColor)||l.widget.header.backgroundColor},children:[re("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:uue((r==null?void 0:r.titleAlignment)||l.widget.header.titleAlignment),color:(r==null?void 0:r.titleTextColor)||l.widget.header.titleTextColor,fontFamily:(s=l.typography)==null?void 0:s.fontFamily,fontSize:15},children:t||""}),re("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:d()})]}),Id(r,"dividerLine",l.widget.header.dividerLine)&&re(gm,{style:{backgroundColor:(r==null?void 0:r.dividerLineColor)||l.widget.header.dividerLineColor||"#e6e6e6"}})]})};function uue(t){return t.toLowerCase()}const hJ=t=>re(Fce,{children:re(due,Ce({},t))}),due=({dataSetName:t,styleOptions:e,title:n,description:o,topSlot:i,bottomSlot:r,children:a,onRefresh:s=()=>{}})=>{var l,d,_;const{errors:M,warnings:c}=rJ(),{themeSettings:$}=er();return re("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden csdk-accessible",children:re("div",{className:"csdk-h-full",style:{padding:lJ[Id(e,"spaceAround",$.widget.spaceAround)]||"0px"},children:Dn("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(e==null?void 0:e.backgroundColor)||"unset",borderWidth:Id(e,"border",$.widget.border)?"1px":0,borderColor:(e==null?void 0:e.borderColor)||$.widget.borderColor,borderRadius:Uce[(e==null?void 0:e.cornerRadius)||$.widget.cornerRadius]||0,boxShadow:Gce(e,$),display:"flex",flexDirection:"column"},children:[!((l=e==null?void 0:e.header)!=null&&l.hidden)&&re(cue,{title:n,description:o,dataSetName:t,errorMessages:M,warningMessages:c,styleOptions:e==null?void 0:e.header,onRefresh:s}),i,re(FZ,{theme:{chart:{backgroundColor:(e==null?void 0:e.backgroundColor)||((d=$.chart)==null?void 0:d.backgroundColor)}},children:re("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(e==null?void 0:e.backgroundColor)||((_=$.chart)==null?void 0:_.backgroundColor)},children:a})}),r]})})})};var hue="[object String]";function pJ(t){return typeof t=="string"||!Wo(t)&&ba(t)&&Wl(t)==hue}const pue=t=>{const e=fue(t);return e.config.disabled=!t.config.disabled,e},fue=t=>{const e=Wa(t);return Object.setPrototypeOf(e,t),e};function mue(t,e,n){return Kd(t,[],{guid:e,excludeMembers:!1,backgroundFilter:n})}function P2(t){if(!pS(t))throw new Mn("errors.notAMembersFilter");const{attribute:e,config:{guid:n,backgroundFilter:o}}=t;return mue(e,n,o)}function VR(t){return"members"in t&&t.members.length===0}function Gs(t,e){return t.expression===(e==null?void 0:e.expression)&&t.granularity===e.granularity}function fJ(t,e){return t===void 0&&e===void 0?!1:[t,e].some(n=>n===void 0)||t.length!==e.length?!0:t.length===0&&e.length===0?!1:t.some((n,o)=>!aq(n,e[o],mJ))}function UR(t,e){return Gs(t.attribute,e.attribute)}function mJ(t,e){const n=fb(gue,vue);return Lu(n(t),n(e))}function gue(t){return Ye(Ce({},t),{name:""})}function vue(t){return Ye(Ce({},t),{config:Ye(Ce({},t.config),{guid:""})})}function yue(t,e,n,o){if(n===void 0&&o===void 0)return!1;if([n,o].some(r=>r===void 0))return!0;function i(r,a){const s=r,l=r,d=a,_=a;return r===void 0&&a===void 0?!0:[r,a].some(M=>M===void 0)||s.operator!==d.operator?!1:l.instanceid&&_.instanceid?!fJ(t==null?void 0:t.filter(M=>M.config.guid===l.instanceid),e==null?void 0:e.filter(M=>M.config.guid===_.instanceid)):i(s.left,d.left)&&i(s.right,d.right)||i(s.left,d.right)&&i(s.right,d.left)}return!i(n,o)}const gJ="sdkHookInit",bue=(t,e,n,o)=>{n&&Dq(gJ,{packageName:e,packageVersion:"1.35.0",hookName:t},n.httpClient).finally(o)};function xue(t){const{tracking:e,app:n}=vr(),{trackEvent:o}=LN(),i=fe(!1);Ae(()=>{if(!(!e||!n)&&!i.current){const r={packageName:e.packageName||"sdk-ui",packageVersion:"1.35.0",hookName:t};o(gJ,r,!e.enabled).finally(()=>i.current=!0)}},[e,t,o,n])}const vJ=t=>e=>(...n)=>(xue(t),e(...n));function pE(t,e){switch(e.type){case"loading":return wue(t);case"success":return _ue(e.data);case"error":return Sue(e.error)}}function wue(t){return t.status==="loading"?t:Ye(Ce({},t),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function _ue(t){return{isLoading:!1,isError:!1,isSuccess:!0,data:t,status:"success",error:void 0}}function Sue(t){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:t}}function yJ({enabled:t},e){const n=fe(!1);return Ue((o,i=!1)=>{const r=t===!1||!o,a=n.current;return n.current=r,!r&&(a||e||i)},[t,e])}var BM=function(){return na.Date.now()},Cue="Expected a function",kue=Math.max,Tue=Math.min;function Mue(t,e,n){var o,i,r,a,s,l,d=0,_=!1,M=!1,c=!0;if(typeof t!="function")throw new TypeError(Cue);e=fy(e)||0,$r(n)&&(_=!!n.leading,M="maxWait"in n,r=M?kue(fy(n.maxWait)||0,e):r,c="trailing"in n?!!n.trailing:c);function $(N){var j=o,E=i;return o=i=void 0,d=N,a=t.apply(E,j),a}function S(N){return d=N,s=setTimeout(W,e),_?$(N):a}function g(N){var j=N-l,E=N-d,z=e-j;return M?Tue(z,r-E):z}function D(N){var j=N-l,E=N-d;return l===void 0||j>=e||j<0||M&&E>=r}function W(){var N=BM();if(D(N))return G(N);s=setTimeout(W,g(N))}function G(N){return s=void 0,c&&o?$(N):(o=i=void 0,a)}function Y(){s!==void 0&&clearTimeout(s),d=0,o=l=i=s=void 0}function H(){return s===void 0?a:G(BM())}function R(){var N=BM(),j=D(N);if(o=arguments,i=this,l=N,j){if(s===void 0)return S(l);if(M)return clearTimeout(s),s=setTimeout(W,e),$(l)}return s===void 0&&(s=setTimeout(W,e)),a}return R.cancel=Y,R.flush=H,R}function GR(t,{onLocalStateChange:e,syncCompareFn:n=Lu}={}){const[o,i]=Ee(t),r=fe(t);Ae(()=>{n(r.current,t)||i(t),r.current=t},[t,n]);const a=Ue(s=>{i(l=>{const d=Eu(s)?s(l):s;return e==null||e(d),d})},[e]);return[o,a]}function Oue({chartType:t,dataOptions:e,enabled:n}){const[o,i]=Ee([]),r=We(()=>{var M;const c=Hl(t)&&((M=e.category)==null?void 0:M.length)===1||$l(t);return n&&c},[n,t,e]),a=We(()=>{if(o.length===0)return M=>Ye(Ce({},M),{series:M.series.map(c=>Ye(Ce({},c),{data:c.data.map($=>Ye(Ce({},$),{selected:!1}))}))});if($l(t))return M=>Ye(Ce({},M),{series:M.series.map(c=>Ye(Ce({},c),{data:c.data.map($=>Ye(Ce({},$),{selected:!o.some(S=>{var g,D;return S.x===$.x&&S.y===$.y&&S.size===$.z&&S.breakByPoint===((g=$.custom)==null?void 0:g.maskedBreakByPoint)&&S.breakByColor===((D=$.custom)==null?void 0:D.maskedBreakByColor)})}))}))});{const M=o.reduce((c,{categoryValue:$})=>($&&(c[`${$}`]=!0),c),{});return c=>Ye(Ce({},c),{series:c.series.map($=>Ye(Ce({},$),{data:$.data.map(S=>{var g,D;return M[(D=(g=S.custom)==null?void 0:g.xValue)==null?void 0:D[0]]?S:Ye(Ce({},S),{selected:!0})})}))})}},[o,t]),s=We(()=>M=>{var c;return Ye(Ce({},M),{chart:Ye(Ce({},M.chart),{events:Ye(Ce({},(c=M.chart)==null?void 0:c.events),{click:()=>{i([])}})})})},[]),l=Ue(M=>(r&&(M=a(M),M=s(M)),M),[a,s,r]),d=Ue(M=>{r&&i(M)},[r]),_=Ue(M=>{r&&i([M])},[r]);return{onBeforeRender:l,onDataPointsSelected:d,onDataPointClick:_}}const bJ=()=>{const t=UC();if(!t)throw new Mn("errors.missingMenuRoot");const{openMenu:e,closeMenu:n}=t;return{openMenu:e,closeMenu:n}};function fE(t){return t&&t.length?aR(t):[]}function Pue(t,e,n,o){for(var i=-1,r=t==null?0:t.length;++i<r;){var a=t[i];e(o,a,n(a),t)}return o}function Aue(t,e){return function(n,o){if(n==null)return n;if(!Uy(n))return t(n,o);for(var i=n.length,r=-1,a=Object(n);++r<i&&o(a[r],r,a)!==!1;);return n}}var Eue=Aue(ZE);function Lue(t,e,n,o){return Eue(t,function(i,r,a){e(o,i,n(i),a)}),o}function xJ(t,e){return function(n,o){var i=Wo(n)?Pue:Lue,r=e?e():{};return i(n,t,sS(o),r)}}var Hb=xJ(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});const Nue=wg(jt("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Rue=["slots","slotProps"],Due=Vn($p)(({theme:t})=>ce({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`},t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":ce({},t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":ce({boxShadow:t.shadows[0]},t.palette.mode==="light"?{backgroundColor:R6(t.palette.grey[200],.12)}:{backgroundColor:R6(t.palette.grey[600],.12)})})),Iue=Vn(Nue)({width:24,height:16});function wJ(t){const{slots:e={},slotProps:n={}}=t,o=Bn(t,Rue),i=t;return jt("li",{children:jt(Due,ce({focusRipple:!0},o,{ownerState:i,children:jt(Iue,ce({as:e.CollapsedIcon,ownerState:i},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(wJ.propTypes={slotProps:yt.shape({collapsedIcon:yt.oneOfType([yt.func,yt.object])}),slots:yt.shape({CollapsedIcon:yt.elementType}),sx:yt.object});function jue(t){return gi("MuiBreadcrumbs",t)}const zue=yi("MuiBreadcrumbs",["root","ol","li","separator"]),Bue=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],$ue=t=>{const{classes:e}=t;return Ui({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},jue,e)},Fue=Vn(Qa,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${zue.li}`]:e.li},e.root]})({}),Wue=Vn("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Hue=Vn("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Vue(t,e,n,o){return t.reduce((i,r,a)=>(a<t.length-1?i=i.concat(r,jt(Hue,{"aria-hidden":!0,className:e,ownerState:o,children:n},`separator-${a}`)):i.push(r),i),[])}const _J=He(function(t,e){const n=Ni({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:r="nav",slots:a={},slotProps:s={},expandText:l="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:_=1,maxItems:M=8,separator:c="/"}=n,$=Bn(n,Bue),[S,g]=Ee(!1),D=ce({},n,{component:r,expanded:S,expandText:l,itemsAfterCollapse:d,itemsBeforeCollapse:_,maxItems:M,separator:c}),W=$ue(D),G=Xd({elementType:a.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:D}),Y=fe(null),H=N=>{const j=()=>{g(!0);const E=Y.current.querySelector("a[href],button,[tabindex]");E&&E.focus()};return _+d>=N.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${_}} >= maxItems={${M}}`].join(`
|
|
1011
1011
|
`)),N):[...N.slice(0,_),jt(wJ,{"aria-label":l,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:G},onClick:j},"ellipsis"),...N.slice(N.length-d,N.length)]},R=ta.toArray(o).filter(N=>(process.env.NODE_ENV!=="production"&&Ty.isFragment(N)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
1012
1012
|
`)),Jn(N))).map((N,j)=>jt("li",{className:W.li,children:N},`child-${j}`));return jt(Fue,ce({ref:e,component:r,color:"text.secondary",className:Wn(W.root,i),ownerState:D},$,{children:jt(Wue,{className:W.ol,ref:Y,ownerState:D,children:Vue(S||M&&R.length<=M?R:H(R),W.separator,c,D)})}))});process.env.NODE_ENV!=="production"&&(_J.propTypes={children:yt.node,classes:yt.object,className:yt.string,component:yt.elementType,expandText:yt.string,itemsAfterCollapse:bc,itemsBeforeCollapse:bc,maxItems:bc,separator:yt.node,slotProps:yt.shape({collapsedIcon:yt.oneOfType([yt.func,yt.object])}),slots:yt.shape({CollapsedIcon:yt.elementType}),sx:yt.oneOfType([yt.arrayOf(yt.oneOfType([yt.func,yt.object,yt.bool])),yt.func,yt.object])});function Uue(t){return gi("MuiButton",t)}const Ox=yi("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),SJ=eo({});process.env.NODE_ENV!=="production"&&(SJ.displayName="ButtonGroupContext");const CJ=eo(void 0);process.env.NODE_ENV!=="production"&&(CJ.displayName="ButtonGroupButtonContext");const Gue=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Yue=t=>{const{color:e,disableElevation:n,fullWidth:o,size:i,variant:r,classes:a}=t,s={root:["root",r,`${r}${ro(e)}`,`size${ro(i)}`,`${r}Size${ro(i)}`,`color${ro(e)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ro(i)}`],endIcon:["icon","endIcon",`iconSize${ro(i)}`]},l=Ui(s,Uue,a);return ce({},a,l)},kJ=t=>ce({},t.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},t.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},t.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Xue=Vn($p,{shouldForwardProp:t=>Pb(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${ro(n.color)}`],e[`size${ro(n.size)}`],e[`${n.variant}Size${ro(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(({theme:t,ownerState:e})=>{var n,o;const i=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return ce({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":ce({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Hi(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hi(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hi(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":ce({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${Ox.focusVisible}`]:ce({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${Ox.disabled}`]:ce({color:(t.vars||t).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${Hi(t.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:t.vars?t.vars.palette.text.primary:(n=(o=t.palette).getContrastText)==null?void 0:n.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ox.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ox.disabled}`]:{boxShadow:"none"}}),que=Vn("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${ro(n.size)}`]]}})(({ownerState:t})=>ce({display:"inherit",marginRight:8,marginLeft:-4},t.size==="small"&&{marginLeft:-2},kJ(t))),Zue=Vn("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${ro(n.size)}`]]}})(({ownerState:t})=>ce({display:"inherit",marginRight:-4,marginLeft:8},t.size==="small"&&{marginRight:-2},kJ(t))),Iy=He(function(t,e){const n=On(SJ),o=On(CJ),i=LZ(n,t),r=Ni({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:d,disabled:_=!1,disableElevation:M=!1,disableFocusRipple:c=!1,endIcon:$,focusVisibleClassName:S,fullWidth:g=!1,size:D="medium",startIcon:W,type:G,variant:Y="text"}=r,H=Bn(r,Gue),R=ce({},r,{color:s,component:l,disabled:_,disableElevation:M,disableFocusRipple:c,fullWidth:g,size:D,type:G,variant:Y}),N=Yue(R),j=W&&jt(que,{className:N.startIcon,ownerState:R,children:W}),E=$&&jt(Zue,{className:N.endIcon,ownerState:R,children:$}),z=o||"";return jt(Xue,ce({ownerState:R,className:Wn(n.className,N.root,d,z),component:l,disabled:_,focusRipple:!c,focusVisibleClassName:Wn(N.focusVisible,S),ref:e,type:G},H,{classes:N,children:[j,a,E]}))});process.env.NODE_ENV!=="production"&&(Iy.propTypes={children:yt.node,classes:yt.object,className:yt.string,color:yt.oneOfType([yt.oneOf(["inherit","primary","secondary","success","error","info","warning"]),yt.string]),component:yt.elementType,disabled:yt.bool,disableElevation:yt.bool,disableFocusRipple:yt.bool,disableRipple:yt.bool,endIcon:yt.node,focusVisibleClassName:yt.string,fullWidth:yt.bool,href:yt.string,size:yt.oneOfType([yt.oneOf(["small","medium","large"]),yt.string]),startIcon:yt.node,sx:yt.oneOfType([yt.arrayOf(yt.oneOfType([yt.func,yt.object,yt.bool])),yt.func,yt.object]),type:yt.oneOfType([yt.oneOf(["button","reset","submit"]),yt.string]),variant:yt.oneOfType([yt.oneOf(["contained","outlined","text"]),yt.string])});const Kue=({clearDrilldownSelections:t,currentDimension:e,setIsHovered:n,themeProps:o})=>{const{t:i}=wa(),r=e.name,a=ma(Iy,{target:"e1olvz1k0",label:"StyledCancelButton"})("&&{background-color:",o.activeDrillBackgroundColor,";color:",o.primaryButtonTextColor,";border-radius:100%;border:2px solid white;min-width:39px;width:39px;height:39px;z-index:10;padding:7px;cursor:pointer;text-transform:none;margin-right:-5px;&:hover{background-color:",o.activeDrillHoverBackgroundColor,";color:",o.primaryTextColor,";}}"),s=ma("svg",{target:"e1olvz1k1",label:"Icon"})("width:22px;height:22px;fill:#9ea2ab;"),l=()=>re(a,{theme:o,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),onClick:t,children:re(s,{width:22,height:22,viewBox:"0 0 24 24",children:re("path",{fill:"#9EA2AB",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})})}),d=ma(Iy,{target:"e1olvz1k2",label:"StyledCurrentDrillButton"})("&&{position:relative;font-family:",_=>_.theme.fontFamily,";border-radius:0;border:1px solid ",Cc,";background-color:",_=>_.theme.chartBackgroundColor,";border-right:none;border-left:none;color:",_=>_.theme.secondaryTextColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;transition:background-color 0.2s,border-color 0.2s,color 0.2s;text-transform:none;cursor:auto;pointer-events:none;white-space:nowrap;&:hover{background-color:",_=>_.theme.chartBackgroundColor,";border:1px solid ",Cc,";border-right:none;border-left:none;}}");return{CancelButton:l,CurrentDrillButton:()=>Dn(d,{theme:o,children:[r," (",i("drilldown.breadcrumbsAllSuffix"),")",re("span",{className:"flex items-center justify-between",children:re("span",{className:"csdk-absolute csdk-right-[0px] csdk-top-[3px] csdk-h-[18px] csdk-w-[18px] csdk-transform csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:"transparent",borderTop:`1px solid ${Cc}`,borderRight:`1px solid ${Cc}`}})})]})}},Que={modifiers:[{name:"offset",options:{offset:[0,12]}}]},Jue=({themeProps:t,filterDisplayValues:e,currentTable:n,currentColumn:o})=>{const{t:i}=wa();return Dn("div",{className:"csdk-w-50 csdk-px-[12px] csdk-shadow-md csdk-shadow-gray-500 csdk-rounded-md csdk-bg-white",style:{backgroundColor:t.chartBackgroundColor,color:t.primaryTextColor},children:[Dn("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[re(Qa,{variant:"body2",fontFamily:t.fontFamily,fontSize:11,children:i("drilldown.popover.members")}),re(Qa,{variant:"body2",fontFamily:t.fontFamily,fontSize:13,children:e.join(", ")})]}),Dn("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[re(Qa,{variant:"body2",fontFamily:t.fontFamily,fontSize:11,children:i("drilldown.popover.table")}),re(Qa,{variant:"body2",fontFamily:t.fontFamily,fontSize:13,children:n})]}),Dn("div",{className:"csdk-p-3 csdk-pl-1",children:[re(Qa,{variant:"body2",fontFamily:t.fontFamily,fontSize:11,children:i("drilldown.popover.column")}),re(Qa,{variant:"body2",fontFamily:t.fontFamily,fontSize:13,children:o})]})]})},tde=({popperParams:t,currentDimension:e,themeProps:n})=>{const o=e.expression.match(/\[(.*?)]/),[i,r]=o?o[1].split("."):["",""];return re(Wb,{open:!!t,anchorEl:t==null?void 0:t.anchorEl,placement:"bottom",popperOptions:Que,children:t&&re(Jue,{themeProps:n,filterDisplayValues:t.filterDisplayValues,currentTable:i,currentColumn:r})})},ede=()=>{const{themeSettings:{typography:{primaryTextColor:t,secondaryTextColor:e,fontFamily:n},general:{backgroundColor:o,brandColor:i,primaryButtonTextColor:r},chart:{backgroundColor:a}}}=er(),s=Bl(a,-.02),l=Bl(s,-.05);return{primaryTextColor:t,secondaryTextColor:e,fontFamily:n,backgroundColor:o,brandColor:i,primaryButtonTextColor:r,chartBackgroundColor:a,activeDrillBackgroundColor:s,activeDrillHoverBackgroundColor:l}},nde=ma(Km,{target:"egcu0nk0",label:"StyledPrevButton"})("&&{position:absolute;left:0;right:auto;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,white 30%,rgba(255,255,255,0) 100%);display:inline-flex;span[aria-label='prev-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),ode=ma(Km,{target:"egcu0nk1",label:"StyledNextButton"})("&&{position:absolute;left:auto;right:0;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,rgba(255,255,255,0) 0,white 70%);display:inline-flex;span[aria-label='next-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),ide=({currentDimension:t,children:e})=>{const{t:n}=wa(),o=fe(null),[i,r]=Ee(0),[a,s]=Ee(0),[l,d]=Ee(0),_=()=>{var S;return(S=o.current)==null?void 0:S.querySelector("ol")};Ae(()=>{const S=_();if(S){const g=S.clientWidth,D=S.scrollWidth,W=S.scrollLeft;r(g),s(D),d(W)}},[t]),Ae(()=>{const S=_();function g(){if(S){const G=S.clientWidth;r(G)}}function D(){if(S){const G=S.scrollLeft;d(G)}}const W=new ResizeObserver(g);return S?(W.observe(S),S.addEventListener("scroll",D),()=>{W.disconnect(),S.removeEventListener("scroll",D)}):()=>{}},[]);const M=S=>{const g="smooth",D=_();D&&D.scrollBy({left:S==="right"?200:-200,behavior:g})},c=l!=0,$=Math.floor(a-l)>i;return Dn("div",{style:{position:"relative"},children:[c&&re(nde,{onClick:()=>M("left"),children:re("span",{"aria-label":"prev-item",children:n("drilldown.breadcrumbsPrev")})}),$&&re(ode,{onClick:()=>M("right"),children:re("span",{"aria-label":"next-item",children:n("drilldown.breadcrumbsNext")})}),re("div",{ref:o,children:e})]})},Cc="#F2F2F2",rde=ma(Iy,{target:"ex0ybhj0",label:"StyledDrillButton"})("&&{font-family:",({theme:t})=>t.fontFamily,";position:relative;border-radius:0;border:1px solid ",Cc,";border-right:none;color:",({active:t,theme:e})=>t==="true"?e.primaryTextColor:e.secondaryTextColor,";background-color:",({active:t,theme:e})=>t==="true"?e.activeDrillBackgroundColor:e.chartBackgroundColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;text-transform:none;transition:background-color 0.2s,border-color 0.2s,color 0.2s;white-space:nowrap;cursor:",({active:t})=>t==="true"?"pointer":"auto",";margin-right:",({active:t})=>t==="true"?"5px":"0px",";&:hover{background-color:",({active:t,theme:e})=>t==="true"?e.activeDrillHoverBackgroundColor:e.chartBackgroundColor,";border:1px solid ",Cc,";border-right:none;}.MuiTouchRipple-root{display:none;}}"),ade=ma(_J,{target:"ex0ybhj1",label:"StyledBreadcrumbs"})(".MuiBreadcrumbs-ol{flex-wrap:nowrap;overflow:hidden;}.MuiBreadcrumbs-separator{display:none;}"),sde=({isActive:t,filterDisplayValue:e,handleMouseEnter:n,handleMouseLeave:o,handleClick:i,themeProps:r,popperParams:a,index:s})=>re(rde,{theme:r,active:t.toString(),index:s,onMouseEnter:n,onMouseLeave:o,onClick:i,children:Dn("span",{className:"flex items-center justify-between",children:[Dn("span",{className:"mr-2",children:[e.slice(0,2).join(", "),e.length>2&&", ..."]}),t?re("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:e===(a==null?void 0:a.filterDisplayValues)?r.activeDrillHoverBackgroundColor:r.activeDrillBackgroundColor,borderTop:`1px solid ${Cc}`,borderRight:`1px solid ${Cc}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,re("span",{className:`csdk-absolute ${t?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:r.chartBackgroundColor,borderTop:`1px solid ${Cc}`,borderRight:`1px solid ${Cc}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),TJ=Nb({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:t,currentDimension:e,clearDrilldownSelections:n,sliceDrilldownSelections:o})=>{const[i,r]=Ee(null),[a,s]=Ee(!1),l=ede(),{CancelButton:d,CurrentDrillButton:_}=Kue({clearDrilldownSelections:n,currentDimension:e,isHovered:a,setIsHovered:s,themeProps:l}),M=g=>D=>{s(!0),r({filterDisplayValues:g,anchorEl:D.currentTarget})},c=()=>{s(!1),r(null)},$=g=>g<t.length-1,S=g=>g===t.length-2;return t.length?re("div",{"aria-label":"drilldown-breadcrumbs",children:re(ide,{currentDimension:e,children:Dn(ade,{separator:null,sx:{backgroundColor:l.chartBackgroundColor,padding:"4px"},children:[re(d,{}),t.map((g,D)=>{const W=$(D),G=S(D);return re("div",{children:re(sde,{isActive:W,isLastActive:G,filterDisplayValue:g,handleMouseEnter:M(g),handleMouseLeave:c,handleClick:()=>o(D+1),themeProps:l,popperParams:i,index:D})},D)}),re(_,{}),re(tde,{popperParams:i,currentDimension:e,themeProps:l})]})})}):null}),MJ=t=>{const{initialDimension:e,onDrilldownSelectionsChange:n}=t,o=We(()=>t.drilldownPaths||[],[t.drilldownPaths]),i=We(()=>t.drilldownSelections||[],[t.drilldownSelections]),{t:r}=wa();if(!e)throw new Mn("errors.drilldownNoInitialDimension");const[a,s]=GR(i,{onLocalStateChange:n}),l=We(()=>[Ic(e),...a.map(({nextDimension:D})=>D)],[e,a]),d=We(()=>o.filter(D=>{if(jn.isAttribute(D)){const G=D;return l.every(Y=>!Gs(Y,G))}const W=D;return l.every((G,Y)=>Gs(G,W.levels[Y]))}),[o,l]),_=Ue((D,W,G)=>{s(Y=>OJ(Y,D,W,G))},[s]),M=Ue(D=>{s(W=>W.slice(0,D))},[s]),c=Ue(()=>{s([])},[s]),{drilldownFilters:$,drilldownFiltersDisplayValues:S,drilldownDimension:g}=We(()=>PJ(a,e,r),[a,e,r]);return{drilldownSelections:a,availableDrilldownPaths:d,drilldownFilters:$,drilldownFiltersDisplayValues:S,drilldownDimension:g,selectDrilldown:_,sliceDrilldownSelections:M,clearDrilldownSelections:c}},OJ=(t,e,n,o)=>{var i,r;if(!(o!=null&&o.levels))return[...t,{points:e,nextDimension:n}];if(Gs(o.levels[0],n))return[];const a=(i=t==null?void 0:t.findIndex(M=>Gs(M.nextDimension,n)))!=null?i:-1;if(a!==-1)return t.slice(0,a+1);const s=(r=rL(t))==null?void 0:r.nextDimension,l=t.length?o.levels.findIndex(M=>s&&Gs(M,s)):0,d=o.levels.indexOf(n),_=o.levels.slice(l+1,d+1).map((M,c)=>({points:c===0?e:[],nextDimension:M}));return[...t,..._]},PJ=(t,e,n)=>{let o=e&&Ic(e);const i=[],r=[];return t.forEach(({points:a,nextDimension:s})=>{i.push(Kd(o,a.map(lde)));const l=a.length?a.map(AJ):[`${o.name} (${n("drilldown.breadcrumbsAllSuffix")})`];r.push(l),o=s}),{drilldownFilters:i,drilldownFiltersDisplayValues:r,drilldownDimension:o}};function AJ(t){return"categoryDisplayValue"in t?`${t.categoryDisplayValue}`:"categoryValue"in t?`${t.categoryValue}`:""}function lde(t){return"categoryValue"in t?`${t.categoryValue}`:""}var cde=Object.prototype,ude=cde.hasOwnProperty,dde=xJ(function(t,e,n){ude.call(t,n)?t[n].push(e):Wy(t,n,[e])});function hde(t,e){return e.all?[]:t.filter(n=>{var o;return!((o=e.ids)!=null&&o.includes(n.config.guid))})}function EJ(t,e){return t.find(n=>Gs(n.attribute,e))}function LJ(t,e,n){const o=EJ(n,t);return Kd(t,e.map(i=>`${i}`),{guid:o==null?void 0:o.config.guid,backgroundFilter:o==null?void 0:o.config.backgroundFilter})}function NJ(t,e){return UR(t,e)&&"members"in t&&"members"in e&&Lu(t.members,e.members)}var jy=function(t){return t.DRILLDOWN_CHART_POINTS_SELECTION="drilldown-chart-points-selection",t.DRILLDOWN_DRILL_DIRECTIONS="drilldown-drill-directions",t.CROSSFILTERING_CHART_POINTS_SELECTION="crossfiltering-chart-points-selection",t}({});const RJ=2;function Lg(t,e){const n=t.flatMap(({entries:i={}})=>e.flatMap(r=>{const a=i[r];return a?(Array.isArray(a)?a:[a]).filter(({attribute:s})=>!!s):[]})),o=dde(n,({id:i})=>i);return Object.values(o).map(i=>({attribute:i[0].attribute,values:fE(i.map(({value:r})=>r)),displayValues:fE(i.map(({displayValue:r})=>r))}))}function pde(t){return Lg(t,["category"])}function fde(t){return Lg(t,["category"])}function mde(t,e){const n=Lg(t,["category"]),o=n.length-1;return e.category.map((i,r)=>o===r?n[r]:{attribute:Ic(i),values:[],displayValues:[]})}function gde(t){return Lg(t,["x","y","breakByPoint","breakByColor"])}function vde(t){return Lg(t,["geo"])}function yde(t){return Lg(t,["geo"])}function vw(t,e,n){return t==="plugin"?[]:t==="text"?[]:t==="pivot"?[]:t==="treemap"||t==="sunburst"?mde(n,e):Hl(t)||t==="pie"||t==="funnel"?pde(n):rh(t)?fde(n):$l(t)?gde(n):jp(t)?vde(n):rN(t)?yde(n):[]}function YR(t,e){let n=[];return t==="plugin"?n=[]:t==="text"?n=[]:t==="pivot"?n=[...e.rows||[],...e.columns||[]]:Hl(t)||ih(t)||rh(t)||mg(t)?n=[...e.category]:$l(t)?n=[e.x,e.y,e.breakByPoint,e.breakByColor].filter(o=>!!(o&&!Ro(o))):(jp(t)||rN(t))&&(n=[...e.geo]),n.map(Ic)}function bde(t,e,n){const o=EJ(e,t.attribute);if(!o||VR(o))return null;if(NJ(t,o))return P2(t);if(pS(o)&&n){const[i,r]=Hb(o.members,a=>t.members.includes(a));if(i.length===t.members.length&&r.length)return LJ(t.attribute,r,[o])}return null}function xde(t,e,n){const o=e.filter(a=>!a.config.disabled),i=t.map(a=>bde(a,o,n)).filter(a=>!!a),r=t.length!==i.length;return{filters:r?t:i,isSelection:r}}function $M(t,e,n=!1){const o=t.map(({attribute:r,values:a})=>LJ(r,a,e)),i=wde(e,o);return xde(i,e,n)}function wde(t,e){const n=t.filter(o=>o.config.locked);return n.length?e.filter(o=>!n.some(i=>UR(i,o))):e}function _de(t,e,n){const o=vw(t,e,n).filter(({displayValues:s})=>s.length);if(o.length===0)return"";const[i]=o,r=n.length===1,a=i.displayValues.length>RJ;return o.length>1?r?o.map(s=>s.displayValues[0]).join(", "):a?"":i.displayValues.join(", "):a?i.attribute.name:i.displayValues.join(", ")}function kW(t,e,n){const o=_de(t,e,n);return o?{id:jy.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:o}:null}function TW(t,e){return{items:[{caption:t,onClick:e}]}}const Sde=({initialDimension:t,drilldownPaths:e,drilldownSelections:n,openMenu:o,onDrilldownSelectionsChange:i})=>{const{t:r}=wa(),{availableDrilldownPaths:a,drilldownFilters:s,drilldownFiltersDisplayValues:l,drilldownDimension:d,selectDrilldown:_,sliceDrilldownSelections:M,clearDrilldownSelections:c}=MJ({initialDimension:t,drilldownPaths:e,drilldownSelections:n,onDrilldownSelectionsChange:i}),$=Ue((g,D)=>{const W=[DJ(D,d),IJ(a,d,(G,Y)=>{_(D,G,Y)},r)];o({position:g,itemSections:W})},[d,a,r,_,o]),S=We(()=>d&&re(TJ,{filtersDisplayValues:l,currentDimension:d,clearDrilldownSelections:c,sliceDrilldownSelections:M}),[c,d,l,M]);return{drilldownDimension:d,drilldownFilters:s,breadcrumbs:S,openDrilldownMenu:$}};function DJ(t,e){const n=fE(t.map(AJ).filter(o=>!!o));return n.length>RJ?{id:jy.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:e.name}:{id:jy.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:n.join(", ")}}function Cde(t){return 30+12*t}function IJ(t,e,n,o){const[i,r]=Hb(t,jn.isAttribute.bind(jn)),a=i.map(l=>({caption:l.name,onClick:()=>n(l)})),s=r.map(l=>({caption:l.title,subItems:[{items:l.levels.map((d,_)=>({caption:d.name,class:_===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${Cde(_)}px`},disabled:Gs(d,e),onClick:()=>n(d,l)}))}]}));return{id:jy.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:o("drilldown.drillMenuItem"),items:[...s,...a]}}var A2=function(t){return t.HIGHLIGHT="highlight",t.FILTER="filter",t}({});function jJ(t){return function(e){e=Dd(e);var n=UZ(e)?ZA(e):void 0,o=n?n[0]:e.charAt(0),i=n?VZ(n,1).join(""):e.slice(1);return o[t]()+i}}var zJ=jJ("toUpperCase");function kde(t){return zJ(Dd(t).toLowerCase())}function Tde(t,e,n,o){for(var i=-1,r=t==null?0:t.length;++i<r;)n=e(n,t[i],i,t);return n}function Mde(t){return function(e){return t==null?void 0:t[e]}}var Ode={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pde=Mde(Ode),Ade=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ede="\\u0300-\\u036f",Lde="\\ufe20-\\ufe2f",Nde="\\u20d0-\\u20ff",Rde=Ede+Lde+Nde,Dde="["+Rde+"]",Ide=RegExp(Dde,"g");function jde(t){return t=Dd(t),t&&t.replace(Ade,Pde).replace(Ide,"")}var zde=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Bde(t){return t.match(zde)||[]}var $de=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Fde(t){return $de.test(t)}var BJ="\\ud800-\\udfff",Wde="\\u0300-\\u036f",Hde="\\ufe20-\\ufe2f",Vde="\\u20d0-\\u20ff",Ude=Wde+Hde+Vde,$J="\\u2700-\\u27bf",FJ="a-z\\xdf-\\xf6\\xf8-\\xff",Gde="\\xac\\xb1\\xd7\\xf7",Yde="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xde="\\u2000-\\u206f",qde=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",WJ="A-Z\\xc0-\\xd6\\xd8-\\xde",Zde="\\ufe0e\\ufe0f",HJ=Gde+Yde+Xde+qde,VJ="['’]",MW="["+HJ+"]",Kde="["+Ude+"]",UJ="\\d+",Qde="["+$J+"]",GJ="["+FJ+"]",YJ="[^"+BJ+HJ+UJ+$J+FJ+WJ+"]",Jde="\\ud83c[\\udffb-\\udfff]",the="(?:"+Kde+"|"+Jde+")",ehe="[^"+BJ+"]",XJ="(?:\\ud83c[\\udde6-\\uddff]){2}",qJ="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="["+WJ+"]",nhe="\\u200d",OW="(?:"+GJ+"|"+YJ+")",ohe="(?:"+Xf+"|"+YJ+")",PW="(?:"+VJ+"(?:d|ll|m|re|s|t|ve))?",AW="(?:"+VJ+"(?:D|LL|M|RE|S|T|VE))?",ZJ=the+"?",KJ="["+Zde+"]?",ihe="(?:"+nhe+"(?:"+[ehe,XJ,qJ].join("|")+")"+KJ+ZJ+")*",rhe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ahe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",she=KJ+ZJ+ihe,lhe="(?:"+[Qde,XJ,qJ].join("|")+")"+she,che=RegExp([Xf+"?"+GJ+"+"+PW+"(?="+[MW,Xf,"$"].join("|")+")",ohe+"+"+AW+"(?="+[MW,Xf+OW,"$"].join("|")+")",Xf+"?"+OW+"+"+PW,Xf+"+"+AW,ahe,rhe,UJ,lhe].join("|"),"g");function uhe(t){return t.match(che)||[]}function dhe(t,e,n){return t=Dd(t),e=e,e===void 0?Fde(t)?uhe(t):Bde(t):t.match(e)||[]}var hhe="['’]",phe=RegExp(hhe,"g");function fhe(t){return function(e){return Tde(dhe(jde(e).replace(phe,"")),t,"")}}var QJ=fhe(function(t,e,n){return e=e.toLowerCase(),t+(n?kde(e):e)});function mhe(t){const{_id:e,title:n,levels:o}=t;return{id:e,title:n,levels:o.map(i=>mL(i))}}function JJ(t,e,n){return Vl(this,null,function*(){const o=yield new cN(t,n).getHierarchies(e);return o==null?void 0:o.map(i=>mhe(i))})}const ghe=vJ("useGetHierarchyModels")(ttt);function ttt(t){const e=HR(t,["dataSource","dimension","ids","alwaysIncluded"]),n=yJ(t,e),[o,i]=Qm(pE,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:r,app:a}=vr();return Ae(()=>{r||i({type:"error",error:new Mn("errors.sisenseContextNotFound")}),n(a)&&(i({type:"loading"}),JJ(a.httpClient,t,a.defaultDataSource).then(s=>{i({type:"success",data:s})}).catch(s=>{i({type:"error",error:s})}))},[a,r,t,n]),o.data&&e?EW(pE(o,{type:"loading"})):EW(o)}function EW(t){const e=t,{data:n}=e,o=Cb(e,["data"]);return Ye(Ce({},o),{hierarchies:n})}function vhe({attribute:t,dataSource:e,drilldownPaths:n=[],enabled:o}){const[i,r]=We(()=>Hb(n,pJ),[n]),{hierarchies:a=[]}=ttt({enabled:o,dataSource:e,dimension:t,ids:i,alwaysIncluded:!0});return We(()=>a.length?[...a,...r]:r,[a,r])}function yhe(t,e){return YR(t,e)[0]}function bhe(t){return[...kC,...TC,...MC,...OC,...PC].includes(t)}function xhe(t,e){return YR(t,e).length===1}function whe(t,e){return xhe(t,e)&&bhe(t)}function ett(t,e,n){const o=i=>!!i&&!Gs(n,Ic(i));if(Hl(t)||ih(t)||rh(t)||mg(t)){const i=e.category[0];if(o(i))return Ye(Ce({},e),{category:[n]})}else if($l(t)){const i=e,r=["x","y","breakByPoint","breakByColor"];for(const a of r){const s=i[a];if(s&&!Ro(s)&&o(s))return Ye(Ce({},i),{[a]:n})}}return e}function LW(t,e,n){return t.map(o=>{const i=["x","y","breakByPoint","breakByColor"],r=[...i,"size"].some(s=>s in o),a=i.find(s=>n[s]&&!Ro(n[s]));if(r){const s=e,l=s.type==="mouseup";l&&console.warn("No drilldown support for multi-selection in scatter chart");const d=l?o[a]:s.point.options.custom[QJ(`{masked ${a}`)];return{categoryValue:d,categoryDisplayValue:d}}return o})}const _he=({propsToExtend:t,onDrilldownSelectionsChange:e})=>{const{chartType:n,dataOptions:o,dataSource:i,drilldownOptions:r}=t,{drilldownSelections:a}=r||{},{openMenu:s}=bJ(),l=We(()=>whe(n,o),[n,o]),d=We(()=>[...(r==null?void 0:r.drilldownPaths)||[],...(r==null?void 0:r.drilldownDimensions)||[]],[r==null?void 0:r.drilldownPaths,r==null?void 0:r.drilldownDimensions]),_=We(()=>{const j=DH({name:"dummy drilldown initial attribute"});return yhe(n,o)||j},[n,o]),M=vhe({attribute:_,dataSource:i,drilldownPaths:d,enabled:l}),c=We(()=>{var j,E;return(((j=r==null?void 0:r.drilldownSelections)==null?void 0:j.length)||((E=r==null?void 0:r.drilldownDimensions)==null?void 0:E.length)||(M==null?void 0:M.length))&&l},[r,l,M]),{drilldownDimension:$,drilldownFilters:S,breadcrumbs:g,openDrilldownMenu:D}=Sde({initialDimension:_,drilldownSelections:a,drilldownPaths:M,openMenu:s,onDrilldownSelectionsChange:e}),W=Ue((j,E)=>{const z=LW(j,E,o);D({left:E.clientX,top:E.clientY},z)},[o,D]),G=Ue((j,E)=>{const z=LW([j],E,o);D({left:E.clientX,top:E.clientY},z)},[o,D]),Y=We(()=>ett(n,o,$),[n,o,$]),H=We(()=>S.length?Pq(t.filters||[],S):t.filters,[t.filters,S]),R=We(()=>Pu([W,t.onDataPointsSelected]),[W,t.onDataPointsSelected]),N=We(()=>Pu([G,t.onDataPointContextMenu]),[G,t.onDataPointContextMenu]);return{propsWithDrilldown:Ce(Ce({},t),c&&{dataOptions:Y,filters:H,onDataPointsSelected:R,onDataPointContextMenu:N}),isDrilldownEnabled:c,breadcrumbs:g}},She=Nb({componentName:"ChartWidget"})(t=>{var e,n;const{app:o}=vr(),{chartType:i,dataSource:r=o==null?void 0:o.defaultDataSource,dataOptions:a,styleOptions:s,highlightSelectionDisabled:l=!1,highlights:d,description:_,onChange:M}=t,{width:c,height:$}=s||{},S=oK(i,{hasHeader:!((e=s==null?void 0:s.header)!=null&&e.hidden)}),[g,D]=Ee(0),W=We(()=>b8(s,["width","height"]),[s]),G=Ue(C=>{M==null||M({drilldownOptions:{drilldownSelections:C}})},[M]),{propsWithDrilldown:Y,isDrilldownEnabled:H,breadcrumbs:R}=_he({propsToExtend:t,onDrilldownSelectionsChange:G}),N=Oue({chartType:i,dataOptions:a,enabled:!l&&!H&&!(d!=null&&d.length)}),j=(n=o==null?void 0:o.settings.accessibilityConfig)==null?void 0:n.enabled,E=Ue(C=>{var y;return j?Ye(Ce({},C),{accessibility:Ye(Ce({},C.accessibility),{description:_??((y=C.accessibility)==null?void 0:y.description)})}):C},[_,j]);if(!i||!a)return null;const z=Ye(Ce({},Y),{dataSet:r,styleOptions:W,refreshCounter:g,onDataPointClick:We(()=>Pu([N.onDataPointClick,t.onDataPointClick]),[N.onDataPointClick,t.onDataPointClick]),onDataPointContextMenu:Y.onDataPointContextMenu,onDataPointsSelected:We(()=>Pu([N.onDataPointsSelected,Y.onDataPointsSelected]),[N.onDataPointsSelected,Y.onDataPointsSelected]),onBeforeRender:We(()=>Pu([E,N.onBeforeRender,t.onBeforeRender],!0),[E,N.onBeforeRender,t.onBeforeRender])});return re(l2,{defaultSize:S,size:{width:c,height:$},children:re(hJ,Ye(Ce({},t),{topSlot:Dn(Ws,{children:[t.topSlot,R]}),dataSetName:r&&cL(r),onRefresh:()=>D(g+1),children:re(aJ,Ce({},z))}))})});class Ng{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const n={listener:e};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const zy=typeof window>"u"||"Deno"in window;function Ls(){}function Che(t,e){return typeof t=="function"?t(e):t}function mE(t){return typeof t=="number"&&t>=0&&t!==1/0}function ntt(t,e){return Math.max(t+(e||0)-Date.now(),0)}function hv(t,e,n){return Vb(t)?typeof e=="function"?Ye(Ce({},n),{queryKey:t,queryFn:e}):Ye(Ce({},e),{queryKey:t}):t}function khe(t,e,n){return Vb(t)?Ye(Ce({},e),{mutationKey:t}):typeof t=="function"?Ye(Ce({},e),{mutationFn:t}):Ce({},t)}function vd(t,e,n){return Vb(t)?[Ye(Ce({},e),{queryKey:t}),n]:[t||{},e]}function NW(t,e){const{type:n="all",exact:o,fetchStatus:i,predicate:r,queryKey:a,stale:s}=t;if(Vb(a)){if(o){if(e.queryHash!==XR(a,e.options))return!1}else if(!nm(e.queryKey,a))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||typeof i<"u"&&i!==e.state.fetchStatus||r&&!r(e))}function RW(t,e){const{exact:n,fetching:o,predicate:i,mutationKey:r}=t;if(Vb(r)){if(!e.options.mutationKey)return!1;if(n){if(ep(e.options.mutationKey)!==ep(r))return!1}else if(!nm(e.options.mutationKey,r))return!1}return!(typeof o=="boolean"&&e.state.status==="loading"!==o||i&&!i(e))}function XR(t,e){return((e==null?void 0:e.queryKeyHashFn)||ep)(t)}function ep(t){return JSON.stringify(t,(e,n)=>gE(n)?Object.keys(n).sort().reduce((o,i)=>(o[i]=n[i],o),{}):n)}function nm(t,e){return ott(t,e)}function ott(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!ott(t[n],e[n])):!1}function itt(t,e){if(t===e)return t;const n=DW(t)&&DW(e);if(n||gE(t)&&gE(e)){const o=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),r=i.length,a=n?[]:{};let s=0;for(let l=0;l<r;l++){const d=n?l:i[l];a[d]=itt(t[d],e[d]),a[d]===t[d]&&s++}return o===r&&s===o?t:a}return e}function G_(t,e){if(t&&!e||e&&!t)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function DW(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function gE(t){if(!IW(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!IW(n)||!n.hasOwnProperty("isPrototypeOf"))}function IW(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vb(t){return Array.isArray(t)}function rtt(t){return new Promise(e=>{setTimeout(e,t)})}function jW(t){rtt(0).then(t)}function The(){if(typeof AbortController=="function")return new AbortController}function vE(t,e,n){return n.isDataEqual!=null&&n.isDataEqual(t,e)?t:typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?itt(t,e):e}class Mhe extends Ng{constructor(){super(),this.setup=e=>{if(!zy&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,(n=this.cleanup)==null||n.call(this),this.cleanup=e(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Y_=new Mhe,zW=["online","offline"];class Ohe extends Ng{constructor(){super(),this.setup=e=>{if(!zy&&window.addEventListener){const n=()=>e();return zW.forEach(o=>{window.addEventListener(o,n,!1)}),()=>{zW.forEach(o=>{window.removeEventListener(o,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,(n=this.cleanup)==null||n.call(this),this.cleanup=e(o=>{typeof o=="boolean"?this.setOnline(o):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const X_=new Ohe;function Phe(t){return Math.min(1e3*$s(2,t),3e4)}function E2(t){return(t??"online")==="online"?X_.isOnline():!0}class att{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function yw(t){return t instanceof att}function stt(t){let e=!1,n=0,o=!1,i,r,a;const s=new Promise((D,W)=>{r=D,a=W}),l=D=>{o||($(new att(D)),t.abort==null||t.abort())},d=()=>{e=!0},_=()=>{e=!1},M=()=>!Y_.isFocused()||t.networkMode!=="always"&&!X_.isOnline(),c=D=>{o||(o=!0,t.onSuccess==null||t.onSuccess(D),i==null||i(),r(D))},$=D=>{o||(o=!0,t.onError==null||t.onError(D),i==null||i(),a(D))},S=()=>new Promise(D=>{i=W=>{const G=o||!M();return G&&D(W),G},t.onPause==null||t.onPause()}).then(()=>{i=void 0,o||t.onContinue==null||t.onContinue()}),g=()=>{if(o)return;let D;try{D=t.fn()}catch(W){D=Promise.reject(W)}Promise.resolve(D).then(c).catch(W=>{var G,Y;if(o)return;const H=(G=t.retry)!=null?G:3,R=(Y=t.retryDelay)!=null?Y:Phe,N=typeof R=="function"?R(n,W):R,j=H===!0||typeof H=="number"&&n<H||typeof H=="function"&&H(n,W);if(e||!j){$(W);return}n++,t.onFail==null||t.onFail(n,W),rtt(N).then(()=>{if(M())return S()}).then(()=>{e?$(W):g()})})};return E2(t.networkMode)?g():S().then(g),{promise:s,cancel:l,continue:()=>i!=null&&i()?s:Promise.resolve(),cancelRetry:d,continueRetry:_}}const qR=console;function Ahe(){let t=[],e=0,n=l=>{l()},o=l=>{l()};const i=l=>{let d;e++;try{d=l()}finally{e--,e||s()}return d},r=l=>{e?t.push(l):jW(()=>{n(l)})},a=l=>(...d)=>{r(()=>{l(...d)})},s=()=>{const l=t;t=[],l.length&&jW(()=>{o(()=>{l.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:a,schedule:r,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{o=l}}}const Ki=Ahe();class ltt{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mE(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(zy?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Ehe extends ltt{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||qR,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||Lhe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options=Ce(Ce({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,n){const o=vE(this.state.data,e,this.options);return this.dispatch({data:o,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),o}setState(e,n){this.dispatch({type:"setState",state:e,setStateOptions:n})}cancel(e){var n;const o=this.promise;return(n=this.retryer)==null||n.cancel(e),o?o.then(Ls).catch(Ls):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ntt(this.state.dataUpdatedAt,e)}onFocus(){var e;const n=this.observers.find(o=>o.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const n=this.observers.find(o=>o.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,n){var o,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return(r=this.retryer)==null||r.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const $=this.observers.find(S=>S.options.queryFn);$&&this.setOptions($.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=The(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const d=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),_={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};if(l(_),(o=this.options.behavior)==null||o.onFetch(_),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=_.fetchOptions)==null?void 0:i.meta)){var M;this.dispatch({type:"fetch",meta:(M=_.fetchOptions)==null?void 0:M.meta})}const c=$=>{if(yw($)&&$.silent||this.dispatch({type:"error",error:$}),!yw($)){var S,g,D,W;(S=(g=this.cache.config).onError)==null||S.call(g,$,this),(D=(W=this.cache.config).onSettled)==null||D.call(W,this.state.data,$,this),process.env.NODE_ENV!=="production"&&this.logger.error($)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=stt({fn:_.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:$=>{var S,g,D,W;if(typeof $>"u"){process.env.NODE_ENV!=="production"&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),c(new Error(this.queryHash+" data is undefined"));return}this.setData($),(S=(g=this.cache.config).onSuccess)==null||S.call(g,$,this),(D=(W=this.cache.config).onSettled)==null||D.call(W,$,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:($,S)=>{this.dispatch({type:"failed",failureCount:$,error:S})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const n=o=>{var i,r;switch(e.type){case"failed":return Ye(Ce({},o),{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return Ye(Ce({},o),{fetchStatus:"paused"});case"continue":return Ye(Ce({},o),{fetchStatus:"fetching"});case"fetch":return Ce(Ye(Ce({},o),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:E2(this.options.networkMode)?"fetching":"paused"}),!o.dataUpdatedAt&&{error:null,status:"loading"});case"success":return Ce(Ye(Ce({},o),{data:e.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:(r=e.dataUpdatedAt)!=null?r:Date.now(),error:null,isInvalidated:!1,status:"success"}),!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=e.error;return yw(a)&&a.revert&&this.revertState?Ye(Ce({},this.revertState),{fetchStatus:"idle"}):Ye(Ce({},o),{error:a,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return Ye(Ce({},o),{isInvalidated:!0});case"setState":return Ce(Ce({},o),e.state)}};this.state=n(this.state),Ki.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function Lhe(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=typeof e<"u",o=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class Nhe extends Ng{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,n,o){var i;const r=n.queryKey,a=(i=n.queryHash)!=null?i:XR(r,n);let s=this.get(a);return s||(s=new Ehe({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(n),state:o,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const n=this.queriesMap[e.queryHash];n&&(e.destroy(),this.queries=this.queries.filter(o=>o!==e),n===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Ki.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,n){const[o]=vd(e,n);return typeof o.exact>"u"&&(o.exact=!0),this.queries.find(i=>NW(o,i))}findAll(e,n){const[o]=vd(e,n);return Object.keys(o).length>0?this.queries.filter(i=>NW(o,i)):this.queries}notify(e){Ki.batch(()=>{this.listeners.forEach(({listener:n})=>{n(e)})})}onFocus(){Ki.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Ki.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class Rhe extends ltt{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||qR,this.observers=[],this.state=e.state||ctt(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=Ce(Ce({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(n=>n!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,n;return(e=(n=this.retryer)==null?void 0:n.continue())!=null?e:this.execute()}execute(){return Vl(this,null,function*(){const e=()=>{var j;return this.retryer=stt({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(E,z)=>{this.dispatch({type:"failed",failureCount:E,error:z})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(j=this.options.retry)!=null?j:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var o,i,r,a,s,l,d,_;if(!n){var M,c,$,S;this.dispatch({type:"loading",variables:this.options.variables}),yield(M=(c=this.mutationCache.config).onMutate)==null?void 0:M.call(c,this.state.variables,this);const E=yield($=(S=this.options).onMutate)==null?void 0:$.call(S,this.state.variables);E!==this.state.context&&this.dispatch({type:"loading",context:E,variables:this.state.variables})}const j=yield e();return yield(o=(i=this.mutationCache.config).onSuccess)==null?void 0:o.call(i,j,this.state.variables,this.state.context,this),yield(r=(a=this.options).onSuccess)==null?void 0:r.call(a,j,this.state.variables,this.state.context),yield(s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,j,null,this.state.variables,this.state.context,this),yield(d=(_=this.options).onSettled)==null?void 0:d.call(_,j,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:j}),j}catch(j){try{var g,D,W,G,Y,H,R,N;throw yield(g=(D=this.mutationCache.config).onError)==null?void 0:g.call(D,j,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(j),yield(W=(G=this.options).onError)==null?void 0:W.call(G,j,this.state.variables,this.state.context),yield(Y=(H=this.mutationCache.config).onSettled)==null?void 0:Y.call(H,void 0,j,this.state.variables,this.state.context,this),yield(R=(N=this.options).onSettled)==null?void 0:R.call(N,void 0,j,this.state.variables,this.state.context),j}finally{this.dispatch({type:"error",error:j})}}})}dispatch(e){const n=o=>{switch(e.type){case"failed":return Ye(Ce({},o),{failureCount:e.failureCount,failureReason:e.error});case"pause":return Ye(Ce({},o),{isPaused:!0});case"continue":return Ye(Ce({},o),{isPaused:!1});case"loading":return Ye(Ce({},o),{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!E2(this.options.networkMode),status:"loading",variables:e.variables});case"success":return Ye(Ce({},o),{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return Ye(Ce({},o),{data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"});case"setState":return Ce(Ce({},o),e.state)}};this.state=n(this.state),Ki.batch(()=>{this.observers.forEach(o=>{o.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function ctt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Dhe extends Ng{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,n,o){const i=new Rhe({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(n),state:o,defaultOptions:n.mutationKey?e.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(n=>n!==e),this.notify({type:"removed",mutation:e})}clear(){Ki.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(n=>RW(e,n))}findAll(e){return this.mutations.filter(n=>RW(e,n))}notify(e){Ki.batch(()=>{this.listeners.forEach(({listener:n})=>{n(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const n=this.mutations.filter(o=>o.state.isPaused);return Ki.batch(()=>n.reduce((o,i)=>o.then(()=>i.continue().catch(Ls)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Ihe(){return{onFetch:t=>{t.fetchFn=()=>{var e,n,o,i,r,a;const s=(e=t.fetchOptions)==null||(n=e.meta)==null?void 0:n.refetchPage,l=(o=t.fetchOptions)==null||(i=o.meta)==null?void 0:i.fetchMore,d=l==null?void 0:l.pageParam,_=(l==null?void 0:l.direction)==="forward",M=(l==null?void 0:l.direction)==="backward",c=((r=t.state.data)==null?void 0:r.pages)||[],$=((a=t.state.data)==null?void 0:a.pageParams)||[];let S=$,g=!1;const D=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var N;if((N=t.signal)!=null&&N.aborted)g=!0;else{var j;(j=t.signal)==null||j.addEventListener("abort",()=>{g=!0})}return t.signal}})},W=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),G=(R,N,j,E)=>(S=E?[N,...S]:[...S,N],E?[j,...R]:[...R,j]),Y=(R,N,j,E)=>{if(g)return Promise.reject("Cancelled");if(typeof j>"u"&&!N&&R.length)return Promise.resolve(R);const z={queryKey:t.queryKey,pageParam:j,meta:t.options.meta};D(z);const C=W(z);return Promise.resolve(C).then(y=>G(R,j,y,E))};let H;if(!c.length)H=Y([]);else if(_){const R=typeof d<"u",N=R?d:BW(t.options,c);H=Y(c,R,N)}else if(M){const R=typeof d<"u",N=R?d:jhe(t.options,c);H=Y(c,R,N,!0)}else{S=[];const R=typeof t.options.getNextPageParam>"u";H=!(s&&c[0])||s(c[0],0,c)?Y([],R,$[0]):Promise.resolve(G([],$[0],c[0]));for(let N=1;N<c.length;N++)H=H.then(j=>{if(!(s&&c[N])||s(c[N],N,c)){const E=R?$[N]:BW(t.options,j);return Y(j,R,E)}return Promise.resolve(G(j,$[N],c[N]))})}return H.then(R=>({pages:R,pageParams:S}))}}}}function BW(t,e){return t.getNextPageParam==null?void 0:t.getNextPageParam(e[e.length-1],e)}function jhe(t,e){return t.getPreviousPageParam==null?void 0:t.getPreviousPageParam(e[0],e)}class zhe{constructor(e={}){this.queryCache=e.queryCache||new Nhe,this.mutationCache=e.mutationCache||new Dhe,this.logger=e.logger||qR,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,process.env.NODE_ENV!=="production"&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Y_.subscribe(()=>{Y_.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=X_.subscribe(()=>{X_.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,n;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(e,n){const[o]=vd(e,n);return o.fetchStatus="fetching",this.queryCache.findAll(o).length}isMutating(e){return this.mutationCache.findAll(Ye(Ce({},e),{fetching:!0})).length}getQueryData(e,n){var o;return(o=this.queryCache.find(e,n))==null?void 0:o.state.data}ensureQueryData(e,n,o){const i=hv(e,n,o),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:n,state:o})=>{const i=o.data;return[n,i]})}setQueryData(e,n,o){const i=this.queryCache.find(e),r=i==null?void 0:i.state.data,a=Che(n,r);if(typeof a>"u")return;const s=hv(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,Ye(Ce({},o),{manual:!0}))}setQueriesData(e,n,o){return Ki.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,o)]))}getQueryState(e,n){var o;return(o=this.queryCache.find(e,n))==null?void 0:o.state}removeQueries(e,n){const[o]=vd(e,n),i=this.queryCache;Ki.batch(()=>{i.findAll(o).forEach(r=>{i.remove(r)})})}resetQueries(e,n,o){const[i,r]=vd(e,n,o),a=this.queryCache,s=Ce({type:"active"},i);return Ki.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(s,r)))}cancelQueries(e,n,o){const[i,r={}]=vd(e,n,o);typeof r.revert>"u"&&(r.revert=!0);const a=Ki.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(r)));return Promise.all(a).then(Ls).catch(Ls)}invalidateQueries(e,n,o){const[i,r]=vd(e,n,o);return Ki.batch(()=>{var a,s;if(this.queryCache.findAll(i).forEach(d=>{d.invalidate()}),i.refetchType==="none")return Promise.resolve();const l=Ye(Ce({},i),{type:(a=(s=i.refetchType)!=null?s:i.type)!=null?a:"active"});return this.refetchQueries(l,r)})}refetchQueries(e,n,o){const[i,r]=vd(e,n,o),a=Ki.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var d;return l.fetch(void 0,Ye(Ce({},r),{cancelRefetch:(d=r==null?void 0:r.cancelRefetch)!=null?d:!0,meta:{refetchPage:i.refetchPage}}))}));let s=Promise.all(a).then(Ls);return r!=null&&r.throwOnError||(s=s.catch(Ls)),s}fetchQuery(e,n,o){const i=hv(e,n,o),r=this.defaultQueryOptions(i);typeof r.retry>"u"&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,n,o){return this.fetchQuery(e,n,o).then(Ls).catch(Ls)}fetchInfiniteQuery(e,n,o){const i=hv(e,n,o);return i.behavior=Ihe(),this.fetchQuery(i)}prefetchInfiniteQuery(e,n,o){return this.fetchInfiniteQuery(e,n,o).then(Ls).catch(Ls)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,n){const o=this.queryDefaults.find(i=>ep(e)===ep(i.queryKey));o?o.defaultOptions=n:this.queryDefaults.push({queryKey:e,defaultOptions:n})}getQueryDefaults(e){if(!e)return;const n=this.queryDefaults.find(o=>nm(e,o.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(o=>nm(e,o.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),n==null?void 0:n.defaultOptions}setMutationDefaults(e,n){const o=this.mutationDefaults.find(i=>ep(e)===ep(i.mutationKey));o?o.defaultOptions=n:this.mutationDefaults.push({mutationKey:e,defaultOptions:n})}getMutationDefaults(e){if(!e)return;const n=this.mutationDefaults.find(o=>nm(e,o.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(o=>nm(e,o.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),n==null?void 0:n.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const n=Ye(Ce(Ce(Ce({},this.defaultOptions.queries),this.getQueryDefaults(e==null?void 0:e.queryKey)),e),{_defaulted:!0});return!n.queryHash&&n.queryKey&&(n.queryHash=XR(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:Ye(Ce(Ce(Ce({},this.defaultOptions.mutations),this.getMutationDefaults(e==null?void 0:e.mutationKey)),e),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Bhe extends Ng{constructor(e,n){super(),this.client=e,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),$W(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yE(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yE(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,n){const o=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),process.env.NODE_ENV!=="production"&&typeof(e==null?void 0:e.isDataEqual)<"u"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),G_(o,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();const r=this.hasListeners();r&&FW(this.currentQuery,i,this.options,o)&&this.executeFetch(),this.updateResult(n),r&&(this.currentQuery!==i||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();r&&(this.currentQuery!==i||this.options.enabled!==o.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){const n=this.client.getQueryCache().build(this.client,e),o=this.createResult(n,e);return Fhe(this,o,e)&&(this.currentResult=o,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),o}getCurrentResult(){return this.currentResult}trackResult(e){const n={};return Object.keys(e).forEach(o=>{Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(o),e[o])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(e={}){var n=e,{refetchPage:o}=n,i=Cb(n,["refetchPage"]);return this.fetch(Ye(Ce({},i),{meta:{refetchPage:o}}))}fetchOptimistic(e){const n=this.client.defaultQueryOptions(e),o=this.client.getQueryCache().build(this.client,n);return o.isFetchingOptimistic=!0,o.fetch().then(()=>this.createResult(o,n))}fetch(e){var n;return this.executeFetch(Ye(Ce({},e),{cancelRefetch:(n=e.cancelRefetch)!=null?n:!0})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let n=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Ls)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),zy||this.currentResult.isStale||!mE(this.options.staleTime))return;const e=ntt(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(zy||this.options.enabled===!1||!mE(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Y_.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,n){const o=this.currentQuery,i=this.options,r=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=e!==o,d=l?e.state:this.currentQueryInitialState,_=l?this.currentResult:this.previousQueryResult,{state:M}=e;let{dataUpdatedAt:c,error:$,errorUpdatedAt:S,fetchStatus:g,status:D}=M,W=!1,G=!1,Y;if(n._optimisticResults){const j=this.hasListeners(),E=!j&&$W(e,n),z=j&&FW(e,o,n,i);(E||z)&&(g=E2(e.options.networkMode)?"fetching":"paused",c||(D="loading")),n._optimisticResults==="isRestoring"&&(g="idle")}if(n.keepPreviousData&&!M.dataUpdatedAt&&_!=null&&_.isSuccess&&D!=="error")Y=_.data,c=_.dataUpdatedAt,D=_.status,W=!0;else if(n.select&&typeof M.data<"u")if(r&&M.data===(a==null?void 0:a.data)&&n.select===this.selectFn)Y=this.selectResult;else try{this.selectFn=n.select,Y=n.select(M.data),Y=vE(r==null?void 0:r.data,Y,n),this.selectResult=Y,this.selectError=null}catch(j){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(j),this.selectError=j}else Y=M.data;if(typeof n.placeholderData<"u"&&typeof Y>"u"&&D==="loading"){let j;if(r!=null&&r.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))j=r.data;else if(j=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof j<"u")try{j=n.select(j),this.selectError=null}catch(E){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(E),this.selectError=E}typeof j<"u"&&(D="success",Y=vE(r==null?void 0:r.data,j,n),G=!0)}this.selectError&&($=this.selectError,Y=this.selectResult,S=Date.now(),D="error");const H=g==="fetching",R=D==="loading",N=D==="error";return{status:D,fetchStatus:g,isLoading:R,isSuccess:D==="success",isError:N,isInitialLoading:R&&H,data:Y,dataUpdatedAt:c,error:$,errorUpdatedAt:S,failureCount:M.fetchFailureCount,failureReason:M.fetchFailureReason,errorUpdateCount:M.errorUpdateCount,isFetched:M.dataUpdateCount>0||M.errorUpdateCount>0,isFetchedAfterMount:M.dataUpdateCount>d.dataUpdateCount||M.errorUpdateCount>d.errorUpdateCount,isFetching:H,isRefetching:H&&!R,isLoadingError:N&&M.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:G,isPreviousData:W,isRefetchError:N&&M.dataUpdatedAt!==0,isStale:ZR(e,n),refetch:this.refetch,remove:this.remove}}updateResult(e){const n=this.currentResult,o=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,G_(o,n))return;this.currentResult=o;const i={cache:!0},r=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(d=>{const _=d;return this.currentResult[_]!==n[_]&&l.has(_)})};(e==null?void 0:e.listeners)!==!1&&r()&&(i.listeners=!0),this.notify(Ce(Ce({},i),e))}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const n={};e.type==="success"?n.onSuccess=!e.manual:e.type==="error"&&!yw(e.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(e){Ki.batch(()=>{if(e.onSuccess){var n,o,i,r;(n=(o=this.options).onSuccess)==null||n.call(o,this.currentResult.data),(i=(r=this.options).onSettled)==null||i.call(r,this.currentResult.data,null)}else if(e.onError){var a,s,l,d;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(d=this.options).onSettled)==null||l.call(d,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:_})=>{_(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function $he(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function $W(t,e){return $he(t,e)||t.state.dataUpdatedAt>0&&yE(t,e,e.refetchOnMount)}function yE(t,e,n){if(e.enabled!==!1){const o=typeof n=="function"?n(t):n;return o==="always"||o!==!1&&ZR(t,e)}return!1}function FW(t,e,n,o){return n.enabled!==!1&&(t!==e||o.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&ZR(t,n)}function ZR(t,e){return t.isStaleByTime(e.staleTime)}function Fhe(t,e,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?e.isPlaceholderData:!G_(t.getCurrentResult(),e)}var bE={exports:{}},FM={};/**
|
|
1013
1013
|
* @license React
|