@daffodil/core 0.94.1 → 0.95.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/fesm2022/daffodil-core-external-script-testing.mjs +42 -56
- package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-external-script.mjs +77 -95
- package/fesm2022/daffodil-core-external-script.mjs.map +1 -1
- package/fesm2022/daffodil-core-graphql.mjs +94 -145
- package/fesm2022/daffodil-core-graphql.mjs.map +1 -1
- package/fesm2022/daffodil-core-routing.mjs +53 -85
- package/fesm2022/daffodil-core-routing.mjs.map +1 -1
- package/fesm2022/daffodil-core-state-testing.mjs +90 -62
- package/fesm2022/daffodil-core-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-state.mjs +282 -456
- package/fesm2022/daffodil-core-state.mjs.map +1 -1
- package/fesm2022/daffodil-core-testing.mjs +1077 -657
- package/fesm2022/daffodil-core-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core.mjs +720 -1342
- package/fesm2022/daffodil-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-core-external-script-testing.d.ts +14 -18
- package/types/daffodil-core-external-script.d.ts +42 -47
- package/types/daffodil-core-graphql.d.ts +35 -51
- package/types/daffodil-core-routing.d.ts +40 -51
- package/types/daffodil-core-state-testing.d.ts +31 -35
- package/types/daffodil-core-state.d.ts +429 -465
- package/types/daffodil-core-testing.d.ts +220 -245
- package/types/daffodil-core.d.ts +518 -641
|
@@ -1,94 +1,62 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { Injectable } from
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import { PRIMARY_OUTLET } from
|
|
5
|
-
import { DaffFilterType } from
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Truncates the file extension from the end of the URI.
|
|
9
|
-
* Captures the truncated URI in the `uri` named group.
|
|
10
|
-
*/
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Injectable } from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/router";
|
|
4
|
+
import { PRIMARY_OUTLET } from "@angular/router";
|
|
5
|
+
import { DaffFilterType } from "@daffodil/core";
|
|
11
6
|
const DAFF_TRUNCATE_FILE_EXTENSION_REGEX = /(.*)(?=\.)/;
|
|
12
|
-
/**
|
|
13
|
-
* Truncates the file extension from the end of the URI.
|
|
14
|
-
*/
|
|
15
7
|
const daffUriTruncateFileExtension = (uri) => uri.match(DAFF_TRUNCATE_FILE_EXTENSION_REGEX)?.[0] || uri;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Truncates leading path segments from a URI.
|
|
19
|
-
* e.g. /foo/bar/baz.html -> baz.html
|
|
20
|
-
*/
|
|
21
|
-
const daffUriTruncateLeadingPathSegments = (uri) => uri.split('/').pop();
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* A regex to truncate the leading slash from a URI,
|
|
25
|
-
* capturing the truncated in the `uri` group.
|
|
26
|
-
* e.g. /foo/bar/baz.html -> foo/bar/baz.html
|
|
27
|
-
*/
|
|
8
|
+
const daffUriTruncateLeadingPathSegments = (uri) => uri.split("/").pop();
|
|
28
9
|
const DAFF_TRUNCATE_LEADING_SLASH_REGEX = /^\/?(?<uri>.+)$/;
|
|
29
|
-
/**
|
|
30
|
-
* Truncates the leading slash from a URI.
|
|
31
|
-
* e.g. /foo/bar/baz.html -> foo/bar/baz.html
|
|
32
|
-
*/
|
|
33
10
|
const daffUriTruncateLeadingSlash = (uri) => uri.match(DAFF_TRUNCATE_LEADING_SLASH_REGEX)?.groups.uri || uri;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Truncates query parameters and fragments from a URI.
|
|
37
|
-
* e.g. /foo/bar/baz.html?thing=test#id -> /foo/bar/baz.html
|
|
38
|
-
*/
|
|
39
11
|
const daffUriTruncateQueryFragment = (uri) => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
return uri.replace(/(\?.*)|(#.*)/, '');
|
|
12
|
+
if (uri[0] !== "/") uri = `/${uri}`;
|
|
13
|
+
return uri.replace(/(\?.*)|(#.*)/, "");
|
|
44
14
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
15
|
+
var DaffRoutingUriNormalizer = class DaffRoutingUriNormalizer {
|
|
16
|
+
constructor(urlParser) {
|
|
17
|
+
this.urlParser = urlParser;
|
|
18
|
+
}
|
|
19
|
+
normalize(uri, outlet = PRIMARY_OUTLET) {
|
|
20
|
+
const urlTree = this.urlParser.parse(uri);
|
|
21
|
+
urlTree.root.children = { [PRIMARY_OUTLET]: urlTree.root.children[outlet] };
|
|
22
|
+
return this.urlParser.serialize(urlTree);
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.4",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: DaffRoutingUriNormalizer,
|
|
30
|
+
deps: [{ token: i1.UrlSerializer }],
|
|
31
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
static {
|
|
35
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
36
|
+
minVersion: "12.0.0",
|
|
37
|
+
version: "22.2.4",
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
type: DaffRoutingUriNormalizer,
|
|
40
|
+
providedIn: "root"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
45
|
+
minVersion: "12.0.0",
|
|
46
|
+
version: "22.2.4",
|
|
47
|
+
ngImport: i0,
|
|
48
|
+
type: DaffRoutingUriNormalizer,
|
|
49
|
+
decorators: [{
|
|
50
|
+
type: Injectable,
|
|
51
|
+
args: [{ providedIn: "root" }]
|
|
52
|
+
}],
|
|
53
|
+
ctorParameters: () => [{ type: i1.UrlSerializer }]
|
|
54
|
+
});
|
|
83
55
|
const daffRoutingQueryParamFilterRequestEqualBuilder = (filterName, qpValue) => ({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
56
|
+
type: DaffFilterType.Equal,
|
|
57
|
+
name: filterName,
|
|
58
|
+
value: qpValue
|
|
87
59
|
});
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Generated bundle index. Do not edit.
|
|
91
|
-
*/
|
|
92
|
-
|
|
93
60
|
export { DAFF_TRUNCATE_FILE_EXTENSION_REGEX, DAFF_TRUNCATE_LEADING_SLASH_REGEX, DaffRoutingUriNormalizer, daffRoutingQueryParamFilterRequestEqualBuilder, daffUriTruncateFileExtension, daffUriTruncateLeadingPathSegments, daffUriTruncateLeadingSlash, daffUriTruncateQueryFragment };
|
|
94
|
-
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=daffodil-core-routing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-core-routing.mjs","sources":["../../../libs/core/routing/src/uri/truncation/file-extension.ts","../../../libs/core/routing/src/uri/truncation/leading-path-segments.ts","../../../libs/core/routing/src/uri/truncation/leading-slash.ts","../../../libs/core/routing/src/uri/truncation/query-fragment.ts","../../../libs/core/routing/src/uri/normalizer.service.ts","../../../libs/core/routing/src/query-param-filter/request-builder/equal.ts"
|
|
1
|
+
{"version":3,"file":"daffodil-core-routing.mjs","names":[],"sources":["../../../libs/core/routing/src/uri/truncation/file-extension.ts","../../../libs/core/routing/src/uri/truncation/leading-path-segments.ts","../../../libs/core/routing/src/uri/truncation/leading-slash.ts","../../../libs/core/routing/src/uri/truncation/query-fragment.ts","../../../libs/core/routing/src/uri/normalizer.service.ts","../../../libs/core/routing/src/query-param-filter/request-builder/equal.ts"],"sourcesContent":["/**\n * Truncates the file extension from the end of the URI.\n * Captures the truncated URI in the `uri` named group.\n */\nexport const DAFF_TRUNCATE_FILE_EXTENSION_REGEX = /(.*)(?=\\.)/;\n/**\n * Truncates the file extension from the end of the URI.\n */\nexport const daffUriTruncateFileExtension = (uri: string): string => uri.match(DAFF_TRUNCATE_FILE_EXTENSION_REGEX)?.[0] || uri;\n","/**\n * Truncates leading path segments from a URI.\n * e.g. /foo/bar/baz.html -> baz.html\n */\nexport const daffUriTruncateLeadingPathSegments = (uri: string): string =>\n uri.split('/').pop();\n","/**\n * A regex to truncate the leading slash from a URI,\n * capturing the truncated in the `uri` group.\n * e.g. /foo/bar/baz.html -> foo/bar/baz.html\n */\nexport const DAFF_TRUNCATE_LEADING_SLASH_REGEX = /^\\/?(?<uri>.+)$/;\n/**\n * Truncates the leading slash from a URI.\n * e.g. /foo/bar/baz.html -> foo/bar/baz.html\n */\nexport const daffUriTruncateLeadingSlash = (uri: string): string =>\n uri.match(DAFF_TRUNCATE_LEADING_SLASH_REGEX)?.groups.uri || uri;\n","/**\n * Truncates query parameters and fragments from a URI.\n * e.g. /foo/bar/baz.html?thing=test#id -> /foo/bar/baz.html\n */\nexport const daffUriTruncateQueryFragment = (uri: string): string => {\n if(uri[0] !== '/') {\n uri = `/${uri}`;\n }\n return uri.replace(/(\\?.*)|(#.*)/, '');\n};\n","import { Injectable } from '@angular/core';\nimport {\n UrlSerializer,\n UrlTree,\n PRIMARY_OUTLET,\n} from '@angular/router';\n\n/**\n * Processes URIs to remove extraneous Angular-specific information.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffRoutingUriNormalizer {\n constructor(\n private urlParser: UrlSerializer,\n ) {}\n\n /**\n * Normalizes an Angular router path into a useable URI.\n * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment')` -> `'some/url.html?query=param#fragment'`\n *\n * Optionally accepts an outlet to target.\n * e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment', 'secondary')` -> `'outlet?query=param#fragment'`\n *\n * @param uri The URI to normalize.\n * @param outlet An optional outlet to process into a URI.\n */\n normalize(uri: string, outlet = PRIMARY_OUTLET): string {\n const urlTree: UrlTree = this.urlParser.parse(uri);\n urlTree.root.children = {\n [PRIMARY_OUTLET]: urlTree.root.children[outlet],\n };\n\n return this.urlParser.serialize(urlTree);\n }\n}\n","import {\n DaffFilterEqualRequest,\n DaffFilterType,\n} from '@daffodil/core';\n\nimport { DaffRoutingQueryParamFilterRequestBuilder } from './type';\n\n/**\n * A standard filter request builder that creates an equal filter request with the query params values.\n */\nexport const daffRoutingQueryParamFilterRequestEqualBuilder: DaffRoutingQueryParamFilterRequestBuilder<DaffFilterEqualRequest>\n = (filterName, qpValue) => ({\n type: DaffFilterType.Equal,\n name: filterName,\n value: qpValue,\n });\n"],"mappings":";;;;;AAIA,MAAa,qCAAqC;AAIlD,MAAa,gCAAgC,QAAwB,IAAI,MAAM,kCAAkC,CAAC,GAAG,MAAM;ACJ3H,MAAa,sCAAsC,QACjD,IAAI,MAAM,GAAG,CAAC,CAAC,IAAG;ACApB,MAAa,oCAAoC;AAKjD,MAAa,+BAA+B,QAC1C,IAAI,MAAM,iCAAiC,CAAC,EAAE,OAAO,OAAO;ACP9D,MAAa,gCAAgC,QAAuB;CAClE,IAAG,IAAI,OAAO,KACZ,MAAM,IAAI;CAEZ,OAAO,IAAI,QAAQ,gBAAgB,EAAE;AACvC;ACIA,IAAa,2BAAb,MAAa,yBAAwB;CAC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|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Injectable } from "@angular/core";
|
|
3
|
+
import { BehaviorSubject } from "rxjs";
|
|
4
|
+
var MockDaffCollectionFacade = class MockDaffCollectionFacade {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.metadata$ = new BehaviorSubject(null);
|
|
7
|
+
this.request$ = new BehaviorSubject(null);
|
|
8
|
+
this.count$ = new BehaviorSubject(0);
|
|
9
|
+
this.currentPage$ = new BehaviorSubject(0);
|
|
10
|
+
this.totalPages$ = new BehaviorSubject(0);
|
|
11
|
+
this.pageSize$ = new BehaviorSubject(0);
|
|
12
|
+
this.sortOptions$ = new BehaviorSubject([]);
|
|
13
|
+
this.appliedSortOption$ = new BehaviorSubject(null);
|
|
14
|
+
this.appliedSortDirection$ = new BehaviorSubject(null);
|
|
15
|
+
this.filters$ = new BehaviorSubject({});
|
|
16
|
+
this.appliedFilters$ = new BehaviorSubject({});
|
|
17
|
+
}
|
|
18
|
+
dispatch(action) {}
|
|
19
|
+
static {
|
|
20
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
|
+
minVersion: "12.0.0",
|
|
22
|
+
version: "22.2.4",
|
|
23
|
+
ngImport: i0,
|
|
24
|
+
type: MockDaffCollectionFacade,
|
|
25
|
+
deps: [],
|
|
26
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
31
|
+
minVersion: "12.0.0",
|
|
32
|
+
version: "22.2.4",
|
|
33
|
+
ngImport: i0,
|
|
34
|
+
type: MockDaffCollectionFacade,
|
|
35
|
+
providedIn: "root"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
40
|
+
minVersion: "12.0.0",
|
|
41
|
+
version: "22.2.4",
|
|
42
|
+
ngImport: i0,
|
|
43
|
+
type: MockDaffCollectionFacade,
|
|
44
|
+
decorators: [{
|
|
45
|
+
type: Injectable,
|
|
46
|
+
args: [{ providedIn: "root" }]
|
|
47
|
+
}]
|
|
48
|
+
});
|
|
49
|
+
var MockDaffOperationStateFacade = class MockDaffOperationStateFacade {
|
|
50
|
+
constructor() {
|
|
51
|
+
this.loadingState$ = new BehaviorSubject("Stable");
|
|
52
|
+
this.loading$ = new BehaviorSubject(false);
|
|
53
|
+
this.resolving$ = new BehaviorSubject(false);
|
|
54
|
+
this.mutating$ = new BehaviorSubject(false);
|
|
55
|
+
this.errors$ = new BehaviorSubject([]);
|
|
56
|
+
this.hasErrors$ = new BehaviorSubject(false);
|
|
57
|
+
}
|
|
58
|
+
dispatch(action) {}
|
|
59
|
+
static {
|
|
60
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
61
|
+
minVersion: "12.0.0",
|
|
62
|
+
version: "22.2.4",
|
|
63
|
+
ngImport: i0,
|
|
64
|
+
type: MockDaffOperationStateFacade,
|
|
65
|
+
deps: [],
|
|
66
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
static {
|
|
70
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
71
|
+
minVersion: "12.0.0",
|
|
72
|
+
version: "22.2.4",
|
|
73
|
+
ngImport: i0,
|
|
74
|
+
type: MockDaffOperationStateFacade,
|
|
75
|
+
providedIn: "root"
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
80
|
+
minVersion: "12.0.0",
|
|
81
|
+
version: "22.2.4",
|
|
82
|
+
ngImport: i0,
|
|
83
|
+
type: MockDaffOperationStateFacade,
|
|
84
|
+
decorators: [{
|
|
85
|
+
type: Injectable,
|
|
86
|
+
args: [{ providedIn: "root" }]
|
|
87
|
+
}]
|
|
88
|
+
});
|
|
62
89
|
export { MockDaffCollectionFacade, MockDaffOperationStateFacade };
|
|
63
|
-
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=daffodil-core-state-testing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-core-state-testing.mjs","sources":["../../../libs/core/state/testing/src/mock-collection-facade.ts","../../../libs/core/state/testing/src/mock-operation-facade.ts"
|
|
1
|
+
{"version":3,"file":"daffodil-core-state-testing.mjs","names":[],"sources":["../../../libs/core/state/testing/src/mock-collection-facade.ts","../../../libs/core/state/testing/src/mock-operation-facade.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport {\n DaffCollectionMetadata,\n DaffCollectionRequest,\n DaffFilters,\n DaffSortDirectionEnum,\n DaffSortOption,\n} from '@daffodil/core';\nimport { DaffCollectionFacadeInterface } from '@daffodil/core/state';\n\n/**\n * Can be used to mock out the {@link DaffCollectionFacade} in testing environments.\n *\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffCollectionFacade implements DaffCollectionFacadeInterface {\n metadata$: BehaviorSubject<DaffCollectionMetadata> = new BehaviorSubject(null);\n request$: BehaviorSubject<DaffCollectionRequest> = new BehaviorSubject(null);\n count$: BehaviorSubject<number> = new BehaviorSubject(0);\n currentPage$: BehaviorSubject<number> = new BehaviorSubject(0);\n totalPages$: BehaviorSubject<number> = new BehaviorSubject(0);\n pageSize$: BehaviorSubject<number> = new BehaviorSubject(0);\n sortOptions$: BehaviorSubject<DaffSortOption[]> = new BehaviorSubject([]);\n appliedSortOption$: BehaviorSubject<string> = new BehaviorSubject(null);\n appliedSortDirection$: BehaviorSubject<DaffSortDirectionEnum> = new BehaviorSubject(null);\n filters$: BehaviorSubject<DaffFilters> = new BehaviorSubject({});\n appliedFilters$: BehaviorSubject<DaffFilters> = new BehaviorSubject({});\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport {\n DaffOperationStateFacadeInterface,\n DaffState,\n DaffStateError,\n} from '@daffodil/core/state';\n\n/**\n * Can be used to mock out the {@link DaffOperationStateFacade} in testing environments.\n *\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffOperationStateFacade implements DaffOperationStateFacadeInterface {\n loadingState$ = new BehaviorSubject<DaffState>(DaffState.Stable);\n loading$ = new BehaviorSubject<boolean>(false);\n resolving$ = new BehaviorSubject<boolean>(false);\n mutating$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n hasErrors$ = new BehaviorSubject<boolean>(false);\n\n dispatch(action: Action) {};\n}\n"],"mappings":";;;AAmBA,IAAa,2BAAb,MAAa,yBAAwB;CADrC,cAAA;EAEE,KAAA,YAAqD,IAAI,gBAAgB,IAAI;EAC7E,KAAA,WAAmD,IAAI,gBAAgB,IAAI;EAC3E,KAAA,SAAkC,IAAI,gBAAgB,CAAC;EACvD,KAAA,eAAwC,IAAI,gBAAgB,CAAC;EAC7D,KAAA,cAAuC,IAAI,gBAAgB,CAAC;EAC5D,KAAA,YAAqC,IAAI,gBAAgB,CAAC;EAC1D,KAAA,eAAkD,IAAI,gBAAgB,CAAA,CAAE;EACxE,KAAA,qBAA8C,IAAI,gBAAgB,IAAI;EACtE,KAAA,wBAAgE,IAAI,gBAAgB,IAAI;EACxF,KAAA,WAAyC,IAAI,gBAAgB,CAAA,CAAE;EAC/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