@levrbet/shared 0.4.17 → 0.4.19
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/core/types/index.d.ts +1 -0
- package/dist/core/types/index.js +1 -0
- package/dist/core/types/index.js.map +1 -1
- package/dist/core/types/notifications/index.d.ts +1 -0
- package/dist/core/types/notifications/index.js +18 -0
- package/dist/core/types/notifications/index.js.map +1 -0
- package/dist/core/types/notifications/system.alerts.types.d.ts +24 -0
- package/dist/core/types/notifications/system.alerts.types.js +23 -0
- package/dist/core/types/notifications/system.alerts.types.js.map +1 -0
- package/dist/server/utils/game_progress/game.simulation.d.ts +1 -0
- package/dist/server/utils/game_progress/game.simulation.js +166 -0
- package/dist/server/utils/game_progress/game.simulation.js.map +1 -0
- package/package.json +1 -1
package/dist/core/types/index.js
CHANGED
|
@@ -20,4 +20,5 @@ __exportStar(require("./indexers.types"), exports);
|
|
|
20
20
|
__exportStar(require("./misc.types"), exports);
|
|
21
21
|
__exportStar(require("./oracle"), exports);
|
|
22
22
|
__exportStar(require("./privy.types"), exports);
|
|
23
|
+
__exportStar(require("./notifications"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B;AAC5B,mDAAgC;AAChC,+CAA4B;AAC5B,2CAAwB;AACxB,gDAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B;AAC5B,mDAAgC;AAChC,+CAA4B;AAC5B,2CAAwB;AACxB,gDAA6B;AAC7B,kDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./system.alerts.types";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./system.alerts.types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/types/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum AlertSeverity {
|
|
3
|
+
LOW = "LOW",
|
|
4
|
+
MEDIUM = "MEDIUM",
|
|
5
|
+
HIGH = "HIGH",
|
|
6
|
+
CRITICAL = "CRITICAL"
|
|
7
|
+
}
|
|
8
|
+
export declare const AlertMessageSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
type: z.ZodEnum<{
|
|
11
|
+
error: "error";
|
|
12
|
+
success: "success";
|
|
13
|
+
info: "info";
|
|
14
|
+
warning: "warning";
|
|
15
|
+
}>;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
message: z.ZodString;
|
|
18
|
+
timestamp: z.ZodDate;
|
|
19
|
+
severity: z.ZodEnum<typeof AlertSeverity>;
|
|
20
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
21
|
+
acknowledged: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type AlertMessage = z.infer<typeof AlertMessageSchema>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertMessageSchema = exports.AlertSeverity = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var AlertSeverity;
|
|
6
|
+
(function (AlertSeverity) {
|
|
7
|
+
AlertSeverity["LOW"] = "LOW";
|
|
8
|
+
AlertSeverity["MEDIUM"] = "MEDIUM";
|
|
9
|
+
AlertSeverity["HIGH"] = "HIGH";
|
|
10
|
+
AlertSeverity["CRITICAL"] = "CRITICAL";
|
|
11
|
+
})(AlertSeverity || (exports.AlertSeverity = AlertSeverity = {}));
|
|
12
|
+
exports.AlertMessageSchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string(),
|
|
14
|
+
type: zod_1.z.enum(["info", "warning", "error", "success"]),
|
|
15
|
+
title: zod_1.z.string(),
|
|
16
|
+
message: zod_1.z.string().max(300),
|
|
17
|
+
timestamp: zod_1.z.date(),
|
|
18
|
+
severity: zod_1.z.enum(AlertSeverity),
|
|
19
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
20
|
+
acknowledged: zod_1.z.boolean().optional(),
|
|
21
|
+
description: zod_1.z.string().max(200).optional(),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=system.alerts.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.alerts.types.js","sourceRoot":"","sources":["../../../../src/core/types/notifications/system.alerts.types.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,sCAAqB,CAAA;AACzB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAEY,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IACrD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC5B,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;IACnB,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,aAAa,CAAC;IAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const client_1 = require("@prisma/client");
|
|
4
|
+
const core_1 = require("../../../core");
|
|
5
|
+
const caclulate_game_progress_1 = require("./caclulate.game.progress");
|
|
6
|
+
const game_utils_1 = require("./game.utils");
|
|
7
|
+
const parser_1 = require("./parser");
|
|
8
|
+
const formatBPS = (bps) => {
|
|
9
|
+
if (bps === null)
|
|
10
|
+
return " null (invalid period/clock)";
|
|
11
|
+
const pct = (bps / 100).toFixed(1);
|
|
12
|
+
return `${String(bps).padStart(5)} BPS (${pct}%)`;
|
|
13
|
+
};
|
|
14
|
+
const runSimulation = () => {
|
|
15
|
+
console.log("\n" + "=".repeat(70));
|
|
16
|
+
console.log(" GAME PROGRESS BPS SIMULATION");
|
|
17
|
+
console.log("=".repeat(70));
|
|
18
|
+
// Direct test of getGameProgressBPS
|
|
19
|
+
console.log("\n🔧 DIRECT getGameProgressBPS TESTS");
|
|
20
|
+
console.log("-".repeat(60));
|
|
21
|
+
// Basketball countdown: Q1 start, 12:00 remaining
|
|
22
|
+
const bball1 = (0, game_utils_1.getGameProgressBPS)(720, 720, 1, 4, client_1.SportGroup.Basketball, false);
|
|
23
|
+
console.log(` Basketball Q1 Start (720s remaining) → ${formatBPS(bball1)} (expected: 0)`);
|
|
24
|
+
// Basketball countdown: Q1, 6:00 remaining
|
|
25
|
+
const bball2 = (0, game_utils_1.getGameProgressBPS)(360, 720, 1, 4, client_1.SportGroup.Basketball, false);
|
|
26
|
+
console.log(` Basketball Q1 6:00 rem (360s remaining) → ${formatBPS(bball2)} (expected: 1250)`);
|
|
27
|
+
// Basketball countdown: Q4 start
|
|
28
|
+
const bball3 = (0, game_utils_1.getGameProgressBPS)(720, 720, 4, 4, client_1.SportGroup.Basketball, false);
|
|
29
|
+
console.log(` Basketball Q4 Start (720s remaining) → ${formatBPS(bball3)} (expected: 7500)`);
|
|
30
|
+
// Soccer count-up cumulative
|
|
31
|
+
const soccer1 = (0, game_utils_1.getGameProgressBPS)(0, 2700, 1, 2, client_1.SportGroup.Soccer, true);
|
|
32
|
+
console.log(` Soccer 0:00 (0s cumulative) → ${formatBPS(soccer1)} (expected: 0)`);
|
|
33
|
+
const soccer2 = (0, game_utils_1.getGameProgressBPS)(2700, 2700, 1, 2, client_1.SportGroup.Soccer, true);
|
|
34
|
+
console.log(` Soccer 45:00 (2700s cumulative) → ${formatBPS(soccer2)} (expected: 5000)`);
|
|
35
|
+
const soccer3 = (0, game_utils_1.getGameProgressBPS)(5400, 2700, 2, 2, client_1.SportGroup.Soccer, true);
|
|
36
|
+
console.log(` Soccer 90:00 (5400s cumulative) → ${formatBPS(soccer3)} (expected: 10000)`);
|
|
37
|
+
// Football countdown
|
|
38
|
+
const fb1 = (0, game_utils_1.getGameProgressBPS)(900, 900, 1, 4, client_1.SportGroup.Football, false);
|
|
39
|
+
console.log(` Football Q1 Start (900s remaining) → ${formatBPS(fb1)} (expected: 0)`);
|
|
40
|
+
const fb2 = (0, game_utils_1.getGameProgressBPS)(0, 900, 1, 4, client_1.SportGroup.Football, false);
|
|
41
|
+
console.log(` Football Q1 End (0s remaining) → ${formatBPS(fb2)} (expected: 2500)`);
|
|
42
|
+
// Baseball
|
|
43
|
+
const bb1 = (0, game_utils_1.getGameProgressBPS)(0, 0, 1, 9, client_1.SportGroup.Baseball, true, true);
|
|
44
|
+
console.log(` Baseball Inn 1 Top → ${formatBPS(bb1)} (expected: 0)`);
|
|
45
|
+
const bb2 = (0, game_utils_1.getGameProgressBPS)(0, 0, 5, 9, client_1.SportGroup.Baseball, true, true);
|
|
46
|
+
console.log(` Baseball Inn 5 Top → ${formatBPS(bb2)} (expected: 4444)`);
|
|
47
|
+
console.log("\n" + "=".repeat(70));
|
|
48
|
+
console.log(" CALCULATE FUNCTIONS (with parser)");
|
|
49
|
+
console.log("=".repeat(70));
|
|
50
|
+
// Test parser
|
|
51
|
+
console.log("\n🔧 PARSER TESTS");
|
|
52
|
+
console.log("-".repeat(60));
|
|
53
|
+
console.log(` parseGameClockToSeconds("0:00") = ${(0, parser_1.parseGameClockToSeconds)("0:00")}`);
|
|
54
|
+
console.log(` parseGameClockToSeconds("12:00") = ${(0, parser_1.parseGameClockToSeconds)("12:00")}`);
|
|
55
|
+
console.log(` parseGameClockToSeconds("45:00") = ${(0, parser_1.parseGameClockToSeconds)("45:00")}`);
|
|
56
|
+
// ===== SOCCER (LSports) - period 10=1st half, 20=2nd half =====
|
|
57
|
+
console.log("\n⚽ SOCCER (LSports) - 2 x 45 min, count-up cumulative clock");
|
|
58
|
+
console.log(" Period 10 = 1st Half, Period 20 = 2nd Half");
|
|
59
|
+
console.log("-".repeat(60));
|
|
60
|
+
const soccerLSportsTests = [
|
|
61
|
+
{ period: 10, clock: "0:00", desc: "1st Half Start" },
|
|
62
|
+
{ period: 10, clock: "22:30", desc: "1st Half 22:30" },
|
|
63
|
+
{ period: 10, clock: "45:00", desc: "1st Half End" },
|
|
64
|
+
{ period: 10, clock: "46:30", desc: "1st Half 46:30 injury time" },
|
|
65
|
+
{ period: 20, clock: "45:00", desc: "2nd Half Start (cumulative)" },
|
|
66
|
+
{ period: 20, clock: "57:20", desc: "2nd Half 57:20" },
|
|
67
|
+
{ period: 20, clock: "67:30", desc: "2nd Half 67:30" },
|
|
68
|
+
{ period: 20, clock: "90:00", desc: "Game End" },
|
|
69
|
+
];
|
|
70
|
+
for (const test of soccerLSportsTests) {
|
|
71
|
+
const bps = (0, caclulate_game_progress_1.calculateSoccerProgress)(test.period, test.clock, core_1.OddsServices.LSPORTS);
|
|
72
|
+
console.log(` ${test.desc.padEnd(35)} P:${test.period} Clock:${test.clock.padEnd(6)} → ${formatBPS(bps)}`);
|
|
73
|
+
}
|
|
74
|
+
// ===== BASKETBALL (LSports) =====
|
|
75
|
+
console.log("\n🏀 BASKETBALL (LSports) - 4 x 12 min, count-DOWN clock");
|
|
76
|
+
console.log("-".repeat(60));
|
|
77
|
+
const basketballLSportsTests = [
|
|
78
|
+
{ period: 1, clock: "12:00", desc: "Q1 Start (12:00 remaining)" },
|
|
79
|
+
{ period: 1, clock: "6:00", desc: "Q1 6:00 remaining" },
|
|
80
|
+
{ period: 1, clock: "0:50", desc: "Q1 End" },
|
|
81
|
+
{ period: 2, clock: "12:00", desc: "Q2 Start" },
|
|
82
|
+
{ period: 2, clock: "0:00", desc: "Halftime" },
|
|
83
|
+
{ period: 3, clock: "12:00", desc: "Q3 Start" },
|
|
84
|
+
{ period: 3, clock: "6:00", desc: "Q3 6:00 remaining" },
|
|
85
|
+
{ period: 4, clock: "12:00", desc: "Q4 Start" },
|
|
86
|
+
{ period: 4, clock: "0:24", desc: "Q4 24 seconds left!" },
|
|
87
|
+
{ period: 4, clock: "0:00", desc: "Game End" },
|
|
88
|
+
];
|
|
89
|
+
for (const test of basketballLSportsTests) {
|
|
90
|
+
const bps = (0, caclulate_game_progress_1.calculateBasketballProgress)(test.period, test.clock, core_1.OddsServices.LSPORTS);
|
|
91
|
+
console.log(` ${test.desc.padEnd(35)} P:${test.period} Clock:${test.clock.padEnd(6)} → ${formatBPS(bps)}`);
|
|
92
|
+
}
|
|
93
|
+
// ===== FOOTBALL (LSports) =====
|
|
94
|
+
console.log("\n🏈 FOOTBALL (LSports) - 4 x 15 min, count-DOWN clock");
|
|
95
|
+
console.log("-".repeat(60));
|
|
96
|
+
const footballTests = [
|
|
97
|
+
{ period: 1, clock: "15:00", desc: "Q1 Start (15:00 remaining)" },
|
|
98
|
+
{ period: 1, clock: "7:30", desc: "Q1 7:30 remaining" },
|
|
99
|
+
{ period: 1, clock: "0:00", desc: "Q1 End" },
|
|
100
|
+
{ period: 2, clock: "15:00", desc: "Q2 Start" },
|
|
101
|
+
{ period: 2, clock: "0:00", desc: "Halftime" },
|
|
102
|
+
{ period: 4, clock: "15:00", desc: "Q4 Start" },
|
|
103
|
+
{ period: 4, clock: "2:00", desc: "Q4 2-minute warning" },
|
|
104
|
+
{ period: 4, clock: "0:00", desc: "Game End" },
|
|
105
|
+
];
|
|
106
|
+
for (const test of footballTests) {
|
|
107
|
+
const bps = (0, caclulate_game_progress_1.calculateFootballProgress)(test.period, test.clock, core_1.OddsServices.LSPORTS);
|
|
108
|
+
console.log(` ${test.desc.padEnd(35)} P:${test.period} Clock:${test.clock.padEnd(6)} → ${formatBPS(bps)}`);
|
|
109
|
+
}
|
|
110
|
+
// ===== BASEBALL (LSports) =====
|
|
111
|
+
console.log("\n⚾ BASEBALL (LSports) - 9 innings, top/bottom");
|
|
112
|
+
console.log("-".repeat(60));
|
|
113
|
+
const baseballTests = [
|
|
114
|
+
{ inning: 1, isTop: true, desc: "Inning 1, Top" },
|
|
115
|
+
{ inning: 1, isTop: false, desc: "Inning 1, Bottom" },
|
|
116
|
+
{ inning: 5, isTop: true, desc: "Inning 5, Top (mid-game)" },
|
|
117
|
+
{ inning: 5, isTop: false, desc: "Inning 5, Bottom" },
|
|
118
|
+
{ inning: 9, isTop: true, desc: "Inning 9, Top" },
|
|
119
|
+
{ inning: 9, isTop: false, desc: "Inning 9, Bottom (last chance)" },
|
|
120
|
+
];
|
|
121
|
+
for (const test of baseballTests) {
|
|
122
|
+
const bps = (0, caclulate_game_progress_1.calculateBaseballProgress)(test.inning, test.isTop);
|
|
123
|
+
const half = test.isTop ? "Top" : "Bot";
|
|
124
|
+
console.log(` ${test.desc.padEnd(35)} Inn:${test.inning} ${half.padEnd(3)} → ${formatBPS(bps)}`);
|
|
125
|
+
}
|
|
126
|
+
// ===== NCAA BASKETBALL (LSports) =====
|
|
127
|
+
console.log("\n🏀 NCAA BASKETBALL (LSports) - 2 x 20 min halves, count-DOWN clock");
|
|
128
|
+
console.log(" Period 10 = 1st Half, Period 20 = 2nd Half");
|
|
129
|
+
console.log("-".repeat(60));
|
|
130
|
+
const ncaabTests = [
|
|
131
|
+
{ period: 10, clock: "20:00", desc: "1st Half Start (20:00 remaining)" },
|
|
132
|
+
{ period: 10, clock: "10:00", desc: "1st Half 10:00 remaining" },
|
|
133
|
+
{ period: 10, clock: "0:00", desc: "1st Half End / Halftime" },
|
|
134
|
+
{ period: 20, clock: "20:00", desc: "2nd Half Start" },
|
|
135
|
+
{ period: 20, clock: "10:00", desc: "2nd Half 10:00 remaining" },
|
|
136
|
+
{ period: 20, clock: "2:00", desc: "2nd Half 2:00 remaining" },
|
|
137
|
+
{ period: 20, clock: "0:00", desc: "Game End" },
|
|
138
|
+
];
|
|
139
|
+
for (const test of ncaabTests) {
|
|
140
|
+
const bps = (0, caclulate_game_progress_1.calculateNCAABProgress)(test.period, test.clock, core_1.OddsServices.LSPORTS);
|
|
141
|
+
console.log(` ${test.desc.padEnd(35)} P:${test.period} Clock:${test.clock.padEnd(6)} → ${formatBPS(bps)}`);
|
|
142
|
+
}
|
|
143
|
+
// ===== NCAA FOOTBALL (LSports) =====
|
|
144
|
+
console.log("\n🏈 NCAA FOOTBALL (LSports) - 2 x 30 min halves, count-UP clock");
|
|
145
|
+
console.log(" Period 10 = 1st Half, Period 20 = 2nd Half");
|
|
146
|
+
console.log("-".repeat(60));
|
|
147
|
+
const ncaafTests = [
|
|
148
|
+
{ period: 10, clock: "0:00", desc: "1st Half Start" },
|
|
149
|
+
{ period: 10, clock: "15:00", desc: "1st Half 15:00 (end Q1)" },
|
|
150
|
+
{ period: 10, clock: "30:00", desc: "1st Half End / Halftime" },
|
|
151
|
+
{ period: 20, clock: "0:00", desc: "2nd Half Start" },
|
|
152
|
+
{ period: 20, clock: "15:00", desc: "2nd Half 15:00 (end Q3)" },
|
|
153
|
+
{ period: 20, clock: "28:00", desc: "2nd Half 28:00 (2-min warning)" },
|
|
154
|
+
{ period: 20, clock: "30:00", desc: "Game End" },
|
|
155
|
+
];
|
|
156
|
+
for (const test of ncaafTests) {
|
|
157
|
+
const bps = (0, caclulate_game_progress_1.calculateNCAAFProgress)(test.period, test.clock, core_1.OddsServices.LSPORTS);
|
|
158
|
+
console.log(` ${test.desc.padEnd(35)} P:${test.period} Clock:${test.clock.padEnd(6)} → ${formatBPS(bps)}`);
|
|
159
|
+
}
|
|
160
|
+
console.log("\n" + "=".repeat(70));
|
|
161
|
+
console.log("✅ SIMULATION COMPLETE");
|
|
162
|
+
console.log("=".repeat(70) + "\n");
|
|
163
|
+
};
|
|
164
|
+
// Run the simulation
|
|
165
|
+
runSimulation();
|
|
166
|
+
//# sourceMappingURL=game.simulation.js.map
|
|
@@ -0,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