@emerson-eps/color-tables 1.0.12 → 1.0.14

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.
Files changed (84) hide show
  1. package/dist/component/BreakPoint/Canvas.js +3 -15
  2. package/dist/component/BreakPoint/Canvas.js.map +1 -1
  3. package/dist/component/BreakPoint/ColorScale.js +1 -1
  4. package/dist/component/BreakPoint/ColorScale.js.map +1 -1
  5. package/dist/component/BreakPoint/index.d.ts +1 -1
  6. package/dist/component/BreakPoint/index.js.map +1 -1
  7. package/dist/component/ColorSelector/BreakPointModule.js +13 -6
  8. package/dist/component/ColorSelector/BreakPointModule.js.map +1 -1
  9. package/dist/component/ColorSelector/ColorSelectorAccordion.js +10 -11
  10. package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
  11. package/dist/component/ColorSelector/ColorSelectorComponent.js +4 -5
  12. package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
  13. package/dist/component/ColorSelector/ColorSelectorWrapper.js +13 -13
  14. package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
  15. package/dist/component/ColorSelector/index.d.ts +1 -1
  16. package/dist/component/Legend/ColorLegend.js +7 -9
  17. package/dist/component/Legend/ColorLegend.js.map +1 -1
  18. package/dist/component/Legend/ColorLegend.stories.d.ts +13 -14
  19. package/dist/component/Legend/ColorLegend.stories.js +85 -32
  20. package/dist/component/Legend/ColorLegend.stories.js.map +1 -1
  21. package/dist/component/Legend/ContinuousLegend.js +221 -229
  22. package/dist/component/Legend/ContinuousLegend.js.map +1 -1
  23. package/dist/component/Legend/ContinuousLegend.stories.d.ts +15 -10
  24. package/dist/component/Legend/ContinuousLegend.stories.js +147 -18
  25. package/dist/component/Legend/ContinuousLegend.stories.js.map +1 -1
  26. package/dist/component/Legend/DiscreteLegend.js +129 -133
  27. package/dist/component/Legend/DiscreteLegend.js.map +1 -1
  28. package/dist/component/Legend/DiscreteLegend.stories.d.ts +14 -9
  29. package/dist/component/Legend/DiscreteLegend.stories.js +178 -16
  30. package/dist/component/Legend/DiscreteLegend.stories.js.map +1 -1
  31. package/dist/component/Utils/Utils.stories.d.ts +7 -0
  32. package/dist/component/Utils/Utils.stories.js +41 -0
  33. package/dist/component/Utils/Utils.stories.js.map +1 -0
  34. package/dist/component/Utils/legendCommonFunction.js +40 -48
  35. package/dist/component/Utils/legendCommonFunction.js.map +1 -1
  36. package/package.json +11 -17
  37. package/dist/component/Utils/legendCommonFunction.stories.d.ts +0 -8
  38. package/dist/component/Utils/legendCommonFunction.stories.js +0 -35
  39. package/dist/component/Utils/legendCommonFunction.stories.js.map +0 -1
  40. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +0 -7
  41. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +0 -34
  42. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +0 -1
  43. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +0 -7
  44. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +0 -34
  45. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +0 -1
  46. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +0 -7
  47. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +0 -34
  48. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +0 -1
  49. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +0 -7
  50. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +0 -36
  51. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +0 -1
  52. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +0 -7
  53. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +0 -34
  54. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +0 -1
  55. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +0 -7
  56. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +0 -34
  57. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +0 -1
  58. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +0 -7
  59. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +0 -34
  60. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +0 -1
  61. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +0 -7
  62. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +0 -39
  63. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +0 -1
  64. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +0 -7
  65. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +0 -31
  66. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +0 -1
  67. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +0 -7
  68. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +0 -31
  69. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +0 -1
  70. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +0 -7
  71. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -34
  72. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +0 -1
  73. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +0 -7
  74. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +0 -45
  75. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +0 -1
  76. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +0 -7
  77. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +0 -34
  78. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +0 -1
  79. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +0 -7
  80. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +0 -44
  81. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +0 -1
  82. package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.d.ts +0 -7
  83. package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js +0 -33
  84. package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js.map +0 -1
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
- export default {
5
- component: DiscreteColorLegend,
6
- title: "Legends/DiscreteColorLegend",
7
- };
8
- const discreteData = {
9
- OFFSHORE: [[], 1],
10
- LSF: [[], 2],
11
- USF: [[], 3],
12
- TIDAL: [[], 4],
13
- ONSHORE: [[], 5],
14
- };
15
- const dataObjectName = "Wells / RDE";
16
- const position = { left: 16, top: 10 };
17
- const horizontal = true;
18
- const colorName = "Accent";
19
- const Template = (args) => {
20
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
21
- };
22
- export const RDETemplate = Template.bind({});
23
- RDETemplate.args = {
24
- discreteData,
25
- dataObjectName,
26
- position,
27
- colorName,
28
- colorTables,
29
- horizontal,
30
- legendFontSize: 13,
31
- legendScaleSize: 300,
32
- cssLegendStyles: { top: "0%", left: "0%" },
33
- };
34
- //# sourceMappingURL=RDE.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RDE.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACjB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACjB,CAAC;AACF,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACjB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { DiscreteColorLegend as component };
3
- export let title: string;
4
- }
5
- export default _default;
6
- export const RDEOrigTemplate: any;
7
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
@@ -1,45 +0,0 @@
1
- import React from "react";
2
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
- export default {
5
- component: DiscreteColorLegend,
6
- title: "Legends/DiscreteColorLegend",
7
- };
8
- const discreteData = {
9
- F_OFFSHORE: [[], 0],
10
- F_LOWER_SHOREFACE: [[], 1],
11
- F_UPPER_SHOREFACE: [[], 2],
12
- F_MOUTH_BAR: [[], 3],
13
- F_TIDAL_BAR: [[], 4],
14
- F_TIDAL_CHANNEL: [[], 5],
15
- F_TIDAL_FLAT_SANDY: [[], 6],
16
- F_TIDAL_FLAT_MUDDY: [[], 7],
17
- F_MARSH: [[], 8],
18
- F_CALCITE: [[], 9],
19
- R_OFFSHORE: [[], 10],
20
- R_SHOREFACE: [[], 11],
21
- R_TIDAL: [[], 12],
22
- R_ONSHORE: [[], 13],
23
- R_USF: [[], 14],
24
- R_LSF: [[], 15],
25
- };
26
- const dataObjectName = "Wells / RDE_ORIG";
27
- const position = { left: 16, top: 10 };
28
- const horizontal = true;
29
- const colorName = "Stratigraphy";
30
- const Template = (args) => {
31
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
32
- };
33
- export const RDEOrigTemplate = Template.bind({});
34
- RDEOrigTemplate.args = {
35
- discreteData,
36
- dataObjectName,
37
- position,
38
- colorName,
39
- colorTables,
40
- horizontal,
41
- legendFontSize: 13,
42
- legendScaleSize: 300,
43
- cssLegendStyles: { top: "0%", left: "0%" },
44
- };
45
- //# sourceMappingURL=RDE_Orig.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RDE_Orig.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,C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,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { DiscreteColorLegend as component };
3
- export let title: string;
4
- }
5
- export default _default;
6
- export const ZoneMainTemplate: any;
7
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
- export default {
5
- component: DiscreteColorLegend,
6
- title: "Legends/DiscreteColorLegend",
7
- };
8
- const discreteData = {
9
- 0: [[], 0],
10
- 4: [[], 4],
11
- UPPER: [[], 1],
12
- MID: [[], 2],
13
- LOWER: [[], 3],
14
- };
15
- const dataObjectName = "Wells / ZONE_MAIN";
16
- const position = { left: 16, top: 10 };
17
- const horizontal = true;
18
- const colorName = "Stratigraphy";
19
- const Template = (args) => {
20
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
21
- };
22
- export const ZoneMainTemplate = Template.bind({});
23
- ZoneMainTemplate.args = {
24
- discreteData,
25
- dataObjectName,
26
- position,
27
- colorName,
28
- colorTables,
29
- horizontal,
30
- legendFontSize: 13,
31
- legendScaleSize: 300,
32
- cssLegendStyles: { top: "0%", left: "0%" },
33
- };
34
- //# sourceMappingURL=ZoneMain.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ZoneMain.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACV,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACf,CAAC;AACF,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACtB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { DiscreteColorLegend as component };
3
- export let title: string;
4
- }
5
- export default _default;
6
- export const ZonelogTemplate: any;
7
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
@@ -1,44 +0,0 @@
1
- import React from "react";
2
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
- export default {
5
- component: DiscreteColorLegend,
6
- title: "Legends/DiscreteColorLegend",
7
- };
8
- const discreteData = {
9
- Above_BCU: [[], 0],
10
- ABOVE: [[], 1],
11
- H12: [[], 2],
12
- H11: [[], 3],
13
- H10: [[], 4],
14
- H9: [[], 5],
15
- H8: [[], 6],
16
- H7: [[], 7],
17
- H6: [[], 8],
18
- H5: [[], 9],
19
- H4: [[], 10],
20
- H3: [[], 11],
21
- H2: [[], 12],
22
- H1: [[], 13],
23
- BELOW: [[], 14],
24
- };
25
- const dataObjectName = "Wells / ZONELOG";
26
- const position = { left: 16, top: 10 };
27
- const horizontal = true;
28
- const colorName = "Stratigraphy";
29
- const Template = (args) => {
30
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
31
- };
32
- export const ZonelogTemplate = Template.bind({});
33
- ZonelogTemplate.args = {
34
- discreteData,
35
- dataObjectName,
36
- position,
37
- colorName,
38
- colorTables,
39
- horizontal,
40
- legendFontSize: 13,
41
- legendScaleSize: 300,
42
- cssLegendStyles: { top: "0%", left: "0%" },
43
- };
44
- //# sourceMappingURL=Zonelog.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Zonelog.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAA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4
- }
5
- export default _default;
6
- export const LegendWithColorSelector: any;
7
- import { ColorLegend } from "../../../component/Legend/ColorLegend";
@@ -1,33 +0,0 @@
1
- import React from "react";
2
- import colorTables from "../../../component/color-tables.json";
3
- import { ColorLegend } from "../../../component/Legend/ColorLegend";
4
- export default {
5
- component: ColorLegend,
6
- title: "Legends/LegendWithColorSelector",
7
- };
8
- const Template = (args) => {
9
- const [getColor, setColorName] = React.useState("Rainbow");
10
- const getColorName = React.useCallback((data) => {
11
- // for geological color scale data (from color-table.json) => data.name
12
- // for D3 color scale => data.legendColorName
13
- setColorName((data === null || data === void 0 ? void 0 : data.name) || (data === null || data === void 0 ? void 0 : data.legendColorName));
14
- }, []);
15
- return React.createElement(ColorLegend, Object.assign({}, args, { colorName: getColor, getScale: getColorName }));
16
- };
17
- export const LegendWithColorSelector = Template.bind({});
18
- LegendWithColorSelector.args = {
19
- min: 0,
20
- max: 0.35,
21
- cssLegendStyles: { left: "0vw", top: "0vh" },
22
- horizontal: true,
23
- colorName: "Rainbow",
24
- dataObjectName: "Legend with Selector",
25
- colorTables,
26
- isModal: true,
27
- isRangeShown: true,
28
- legendFontSize: 13,
29
- tickFontSize: 13,
30
- numberOfTicks: 3,
31
- legendScaleSize: 300,
32
- };
33
- //# sourceMappingURL=LegendSelector.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,eAAe;IACb,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,iCAAiC;CACzC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,GAA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