@pax2pay/model-banking 0.1.311 → 0.1.312
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/Rule/Rule/Base.ts +13 -7
- package/Rule/Rule/Other.ts +6 -3
- package/Rule/Rule/index.ts +5 -2
- package/Rule/index.ts +12 -15
- package/dist/Rule/Rule/Base.d.ts +10 -4
- package/dist/Rule/Rule/Base.js +13 -5
- package/dist/Rule/Rule/Base.js.map +1 -1
- package/dist/Rule/Rule/Other.d.ts +5 -2
- package/dist/Rule/Rule/Other.js +6 -2
- package/dist/Rule/Rule/Other.js.map +1 -1
- package/dist/Rule/Rule/index.d.ts +5 -2
- package/dist/Rule/Rule/index.js +5 -1
- package/dist/Rule/Rule/index.js.map +1 -1
- package/dist/Rule/index.d.ts +6 -16
- package/dist/Rule/index.js +8 -15
- package/dist/Rule/index.js.map +1 -1
- package/package.json +1 -1
package/Rule/Rule/Base.ts
CHANGED
|
@@ -11,16 +11,22 @@ export interface Base {
|
|
|
11
11
|
groups?: string[]
|
|
12
12
|
}
|
|
13
13
|
export namespace Base {
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export type Kind = typeof Kind.values[number]
|
|
15
|
+
export namespace Kind {
|
|
16
|
+
export const values = ["authorization", "outbound", "inbound"] as const
|
|
17
|
+
export const type = isly.string<Kind>(values)
|
|
18
|
+
}
|
|
19
|
+
export type Category = typeof Category.values[number]
|
|
20
|
+
export namespace Category {
|
|
21
|
+
export const values = ["fincrime", "product", "customer"] as const
|
|
22
|
+
export const type = isly.string<Category>(values)
|
|
23
|
+
}
|
|
18
24
|
export const type = isly.object<Base>({
|
|
19
|
-
code: isly.string(
|
|
25
|
+
code: isly.string(/^[a-z0-9\-_]+$/),
|
|
20
26
|
name: isly.string(),
|
|
21
27
|
description: isly.string(),
|
|
22
|
-
type:
|
|
23
|
-
category:
|
|
28
|
+
type: Kind.type,
|
|
29
|
+
category: Category.type,
|
|
24
30
|
condition: isly.string(),
|
|
25
31
|
flags: isly.string().array(),
|
|
26
32
|
groups: isly.string().array().optional(),
|
package/Rule/Rule/Other.ts
CHANGED
|
@@ -5,7 +5,10 @@ export interface Other extends Base {
|
|
|
5
5
|
action: Other.Action
|
|
6
6
|
}
|
|
7
7
|
export namespace Other {
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
8
|
+
export type Action = typeof Action.values[number]
|
|
9
|
+
export namespace Action {
|
|
10
|
+
export const values = ["review", "reject", "flag"] as const
|
|
11
|
+
export const type = isly.string<Action>(values)
|
|
12
|
+
}
|
|
13
|
+
export const type = Base.type.extend<Other>({ action: Action.type })
|
|
11
14
|
}
|
package/Rule/Rule/index.ts
CHANGED
|
@@ -9,8 +9,11 @@ export namespace Rule {
|
|
|
9
9
|
export import Other = RuleOther
|
|
10
10
|
export import Score = RuleScore
|
|
11
11
|
export import Base = RuleBase
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type Action = typeof Action.values[number]
|
|
13
|
+
export namespace Action {
|
|
14
|
+
export const values = [...Other.Action.values, "score"] as const
|
|
15
|
+
export const type = isly.string<Action>(values)
|
|
16
|
+
}
|
|
14
17
|
}
|
|
15
18
|
// Outside of the namespace otherwise the Rule import in Card/Card.Creatable and Organization causes a circular dependency crash
|
|
16
19
|
export const type = isly.union<Rule.Other | Rule.Score, Rule.Other, Rule.Score>(Rule.Other.type, Rule.Score.type)
|
package/Rule/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { selectively } from "selectively"
|
|
2
|
-
import { isly } from "isly"
|
|
3
2
|
import { definitions } from "./definitions"
|
|
4
3
|
import { Rule as ModelRule, type as ruleType } from "./Rule"
|
|
5
4
|
import { State as RuleState } from "./State"
|
|
@@ -7,18 +6,9 @@ import { State as RuleState } from "./State"
|
|
|
7
6
|
export type Rule = ModelRule
|
|
8
7
|
|
|
9
8
|
export namespace Rule {
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export type Category = ModelRule.Base.Category
|
|
15
|
-
export namespace Category {
|
|
16
|
-
export const values = ModelRule.Base.categories
|
|
17
|
-
}
|
|
18
|
-
export type Kind = ModelRule.Base.Kind
|
|
19
|
-
export namespace Kind {
|
|
20
|
-
export const values = ModelRule.Base.kinds
|
|
21
|
-
}
|
|
9
|
+
export import Action = ModelRule.Action
|
|
10
|
+
export import Category = ModelRule.Base.Category
|
|
11
|
+
export import Kind = ModelRule.Base.Kind
|
|
22
12
|
export import Other = ModelRule.Other
|
|
23
13
|
export import Score = ModelRule.Score
|
|
24
14
|
export import State = RuleState
|
|
@@ -46,7 +36,14 @@ export namespace Rule {
|
|
|
46
36
|
const result: Record<ModelRule.Other.Action, Rule[]> & { risk?: number } = { review: [], reject: [], flag: [] }
|
|
47
37
|
const [other, scorers] = rules.reduce(
|
|
48
38
|
(r: [ModelRule.Other[], ModelRule.Score[]], rule) => {
|
|
49
|
-
|
|
39
|
+
if (
|
|
40
|
+
!rule.groups ||
|
|
41
|
+
rule.groups.some(ruleGroup =>
|
|
42
|
+
state.organization?.groups?.some(organizationGroup => organizationGroup == ruleGroup)
|
|
43
|
+
)
|
|
44
|
+
) {
|
|
45
|
+
rule.action == "score" ? r[1].push(rule) : r[0].push(rule)
|
|
46
|
+
}
|
|
50
47
|
return r
|
|
51
48
|
},
|
|
52
49
|
[[], []]
|
|
@@ -57,7 +54,7 @@ export namespace Rule {
|
|
|
57
54
|
return result
|
|
58
55
|
}
|
|
59
56
|
export function isLegacy(rule: Rule): boolean {
|
|
60
|
-
return !
|
|
57
|
+
return !ModelRule.Base.Category.type.is(rule.category)
|
|
61
58
|
}
|
|
62
59
|
export function fromLegacy(rule: Rule): Rule {
|
|
63
60
|
return isLegacy(rule) ? { ...rule, category: "fincrime" } : rule
|
package/dist/Rule/Rule/Base.d.ts
CHANGED
|
@@ -10,9 +10,15 @@ export interface Base {
|
|
|
10
10
|
groups?: string[];
|
|
11
11
|
}
|
|
12
12
|
export declare namespace Base {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
type Kind = typeof Kind.values[number];
|
|
14
|
+
namespace Kind {
|
|
15
|
+
const values: readonly ["authorization", "outbound", "inbound"];
|
|
16
|
+
const type: isly.Type<"authorization" | "outbound" | "inbound">;
|
|
17
|
+
}
|
|
18
|
+
type Category = typeof Category.values[number];
|
|
19
|
+
namespace Category {
|
|
20
|
+
const values: readonly ["fincrime", "product", "customer"];
|
|
21
|
+
const type: isly.Type<"product" | "fincrime" | "customer">;
|
|
22
|
+
}
|
|
17
23
|
const type: isly.object.ExtendableType<Base>;
|
|
18
24
|
}
|
package/dist/Rule/Rule/Base.js
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var Base;
|
|
3
3
|
(function (Base) {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
let Kind;
|
|
5
|
+
(function (Kind) {
|
|
6
|
+
Kind.values = ["authorization", "outbound", "inbound"];
|
|
7
|
+
Kind.type = isly.string(Kind.values);
|
|
8
|
+
})(Kind = Base.Kind || (Base.Kind = {}));
|
|
9
|
+
let Category;
|
|
10
|
+
(function (Category) {
|
|
11
|
+
Category.values = ["fincrime", "product", "customer"];
|
|
12
|
+
Category.type = isly.string(Category.values);
|
|
13
|
+
})(Category = Base.Category || (Base.Category = {}));
|
|
6
14
|
Base.type = isly.object({
|
|
7
|
-
code: isly.string(
|
|
15
|
+
code: isly.string(/^[a-z0-9\-_]+$/),
|
|
8
16
|
name: isly.string(),
|
|
9
17
|
description: isly.string(),
|
|
10
|
-
type:
|
|
11
|
-
category:
|
|
18
|
+
type: Kind.type,
|
|
19
|
+
category: Category.type,
|
|
12
20
|
condition: isly.string(),
|
|
13
21
|
flags: isly.string().array(),
|
|
14
22
|
groups: isly.string().array().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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ACxC,CAAC,CAAA;AACH,CAAC,EArBgB,IAAI,KAAJ,IAAI,QAqBpB"}
|
|
@@ -4,7 +4,10 @@ export interface Other extends Base {
|
|
|
4
4
|
action: Other.Action;
|
|
5
5
|
}
|
|
6
6
|
export declare namespace Other {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type Action = typeof Action.values[number];
|
|
8
|
+
namespace Action {
|
|
9
|
+
const values: readonly ["review", "reject", "flag"];
|
|
10
|
+
const type: isly.Type<"review" | "reject" | "flag">;
|
|
11
|
+
}
|
|
9
12
|
const type: isly.object.ExtendableType<Other>;
|
|
10
13
|
}
|
package/dist/Rule/Rule/Other.js
CHANGED
|
@@ -2,7 +2,11 @@ import { isly } from "isly";
|
|
|
2
2
|
import { Base } from "./Base";
|
|
3
3
|
export var Other;
|
|
4
4
|
(function (Other) {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
let Action;
|
|
6
|
+
(function (Action) {
|
|
7
|
+
Action.values = ["review", "reject", "flag"];
|
|
8
|
+
Action.type = isly.string(Action.values);
|
|
9
|
+
})(Action = Other.Action || (Other.Action = {}));
|
|
10
|
+
Other.type = Base.type.extend({ action: Action.type });
|
|
7
11
|
})(Other || (Other = {}));
|
|
8
12
|
//# sourceMappingURL=Other.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Other.js","sourceRoot":"../","sources":["Rule/Rule/Other.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAK7B,MAAM,KAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"Other.js","sourceRoot":"../","sources":["Rule/Rule/Other.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAK7B,MAAM,KAAW,KAAK,CAOrB;AAPD,WAAiB,KAAK;IAErB,IAAiB,MAAM,CAGtB;IAHD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;QAC9C,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,MAAM,CAAC,CAAA;IAChD,CAAC,EAHgB,MAAM,GAAN,YAAM,KAAN,YAAM,QAGtB;IACY,UAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAA;AACrE,CAAC,EAPgB,KAAK,KAAL,KAAK,QAOrB"}
|
|
@@ -7,7 +7,10 @@ export declare namespace Rule {
|
|
|
7
7
|
export import Other = RuleOther;
|
|
8
8
|
export import Score = RuleScore;
|
|
9
9
|
export import Base = RuleBase;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type Action = typeof Action.values[number];
|
|
11
|
+
namespace Action {
|
|
12
|
+
const values: readonly ["review", "reject", "flag", "score"];
|
|
13
|
+
const type: isly.Type<"review" | "reject" | "flag" | "score">;
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
export declare const type: isly.Type<RuleOther | RuleScore>;
|
package/dist/Rule/Rule/index.js
CHANGED
|
@@ -7,7 +7,11 @@ export var Rule;
|
|
|
7
7
|
Rule.Other = RuleOther;
|
|
8
8
|
Rule.Score = RuleScore;
|
|
9
9
|
Rule.Base = RuleBase;
|
|
10
|
-
|
|
10
|
+
let Action;
|
|
11
|
+
(function (Action) {
|
|
12
|
+
Action.values = [...Rule.Other.Action.values, "score"];
|
|
13
|
+
Action.type = isly.string(Action.values);
|
|
14
|
+
})(Action = Rule.Action || (Rule.Action = {}));
|
|
11
15
|
})(Rule || (Rule = {}));
|
|
12
16
|
export const type = isly.union(Rule.Other.type, Rule.Score.type);
|
|
13
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CASpB;AATD,WAAiB,IAAI;IACN,UAAK,GAAG,SAAS,CAAA;IACjB,UAAK,GAAG,SAAS,CAAA;IACjB,SAAI,GAAG,QAAQ,CAAA;IAE7B,IAAiB,MAAM,CAGtB;IAHD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,GAAG,KAAA,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAU,CAAA;QACnD,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,MAAM,CAAC,CAAA;IAChD,CAAC,EAHgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAGtB;AACF,CAAC,EATgB,IAAI,KAAJ,IAAI,QASpB;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAkD,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA"}
|
package/dist/Rule/index.d.ts
CHANGED
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
import { selectively } from "selectively";
|
|
2
|
-
import { isly } from "isly";
|
|
3
2
|
import { Rule as ModelRule } from "./Rule";
|
|
4
3
|
import { State as RuleState } from "./State";
|
|
5
4
|
export type Rule = ModelRule;
|
|
6
5
|
export declare namespace Rule {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
type Category = ModelRule.Base.Category;
|
|
12
|
-
namespace Category {
|
|
13
|
-
const values: readonly ["fincrime", "product", "customer"];
|
|
14
|
-
}
|
|
15
|
-
type Kind = ModelRule.Base.Kind;
|
|
16
|
-
namespace Kind {
|
|
17
|
-
const values: readonly ["authorization", "outbound", "inbound"];
|
|
18
|
-
}
|
|
6
|
+
export import Action = ModelRule.Action;
|
|
7
|
+
export import Category = ModelRule.Base.Category;
|
|
8
|
+
export import Kind = ModelRule.Base.Kind;
|
|
19
9
|
export import Other = ModelRule.Other;
|
|
20
10
|
export import Score = ModelRule.Score;
|
|
21
11
|
export import State = RuleState;
|
|
22
|
-
const type: isly.Type<Other | Score>;
|
|
23
|
-
const is: isly.Type.IsFunction<Other | Score>;
|
|
24
|
-
const flaw: isly.Type.FlawFunction;
|
|
12
|
+
const type: import("isly/dist/cjs/Type").Type<Other | Score>;
|
|
13
|
+
const is: import("isly/dist/cjs/Type").Type.IsFunction<Other | Score>;
|
|
14
|
+
const flaw: import("isly/dist/cjs/Type").Type.FlawFunction;
|
|
25
15
|
function evaluate(rules: Rule[], state: State, macros?: Record<string, selectively.Definition>): Record<ModelRule.Other.Action, Rule[]> & {
|
|
26
16
|
risk?: number;
|
|
27
17
|
};
|
package/dist/Rule/index.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
import { selectively } from "selectively";
|
|
2
|
-
import { isly } from "isly";
|
|
3
2
|
import { definitions } from "./definitions";
|
|
4
3
|
import { Rule as ModelRule, type as ruleType } from "./Rule";
|
|
5
4
|
import { State as RuleState } from "./State";
|
|
6
5
|
export var Rule;
|
|
7
6
|
(function (Rule) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})(Action = Rule.Action || (Rule.Action = {}));
|
|
12
|
-
let Category;
|
|
13
|
-
(function (Category) {
|
|
14
|
-
Category.values = ModelRule.Base.categories;
|
|
15
|
-
})(Category = Rule.Category || (Rule.Category = {}));
|
|
16
|
-
let Kind;
|
|
17
|
-
(function (Kind) {
|
|
18
|
-
Kind.values = ModelRule.Base.kinds;
|
|
19
|
-
})(Kind = Rule.Kind || (Rule.Kind = {}));
|
|
7
|
+
Rule.Action = ModelRule.Action;
|
|
8
|
+
Rule.Category = ModelRule.Base.Category;
|
|
9
|
+
Rule.Kind = ModelRule.Base.Kind;
|
|
20
10
|
Rule.Other = ModelRule.Other;
|
|
21
11
|
Rule.Score = ModelRule.Score;
|
|
22
12
|
Rule.State = RuleState;
|
|
@@ -32,7 +22,10 @@ export var Rule;
|
|
|
32
22
|
function evaluate(rules, state, macros) {
|
|
33
23
|
const result = { review: [], reject: [], flag: [] };
|
|
34
24
|
const [other, scorers] = rules.reduce((r, rule) => {
|
|
35
|
-
|
|
25
|
+
if (!rule.groups ||
|
|
26
|
+
rule.groups.some(ruleGroup => state.organization?.groups?.some(organizationGroup => organizationGroup == ruleGroup))) {
|
|
27
|
+
rule.action == "score" ? r[1].push(rule) : r[0].push(rule);
|
|
28
|
+
}
|
|
36
29
|
return r;
|
|
37
30
|
}, [[], []]);
|
|
38
31
|
state.transaction.risk = score(scorers, state, macros);
|
|
@@ -42,7 +35,7 @@ export var Rule;
|
|
|
42
35
|
}
|
|
43
36
|
Rule.evaluate = evaluate;
|
|
44
37
|
function isLegacy(rule) {
|
|
45
|
-
return !
|
|
38
|
+
return !ModelRule.Base.Category.type.is(rule.category);
|
|
46
39
|
}
|
|
47
40
|
Rule.isLegacy = isLegacy;
|
|
48
41
|
function fromLegacy(rule) {
|
package/dist/Rule/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAC5D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CAsDpB;AAtDD,WAAiB,IAAI;IACN,WAAM,GAAG,SAAS,CAAC,MAAM,CAAA;IACzB,aAAQ,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAA;IAClC,SAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;IAC1B,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IACvB,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IACvB,UAAK,GAAG,SAAS,CAAA;IAClB,SAAI,GAAG,QAAQ,CAAA;IACf,OAAE,GAAG,QAAQ,CAAC,EAAE,CAAA;IAChB,SAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;IACjC,SAAS,OAAO,CAAC,IAAe,EAAE,KAAY,EAAE,MAA+C;QAC9F,OAAO,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACvG,CAAC;IACD,SAAS,KAAK,CACb,KAAwB,EACxB,KAAY,EACZ,MAA+C;QAE/C,OAAO,KAAK,CAAC,MAAM,CAClB,CAAC,CAAqB,EAAE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