@perses-dev/pyroscope-plugin 0.3.1 → 0.4.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/__mf/js/Pyroscope.9bb1cd4c.js +5 -0
- package/__mf/js/async/3391.5c0ed426.js +73 -0
- package/__mf/js/async/{4075.cde93ec7.js → 4075.c2d17082.js} +1 -1
- package/__mf/js/async/{4238.f154b81c.js → 4238.2ac9d170.js} +1 -1
- package/__mf/js/async/4368.809601fc.js +2 -0
- package/__mf/js/async/4421.d2b623e9.js +1 -0
- package/__mf/js/async/671.5b7ed8bf.js +7 -0
- package/__mf/js/async/6714.98bee612.js +2 -0
- package/__mf/js/async/{__federation_expose_PyroscopeDatasource.76f63abf.js → __federation_expose_PyroscopeDatasource.936db6be.js} +2 -2
- package/__mf/js/async/{__federation_expose_PyroscopeExplorer.d2e8d27c.js → __federation_expose_PyroscopeExplorer.5fcfa90f.js} +2 -2
- package/__mf/js/async/__federation_expose_PyroscopeProfileQuery.81b7d9a3.js +2 -0
- package/__mf/js/{main.3f9c055c.js → main.a9133a97.js} +5 -6
- package/mf-manifest.json +29 -29
- package/mf-stats.json +29 -29
- package/package.json +6 -6
- package/__mf/js/Pyroscope.83a074ec.js +0 -6
- package/__mf/js/async/1101.380fb9ae.js +0 -73
- package/__mf/js/async/3105.1ab1c855.js +0 -7
- package/__mf/js/async/4368.e6685ebf.js +0 -2
- package/__mf/js/async/4421.d44d1d6f.js +0 -1
- package/__mf/js/async/5876.38b119d5.js +0 -2
- package/__mf/js/async/__federation_expose_PyroscopeProfileQuery.e8a6e53f.js +0 -2
- /package/__mf/js/async/{1101.380fb9ae.js.LICENSE.txt → 3391.5c0ed426.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4368.e6685ebf.js.LICENSE.txt → 4368.809601fc.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3105.1ab1c855.js.LICENSE.txt → 671.5b7ed8bf.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5876.38b119d5.js.LICENSE.txt → 6714.98bee612.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_PyroscopeDatasource.76f63abf.js.LICENSE.txt → __federation_expose_PyroscopeDatasource.936db6be.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_PyroscopeExplorer.d2e8d27c.js.LICENSE.txt → __federation_expose_PyroscopeExplorer.5fcfa90f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_PyroscopeProfileQuery.e8a6e53f.js.LICENSE.txt → __federation_expose_PyroscopeProfileQuery.81b7d9a3.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 6714.98bee612.js.LICENSE.txt */
|
|
2
|
+
(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["6714"],{12577:function(e,t,r){"use strict";r.d(t,{Z:()=>h});var n=r(54538),i=r(90496),o=r(82267),a=r(67488),s=r(52054),u=r(78849),l=r(12709),c=r(51751),f=r(14662),p=r(16351),d=r(24246);let g=(0,l.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${f.Z.primary}`]:t.primary},{[`& .${f.Z.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${a.Z.root}:where(& .${f.Z.primary})`]:{display:"block"},[`.${a.Z.root}:where(& .${f.Z.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),h=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiListItemText"}),{children:a,className:l,disableTypography:h=!1,inset:m=!1,primary:y,primaryTypographyProps:b,secondary:v,secondaryTypographyProps:x,slots:w={},slotProps:_={},...O}=r,{dense:$}=n.useContext(u.Z),B=null!=y?y:a,j=v,S={...r,disableTypography:h,inset:m,primary:!!B,secondary:!!j,dense:$},N=(e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:a}=e;return(0,o.Z)({root:["root",r&&"inset",a&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f.L,t)})(S),D={slots:w,slotProps:{primary:b,secondary:x,..._}},[k,F]=(0,p.Z)("root",{className:(0,i.Z)(N.root,l),elementType:g,externalForwardedProps:{...D,...O},ownerState:S,ref:t}),[A,M]=(0,p.Z)("primary",{className:N.primary,elementType:s.Z,externalForwardedProps:D,ownerState:S}),[T,P]=(0,p.Z)("secondary",{className:N.secondary,elementType:s.Z,externalForwardedProps:D,ownerState:S});return null==B||B.type===s.Z||h||(B=(0,d.jsx)(A,{variant:$?"body2":"body1",component:M?.variant?void 0:"span",...M,children:B})),null==j||j.type===s.Z||h||(j=(0,d.jsx)(T,{variant:"body2",color:"textSecondary",...P,children:j})),(0,d.jsxs)(k,{...F,children:[B,j]})})},98346:function(e,t,r){"use strict";r.d(t,{Z:()=>v});var n=r(54538),i=r(90496),o=r(16819),a=r(82267),s=r(16838),u=r(14544),l=r(51640),c=r(12709),f=r(82319),p=r(90433),d=r(51751),g=r(87462),h=r(94996),m=r(19984),y=r(24246);let b=(0,c.ZP)(u.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`size${(0,l.Z)(r.size)}`]]}})((0,f.Z)(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${g.Z.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${g.Z.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter((0,p.Z)()).map(([t])=>({props:{color:t},style:{[`&.${g.Z.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),v=n.forwardRef(function(e,t){var r;let{value:s,...u}=n.useContext(h.Z),c=n.useContext(m.Z),f=(0,o.Z)({...u,selected:(r=e.value,void 0!==s&&void 0!==r&&(Array.isArray(s)?s.includes(r):r===s))},e),p=(0,d.i)({props:f,name:"MuiToggleButton"}),{children:v,className:x,color:w="standard",disabled:_=!1,disableFocusRipple:O=!1,fullWidth:$=!1,onChange:B,onClick:j,selected:S,size:N="medium",value:D,...k}=p,F={...p,color:w,disabled:_,disableFocusRipple:O,fullWidth:$,size:N},A=(e=>{let{classes:t,fullWidth:r,selected:n,disabled:i,size:o,color:s}=e,u={root:["root",n&&"selected",i&&"disabled",r&&"fullWidth",`size${(0,l.Z)(o)}`,s]};return(0,a.Z)(u,g.a,t)})(F);return(0,y.jsx)(b,{className:(0,i.Z)(u.className,A.root,x,c||""),disabled:_,focusRipple:!O,ref:t,onClick:e=>{j&&(j(e,D),e.defaultPrevented)||B&&B(e,D)},onChange:B,value:D,ownerState:F,"aria-pressed":S,...k,children:v})})},87462:function(e,t,r){"use strict";r.d(t,{Z:()=>a,a:()=>o});var n=r(44124),i=r(6749);function o(e){return(0,i.ZP)("MuiToggleButton",e)}let a=(0,n.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])},5404:function(e,t,r){"use strict";r.d(t,{Z:()=>x});var n=r(54538),i=r(90496),o=r(82267),a=r(65124),s=r(12709),u=r(82319),l=r(51751),c=r(51640),f=r(44124),p=r(6749);function d(e){return(0,p.ZP)("MuiToggleButtonGroup",e)}let g=(0,f.Z)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var h=r(94996),m=r(19984),y=r(87462),b=r(24246);let v=(0,s.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${g.grouped}`]:t.grouped},{[`& .${g.grouped}`]:t[`grouped${(0,c.Z)(r.orientation)}`]},{[`& .${g.firstButton}`]:t.firstButton},{[`& .${g.lastButton}`]:t.lastButton},{[`& .${g.middleButton}`]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})((0,u.Z)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${g.grouped}`]:{[`&.${g.selected} + .${g.grouped}.${g.selected}`]:{borderTop:0,marginTop:0}},[`& .${g.firstButton},& .${g.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${g.lastButton},& .${g.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${g.lastButton}.${y.Z.disabled},& .${g.middleButton}.${y.Z.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${g.grouped}`]:{[`&.${g.selected} + .${g.grouped}.${g.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${g.firstButton},& .${g.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${g.lastButton},& .${g.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${g.lastButton}.${y.Z.disabled},& .${g.middleButton}.${y.Z.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),x=n.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiToggleButtonGroup"}),{children:s,className:u,color:f="standard",disabled:p=!1,exclusive:g=!1,fullWidth:y=!1,onChange:x,orientation:w="horizontal",size:_="medium",value:O,...$}=r,B={...r,disabled:p,fullWidth:y,orientation:w,size:_},j=(e=>{let{classes:t,orientation:r,fullWidth:n,disabled:i}=e,a={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${(0,c.Z)(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,o.Z)(a,d,t)})(B),S=n.useCallback((e,t)=>{let r;if(!x)return;let n=O&&O.indexOf(t);O&&n>=0?(r=O.slice()).splice(n,1):r=O?O.concat(t):[t],x(e,r)},[x,O]),N=n.useCallback((e,t)=>{x&&x(e,O===t?null:t)},[x,O]),D=n.useMemo(()=>({className:j.grouped,onChange:g?N:S,value:O,size:_,fullWidth:y,color:f,disabled:p}),[j.grouped,g,N,S,O,_,y,f,p]),k=(0,a.Z)(s),F=k.length;return(0,b.jsx)(v,{role:"group",className:(0,i.Z)(j.root,u),ref:t,ownerState:B,...$,children:(0,b.jsx)(h.Z.Provider,{value:D,children:k.map((e,t)=>(0,b.jsx)(m.Z.Provider,{value:(e=>{let t=0===e,r=e===F-1;return t&&r?"":t?j.firstButton:r?j.lastButton:j.middleButton})(t),children:e},t))})})})},19984:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n=r(54538).createContext(void 0)},94996:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n=r(54538).createContext({})},65124:function(e,t,r){"use strict";r.d(t,{Z:()=>i});var n=r(54538);function i(e){return n.Children.toArray(e).filter(e=>n.isValidElement(e))}},8193:function(e,t,r){"use strict";r.d(t,{BL:()=>u,Jj:()=>c,Kd:()=>n,Ys:()=>i,bk:()=>f,dT:()=>p,kx:()=>s,qF:()=>o,vo:()=>a,zx:()=>l});let n=["bottom","right"],i=["list","table"],o=["small","medium"];function a(e){return n.includes(e)}function s(e){return i.includes(e)}function u(e){return o.includes(e)}let l={position:"bottom",mode:"list",size:"medium"};function c(e){return void 0===e?l.position:a(e)?e:l.position}function f(e){return e&&s(e)?e:l.mode}function p(e){return e&&u(e)?e:l.size}},78737:function(e,t,r){"use strict";r.d(t,{R:()=>n});let n={JoinByColumnValue:"Join by column value",MergeColumns:"Merge columns",MergeIndexedColumns:"Merge indexed columns",MergeSeries:"Merge series"}},20147:function(e,t,r){"use strict";r.d(t,{$:()=>n});let n=3},1148:function(e,t,r){"use strict";r.d(t,{Bw:()=>er,lO:()=>el,hv:()=>en,Yi:()=>eo,JZ:()=>ed,Fc:()=>eu,PX:()=>es,Bl:()=>et,M$:()=>ee,N9:()=>ei,Ay:()=>ep,__:()=>ec,Fp:()=>ef,mb:()=>ea});var n,i,o,a,s,u,l,c,f,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function d(){if(s)return a;s=1;let e=[{key:"ZiB",factor:11805916207174113e5},{key:"ZB",factor:1e21},{key:"YiB",factor:12089258196146292e8},{key:"YB",factor:1e24},{key:"TiB",factor:0x10000000000},{key:"TB",factor:1e12},{key:"PiB",factor:0x4000000000000},{key:"PB",factor:1e15},{key:"MiB",factor:1048576},{key:"MB",factor:1e6},{key:"KiB",factor:1024},{key:"KB",factor:1e3},{key:"GiB",factor:0x40000000},{key:"GB",factor:1e9},{key:"EiB",factor:0x1000000000000000},{key:"EB",factor:1e18},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}return a={unformat:function(r,n){let i,o=m(),a=o.currentDelimiters(),s=o.currentCurrency().symbol,u=o.currentOrdinal(),l=o.getZeroFormat(),c=o.currentAbbreviations();if("string"==typeof r)if(function(e,t){if(!(e.indexOf(":")&&":"!==t.thousands))return!1;let r=e.split(":");if(3!==r.length)return!1;let n=+r[0],i=+r[1],o=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(o)}(r,a)){let e,t,n;t=+(e=r.split(":"))[0],n=+e[1],i=+e[2]+60*n+3600*t}else i=function(r,n,i="",o,a,s,u){if(""!==r)return r===a?0:function r(n,i,o,a,s,u,l){if(!isNaN(+n))return+n;let c="",f=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==n)return -1*r(f,i,o,a,s,u);for(let t=0;t<e.length;t++){let l=e[t];if((c=n.replace(RegExp(`([0-9 ])(${l.key})$`),"$1"))!==n)return r(c,i,o,a,s,u)*l.factor}if((c=n.replace("%",""))!==n)return r(c,i,o,a,s,u)/100;let p=parseFloat(n);if(isNaN(p))return;let d=a(p);if(d&&"."!==d&&(c=n.replace(RegExp(`${t(d)}$`),""))!==n)return r(c,i,o,a,s,u);let g={};Object.keys(u).forEach(e=>{g[u[e]]=e});let h=Object.keys(g).sort().reverse(),m=h.length;for(let e=0;e<m;e++){let t=h[e],l=g[t];if((c=n.replace(t,""))!==n){let e;switch(l){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return r(c,i,o,a,s,u)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,o,a,s)}(r,a,s,u,l,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function g(){if(l)return u;l=1;let e=d(),t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,r={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},n={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function o(e,t,n,i=!1){let a=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let a=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!o(a,r,`[Validate ${i}]`,!0))return!1}else if(typeof a!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof a}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:o}=s.restrictions[r];if(!t(a,e))return console.error(`${n} ${i} invalid value: ${o}`),!1}}return s.restriction&&!s.restriction(a,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(a)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${a}" provided`),!1):(!s.children||!!o(a,s.children,`[Validate ${i}]`))&&!0});return i||a.push(...Object.keys(t).map(r=>{let i=t[r];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[r])return console.error(`${n} Missing mandatory key "${r}"`),!1}return!0})),a.reduce((e,t)=>e&&t,!0)}function a(e){return o(e,r,"[Validate format]")}return u={validate:function(e,t){let r=i(e),n=a(t);return r&&n},validateFormat:a,validateInput:i,validateLanguage:function(e){return o(e,n,"[Validate language]")}}}var h=function(e,t={}){var r,n,i,o,a,s;let u,l,c,f;if("string"!=typeof e)return e;n=e=(u=(r=e).match(/^{([^}]*)}/))?(t.prefix=u[1],r.slice(u[0].length)):r,function(e,t){if(-1!==e.indexOf("$")){t.output="currency";return}if(-1!==e.indexOf("%")){t.output="percent";return}if(-1!==e.indexOf("bd")){t.output="byte",t.base="general";return}if(-1!==e.indexOf("b")){t.output="byte",t.base="binary";return}if(-1!==e.indexOf("d")){t.output="byte",t.base="decimal";return}if(-1!==e.indexOf(":")){t.output="time";return}-1!==e.indexOf("o")&&(t.output="ordinal")}(e=(l=n.match(/{([^}]*)}$/))?(t.postfix=l[1],n.slice(0,-l[0].length)):n,t),(c=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+c[0]),(f=e.split(".")[0].match(/0+/))&&(t.characteristic=f[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(o=e).indexOf("K")?t.forceAverage="thousand":-1!==o.indexOf("M")?t.forceAverage="million":-1!==o.indexOf("B")?t.forceAverage="billion":-1!==o.indexOf("T")&&(t.forceAverage="trillion");let p=e.split(".")[1];if(p){let e=p.match(/0+/);e&&(t.mantissa=e[0].length)}(a=e).match(/\[\.]/)?t.optionalMantissa=!0:a.match(/\./)&&(t.optionalMantissa=!1);let d=e.split(".")[1];return d&&(t.trimMantissa=-1!==d.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function m(){let e;if(f)return c;f=1;let t=o?i:(o=1,i={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),r=g(),n={},a={},s=null,u={};function l(){return a[e]}return n.languages=()=>Object.assign({},a),n.currentLanguage=()=>e,n.currentBytes=()=>l().bytes||{},n.currentCurrency=()=>l().currency,n.currentAbbreviations=()=>l().abbreviations,n.currentDelimiters=()=>l().delimiters,n.currentOrdinal=()=>l().ordinal,n.currentDefaults=()=>Object.assign({},l().defaults,u),n.currentOrdinalDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().ordinalFormat),n.currentByteDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().byteFormat),n.currentPercentageDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().percentageFormat),n.currentCurrencyDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().currencyFormat),n.currentTimeDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().timeFormat),n.setDefaults=e=>{e=h(e),r.validateFormat(e)&&(u=e)},n.getZeroFormat=()=>s,n.setZeroFormat=e=>s="string"==typeof e?e:null,n.hasZeroFormat=()=>null!==s,n.languageData=e=>{if(e){if(a[e])return a[e];throw Error(`Unknown tag "${e}"`)}return l()},n.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");a[t.languageTag]=t,n&&(e=t.languageTag)},n.setLanguage=(r,n=t.languageTag)=>{if(!a[r]){let t=r.split("-")[0],i=Object.keys(a).find(e=>e.split("-")[0]===t);return a[i]?void(e=i):void(e=n)}e=r},n.registerLanguage(t),e=t.languageTag,c=n}var y={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,o="[BigNumber Error] ",a=o+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function u(e){var t=0|e;return e>0||e===t?t:t-1}function l(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,u=e.e,l=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==l,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>l^r?1:-1;for(a=0,s=(u=i.length)<(l=o.length)?u:l;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return u==l?0:u>l^r?1:-1}function f(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(o+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function p(e){var t=e.c.length-1;return u(e.e/14)==t&&e.c[t]%2!=0}function d(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function g(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(t=function e(t){var h,m,y,b,v,x,w,_,O,$=R.prototype={constructor:R,toString:null,valueOf:null},B=new R(1),j=20,S=4,N=-7,D=21,k=-1e7,F=1e7,A=!1,M=1,T=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},C="0123456789abcdefghijklmnopqrstuvwxyz",E=!0;function R(e,t){var n,o,s,u,l,c,p,d,g=this;if(!(g instanceof R))return new R(e,t);if(null==t){if(e&&!0===e._isBigNumber){g.s=e.s,!e.c||e.e>F?g.c=g.e=null:e.e<k?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,l=e;l>=10;l/=10,u++);u>F?g.c=g.e=null:(g.e=u,g.c=[e]);return}d=String(e)}else{if(!r.test(d=String(e)))return O(g,d,c);g.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(u=d.indexOf("."))>-1&&(d=d.replace(".","")),(l=d.search(/e/i))>0?(u<0&&(u=l),u+=+d.slice(l+1),d=d.substring(0,l)):u<0&&(u=d.length)}else{if(f(t,2,C.length,"Base"),10==t&&E)return U(g=new R(e),j+g.e+1,S);if(d=String(e),c="number"==typeof e){if(0*e!=0)return O(g,d,c,t);if(g.s=1/e<0?(d=d.slice(1),-1):1,R.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else g.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(n=C.slice(0,t),u=l=0,p=d.length;l<p;l++)if(0>n.indexOf(o=d.charAt(l))){if("."==o){if(l>u){u=p;continue}}else if(!s&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){s=!0,l=-1,u=0;continue}return O(g,String(e),c,t)}c=!1,(u=(d=_(d,t,10,g.s)).indexOf("."))>-1?d=d.replace(".",""):u=d.length}for(l=0;48===d.charCodeAt(l);l++);for(p=d.length;48===d.charCodeAt(--p););if(d=d.slice(l,++p)){if(p-=l,c&&R.DEBUG&&p>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(a+g.s*e);if((u=u-l-1)>F)g.c=g.e=null;else if(u<k)g.c=[g.e=0];else{if(g.e=u,g.c=[],l=(u+1)%14,u<0&&(l+=14),l<p){for(l&&g.c.push(+d.slice(0,l)),p-=14;l<p;)g.c.push(+d.slice(l,l+=14));l=14-(d=d.slice(l)).length}else l-=p;for(;l--;d+="0");g.c.push(+d)}}else g.c=[g.e=0]}function Z(e,t,r,n){var i,o,a,s,u;if(null==r?r=S:f(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=l(e.c),u=1==n||2==n&&(a<=N||a>=D)?d(u,a):g(u,a,"0");else if(o=(e=U(new R(e),t,r)).e,s=(u=l(e.c)).length,1==n||2==n&&(t<=o||o<=N)){for(;s<t;u+="0",s++);u=d(u,o)}else if(t-=a,u=g(u,o,"0"),o+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function L(e,t){for(var r,n,i=1,o=new R(e[0]);i<e.length;i++)(n=new R(e[i])).s&&(r=c(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function z(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>F?e.c=e.e=null:r<k?e.c=[e.e=0]:(e.e=r,e.c=t),e}function U(e,t,r,o){var a,u,l,c,f,p,d,g=e.c;if(g){e:{for(a=1,c=g[0];c>=10;c/=10,a++);if((u=t-a)<0)u+=14,l=t,d=i((f=g[p=0])/s[a-l-1]%10);else if((p=n((u+1)/14))>=g.length)if(o){for(;g.length<=p;g.push(0));f=d=0,a=1,u%=14,l=u-14+1}else break e;else{for(a=1,f=c=g[p];c>=10;c/=10,a++);u%=14,d=(l=u-14+a)<0?0:i(f/s[a-l-1]%10)}if(o=o||t<0||null!=g[p+1]||(l<0?f:f%s[a-l-1]),o=r<4?(d||o)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||o||6==r&&(u>0?l>0?f/s[a-l]:0:g[p-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,o?(t-=e.e+1,g[0]=s[(14-t%14)%14],e.e=-t||0):g[0]=e.e=0,e;if(0==u?(g.length=p,c=1,p--):(g.length=p+1,c=s[14-u],g[p]=l>0?i(f/s[a-l]%s[l])*c:0),o)for(;;)if(0==p){for(u=1,l=g[0];l>=10;l/=10,u++);for(l=g[0]+=c,c=1;l>=10;l/=10,c++);u!=c&&(e.e++,1e14==g[0]&&(g[0]=1));break}else{if(g[p]+=c,1e14!=g[p])break;g[p--]=0,c=1}for(u=g.length;0===g[--u];g.pop());}e.e>F?e.c=e.e=null:e.e<k&&(e.c=[e.e=0])}return e}function I(e){var t,r=e.e;return null===r?e.toString():(t=l(e.c),t=r<=N||r>=D?d(t,r):g(t,r,"0"),e.s<0?"-"+t:t)}return R.clone=e,R.ROUND_UP=0,R.ROUND_DOWN=1,R.ROUND_CEIL=2,R.ROUND_FLOOR=3,R.ROUND_HALF_UP=4,R.ROUND_HALF_DOWN=5,R.ROUND_HALF_EVEN=6,R.ROUND_HALF_CEIL=7,R.ROUND_HALF_FLOOR=8,R.EUCLID=9,R.config=R.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(f(r=e[t],0,1e9,t),j=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(f(r=e[t],0,8,t),S=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(f(r[0],-1e9,0,t),f(r[1],0,1e9,t),N=r[0],D=r[1]):(f(r,-1e9,1e9,t),N=-(D=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)f(r[0],-1e9,-1,t),f(r[1],1,1e9,t),k=r[0],F=r[1];else if(f(r,-1e9,1e9,t),r)k=-(F=r<0?-r:r);else throw Error(o+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))A=r;else throw A=!r,Error(o+"crypto unavailable");else A=r;else throw Error(o+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(f(r=e[t],0,9,t),M=r),e.hasOwnProperty(t="POW_PRECISION")&&(f(r=e[t],0,1e9,t),T=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))P=r;else throw Error(o+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(o+t+" invalid: "+r);E="0123456789"==r.slice(0,10),C=r}}else throw Error(o+"Object expected: "+e);return{DECIMAL_PLACES:j,ROUNDING_MODE:S,EXPONENTIAL_AT:[N,D],RANGE:[k,F],CRYPTO:A,MODULO_MODE:M,POW_PRECISION:T,FORMAT:P,ALPHABET:C}},R.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!R.DEBUG)return!0;var t,r,n=e.c,a=e.e,s=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&a>=-1e9&&a<=1e9&&a===i(a)){if(0===n[0]){if(0===a&&1===n.length)return!0;break e}if((t=(a+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===a&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+e)},R.maximum=R.max=function(){return L(arguments,-1)},R.minimum=R.min=function(){return L(arguments,1)},h=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},R.random=function(e){var t,r,a,u,l,c=0,p=[],d=new R(B);if(null==e?e=j:f(e,0,1e9),u=n(e/14),A)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(u*=2));c<u;)(l=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(p.push(l%1e14),c+=2);c=u/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(u*=7);c<u;)(l=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(p.push(l%1e14),c+=7);c=u/7}else throw A=!1,Error(o+"crypto unavailable");if(!A)for(;c<u;)(l=h())<9e15&&(p[c++]=l%1e14);for(u=p[--c],e%=14,u&&e&&(l=s[14-e],p[c]=i(u/l)*l);0===p[c];p.pop(),c--);if(c<0)p=[a=0];else{for(a=-1;0===p[0];p.splice(0,1),a-=14);for(c=1,l=p[0];l>=10;l/=10,c++);c<14&&(a-=14-c)}return d.e=a,d.c=p,d},R.sum=function(){for(var e=1,t=arguments,r=new R(t[0]);e<t.length;)r=r.plus(t[e++]);return r},_=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,u=e.length;s<u;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,u,c,f,p,d,h,m,y=r.indexOf("."),b=j,v=S;for(y>=0&&(f=T,T=0,r=r.replace(".",""),d=(m=new R(n)).pow(r.length-y),T=f,m.c=t(g(l(d.c),d.e,"0"),10,i,e),m.e=m.c.length),c=f=(h=t(r,n,i,a?(s=C,e):(s=e,C))).length;0==h[--f];h.pop());if(!h[0])return s.charAt(0);if(y<0?--c:(d.c=h,d.e=c,d.s=o,h=(d=w(d,m,b,v,i)).c,p=d.r,c=d.e),y=h[u=c+b+1],f=i/2,p=p||u<0||null!=h[u+1],p=v<4?(null!=y||p)&&(0==v||v==(d.s<0?3:2)):y>f||y==f&&(4==v||p||6==v&&1&h[u-1]||v==(d.s<0?8:7)),u<1||!h[0])r=p?g(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(h.length=u,p)for(--i;++h[--u]>i;)h[u]=0,u||(++c,h=[1].concat(h));for(f=h.length;!h[--f];);for(y=0,r="";y<=f;r+=s.charAt(h[y++]));r=g(r,c,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,u=e.length,l=t%1e7,c=t/1e7|0;for(e=e.slice();u--;)n=c*(o=e[u]%1e7)+(a=e[u]/1e7|0)*l,s=((i=l*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[u]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,o,a,s,l){var c,f,p,d,g,h,m,y,b,v,x,w,_,O,$,B,j,S=n.s==o.s?1:-1,N=n.c,D=o.c;if(!N||!N[0]||!D||!D[0])return new R(!n.s||!o.s||(N?D&&N[0]==D[0]:!D)?NaN:N&&0==N[0]||!D?0*S:S/0);for(b=(y=new R(S)).c=[],S=a+(f=n.e-o.e)+1,l||(l=1e14,f=u(n.e/14)-u(o.e/14),S=S/14|0),p=0;D[p]==(N[p]||0);p++);if(D[p]>(N[p]||0)&&f--,S<0)b.push(1),d=!0;else{for(O=N.length,B=D.length,p=0,S+=2,(g=i(l/(D[0]+1)))>1&&(D=e(D,g,l),N=e(N,g,l),B=D.length,O=N.length),_=B,x=(v=N.slice(0,B)).length;x<B;v[x++]=0);j=[0].concat(j=D.slice()),$=D[0],D[1]>=l/2&&$++;do{if(g=0,(c=t(D,v,B,x))<0){if(w=v[0],B!=x&&(w=w*l+(v[1]||0)),(g=i(w/$))>1)for(g>=l&&(g=l-1),m=(h=e(D,g,l)).length,x=v.length;1==t(h,v,m,x);)g--,r(h,B<m?j:D,m,l),m=h.length,c=1;else 0==g&&(c=g=1),m=(h=D.slice()).length;if(m<x&&(h=[0].concat(h)),r(v,h,x,l),x=v.length,-1==c)for(;1>t(D,v,B,x);)g++,r(v,B<x?j:D,x,l),x=v.length}else 0===c&&(g++,v=[0]);b[p++]=g,v[0]?v[x++]=N[_]||0:(v=[N[_]],x=1)}while((_++<O||null!=v[0])&&S--);d=null!=v[0],b[0]||b.splice(0,1)}if(1e14==l){for(p=1,S=b[0];S>=10;S/=10,p++);U(y,a+(y.e=p+14*f-1)+1,s,d)}else y.e=f,y.r=+d;return y}}(),m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,y=/^([^.]+)\.$/,b=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,O=function(e,t,r,n){var i,a=r?t:t.replace(x,"");if(v.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(m,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,a=a.replace(y,"$1").replace(b,"0.$1")),t!=a))return new R(a,i);if(R.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},$.absoluteValue=$.abs=function(){var e=new R(this);return e.s<0&&(e.s=1),e},$.comparedTo=function(e,t){return c(this,new R(e,t))},$.decimalPlaces=$.dp=function(e,t){var r,n,i;if(null!=e)return f(e,0,1e9),null==t?t=S:f(t,0,8),U(new R(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-u(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},$.dividedBy=$.div=function(e,t){return w(this,new R(e,t),j,S)},$.dividedToIntegerBy=$.idiv=function(e,t){return w(this,new R(e,t),0,1)},$.exponentiatedBy=$.pow=function(e,t){var r,a,s,u,l,c,f,d,g,h=this;if((e=new R(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+I(e));if(null!=t&&(t=new R(t)),c=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return g=new R(Math.pow(+I(h),c?e.s*(2-p(e)):+I(e))),t?g.mod(t):g;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new R(NaN);(a=!f&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||c&&h.c[1]>=24e7:h.c[0]<8e13||c&&h.c[0]<=9999975e7)))return u=h.s<0&&p(e)?-0:0,h.e>-1&&(u=1/u),new R(f?1/u:u);T&&(u=n(T/14+2))}for(c?(r=new R(.5),f&&(e.s=1),d=p(e)):d=(s=Math.abs(+I(e)))%2,g=new R(B);;){if(d){if(!(g=g.times(h)).c)break;u?g.c.length>u&&(g.c.length=u):a&&(g=g.mod(t))}if(s){if(0===(s=i(s/2)))break;d=s%2}else if(U(e=e.times(r),e.e+1,1),e.e>14)d=p(e);else{if(0==(s=+I(e)))break;d=s%2}h=h.times(h),u?h.c&&h.c.length>u&&(h.c.length=u):a&&(h=h.mod(t))}return a?g:(f&&(g=B.div(g)),t?g.mod(t):u?U(g,T,S,l):g)},$.integerValue=function(e){var t=new R(this);return null==e?e=S:f(e,0,8),U(t,t.e+1,e)},$.isEqualTo=$.eq=function(e,t){return 0===c(this,new R(e,t))},$.isFinite=function(){return!!this.c},$.isGreaterThan=$.gt=function(e,t){return c(this,new R(e,t))>0},$.isGreaterThanOrEqualTo=$.gte=function(e,t){return 1===(t=c(this,new R(e,t)))||0===t},$.isInteger=function(){return!!this.c&&u(this.e/14)>this.c.length-2},$.isLessThan=$.lt=function(e,t){return 0>c(this,new R(e,t))},$.isLessThanOrEqualTo=$.lte=function(e,t){return -1===(t=c(this,new R(e,t)))||0===t},$.isNaN=function(){return!this.s},$.isNegative=function(){return this.s<0},$.isPositive=function(){return this.s>0},$.isZero=function(){return!!this.c&&0==this.c[0]},$.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new R(e,t)).s,!a||!t)return new R(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,c=this.c,f=e.c;if(!s||!l){if(!c||!f)return c?(e.s=-t,e):new R(f?this:NaN);if(!c[0]||!f[0])return f[0]?(e.s=-t,e):new R(c[0]?this:3==S?-0:0)}if(s=u(s),l=u(l),c=c.slice(),a=s-l){for((o=a<0)?(a=-a,i=c):(l=s,i=f),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=f.length))?a:t,a=t=0;t<n;t++)if(c[t]!=f[t]){o=c[t]<f[t];break}if(o&&(i=c,c=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>a;){if(c[--n]<f[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=f[n]}for(;0==c[0];c.splice(0,1),--l);return c[0]?z(e,c,l):(e.s=3==S?-1:1,e.c=[e.e=0],e)},$.modulo=$.mod=function(e,t){var r,n;return(e=new R(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==M?(n=e.s,e.s=1,r=w(this,e,0,3),e.s=n,r.s*=n):r=w(this,e,0,M),(e=this.minus(r.times(e))).c[0]||1!=M||(e.s=this.s),e):new R(this):new R(NaN)},$.multipliedBy=$.times=function(e,t){var r,n,i,o,a,s,l,c,f,p,d,g,h,m=this.c,y=(e=new R(e,t)).c;if(!m||!y||!m[0]||!y[0])return this.s&&e.s&&(!m||m[0]||y)&&(!y||y[0]||m)?(e.s*=this.s,m&&y?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=u(this.e/14)+u(e.e/14),e.s*=this.s,(l=m.length)<(p=y.length)&&(h=m,m=y,y=h,i=l,l=p,p=i),i=l+p,h=[];i--;h.push(0));for(i=p;--i>=0;){for(r=0,d=y[i]%1e7,g=y[i]/1e7|0,o=i+(a=l);o>i;)s=g*(c=m[--a]%1e7)+(f=m[a]/1e7|0)*d,r=((c=d*c+s%1e7*1e7+h[o]+r)/1e14|0)+(s/1e7|0)+g*f,h[o--]=c%1e14;h[o]=r}return r?++n:h.splice(0,1),z(e,h,n)},$.negated=function(){var e=new R(this);return e.s=-e.s||null,e},$.plus=function(e,t){var r,n=this.s;if(t=(e=new R(e,t)).s,!n||!t)return new R(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new R(n/0);if(!a[0]||!s[0])return s[0]?e:new R(a[0]?this:0*n)}if(i=u(i),o=u(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),z(e,a,o)},$.precision=$.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return f(e,1,1e9),null==t?t=S:f(t,0,8),U(new R(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},$.shiftedBy=function(e){return f(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},$.squareRoot=$.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,c=j+4,f=new R("0.5");if(1!==a||!o||!o[0])return new R(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+I(this)))||a==1/0?(((t=l(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=u((s+1)/2)-(s<0||s%2),r=new R(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new R(a+""),r.c[0]){for((a=(s=r.e)+c)<3&&(a=0);;)if(i=r,r=f.times(i.plus(w(this,i,c,1))),l(i.c).slice(0,a)===(t=l(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(U(r,r.e+j+2,1),e=!r.times(r).eq(this));break}if(!n&&(U(i,i.e+j+2,0),i.times(i).eq(this))){r=i;break}c+=4,a+=4,n=1}}return U(r,r.e+j+1,S,e)},$.toExponential=function(e,t){return null!=e&&(f(e,0,1e9),e++),Z(this,e,t,1)},$.toFixed=function(e,t){return null!=e&&(f(e,0,1e9),e=e+this.e+1),Z(this,e,t)},$.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=P;else if("object"!=typeof r)throw Error(o+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,a=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,l=r.groupSeparator||"",c=a[0],f=a[1],p=this.s<0,d=p?c.slice(1):c,g=d.length;if(u&&(i=s,s=u,u=i,g-=i),s>0&&g>0){for(i=g%s||s,c=d.substr(0,i);i<g;i+=s)c+=l+d.substr(i,s);u>0&&(c+=l+d.slice(i)),p&&(c="-"+c)}n=f?c+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?f.replace(RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):c}return(r.prefix||"")+n+(r.suffix||"")},$.toFraction=function(e){var t,r,n,i,a,u,c,f,p,d,g,h,m=this.c;if(null!=e&&(!(c=new R(e)).isInteger()&&(c.c||1!==c.s)||c.lt(B)))throw Error(o+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+I(c));if(!m)return new R(this);for(t=new R(B),p=r=new R(B),n=f=new R(B),h=l(m),a=t.e=h.length-this.e-1,t.c[0]=s[(u=a%14)<0?14+u:u],e=!e||c.comparedTo(t)>0?a>0?t:p:c,u=F,F=1/0,c=new R(h),f.c[0]=0;d=w(c,t,0,1),1!=(i=r.plus(d.times(n))).comparedTo(e);)r=n,n=i,p=f.plus(d.times(i=p)),f=i,t=c.minus(d.times(i=t)),c=i;return i=w(e.minus(r),n,0,1),f=f.plus(i.times(p)),r=r.plus(i.times(n)),f.s=p.s=this.s,a*=2,g=1>w(p,n,a,S).minus(this).abs().comparedTo(w(f,r,a,S).minus(this).abs())?[p,n]:[f,r],F=u,g},$.toNumber=function(){return+I(this)},$.toPrecision=function(e,t){return null!=e&&f(e,1,1e9),Z(this,e,t,2)},$.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=N||i>=D?d(l(r.c),i):g(l(r.c),i,"0"):10===e&&E?t=g(l((r=U(new R(r),j+i+1,S)).c),r.e,"0"):(f(e,2,C.length,"Base"),t=_(g(l(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},$.valueOf=$.toJSON=function(){return I(this)},$._isBigNumber=!0,null!=t&&R.set(t),R}()).default=t.BigNumber=t,y.exports?y.exports=t:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=t)})(p);var b=y.exports;let v=m(),x=g(),w={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},_={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:O,decimalSuffixes:$}=v.currentBytes(),B={scale:1024,suffixes:$,marker:"bd"},j={scale:1024,suffixes:O,marker:"b"},S={scale:1e3,suffixes:$,marker:"d"};function N(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let o=1;o<t.length;++o){let a=Math.pow(r,o),s=Math.pow(r,o+1);if(i>=a&&i<s){n=t[o],e/=a;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function D(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function k({instance:e,providedFormat:t,state:r=v,decimalSeparator:n,defaults:i=r.currentDefaults()}){var o,a;let s=e._value;if(0===s&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(s))return s.toString();let u=Object.assign({},_,i,t),l=u.totalLength,c=l?0:u.characteristic,f=u.optionalCharacteristic,p=u.forceAverage,d=u.lowPrecision,g=!!l||!!p||u.average,h=l?-1:g&&void 0===t.mantissa?0:u.mantissa,m=!l&&(void 0===t.optionalMantissa?-1===h:u.optionalMantissa),y=u.trimMantissa,x=u.thousandSeparated,O=u.spaceSeparated,$=u.negative,B=u.forceSign,j=u.exponential,S=u.roundingFunction,N="";if(g){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:o=0,roundingFunction:a=Math.round}){let s="",u=Math.abs(e),l=-1;if(t&&n[t]&&w[t]?(s=n[t],e/=w[t]):u>=w.trillion||r&&1===a(u/w.trillion)?(s=n.trillion,e/=w.trillion):u<w.trillion&&u>=w.billion||r&&1===a(u/w.billion)?(s=n.billion,e/=w.billion):u<w.billion&&u>=w.million||r&&1===a(u/w.million)?(s=n.million,e/=w.million):(u<w.million&&u>=w.thousand||r&&1===a(u/w.thousand))&&(s=n.thousand,e/=w.thousand),s&&(s=(i?" ":"")+s),o){let t=e<0,r=e.toString().split(".")[0];l=Math.max(o-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:l}}({value:s,forceAverage:p,lowPrecision:d,abbreviations:r.currentAbbreviations(),spaceSeparated:O,roundingFunction:S,totalLength:l});s=e.value,N+=e.abbreviation,l&&(h=e.mantissaPrecision)}if(j){let e=function({value:e,characteristicPrecision:t}){let[r,n]=e.toExponential().split("e"),i=+r;return t&&1<t&&(i*=Math.pow(10,t-1),n-=t-1,n=n>=0?`+${n}`:n),{value:i,abbreviation:`e${n}`}}({value:s,characteristicPrecision:c});s=e.value,N=e.abbreviation+N}let k=function(e,t,r,n,i,o){if(-1===n)return e;let a=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[o,a=""]=n.split(".");if(+i>0)r=o+a+D(i-a.length);else{let e=".";e=0>+o?`-0${e}`:`0${e}`;let n=(D(-i-1)+Math.abs(o)+a).substr(0,t);n.length<t&&(n+=D(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${D(t)}`),r}(e,t):new b(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,o),[s,u=""]=a.toString().split(".");if(u.match(/^0+$/)&&(r||i))return s;let l=u.match(/0+$/);return i&&l?`${s}.${u.toString().slice(0,l.index)}`:a.toString()}(s.toString(),s,m,h,y,S);return k=function(e,t,r,n,i){let o=n.currentDelimiters(),a=o.thousands;i=i||o.decimal;let s=o.thousandsSize||3,u=e.toString(),l=u.split(".")[0],c=u.split(".")[1],f=t<0&&0===l.indexOf("-");return r&&(f&&(l=l.slice(1)),(function(e,t){let r=[],n=0;for(let i=e;i>0;i--)n===t&&(r.unshift(i),n=0),n++;return r})(l.length,s).forEach((e,t)=>{l=l.slice(0,e+t)+a+l.slice(e+t)}),f&&(l=`-${l}`)),u=c?l+i+c:l}(k=function(e,t,r,n){let i=e,[o,a]=i.toString().split(".");if(o.match(/^-?0$/)&&r)return a?`${o.replace("0","")}.${a}`:o.replace("0","");let s=t<0&&0===o.indexOf("-");if(s&&(o=o.slice(1),i=i.slice(1)),o.length<n){let e=n-o.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(k,s,f,c),s,x,r,n),(g||j)&&(k+=N),(B||s<0)&&(o=k,k=0===(a=s)?o:0==+o?o.replace("-",""):a>0?`+${o}`:"sign"===$?o:`(${o.replace("-","")})`),k}function F(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function A(e,t,r){let n=new b(e._value),i=t;return r.isNumbro(t)&&(i=t._value),i=new b(i),e._value=n.minus(i).toNumber(),e}let M=m(),T=g(),P={loadLanguagesInNode:e=>{e.forEach(e=>{let t;try{t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}t&&z.registerLanguage(t)})}},C=d(),E={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=h(t)),!x.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",o=function(e,t,r){var n,i;switch(t.output){case"currency":return function(e,t,r){let n,i=r.currentCurrency(),o=Object.assign({},t),a=Object.assign({},_,o),s="",u=!!a.totalLength||!!a.forceAverage||a.average,l=o.currencyPosition||i.position,c=o.currencySymbol||i.symbol,f=void 0!==a.spaceSeparatedCurrency?a.spaceSeparatedCurrency:a.spaceSeparated;void 0===o.lowPrecision&&(o.lowPrecision=!1),f&&(s=" "),"infix"===l&&(n=s+c+s);let p=k({instance:e,providedFormat:o,state:r,decimalSeparator:n});return"prefix"===l&&(p=e._value<0&&"sign"===a.negative?`-${s}${c}${p.slice(1)}`:e._value>0&&a.forceSign?`+${s}${c}${p.slice(1)}`:c+s+p),l&&"postfix"!==l||(p=p+(s=!a.spaceSeparatedAbbreviation&&u?"":s)+c),p}(e,t=F(t,v.currentCurrencyDefaultFormat()),v);case"percent":let o,a,s;return n=t=F(t,v.currentPercentageDefaultFormat()),o=n.prefixSymbol,a=k({instance:r(100*e._value),providedFormat:n,state:v}),s=Object.assign({},_,n),o?`%${s.spaceSeparated?" ":""}${a}`:`${a}${s.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",o=Object.assign({},_,t),{binarySuffixes:a,decimalSuffixes:s}=r.currentBytes(),u={general:{scale:1024,suffixes:s||$,marker:"bd"},binary:{scale:1024,suffixes:a||O,marker:"b"},decimal:{scale:1e3,suffixes:s||$,marker:"d"}}[i],{value:l,suffix:c}=N(e._value,u.suffixes,u.scale),f=k({instance:n(l),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${f}${o.spaceSeparated?" ":""}${c}`}(e,t=F(t,v.currentByteDefaultFormat()),v,r);case"time":let u,l,c;return t=F(t,v.currentTimeDefaultFormat()),u=Math.floor(e._value/60/60),l=Math.floor((e._value-60*u*60)/60),c=Math.round(e._value-60*u*60-60*l),`${u}:${l<10?"0":""}${l}:${c<10?"0":""}${c}`;case"ordinal":let f,p,d,g;return i=t=F(t,v.currentOrdinalDefaultFormat()),f=v.currentOrdinal(),p=Object.assign({},_,i),d=k({instance:e,providedFormat:i,state:v}),g=f(e._value),`${d}${p.spaceSeparated?" ":""}${g}`;default:return k({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(o=n+o)+i})(...e,z),getByteUnit:(...e)=>(function(e){return N(e._value,B.suffixes,B.scale).suffix})(...e,z),getBinaryByteUnit:(...e)=>(function(e){return N(e._value,j.suffixes,j.scale).suffix})(...e,z),getDecimalByteUnit:(...e)=>(function(e){return N(e._value,S.suffixes,S.scale).suffix})(...e,z),formatOrDefault:F},R={add:(e,t)=>{let r,n;return r=new b(e._value),n=t,z.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>A(e,t,z),multiply:(e,t)=>{let r,n;return r=new b(e._value),n=t,z.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.times(n).toNumber(),e},divide:(e,t)=>{let r,n;return r=new b(e._value),n=t,z.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,z.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return A(r=z(e._value),t,z),Math.abs(r._value)},BigNumber:b};class Z{constructor(e){this._value=e}clone(){return z(this._value)}format(e={}){return E.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=h(e)),(e=E.formatOrDefault(e,M.currentCurrencyDefaultFormat())).output="currency",E.format(this,e)}formatTime(e={}){return e.output="time",E.format(this,e)}binaryByteUnits(){return E.getBinaryByteUnit(this)}decimalByteUnits(){return E.getDecimalByteUnit(this)}byteUnits(){return E.getByteUnit(this)}difference(e){return R.difference(this,e)}add(e){return R.add(this,e)}subtract(e){return R.subtract(this,e)}multiply(e){return R.multiply(this,e)}divide(e){return R.divide(this,e)}set(e){return R.set(this,L(e))}value(){return this._value}valueOf(){return this._value}}function L(e){let t=e;return z.isNumbro(e)?t=e._value:"string"==typeof e?t=z.unformat(e):isNaN(e)&&(t=NaN),t}function z(e){return new Z(L(e))}z.version="2.5.0",z.isNumbro=function(e){return e instanceof Z},z.language=M.currentLanguage,z.registerLanguage=M.registerLanguage,z.setLanguage=M.setLanguage,z.languages=M.languages,z.languageData=M.languageData,z.zeroFormat=M.setZeroFormat,z.defaultFormat=M.currentDefaults,z.setDefaults=M.setDefaults,z.defaultCurrencyFormat=M.currentCurrencyDefaultFormat,z.validate=T.validate,z.loadLanguagesInNode=P.loadLanguagesInNode,z.unformat=C.unformat,z.BigNumber=R.BigNumber;var U=z&&z.__esModule&&Object.prototype.hasOwnProperty.call(z,"default")?z.default:z,I=r(20147),G=r(15418);function V(e,{shortValues:t,decimalPlaces:r}){if(!(0,G.lk)(t)||1e3>Math.abs(e)){let n={style:"unit",unit:"byte",unitDisplay:"long",useGrouping:!0};return(0,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):(0,G.lk)(t)&&(n.maximumSignificantDigits=I.$),Intl.NumberFormat("en-US",n).format(e)}return U(e).format({output:"byte",base:"decimal",spaceSeparated:!0,mantissa:(0,G.ej)(r)?r:2,trimMantissa:!(0,G.ej)(r),optionalMantissa:!(0,G.ej)(r)})}let q="Percent",W="Time";var H=((n={}).milliseconds="millisecond",n.seconds="second",n.minutes="minute",n.hours="hour",n.days="day",n.weeks="week",n.months="month",n.years="year",n);let K={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001},Y=["years","months","weeks","days","hours","minutes","seconds","milliseconds"],J="Throughput";var X=r(93098);let Q="Currency",ee={Time:{label:"Time",decimalPlaces:!0},Percent:{label:"percent",decimalPlaces:!0},Decimal:{label:"Decimal",decimalPlaces:!0,shortValues:!0},Bytes:{label:"Bytes",decimalPlaces:!0,shortValues:!0},Throughput:{label:"Throughput",decimalPlaces:!0},Currency:{label:"Currency",decimalPlaces:!0}},et={milliseconds:{group:W,label:"Milliseconds"},seconds:{group:W,label:"Seconds"},minutes:{group:W,label:"Minutes"},hours:{group:W,label:"Hours"},days:{group:W,label:"Days"},weeks:{group:W,label:"Weeks"},months:{group:W,label:"Months"},years:{group:W,label:"Years"},percent:{group:q,label:"Percent (0-100)"},"percent-decimal":{group:q,label:"Percent (0.0-1.0)"},"%":{disableSelectorOption:!0,group:q,label:"%"},decimal:{group:"Decimal",label:"Decimal"},bytes:{group:"Bytes",label:"Bytes"},"bits/sec":{group:J,label:"Bits/sec"},"bytes/sec":{group:J,label:"Bytes/sec"},"counts/sec":{group:J,label:"Counts/sec"},"events/sec":{group:J,label:"Events/sec"},"messages/sec":{group:J,label:"Messages/sec"},"ops/sec":{group:J,label:"Ops/sec"},"packets/sec":{group:J,label:"Packets/sec"},"reads/sec":{group:J,label:"Reads/sec"},"requests/sec":{group:J,label:"Requests/sec"},"records/sec":{group:J,label:"Records/sec"},"rows/sec":{group:J,label:"Rows/sec"},"writes/sec":{group:J,label:"Writes/sec"},aud:{group:Q,label:"Australian Dollar (A$)"},cad:{group:Q,label:"Canadian Dollar (CA$)"},chf:{group:Q,label:"Swiss Franc (CHF)"},cny:{group:Q,label:"Renminbi (CN\xa5)"},eur:{group:Q,label:"Euro (€)"},gbp:{group:Q,label:"Pound (\xa3)"},hkd:{group:Q,label:"Hong Kong Dollar (HK$)"},inr:{group:Q,label:"Indian Rupee (₹)"},jpy:{group:Q,label:"Yen (\xa5)"},krw:{group:Q,label:"South Korean Won (₩)"},nok:{group:Q,label:"Norwegian Krone (NOK)"},nzd:{group:Q,label:"New Zealand Dollar (NZ$)"},sek:{group:Q,label:"Swedish Krona (SEK)"},sgd:{group:Q,label:"Singapore Dollar (S$)"},usd:{group:Q,label:"US Dollar ($)"}};function er(e,t){if(void 0===t)return e.toString();if(el(t))return V(e,t);if(eu(t))return function(e,{shortValues:t,decimalPlaces:r}){let n={style:"decimal",useGrouping:!0};return(0,G.lk)(t)&&(n.notation="compact"),(0,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):(0,G.lk)(t)&&(n.maximumSignificantDigits=I.$),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(es(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"percent",useGrouping:!0};return(0,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):n.maximumSignificantDigits=I.$,"percent"===t&&(e/=100),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(ea(t))return function(e,{unit:t,decimalPlaces:r}){var n;if(0===e)return"0s";let i=function(e,t){let r=e*K[t],n=Y[0]||"years",i=n,o=r/K[n];for(i of Y)if((o=r/K[i])>=1)break;return{value:o,unit:i}}(e,t??"seconds"),o={style:"unit",unit:H[i.unit],unitDisplay:"months"===(n=i.unit)||"years"===n?"long":"narrow"};return(0,G.ej)(r)?(o.minimumFractionDigits=(0,G.Gs)(r),o.maximumFractionDigits=(0,G.Gs)(r)):o.maximumSignificantDigits=I.$,Intl.NumberFormat("en-US",o).format(i.value)}(e,t);if(ep(t))return function(e,{unit:t,shortValues:r,decimalPlaces:n}){if("bytes/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return V(e,{unit:"bytes",shortValues:r,decimalPlaces:n})+"/"+t}let i={style:"decimal",useGrouping:!0};return(0,G.lk)(r)&&(i.notation="compact"),(0,G.ej)(n)?(i.minimumFractionDigits=(0,G.Gs)(n),i.maximumFractionDigits=(0,G.Gs)(n)):(0,G.lk)(r)&&(i.maximumSignificantDigits=I.$),Intl.NumberFormat("en-US",i).format(e)+" "+t}(e,t);if(ed(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"currency",currency:(0,X.toUpper)(t),currencyDisplay:"symbol"};return(0,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):n.maximumSignificantDigits=I.$,Intl.NumberFormat("en-US",n).format(e)}(e,t);throw Error(`Unknown unit options ${t}`)}function en(e){return et[e.unit??"decimal"]}function ei(e){return en(e).group??"Decimal"}function eo(e){return ee[en(e).group??"Decimal"]}function ea(e){return"Time"===ei(e)}function es(e){return"Percent"===ei(e)}function eu(e){return"Decimal"===ei(e)}function el(e){return"Bytes"===ei(e)}function ec(e){return!!eo(e).decimalPlaces}function ef(e){return!!eo(e).shortValues}function ep(e){return"Throughput"===ei(e)}function ed(e){return"Currency"===ei(e)}},15418:function(e,t,r){"use strict";function n(e){return!1!==e}function i(e){return"number"==typeof e}function o(e){return e&&(e<0?e=0:e>20&&(e=20)),e}r.d(t,{Gs:()=>o,ej:()=>i,lk:()=>n})},82545:function(e,t,r){e.exports=r(81822)(r(77400),"DataView")},96586:function(e,t,r){var n=r(57753),i=r(82452),o=r(22115),a=r(38256),s=r(67426);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},36301:function(e,t,r){var n=r(69417),i=r(72470),o=r(66165),a=r(71873),s=r(52556);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},44538:function(e,t,r){e.exports=r(81822)(r(77400),"Map")},74554:function(e,t,r){var n=r(39448),i=r(7738),o=r(66575),a=r(7238),s=r(38738);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},64825:function(e,t,r){e.exports=r(81822)(r(77400),"Promise")},46151:function(e,t,r){e.exports=r(81822)(r(77400),"Set")},52485:function(e,t,r){var n=r(74554),i=r(38639),o=r(88379);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},23694:function(e,t,r){var n=r(36301),i=r(7354),o=r(5863),a=r(12367),s=r(90748),u=r(97569);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},96539:function(e,t,r){e.exports=r(77400).Symbol},59942:function(e,t,r){e.exports=r(77400).Uint8Array},66902:function(e,t,r){e.exports=r(81822)(r(77400),"WeakMap")},10263:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},98213:function(e,t,r){var n=r(24701),i=r(2900),o=r(19785),a=r(43854),s=r(42383),u=r(48519),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&i(e),f=!r&&!c&&a(e),p=!r&&!c&&!f&&u(e),d=r||c||f||p,g=d?n(e.length,String):[],h=g.length;for(var m in e)(t||l.call(e,m))&&!(d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,h)))&&g.push(m);return g}},97141:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},90756:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},93382:function(e,t,r){var n=r(85638);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},11324:function(e,t,r){var n=r(97141),i=r(19785);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},99736:function(e,t,r){var n=r(96539),i=r(34840),o=r(21258),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},55829:function(e,t,r){var n=r(99736),i=r(92360);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},32866:function(e,t,r){var n=r(12772),i=r(92360);e.exports=function e(t,r,o,a,s){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,o,a,e,s):t!=t&&r!=r)}},12772:function(e,t,r){var n=r(23694),i=r(27042),o=r(370),a=r(39584),s=r(3533),u=r(19785),l=r(43854),c=r(48519),f="[object Arguments]",p="[object Array]",d="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,m,y){var b=u(e),v=u(t),x=b?p:s(e),w=v?p:s(t);x=x==f?d:x,w=w==f?d:w;var _=x==d,O=w==d,$=x==w;if($&&l(e)){if(!l(t))return!1;b=!0,_=!1}if($&&!_)return y||(y=new n),b||c(e)?i(e,t,r,h,m,y):o(e,t,x,r,h,m,y);if(!(1&r)){var B=_&&g.call(e,"__wrapped__"),j=O&&g.call(t,"__wrapped__");if(B||j){var S=B?e.value():e,N=j?t.value():t;return y||(y=new n),m(S,N,r,h,y)}}return!!$&&(y||(y=new n),a(e,t,r,h,m,y))}},46729:function(e,t,r){var n=r(28338),i=r(99678),o=r(11611),a=r(76532),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,f=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?f:s).test(a(e))}},26972:function(e,t,r){var n=r(99736),i=r(84194),o=r(92360),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},20186:function(e,t,r){var n=r(56016),i=r(50962),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},24701:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},39334:function(e){e.exports=function(e){return function(t){return e(t)}}},65581:function(e){e.exports=function(e,t){return e.has(t)}},64937:function(e,t,r){e.exports=r(77400)["__core-js_shared__"]},27042:function(e,t,r){var n=r(52485),i=r(90756),o=r(65581);e.exports=function(e,t,r,a,s,u){var l=1&r,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var g=-1,h=!0,m=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++g<c;){var y=e[g],b=t[g];if(a)var v=l?a(b,y,g,t,e,u):a(y,b,g,e,t,u);if(void 0!==v){if(v)continue;h=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(y===e||s(y,e,r,a,u)))return m.push(t)})){h=!1;break}}else if(!(y===b||s(y,b,r,a,u))){h=!1;break}}return u.delete(e),u.delete(t),h}},370:function(e,t,r){var n=r(96539),i=r(59942),o=r(85638),a=r(27042),s=r(19383),u=r(43735),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var g=1&n;if(d||(d=u),e.size!=t.size&&!g)break;var h=p.get(e);if(h)return h==t;n|=2,p.set(e,t);var m=a(d(e),d(t),n,l,f,p);return p.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},39584:function(e,t,r){var n=r(51385),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var u=1&r,l=n(e),c=l.length;if(c!=n(t).length&&!u)return!1;for(var f=c;f--;){var p=l[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e),g=s.get(t);if(d&&g)return d==t&&g==e;var h=!0;s.set(e,t),s.set(t,e);for(var m=u;++f<c;){var y=e[p=l[f]],b=t[p];if(o)var v=u?o(b,y,p,t,e,s):o(y,b,p,e,t,s);if(!(void 0===v?y===b||a(y,b,r,o,s):v)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(h=!1)}return s.delete(e),s.delete(t),h}},39120:function(e,t,r){e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},51385:function(e,t,r){var n=r(11324),i=r(83080),o=r(50098);e.exports=function(e){return n(e,o,i)}},95899:function(e,t,r){var n=r(54479);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},81822:function(e,t,r){var n=r(46729),i=r(15371);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},34840:function(e,t,r){var n=r(96539),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},83080:function(e,t,r){var n=r(10263),i=r(15937),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return o.call(e,t)})}:i},3533:function(e,t,r){var n=r(82545),i=r(44538),o=r(64825),a=r(46151),s=r(66902),u=r(99736),l=r(76532),c="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",g="[object DataView]",h=l(n),m=l(i),y=l(o),b=l(a),v=l(s),x=u;(n&&x(new n(new ArrayBuffer(1)))!=g||i&&x(new i)!=c||o&&x(o.resolve())!=f||a&&x(new a)!=p||s&&x(new s)!=d)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case h:return g;case m:return c;case y:return f;case b:return p;case v:return d}return t}),e.exports=x},15371:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},57753:function(e,t,r){var n=r(35718);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},82452:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},22115:function(e,t,r){var n=r(35718),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},38256:function(e,t,r){var n=r(35718),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},67426:function(e,t,r){var n=r(35718);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},42383:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},54479:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},99678:function(e,t,r){var n,i=r(64937),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},56016:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},69417:function(e){e.exports=function(){this.__data__=[],this.size=0}},72470:function(e,t,r){var n=r(93382),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},66165:function(e,t,r){var n=r(93382);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},71873:function(e,t,r){var n=r(93382);e.exports=function(e){return n(this.__data__,e)>-1}},52556:function(e,t,r){var n=r(93382);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},39448:function(e,t,r){var n=r(96586),i=r(36301),o=r(44538);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},7738:function(e,t,r){var n=r(95899);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},66575:function(e,t,r){var n=r(95899);e.exports=function(e){return n(this,e).get(e)}},7238:function(e,t,r){var n=r(95899);e.exports=function(e){return n(this,e).has(e)}},38738:function(e,t,r){var n=r(95899);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this}},19383:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},35718:function(e,t,r){e.exports=r(81822)(Object,"create")},50962:function(e,t,r){e.exports=r(58023)(Object.keys,Object)},18125:function(e,t,r){e=r.nmd(e);var n=r(39120),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},21258:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},58023:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},77400:function(e,t,r){var n=r(39120),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},38639:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},88379:function(e){e.exports=function(e){return this.__data__.has(e)}},43735:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},7354:function(e,t,r){var n=r(36301);e.exports=function(){this.__data__=new n,this.size=0}},5863:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},12367:function(e){e.exports=function(e){return this.__data__.get(e)}},90748:function(e){e.exports=function(e){return this.__data__.has(e)}},97569:function(e,t,r){var n=r(36301),i=r(44538),o=r(74554);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},76532:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},85638:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2900:function(e,t,r){var n=r(55829),i=r(92360),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},19785:function(e){e.exports=Array.isArray},80068:function(e,t,r){var n=r(28338),i=r(84194);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},43854:function(e,t,r){e=r.nmd(e);var n=r(77400),i=r(57714),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},56141:function(e,t,r){var n=r(32866);e.exports=function(e,t){return n(e,t)}},28338:function(e,t,r){var n=r(99736),i=r(11611);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},92360:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},48519:function(e,t,r){var n=r(26972),i=r(39334),o=r(18125),a=o&&o.isTypedArray;e.exports=a?i(a):n},50098:function(e,t,r){var n=r(98213),i=r(20186),o=r(80068);e.exports=function(e){return o(e)?n(e):i(e)}},15937:function(e){e.exports=function(){return[]}},57714:function(e){e.exports=function(){return!1}},86396:function(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(30265))&&n.__esModule?n:{default:n}).default)("M19,13H5V11H19V13Z","Minus")}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see __federation_expose_PyroscopeDatasource.
|
|
2
|
-
"use strict";(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["737"],{35015:function(e,r,t){async function o(...e){let r=await t.g.fetch(...e);if(!1===r.ok){let e=r.headers.get("content-type");if(e?.includes("application/json")){let e=await r.clone().json();if(e.error)throw new i(e.error,r.status);if(e.message)throw new i(e.message,r.status)}let t=await r.clone().text();if(t)throw new i(t,r.status);throw new n(r)}return r}async function s(...e){let r=await o(...e);if(!r.ok)throw new n(r);return await r.json()}t.d(r,{he:()=>o,kp:()=>n,rd:()=>s,yh:()=>i});class n extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,n.prototype)}}class i extends Error{status;constructor(e,r){super(e),this.status=r,Object.setPrototypeOf(this,i.prototype)}}},71426:function(e,r,t){var o=t(54538),s=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var o,n={},u=null,l=null;for(o in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)i.call(r,o)&&!c.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:s,type:e,key:u,ref:l,props:n,_owner:a.current}}r.Fragment=n,r.jsx=u,r.jsxs=u},24246:function(e,r,t){e.exports=t(71426)},43208:function(e,r,t){t.r(r),t.d(r,{PyroscopeDatasource:()=>c});var o=t(35015);let s=async function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];let s=await (0,o.he)(...r);try{return await s.json()}catch(e){throw console.error("Invalid response from server",e),Error("Invalid response from server")}};function n(e,r,t,o){let{datasourceUrl:n,headers:i={}}=t,a=`${n}${e}`;return r&&(a+="?"+new URLSearchParams(r)),s(a,{method:"POST",headers:i,body:JSON.stringify(o)})}var i=t(24246),a=t(
|
|
1
|
+
/*! For license information please see __federation_expose_PyroscopeDatasource.936db6be.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["737"],{35015:function(e,r,t){async function o(...e){let r=await t.g.fetch(...e);if(!1===r.ok){let e=r.headers.get("content-type");if(e?.includes("application/json")){let e=await r.clone().json();if(e.error)throw new i(e.error,r.status);if(e.message)throw new i(e.message,r.status)}let t=await r.clone().text();if(t)throw new i(t,r.status);throw new n(r)}return r}async function s(...e){let r=await o(...e);if(!r.ok)throw new n(r);return await r.json()}t.d(r,{he:()=>o,kp:()=>n,rd:()=>s,yh:()=>i});class n extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,n.prototype)}}class i extends Error{status;constructor(e,r){super(e),this.status=r,Object.setPrototypeOf(this,i.prototype)}}},71426:function(e,r,t){var o=t(54538),s=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var o,n={},u=null,l=null;for(o in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)i.call(r,o)&&!c.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:s,type:e,key:u,ref:l,props:n,_owner:a.current}}r.Fragment=n,r.jsx=u,r.jsxs=u},24246:function(e,r,t){e.exports=t(71426)},43208:function(e,r,t){t.r(r),t.d(r,{PyroscopeDatasource:()=>c});var o=t(35015);let s=async function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];let s=await (0,o.he)(...r);try{return await s.json()}catch(e){throw console.error("Invalid response from server",e),Error("Invalid response from server")}};function n(e,r,t,o){let{datasourceUrl:n,headers:i={}}=t,a=`${n}${e}`;return r&&(a+="?"+new URLSearchParams(r)),s(a,{method:"POST",headers:i,body:JSON.stringify(o)})}var i=t(24246),a=t(87570);t(54538);let c={createClient:(e,r)=>{let{directUrl:t,proxy:o}=e,{proxyUrl:i}=r,a=t??i;if(void 0===a)throw Error("No URL specified for Pyroscope client. You can use directUrl in the spec to configure it.");let c=null==o?void 0:o.spec.headers;return{options:{datasourceUrl:a},searchProfiles:(e,r)=>(function(e,r){let{datasourceUrl:t,headers:o={}}=r,n=`${t}/pyroscope/render`;return e&&(n+="?"+new URLSearchParams(e)),s(n,{method:"GET",headers:o})})(e,{datasourceUrl:a,headers:r??c}),searchProfileTypes:(e,r,t)=>n("/querier.v1.QuerierService/ProfileTypes",e,{datasourceUrl:a,headers:r??c},t),searchLabelNames:(e,r,t)=>n("/querier.v1.QuerierService/LabelNames",e,{datasourceUrl:a,headers:r??c},t),searchLabelValues:(e,r,t)=>n("/querier.v1.QuerierService/LabelValues",e,{datasourceUrl:a,headers:r??c},t),searchServices:(e,r)=>n("/querier.v1.QuerierService/LabelValues",e,{datasourceUrl:a,headers:r??c},{name:"service_name"})}},OptionsEditorComponent:function(e){let{value:r,onChange:t,isReadonly:o}=e;return(0,i.jsx)(a.HTTPSettingsEditor,{value:r,onChange:t,isReadonly:o,initialSpecDirect:{directUrl:""},initialSpecProxy:{proxy:{kind:"HTTPProxy",spec:{allowedEndpoints:[{endpointPattern:"/pyroscope/render",method:"GET"},{endpointPattern:"/querier.v1.QuerierService/ProfileTypes",method:"POST"},{endpointPattern:"/querier.v1.QuerierService/LabelNames",method:"POST"},{endpointPattern:"/querier.v1.QuerierService/LabelValues",method:"POST"}],url:""}}}})},createInitialOptions:()=>({directUrl:""})}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see __federation_expose_PyroscopeExplorer.
|
|
2
|
-
"use strict";(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["9029"],{36372:function(e,r,t){t.d(r,{Z:()=>y});var n=t(54538),o=t(90496),s=t(89966),a=t(11652),i=t(93772),l=t(38971),u=t(24246),p=t(70544),c=t(28730),f=t(92994);let d=(0,t(44124).Z)("MuiBox",["root"]),h=(0,c.Z)(),y=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:c}=e,f=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(a.Z);return n.forwardRef(function(e,n){let s=(0,l.Z)(t),{className:a,component:d="div",...h}=(0,i.Z)(e);return(0,u.jsx)(f,{as:d,ref:n,className:(0,o.Z)(a,c?c(p):p),theme:r&&s[r]||s,...h})})}({themeId:f.Z,defaultTheme:h,defaultClassName:d.root,generateClassName:p.Z.generate})},71426:function(e,r,t){var n=t(54538),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,s={},u=null,p=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(p=r.ref),r)a.call(r,n)&&!l.hasOwnProperty(n)&&(s[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===s[n]&&(s[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:p,props:s,_owner:i.current}}r.Fragment=s,r.jsx=u,r.jsxs=u},24246:function(e,r,t){e.exports=t(71426)},98270:function(e,r,t){t.r(r),t.d(r,{PyroscopeExplorer:()=>c});var n=t(24246),o=t(25283),s=t(36372),a=t(
|
|
1
|
+
/*! For license information please see __federation_expose_PyroscopeExplorer.5fcfa90f.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["9029"],{36372:function(e,r,t){t.d(r,{Z:()=>y});var n=t(54538),o=t(90496),s=t(89966),a=t(11652),i=t(93772),l=t(38971),u=t(24246),p=t(70544),c=t(28730),f=t(92994);let d=(0,t(44124).Z)("MuiBox",["root"]),h=(0,c.Z)(),y=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:c}=e,f=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(a.Z);return n.forwardRef(function(e,n){let s=(0,l.Z)(t),{className:a,component:d="div",...h}=(0,i.Z)(e);return(0,u.jsx)(f,{as:d,ref:n,className:(0,o.Z)(a,c?c(p):p),theme:r&&s[r]||s,...h})})}({themeId:f.Z,defaultTheme:h,defaultClassName:d.root,generateClassName:p.Z.generate})},71426:function(e,r,t){var n=t(54538),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,s={},u=null,p=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(p=r.ref),r)a.call(r,n)&&!l.hasOwnProperty(n)&&(s[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===s[n]&&(s[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:p,props:s,_owner:i.current}}r.Fragment=s,r.jsx=u,r.jsxs=u},24246:function(e,r,t){e.exports=t(71426)},98270:function(e,r,t){t.r(r),t.d(r,{PyroscopeExplorer:()=>c});var n=t(24246),o=t(25283),s=t(36372),a=t(87570),i=t(13603),l=t(97886);let u={palette:"package-name",showSettings:!0,showSeries:!0,showTable:!0,showFlameGraph:!0,traceHeight:25};function p(e){let{queries:r}=e;return(0,n.jsx)(i.Panel,{panelOptions:{hideHeader:!0},definition:{kind:"Panel",spec:{queries:r,display:{name:""},plugin:{kind:"FlameChart",spec:u}}}})}function c(){let{data:{queries:e=[]},setData:r}=(0,l.useExplorerManagerContext)(),t=e.length?e.map(e=>({kind:e.spec.plugin.kind,spec:e.spec.plugin.spec})):[];return(0,n.jsxs)(o.Z,{gap:2,sx:{width:"100%"},children:[(0,n.jsx)(a.MultiQueryEditor,{queryTypes:["ProfileQuery"],onChange:e=>r({queries:e}),queries:e}),(0,n.jsx)(a.DataQueriesProvider,{definitions:t,children:(0,n.jsx)(s.Z,{height:980,children:(0,n.jsx)(p,{queries:e})})})]})}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see __federation_expose_PyroscopeProfileQuery.81b7d9a3.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["6936"],{71426:function(e,a,t){var l=t(54538),r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,a,t){var l,n={},u=null,d=null;for(l in void 0!==t&&(u=""+t),void 0!==a.key&&(u=""+a.key),void 0!==a.ref&&(d=a.ref),a)o.call(a,l)&&!s.hasOwnProperty(l)&&(n[l]=a[l]);if(e&&e.defaultProps)for(l in a=e.defaultProps)void 0===n[l]&&(n[l]=a[l]);return{$$typeof:r,type:e,key:u,ref:d,props:n,_owner:i.current}}a.Fragment=n,a.jsx=u,a.jsxs=u},24246:function(e,a,t){e.exports=t(71426)},27746:function(e,a,t){t.r(a),t.d(a,{PyroscopeProfileQuery:()=>L});var l=t(20461);let r="PyroscopeDatasource",n={kind:r},o=async(e,a)=>{let t=await a.datasourceStore.getDatasourceClient(e.datasource??{kind:r});return function(e){var a;let t={profile:{stackTrace:{}},numTicks:0,maxSelf:0,metadata:{spyName:"",sampleRate:0,units:"",name:""},timeline:{startTime:0,samples:[],durationDelta:0}};if(!e)return t;let l=[],r=1;for(let a=0;a<e.flamebearer.levels.length;a++){let t=0,n=[],o=e.flamebearer.levels[a];if(o){for(let l=0;l<o.length;l+=4){let i={};i.id=r,r+=1;let s=o[l+3];if(void 0!==s){let a=e.flamebearer.names[s];a&&(i.name=a)}i.level=a;let u=o[l+1];void 0!==u&&(i.total=u);let d=o[l+2];void 0!==d&&(i.self=d);let c=o[l];void 0!==c&&(t+=c),i.start=t,void 0!==u&&(t+=u),i.end=t,i.children=[],n.push(i)}l.push(n)}}return function(e){for(let a=1;a<e.length;a++){let t=e[a],l=e[a-1];if(t&&l)for(let e=0;e<t.length;e++){let a=t[e];if(a)for(let e=0;e<l.length;e++){let t=l[e];if(t&&a.start>=t.start&&a.end<=t.end){t.children.push(a);break}}}}}(l),(null==(a=l[0])?void 0:a[0])&&(t.profile.stackTrace=l[0][0]),t.numTicks=e.flamebearer.numTicks,t.maxSelf=e.flamebearer.maxSelf,t.metadata={spyName:e.metadata.spyName,sampleRate:e.metadata.sampleRate,units:e.metadata.units,name:e.metadata.name},t.timeline={startTime:e.timeline.startTime,samples:e.timeline.samples,durationDelta:e.timeline.durationDelta},t}(await t.searchProfiles((()=>{let t={query:(()=>{let a="";if(e.service&&(a=`service_name="${e.service}"`),e.filters&&e.filters.length>0){var t;let l=(t=e.filters,`${t.filter(e=>""!==e.labelName&&""!==e.labelValue).map(e=>`${e.labelName}${e.operator}"${e.labelValue}"`).join(",")}`);""===a?a=l:a+=","+l}return e.profileType+(""===a?"":"{"+a+"}")})(),from:"now-1h"};if(a.absoluteTimeRange){let{start:e,end:r}=function(e){let{start:a,end:t}=e;return{start:Math.ceil((0,l.getUnixTime)(a)),end:Math.ceil((0,l.getUnixTime)(t))}}(a.absoluteTimeRange);t.from=e,t.until=r}return e.maxNodes&&(t.maxNodes=e.maxNodes),t})()))};var i=t(24246),s=t(87570),u=t(64010),d=t(75586),c=t(25283),p=t(90192),m=t(68808),f=t(94776),h=t(8695),x=t(50898),b=t(10517),v=t(91909);function y(e){let{datasource:a,value:t,onChange:l}=e,{data:r,isLoading:n}=function(e){let{data:a}=(0,s.useDatasourceClient)(e);return(0,v.useQuery)({enabled:!!a,queryKey:["searchProfileTypes","datasource",e],queryFn:async()=>await a.searchProfileTypes({},{"content-type":"application/json"},{})})}(a);return(0,i.jsx)(c.Z,{position:"relative",sx:{width:"100%"},children:(0,i.jsx)(h.Z,{select:!0,label:"Profile Type",value:t,size:"small",onChange:e=>null==l?void 0:l(e.target.value),children:n?(0,i.jsx)(c.Z,{width:"100%",sx:{alignItems:"center",justifyContent:"center"},children:(0,i.jsx)(x.Z,{color:"inherit",size:20})}):(null==r?void 0:r.profileTypes)&&(null==r?void 0:r.profileTypes.map(e=>(0,i.jsx)(b.Z,{value:e.ID,children:e.name+"/"+e.sampleType},e.ID)))})})}var g=t(11774);function j(e){let{datasource:a,value:t,onChange:l}=e,{data:r,isLoading:n}=function(e){let{data:a}=(0,s.useDatasourceClient)(e);return(0,v.useQuery)({enabled:!!a,queryKey:["searchServices","datasource",e],queryFn:async()=>await a.searchServices({},{"content-type":"application/json"})})}(a);return(0,i.jsx)(c.Z,{position:"relative",sx:{width:"100%"},children:(0,i.jsx)(g.Z,{options:(null==r?void 0:r.names)??[],value:t,sx:{minWidth:200},loading:n,renderInput:e=>(0,i.jsx)(h.Z,{...e,label:"Service",size:"small"}),onChange:function(e,a){null!==a&&(null==l||l(a))}})})}var w=t(41305),T=t(54538);function N(e){let{datasource:a,value:t,onChange:l}=e,{data:r,isLoading:n}=function(e){let{data:a}=(0,s.useDatasourceClient)(e);return(0,v.useQuery)({enabled:!!a,queryKey:["searchLabelNames","datasource",e],queryFn:async()=>await a.searchLabelNames({},{"content-type":"application/json"},{})})}(a),o=(0,T.useMemo)(()=>(function(e){let a=/^__.*__$/;return e.filter(e=>!a.test(e)&&"service_name"!==e)})((null==r?void 0:r.names)??[]),[r]);return(0,i.jsx)(g.Z,{disableClearable:!0,options:o,value:t,sx:e=>({width:"100%","& .MuiOutlinedInput-root":{borderTopRightRadius:0,borderBottomRightRadius:0,[e.breakpoints.down("sm")]:{borderBottomLeftRadius:0}}}),loading:n,renderInput:e=>(0,i.jsx)(h.Z,{...e,placeholder:"Select label name",size:"small"}),onChange:(e,a)=>{null!==a&&(null==l||l(a))}})}var C=t(63767);function k(e){let{value:a,onChange:t}=e;return(0,i.jsx)(C.Z,{sx:e=>({borderRadius:0,width:"100%",[e.breakpoints.down("sm")]:{borderTopRightRadius:4}}),value:a,size:"small",onChange:e=>null==t?void 0:t(e.target.value),children:["=","!=","=~","!~"].map(e=>(0,i.jsx)(b.Z,{value:e,children:e},e))})}function Z(e){let{datasource:a,value:t,labelName:l,onChange:r}=e,{data:n,isLoading:o}=function(e,a){let{data:t}=(0,s.useDatasourceClient)(e);return(0,v.useQuery)({enabled:!!t,queryKey:["searchLabelValues",a,"datasource",e],queryFn:async()=>await t.searchLabelValues({},{"content-type":"application/json"},{name:a})})}(a,l);return(0,i.jsx)(g.Z,{freeSolo:!0,disableClearable:!0,options:(null==n?void 0:n.names)??[],value:t,sx:e=>({width:"100%","& .MuiOutlinedInput-root":{borderRadius:0,width:"100%",[e.breakpoints.down("sm")]:{borderBottomLeftRadius:4}}}),loading:o,renderInput:e=>(0,i.jsx)(h.Z,{...e,placeholder:"Select label value",size:"small"}),onChange:(e,a)=>{null!==a&&(null==r||r(a))}})}var R=t(10763);function S(e){let{onClick:a}=e;return(0,i.jsx)(u.ToolbarIconButton,{sx:e=>({borderTopLeftRadius:0,borderBottomLeftRadius:0,width:"100%",height:"100%",[e.breakpoints.down("sm")]:{borderTopRightRadius:0}}),"aria-label":"delete filter",onClick:a,children:(0,i.jsx)(R.default,{})})}function _(e){let{datasource:a,value:t,onChange:l,deleteItem:r}=e;return(0,i.jsx)(c.Z,{direction:"row",spacing:0,sx:e=>({flexWrap:"wrap",width:500,[e.breakpoints.down("sm")]:{width:"100%"}}),children:(0,i.jsxs)(w.Z,{container:!0,sx:{width:"100%"},children:[(0,i.jsx)(w.Z,{size:{xs:9.5,md:4.5},children:(0,i.jsx)(N,{datasource:a,value:t.labelName,onChange:e=>{null==l||l({labelName:e,labelValue:"",operator:t.operator})}})}),(0,i.jsx)(w.Z,{size:{xs:2.5,md:1.5},children:(0,i.jsx)(k,{value:t.operator,onChange:e=>{null==l||l({labelName:t.labelName,labelValue:t.labelValue,operator:e})}})}),(0,i.jsx)(w.Z,{size:{xs:10,md:5},children:(0,i.jsx)(Z,{datasource:a,value:t.labelValue,labelName:t.labelName,onChange:e=>{null==l||l({labelName:t.labelName,labelValue:e,operator:t.operator})}})}),(0,i.jsx)(w.Z,{size:{xs:2,md:1},children:(0,i.jsx)(S,{onClick:()=>{null==r||r()}})})]})})}var I=t(33755);function P(e){let{onClick:a}=e;return(0,i.jsx)(u.ToolbarIconButton,{"aria-label":"add filter",onClick:a,children:(0,i.jsx)(I.default,{})})}function D(e){let a=(0,f.Z)(),{datasource:t,value:l,onChange:r}=e;return(0,i.jsxs)(c.Z,{position:"relative",direction:"row",spacing:0,sx:{flexWrap:"wrap",rowGap:1,gap:1,padding:"10px",border:`1px solid ${a.palette.action.disabled}`,borderRadius:`${a.shape.borderRadius}px`,"&:hover":{borderColor:a.palette.text.primary}},children:[(0,i.jsx)(m.Z,{shrink:!0,sx:{position:"absolute",top:"-6px",left:"10px",padding:"0 4px",color:a.palette.text.primary,backgroundColor:a.palette.background.default,zIndex:1},children:"Filters"}),l.map((e,a)=>(0,i.jsx)(_,{datasource:t,value:e,onChange:e=>((e,a)=>{let t=[...l];t[e]=a,null==r||r(t)})(a,e),deleteItem:()=>(e=>{let a=[...l];a.splice(e,1),0===a.length?null==r||r([{labelName:"",labelValue:"",operator:"="}]):null==r||r(a)})(a)},`${e.labelName}:${e.operator}:${e.labelValue}`)),(0,i.jsx)(P,{onClick:()=>{let e=[...l,{labelName:"",labelValue:"",operator:"="}];null==r||r(e)}})]})}let L={getProfileData:o,OptionsEditorComponent:function(e){let{onChange:a,value:t}=e,{datasource:l}=t,o=l??n,x=(0,u.useId)("pyroscope-datasource-label"),{maxNodes:b,handleMaxNodesChange:v,maxNodesHasError:g}=function(e){let{onChange:a,value:t}=e,[l,r]=(0,T.useState)(t.maxNodes?t.maxNodes.toString():""),[n,o]=(0,T.useState)(t.maxNodes);t.maxNodes!==n&&(r(t.maxNodes?t.maxNodes.toString():""),o(t.maxNodes));let i=!(""===l||/^[0-9]+$/.test(l)&&parseInt(l)>0);return{maxNodes:l,handleMaxNodesChange:e=>{r(e),a((0,d.Uy)(t,a=>{a.maxNodes=""===e?void 0:parseInt(e)}))},maxNodesHasError:i}}(e),{profileType:w,handleProfileTypeChange:N}=function(e){let{onChange:a,value:t}=e,[l,r]=(0,T.useState)(t.profileType?t.profileType:""),[n,o]=(0,T.useState)(t.profileType);return t.profileType!==n&&(r(t.profileType),o(t.profileType)),{profileType:l,handleProfileTypeChange:e=>{r(e),a((0,d.Uy)(t,a=>{a.profileType=e}))}}}(e),{service:C,handleServiceChange:k}=function(e){let{onChange:a,value:t}=e,[l,r]=(0,T.useState)(t.service?t.service:""),[n,o]=(0,T.useState)(t.service);return t.service!==n&&(r(t.service||""),o(t.service)),{service:l,handleServiceChange:e=>{r(e),a((0,d.Uy)(t,a=>{a.service=e}))}}}(e),{filters:Z,handleFiltersChange:R}=function(e){let{onChange:a,value:t}=e,[l,r]=(0,T.useState)(t.filters?t.filters:[]);return{filters:l,handleFiltersChange:e=>{r(e),a((0,d.Uy)(t,a=>{a.filters=e}))}}}(e);return(0,i.jsxs)(c.Z,{spacing:2,children:[(0,i.jsxs)(p.Z,{margin:"dense",fullWidth:!1,children:[(0,i.jsx)(m.Z,{id:x,shrink:!0,children:"Pyroscope Datasource"}),(0,i.jsx)(s.DatasourceSelect,{datasourcePluginKind:r,value:o,onChange:e=>{if("object"==typeof e&&"kind"in e&&"name"in e&&e.kind===r)return void a((0,d.Uy)(t,a=>{a.datasource=void 0===e.name?void 0:e}));throw Error("Got unexpected non-Pyroscope datasource selector")},labelId:x,label:"Pyroscope Datasource",notched:!0})]}),(0,i.jsxs)(c.Z,{direction:"row",sx:{[(0,f.Z)().breakpoints.down("sm")]:{flexWrap:"wrap"},gap:2,rowGap:1},children:[(0,i.jsx)(j,{datasource:o,value:C,onChange:k}),(0,i.jsx)(y,{datasource:o,value:w,onChange:N}),(0,i.jsx)(h.Z,{type:"number",size:"small",label:"Max Nodes",value:b,error:g,onChange:e=>v(e.target.value),sx:e=>({width:250,[e.breakpoints.down("sm")]:{width:"100%"}}),slotProps:{htmlInput:{step:1}}})]}),(0,i.jsx)(D,{datasource:o,value:Z,onChange:R})]})},createInitialOptions:()=>({maxNodes:0,datasource:void 0,service:"",profileType:"",filters:[{labelName:"",labelValue:"",operator:"="}]})}}}]);
|