@ngxs/router-plugin 3.7.4 → 3.7.5
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/README.md +4 -4
- package/bundles/ngxs-router-plugin.umd.js +751 -854
- package/bundles/ngxs-router-plugin.umd.js.map +1 -1
- package/bundles/ngxs-router-plugin.umd.min.js +2 -2
- package/bundles/ngxs-router-plugin.umd.min.js.map +1 -1
- package/esm2015/index.js +9 -9
- package/esm2015/ngxs-router-plugin.js +8 -8
- package/esm2015/src/public_api.js +9 -9
- package/esm2015/src/router.actions.js +172 -172
- package/esm2015/src/router.module.js +25 -25
- package/esm2015/src/router.state.js +368 -463
- package/esm2015/src/serializer.js +72 -72
- package/esm5/index.js +9 -9
- package/esm5/ngxs-router-plugin.js +8 -8
- package/esm5/src/public_api.js +9 -9
- package/esm5/src/router.actions.js +227 -227
- package/esm5/src/router.module.js +32 -32
- package/esm5/src/router.state.js +446 -552
- package/esm5/src/serializer.js +98 -98
- package/fesm2015/ngxs-router-plugin.js +623 -718
- package/fesm2015/ngxs-router-plugin.js.map +1 -1
- package/fesm5/ngxs-router-plugin.js +757 -863
- package/fesm5/ngxs-router-plugin.js.map +1 -1
- package/index.d.ts +4 -4
- package/ngxs-router-plugin.d.ts +5 -5
- package/ngxs-router-plugin.metadata.json +1 -1
- package/package.json +2 -2
- package/src/public_api.d.ts +4 -4
- package/src/router.actions.d.ts +63 -63
- package/src/router.module.d.ts +4 -4
- package/src/router.state.d.ts +50 -60
- package/src/serializer.d.ts +12 -12
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Public event api of the router
|
|
7
|
-
*/
|
|
8
|
-
export class Navigate {
|
|
9
|
-
/**
|
|
10
|
-
* @param {?} path
|
|
11
|
-
* @param {?=} queryParams
|
|
12
|
-
* @param {?=} extras
|
|
13
|
-
*/
|
|
14
|
-
constructor(path, queryParams, extras) {
|
|
15
|
-
this.path = path;
|
|
16
|
-
this.queryParams = queryParams;
|
|
17
|
-
this.extras = extras;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @return {?}
|
|
21
|
-
*/
|
|
22
|
-
static get type() {
|
|
23
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
24
|
-
return '[Router] Navigate';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (false) {
|
|
28
|
-
/** @type {?} */
|
|
29
|
-
Navigate.prototype.path;
|
|
30
|
-
/** @type {?} */
|
|
31
|
-
Navigate.prototype.queryParams;
|
|
32
|
-
/** @type {?} */
|
|
33
|
-
Navigate.prototype.extras;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* Angular Routers internal state events
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* An action dispatched when the router navigates.
|
|
42
|
-
* @template T
|
|
43
|
-
*/
|
|
44
|
-
export class RouterNavigation {
|
|
45
|
-
/**
|
|
46
|
-
* @param {?} routerState
|
|
47
|
-
* @param {?} event
|
|
48
|
-
* @param {?=} trigger
|
|
49
|
-
*/
|
|
50
|
-
constructor(routerState, event, trigger = 'none') {
|
|
51
|
-
this.routerState = routerState;
|
|
52
|
-
this.event = event;
|
|
53
|
-
this.trigger = trigger;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* @return {?}
|
|
57
|
-
*/
|
|
58
|
-
static get type() {
|
|
59
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
60
|
-
return '[Router] RouterNavigation';
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (false) {
|
|
64
|
-
/** @type {?} */
|
|
65
|
-
RouterNavigation.prototype.routerState;
|
|
66
|
-
/** @type {?} */
|
|
67
|
-
RouterNavigation.prototype.event;
|
|
68
|
-
/** @type {?} */
|
|
69
|
-
RouterNavigation.prototype.trigger;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* An action dispatched when the router cancel navigation.
|
|
73
|
-
* @template T, V
|
|
74
|
-
*/
|
|
75
|
-
export class RouterCancel {
|
|
76
|
-
/**
|
|
77
|
-
* @param {?} routerState
|
|
78
|
-
* @param {?} storeState
|
|
79
|
-
* @param {?} event
|
|
80
|
-
* @param {?=} trigger
|
|
81
|
-
*/
|
|
82
|
-
constructor(routerState, storeState, event, trigger = 'none') {
|
|
83
|
-
this.routerState = routerState;
|
|
84
|
-
this.storeState = storeState;
|
|
85
|
-
this.event = event;
|
|
86
|
-
this.trigger = trigger;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
static get type() {
|
|
92
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
93
|
-
return '[Router] RouterCancel';
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if (false) {
|
|
97
|
-
/** @type {?} */
|
|
98
|
-
RouterCancel.prototype.routerState;
|
|
99
|
-
/** @type {?} */
|
|
100
|
-
RouterCancel.prototype.storeState;
|
|
101
|
-
/** @type {?} */
|
|
102
|
-
RouterCancel.prototype.event;
|
|
103
|
-
/** @type {?} */
|
|
104
|
-
RouterCancel.prototype.trigger;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* An action dispatched when the router errors.
|
|
108
|
-
* @template T, V
|
|
109
|
-
*/
|
|
110
|
-
export class RouterError {
|
|
111
|
-
/**
|
|
112
|
-
* @param {?} routerState
|
|
113
|
-
* @param {?} storeState
|
|
114
|
-
* @param {?} event
|
|
115
|
-
* @param {?=} trigger
|
|
116
|
-
*/
|
|
117
|
-
constructor(routerState, storeState, event, trigger = 'none') {
|
|
118
|
-
this.routerState = routerState;
|
|
119
|
-
this.storeState = storeState;
|
|
120
|
-
this.event = event;
|
|
121
|
-
this.trigger = trigger;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @return {?}
|
|
125
|
-
*/
|
|
126
|
-
static get type() {
|
|
127
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
128
|
-
return '[Router] RouterError';
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if (false) {
|
|
132
|
-
/** @type {?} */
|
|
133
|
-
RouterError.prototype.routerState;
|
|
134
|
-
/** @type {?} */
|
|
135
|
-
RouterError.prototype.storeState;
|
|
136
|
-
/** @type {?} */
|
|
137
|
-
RouterError.prototype.event;
|
|
138
|
-
/** @type {?} */
|
|
139
|
-
RouterError.prototype.trigger;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* An action dispatched when the `ResolveEnd` event is triggered.
|
|
143
|
-
* @template T
|
|
144
|
-
*/
|
|
145
|
-
export class RouterDataResolved {
|
|
146
|
-
/**
|
|
147
|
-
* @param {?} routerState
|
|
148
|
-
* @param {?} event
|
|
149
|
-
* @param {?=} trigger
|
|
150
|
-
*/
|
|
151
|
-
constructor(routerState, event, trigger = 'none') {
|
|
152
|
-
this.routerState = routerState;
|
|
153
|
-
this.event = event;
|
|
154
|
-
this.trigger = trigger;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* @return {?}
|
|
158
|
-
*/
|
|
159
|
-
static get type() {
|
|
160
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
161
|
-
return '[Router] RouterDataResolved';
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
if (false) {
|
|
165
|
-
/** @type {?} */
|
|
166
|
-
RouterDataResolved.prototype.routerState;
|
|
167
|
-
/** @type {?} */
|
|
168
|
-
RouterDataResolved.prototype.event;
|
|
169
|
-
/** @type {?} */
|
|
170
|
-
RouterDataResolved.prototype.trigger;
|
|
171
|
-
}
|
|
172
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Public event api of the router
|
|
7
|
+
*/
|
|
8
|
+
export class Navigate {
|
|
9
|
+
/**
|
|
10
|
+
* @param {?} path
|
|
11
|
+
* @param {?=} queryParams
|
|
12
|
+
* @param {?=} extras
|
|
13
|
+
*/
|
|
14
|
+
constructor(path, queryParams, extras) {
|
|
15
|
+
this.path = path;
|
|
16
|
+
this.queryParams = queryParams;
|
|
17
|
+
this.extras = extras;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
static get type() {
|
|
23
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
24
|
+
return '[Router] Navigate';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (false) {
|
|
28
|
+
/** @type {?} */
|
|
29
|
+
Navigate.prototype.path;
|
|
30
|
+
/** @type {?} */
|
|
31
|
+
Navigate.prototype.queryParams;
|
|
32
|
+
/** @type {?} */
|
|
33
|
+
Navigate.prototype.extras;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* Angular Routers internal state events
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* An action dispatched when the router navigates.
|
|
42
|
+
* @template T
|
|
43
|
+
*/
|
|
44
|
+
export class RouterNavigation {
|
|
45
|
+
/**
|
|
46
|
+
* @param {?} routerState
|
|
47
|
+
* @param {?} event
|
|
48
|
+
* @param {?=} trigger
|
|
49
|
+
*/
|
|
50
|
+
constructor(routerState, event, trigger = 'none') {
|
|
51
|
+
this.routerState = routerState;
|
|
52
|
+
this.event = event;
|
|
53
|
+
this.trigger = trigger;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @return {?}
|
|
57
|
+
*/
|
|
58
|
+
static get type() {
|
|
59
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
60
|
+
return '[Router] RouterNavigation';
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (false) {
|
|
64
|
+
/** @type {?} */
|
|
65
|
+
RouterNavigation.prototype.routerState;
|
|
66
|
+
/** @type {?} */
|
|
67
|
+
RouterNavigation.prototype.event;
|
|
68
|
+
/** @type {?} */
|
|
69
|
+
RouterNavigation.prototype.trigger;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* An action dispatched when the router cancel navigation.
|
|
73
|
+
* @template T, V
|
|
74
|
+
*/
|
|
75
|
+
export class RouterCancel {
|
|
76
|
+
/**
|
|
77
|
+
* @param {?} routerState
|
|
78
|
+
* @param {?} storeState
|
|
79
|
+
* @param {?} event
|
|
80
|
+
* @param {?=} trigger
|
|
81
|
+
*/
|
|
82
|
+
constructor(routerState, storeState, event, trigger = 'none') {
|
|
83
|
+
this.routerState = routerState;
|
|
84
|
+
this.storeState = storeState;
|
|
85
|
+
this.event = event;
|
|
86
|
+
this.trigger = trigger;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @return {?}
|
|
90
|
+
*/
|
|
91
|
+
static get type() {
|
|
92
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
93
|
+
return '[Router] RouterCancel';
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (false) {
|
|
97
|
+
/** @type {?} */
|
|
98
|
+
RouterCancel.prototype.routerState;
|
|
99
|
+
/** @type {?} */
|
|
100
|
+
RouterCancel.prototype.storeState;
|
|
101
|
+
/** @type {?} */
|
|
102
|
+
RouterCancel.prototype.event;
|
|
103
|
+
/** @type {?} */
|
|
104
|
+
RouterCancel.prototype.trigger;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* An action dispatched when the router errors.
|
|
108
|
+
* @template T, V
|
|
109
|
+
*/
|
|
110
|
+
export class RouterError {
|
|
111
|
+
/**
|
|
112
|
+
* @param {?} routerState
|
|
113
|
+
* @param {?} storeState
|
|
114
|
+
* @param {?} event
|
|
115
|
+
* @param {?=} trigger
|
|
116
|
+
*/
|
|
117
|
+
constructor(routerState, storeState, event, trigger = 'none') {
|
|
118
|
+
this.routerState = routerState;
|
|
119
|
+
this.storeState = storeState;
|
|
120
|
+
this.event = event;
|
|
121
|
+
this.trigger = trigger;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @return {?}
|
|
125
|
+
*/
|
|
126
|
+
static get type() {
|
|
127
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
128
|
+
return '[Router] RouterError';
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (false) {
|
|
132
|
+
/** @type {?} */
|
|
133
|
+
RouterError.prototype.routerState;
|
|
134
|
+
/** @type {?} */
|
|
135
|
+
RouterError.prototype.storeState;
|
|
136
|
+
/** @type {?} */
|
|
137
|
+
RouterError.prototype.event;
|
|
138
|
+
/** @type {?} */
|
|
139
|
+
RouterError.prototype.trigger;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* An action dispatched when the `ResolveEnd` event is triggered.
|
|
143
|
+
* @template T
|
|
144
|
+
*/
|
|
145
|
+
export class RouterDataResolved {
|
|
146
|
+
/**
|
|
147
|
+
* @param {?} routerState
|
|
148
|
+
* @param {?} event
|
|
149
|
+
* @param {?=} trigger
|
|
150
|
+
*/
|
|
151
|
+
constructor(routerState, event, trigger = 'none') {
|
|
152
|
+
this.routerState = routerState;
|
|
153
|
+
this.event = event;
|
|
154
|
+
this.trigger = trigger;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @return {?}
|
|
158
|
+
*/
|
|
159
|
+
static get type() {
|
|
160
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
161
|
+
return '[Router] RouterDataResolved';
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (false) {
|
|
165
|
+
/** @type {?} */
|
|
166
|
+
RouterDataResolved.prototype.routerState;
|
|
167
|
+
/** @type {?} */
|
|
168
|
+
RouterDataResolved.prototype.event;
|
|
169
|
+
/** @type {?} */
|
|
170
|
+
RouterDataResolved.prototype.trigger;
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyLmFjdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4cy9yb3V0ZXItcGx1Z2luLyIsInNvdXJjZXMiOlsic3JjL3JvdXRlci5hY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFlQSxNQUFNLE9BQU8sUUFBUTs7Ozs7O0lBS25CLFlBQ1MsSUFBVyxFQUNYLFdBQW9CLEVBQ3BCLE1BQXlCO1FBRnpCLFNBQUksR0FBSixJQUFJLENBQU87UUFDWCxnQkFBVyxHQUFYLFdBQVcsQ0FBUztRQUNwQixXQUFNLEdBQU4sTUFBTSxDQUFtQjtJQUMvQixDQUFDOzs7O0lBUkosTUFBTSxLQUFLLElBQUk7UUFDYixzSUFBc0k7UUFDdEksT0FBTyxtQkFBbUIsQ0FBQztJQUM3QixDQUFDO0NBTUY7OztJQUpHLHdCQUFrQjs7SUFDbEIsK0JBQTJCOztJQUMzQiwwQkFBZ0M7Ozs7Ozs7Ozs7O0FBYXBDLE1BQU0sT0FBTyxnQkFBZ0I7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VsPFQsIFY+XG4gIHwgUm91dGVyRXJyb3I8VCwgVj5cbiAgfCBSb3V0ZXJEYXRhUmVzb2x2ZWQ8Vj47XG4iXX0=
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { NgxsModule } from '@ngxs/store';
|
|
7
|
-
import { RouterState } from './router.state';
|
|
8
|
-
import { DefaultRouterStateSerializer, RouterStateSerializer } from './serializer';
|
|
9
|
-
export class NgxsRouterPluginModule {
|
|
10
|
-
/**
|
|
11
|
-
* @return {?}
|
|
12
|
-
*/
|
|
13
|
-
static forRoot() {
|
|
14
|
-
return {
|
|
15
|
-
ngModule: NgxsRouterPluginModule,
|
|
16
|
-
providers: [{ provide: RouterStateSerializer, useClass: DefaultRouterStateSerializer }]
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
NgxsRouterPluginModule.decorators = [
|
|
21
|
-
{ type: NgModule, args: [{
|
|
22
|
-
imports: [NgxsModule.forFeature([RouterState])]
|
|
23
|
-
},] }
|
|
24
|
-
];
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { NgxsModule } from '@ngxs/store';
|
|
7
|
+
import { RouterState } from './router.state';
|
|
8
|
+
import { DefaultRouterStateSerializer, RouterStateSerializer } from './serializer';
|
|
9
|
+
export class NgxsRouterPluginModule {
|
|
10
|
+
/**
|
|
11
|
+
* @return {?}
|
|
12
|
+
*/
|
|
13
|
+
static forRoot() {
|
|
14
|
+
return {
|
|
15
|
+
ngModule: NgxsRouterPluginModule,
|
|
16
|
+
providers: [{ provide: RouterStateSerializer, useClass: DefaultRouterStateSerializer }]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
NgxsRouterPluginModule.decorators = [
|
|
21
|
+
{ type: NgModule, args: [{
|
|
22
|
+
imports: [NgxsModule.forFeature([RouterState])]
|
|
23
|
+
},] }
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3hzL3JvdXRlci1wbHVnaW4vIiwic291cmNlcyI6WyJzcmMvcm91dGVyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUF1QixRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUV6QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLDRCQUE0QixFQUFFLHFCQUFxQixFQUFFLE1BQU0sY0FBYyxDQUFDO0FBS25GLE1BQU0sT0FBTyxzQkFBc0I7Ozs7SUFDakMsTUFBTSxDQUFDLE9BQU87UUFDWixPQUFPO1lBQ0wsUUFBUSxFQUFFLHNCQUFzQjtZQUNoQyxTQUFTLEVBQUUsQ0FBQyxFQUFFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxRQUFRLEVBQUUsNEJBQTRCLEVBQUUsQ0FBQztTQUN4RixDQUFDO0lBQ0osQ0FBQzs7O1lBVEYsUUFBUSxTQUFDO2dCQUNSLE9BQU8sRUFBRSxDQUFDLFVBQVUsQ0FBQyxVQUFVLENBQUMsQ0FBQyxXQUFXLENBQUMsQ0F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