@sixb/app 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/components/sandbox-recovery.d.ts +8 -2
- package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts +5 -5
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/hooks/thread-queries.d.ts +8 -8
- package/dist/agent/hooks/thread-queries.d.ts.map +1 -1
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +5 -0
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +10 -0
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/renderers/live-frame.d.ts.map +1 -1
- package/dist/{chunk-ezntd3yy.js → chunk-1f4h75n3.js} +1 -1
- package/dist/{chunk-qjw5r2vk.js → chunk-7v9622qb.js} +25 -11
- package/dist/{chunk-qjw5r2vk.js.map → chunk-7v9622qb.js.map} +6 -6
- package/dist/{chunk-096d52h2.js → chunk-dntecmwb.js} +1 -1
- package/dist/{chunk-94d7enwc.js → chunk-qmka6aea.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/pages/console/data/accounts.d.ts.map +1 -1
- package/dist/pages/console/data/connectors.d.ts.map +1 -1
- package/dist/pages/console/data/datasets.d.ts.map +1 -1
- package/dist/pages/console/data/pipelines.d.ts.map +1 -1
- package/dist/pages/console/data/projections.d.ts.map +1 -1
- package/dist/pages/console/data/syncs.d.ts.map +1 -1
- package/dist/pages/console/ontology/actions.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
- package/dist/pages/console/ontology/rules.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
- package/dist/pages/folders.d.ts +106 -0
- package/dist/pages/folders.d.ts.map +1 -0
- package/dist/pages.js +5234 -4904
- package/dist/pages.js.map +15 -14
- package/package.json +3 -3
- package/src/agent/components/sandbox-recovery.tsx +24 -6
- package/src/agent/hooks/use-agent-conversation.ts +7 -0
- package/src/agent/i18n/en.ts +6 -0
- package/src/agent/i18n/fr.ts +6 -0
- package/src/pages/console/data/connectors.tsx +60 -49
- package/src/pages/console/data/datasets.tsx +79 -68
- package/src/pages/console/data/pipelines.tsx +80 -69
- package/src/pages/console/data/projections.tsx +111 -82
- package/src/pages/console/data/syncs.tsx +62 -52
- package/src/pages/console/ontology/actions.tsx +51 -24
- package/src/pages/console/ontology/object-type.tsx +5 -1
- package/src/pages/console/ontology/object-types.tsx +41 -32
- package/src/pages/console/ontology/rules.tsx +48 -38
- package/src/pages/console/ontology/workflow.tsx +9 -3
- package/src/pages/console/ontology/workflows.tsx +55 -67
- package/src/pages/folders.tsx +335 -0
- /package/dist/{chunk-ezntd3yy.js.map → chunk-1f4h75n3.js.map} +0 -0
- /package/dist/{chunk-096d52h2.js.map → chunk-dntecmwb.js.map} +0 -0
- /package/dist/{chunk-94d7enwc.js.map → chunk-qmka6aea.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/accounts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAmCpF,KAAK,gBAAgB,GAAG,6BAA6B,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AACzE,KAAK,UAAU,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;AACxD,KAAK,IAAI,GAAG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AC;iBAA2B,CAAC;;;;;uBAAuR,CAAC;;;0BAAiJ,CAAC;wBAAkC,CAAC;yBAAiC,CAAC;;;;WA3bjxrW;AAuDD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CAAE,+BAS/D;AAED,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CAAE,sCAa7D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS;;;;;;YA8BpE;AAED,4FAA4F;AAC5F,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;IAC/C,kEAAkE;IAClE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,+BAqCA;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,gDAAgD;IAChD,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;CAChC,+BA4EA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/connectors.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/connectors.tsx"],"names":[],"mappings":"AAqCA,kEAAkE;AAClE,wBAAgB,qBAAqB,gCAkEpC;AAED,uEAAuE;AACvE,wBAAgB,oBAAoB,gCAuOnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/datasets.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,eAAe,EAyBrB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/datasets.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,eAAe,EAyBrB,MAAM,qBAAqB,CAAA;AAgC5B,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAElC,0DAA0D;AAC1D,wBAAgB,mBAAmB,gCAyFlC;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,gCAIjC;AA4bD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,EAC5C,IAAI,CAAC,EAAE;IACL,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CACxD,GACA,MAAM,EAAE,CAKV;AAED,oGAAoG;AACpG,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,EACzD,WAAW,EAAE,MAAM,GAClB,eAAe,CAAC,GAAG,CAAC,EAAE,CAgBxB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAK,EACL,WAAW,GACZ,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,wDAAwD;IACxD,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CACpC,+BAmBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/pipelines.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/pipelines.tsx"],"names":[],"mappings":"AA+DA,qFAAqF;AACrF,wBAAgB,oBAAoB,gCAwFnC;AAMD;;;;GAIG;AACH,wBAAgB,mBAAmB,gCAIlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/projections.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAA2B,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/projections.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAA2B,MAAM,cAAc,CAAA;AA4CvF,KAAK,aAAa,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AA4B/D,mGAAmG;AACnG,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,EAC9C,WAAW,EAAE,MAAM,EACnB,GAAG,SAAa,GACf,MAAM,GAAG,KAAK,CAGhB;AAED,+EAA+E;AAC/E,wBAAgB,sBAAsB,gCAkDrC;AA4ED,6EAA6E;AAC7E,wBAAgB,qBAAqB,gCA0NpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/syncs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/syncs.tsx"],"names":[],"mappings":"AA0CA,iGAAiG;AACjG,wBAAgB,gBAAgB,gCAqE/B;AAED,+DAA+D;AAC/D,wBAAgB,eAAe,gCAqR9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/actions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/actions.tsx"],"names":[],"mappings":"AAwFA;;;GAGG;AACH,wBAAgB,kBAAkB,gCAwDjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-type.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-type.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"object-type.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-type.tsx"],"names":[],"mappings":"AAyCA,qFAAqF;AACrF,wBAAgB,qBAAqB,gCAidpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-types.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"object-types.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAgB3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErD,KAAK,iBAAiB,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAA;AAMxD,uFAAuF;AACvF,wBAAgB,sBAAsB,gCA4ErC;AAwKD,wBAAgB,WAAW,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CA4B3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/rules.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/rules.tsx"],"names":[],"mappings":"AAgMA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAA;AAE9B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;CACf,GAAG,OAAO,CAAC,gBAAgB,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,IAAI,CAOtD;AAkfD,yFAAyF;AACzF,wBAAgB,gBAAgB,gCA0G/B;AAED,oFAAoF;AACpF,wBAAgB,eAAe,gCA+H9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflow.tsx"],"names":[],"mappings":"AAmGA;;;GAGG;AACH,wBAAgB,mBAAmB,gCAgPlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflows.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflows.tsx"],"names":[],"mappings":"AAeA,sFAAsF;AACtF,wBAAgB,oBAAoB,gCAgGnC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browsing a list of definitions by the folders they sit in: `datasets/raw/erp/orders.ts` puts
|
|
3
|
+
* `orders` in the folder `raw/erp`. A list page shows its top level with a tile for each folder,
|
|
4
|
+
* and opening one becomes the page itself, titled by the folder with a way back up, the way a
|
|
5
|
+
* detail page is. Searching looks through every folder at once and groups what it finds by
|
|
6
|
+
* folder. A project without folders sees its lists exactly as before.
|
|
7
|
+
*
|
|
8
|
+
* The open folder lives in the URL (`?folder=raw/erp`), so the browser's back button, reloads and
|
|
9
|
+
* shared links all keep it.
|
|
10
|
+
*/
|
|
11
|
+
import { type Translation } from "@sixb/ui/lib/i18n";
|
|
12
|
+
import { type ReactNode } from "react";
|
|
13
|
+
export declare const en: {
|
|
14
|
+
items: (count: number) => string;
|
|
15
|
+
};
|
|
16
|
+
export declare const fr: Translation<typeof en>;
|
|
17
|
+
/** A definition as the API lists it: in a folder below its directory, or at its top. */
|
|
18
|
+
export interface Foldered {
|
|
19
|
+
readonly folder?: string;
|
|
20
|
+
}
|
|
21
|
+
/** One empty list for every page to start from while its query loads, so memos hold. */
|
|
22
|
+
export declare const noItems: readonly never[];
|
|
23
|
+
export interface FolderTile {
|
|
24
|
+
/** The folder's own name, such as `erp`. */
|
|
25
|
+
readonly name: string;
|
|
26
|
+
/** Its full path, such as `raw/erp`. */
|
|
27
|
+
readonly path: string;
|
|
28
|
+
/** Everything inside it, in subfolders too. */
|
|
29
|
+
readonly count: number;
|
|
30
|
+
readonly href: string;
|
|
31
|
+
}
|
|
32
|
+
export interface FolderGroup<TItem> {
|
|
33
|
+
/** Undefined for the items at the top. */
|
|
34
|
+
readonly folder: string | undefined;
|
|
35
|
+
readonly items: readonly TItem[];
|
|
36
|
+
}
|
|
37
|
+
export interface FolderBrowser<TItem> {
|
|
38
|
+
/** The open folder's subfolders, by name. */
|
|
39
|
+
readonly folders: readonly FolderTile[];
|
|
40
|
+
/** The items directly in the open folder. */
|
|
41
|
+
readonly items: readonly TItem[];
|
|
42
|
+
/** While the list is narrowed, every match grouped by folder, the top first. */
|
|
43
|
+
readonly groups: readonly FolderGroup<TItem>[] | undefined;
|
|
44
|
+
/** What the page's header shows: the list's own at the top, the folder's inside one. */
|
|
45
|
+
readonly frame: {
|
|
46
|
+
readonly title: string;
|
|
47
|
+
readonly description?: string;
|
|
48
|
+
readonly back?: {
|
|
49
|
+
readonly href: string;
|
|
50
|
+
readonly label: string;
|
|
51
|
+
};
|
|
52
|
+
readonly meta?: ReactNode;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Arrange `items` by folder for the page at the current URL. Pass every item while nothing narrows
|
|
57
|
+
* the list, and only the matches with `narrowed` while a search or filter does: folders then give
|
|
58
|
+
* way to the matches from all of them, grouped by folder.
|
|
59
|
+
*/
|
|
60
|
+
export declare function useFolderBrowser<TItem extends Foldered>({ items, title, description, meta, narrowed, }: {
|
|
61
|
+
readonly items: readonly TItem[];
|
|
62
|
+
/** The list's own title and description, shown at the top. */
|
|
63
|
+
readonly title: string;
|
|
64
|
+
readonly description?: string;
|
|
65
|
+
readonly meta?: ReactNode;
|
|
66
|
+
readonly narrowed?: boolean;
|
|
67
|
+
}): FolderBrowser<TItem>;
|
|
68
|
+
/** What a list holds at one folder, before it becomes links and a page header. */
|
|
69
|
+
export interface FolderArrangement<TItem> {
|
|
70
|
+
/** The open folder, or `undefined` at the top. */
|
|
71
|
+
readonly folder: string | undefined;
|
|
72
|
+
readonly folders: readonly Omit<FolderTile, "href">[];
|
|
73
|
+
readonly items: readonly TItem[];
|
|
74
|
+
readonly groups: readonly FolderGroup<TItem>[] | undefined;
|
|
75
|
+
/** Everything in the open folder, in its subfolders too. */
|
|
76
|
+
readonly total: number;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The open folder's subfolders, each with how much it holds, and the items directly in it; or
|
|
80
|
+
* while `narrowed`, every item grouped by its folder. A folder nothing is in any more, say after
|
|
81
|
+
* its files moved, opens the top instead.
|
|
82
|
+
*/
|
|
83
|
+
export declare function arrangeByFolder<TItem extends Foldered>(items: readonly TItem[], requested: string | undefined, narrowed: boolean): FolderArrangement<TItem>;
|
|
84
|
+
/**
|
|
85
|
+
* A folder browser's body: the open folder's subfolders as tiles, then its items through
|
|
86
|
+
* `children`, or while narrowed each folder's matches under its name. `children` only runs for a
|
|
87
|
+
* non-empty list, so a folder holding only folders shows no empty list.
|
|
88
|
+
*/
|
|
89
|
+
export declare function FolderContents<TItem>({ browser, rootLabel, children, }: {
|
|
90
|
+
readonly browser: FolderBrowser<TItem>;
|
|
91
|
+
/** Names the matches at the top while narrowed, such as "Datasets". */
|
|
92
|
+
readonly rootLabel: string;
|
|
93
|
+
readonly children: (items: readonly TItem[]) => ReactNode;
|
|
94
|
+
}): import("react").JSX.Element;
|
|
95
|
+
/**
|
|
96
|
+
* Where a detail page's back link goes: its folder when it has one, so leaving a definition
|
|
97
|
+
* returns to where it was found, or the list itself.
|
|
98
|
+
*/
|
|
99
|
+
export declare function folderBack(list: {
|
|
100
|
+
readonly href: string;
|
|
101
|
+
readonly label: string;
|
|
102
|
+
}, folder: string | undefined): {
|
|
103
|
+
readonly href: string;
|
|
104
|
+
readonly label: string;
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/pages/folders.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAA4C,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE9F,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAG/C,eAAO,MAAM,EAAE;mBACE,MAAM;CACA,CAAA;AAEvB,eAAO,MAAM,EAAE,EAAE,WAA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