@seamly/web-ui 24.4.0 → 24.5.0-beta.1

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.
@@ -41,17 +41,29 @@ module.exports = function (argument, usingIterator) {
41
41
 
42
42
 
43
43
  var $ = __webpack_require__(6518);
44
+ var call = __webpack_require__(9565);
44
45
  var iterate = __webpack_require__(2652);
45
46
  var aCallable = __webpack_require__(9306);
46
47
  var anObject = __webpack_require__(8551);
47
48
  var getIteratorDirect = __webpack_require__(1767);
49
+ var iteratorClose = __webpack_require__(9539);
50
+ var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
51
+
52
+ var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('find', TypeError);
48
53
 
49
54
  // `Iterator.prototype.find` method
50
55
  // https://tc39.es/ecma262/#sec-iterator.prototype.find
51
- $({ target: 'Iterator', proto: true, real: true }, {
56
+ $({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
52
57
  find: function find(predicate) {
53
58
  anObject(this);
54
- aCallable(predicate);
59
+ try {
60
+ aCallable(predicate);
61
+ } catch (error) {
62
+ iteratorClose(this, 'throw', error);
63
+ }
64
+
65
+ if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate);
66
+
55
67
  var record = getIteratorDirect(this);
56
68
  var counter = 0;
57
69
  return iterate(record, function (value, stop) {
@@ -200,37 +212,6 @@ module.exports = function (it, Prototype) {
200
212
  };
201
213
 
202
214
 
203
- /***/ }),
204
-
205
- /***/ 713:
206
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
207
-
208
-
209
- var call = __webpack_require__(9565);
210
- var aCallable = __webpack_require__(9306);
211
- var anObject = __webpack_require__(8551);
212
- var getIteratorDirect = __webpack_require__(1767);
213
- var createIteratorProxy = __webpack_require__(9462);
214
- var callWithSafeIterationClosing = __webpack_require__(6319);
215
-
216
- var IteratorProxy = createIteratorProxy(function () {
217
- var iterator = this.iterator;
218
- var result = anObject(call(this.next, iterator));
219
- var done = this.done = !!result.done;
220
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
221
- });
222
-
223
- // `Iterator.prototype.map` method
224
- // https://github.com/tc39/proposal-iterator-helpers
225
- module.exports = function map(mapper) {
226
- anObject(this);
227
- aCallable(mapper);
228
- return new IteratorProxy(getIteratorDirect(this), {
229
- mapper: mapper
230
- });
231
- };
232
-
233
-
234
215
  /***/ }),
235
216
 
236
217
  /***/ 741:
@@ -431,13 +412,42 @@ module.exports = uncurryThis({}.isPrototypeOf);
431
412
 
432
413
 
433
414
  var $ = __webpack_require__(6518);
434
- var map = __webpack_require__(713);
415
+ var call = __webpack_require__(9565);
416
+ var aCallable = __webpack_require__(9306);
417
+ var anObject = __webpack_require__(8551);
418
+ var getIteratorDirect = __webpack_require__(1767);
419
+ var createIteratorProxy = __webpack_require__(9462);
420
+ var callWithSafeIterationClosing = __webpack_require__(6319);
421
+ var iteratorClose = __webpack_require__(9539);
422
+ var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
435
423
  var IS_PURE = __webpack_require__(6395);
436
424
 
425
+ var mapWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
426
+
427
+ var IteratorProxy = createIteratorProxy(function () {
428
+ var iterator = this.iterator;
429
+ var result = anObject(call(this.next, iterator));
430
+ var done = this.done = !!result.done;
431
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
432
+ });
433
+
437
434
  // `Iterator.prototype.map` method
438
435
  // https://tc39.es/ecma262/#sec-iterator.prototype.map
439
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
440
- map: map
436
+ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE || mapWithoutClosingOnEarlyError }, {
437
+ map: function map(mapper) {
438
+ anObject(this);
439
+ try {
440
+ aCallable(mapper);
441
+ } catch (error) {
442
+ iteratorClose(this, 'throw', error);
443
+ }
444
+
445
+ if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);
446
+
447
+ return new IteratorProxy(getIteratorDirect(this), {
448
+ mapper: mapper
449
+ });
450
+ }
441
451
  });
442
452
 
443
453
 
@@ -656,6 +666,10 @@ var getIteratorDirect = __webpack_require__(1767);
656
666
  var createIteratorProxy = __webpack_require__(9462);
657
667
  var callWithSafeIterationClosing = __webpack_require__(6319);
658
668
  var IS_PURE = __webpack_require__(6395);
669
+ var iteratorClose = __webpack_require__(9539);
670
+ var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
671
+
672
+ var filterWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError('filter', TypeError);
659
673
 
660
674
  var IteratorProxy = createIteratorProxy(function () {
661
675
  var iterator = this.iterator;
@@ -673,10 +687,17 @@ var IteratorProxy = createIteratorProxy(function () {
673
687
 
674
688
  // `Iterator.prototype.filter` method
675
689
  // https://tc39.es/ecma262/#sec-iterator.prototype.filter
676
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
690
+ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE || filterWithoutClosingOnEarlyError }, {
677
691
  filter: function filter(predicate) {
678
692
  anObject(this);
679
- aCallable(predicate);
693
+ try {
694
+ aCallable(predicate);
695
+ } catch (error) {
696
+ iteratorClose(this, 'throw', error);
697
+ }
698
+
699
+ if (filterWithoutClosingOnEarlyError) return call(filterWithoutClosingOnEarlyError, this, predicate);
700
+
680
701
  return new IteratorProxy(getIteratorDirect(this), {
681
702
  predicate: predicate
682
703
  });
@@ -1170,6 +1191,36 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1170
1191
  };
1171
1192
 
1172
1193
 
1194
+ /***/ }),
1195
+
1196
+ /***/ 4549:
1197
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1198
+
1199
+
1200
+ var globalThis = __webpack_require__(4576);
1201
+
1202
+ // https://github.com/tc39/ecma262/pull/3467
1203
+ module.exports = function (METHOD_NAME, ExpectedError) {
1204
+ var Iterator = globalThis.Iterator;
1205
+ var IteratorPrototype = Iterator && Iterator.prototype;
1206
+ var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
1207
+
1208
+ var CLOSED = false;
1209
+
1210
+ if (method) try {
1211
+ method.call({
1212
+ next: function () { return { done: true }; },
1213
+ 'return': function () { CLOSED = true; }
1214
+ }, -1);
1215
+ } catch (error) {
1216
+ // https://bugs.webkit.org/show_bug.cgi?id=291195
1217
+ if (!(error instanceof ExpectedError)) CLOSED = false;
1218
+ }
1219
+
1220
+ if (!CLOSED) return method;
1221
+ };
1222
+
1223
+
1173
1224
  /***/ }),
1174
1225
 
1175
1226
  /***/ 4576:
@@ -1824,17 +1875,29 @@ module.exports = function (fn) {
1824
1875
 
1825
1876
 
1826
1877
  var $ = __webpack_require__(6518);
1878
+ var call = __webpack_require__(9565);
1827
1879
  var iterate = __webpack_require__(2652);
1828
1880
  var aCallable = __webpack_require__(9306);
1829
1881
  var anObject = __webpack_require__(8551);
1830
1882
  var getIteratorDirect = __webpack_require__(1767);
1883
+ var iteratorClose = __webpack_require__(9539);
1884
+ var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
1885
+
1886
+ var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('forEach', TypeError);
1831
1887
 
1832
1888
  // `Iterator.prototype.forEach` method
1833
1889
  // https://tc39.es/ecma262/#sec-iterator.prototype.foreach
1834
- $({ target: 'Iterator', proto: true, real: true }, {
1890
+ $({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
1835
1891
  forEach: function forEach(fn) {
1836
1892
  anObject(this);
1837
- aCallable(fn);
1893
+ try {
1894
+ aCallable(fn);
1895
+ } catch (error) {
1896
+ iteratorClose(this, 'throw', error);
1897
+ }
1898
+
1899
+ if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn);
1900
+
1838
1901
  var record = getIteratorDirect(this);
1839
1902
  var counter = 0;
1840
1903
  iterate(record, function (value) {
@@ -1858,10 +1921,10 @@ var SHARED = '__core-js_shared__';
1858
1921
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
1859
1922
 
1860
1923
  (store.versions || (store.versions = [])).push({
1861
- version: '3.41.0',
1924
+ version: '3.42.0',
1862
1925
  mode: IS_PURE ? 'pure' : 'global',
1863
1926
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
1864
- license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
1927
+ license: 'https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE',
1865
1928
  source: 'https://github.com/zloirock/core-js'
1866
1929
  });
1867
1930
 
@@ -2109,18 +2172,38 @@ var iterate = __webpack_require__(2652);
2109
2172
  var aCallable = __webpack_require__(9306);
2110
2173
  var anObject = __webpack_require__(8551);
2111
2174
  var getIteratorDirect = __webpack_require__(1767);
2175
+ var iteratorClose = __webpack_require__(9539);
2176
+ var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
2177
+ var apply = __webpack_require__(8745);
2178
+ var fails = __webpack_require__(9039);
2112
2179
 
2113
2180
  var $TypeError = TypeError;
2114
2181
 
2182
+ // https://bugs.webkit.org/show_bug.cgi?id=291651
2183
+ var FAILS_ON_INITIAL_UNDEFINED = fails(function () {
2184
+ // eslint-disable-next-line es/no-iterator-prototype-reduce, es/no-array-prototype-keys, array-callback-return -- required for testing
2185
+ [].keys().reduce(function () { /* empty */ }, undefined);
2186
+ });
2187
+
2188
+ var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHelperWithoutClosingOnEarlyError('reduce', $TypeError);
2189
+
2115
2190
  // `Iterator.prototype.reduce` method
2116
2191
  // https://tc39.es/ecma262/#sec-iterator.prototype.reduce
2117
- $({ target: 'Iterator', proto: true, real: true }, {
2192
+ $({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
2118
2193
  reduce: function reduce(reducer /* , initialValue */) {
2119
2194
  anObject(this);
2120
- aCallable(reducer);
2121
- var record = getIteratorDirect(this);
2195
+ try {
2196
+ aCallable(reducer);
2197
+ } catch (error) {
2198
+ iteratorClose(this, 'throw', error);
2199
+ }
2200
+
2122
2201
  var noInitial = arguments.length < 2;
2123
2202
  var accumulator = noInitial ? undefined : arguments[1];
2203
+ if (reduceWithoutClosingOnEarlyError) {
2204
+ return apply(reduceWithoutClosingOnEarlyError, this, noInitial ? [reducer] : [reducer, accumulator]);
2205
+ }
2206
+ var record = getIteratorDirect(this);
2124
2207
  var counter = 0;
2125
2208
  iterate(record, function (value) {
2126
2209
  if (noInitial) {
@@ -2226,6 +2309,24 @@ module.exports = [
2226
2309
  ];
2227
2310
 
2228
2311
 
2312
+ /***/ }),
2313
+
2314
+ /***/ 8745:
2315
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2316
+
2317
+
2318
+ var NATIVE_BIND = __webpack_require__(616);
2319
+
2320
+ var FunctionPrototype = Function.prototype;
2321
+ var apply = FunctionPrototype.apply;
2322
+ var call = FunctionPrototype.call;
2323
+
2324
+ // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
2325
+ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
2326
+ return call.apply(apply, arguments);
2327
+ });
2328
+
2329
+
2229
2330
  /***/ }),
2230
2331
 
2231
2332
  /***/ 8773:
@@ -2739,7 +2840,6 @@ function addTranslationData(event) {
2739
2840
 
2740
2841
 
2741
2842
 
2742
-
2743
2843
  const baseState = {
2744
2844
  events: [],
2745
2845
  config: {
@@ -6023,6 +6123,7 @@ function configureStore(options) {
6023
6123
  reducer = void 0,
6024
6124
  middleware,
6025
6125
  devTools = true,
6126
+ duplicateMiddlewareCheck = true,
6026
6127
  preloadedState = void 0,
6027
6128
  enhancers = void 0
6028
6129
  } = options || {};
@@ -6043,6 +6144,7 @@ function configureStore(options) {
6043
6144
  finalMiddleware = getDefaultMiddleware();
6044
6145
  }
6045
6146
  if (false) {}
6147
+ if (false) {}
6046
6148
  let finalCompose = compose;
6047
6149
  if (devTools) {
6048
6150
  finalCompose = composeWithDevTools({
@@ -6536,6 +6638,7 @@ function buildCreateSlice({
6536
6638
  }
6537
6639
  const selectSelf = (state) => state;
6538
6640
  const injectedSelectorCache = /* @__PURE__ */ new Map();
6641
+ const injectedStateCache = /* @__PURE__ */ new WeakMap();
6539
6642
  let _reducer;
6540
6643
  function reducer(state, action) {
6541
6644
  if (!_reducer) _reducer = buildReducer();
@@ -6550,7 +6653,7 @@ function buildCreateSlice({
6550
6653
  let sliceState = state[reducerPath2];
6551
6654
  if (typeof sliceState === "undefined") {
6552
6655
  if (injected) {
6553
- sliceState = getInitialState();
6656
+ sliceState = getOrInsertComputed(injectedStateCache, selectSlice, getInitialState);
6554
6657
  } else if (false) {}
6555
6658
  }
6556
6659
  return sliceState;
@@ -6560,7 +6663,7 @@ function buildCreateSlice({
6560
6663
  return getOrInsertComputed(selectorCache, selectState, () => {
6561
6664
  const map = {};
6562
6665
  for (const [name2, selector] of Object.entries(options.selectors ?? {})) {
6563
- map[name2] = wrapSelector(selector, selectState, getInitialState, injected);
6666
+ map[name2] = wrapSelector(selector, selectState, () => getOrInsertComputed(injectedStateCache, selectState, getInitialState), injected);
6564
6667
  }
6565
6668
  return map;
6566
6669
  });
@@ -6809,15 +6912,17 @@ function splitAddedUpdatedEntities(newEntities, selectId, state) {
6809
6912
  const existingIdsArray = getCurrent(state.ids);
6810
6913
  const existingIds = new Set(existingIdsArray);
6811
6914
  const added = [];
6915
+ const addedIds = /* @__PURE__ */ new Set([]);
6812
6916
  const updated = [];
6813
6917
  for (const entity of newEntities) {
6814
6918
  const id = selectIdValue(entity, selectId);
6815
- if (existingIds.has(id)) {
6919
+ if (existingIds.has(id) || addedIds.has(id)) {
6816
6920
  updated.push({
6817
6921
  id,
6818
6922
  changes: entity
6819
6923
  });
6820
6924
  } else {
6925
+ addedIds.add(id);
6821
6926
  added.push(entity);
6822
6927
  }
6823
6928
  }
@@ -6930,8 +7035,8 @@ function createUnsortedStateAdapter(selectId) {
6930
7035
  }
6931
7036
  function upsertManyMutably(newEntities, state) {
6932
7037
  const [added, updated] = splitAddedUpdatedEntities(newEntities, selectId, state);
6933
- updateManyMutably(updated, state);
6934
7038
  addManyMutably(added, state);
7039
+ updateManyMutably(updated, state);
6935
7040
  }
6936
7041
  return {
6937
7042
  removeAll: createSingleArgumentStateOperator(removeAllMutably),
@@ -7036,12 +7141,12 @@ function createSortedStateAdapter(selectId, comparer) {
7036
7141
  }
7037
7142
  function upsertManyMutably(newEntities, state) {
7038
7143
  const [added, updated, existingIdsArray] = splitAddedUpdatedEntities(newEntities, selectId, state);
7039
- if (updated.length) {
7040
- updateManyMutably(updated, state);
7041
- }
7042
7144
  if (added.length) {
7043
7145
  addManyMutably(added, state, existingIdsArray);
7044
7146
  }
7147
+ if (updated.length) {
7148
+ updateManyMutably(updated, state);
7149
+ }
7045
7150
  }
7046
7151
  function areArraysEqual(a, b) {
7047
7152
  if (a.length !== b.length) {
@@ -7586,12 +7691,14 @@ var getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOr
7586
7691
  var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
7587
7692
  var isStateProxy = (value) => !!value && !!value[ORIGINAL_STATE];
7588
7693
  var stateProxyMap = /* @__PURE__ */ new WeakMap();
7589
- var createStateProxy = (state, reducerMap) => getOrInsertComputed(stateProxyMap, state, () => new Proxy(state, {
7694
+ var createStateProxy = (state, reducerMap, initialStateCache) => getOrInsertComputed(stateProxyMap, state, () => new Proxy(state, {
7590
7695
  get: (target, prop, receiver) => {
7591
7696
  if (prop === ORIGINAL_STATE) return target;
7592
7697
  const result = Reflect.get(target, prop, receiver);
7593
7698
  if (typeof result === "undefined") {
7594
- const reducer = reducerMap[prop.toString()];
7699
+ const cached = initialStateCache[prop];
7700
+ if (typeof cached !== "undefined") return cached;
7701
+ const reducer = reducerMap[prop];
7595
7702
  if (reducer) {
7596
7703
  const reducerResult = reducer(void 0, {
7597
7704
  type: nanoid()
@@ -7599,6 +7706,7 @@ var createStateProxy = (state, reducerMap) => getOrInsertComputed(stateProxyMap,
7599
7706
  if (typeof reducerResult === "undefined") {
7600
7707
  throw new Error( true ? redux_toolkit_modern_formatProdErrorMessage(24) : 0);
7601
7708
  }
7709
+ initialStateCache[prop] = reducerResult;
7602
7710
  return reducerResult;
7603
7711
  }
7604
7712
  }
@@ -7611,7 +7719,8 @@ var original = (state) => {
7611
7719
  }
7612
7720
  return state[ORIGINAL_STATE];
7613
7721
  };
7614
- var noopReducer = (state = {}) => state;
7722
+ var emptyObject = {};
7723
+ var noopReducer = (state = emptyObject) => state;
7615
7724
  function combineSlices(...slices) {
7616
7725
  const reducerMap = Object.fromEntries(getReducers(slices));
7617
7726
  const getReducer = () => Object.keys(reducerMap).length ? combineReducers2(reducerMap) : noopReducer;
@@ -7620,6 +7729,7 @@ function combineSlices(...slices) {
7620
7729
  return reducer(state, action);
7621
7730
  }
7622
7731
  combinedReducer.withLazyLoadedSlices = () => combinedReducer;
7732
+ const initialStateCache = {};
7623
7733
  const inject = (slice, config = {}) => {
7624
7734
  const {
7625
7735
  reducerPath,
@@ -7630,13 +7740,16 @@ function combineSlices(...slices) {
7630
7740
  if (typeof process !== "undefined" && "production" === "development") {}
7631
7741
  return combinedReducer;
7632
7742
  }
7743
+ if (config.overrideExisting && currentReducer !== reducerToInject) {
7744
+ delete initialStateCache[reducerPath];
7745
+ }
7633
7746
  reducerMap[reducerPath] = reducerToInject;
7634
7747
  reducer = getReducer();
7635
7748
  return combinedReducer;
7636
7749
  };
7637
7750
  const selector = Object.assign(function makeSelector(selectorFn, selectState) {
7638
7751
  return function selector2(state, ...args) {
7639
- return selectorFn(createStateProxy(selectState ? selectState(state, ...args) : state, reducerMap), ...args);
7752
+ return selectorFn(createStateProxy(selectState ? selectState(state, ...args) : state, reducerMap, initialStateCache), ...args);
7640
7753
  };
7641
7754
  }, {
7642
7755
  original