@redvars/peacock 3.3.1 → 3.3.2

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 (88) hide show
  1. package/dist/{IndividualComponent-tDnXrOLV.js → IndividualComponent-Dt5xirYG.js} +2 -2
  2. package/dist/{IndividualComponent-tDnXrOLV.js.map → IndividualComponent-Dt5xirYG.js.map} +1 -1
  3. package/dist/array-D5vjT2Xm.js +14 -0
  4. package/dist/array-D5vjT2Xm.js.map +1 -0
  5. package/dist/{button-trIfcqC7.js → button-ClzS8JLq.js} +3 -3
  6. package/dist/{button-trIfcqC7.js.map → button-ClzS8JLq.js.map} +1 -1
  7. package/dist/{button-group-DA7xoziD.js → button-group-BMS5WvaF.js} +4 -4
  8. package/dist/{button-group-DA7xoziD.js.map → button-group-BMS5WvaF.js.map} +1 -1
  9. package/dist/button-group.js +4 -4
  10. package/dist/button.js +3 -3
  11. package/dist/card.js +104 -0
  12. package/dist/card.js.map +1 -0
  13. package/dist/chart-bar-DbnXQgvS.js +1121 -0
  14. package/dist/chart-bar-DbnXQgvS.js.map +1 -0
  15. package/dist/chart-bar.js +259 -0
  16. package/dist/chart-bar.js.map +1 -0
  17. package/dist/chart-donut.js +4 -2
  18. package/dist/chart-donut.js.map +1 -1
  19. package/dist/chart-doughnut.js +4 -2
  20. package/dist/chart-doughnut.js.map +1 -1
  21. package/dist/chart-pie.js +4 -2
  22. package/dist/chart-pie.js.map +1 -1
  23. package/dist/chart-stacked-bar.js +401 -0
  24. package/dist/chart-stacked-bar.js.map +1 -0
  25. package/dist/{class-map-hJdvjl-W.js → class-map-59YGWLnx.js} +2 -2
  26. package/dist/{class-map-hJdvjl-W.js.map → class-map-59YGWLnx.js.map} +1 -1
  27. package/dist/clock.js +1 -1
  28. package/dist/code-editor.js +3 -3
  29. package/dist/code-highlighter.js +3 -3
  30. package/dist/custom-elements-jsdocs.json +2308 -766
  31. package/dist/custom-elements.json +909 -25
  32. package/dist/index.js +16 -9
  33. package/dist/index.js.map +1 -1
  34. package/dist/number-counter.js +2 -2
  35. package/dist/{observe-theme-change-BISF-Gl5.js → observe-theme-change-pALI5fmV.js} +2 -2
  36. package/dist/{observe-theme-change-BISF-Gl5.js.map → observe-theme-change-pALI5fmV.js.map} +1 -1
  37. package/dist/peacock-loader.js +22 -526
  38. package/dist/peacock-loader.js.map +1 -1
  39. package/dist/pie-Dz0IDiPt.js +537 -0
  40. package/dist/pie-Dz0IDiPt.js.map +1 -0
  41. package/dist/{tree-view-CLolVlU0.js → snackbar-74YCdMPL.js} +1005 -143
  42. package/dist/snackbar-74YCdMPL.js.map +1 -0
  43. package/dist/src/card/card.d.ts +27 -0
  44. package/dist/src/card/index.d.ts +1 -0
  45. package/dist/src/chart-bar/chart-bar.d.ts +53 -0
  46. package/dist/src/chart-bar/chart-stacked-bar.d.ts +78 -0
  47. package/dist/src/chart-bar/index.d.ts +2 -0
  48. package/dist/src/index.d.ts +5 -0
  49. package/dist/src/menu/menu-item/menu-item.d.ts +1 -1
  50. package/dist/src/snackbar/index.d.ts +1 -0
  51. package/dist/src/snackbar/snackbar.d.ts +40 -0
  52. package/dist/src/tabs/tab-group.d.ts +1 -1
  53. package/dist/src/tabs/tab-panel.d.ts +1 -0
  54. package/dist/src/tabs/tab.d.ts +2 -1
  55. package/dist/{style-map-CfNHEkQp.js → style-map-DcB52w-l.js} +2 -2
  56. package/dist/{style-map-CfNHEkQp.js.map → style-map-DcB52w-l.js.map} +1 -1
  57. package/dist/test/card.test.d.ts +1 -0
  58. package/dist/test/chart-bar.test.d.ts +1 -0
  59. package/dist/test/snackbar.test.d.ts +1 -0
  60. package/dist/{transform-DRuHEvar.js → transform-DSwFSqzD.js} +13 -558
  61. package/dist/transform-DSwFSqzD.js.map +1 -0
  62. package/dist/tsconfig.tsbuildinfo +1 -1
  63. package/dist/{unsafe-html-CV6Je6HL.js → unsafe-html-C2r3PyzF.js} +2 -2
  64. package/dist/{unsafe-html-CV6Je6HL.js.map → unsafe-html-C2r3PyzF.js.map} +1 -1
  65. package/package.json +1 -1
  66. package/readme.md +2 -2
  67. package/src/card/card.scss +61 -0
  68. package/src/card/card.ts +38 -0
  69. package/src/card/index.ts +1 -0
  70. package/src/chart-bar/chart-bar.scss +58 -0
  71. package/src/chart-bar/chart-bar.ts +306 -0
  72. package/src/chart-bar/chart-stacked-bar.ts +402 -0
  73. package/src/chart-bar/index.ts +2 -0
  74. package/src/index.ts +5 -0
  75. package/src/menu/menu-item/menu-item.ts +1 -1
  76. package/src/peacock-loader.ts +14 -0
  77. package/src/snackbar/demo/index.html +29 -0
  78. package/src/snackbar/index.ts +1 -0
  79. package/src/snackbar/snackbar.scss +73 -0
  80. package/src/snackbar/snackbar.ts +151 -0
  81. package/src/tabs/tab-group.ts +57 -28
  82. package/src/tabs/tab-panel.scss +3 -3
  83. package/src/tabs/tab-panel.ts +2 -0
  84. package/src/tabs/tab.scss +76 -2
  85. package/src/tabs/tab.ts +28 -6
  86. package/src/tabs/tabs.ts +15 -3
  87. package/dist/transform-DRuHEvar.js.map +0 -1
  88. package/dist/tree-view-CLolVlU0.js.map +0 -1
@@ -0,0 +1,27 @@
1
+ import { LitElement } from 'lit';
2
+ type CardVariant = 'elevated' | 'filled' | 'outlined';
3
+ type CardElevation = 0 | 1 | 2 | 3 | 4 | 5;
4
+ /**
5
+ * @label Card
6
+ * @tag wc-card
7
+ * @rawTag card
8
+ * @summary A Material 3 inspired card surface for grouping related content.
9
+ * @cssprop --card-padding - Inner padding for the card container. Defaults to 1rem.
10
+ * @cssprop --card-shape - Corner radius for the card container. Defaults to a large radius.
11
+ * @cssprop --card-gap - Gap between slotted children.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <wc-card variant="outlined">
16
+ * <h3>Title</h3>
17
+ * <p>Supportive text</p>
18
+ * </wc-card>
19
+ * ```
20
+ */
21
+ export declare class Card extends LitElement {
22
+ static styles: import("lit").CSSResultGroup[];
23
+ variant: CardVariant;
24
+ elevation: CardElevation;
25
+ render(): import("lit-html").TemplateResult<1>;
26
+ }
27
+ export {};
@@ -0,0 +1 @@
1
+ export { Card } from './card.js';
@@ -0,0 +1,53 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ export type ChartBarItem = {
3
+ name: string;
4
+ value: number;
5
+ label?: string;
6
+ color?: string;
7
+ };
8
+ /**
9
+ * @label Chart Bar
10
+ * @tag wc-chart-bar
11
+ * @rawTag chart-bar
12
+ * @summary A vertical bar chart that follows Material Design 3 color and spacing tokens.
13
+ * @tags charts
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <wc-chart-bar width="520" height="320"></wc-chart-bar>
18
+ * <script>
19
+ * document.querySelector('wc-chart-bar').data = [
20
+ * { name: 'apples', label: 'Apples', value: 20 },
21
+ * { name: 'bananas', label: 'Bananas', value: 35 },
22
+ * { name: 'cherries', label: 'Cherries', value: 15 },
23
+ * ];
24
+ * </script>
25
+ * ```
26
+ */
27
+ export declare class ChartBar extends LitElement {
28
+ static styles: import("lit").CSSResultGroup[];
29
+ private svgElement?;
30
+ /** Width of the chart in pixels. */
31
+ width: number;
32
+ /** Height of the chart in pixels. */
33
+ height: number;
34
+ /** Margin around the chart drawing area. */
35
+ margin: number;
36
+ /** Chart data array. Each item should have name, value, and optional label and color. */
37
+ data: ChartBarItem[];
38
+ /** Whether to render value labels above bars. */
39
+ showValues: boolean;
40
+ private _initialized;
41
+ private _debouncedRenderChart;
42
+ firstUpdated(): void;
43
+ updated(changedProperties: PropertyValues): void;
44
+ private _getPaletteScale;
45
+ private _resolveColor;
46
+ private _renderChart;
47
+ render(): import("lit-html").TemplateResult<1>;
48
+ }
49
+ declare global {
50
+ interface HTMLElementTagNameMap {
51
+ 'wc-chart-bar': ChartBar;
52
+ }
53
+ }
@@ -0,0 +1,78 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ export type ChartStackedSegment = {
3
+ name: string;
4
+ value: number;
5
+ label?: string;
6
+ color?: string;
7
+ };
8
+ export type ChartStackedBarItem = {
9
+ name: string;
10
+ label?: string;
11
+ segments: ChartStackedSegment[];
12
+ };
13
+ /**
14
+ * @label Chart Stacked Bar
15
+ * @tag wc-chart-stacked-bar
16
+ * @rawTag chart-stacked-bar
17
+ * @summary A stacked bar chart that groups series by category using Material Design 3 tokens.
18
+ * @tags charts
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <wc-chart-stacked-bar width="560" height="360"></wc-chart-stacked-bar>
23
+ * <script>
24
+ * document.querySelector('wc-chart-stacked-bar').data = [
25
+ * {
26
+ * name: 'q1',
27
+ * label: 'Q1',
28
+ * segments: [
29
+ * { name: 'mobile', label: 'Mobile', value: 40 },
30
+ * { name: 'web', label: 'Web', value: 25 },
31
+ * { name: 'store', label: 'Store', value: 15 },
32
+ * ],
33
+ * },
34
+ * {
35
+ * name: 'q2',
36
+ * label: 'Q2',
37
+ * segments: [
38
+ * { name: 'mobile', label: 'Mobile', value: 32 },
39
+ * { name: 'web', label: 'Web', value: 30 },
40
+ * { name: 'store', label: 'Store', value: 18 },
41
+ * ],
42
+ * },
43
+ * ];
44
+ * </script>
45
+ * ```
46
+ */
47
+ export declare class ChartStackedBar extends LitElement {
48
+ static styles: import("lit").CSSResultGroup[];
49
+ private svgElement?;
50
+ /** Width of the chart in pixels. */
51
+ width: number;
52
+ /** Height of the chart in pixels. */
53
+ height: number;
54
+ /** Margin around the chart drawing area. */
55
+ margin: number;
56
+ /** Chart data array. Each item holds the stacked segments for a category. */
57
+ data: ChartStackedBarItem[];
58
+ /** Whether to render total value labels above each stack. */
59
+ showValues: boolean;
60
+ /** Whether to render the legend. */
61
+ showLegend: boolean;
62
+ private _initialized;
63
+ private _debouncedRenderChart;
64
+ firstUpdated(): void;
65
+ updated(changedProperties: PropertyValues): void;
66
+ private _getSegmentKeys;
67
+ private _getColorScale;
68
+ private _getColorMap;
69
+ private _getSegmentLabel;
70
+ private _getTotals;
71
+ private _renderChart;
72
+ render(): import("lit-html").TemplateResult<1>;
73
+ }
74
+ declare global {
75
+ interface HTMLElementTagNameMap {
76
+ 'wc-chart-stacked-bar': ChartStackedBar;
77
+ }
78
+ }
@@ -0,0 +1,2 @@
1
+ export { ChartBar } from './chart-bar.js';
2
+ export { ChartStackedBar } from './chart-stacked-bar.js';
@@ -21,6 +21,7 @@ export { DatePicker } from './date-picker/index.js';
21
21
  export { TimePicker } from './time-picker/index.js';
22
22
  export { Textarea } from './textarea/index.js';
23
23
  export { Switch } from './switch/index.js';
24
+ export { Checkbox } from './checkbox/index.js';
24
25
  export { Spinner } from './spinner/index.js';
25
26
  export { Container } from './container/index.js';
26
27
  export { NumberCounter } from './number-counter/index.js';
@@ -33,8 +34,12 @@ export { CodeEditor } from './code-editor/index.js';
33
34
  export { Image } from './image/index.js';
34
35
  export { Tab, TabGroup, TabPanel, Tabs } from './tabs/index.js';
35
36
  export { Slider } from './slider/index.js';
37
+ export { ChartDonut } from './chart-donut/index.js';
36
38
  export { ChartDoughnut } from './chart-doughnut/index.js';
37
39
  export { ChartPie } from './chart-pie/index.js';
40
+ export { ChartBar, ChartStackedBar } from './chart-bar/index.js';
38
41
  export { Table } from './table/index.js';
39
42
  export { Pagination } from './pagination/index.js';
40
43
  export { TreeView, TreeNode } from './tree-view/index.js';
44
+ export { Card } from './card/index.js';
45
+ export { Snackbar } from './snackbar/index.js';
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
3
3
  * @label Menu Item
4
4
  * @tag wc-menu-item
5
5
  * @rawTag menu-item
6
- * @parentRawTag menu-list
6
+ * @parentRawTag menu
7
7
  * @summary An item in a menu list.
8
8
  * @tags navigation
9
9
  *
@@ -0,0 +1 @@
1
+ export { Snackbar } from './snackbar.js';
@@ -0,0 +1,40 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Snackbar
4
+ * @tag wc-snackbar
5
+ * @rawTag snackbar
6
+ * @summary Snackbars provide brief messages about app processes at the bottom of the screen.
7
+ *
8
+ * @cssprop --snackbar-container-color - Container color for the snackbar.
9
+ * @cssprop --snackbar-label-text-color - Label text color for the snackbar.
10
+ * @cssprop --snackbar-action-text-color - Action text color.
11
+ * @cssprop --snackbar-close-icon-color - Close icon color.
12
+ * @cssprop --snackbar-border-radius - Border radius of the snackbar surface.
13
+ *
14
+ * @example
15
+ * ```html
16
+ * <wc-snackbar open message="Message archived" action-label="Undo"></wc-snackbar>
17
+ * ```
18
+ * @tags display, feedback
19
+ */
20
+ export declare class Snackbar extends LitElement {
21
+ static styles: import("lit").CSSResultGroup[];
22
+ open: boolean;
23
+ message: string;
24
+ actionLabel: string;
25
+ showCloseIcon: boolean;
26
+ duration: number;
27
+ multiline: boolean;
28
+ private hideTimer;
29
+ show(): void;
30
+ hide(): void;
31
+ private close;
32
+ private dispatchActionEvent;
33
+ private handleActionClick;
34
+ private handleCloseClick;
35
+ private clearTimer;
36
+ private scheduleAutoHide;
37
+ protected updated(changedProperties: Map<string, unknown>): void;
38
+ disconnectedCallback(): void;
39
+ render(): import("lit-html").TemplateResult<1>;
40
+ }
@@ -30,12 +30,12 @@ export declare class TabGroup extends LitElement {
30
30
  static Tabs: typeof Tabs;
31
31
  static TabPanel: typeof TabPanel;
32
32
  variant: 'line' | 'line-secondary' | 'contained' | 'pill';
33
- private uid;
34
33
  connectedCallback(): void;
35
34
  disconnectedCallback(): void;
36
35
  firstUpdated(): void;
37
36
  private onTabClick;
38
37
  selectTab(target: string): void;
38
+ selectTabByIndex(index: number): void;
39
39
  private getTabs;
40
40
  private getTabPanels;
41
41
  private getTabList;
@@ -18,5 +18,6 @@ import { LitElement } from 'lit';
18
18
  export declare class TabPanel extends LitElement {
19
19
  static styles: import("lit").CSSResultGroup[];
20
20
  value?: string;
21
+ active: boolean;
21
22
  render(): import("lit-html").TemplateResult<1>;
22
23
  }
@@ -21,7 +21,6 @@ export declare class Tab extends LitElement {
21
21
  active: boolean;
22
22
  disabled: boolean;
23
23
  disabledReason: string;
24
- icon?: string;
25
24
  label?: string;
26
25
  value?: string;
27
26
  configAria?: {
@@ -38,6 +37,8 @@ export declare class Tab extends LitElement {
38
37
  throttleDelay: number;
39
38
  hasFocus: boolean;
40
39
  slotHasContent: boolean;
40
+ slotHasIcon: boolean;
41
+ slotHasBadge: boolean;
41
42
  /**
42
43
  * States
43
44
  */
@@ -1,4 +1,4 @@
1
- import { E } from './IndividualComponent-tDnXrOLV.js';
1
+ import { E } from './IndividualComponent-Dt5xirYG.js';
2
2
  import { e, i as i$1, t } from './directive-Cuw6h7YA.js';
3
3
 
4
4
  /**
@@ -8,4 +8,4 @@ import { e, i as i$1, t } from './directive-Cuw6h7YA.js';
8
8
  */const n="important",i=" !"+n,o=e(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"style"!==t$1.name||t$1.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e;}}return E}});
9
9
 
10
10
  export { o };
11
- //# sourceMappingURL=style-map-CfNHEkQp.js.map
11
+ //# sourceMappingURL=style-map-DcB52w-l.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"style-map-CfNHEkQp.js","sources":["../node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const n=\"important\",i=\" !\"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||t.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`},\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r=\"string\"==typeof e&&e.endsWith(i);t.includes(\"-\")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:\"\"):s[t]=e}}return t}});export{o as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["r","t","s"],"mappings":";;;AACA;AACA;AACA;AACA;AACA,GAAQ,MAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAcA,GAAC,CAAC,WAAW,CAACC,GAAC,CAAC,CAAC,GAAG,KAAK,CAACA,GAAC,CAAC,CAACA,GAAC,CAAC,IAAI,GAAGC,CAAC,CAAC,SAAS,EAAE,OAAO,GAAGD,GAAC,CAAC,IAAI,EAAEA,GAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,4GAA4G,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,Q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E,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,OAAOA,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"style-map-DcB52w-l.js","sources":["../node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const n=\"important\",i=\" !\"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||t.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`},\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r=\"string\"==typeof e&&e.endsWith(i);t.includes(\"-\")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:\"\"):s[t]=e}}return t}});export{o as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["r","t","s"],"mappings":";;;AACA;AACA;AACA;AACA;AACA,GAAQ,MAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAcA,GAAC,CAAC,WAAW,CAACC,GAAC,CAAC,CAAC,GAAG,KAAK,CAACA,GAAC,CAAC,CAACA,GAAC,CAAC,IAAI,GAAGC,CAAC,CAAC,SAAS,EAAE,OAAO,GAAGD,GAAC,CAAC,IAAI,EAAEA,GAAC,CAAC,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