@perses-dev/stat-chart-plugin 0.6.0 → 0.7.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/{435.f40076fc.js → 435.0060dd2f.js} +1 -1
- package/__mf/js/{StatChart.b0400032.js → StatChart.3d66ae68.js} +3 -3
- package/__mf/js/async/{877.0e870142.js → 236.f47b54b8.js} +1 -1
- package/__mf/js/async/331.faa6f9eb.js +2 -0
- package/__mf/js/async/{870.3ed3413d.js.LICENSE.txt → 331.faa6f9eb.js.LICENSE.txt} +1 -39
- package/__mf/js/async/360.e3f25d30.js +29 -0
- package/__mf/js/async/360.e3f25d30.js.LICENSE.txt +37 -0
- package/__mf/js/async/{610.dad41cbd.js → 610.e2fe79a3.js} +1 -1
- package/__mf/js/async/83.0215bc58.js +1 -0
- package/__mf/js/async/{318.98a6e364.js → 90.defedb11.js} +10 -10
- package/__mf/js/async/954.f8bb1788.js +2 -0
- package/__mf/js/async/__federation_expose_StatChart.60147471.js +1 -0
- package/__mf/js/main.0ffda506.js +1 -0
- package/lib/StatChartBase.d.ts +20 -0
- package/lib/StatChartBase.d.ts.map +1 -0
- package/lib/StatChartBase.js +189 -0
- package/lib/StatChartBase.js.map +1 -0
- package/lib/StatChartPanel.d.ts.map +1 -1
- package/lib/StatChartPanel.js +3 -2
- package/lib/StatChartPanel.js.map +1 -1
- package/lib/cjs/StatChartBase.js +202 -0
- package/lib/cjs/StatChartPanel.js +2 -1
- package/lib/cjs/index.js +13 -0
- package/lib/cjs/utils/calculate-font-size.js +55 -0
- package/lib/cjs/utils/format-stat-chart-value.js +34 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/calculate-font-size.d.ts +16 -0
- package/lib/utils/calculate-font-size.d.ts.map +1 -0
- package/lib/utils/calculate-font-size.js +49 -0
- package/lib/utils/calculate-font-size.js.map +1 -0
- package/lib/utils/format-stat-chart-value.d.ts +3 -0
- package/lib/utils/format-stat-chart-value.d.ts.map +1 -0
- package/lib/utils/format-stat-chart-value.js +26 -0
- package/lib/utils/format-stat-chart-value.js.map +1 -0
- package/mf-manifest.json +17 -15
- package/mf-stats.json +17 -15
- package/package.json +1 -1
- package/__mf/js/async/298.0f019169.js +0 -1
- package/__mf/js/async/870.3ed3413d.js +0 -29
- package/__mf/js/async/996.7e490e79.js +0 -2
- package/__mf/js/async/__federation_expose_StatChart.0d43d15e.js +0 -1
- package/__mf/js/main.628b2309.js +0 -1
- /package/__mf/js/async/{318.98a6e364.js.LICENSE.txt → 90.defedb11.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{996.7e490e79.js.LICENSE.txt → 954.f8bb1788.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Copyright 2023 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "useOptimalFontSize", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return useOptimalFontSize;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _components = require("@perses-dev/components");
|
|
24
|
+
let canvasContext;
|
|
25
|
+
function getGlobalCanvasContext() {
|
|
26
|
+
if (!canvasContext) {
|
|
27
|
+
canvasContext = document.createElement('canvas').getContext('2d');
|
|
28
|
+
if (canvasContext === null) {
|
|
29
|
+
throw new Error('Canvas context is null.');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return canvasContext;
|
|
33
|
+
}
|
|
34
|
+
function useOptimalFontSize({ text, fontWeight, width, height, lineHeight, maxSize, fontSizeOverride }) {
|
|
35
|
+
const ctx = getGlobalCanvasContext();
|
|
36
|
+
const { echartsTheme } = (0, _components.useChartsTheme)();
|
|
37
|
+
// if user has selected a font size in the settings, use it instead of calculating the optimal size
|
|
38
|
+
if (fontSizeOverride !== undefined) {
|
|
39
|
+
return Number(fontSizeOverride);
|
|
40
|
+
}
|
|
41
|
+
const textStyle = echartsTheme.textStyle;
|
|
42
|
+
const fontSize = Number(textStyle?.fontSize) ?? 12;
|
|
43
|
+
const fontFamily = textStyle?.fontFamily ?? 'Lato';
|
|
44
|
+
// set the font on the canvas context
|
|
45
|
+
const fontStyle = `${fontWeight} ${fontSize}px ${fontFamily}`;
|
|
46
|
+
ctx.font = fontStyle;
|
|
47
|
+
// measure the width of the text with the given font style
|
|
48
|
+
const textMetrics = ctx.measureText(text);
|
|
49
|
+
// check how much bigger we can make the font while staying within the width and height
|
|
50
|
+
const fontSizeBasedOnWidth = width / textMetrics.width * fontSize;
|
|
51
|
+
const fontSizeBasedOnHeight = height / lineHeight;
|
|
52
|
+
// return the smaller font size
|
|
53
|
+
const finalFontSize = Math.min(fontSizeBasedOnHeight, fontSizeBasedOnWidth);
|
|
54
|
+
return maxSize ? Math.min(finalFontSize, maxSize) : finalFontSize;
|
|
55
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "formatStatChartValue", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return formatStatChartValue;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _core = require("@perses-dev/core");
|
|
24
|
+
const formatStatChartValue = (value, format)=>{
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return 'null';
|
|
27
|
+
} else if (typeof value === 'number') {
|
|
28
|
+
return (0, _core.formatValue)(value, format);
|
|
29
|
+
} else if (value === undefined) {
|
|
30
|
+
return '';
|
|
31
|
+
} else {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
};
|
package/lib/index.d.ts
CHANGED
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
+
// Copyright 2025 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
1
13
|
export { getPluginModule } from './getPluginModule';
|
|
2
14
|
export * from './stat-chart-model';
|
|
3
15
|
export * from './StatChart';
|
|
4
16
|
export * from './StatChartOptionsEditorSettings';
|
|
5
17
|
export * from './StatChartPanel';
|
|
6
18
|
export * from './StatChartValueMappingEditor';
|
|
19
|
+
export * from './StatChartBase';
|
|
7
20
|
|
|
8
21
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport { getPluginModule } from './getPluginModule';\nexport * from './stat-chart-model';\nexport * from './StatChart';\nexport * from './StatChartOptionsEditorSettings';\nexport * from './StatChartPanel';\nexport * from './StatChartValueMappingEditor';\nexport * from './StatChartBase';\n"],"names":["getPluginModule"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,eAAe,QAAQ,oBAAoB;AACpD,cAAc,qBAAqB;AACnC,cAAc,cAAc;AAC5B,cAAc,mCAAmC;AACjD,cAAc,mBAAmB;AACjC,cAAc,gCAAgC;AAC9C,cAAc,kBAAkB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FontSizeOption } from '@perses-dev/components';
|
|
2
|
+
interface CalculateFontSize {
|
|
3
|
+
text: string;
|
|
4
|
+
fontWeight: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
lineHeight: number;
|
|
8
|
+
maxSize?: number;
|
|
9
|
+
fontSizeOverride?: FontSizeOption;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Find the optimal font size given available space
|
|
13
|
+
*/
|
|
14
|
+
export declare function useOptimalFontSize({ text, fontWeight, width, height, lineHeight, maxSize, fontSizeOverride, }: CalculateFontSize): number;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=calculate-font-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculate-font-size.d.ts","sourceRoot":"","sources":["../../../src/utils/calculate-font-size.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAkB,MAAM,wBAAwB,CAAC;AAExE,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,cAAc,CAAC;CACnC;AAcD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,UAAU,EACV,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,GACjB,EAAE,iBAAiB,GAAG,MAAM,CA0B5B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Copyright 2023 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
import { useChartsTheme } from '@perses-dev/components';
|
|
14
|
+
let canvasContext;
|
|
15
|
+
function getGlobalCanvasContext() {
|
|
16
|
+
if (!canvasContext) {
|
|
17
|
+
canvasContext = document.createElement('canvas').getContext('2d');
|
|
18
|
+
if (canvasContext === null) {
|
|
19
|
+
throw new Error('Canvas context is null.');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return canvasContext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Find the optimal font size given available space
|
|
26
|
+
*/ export function useOptimalFontSize({ text, fontWeight, width, height, lineHeight, maxSize, fontSizeOverride }) {
|
|
27
|
+
const ctx = getGlobalCanvasContext();
|
|
28
|
+
const { echartsTheme } = useChartsTheme();
|
|
29
|
+
// if user has selected a font size in the settings, use it instead of calculating the optimal size
|
|
30
|
+
if (fontSizeOverride !== undefined) {
|
|
31
|
+
return Number(fontSizeOverride);
|
|
32
|
+
}
|
|
33
|
+
const textStyle = echartsTheme.textStyle;
|
|
34
|
+
const fontSize = Number(textStyle?.fontSize) ?? 12;
|
|
35
|
+
const fontFamily = textStyle?.fontFamily ?? 'Lato';
|
|
36
|
+
// set the font on the canvas context
|
|
37
|
+
const fontStyle = `${fontWeight} ${fontSize}px ${fontFamily}`;
|
|
38
|
+
ctx.font = fontStyle;
|
|
39
|
+
// measure the width of the text with the given font style
|
|
40
|
+
const textMetrics = ctx.measureText(text);
|
|
41
|
+
// check how much bigger we can make the font while staying within the width and height
|
|
42
|
+
const fontSizeBasedOnWidth = width / textMetrics.width * fontSize;
|
|
43
|
+
const fontSizeBasedOnHeight = height / lineHeight;
|
|
44
|
+
// return the smaller font size
|
|
45
|
+
const finalFontSize = Math.min(fontSizeBasedOnHeight, fontSizeBasedOnWidth);
|
|
46
|
+
return maxSize ? Math.min(finalFontSize, maxSize) : finalFontSize;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=calculate-font-size.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/calculate-font-size.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { FontSizeOption, useChartsTheme } from '@perses-dev/components';\n\ninterface CalculateFontSize {\n text: string;\n fontWeight: number;\n width: number;\n height: number;\n lineHeight: number;\n maxSize?: number;\n fontSizeOverride?: FontSizeOption;\n}\n\nlet canvasContext: CanvasRenderingContext2D | null;\n\nfunction getGlobalCanvasContext(): CanvasRenderingContext2D {\n if (!canvasContext) {\n canvasContext = document.createElement('canvas').getContext('2d');\n if (canvasContext === null) {\n throw new Error('Canvas context is null.');\n }\n }\n return canvasContext;\n}\n\n/**\n * Find the optimal font size given available space\n */\nexport function useOptimalFontSize({\n text,\n fontWeight,\n width,\n height,\n lineHeight,\n maxSize,\n fontSizeOverride,\n}: CalculateFontSize): number {\n const ctx = getGlobalCanvasContext();\n const { echartsTheme } = useChartsTheme();\n\n // if user has selected a font size in the settings, use it instead of calculating the optimal size\n if (fontSizeOverride !== undefined) {\n return Number(fontSizeOverride);\n }\n\n const textStyle = echartsTheme.textStyle;\n const fontSize = Number(textStyle?.fontSize) ?? 12;\n const fontFamily = textStyle?.fontFamily ?? 'Lato';\n\n // set the font on the canvas context\n const fontStyle = `${fontWeight} ${fontSize}px ${fontFamily}`;\n ctx.font = fontStyle;\n // measure the width of the text with the given font style\n const textMetrics: TextMetrics = ctx.measureText(text);\n\n // check how much bigger we can make the font while staying within the width and height\n const fontSizeBasedOnWidth = (width / textMetrics.width) * fontSize;\n const fontSizeBasedOnHeight = height / lineHeight;\n\n // return the smaller font size\n const finalFontSize = Math.min(fontSizeBasedOnHeight, fontSizeBasedOnWidth);\n return maxSize ? Math.min(finalFontSize, maxSize) : finalFontSize;\n}\n"],"names":["useChartsTheme","canvasContext","getGlobalCanvasContext","document","createElement","getContext","Error","useOptimalFontSize","text","fontWeight","width","height","lineHeight","maxSize","fontSizeOverride","ctx","echartsTheme","undefined","Number","textStyle","fontSize","fontFamily","fontStyle","font","textMetrics","measureText","fontSizeBasedOnWidth","fontSizeBasedOnHeight","finalFontSize","Math","min"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAAyBA,cAAc,QAAQ,yBAAyB;AAYxE,IAAIC;AAEJ,SAASC;IACP,IAAI,CAACD,eAAe;QAClBA,gBAAgBE,SAASC,aAAa,CAAC,UAAUC,UAAU,CAAC;QAC5D,IAAIJ,kBAAkB,MAAM;YAC1B,MAAM,IAAIK,MAAM;QAClB;IACF;IACA,OAAOL;AACT;AAEA;;CAEC,GACD,OAAO,SAASM,mBAAmB,EACjCC,IAAI,EACJC,UAAU,EACVC,KAAK,EACLC,MAAM,EACNC,UAAU,EACVC,OAAO,EACPC,gBAAgB,EACE;IAClB,MAAMC,MAAMb;IACZ,MAAM,EAAEc,YAAY,EAAE,GAAGhB;IAEzB,mGAAmG;IACnG,IAAIc,qBAAqBG,WAAW;QAClC,OAAOC,OAAOJ;IAChB;IAEA,MAAMK,YAAYH,aAAaG,SAAS;IACxC,MAAMC,WAAWF,OAAOC,WAAWC,aAAa;IAChD,MAAMC,aAAaF,WAAWE,cAAc;IAE5C,qCAAqC;IACrC,MAAMC,YAAY,GAAGb,WAAW,CAAC,EAAEW,SAAS,GAAG,EAAEC,YAAY;IAC7DN,IAAIQ,IAAI,GAAGD;IACX,0DAA0D;IAC1D,MAAME,cAA2BT,IAAIU,WAAW,CAACjB;IAEjD,uFAAuF;IACvF,MAAMkB,uBAAuB,AAAChB,QAAQc,YAAYd,KAAK,GAAIU;IAC3D,MAAMO,wBAAwBhB,SAASC;IAEvC,+BAA+B;IAC/B,MAAMgB,gBAAgBC,KAAKC,GAAG,CAACH,uBAAuBD;IACtD,OAAOb,UAAUgB,KAAKC,GAAG,CAACF,eAAef,WAAWe;AACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-stat-chart-value.d.ts","sourceRoot":"","sources":["../../../src/utils/format-stat-chart-value.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,SAAS,aAAa,KAAG,MAU7F,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
import { formatValue } from '@perses-dev/core';
|
|
14
|
+
export const formatStatChartValue = (value, format)=>{
|
|
15
|
+
if (value === null) {
|
|
16
|
+
return 'null';
|
|
17
|
+
} else if (typeof value === 'number') {
|
|
18
|
+
return formatValue(value, format);
|
|
19
|
+
} else if (value === undefined) {
|
|
20
|
+
return '';
|
|
21
|
+
} else {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=format-stat-chart-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/format-stat-chart-value.ts"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { FormatOptions, formatValue } from '@perses-dev/core';\n\nexport const formatStatChartValue = (value?: string | number | null, format?: FormatOptions): string => {\n if (value === null) {\n return 'null';\n } else if (typeof value === 'number') {\n return formatValue(value, format);\n } else if (value === undefined) {\n return '';\n } else {\n return value;\n }\n};\n"],"names":["formatValue","formatStatChartValue","value","format","undefined"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAAwBA,WAAW,QAAQ,mBAAmB;AAE9D,OAAO,MAAMC,uBAAuB,CAACC,OAAgCC;IACnE,IAAID,UAAU,MAAM;QAClB,OAAO;IACT,OAAO,IAAI,OAAOA,UAAU,UAAU;QACpC,OAAOF,YAAYE,OAAOC;IAC5B,OAAO,IAAID,UAAUE,WAAW;QAC9B,OAAO;IACT,OAAO;QACL,OAAOF;IACT;AACF,EAAE"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.7.0",
|
|
9
9
|
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatChart.
|
|
12
|
+
"name": "__mf/js/StatChart.3d66ae68.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"__mf/js/async/75.fb6da1e8.js"
|
|
109
109
|
],
|
|
110
110
|
"sync": [
|
|
111
|
-
"__mf/js/async/
|
|
111
|
+
"__mf/js/async/360.e3f25d30.js"
|
|
112
112
|
]
|
|
113
113
|
},
|
|
114
114
|
"css": {
|
|
@@ -134,11 +134,12 @@
|
|
|
134
134
|
"__mf/js/async/740.6ca05ea5.js",
|
|
135
135
|
"__mf/js/async/238.6c65e7fc.js",
|
|
136
136
|
"__mf/js/async/75.fb6da1e8.js",
|
|
137
|
-
"__mf/js/async/
|
|
138
|
-
"__mf/js/async/
|
|
139
|
-
"__mf/js/async/
|
|
137
|
+
"__mf/js/async/954.f8bb1788.js",
|
|
138
|
+
"__mf/js/async/83.0215bc58.js",
|
|
139
|
+
"__mf/js/async/360.e3f25d30.js",
|
|
140
|
+
"__mf/js/async/331.faa6f9eb.js",
|
|
140
141
|
"__mf/js/async/738.5905ca00.js",
|
|
141
|
-
"__mf/js/async/610.
|
|
142
|
+
"__mf/js/async/610.e2fe79a3.js",
|
|
142
143
|
"__mf/js/async/981.0942fcbb.js"
|
|
143
144
|
],
|
|
144
145
|
"sync": [
|
|
@@ -182,7 +183,7 @@
|
|
|
182
183
|
"js": {
|
|
183
184
|
"async": [],
|
|
184
185
|
"sync": [
|
|
185
|
-
"__mf/js/async/610.
|
|
186
|
+
"__mf/js/async/610.e2fe79a3.js"
|
|
186
187
|
]
|
|
187
188
|
},
|
|
188
189
|
"css": {
|
|
@@ -281,9 +282,10 @@
|
|
|
281
282
|
"assets": {
|
|
282
283
|
"js": {
|
|
283
284
|
"sync": [
|
|
284
|
-
"__mf/js/async/
|
|
285
|
-
"__mf/js/async/
|
|
286
|
-
"__mf/js/async/
|
|
285
|
+
"__mf/js/async/954.f8bb1788.js",
|
|
286
|
+
"__mf/js/async/90.defedb11.js",
|
|
287
|
+
"__mf/js/async/331.faa6f9eb.js",
|
|
288
|
+
"__mf/js/async/__federation_expose_StatChart.60147471.js"
|
|
287
289
|
],
|
|
288
290
|
"async": [
|
|
289
291
|
"__mf/js/async/964.f3efac0a.js",
|
|
@@ -292,9 +294,9 @@
|
|
|
292
294
|
"__mf/js/async/238.6c65e7fc.js",
|
|
293
295
|
"__mf/js/async/224.978cad14.js",
|
|
294
296
|
"__mf/js/async/292.4573cfd2.js",
|
|
295
|
-
"__mf/js/async/
|
|
296
|
-
"__mf/js/async/
|
|
297
|
-
"__mf/js/async/
|
|
297
|
+
"__mf/js/async/236.f47b54b8.js",
|
|
298
|
+
"__mf/js/async/83.0215bc58.js",
|
|
299
|
+
"__mf/js/async/360.e3f25d30.js",
|
|
298
300
|
"__mf/js/async/173.b6c742e7.js",
|
|
299
301
|
"__mf/js/async/740.6ca05ea5.js",
|
|
300
302
|
"__mf/js/async/75.fb6da1e8.js",
|
|
@@ -302,7 +304,7 @@
|
|
|
302
304
|
"__mf/js/async/162.6eaaf026.js",
|
|
303
305
|
"__mf/js/async/488.078788e1.js",
|
|
304
306
|
"__mf/js/async/738.5905ca00.js",
|
|
305
|
-
"__mf/js/async/610.
|
|
307
|
+
"__mf/js/async/610.e2fe79a3.js",
|
|
306
308
|
"__mf/js/async/981.0942fcbb.js"
|
|
307
309
|
]
|
|
308
310
|
},
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.7.0",
|
|
9
9
|
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatChart.
|
|
12
|
+
"name": "__mf/js/StatChart.3d66ae68.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"__mf/js/async/75.fb6da1e8.js"
|
|
120
120
|
],
|
|
121
121
|
"sync": [
|
|
122
|
-
"__mf/js/async/
|
|
122
|
+
"__mf/js/async/360.e3f25d30.js"
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
125
|
"css": {
|
|
@@ -150,11 +150,12 @@
|
|
|
150
150
|
"__mf/js/async/740.6ca05ea5.js",
|
|
151
151
|
"__mf/js/async/238.6c65e7fc.js",
|
|
152
152
|
"__mf/js/async/75.fb6da1e8.js",
|
|
153
|
-
"__mf/js/async/
|
|
154
|
-
"__mf/js/async/
|
|
155
|
-
"__mf/js/async/
|
|
153
|
+
"__mf/js/async/954.f8bb1788.js",
|
|
154
|
+
"__mf/js/async/83.0215bc58.js",
|
|
155
|
+
"__mf/js/async/360.e3f25d30.js",
|
|
156
|
+
"__mf/js/async/331.faa6f9eb.js",
|
|
156
157
|
"__mf/js/async/738.5905ca00.js",
|
|
157
|
-
"__mf/js/async/610.
|
|
158
|
+
"__mf/js/async/610.e2fe79a3.js",
|
|
158
159
|
"__mf/js/async/981.0942fcbb.js"
|
|
159
160
|
],
|
|
160
161
|
"sync": [
|
|
@@ -206,7 +207,7 @@
|
|
|
206
207
|
"js": {
|
|
207
208
|
"async": [],
|
|
208
209
|
"sync": [
|
|
209
|
-
"__mf/js/async/610.
|
|
210
|
+
"__mf/js/async/610.e2fe79a3.js"
|
|
210
211
|
]
|
|
211
212
|
},
|
|
212
213
|
"css": {
|
|
@@ -327,9 +328,10 @@
|
|
|
327
328
|
"assets": {
|
|
328
329
|
"js": {
|
|
329
330
|
"sync": [
|
|
330
|
-
"__mf/js/async/
|
|
331
|
-
"__mf/js/async/
|
|
332
|
-
"__mf/js/async/
|
|
331
|
+
"__mf/js/async/954.f8bb1788.js",
|
|
332
|
+
"__mf/js/async/90.defedb11.js",
|
|
333
|
+
"__mf/js/async/331.faa6f9eb.js",
|
|
334
|
+
"__mf/js/async/__federation_expose_StatChart.60147471.js"
|
|
333
335
|
],
|
|
334
336
|
"async": [
|
|
335
337
|
"__mf/js/async/964.f3efac0a.js",
|
|
@@ -338,9 +340,9 @@
|
|
|
338
340
|
"__mf/js/async/238.6c65e7fc.js",
|
|
339
341
|
"__mf/js/async/224.978cad14.js",
|
|
340
342
|
"__mf/js/async/292.4573cfd2.js",
|
|
341
|
-
"__mf/js/async/
|
|
342
|
-
"__mf/js/async/
|
|
343
|
-
"__mf/js/async/
|
|
343
|
+
"__mf/js/async/236.f47b54b8.js",
|
|
344
|
+
"__mf/js/async/83.0215bc58.js",
|
|
345
|
+
"__mf/js/async/360.e3f25d30.js",
|
|
344
346
|
"__mf/js/async/173.b6c742e7.js",
|
|
345
347
|
"__mf/js/async/740.6ca05ea5.js",
|
|
346
348
|
"__mf/js/async/75.fb6da1e8.js",
|
|
@@ -348,7 +350,7 @@
|
|
|
348
350
|
"__mf/js/async/162.6eaaf026.js",
|
|
349
351
|
"__mf/js/async/488.078788e1.js",
|
|
350
352
|
"__mf/js/async/738.5905ca00.js",
|
|
351
|
-
"__mf/js/async/610.
|
|
353
|
+
"__mf/js/async/610.e2fe79a3.js",
|
|
352
354
|
"__mf/js/async/981.0942fcbb.js"
|
|
353
355
|
]
|
|
354
356
|
},
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkStatChart=self.webpackChunkStatChart||[]).push([["298"],{96586:function(t,n,r){var o=r(57753),e=r(82452),i=r(22115),u=r(38256),c=r(67426);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var o=t[n];this.set(o[0],o[1])}}f.prototype.clear=o,f.prototype.delete=e,f.prototype.get=i,f.prototype.has=u,f.prototype.set=c,t.exports=f},36301:function(t,n,r){var o=r(63663),e=r(72470),i=r(66165),u=r(71873),c=r(52556);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var o=t[n];this.set(o[0],o[1])}}f.prototype.clear=o,f.prototype.delete=e,f.prototype.get=i,f.prototype.has=u,f.prototype.set=c,t.exports=f},44538:function(t,n,r){var o=r(81822)(r(77400),"Map");t.exports=o},74554:function(t,n,r){var o=r(39448),e=r(7738),i=r(66575),u=r(7238),c=r(38738);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var o=t[n];this.set(o[0],o[1])}}f.prototype.clear=o,f.prototype.delete=e,f.prototype.get=i,f.prototype.has=u,f.prototype.set=c,t.exports=f},23694:function(t,n,r){var o=r(36301),e=r(7354),i=r(5863),u=r(12367),c=r(90748),f=r(97569);function a(t){var n=this.__data__=new o(t);this.size=n.size}a.prototype.clear=e,a.prototype.delete=i,a.prototype.get=u,a.prototype.has=c,a.prototype.set=f,t.exports=a},96539:function(t,n,r){var o=r(77400).Symbol;t.exports=o},59942:function(t,n,r){var o=r(77400).Uint8Array;t.exports=o},79349:function(t){t.exports=function(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}},98213:function(t,n,r){var o=r(24701),e=r(2900),i=r(19785),u=r(43854),c=r(42383),f=r(48519),a=Object.prototype.hasOwnProperty;t.exports=function(t,n){var r=i(t),s=!r&&e(t),p=!r&&!s&&u(t),v=!r&&!s&&!p&&f(t),l=r||s||p||v,h=l?o(t.length,String):[],y=h.length;for(var _ in t)(n||a.call(t,_))&&!(l&&("length"==_||p&&("offset"==_||"parent"==_)||v&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||c(_,y)))&&h.push(_);return h}},73140:function(t,n,r){var o=r(88799),e=r(85638);t.exports=function(t,n,r){(void 0===r||e(t[n],r))&&(void 0!==r||n in t)||o(t,n,r)}},71928:function(t,n,r){var o=r(88799),e=r(85638),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,r){var u=t[n];i.call(t,n)&&e(u,r)&&(void 0!==r||n in t)||o(t,n,r)}},93382:function(t,n,r){var o=r(85638);t.exports=function(t,n){for(var r=t.length;r--;)if(o(t[r][0],n))return r;return -1}},88799:function(t,n,r){var o=r(42630);t.exports=function(t,n,r){"__proto__"==n&&o?o(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}},80158:function(t,n,r){var o=r(11611),e=Object.create,i=function(){function t(){}return function(n){if(!o(n))return{};if(e)return e(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();t.exports=i},49819:function(t,n,r){var o=r(18911)();t.exports=o},99736:function(t,n,r){var o=r(96539),e=r(34840),i=r(21258),u=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?e(t):i(t)}},55829:function(t,n,r){var o=r(99736),e=r(92360);t.exports=function(t){return e(t)&&"[object Arguments]"==o(t)}},46729:function(t,n,r){var o=r(28338),e=r(99678),i=r(11611),u=r(76532),c=/^\[object .+?Constructor\]$/,f=Object.prototype,a=Function.prototype.toString,s=f.hasOwnProperty,p=RegExp("^"+a.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||e(t))&&(o(t)?p:c).test(u(t))}},26972:function(t,n,r){var o=r(99736),e=r(84194),i=r(92360),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&e(t.length)&&!!u[o(t)]}},59464:function(t,n,r){var o=r(11611),e=r(56016),i=r(21586),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return i(t);var n=e(t),r=[];for(var c in t)"constructor"==c&&(n||!u.call(t,c))||r.push(c);return r}},40015:function(t,n,r){var o=r(23694),e=r(73140),i=r(49819),u=r(68867),c=r(11611),f=r(53893),a=r(97494);t.exports=function t(n,r,s,p,v){n!==r&&i(r,function(i,f){if(v||(v=new o),c(i))u(n,r,f,s,t,p,v);else{var l=p?p(a(n,f),i,f+"",n,r,v):void 0;void 0===l&&(l=i),e(n,f,l)}},f)}},68867:function(t,n,r){var o=r(73140),e=r(2734),i=r(63428),u=r(37561),c=r(97635),f=r(2900),a=r(19785),s=r(36468),p=r(43854),v=r(28338),l=r(11611),h=r(40861),y=r(48519),_=r(97494),x=r(89328);t.exports=function(t,n,r,b,d,j,g){var O=_(t,r),w=_(n,r),A=g.get(w);if(A){o(t,r,A);return}var m=j?j(O,w,r+"",t,n,g):void 0,z=void 0===m;if(z){var S=a(w),P=!S&&p(w),F=!S&&!P&&y(w);m=w,S||P||F?a(O)?m=O:s(O)?m=u(O):P?(z=!1,m=e(w,!0)):F?(z=!1,m=i(w,!0)):m=[]:h(w)||f(w)?(m=O,f(O)?m=x(O):(!l(O)||v(O))&&(m=c(w))):z=!1}z&&(g.set(w,m),d(m,w,b,j,g),g.delete(w)),o(t,r,m)}},1197:function(t,n,r){var o=r(31137),e=r(11871),i=r(63132);t.exports=function(t,n){return i(e(t,n,o),t+"")}},54459:function(t,n,r){var o=r(551),e=r(42630),i=r(31137),u=e?function(t,n){return e(t,"toString",{configurable:!0,enumerable:!1,value:o(n),writable:!0})}:i;t.exports=u},24701:function(t){t.exports=function(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}},39334:function(t){t.exports=function(t){return function(n){return t(n)}}},95825:function(t,n,r){var o=r(59942);t.exports=function(t){var n=new t.constructor(t.byteLength);return new o(n).set(new o(t)),n}},2734:function(t,n,r){t=r.nmd(t);var o=r(77400),e=n&&!n.nodeType&&n,i=e&&t&&!t.nodeType&&t,u=i&&i.exports===e?o.Buffer:void 0,c=u?u.allocUnsafe:void 0;t.exports=function(t,n){if(n)return t.slice();var r=t.length,o=c?c(r):new t.constructor(r);return t.copy(o),o}},63428:function(t,n,r){var o=r(95825);t.exports=function(t,n){var r=n?o(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},37561:function(t){t.exports=function(t,n){var r=-1,o=t.length;for(n||(n=Array(o));++r<o;)n[r]=t[r];return n}},35159:function(t,n,r){var o=r(71928),e=r(88799);t.exports=function(t,n,r,i){var u=!r;r||(r={});for(var c=-1,f=n.length;++c<f;){var a=n[c],s=i?i(r[a],t[a],a,r,t):void 0;void 0===s&&(s=t[a]),u?e(r,a,s):o(r,a,s)}return r}},64937:function(t,n,r){var o=r(77400)["__core-js_shared__"];t.exports=o},7270:function(t,n,r){var o=r(1197),e=r(57535);t.exports=function(t){return o(function(n,r){var o=-1,i=r.length,u=i>1?r[i-1]:void 0,c=i>2?r[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,c&&e(r[0],r[1],c)&&(u=i<3?void 0:u,i=1),n=Object(n);++o<i;){var f=r[o];f&&t(n,f,o,u)}return n})}},18911:function(t){t.exports=function(t){return function(n,r,o){for(var e=-1,i=Object(n),u=o(n),c=u.length;c--;){var f=u[t?c:++e];if(!1===r(i[f],f,i))break}return n}}},42630:function(t,n,r){var o=r(81822),e=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=e},39120:function(t,n,r){var o="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=o},95899:function(t,n,r){var o=r(54479);t.exports=function(t,n){var r=t.__data__;return o(n)?r["string"==typeof n?"string":"hash"]:r.map}},81822:function(t,n,r){var o=r(46729),e=r(15371);t.exports=function(t,n){var r=e(t,n);return o(r)?r:void 0}},2173:function(t,n,r){var o=r(58023)(Object.getPrototypeOf,Object);t.exports=o},34840:function(t,n,r){var o=r(96539),e=Object.prototype,i=e.hasOwnProperty,u=e.toString,c=o?o.toStringTag:void 0;t.exports=function(t){var n=i.call(t,c),r=t[c];try{t[c]=void 0;var o=!0}catch(t){}var e=u.call(t);return o&&(n?t[c]=r:delete t[c]),e}},15371:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},57753:function(t,n,r){var o=r(35718);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},82452:function(t){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=+!!n,n}},22115:function(t,n,r){var o=r(35718),e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(o){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return e.call(n,t)?n[t]:void 0}},38256:function(t,n,r){var o=r(35718),e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return o?void 0!==n[t]:e.call(n,t)}},67426:function(t,n,r){var o=r(35718);t.exports=function(t,n){var r=this.__data__;return this.size+=+!this.has(t),r[t]=o&&void 0===n?"__lodash_hash_undefined__":n,this}},97635:function(t,n,r){var o=r(80158),e=r(2173),i=r(56016);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:o(e(t))}},42383:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var o=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==o||"symbol"!=o&&n.test(t))&&t>-1&&t%1==0&&t<r}},57535:function(t,n,r){var o=r(85638),e=r(80068),i=r(42383),u=r(11611);t.exports=function(t,n,r){if(!u(r))return!1;var c=typeof n;return("number"==c?!!(e(r)&&i(n,r.length)):"string"==c&&n in r)&&o(r[n],t)}},54479:function(t){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},99678:function(t,n,r){var o,e=r(64937),i=(o=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!i&&i in t}},56016:function(t){var n=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||n)}},63663:function(t){t.exports=function(){this.__data__=[],this.size=0}},72470:function(t,n,r){var o=r(93382),e=Array.prototype.splice;t.exports=function(t){var n=this.__data__,r=o(n,t);return!(r<0)&&(r==n.length-1?n.pop():e.call(n,r,1),--this.size,!0)}},66165:function(t,n,r){var o=r(93382);t.exports=function(t){var n=this.__data__,r=o(n,t);return r<0?void 0:n[r][1]}},71873:function(t,n,r){var o=r(93382);t.exports=function(t){return o(this.__data__,t)>-1}},52556:function(t,n,r){var o=r(93382);t.exports=function(t,n){var r=this.__data__,e=o(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this}},39448:function(t,n,r){var o=r(96586),e=r(36301),i=r(44538);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||e),string:new o}}},7738:function(t,n,r){var o=r(95899);t.exports=function(t){var n=o(this,t).delete(t);return this.size-=+!!n,n}},66575:function(t,n,r){var o=r(95899);t.exports=function(t){return o(this,t).get(t)}},7238:function(t,n,r){var o=r(95899);t.exports=function(t){return o(this,t).has(t)}},38738:function(t,n,r){var o=r(95899);t.exports=function(t,n){var r=o(this,t),e=r.size;return r.set(t,n),this.size+=+(r.size!=e),this}},35718:function(t,n,r){var o=r(81822)(Object,"create");t.exports=o},21586:function(t){t.exports=function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}},18125:function(t,n,r){t=r.nmd(t);var o=r(39120),e=n&&!n.nodeType&&n,i=e&&t&&!t.nodeType&&t,u=i&&i.exports===e&&o.process,c=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c},21258:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},58023:function(t){t.exports=function(t,n){return function(r){return t(n(r))}}},11871:function(t,n,r){var o=r(79349),e=Math.max;t.exports=function(t,n,r){return n=e(void 0===n?t.length-1:n,0),function(){for(var i=arguments,u=-1,c=e(i.length-n,0),f=Array(c);++u<c;)f[u]=i[n+u];u=-1;for(var a=Array(n+1);++u<n;)a[u]=i[u];return a[n]=r(f),o(t,this,a)}}},77400:function(t,n,r){var o=r(39120),e="object"==typeof self&&self&&self.Object===Object&&self,i=o||e||Function("return this")();t.exports=i},97494:function(t){t.exports=function(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}},63132:function(t,n,r){var o=r(54459),e=r(49591)(o);t.exports=e},49591:function(t){var n=Date.now;t.exports=function(t){var r=0,o=0;return function(){var e=n(),i=16-(e-o);if(o=e,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7354:function(t,n,r){var o=r(36301);t.exports=function(){this.__data__=new o,this.size=0}},5863:function(t){t.exports=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}},12367:function(t){t.exports=function(t){return this.__data__.get(t)}},90748:function(t){t.exports=function(t){return this.__data__.has(t)}},97569:function(t,n,r){var o=r(36301),e=r(44538),i=r(74554);t.exports=function(t,n){var r=this.__data__;if(r instanceof o){var u=r.__data__;if(!e||u.length<199)return u.push([t,n]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,n),this.size=r.size,this}},76532:function(t){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},551:function(t){t.exports=function(t){return function(){return t}}},85638:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},31137:function(t){t.exports=function(t){return t}},2900:function(t,n,r){var o=r(55829),e=r(92360),i=Object.prototype,u=i.hasOwnProperty,c=i.propertyIsEnumerable,f=o(function(){return arguments}())?o:function(t){return e(t)&&u.call(t,"callee")&&!c.call(t,"callee")};t.exports=f},19785:function(t){var n=Array.isArray;t.exports=n},80068:function(t,n,r){var o=r(28338),e=r(84194);t.exports=function(t){return null!=t&&e(t.length)&&!o(t)}},36468:function(t,n,r){var o=r(80068),e=r(92360);t.exports=function(t){return e(t)&&o(t)}},43854:function(t,n,r){t=r.nmd(t);var o=r(77400),e=r(57714),i=n&&!n.nodeType&&n,u=i&&t&&!t.nodeType&&t,c=u&&u.exports===i?o.Buffer:void 0,f=c?c.isBuffer:void 0;t.exports=f||e},28338:function(t,n,r){var o=r(99736),e=r(11611);t.exports=function(t){if(!e(t))return!1;var n=o(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},84194:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},11611:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},92360:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},40861:function(t,n,r){var o=r(99736),e=r(2173),i=r(92360),u=Object.prototype,c=Function.prototype.toString,f=u.hasOwnProperty,a=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=o(t))return!1;var n=e(t);if(null===n)return!0;var r=f.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==a}},48519:function(t,n,r){var o=r(26972),e=r(39334),i=r(18125),u=i&&i.isTypedArray,c=u?e(u):o;t.exports=c},53893:function(t,n,r){var o=r(98213),e=r(59464),i=r(80068);t.exports=function(t){return i(t)?o(t,!0):e(t)}},15409:function(t,n,r){var o=r(40015),e=r(7270)(function(t,n,r){o(t,n,r)});t.exports=e},57714:function(t){t.exports=function(){return!1}},89328:function(t,n,r){var o=r(35159),e=r(53893);t.exports=function(t){return o(t,e(t))}}}]);
|