sceyt-chat-react-uikit 1.6.9-beta.14 → 1.6.9-beta.15
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/index.js +255 -0
- package/index.modern.js +255 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -603,6 +603,10 @@ function getPlugin(pluginKey) {
|
|
|
603
603
|
}
|
|
604
604
|
return plugin;
|
|
605
605
|
}
|
|
606
|
+
function loadPlugin(pluginKey, implementation) {
|
|
607
|
+
if (!plugins[pluginKey])
|
|
608
|
+
plugins[pluginKey] = implementation;
|
|
609
|
+
}
|
|
606
610
|
|
|
607
611
|
// src/core/scope.ts
|
|
608
612
|
var currentScope;
|
|
@@ -1119,6 +1123,256 @@ function currentImpl(value) {
|
|
|
1119
1123
|
return copy;
|
|
1120
1124
|
}
|
|
1121
1125
|
|
|
1126
|
+
// src/plugins/mapset.ts
|
|
1127
|
+
function enableMapSet() {
|
|
1128
|
+
class DraftMap extends Map {
|
|
1129
|
+
constructor(target, parent) {
|
|
1130
|
+
super();
|
|
1131
|
+
this[DRAFT_STATE] = {
|
|
1132
|
+
type_: 2 /* Map */,
|
|
1133
|
+
parent_: parent,
|
|
1134
|
+
scope_: parent ? parent.scope_ : getCurrentScope(),
|
|
1135
|
+
modified_: false,
|
|
1136
|
+
finalized_: false,
|
|
1137
|
+
copy_: void 0,
|
|
1138
|
+
assigned_: void 0,
|
|
1139
|
+
base_: target,
|
|
1140
|
+
draft_: this,
|
|
1141
|
+
isManual_: false,
|
|
1142
|
+
revoked_: false
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
get size() {
|
|
1146
|
+
return latest(this[DRAFT_STATE]).size;
|
|
1147
|
+
}
|
|
1148
|
+
has(key) {
|
|
1149
|
+
return latest(this[DRAFT_STATE]).has(key);
|
|
1150
|
+
}
|
|
1151
|
+
set(key, value) {
|
|
1152
|
+
const state = this[DRAFT_STATE];
|
|
1153
|
+
assertUnrevoked(state);
|
|
1154
|
+
if (!latest(state).has(key) || latest(state).get(key) !== value) {
|
|
1155
|
+
prepareMapCopy(state);
|
|
1156
|
+
markChanged(state);
|
|
1157
|
+
state.assigned_.set(key, true);
|
|
1158
|
+
state.copy_.set(key, value);
|
|
1159
|
+
state.assigned_.set(key, true);
|
|
1160
|
+
}
|
|
1161
|
+
return this;
|
|
1162
|
+
}
|
|
1163
|
+
delete(key) {
|
|
1164
|
+
if (!this.has(key)) {
|
|
1165
|
+
return false;
|
|
1166
|
+
}
|
|
1167
|
+
const state = this[DRAFT_STATE];
|
|
1168
|
+
assertUnrevoked(state);
|
|
1169
|
+
prepareMapCopy(state);
|
|
1170
|
+
markChanged(state);
|
|
1171
|
+
if (state.base_.has(key)) {
|
|
1172
|
+
state.assigned_.set(key, false);
|
|
1173
|
+
} else {
|
|
1174
|
+
state.assigned_.delete(key);
|
|
1175
|
+
}
|
|
1176
|
+
state.copy_.delete(key);
|
|
1177
|
+
return true;
|
|
1178
|
+
}
|
|
1179
|
+
clear() {
|
|
1180
|
+
const state = this[DRAFT_STATE];
|
|
1181
|
+
assertUnrevoked(state);
|
|
1182
|
+
if (latest(state).size) {
|
|
1183
|
+
prepareMapCopy(state);
|
|
1184
|
+
markChanged(state);
|
|
1185
|
+
state.assigned_ = /* @__PURE__ */ new Map();
|
|
1186
|
+
each(state.base_, (key) => {
|
|
1187
|
+
state.assigned_.set(key, false);
|
|
1188
|
+
});
|
|
1189
|
+
state.copy_.clear();
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
forEach(cb, thisArg) {
|
|
1193
|
+
const state = this[DRAFT_STATE];
|
|
1194
|
+
latest(state).forEach((_value, key, _map) => {
|
|
1195
|
+
cb.call(thisArg, this.get(key), key, this);
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
get(key) {
|
|
1199
|
+
const state = this[DRAFT_STATE];
|
|
1200
|
+
assertUnrevoked(state);
|
|
1201
|
+
const value = latest(state).get(key);
|
|
1202
|
+
if (state.finalized_ || !isDraftable(value)) {
|
|
1203
|
+
return value;
|
|
1204
|
+
}
|
|
1205
|
+
if (value !== state.base_.get(key)) {
|
|
1206
|
+
return value;
|
|
1207
|
+
}
|
|
1208
|
+
const draft = createProxy(value, state);
|
|
1209
|
+
prepareMapCopy(state);
|
|
1210
|
+
state.copy_.set(key, draft);
|
|
1211
|
+
return draft;
|
|
1212
|
+
}
|
|
1213
|
+
keys() {
|
|
1214
|
+
return latest(this[DRAFT_STATE]).keys();
|
|
1215
|
+
}
|
|
1216
|
+
values() {
|
|
1217
|
+
const iterator = this.keys();
|
|
1218
|
+
return {
|
|
1219
|
+
[Symbol.iterator]: () => this.values(),
|
|
1220
|
+
next: () => {
|
|
1221
|
+
const r = iterator.next();
|
|
1222
|
+
if (r.done)
|
|
1223
|
+
return r;
|
|
1224
|
+
const value = this.get(r.value);
|
|
1225
|
+
return {
|
|
1226
|
+
done: false,
|
|
1227
|
+
value
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
entries() {
|
|
1233
|
+
const iterator = this.keys();
|
|
1234
|
+
return {
|
|
1235
|
+
[Symbol.iterator]: () => this.entries(),
|
|
1236
|
+
next: () => {
|
|
1237
|
+
const r = iterator.next();
|
|
1238
|
+
if (r.done)
|
|
1239
|
+
return r;
|
|
1240
|
+
const value = this.get(r.value);
|
|
1241
|
+
return {
|
|
1242
|
+
done: false,
|
|
1243
|
+
value: [r.value, value]
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
[(Symbol.iterator)]() {
|
|
1249
|
+
return this.entries();
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
function proxyMap_(target, parent) {
|
|
1253
|
+
return new DraftMap(target, parent);
|
|
1254
|
+
}
|
|
1255
|
+
function prepareMapCopy(state) {
|
|
1256
|
+
if (!state.copy_) {
|
|
1257
|
+
state.assigned_ = /* @__PURE__ */ new Map();
|
|
1258
|
+
state.copy_ = new Map(state.base_);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
class DraftSet extends Set {
|
|
1262
|
+
constructor(target, parent) {
|
|
1263
|
+
super();
|
|
1264
|
+
this[DRAFT_STATE] = {
|
|
1265
|
+
type_: 3 /* Set */,
|
|
1266
|
+
parent_: parent,
|
|
1267
|
+
scope_: parent ? parent.scope_ : getCurrentScope(),
|
|
1268
|
+
modified_: false,
|
|
1269
|
+
finalized_: false,
|
|
1270
|
+
copy_: void 0,
|
|
1271
|
+
base_: target,
|
|
1272
|
+
draft_: this,
|
|
1273
|
+
drafts_: /* @__PURE__ */ new Map(),
|
|
1274
|
+
revoked_: false,
|
|
1275
|
+
isManual_: false
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
get size() {
|
|
1279
|
+
return latest(this[DRAFT_STATE]).size;
|
|
1280
|
+
}
|
|
1281
|
+
has(value) {
|
|
1282
|
+
const state = this[DRAFT_STATE];
|
|
1283
|
+
assertUnrevoked(state);
|
|
1284
|
+
if (!state.copy_) {
|
|
1285
|
+
return state.base_.has(value);
|
|
1286
|
+
}
|
|
1287
|
+
if (state.copy_.has(value))
|
|
1288
|
+
return true;
|
|
1289
|
+
if (state.drafts_.has(value) && state.copy_.has(state.drafts_.get(value)))
|
|
1290
|
+
return true;
|
|
1291
|
+
return false;
|
|
1292
|
+
}
|
|
1293
|
+
add(value) {
|
|
1294
|
+
const state = this[DRAFT_STATE];
|
|
1295
|
+
assertUnrevoked(state);
|
|
1296
|
+
if (!this.has(value)) {
|
|
1297
|
+
prepareSetCopy(state);
|
|
1298
|
+
markChanged(state);
|
|
1299
|
+
state.copy_.add(value);
|
|
1300
|
+
}
|
|
1301
|
+
return this;
|
|
1302
|
+
}
|
|
1303
|
+
delete(value) {
|
|
1304
|
+
if (!this.has(value)) {
|
|
1305
|
+
return false;
|
|
1306
|
+
}
|
|
1307
|
+
const state = this[DRAFT_STATE];
|
|
1308
|
+
assertUnrevoked(state);
|
|
1309
|
+
prepareSetCopy(state);
|
|
1310
|
+
markChanged(state);
|
|
1311
|
+
return state.copy_.delete(value) || (state.drafts_.has(value) ? state.copy_.delete(state.drafts_.get(value)) : (
|
|
1312
|
+
/* istanbul ignore next */
|
|
1313
|
+
false
|
|
1314
|
+
));
|
|
1315
|
+
}
|
|
1316
|
+
clear() {
|
|
1317
|
+
const state = this[DRAFT_STATE];
|
|
1318
|
+
assertUnrevoked(state);
|
|
1319
|
+
if (latest(state).size) {
|
|
1320
|
+
prepareSetCopy(state);
|
|
1321
|
+
markChanged(state);
|
|
1322
|
+
state.copy_.clear();
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
values() {
|
|
1326
|
+
const state = this[DRAFT_STATE];
|
|
1327
|
+
assertUnrevoked(state);
|
|
1328
|
+
prepareSetCopy(state);
|
|
1329
|
+
return state.copy_.values();
|
|
1330
|
+
}
|
|
1331
|
+
entries() {
|
|
1332
|
+
const state = this[DRAFT_STATE];
|
|
1333
|
+
assertUnrevoked(state);
|
|
1334
|
+
prepareSetCopy(state);
|
|
1335
|
+
return state.copy_.entries();
|
|
1336
|
+
}
|
|
1337
|
+
keys() {
|
|
1338
|
+
return this.values();
|
|
1339
|
+
}
|
|
1340
|
+
[(Symbol.iterator)]() {
|
|
1341
|
+
return this.values();
|
|
1342
|
+
}
|
|
1343
|
+
forEach(cb, thisArg) {
|
|
1344
|
+
const iterator = this.values();
|
|
1345
|
+
let result = iterator.next();
|
|
1346
|
+
while (!result.done) {
|
|
1347
|
+
cb.call(thisArg, result.value, result.value, this);
|
|
1348
|
+
result = iterator.next();
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
function proxySet_(target, parent) {
|
|
1353
|
+
return new DraftSet(target, parent);
|
|
1354
|
+
}
|
|
1355
|
+
function prepareSetCopy(state) {
|
|
1356
|
+
if (!state.copy_) {
|
|
1357
|
+
state.copy_ = /* @__PURE__ */ new Set();
|
|
1358
|
+
state.base_.forEach((value) => {
|
|
1359
|
+
if (isDraftable(value)) {
|
|
1360
|
+
const draft = createProxy(value, state);
|
|
1361
|
+
state.drafts_.set(value, draft);
|
|
1362
|
+
state.copy_.add(draft);
|
|
1363
|
+
} else {
|
|
1364
|
+
state.copy_.add(value);
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
function assertUnrevoked(state) {
|
|
1370
|
+
if (state.revoked_)
|
|
1371
|
+
die(3, JSON.stringify(latest(state)));
|
|
1372
|
+
}
|
|
1373
|
+
loadPlugin("MapSet", { proxyMap_, proxySet_ });
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1122
1376
|
// src/immer.ts
|
|
1123
1377
|
var immer = new Immer2();
|
|
1124
1378
|
var produce = immer.produce;
|
|
@@ -19689,6 +19943,7 @@ function rootSaga() {
|
|
|
19689
19943
|
}, _marked$6);
|
|
19690
19944
|
}
|
|
19691
19945
|
|
|
19946
|
+
enableMapSet();
|
|
19692
19947
|
var sagaMiddleware = createSagaMiddleware__default();
|
|
19693
19948
|
var store = configureStore({
|
|
19694
19949
|
reducer: {
|
package/index.modern.js
CHANGED
|
@@ -580,6 +580,10 @@ function getPlugin(pluginKey) {
|
|
|
580
580
|
}
|
|
581
581
|
return plugin;
|
|
582
582
|
}
|
|
583
|
+
function loadPlugin(pluginKey, implementation) {
|
|
584
|
+
if (!plugins[pluginKey])
|
|
585
|
+
plugins[pluginKey] = implementation;
|
|
586
|
+
}
|
|
583
587
|
|
|
584
588
|
// src/core/scope.ts
|
|
585
589
|
var currentScope;
|
|
@@ -1096,6 +1100,256 @@ function currentImpl(value) {
|
|
|
1096
1100
|
return copy;
|
|
1097
1101
|
}
|
|
1098
1102
|
|
|
1103
|
+
// src/plugins/mapset.ts
|
|
1104
|
+
function enableMapSet() {
|
|
1105
|
+
class DraftMap extends Map {
|
|
1106
|
+
constructor(target, parent) {
|
|
1107
|
+
super();
|
|
1108
|
+
this[DRAFT_STATE] = {
|
|
1109
|
+
type_: 2 /* Map */,
|
|
1110
|
+
parent_: parent,
|
|
1111
|
+
scope_: parent ? parent.scope_ : getCurrentScope(),
|
|
1112
|
+
modified_: false,
|
|
1113
|
+
finalized_: false,
|
|
1114
|
+
copy_: void 0,
|
|
1115
|
+
assigned_: void 0,
|
|
1116
|
+
base_: target,
|
|
1117
|
+
draft_: this,
|
|
1118
|
+
isManual_: false,
|
|
1119
|
+
revoked_: false
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
get size() {
|
|
1123
|
+
return latest(this[DRAFT_STATE]).size;
|
|
1124
|
+
}
|
|
1125
|
+
has(key) {
|
|
1126
|
+
return latest(this[DRAFT_STATE]).has(key);
|
|
1127
|
+
}
|
|
1128
|
+
set(key, value) {
|
|
1129
|
+
const state = this[DRAFT_STATE];
|
|
1130
|
+
assertUnrevoked(state);
|
|
1131
|
+
if (!latest(state).has(key) || latest(state).get(key) !== value) {
|
|
1132
|
+
prepareMapCopy(state);
|
|
1133
|
+
markChanged(state);
|
|
1134
|
+
state.assigned_.set(key, true);
|
|
1135
|
+
state.copy_.set(key, value);
|
|
1136
|
+
state.assigned_.set(key, true);
|
|
1137
|
+
}
|
|
1138
|
+
return this;
|
|
1139
|
+
}
|
|
1140
|
+
delete(key) {
|
|
1141
|
+
if (!this.has(key)) {
|
|
1142
|
+
return false;
|
|
1143
|
+
}
|
|
1144
|
+
const state = this[DRAFT_STATE];
|
|
1145
|
+
assertUnrevoked(state);
|
|
1146
|
+
prepareMapCopy(state);
|
|
1147
|
+
markChanged(state);
|
|
1148
|
+
if (state.base_.has(key)) {
|
|
1149
|
+
state.assigned_.set(key, false);
|
|
1150
|
+
} else {
|
|
1151
|
+
state.assigned_.delete(key);
|
|
1152
|
+
}
|
|
1153
|
+
state.copy_.delete(key);
|
|
1154
|
+
return true;
|
|
1155
|
+
}
|
|
1156
|
+
clear() {
|
|
1157
|
+
const state = this[DRAFT_STATE];
|
|
1158
|
+
assertUnrevoked(state);
|
|
1159
|
+
if (latest(state).size) {
|
|
1160
|
+
prepareMapCopy(state);
|
|
1161
|
+
markChanged(state);
|
|
1162
|
+
state.assigned_ = /* @__PURE__ */ new Map();
|
|
1163
|
+
each(state.base_, (key) => {
|
|
1164
|
+
state.assigned_.set(key, false);
|
|
1165
|
+
});
|
|
1166
|
+
state.copy_.clear();
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
forEach(cb, thisArg) {
|
|
1170
|
+
const state = this[DRAFT_STATE];
|
|
1171
|
+
latest(state).forEach((_value, key, _map) => {
|
|
1172
|
+
cb.call(thisArg, this.get(key), key, this);
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
get(key) {
|
|
1176
|
+
const state = this[DRAFT_STATE];
|
|
1177
|
+
assertUnrevoked(state);
|
|
1178
|
+
const value = latest(state).get(key);
|
|
1179
|
+
if (state.finalized_ || !isDraftable(value)) {
|
|
1180
|
+
return value;
|
|
1181
|
+
}
|
|
1182
|
+
if (value !== state.base_.get(key)) {
|
|
1183
|
+
return value;
|
|
1184
|
+
}
|
|
1185
|
+
const draft = createProxy(value, state);
|
|
1186
|
+
prepareMapCopy(state);
|
|
1187
|
+
state.copy_.set(key, draft);
|
|
1188
|
+
return draft;
|
|
1189
|
+
}
|
|
1190
|
+
keys() {
|
|
1191
|
+
return latest(this[DRAFT_STATE]).keys();
|
|
1192
|
+
}
|
|
1193
|
+
values() {
|
|
1194
|
+
const iterator = this.keys();
|
|
1195
|
+
return {
|
|
1196
|
+
[Symbol.iterator]: () => this.values(),
|
|
1197
|
+
next: () => {
|
|
1198
|
+
const r = iterator.next();
|
|
1199
|
+
if (r.done)
|
|
1200
|
+
return r;
|
|
1201
|
+
const value = this.get(r.value);
|
|
1202
|
+
return {
|
|
1203
|
+
done: false,
|
|
1204
|
+
value
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
entries() {
|
|
1210
|
+
const iterator = this.keys();
|
|
1211
|
+
return {
|
|
1212
|
+
[Symbol.iterator]: () => this.entries(),
|
|
1213
|
+
next: () => {
|
|
1214
|
+
const r = iterator.next();
|
|
1215
|
+
if (r.done)
|
|
1216
|
+
return r;
|
|
1217
|
+
const value = this.get(r.value);
|
|
1218
|
+
return {
|
|
1219
|
+
done: false,
|
|
1220
|
+
value: [r.value, value]
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
[(Symbol.iterator)]() {
|
|
1226
|
+
return this.entries();
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
function proxyMap_(target, parent) {
|
|
1230
|
+
return new DraftMap(target, parent);
|
|
1231
|
+
}
|
|
1232
|
+
function prepareMapCopy(state) {
|
|
1233
|
+
if (!state.copy_) {
|
|
1234
|
+
state.assigned_ = /* @__PURE__ */ new Map();
|
|
1235
|
+
state.copy_ = new Map(state.base_);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
class DraftSet extends Set {
|
|
1239
|
+
constructor(target, parent) {
|
|
1240
|
+
super();
|
|
1241
|
+
this[DRAFT_STATE] = {
|
|
1242
|
+
type_: 3 /* Set */,
|
|
1243
|
+
parent_: parent,
|
|
1244
|
+
scope_: parent ? parent.scope_ : getCurrentScope(),
|
|
1245
|
+
modified_: false,
|
|
1246
|
+
finalized_: false,
|
|
1247
|
+
copy_: void 0,
|
|
1248
|
+
base_: target,
|
|
1249
|
+
draft_: this,
|
|
1250
|
+
drafts_: /* @__PURE__ */ new Map(),
|
|
1251
|
+
revoked_: false,
|
|
1252
|
+
isManual_: false
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
get size() {
|
|
1256
|
+
return latest(this[DRAFT_STATE]).size;
|
|
1257
|
+
}
|
|
1258
|
+
has(value) {
|
|
1259
|
+
const state = this[DRAFT_STATE];
|
|
1260
|
+
assertUnrevoked(state);
|
|
1261
|
+
if (!state.copy_) {
|
|
1262
|
+
return state.base_.has(value);
|
|
1263
|
+
}
|
|
1264
|
+
if (state.copy_.has(value))
|
|
1265
|
+
return true;
|
|
1266
|
+
if (state.drafts_.has(value) && state.copy_.has(state.drafts_.get(value)))
|
|
1267
|
+
return true;
|
|
1268
|
+
return false;
|
|
1269
|
+
}
|
|
1270
|
+
add(value) {
|
|
1271
|
+
const state = this[DRAFT_STATE];
|
|
1272
|
+
assertUnrevoked(state);
|
|
1273
|
+
if (!this.has(value)) {
|
|
1274
|
+
prepareSetCopy(state);
|
|
1275
|
+
markChanged(state);
|
|
1276
|
+
state.copy_.add(value);
|
|
1277
|
+
}
|
|
1278
|
+
return this;
|
|
1279
|
+
}
|
|
1280
|
+
delete(value) {
|
|
1281
|
+
if (!this.has(value)) {
|
|
1282
|
+
return false;
|
|
1283
|
+
}
|
|
1284
|
+
const state = this[DRAFT_STATE];
|
|
1285
|
+
assertUnrevoked(state);
|
|
1286
|
+
prepareSetCopy(state);
|
|
1287
|
+
markChanged(state);
|
|
1288
|
+
return state.copy_.delete(value) || (state.drafts_.has(value) ? state.copy_.delete(state.drafts_.get(value)) : (
|
|
1289
|
+
/* istanbul ignore next */
|
|
1290
|
+
false
|
|
1291
|
+
));
|
|
1292
|
+
}
|
|
1293
|
+
clear() {
|
|
1294
|
+
const state = this[DRAFT_STATE];
|
|
1295
|
+
assertUnrevoked(state);
|
|
1296
|
+
if (latest(state).size) {
|
|
1297
|
+
prepareSetCopy(state);
|
|
1298
|
+
markChanged(state);
|
|
1299
|
+
state.copy_.clear();
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
values() {
|
|
1303
|
+
const state = this[DRAFT_STATE];
|
|
1304
|
+
assertUnrevoked(state);
|
|
1305
|
+
prepareSetCopy(state);
|
|
1306
|
+
return state.copy_.values();
|
|
1307
|
+
}
|
|
1308
|
+
entries() {
|
|
1309
|
+
const state = this[DRAFT_STATE];
|
|
1310
|
+
assertUnrevoked(state);
|
|
1311
|
+
prepareSetCopy(state);
|
|
1312
|
+
return state.copy_.entries();
|
|
1313
|
+
}
|
|
1314
|
+
keys() {
|
|
1315
|
+
return this.values();
|
|
1316
|
+
}
|
|
1317
|
+
[(Symbol.iterator)]() {
|
|
1318
|
+
return this.values();
|
|
1319
|
+
}
|
|
1320
|
+
forEach(cb, thisArg) {
|
|
1321
|
+
const iterator = this.values();
|
|
1322
|
+
let result = iterator.next();
|
|
1323
|
+
while (!result.done) {
|
|
1324
|
+
cb.call(thisArg, result.value, result.value, this);
|
|
1325
|
+
result = iterator.next();
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
function proxySet_(target, parent) {
|
|
1330
|
+
return new DraftSet(target, parent);
|
|
1331
|
+
}
|
|
1332
|
+
function prepareSetCopy(state) {
|
|
1333
|
+
if (!state.copy_) {
|
|
1334
|
+
state.copy_ = /* @__PURE__ */ new Set();
|
|
1335
|
+
state.base_.forEach((value) => {
|
|
1336
|
+
if (isDraftable(value)) {
|
|
1337
|
+
const draft = createProxy(value, state);
|
|
1338
|
+
state.drafts_.set(value, draft);
|
|
1339
|
+
state.copy_.add(draft);
|
|
1340
|
+
} else {
|
|
1341
|
+
state.copy_.add(value);
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
function assertUnrevoked(state) {
|
|
1347
|
+
if (state.revoked_)
|
|
1348
|
+
die(3, JSON.stringify(latest(state)));
|
|
1349
|
+
}
|
|
1350
|
+
loadPlugin("MapSet", { proxyMap_, proxySet_ });
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1099
1353
|
// src/immer.ts
|
|
1100
1354
|
var immer = new Immer2();
|
|
1101
1355
|
var produce = immer.produce;
|
|
@@ -19668,6 +19922,7 @@ function rootSaga() {
|
|
|
19668
19922
|
}, _marked$6);
|
|
19669
19923
|
}
|
|
19670
19924
|
|
|
19925
|
+
enableMapSet();
|
|
19671
19926
|
var sagaMiddleware = createSagaMiddleware();
|
|
19672
19927
|
var store = configureStore({
|
|
19673
19928
|
reducer: {
|