@tomei/sso 0.26.9 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/group-object-privilege/group-object-privilege.d.ts +2 -0
- package/dist/src/components/group-object-privilege/group-object-privilege.js +1 -0
- package/dist/src/components/group-object-privilege/group-object-privilege.js.map +1 -1
- package/dist/src/components/user-object-privilege/user-object-privilege.d.ts +2 -0
- package/dist/src/components/user-object-privilege/user-object-privilege.js +1 -0
- package/dist/src/components/user-object-privilege/user-object-privilege.js.map +1 -1
- package/dist/src/enum/index.d.ts +1 -0
- package/dist/src/enum/index.js +1 -0
- package/dist/src/enum/index.js.map +1 -1
- package/dist/src/enum/object-status.enum.d.ts +4 -0
- package/dist/src/enum/object-status.enum.js +9 -0
- package/dist/src/enum/object-status.enum.js.map +1 -0
- package/dist/src/interfaces/group-object-privilege.interface.d.ts +2 -0
- package/dist/src/interfaces/user-object-privilege.interface.d.ts +2 -0
- package/dist/src/models/group-object-privilege.entity.d.ts +2 -0
- package/dist/src/models/group-object-privilege.entity.js +8 -0
- package/dist/src/models/group-object-privilege.entity.js.map +1 -1
- package/dist/src/models/user-object-privilege.entity.d.ts +2 -0
- package/dist/src/models/user-object-privilege.entity.js +8 -0
- package/dist/src/models/user-object-privilege.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/20240527064926-create-system-privilege-table.js +1 -1
- package/migrations/20240527065342-create-group-table.js +1 -1
- package/migrations/20240527065633-create-group-reporting-user-table.js +1 -1
- package/migrations/20240528011551-create-group-system-access-table.js +1 -1
- package/migrations/20240528023018-user-system-access-table.js +1 -1
- package/migrations/20240528032229-user-privilege-table.js +1 -1
- package/migrations/20240528063003-create-group-privilege-table.js +1 -1
- package/migrations/20240528063051-create-group-object-privilege-table.js +5 -0
- package/migrations/20240528063107-create-user-object-privilege-table.js +5 -0
- package/package.json +1 -1
- package/src/components/group-object-privilege/group-object-privilege.ts +3 -0
- package/src/components/user-object-privilege/user-object-privilege.ts +3 -0
- package/src/enum/index.ts +1 -0
- package/src/enum/object-status.enum.ts +4 -0
- package/src/interfaces/group-object-privilege.interface.ts +3 -0
- package/src/interfaces/user-object-privilege.interface.ts +3 -0
- package/src/models/group-object-privilege.entity.ts +7 -0
- package/src/models/user-object-privilege.entity.ts +7 -0
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ObjectBase } from '@tomei/general';
|
2
2
|
import { IGroupObjectPrivilegeAttr } from '../../interfaces/group-object-privilege.interface';
|
3
|
+
import { ObjectStatus } from '../../enum/object-status.enum';
|
3
4
|
export declare class GroupObjectPrivilege extends ObjectBase {
|
4
5
|
TableName: string;
|
5
6
|
ObjectName: string;
|
@@ -8,6 +9,7 @@ export declare class GroupObjectPrivilege extends ObjectBase {
|
|
8
9
|
PrivilegeCode: string;
|
9
10
|
ObjectId: string;
|
10
11
|
ObjectType: string;
|
12
|
+
Status: ObjectStatus;
|
11
13
|
private _CreatedAt;
|
12
14
|
private _UpdatedAt;
|
13
15
|
private _CreatedById;
|
@@ -35,6 +35,7 @@ class GroupObjectPrivilege extends general_1.ObjectBase {
|
|
35
35
|
this.PrivilegeCode = GroupObjectPrivilegeAttr.PrivilegeCode;
|
36
36
|
this.ObjectId = GroupObjectPrivilegeAttr.ObjectId;
|
37
37
|
this.ObjectType = GroupObjectPrivilegeAttr.ObjectType;
|
38
|
+
this.Status = GroupObjectPrivilegeAttr.Status;
|
38
39
|
this._CreatedAt = GroupObjectPrivilegeAttr.CreatedAt;
|
39
40
|
this._UpdatedAt = GroupObjectPrivilegeAttr.UpdatedAt;
|
40
41
|
this._CreatedById = GroupObjectPrivilegeAttr.CreatedById;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group-object-privilege.js","sourceRoot":"","sources":["../../../../src/components/group-object-privilege/group-object-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,2FAAqF;
|
1
|
+
{"version":3,"file":"group-object-privilege.js","sourceRoot":"","sources":["../../../../src/components/group-object-privilege/group-object-privilege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AAK,EAAE,EAAE,sBAAsB,EAAE;wBACjC,WAAW,EAAE,aAAa;qBAC3B,CAAC,CAAC;oBACH,IAAI,wBAAwB,EAAE;wBAC5B,OAAO,IAAI,oBAAoB,CAC7B,wBAAwB,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAC9C,CAAC;qBACH;yBAAM;wBACL,MAAM,IAAI,oBAAU,CAClB,sBAAsB,EACtB,8BAA8B,EAC9B,gCAAgC,CACjC,CAAC;qBACH;iBACF;gBACD,OAAO,IAAI,oBAAoB,EAAE,CAAC;aACnC;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AA3EH,oDA4EC;AA9CgB,gCAAW,GAAG,IAAI,kEAA8B,EAAE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ObjectBase } from '@tomei/general';
|
2
|
+
import { ObjectStatus } from '../../enum/object-status.enum';
|
2
3
|
export declare class UserObjectPrivilege extends ObjectBase {
|
3
4
|
TableName: string;
|
4
5
|
ObjectName: string;
|
@@ -7,6 +8,7 @@ export declare class UserObjectPrivilege extends ObjectBase {
|
|
7
8
|
PrivilegeCode: string;
|
8
9
|
ObjectId: string;
|
9
10
|
ObjectType: string;
|
11
|
+
Status: ObjectStatus;
|
10
12
|
private _CreatedAt;
|
11
13
|
private _UpdatedAt;
|
12
14
|
private _CreatedById;
|
@@ -34,6 +34,7 @@ class UserObjectPrivilege extends general_1.ObjectBase {
|
|
34
34
|
this.PrivilegeCode = userObjectPrivilegeAttr.PrivilegeCode;
|
35
35
|
this.ObjectId = userObjectPrivilegeAttr.ObjectId;
|
36
36
|
this.ObjectType = userObjectPrivilegeAttr.ObjectType;
|
37
|
+
this.Status = userObjectPrivilegeAttr.Status;
|
37
38
|
this._CreatedAt = userObjectPrivilegeAttr.CreatedAt;
|
38
39
|
this._UpdatedAt = userObjectPrivilegeAttr.UpdatedAt;
|
39
40
|
this._CreatedById = userObjectPrivilegeAttr.CreatedById;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-object-privilege.js","sourceRoot":"","sources":["../../../../src/components/user-object-privilege/user-object-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,yFAAmF;
|
1
|
+
{"version":3,"file":"user-object-privilege.js","sourceRoot":"","sources":["../../../../src/components/user-object-privilege/user-object-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,yFAAmF;AAInF,MAAa,mBAAoB,SAAQ,oBAAU;IAcjD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAID,YAAoB,uBAAkD;QACpE,KAAK,EAAE,CAAC;QAhCV,cAAS,GAAG,yBAAyB,CAAC;QAiCpC,IAAI,uBAAuB,EAAE;YAC3B,IAAI,CAAC,iBAAiB,GAAG,uBAAuB,CAAC,iBAAiB,CAAC;YACnE,IAAI,CAAC,MAAM,GAAG,uBAAuB,CAAC,MAAM,CAAC;YAC7C,IAAI,CAAC,aAAa,GAAG,uBAAuB,CAAC,aAAa,CAAC;YAC3D,IAAI,CAAC,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC;YACjD,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,UAAU,CAAC;YACrD,IAAI,CAAC,MAAM,GAAG,uBAAuB,CAAC,MAAM,CAAC;YAC7C,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,SAAS,CAAC;YACpD,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,SAAS,CAAC;YACpD,IAAI,CAAC,YAAY,GAAG,uBAAuB,CAAC,WAAW,CAAC;YACxD,IAAI,CAAC,YAAY,GAAG,uBAAuB,CAAC,WAAW,CAAC;SACzD;IACH,CAAC;IAEM,MAAM,CAAO,IAAI,CAAC,aAAmB,EAAE,iBAA0B;;YACtE,IAAI;gBACF,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC;gBACtD,IAAI,iBAAiB,EAAE;oBACrB,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;wBAC7D,KAAK,EAAE,EAAE,iBAAiB,EAAE;wBAC5B,WAAW,EAAE,aAAa;qBAC3B,CAAC,CAAC;oBACH,IAAI,uBAAuB,EAAE;wBAC3B,OAAO,IAAI,mBAAmB,CAC5B,uBAAuB,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAC7C,CAAC;qBACH;yBAAM;wBACL,MAAM,IAAI,oBAAU,CAClB,qBAAqB,EACrB,6BAA6B,EAC7B,+BAA+B,CAChC,CAAC;qBACH;iBACF;gBACD,OAAO,mBAAmB,CAAC;aAC5B;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AAxEH,kDAyEC;AA3CgB,+BAAW,GAAG,IAAI,gEAA6B,EAAE,CAAC"}
|
package/dist/src/enum/index.d.ts
CHANGED
package/dist/src/enum/index.js
CHANGED
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./yn.enum"), exports);
|
18
18
|
__exportStar(require("./user-status.enum"), exports);
|
19
19
|
__exportStar(require("./group-type.enum"), exports);
|
20
|
+
__exportStar(require("./object-status.enum"), exports);
|
20
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,qDAAmC;AACnC,oDAAkC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,qDAAmC;AACnC,oDAAkC;AAClC,uDAAqC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ObjectStatus = void 0;
|
4
|
+
var ObjectStatus;
|
5
|
+
(function (ObjectStatus) {
|
6
|
+
ObjectStatus["ACTIVE"] = "Active";
|
7
|
+
ObjectStatus["INACTIVE"] = "Inactive";
|
8
|
+
})(ObjectStatus = exports.ObjectStatus || (exports.ObjectStatus = {}));
|
9
|
+
//# sourceMappingURL=object-status.enum.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"object-status.enum.js","sourceRoot":"","sources":["../../../src/enum/object-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
|
@@ -1,9 +1,11 @@
|
|
1
|
+
import { ObjectStatus } from '../enum/object-status.enum';
|
1
2
|
export interface IGroupObjectPrivilegeAttr {
|
2
3
|
GroupObjectPrivilegeId: number;
|
3
4
|
GroupCode: string;
|
4
5
|
PrivilegeCode: string;
|
5
6
|
ObjectId: string;
|
6
7
|
ObjectType: string;
|
8
|
+
Status: ObjectStatus;
|
7
9
|
CreatedById: number;
|
8
10
|
UpdatedById: number;
|
9
11
|
CreatedAt: Date;
|
@@ -1,9 +1,11 @@
|
|
1
|
+
import { ObjectStatus } from '../enum/object-status.enum';
|
1
2
|
export interface IUserObjectPrivilegeAttr {
|
2
3
|
ObjectPrivilegeId: number;
|
3
4
|
UserId: number;
|
4
5
|
PrivilegeCode: string;
|
5
6
|
ObjectId: string;
|
6
7
|
ObjectType: string;
|
8
|
+
Status: ObjectStatus;
|
7
9
|
CreatedById: number;
|
8
10
|
UpdatedById: number;
|
9
11
|
CreatedAt: Date;
|
@@ -2,12 +2,14 @@ import { Model } from 'sequelize-typescript';
|
|
2
2
|
import User from './user.entity';
|
3
3
|
import GroupModel from './group.entity';
|
4
4
|
import SystemPrivilegeModel from './system-privilege.entity';
|
5
|
+
import { ObjectStatus } from '../enum/object-status.enum';
|
5
6
|
export default class GroupObjectPrivilegeModel extends Model {
|
6
7
|
GroupObjectPrivilegeId: number;
|
7
8
|
GroupCode: string;
|
8
9
|
PrivilegeCode: string;
|
9
10
|
ObjectId: string;
|
10
11
|
ObjectType: string;
|
12
|
+
Status: ObjectStatus;
|
11
13
|
CreatedById: number;
|
12
14
|
UpdatedById: number;
|
13
15
|
CreatedAt: Date;
|
@@ -13,6 +13,7 @@ const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
13
|
const user_entity_1 = require("./user.entity");
|
14
14
|
const group_entity_1 = require("./group.entity");
|
15
15
|
const system_privilege_entity_1 = require("./system-privilege.entity");
|
16
|
+
const object_status_enum_1 = require("../enum/object-status.enum");
|
16
17
|
let GroupObjectPrivilegeModel = class GroupObjectPrivilegeModel extends sequelize_typescript_1.Model {
|
17
18
|
};
|
18
19
|
__decorate([
|
@@ -52,6 +53,13 @@ __decorate([
|
|
52
53
|
}),
|
53
54
|
__metadata("design:type", String)
|
54
55
|
], GroupObjectPrivilegeModel.prototype, "ObjectType", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, sequelize_typescript_1.Column)({
|
58
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
59
|
+
allowNull: false,
|
60
|
+
}),
|
61
|
+
__metadata("design:type", String)
|
62
|
+
], GroupObjectPrivilegeModel.prototype, "Status", void 0);
|
55
63
|
__decorate([
|
56
64
|
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.default),
|
57
65
|
(0, sequelize_typescript_1.Column)({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/group-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AACxC,uEAA6D;
|
1
|
+
{"version":3,"file":"group-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/group-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AACxC,uEAA6D;AAC7D,mEAA0D;AAQ3C,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,4BAAK;CAoE3D,CAAA;AAnEC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACjB,CAAC;;yEAC6B;AAE/B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;IAC5B,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACgB;AAElB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;IACtC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,KAAK;KACjB,CAAC;;gEACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACjB,CAAC;;2DACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACjB,CAAC;;6DACiB;AAEnB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,KAAK;KACjB,CAAC;;yDACmB;AAErB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;8DACkB;AAEpB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;8DACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;4DAAC;AAEhB;IAAC,gCAAS;8BACC,IAAI;4DAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;8BAC3B,iCAAoB;4DAAC;AAEhC;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;8BACrB,sBAAU;wDAAC;AAElB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;gEAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;gEAAC;AAnED,yBAAyB;IAN7C,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,0BAA0B;QACrC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,yBAAyB,CAoE7C;kBApEoB,yBAAyB"}
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { Model } from 'sequelize-typescript';
|
2
2
|
import User from './user.entity';
|
3
3
|
import SystemPrivilegeModel from './system-privilege.entity';
|
4
|
+
import { ObjectStatus } from '../enum/object-status.enum';
|
4
5
|
export default class UserObjectPrivilegeModel extends Model {
|
5
6
|
ObjectPrivilegeId: number;
|
6
7
|
UserId: number;
|
7
8
|
PrivilegeCode: string;
|
8
9
|
ObjectId: string;
|
9
10
|
ObjectType: string;
|
11
|
+
Status: ObjectStatus;
|
10
12
|
CreatedById: number;
|
11
13
|
UpdatedById: number;
|
12
14
|
CreatedAt: Date;
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
13
13
|
const user_entity_1 = require("./user.entity");
|
14
14
|
const system_privilege_entity_1 = require("./system-privilege.entity");
|
15
|
+
const object_status_enum_1 = require("../enum/object-status.enum");
|
15
16
|
let UserObjectPrivilegeModel = class UserObjectPrivilegeModel extends sequelize_typescript_1.Model {
|
16
17
|
};
|
17
18
|
__decorate([
|
@@ -51,6 +52,13 @@ __decorate([
|
|
51
52
|
}),
|
52
53
|
__metadata("design:type", String)
|
53
54
|
], UserObjectPrivilegeModel.prototype, "ObjectType", void 0);
|
55
|
+
__decorate([
|
56
|
+
(0, sequelize_typescript_1.Column)({
|
57
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
58
|
+
allowNull: false,
|
59
|
+
}),
|
60
|
+
__metadata("design:type", String)
|
61
|
+
], UserObjectPrivilegeModel.prototype, "Status", void 0);
|
54
62
|
__decorate([
|
55
63
|
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.default),
|
56
64
|
(0, sequelize_typescript_1.Column)({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/user-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,uEAA6D;
|
1
|
+
{"version":3,"file":"user-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/user-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,uEAA6D;AAC7D,mEAA0D;AAQ3C,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,4BAAK;CAoE1D,CAAA;AAn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