@memberjunction/global 2.111.0 → 2.112.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/dist/Core.d.ts +29 -0
- package/dist/Core.d.ts.map +1 -0
- package/dist/Core.js +58 -0
- package/dist/Core.js.map +1 -0
- package/dist/generic/QueryCache.d.ts +85 -0
- package/dist/generic/QueryCache.d.ts.map +1 -0
- package/dist/generic/QueryCache.js +198 -0
- package/dist/generic/QueryCache.js.map +1 -0
- package/dist/generic/QueryCacheConfig.d.ts +72 -0
- package/dist/generic/QueryCacheConfig.d.ts.map +1 -0
- package/dist/generic/QueryCacheConfig.js +3 -0
- package/dist/generic/QueryCacheConfig.js.map +1 -0
- package/dist/generic/applicationInfo.d.ts +138 -0
- package/dist/generic/applicationInfo.d.ts.map +1 -0
- package/dist/generic/applicationInfo.js +177 -0
- package/dist/generic/applicationInfo.js.map +1 -0
- package/dist/generic/authEvaluator.d.ts +25 -0
- package/dist/generic/authEvaluator.d.ts.map +1 -0
- package/dist/generic/authEvaluator.js +49 -0
- package/dist/generic/authEvaluator.js.map +1 -0
- package/dist/generic/authTypes.d.ts +193 -0
- package/dist/generic/authTypes.d.ts.map +1 -0
- package/dist/generic/authTypes.js +19 -0
- package/dist/generic/authTypes.js.map +1 -0
- package/dist/generic/baseEngine.d.ts +260 -0
- package/dist/generic/baseEngine.d.ts.map +1 -0
- package/dist/generic/baseEngine.js +510 -0
- package/dist/generic/baseEngine.js.map +1 -0
- package/dist/generic/baseEntity.d.ts +691 -0
- package/dist/generic/baseEntity.d.ts.map +1 -0
- package/dist/generic/baseEntity.js +1688 -0
- package/dist/generic/baseEntity.js.map +1 -0
- package/dist/generic/baseInfo.d.ts +24 -0
- package/dist/generic/baseInfo.d.ts.map +1 -0
- package/dist/generic/baseInfo.js +53 -0
- package/dist/generic/baseInfo.js.map +1 -0
- package/dist/generic/compositeKey.d.ts +206 -0
- package/dist/generic/compositeKey.d.ts.map +1 -0
- package/dist/generic/compositeKey.js +412 -0
- package/dist/generic/compositeKey.js.map +1 -0
- package/dist/generic/databaseProviderBase.d.ts +46 -0
- package/dist/generic/databaseProviderBase.d.ts.map +1 -0
- package/dist/generic/databaseProviderBase.js +14 -0
- package/dist/generic/databaseProviderBase.js.map +1 -0
- package/dist/generic/entityInfo.d.ts +983 -0
- package/dist/generic/entityInfo.d.ts.map +1 -0
- package/dist/generic/entityInfo.js +1401 -0
- package/dist/generic/entityInfo.js.map +1 -0
- package/dist/generic/explorerNavigationItem.d.ts +20 -0
- package/dist/generic/explorerNavigationItem.d.ts.map +1 -0
- package/dist/generic/explorerNavigationItem.js +29 -0
- package/dist/generic/explorerNavigationItem.js.map +1 -0
- package/dist/generic/interfaces.d.ts +610 -0
- package/dist/generic/interfaces.d.ts.map +1 -0
- package/dist/generic/interfaces.js +211 -0
- package/dist/generic/interfaces.js.map +1 -0
- package/dist/generic/libraryInfo.d.ts +40 -0
- package/dist/generic/libraryInfo.d.ts.map +1 -0
- package/dist/generic/libraryInfo.js +56 -0
- package/dist/generic/libraryInfo.js.map +1 -0
- package/dist/generic/logging.d.ts +179 -0
- package/dist/generic/logging.d.ts.map +1 -0
- package/dist/generic/logging.js +382 -0
- package/dist/generic/logging.js.map +1 -0
- package/dist/generic/metadata.d.ts +305 -0
- package/dist/generic/metadata.d.ts.map +1 -0
- package/dist/generic/metadata.js +454 -0
- package/dist/generic/metadata.js.map +1 -0
- package/dist/generic/metadataUtil.d.ts +8 -0
- package/dist/generic/metadataUtil.d.ts.map +1 -0
- package/dist/generic/metadataUtil.js +36 -0
- package/dist/generic/metadataUtil.js.map +1 -0
- package/dist/generic/providerBase.d.ts +546 -0
- package/dist/generic/providerBase.d.ts.map +1 -0
- package/dist/generic/providerBase.js +999 -0
- package/dist/generic/providerBase.js.map +1 -0
- package/dist/generic/queryInfo.d.ts +460 -0
- package/dist/generic/queryInfo.d.ts.map +1 -0
- package/dist/generic/queryInfo.js +633 -0
- package/dist/generic/queryInfo.js.map +1 -0
- package/dist/generic/querySQLFilters.d.ts +54 -0
- package/dist/generic/querySQLFilters.d.ts.map +1 -0
- package/dist/generic/querySQLFilters.js +84 -0
- package/dist/generic/querySQLFilters.js.map +1 -0
- package/dist/generic/runQuery.d.ts +96 -0
- package/dist/generic/runQuery.d.ts.map +1 -0
- package/dist/generic/runQuery.js +66 -0
- package/dist/generic/runQuery.js.map +1 -0
- package/dist/generic/runQuerySQLFilterImplementations.d.ts +51 -0
- package/dist/generic/runQuerySQLFilterImplementations.d.ts.map +1 -0
- package/dist/generic/runQuerySQLFilterImplementations.js +238 -0
- package/dist/generic/runQuerySQLFilterImplementations.js.map +1 -0
- package/dist/generic/runReport.d.ts +25 -0
- package/dist/generic/runReport.d.ts.map +1 -0
- package/dist/generic/runReport.js +42 -0
- package/dist/generic/runReport.js.map +1 -0
- package/dist/generic/securityInfo.d.ts +355 -0
- package/dist/generic/securityInfo.d.ts.map +1 -0
- package/dist/generic/securityInfo.js +425 -0
- package/dist/generic/securityInfo.js.map +1 -0
- package/dist/generic/transactionGroup.d.ts +184 -0
- package/dist/generic/transactionGroup.d.ts.map +1 -0
- package/dist/generic/transactionGroup.js +357 -0
- package/dist/generic/transactionGroup.js.map +1 -0
- package/dist/generic/util.d.ts +81 -0
- package/dist/generic/util.d.ts.map +1 -0
- package/dist/generic/util.js +301 -0
- package/dist/generic/util.js.map +1 -0
- package/dist/views/runView.d.ts +150 -0
- package/dist/views/runView.d.ts.map +1 -0
- package/dist/views/runView.js +100 -0
- package/dist/views/runView.js.map +1 -0
- package/dist/views/viewInfo.d.ts +121 -0
- package/dist/views/viewInfo.d.ts.map +1 -0
- package/dist/views/viewInfo.js +182 -0
- package/dist/views/viewInfo.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { BaseInfo } from '../generic/baseInfo';
|
|
2
|
+
import { EntityFieldInfo, EntityInfo } from '../generic/entityInfo';
|
|
3
|
+
import { IMetadataProvider } from '../generic/interfaces';
|
|
4
|
+
export declare class ViewColumnInfo extends BaseInfo {
|
|
5
|
+
ID: number;
|
|
6
|
+
Name: string;
|
|
7
|
+
DisplayName: string;
|
|
8
|
+
hidden: boolean;
|
|
9
|
+
width?: number;
|
|
10
|
+
orderIndex?: number;
|
|
11
|
+
EntityField: EntityFieldInfo;
|
|
12
|
+
constructor(initData?: any);
|
|
13
|
+
}
|
|
14
|
+
export declare const ViewFilterLogicInfo: {
|
|
15
|
+
readonly And: "And";
|
|
16
|
+
readonly Or: "Or";
|
|
17
|
+
};
|
|
18
|
+
export type ViewFilterLogicInfo = typeof ViewFilterLogicInfo[keyof typeof ViewFilterLogicInfo];
|
|
19
|
+
export declare class ViewFilterInfo extends BaseInfo {
|
|
20
|
+
logicOperator: ViewFilterLogicInfo;
|
|
21
|
+
field: string;
|
|
22
|
+
operator: string;
|
|
23
|
+
value: string;
|
|
24
|
+
filters: ViewFilterInfo[];
|
|
25
|
+
constructor(initData?: any);
|
|
26
|
+
}
|
|
27
|
+
export declare class ViewGridState {
|
|
28
|
+
sortSettings?: any;
|
|
29
|
+
columnSettings?: any;
|
|
30
|
+
filter?: any;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* This class represents a View in the system. A View is a saved set of filters, columns, and other settings that can be applied to a grid to show a specific set of data.
|
|
34
|
+
*/
|
|
35
|
+
export declare class ViewInfo extends BaseInfo {
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier for the view record
|
|
38
|
+
*/
|
|
39
|
+
ID: string;
|
|
40
|
+
/**
|
|
41
|
+
* Foreign key reference to the user who created this view
|
|
42
|
+
*/
|
|
43
|
+
UserID: number;
|
|
44
|
+
/**
|
|
45
|
+
* Foreign key reference to the entity this view is based on
|
|
46
|
+
*/
|
|
47
|
+
EntityID: number;
|
|
48
|
+
/**
|
|
49
|
+
* Name of the view for display and reference
|
|
50
|
+
*/
|
|
51
|
+
Name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Detailed description of what this view displays and its purpose
|
|
54
|
+
*/
|
|
55
|
+
Description: string;
|
|
56
|
+
/**
|
|
57
|
+
* Foreign key reference to the View Categories entity for organizing views
|
|
58
|
+
*/
|
|
59
|
+
CategoryID: number;
|
|
60
|
+
/**
|
|
61
|
+
* When true, this view is available to other users besides the creator
|
|
62
|
+
*/
|
|
63
|
+
IsShared: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* When true, this view is the default view for the entity
|
|
66
|
+
*/
|
|
67
|
+
IsDefault: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* JSON string containing the complete grid state including columns, sorting, and filters
|
|
70
|
+
*/
|
|
71
|
+
GridState: string;
|
|
72
|
+
/**
|
|
73
|
+
* JSON string containing the filter configuration for this view
|
|
74
|
+
*/
|
|
75
|
+
FilterState: string;
|
|
76
|
+
/**
|
|
77
|
+
* JSON string containing custom filter configuration added by the user
|
|
78
|
+
*/
|
|
79
|
+
CustomFilterState: string;
|
|
80
|
+
/**
|
|
81
|
+
* SQL WHERE clause generated from the filter state for query execution
|
|
82
|
+
*/
|
|
83
|
+
WhereClause: string;
|
|
84
|
+
/**
|
|
85
|
+
* Custom SQL WHERE clause that can be added to supplement the generated WHERE clause
|
|
86
|
+
*/
|
|
87
|
+
CustomWhereClause: string;
|
|
88
|
+
/**
|
|
89
|
+
* Date and time when this view was created
|
|
90
|
+
*/
|
|
91
|
+
__mj_CreatedAt: Date;
|
|
92
|
+
/**
|
|
93
|
+
* Date and time when this view was last updated
|
|
94
|
+
*/
|
|
95
|
+
__mj_UpdatedAt: Date;
|
|
96
|
+
/**
|
|
97
|
+
* Name of the user who owns this view (from related User entity)
|
|
98
|
+
*/
|
|
99
|
+
UserName: string;
|
|
100
|
+
/**
|
|
101
|
+
* Type of user who owns this view (from related User entity)
|
|
102
|
+
*/
|
|
103
|
+
UserType: string;
|
|
104
|
+
/**
|
|
105
|
+
* Name of the entity this view is based on (from related Entity)
|
|
106
|
+
*/
|
|
107
|
+
Entity: string;
|
|
108
|
+
/**
|
|
109
|
+
* Base view name for the entity used in queries
|
|
110
|
+
*/
|
|
111
|
+
EntityBaseView: string;
|
|
112
|
+
private _Filter;
|
|
113
|
+
get Filter(): ViewFilterInfo[];
|
|
114
|
+
private _Columns;
|
|
115
|
+
get Columns(): ViewColumnInfo[];
|
|
116
|
+
private _EntityInfo;
|
|
117
|
+
get EntityInfo(): EntityInfo;
|
|
118
|
+
InitFromData(md: IMetadataProvider, initData: any): void;
|
|
119
|
+
constructor(md: IMetadataProvider, initData?: any);
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=viewInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewInfo.d.ts","sourceRoot":"","sources":["../../src/views/viewInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,qBAAa,cAAe,SAAQ,QAAQ;IACxC,EAAE,EAAE,MAAM,CAAO;IACjB,IAAI,EAAE,MAAM,CAAO;IACnB,WAAW,EAAE,MAAM,CAAO;IAC1B,MAAM,EAAE,OAAO,CAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAO;IACrB,UAAU,CAAC,EAAE,MAAM,CAAO;IAE1B,WAAW,EAAE,eAAe,CAAO;gBAEtB,QAAQ,GAAE,GAAU;CAIpC;AAGD,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAG/F,qBAAa,cAAe,SAAQ,QAAQ;IACxC,aAAa,EAAE,mBAAmB,CAAO;IAEzC,KAAK,EAAE,MAAM,CAAO;IACpB,QAAQ,EAAE,MAAM,CAAO;IACvB,KAAK,EAAE,MAAM,CAAO;IA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W,CAAmB;IACtC,IAAW,UAAU,IAAI,UAAU,CAElC;IAEM,YAAY,CAAC,EAAE,EAAE,iBAAiB,EAAE,QAAQ,EAAE,GAAG;gBAyC3C,EAAE,EAAE,iBAAiB,EAAE,QAAQ,GAAE,GAAU;CAI3D"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViewInfo = exports.ViewGridState = exports.ViewFilterInfo = exports.ViewFilterLogicInfo = exports.ViewColumnInfo = void 0;
|
|
4
|
+
const baseInfo_1 = require("../generic/baseInfo");
|
|
5
|
+
const logging_1 = require("../generic/logging");
|
|
6
|
+
class ViewColumnInfo extends baseInfo_1.BaseInfo {
|
|
7
|
+
constructor(initData = null) {
|
|
8
|
+
super();
|
|
9
|
+
this.ID = null;
|
|
10
|
+
this.Name = null;
|
|
11
|
+
this.DisplayName = null;
|
|
12
|
+
this.hidden = null;
|
|
13
|
+
this.width = null;
|
|
14
|
+
this.orderIndex = null;
|
|
15
|
+
this.EntityField = null;
|
|
16
|
+
this.copyInitData(initData);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ViewColumnInfo = ViewColumnInfo;
|
|
20
|
+
exports.ViewFilterLogicInfo = {
|
|
21
|
+
And: 'And',
|
|
22
|
+
Or: 'Or',
|
|
23
|
+
};
|
|
24
|
+
class ViewFilterInfo extends baseInfo_1.BaseInfo {
|
|
25
|
+
constructor(initData = null) {
|
|
26
|
+
super();
|
|
27
|
+
this.logicOperator = null;
|
|
28
|
+
this.field = null;
|
|
29
|
+
this.operator = null;
|
|
30
|
+
this.value = null;
|
|
31
|
+
this.filters = [];
|
|
32
|
+
this.copyInitData(initData);
|
|
33
|
+
if (initData && initData.logic) {
|
|
34
|
+
this.logicOperator = initData.logic.trim().toLowerCase() == 'and' ? exports.ViewFilterLogicInfo.And : exports.ViewFilterLogicInfo.Or;
|
|
35
|
+
}
|
|
36
|
+
if (initData && initData.filters) {
|
|
37
|
+
this.filters = initData.filters.map(f => new ViewFilterInfo(f));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ViewFilterInfo = ViewFilterInfo;
|
|
42
|
+
class ViewGridState {
|
|
43
|
+
}
|
|
44
|
+
exports.ViewGridState = ViewGridState;
|
|
45
|
+
/**
|
|
46
|
+
* This class represents a View in the system. A View is a saved set of filters, columns, and other settings that can be applied to a grid to show a specific set of data.
|
|
47
|
+
*/
|
|
48
|
+
class ViewInfo extends baseInfo_1.BaseInfo {
|
|
49
|
+
get Filter() {
|
|
50
|
+
return this._Filter;
|
|
51
|
+
}
|
|
52
|
+
get Columns() {
|
|
53
|
+
return this._Columns;
|
|
54
|
+
}
|
|
55
|
+
get EntityInfo() {
|
|
56
|
+
return this._EntityInfo;
|
|
57
|
+
}
|
|
58
|
+
InitFromData(md, initData) {
|
|
59
|
+
try {
|
|
60
|
+
if (initData) {
|
|
61
|
+
this.copyInitData(initData);
|
|
62
|
+
if (initData.EntityID) {
|
|
63
|
+
const mdEntities = md.Entities;
|
|
64
|
+
const match = mdEntities.find(e => e.ID == initData.EntityID);
|
|
65
|
+
if (match)
|
|
66
|
+
this._EntityInfo = match;
|
|
67
|
+
}
|
|
68
|
+
else if (initData._EntityInfo)
|
|
69
|
+
this._EntityInfo = initData._EntityInfo;
|
|
70
|
+
// set up the filters and the columns
|
|
71
|
+
if (initData.GridState) {
|
|
72
|
+
const gridState = JSON.parse(initData.GridState);
|
|
73
|
+
if (gridState && gridState.columnSettings) {
|
|
74
|
+
this._Columns = gridState.columnSettings.map(c => {
|
|
75
|
+
// find the entity field and put it in place inside the View Metadata for easy access
|
|
76
|
+
if (c) {
|
|
77
|
+
// check to make sure the current item is non-null to ensure metadata isn't messed up
|
|
78
|
+
const field = this._EntityInfo.Fields.find(f => f.Name.trim().toLowerCase() == c.Name.trim().toLowerCase());
|
|
79
|
+
return new ViewColumnInfo({ ...c, EntityField: field });
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
(0, logging_1.LogError)('null column setting found in view grid state for columns - ViewID: ' + initData.ID);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (initData.FilterState) {
|
|
88
|
+
this._Filter = [new ViewFilterInfo(JSON.parse(initData.FilterState))];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
catch (e) {
|
|
93
|
+
(0, logging_1.LogError)(e);
|
|
94
|
+
throw e;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
constructor(md, initData = null) {
|
|
98
|
+
super();
|
|
99
|
+
/**
|
|
100
|
+
* Unique identifier for the view record
|
|
101
|
+
*/
|
|
102
|
+
this.ID = null;
|
|
103
|
+
/**
|
|
104
|
+
* Foreign key reference to the user who created this view
|
|
105
|
+
*/
|
|
106
|
+
this.UserID = null;
|
|
107
|
+
/**
|
|
108
|
+
* Foreign key reference to the entity this view is based on
|
|
109
|
+
*/
|
|
110
|
+
this.EntityID = null;
|
|
111
|
+
/**
|
|
112
|
+
* Name of the view for display and reference
|
|
113
|
+
*/
|
|
114
|
+
this.Name = null;
|
|
115
|
+
/**
|
|
116
|
+
* Detailed description of what this view displays and its purpose
|
|
117
|
+
*/
|
|
118
|
+
this.Description = null;
|
|
119
|
+
/**
|
|
120
|
+
* Foreign key reference to the View Categories entity for organizing views
|
|
121
|
+
*/
|
|
122
|
+
this.CategoryID = null;
|
|
123
|
+
/**
|
|
124
|
+
* When true, this view is available to other users besides the creator
|
|
125
|
+
*/
|
|
126
|
+
this.IsShared = null;
|
|
127
|
+
/**
|
|
128
|
+
* When true, this view is the default view for the entity
|
|
129
|
+
*/
|
|
130
|
+
this.IsDefault = null;
|
|
131
|
+
/**
|
|
132
|
+
* JSON string containing the complete grid state including columns, sorting, and filters
|
|
133
|
+
*/
|
|
134
|
+
this.GridState = null;
|
|
135
|
+
/**
|
|
136
|
+
* JSON string containing the filter configuration for this view
|
|
137
|
+
*/
|
|
138
|
+
this.FilterState = null;
|
|
139
|
+
/**
|
|
140
|
+
* JSON string containing custom filter configuration added by the user
|
|
141
|
+
*/
|
|
142
|
+
this.CustomFilterState = null;
|
|
143
|
+
/**
|
|
144
|
+
* SQL WHERE clause generated from the filter state for query execution
|
|
145
|
+
*/
|
|
146
|
+
this.WhereClause = null;
|
|
147
|
+
/**
|
|
148
|
+
* Custom SQL WHERE clause that can be added to supplement the generated WHERE clause
|
|
149
|
+
*/
|
|
150
|
+
this.CustomWhereClause = null;
|
|
151
|
+
/**
|
|
152
|
+
* Date and time when this view was created
|
|
153
|
+
*/
|
|
154
|
+
this.__mj_CreatedAt = null;
|
|
155
|
+
/**
|
|
156
|
+
* Date and time when this view was last updated
|
|
157
|
+
*/
|
|
158
|
+
this.__mj_UpdatedAt = null;
|
|
159
|
+
/**
|
|
160
|
+
* Name of the user who owns this view (from related User entity)
|
|
161
|
+
*/
|
|
162
|
+
this.UserName = null;
|
|
163
|
+
/**
|
|
164
|
+
* Type of user who owns this view (from related User entity)
|
|
165
|
+
*/
|
|
166
|
+
this.UserType = null;
|
|
167
|
+
/**
|
|
168
|
+
* Name of the entity this view is based on (from related Entity)
|
|
169
|
+
*/
|
|
170
|
+
this.Entity = null;
|
|
171
|
+
/**
|
|
172
|
+
* Base view name for the entity used in queries
|
|
173
|
+
*/
|
|
174
|
+
this.EntityBaseView = null;
|
|
175
|
+
this._Filter = [];
|
|
176
|
+
this._Columns = [];
|
|
177
|
+
this._EntityInfo = null;
|
|
178
|
+
this.InitFromData(md, initData);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.ViewInfo = ViewInfo;
|
|
182
|
+
//# sourceMappingURL=viewInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewInfo.js","sourceRoot":"","sources":["../../src/views/viewInfo.ts"],"names":[],"mappings":";;;AAAA,kDAA8C;AAG9C,gDAA8C;A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