@measured/puck-plugin-heading-analyzer 0.21.0-canary.cf074bc6 → 0.21.0-canary.dfecd012

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/index.mjs CHANGED
@@ -91,7 +91,7 @@ var require_classnames = __commonJS({
91
91
  init_react_import();
92
92
  (function() {
93
93
  "use strict";
94
- var hasOwn = {}.hasOwnProperty;
94
+ var hasOwn2 = {}.hasOwnProperty;
95
95
  function classNames() {
96
96
  var classes = "";
97
97
  for (var i = 0; i < arguments.length; i++) {
@@ -117,7 +117,7 @@ var require_classnames = __commonJS({
117
117
  }
118
118
  var classes = "";
119
119
  for (var key in arg) {
120
- if (hasOwn.call(arg, key) && arg[key]) {
120
+ if (hasOwn2.call(arg, key) && arg[key]) {
121
121
  classes = appendClass(classes, key);
122
122
  }
123
123
  }
@@ -206,11 +206,11 @@ var require_flat = __commonJS({
206
206
  }
207
207
  function isEmpty(val) {
208
208
  const type = Object.prototype.toString.call(val);
209
- const isArray = type === "[object Array]";
209
+ const isArray2 = type === "[object Array]";
210
210
  const isObject = type === "[object Object]";
211
211
  if (!val) {
212
212
  return true;
213
- } else if (isArray) {
213
+ } else if (isArray2) {
214
214
  return !val.length;
215
215
  } else if (isObject) {
216
216
  return !Object.keys(val).length;
@@ -260,42 +260,6 @@ var require_flat = __commonJS({
260
260
  }
261
261
  });
262
262
 
263
- // ../../node_modules/fast-deep-equal/index.js
264
- var require_fast_deep_equal = __commonJS({
265
- "../../node_modules/fast-deep-equal/index.js"(exports, module) {
266
- "use strict";
267
- init_react_import();
268
- module.exports = function equal(a, b) {
269
- if (a === b) return true;
270
- if (a && b && typeof a == "object" && typeof b == "object") {
271
- if (a.constructor !== b.constructor) return false;
272
- var length, i, keys;
273
- if (Array.isArray(a)) {
274
- length = a.length;
275
- if (length != b.length) return false;
276
- for (i = length; i-- !== 0; )
277
- if (!equal(a[i], b[i])) return false;
278
- return true;
279
- }
280
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
281
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
282
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
283
- keys = Object.keys(a);
284
- length = keys.length;
285
- if (length !== Object.keys(b).length) return false;
286
- for (i = length; i-- !== 0; )
287
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
288
- for (i = length; i-- !== 0; ) {
289
- var key = keys[i];
290
- if (!equal(a[key], b[key])) return false;
291
- }
292
- return true;
293
- }
294
- return a !== a && b !== b;
295
- };
296
- }
297
- });
298
-
299
263
  // index.ts
300
264
  init_react_import();
301
265
 
@@ -842,10 +806,10 @@ var insert = (list, index, item) => {
842
806
  // ../core/lib/generate-id.ts
843
807
  init_react_import();
844
808
 
845
- // ../../node_modules/uuid/dist/esm-node/index.js
809
+ // ../core/node_modules/uuid/dist/esm-node/index.js
846
810
  init_react_import();
847
811
 
848
- // ../../node_modules/uuid/dist/esm-node/rng.js
812
+ // ../core/node_modules/uuid/dist/esm-node/rng.js
849
813
  init_react_import();
850
814
  import crypto from "crypto";
851
815
  var rnds8Pool = new Uint8Array(256);
@@ -858,7 +822,7 @@ function rng() {
858
822
  return rnds8Pool.slice(poolPtr, poolPtr += 16);
859
823
  }
860
824
 
861
- // ../../node_modules/uuid/dist/esm-node/stringify.js
825
+ // ../core/node_modules/uuid/dist/esm-node/stringify.js
862
826
  init_react_import();
863
827
  var byteToHex = [];
864
828
  for (let i = 0; i < 256; ++i) {
@@ -868,17 +832,17 @@ function unsafeStringify(arr, offset = 0) {
868
832
  return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
869
833
  }
870
834
 
871
- // ../../node_modules/uuid/dist/esm-node/v4.js
835
+ // ../core/node_modules/uuid/dist/esm-node/v4.js
872
836
  init_react_import();
873
837
 
874
- // ../../node_modules/uuid/dist/esm-node/native.js
838
+ // ../core/node_modules/uuid/dist/esm-node/native.js
875
839
  init_react_import();
876
840
  import crypto2 from "crypto";
877
841
  var native_default = {
878
842
  randomUUID: crypto2.randomUUID
879
843
  };
880
844
 
881
- // ../../node_modules/uuid/dist/esm-node/v4.js
845
+ // ../core/node_modules/uuid/dist/esm-node/v4.js
882
846
  function v4(options, buf, offset) {
883
847
  if (native_default.randomUUID && !buf && !options) {
884
848
  return native_default.randomUUID();
@@ -1458,7 +1422,7 @@ var createStoreImpl = (createState) => {
1458
1422
  const initialState = state = createState(setState, getState, api);
1459
1423
  return api;
1460
1424
  };
1461
- var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
1425
+ var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
1462
1426
 
1463
1427
  // ../../node_modules/zustand/esm/react.mjs
1464
1428
  init_react_import();
@@ -1467,8 +1431,8 @@ var identity = (arg) => arg;
1467
1431
  function useStore(api, selector = identity) {
1468
1432
  const slice = React2.useSyncExternalStore(
1469
1433
  api.subscribe,
1470
- () => selector(api.getState()),
1471
- () => selector(api.getInitialState())
1434
+ React2.useCallback(() => selector(api.getState()), [api, selector]),
1435
+ React2.useCallback(() => selector(api.getInitialState()), [api, selector])
1472
1436
  );
1473
1437
  React2.useDebugValue(slice);
1474
1438
  return slice;
@@ -1479,13 +1443,13 @@ var createImpl = (createState) => {
1479
1443
  Object.assign(useBoundStore, api);
1480
1444
  return useBoundStore;
1481
1445
  };
1482
- var create = (createState) => createState ? createImpl(createState) : createImpl;
1446
+ var create = ((createState) => createState ? createImpl(createState) : createImpl);
1483
1447
 
1484
1448
  // ../../node_modules/zustand/esm/middleware.mjs
1485
1449
  init_react_import();
1486
1450
  var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
1487
1451
  const origSubscribe = api.subscribe;
1488
- api.subscribe = (selector, optListener, options) => {
1452
+ api.subscribe = ((selector, optListener, options) => {
1489
1453
  let listener = selector;
1490
1454
  if (optListener) {
1491
1455
  const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;
@@ -1502,7 +1466,7 @@ var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
1502
1466
  }
1503
1467
  }
1504
1468
  return origSubscribe(listener);
1505
- };
1469
+ });
1506
1470
  const initialState = fn(set, get, api);
1507
1471
  return initialState;
1508
1472
  };
@@ -1686,23 +1650,435 @@ var flattenData = (state, config) => {
1686
1650
 
1687
1651
  // ../core/lib/get-changed.ts
1688
1652
  init_react_import();
1689
- var import_fast_deep_equal = __toESM(require_fast_deep_equal());
1653
+
1654
+ // ../../node_modules/fast-equals/dist/esm/index.mjs
1655
+ init_react_import();
1656
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
1657
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1658
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1659
+ function combineComparators(comparatorA, comparatorB) {
1660
+ return function isEqual(a, b, state) {
1661
+ return comparatorA(a, b, state) && comparatorB(a, b, state);
1662
+ };
1663
+ }
1664
+ function createIsCircular(areItemsEqual) {
1665
+ return function isCircular(a, b, state) {
1666
+ if (!a || !b || typeof a !== "object" || typeof b !== "object") {
1667
+ return areItemsEqual(a, b, state);
1668
+ }
1669
+ var cache2 = state.cache;
1670
+ var cachedA = cache2.get(a);
1671
+ var cachedB = cache2.get(b);
1672
+ if (cachedA && cachedB) {
1673
+ return cachedA === b && cachedB === a;
1674
+ }
1675
+ cache2.set(a, b);
1676
+ cache2.set(b, a);
1677
+ var result = areItemsEqual(a, b, state);
1678
+ cache2.delete(a);
1679
+ cache2.delete(b);
1680
+ return result;
1681
+ };
1682
+ }
1683
+ function getStrictProperties(object) {
1684
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
1685
+ }
1686
+ var hasOwn = Object.hasOwn || (function(object, property) {
1687
+ return hasOwnProperty.call(object, property);
1688
+ });
1689
+ function sameValueZeroEqual(a, b) {
1690
+ return a === b || !a && !b && a !== a && b !== b;
1691
+ }
1692
+ var PREACT_VNODE = "__v";
1693
+ var PREACT_OWNER = "__o";
1694
+ var REACT_OWNER = "_owner";
1695
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1696
+ var keys = Object.keys;
1697
+ function areArraysEqual(a, b, state) {
1698
+ var index = a.length;
1699
+ if (b.length !== index) {
1700
+ return false;
1701
+ }
1702
+ while (index-- > 0) {
1703
+ if (!state.equals(a[index], b[index], index, index, a, b, state)) {
1704
+ return false;
1705
+ }
1706
+ }
1707
+ return true;
1708
+ }
1709
+ function areDatesEqual(a, b) {
1710
+ return sameValueZeroEqual(a.getTime(), b.getTime());
1711
+ }
1712
+ function areErrorsEqual(a, b) {
1713
+ return a.name === b.name && a.message === b.message && a.cause === b.cause && a.stack === b.stack;
1714
+ }
1715
+ function areFunctionsEqual(a, b) {
1716
+ return a === b;
1717
+ }
1718
+ function areMapsEqual(a, b, state) {
1719
+ var size = a.size;
1720
+ if (size !== b.size) {
1721
+ return false;
1722
+ }
1723
+ if (!size) {
1724
+ return true;
1725
+ }
1726
+ var matchedIndices = new Array(size);
1727
+ var aIterable = a.entries();
1728
+ var aResult;
1729
+ var bResult;
1730
+ var index = 0;
1731
+ while (aResult = aIterable.next()) {
1732
+ if (aResult.done) {
1733
+ break;
1734
+ }
1735
+ var bIterable = b.entries();
1736
+ var hasMatch = false;
1737
+ var matchIndex = 0;
1738
+ while (bResult = bIterable.next()) {
1739
+ if (bResult.done) {
1740
+ break;
1741
+ }
1742
+ if (matchedIndices[matchIndex]) {
1743
+ matchIndex++;
1744
+ continue;
1745
+ }
1746
+ var aEntry = aResult.value;
1747
+ var bEntry = bResult.value;
1748
+ if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state) && state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)) {
1749
+ hasMatch = matchedIndices[matchIndex] = true;
1750
+ break;
1751
+ }
1752
+ matchIndex++;
1753
+ }
1754
+ if (!hasMatch) {
1755
+ return false;
1756
+ }
1757
+ index++;
1758
+ }
1759
+ return true;
1760
+ }
1761
+ var areNumbersEqual = sameValueZeroEqual;
1762
+ function areObjectsEqual(a, b, state) {
1763
+ var properties = keys(a);
1764
+ var index = properties.length;
1765
+ if (keys(b).length !== index) {
1766
+ return false;
1767
+ }
1768
+ while (index-- > 0) {
1769
+ if (!isPropertyEqual(a, b, state, properties[index])) {
1770
+ return false;
1771
+ }
1772
+ }
1773
+ return true;
1774
+ }
1775
+ function areObjectsEqualStrict(a, b, state) {
1776
+ var properties = getStrictProperties(a);
1777
+ var index = properties.length;
1778
+ if (getStrictProperties(b).length !== index) {
1779
+ return false;
1780
+ }
1781
+ var property;
1782
+ var descriptorA;
1783
+ var descriptorB;
1784
+ while (index-- > 0) {
1785
+ property = properties[index];
1786
+ if (!isPropertyEqual(a, b, state, property)) {
1787
+ return false;
1788
+ }
1789
+ descriptorA = getOwnPropertyDescriptor(a, property);
1790
+ descriptorB = getOwnPropertyDescriptor(b, property);
1791
+ if ((descriptorA || descriptorB) && (!descriptorA || !descriptorB || descriptorA.configurable !== descriptorB.configurable || descriptorA.enumerable !== descriptorB.enumerable || descriptorA.writable !== descriptorB.writable)) {
1792
+ return false;
1793
+ }
1794
+ }
1795
+ return true;
1796
+ }
1797
+ function arePrimitiveWrappersEqual(a, b) {
1798
+ return sameValueZeroEqual(a.valueOf(), b.valueOf());
1799
+ }
1800
+ function areRegExpsEqual(a, b) {
1801
+ return a.source === b.source && a.flags === b.flags;
1802
+ }
1803
+ function areSetsEqual(a, b, state) {
1804
+ var size = a.size;
1805
+ if (size !== b.size) {
1806
+ return false;
1807
+ }
1808
+ if (!size) {
1809
+ return true;
1810
+ }
1811
+ var matchedIndices = new Array(size);
1812
+ var aIterable = a.values();
1813
+ var aResult;
1814
+ var bResult;
1815
+ while (aResult = aIterable.next()) {
1816
+ if (aResult.done) {
1817
+ break;
1818
+ }
1819
+ var bIterable = b.values();
1820
+ var hasMatch = false;
1821
+ var matchIndex = 0;
1822
+ while (bResult = bIterable.next()) {
1823
+ if (bResult.done) {
1824
+ break;
1825
+ }
1826
+ if (!matchedIndices[matchIndex] && state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state)) {
1827
+ hasMatch = matchedIndices[matchIndex] = true;
1828
+ break;
1829
+ }
1830
+ matchIndex++;
1831
+ }
1832
+ if (!hasMatch) {
1833
+ return false;
1834
+ }
1835
+ }
1836
+ return true;
1837
+ }
1838
+ function areTypedArraysEqual(a, b) {
1839
+ var index = a.length;
1840
+ if (b.length !== index) {
1841
+ return false;
1842
+ }
1843
+ while (index-- > 0) {
1844
+ if (a[index] !== b[index]) {
1845
+ return false;
1846
+ }
1847
+ }
1848
+ return true;
1849
+ }
1850
+ function areUrlsEqual(a, b) {
1851
+ return a.hostname === b.hostname && a.pathname === b.pathname && a.protocol === b.protocol && a.port === b.port && a.hash === b.hash && a.username === b.username && a.password === b.password;
1852
+ }
1853
+ function isPropertyEqual(a, b, state, property) {
1854
+ if ((property === REACT_OWNER || property === PREACT_OWNER || property === PREACT_VNODE) && (a.$$typeof || b.$$typeof)) {
1855
+ return true;
1856
+ }
1857
+ return hasOwn(b, property) && state.equals(a[property], b[property], property, property, a, b, state);
1858
+ }
1859
+ var ARGUMENTS_TAG = "[object Arguments]";
1860
+ var BOOLEAN_TAG = "[object Boolean]";
1861
+ var DATE_TAG = "[object Date]";
1862
+ var ERROR_TAG = "[object Error]";
1863
+ var MAP_TAG = "[object Map]";
1864
+ var NUMBER_TAG = "[object Number]";
1865
+ var OBJECT_TAG = "[object Object]";
1866
+ var REG_EXP_TAG = "[object RegExp]";
1867
+ var SET_TAG = "[object Set]";
1868
+ var STRING_TAG = "[object String]";
1869
+ var URL_TAG = "[object URL]";
1870
+ var isArray = Array.isArray;
1871
+ var isTypedArray = typeof ArrayBuffer === "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null;
1872
+ var assign = Object.assign;
1873
+ var getTag = Object.prototype.toString.call.bind(Object.prototype.toString);
1874
+ function createEqualityComparator(_a) {
1875
+ var areArraysEqual2 = _a.areArraysEqual, areDatesEqual2 = _a.areDatesEqual, areErrorsEqual2 = _a.areErrorsEqual, areFunctionsEqual2 = _a.areFunctionsEqual, areMapsEqual2 = _a.areMapsEqual, areNumbersEqual2 = _a.areNumbersEqual, areObjectsEqual2 = _a.areObjectsEqual, arePrimitiveWrappersEqual2 = _a.arePrimitiveWrappersEqual, areRegExpsEqual2 = _a.areRegExpsEqual, areSetsEqual2 = _a.areSetsEqual, areTypedArraysEqual2 = _a.areTypedArraysEqual, areUrlsEqual2 = _a.areUrlsEqual;
1876
+ return function comparator(a, b, state) {
1877
+ if (a === b) {
1878
+ return true;
1879
+ }
1880
+ if (a == null || b == null) {
1881
+ return false;
1882
+ }
1883
+ var type = typeof a;
1884
+ if (type !== typeof b) {
1885
+ return false;
1886
+ }
1887
+ if (type !== "object") {
1888
+ if (type === "number") {
1889
+ return areNumbersEqual2(a, b, state);
1890
+ }
1891
+ if (type === "function") {
1892
+ return areFunctionsEqual2(a, b, state);
1893
+ }
1894
+ return false;
1895
+ }
1896
+ var constructor = a.constructor;
1897
+ if (constructor !== b.constructor) {
1898
+ return false;
1899
+ }
1900
+ if (constructor === Object) {
1901
+ return areObjectsEqual2(a, b, state);
1902
+ }
1903
+ if (isArray(a)) {
1904
+ return areArraysEqual2(a, b, state);
1905
+ }
1906
+ if (isTypedArray != null && isTypedArray(a)) {
1907
+ return areTypedArraysEqual2(a, b, state);
1908
+ }
1909
+ if (constructor === Date) {
1910
+ return areDatesEqual2(a, b, state);
1911
+ }
1912
+ if (constructor === RegExp) {
1913
+ return areRegExpsEqual2(a, b, state);
1914
+ }
1915
+ if (constructor === Map) {
1916
+ return areMapsEqual2(a, b, state);
1917
+ }
1918
+ if (constructor === Set) {
1919
+ return areSetsEqual2(a, b, state);
1920
+ }
1921
+ var tag = getTag(a);
1922
+ if (tag === DATE_TAG) {
1923
+ return areDatesEqual2(a, b, state);
1924
+ }
1925
+ if (tag === REG_EXP_TAG) {
1926
+ return areRegExpsEqual2(a, b, state);
1927
+ }
1928
+ if (tag === MAP_TAG) {
1929
+ return areMapsEqual2(a, b, state);
1930
+ }
1931
+ if (tag === SET_TAG) {
1932
+ return areSetsEqual2(a, b, state);
1933
+ }
1934
+ if (tag === OBJECT_TAG) {
1935
+ return typeof a.then !== "function" && typeof b.then !== "function" && areObjectsEqual2(a, b, state);
1936
+ }
1937
+ if (tag === URL_TAG) {
1938
+ return areUrlsEqual2(a, b, state);
1939
+ }
1940
+ if (tag === ERROR_TAG) {
1941
+ return areErrorsEqual2(a, b, state);
1942
+ }
1943
+ if (tag === ARGUMENTS_TAG) {
1944
+ return areObjectsEqual2(a, b, state);
1945
+ }
1946
+ if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {
1947
+ return arePrimitiveWrappersEqual2(a, b, state);
1948
+ }
1949
+ return false;
1950
+ };
1951
+ }
1952
+ function createEqualityComparatorConfig(_a) {
1953
+ var circular = _a.circular, createCustomConfig = _a.createCustomConfig, strict = _a.strict;
1954
+ var config = {
1955
+ areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,
1956
+ areDatesEqual,
1957
+ areErrorsEqual,
1958
+ areFunctionsEqual,
1959
+ areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
1960
+ areNumbersEqual,
1961
+ areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,
1962
+ arePrimitiveWrappersEqual,
1963
+ areRegExpsEqual,
1964
+ areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,
1965
+ areTypedArraysEqual: strict ? areObjectsEqualStrict : areTypedArraysEqual,
1966
+ areUrlsEqual
1967
+ };
1968
+ if (createCustomConfig) {
1969
+ config = assign({}, config, createCustomConfig(config));
1970
+ }
1971
+ if (circular) {
1972
+ var areArraysEqual$1 = createIsCircular(config.areArraysEqual);
1973
+ var areMapsEqual$1 = createIsCircular(config.areMapsEqual);
1974
+ var areObjectsEqual$1 = createIsCircular(config.areObjectsEqual);
1975
+ var areSetsEqual$1 = createIsCircular(config.areSetsEqual);
1976
+ config = assign({}, config, {
1977
+ areArraysEqual: areArraysEqual$1,
1978
+ areMapsEqual: areMapsEqual$1,
1979
+ areObjectsEqual: areObjectsEqual$1,
1980
+ areSetsEqual: areSetsEqual$1
1981
+ });
1982
+ }
1983
+ return config;
1984
+ }
1985
+ function createInternalEqualityComparator(compare) {
1986
+ return function(a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {
1987
+ return compare(a, b, state);
1988
+ };
1989
+ }
1990
+ function createIsEqual(_a) {
1991
+ var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
1992
+ if (createState) {
1993
+ return function isEqual(a, b) {
1994
+ var _a2 = createState(), _b = _a2.cache, cache2 = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
1995
+ return comparator(a, b, {
1996
+ cache: cache2,
1997
+ equals,
1998
+ meta,
1999
+ strict
2000
+ });
2001
+ };
2002
+ }
2003
+ if (circular) {
2004
+ return function isEqual(a, b) {
2005
+ return comparator(a, b, {
2006
+ cache: /* @__PURE__ */ new WeakMap(),
2007
+ equals,
2008
+ meta: void 0,
2009
+ strict
2010
+ });
2011
+ };
2012
+ }
2013
+ var state = {
2014
+ cache: void 0,
2015
+ equals,
2016
+ meta: void 0,
2017
+ strict
2018
+ };
2019
+ return function isEqual(a, b) {
2020
+ return comparator(a, b, state);
2021
+ };
2022
+ }
2023
+ var deepEqual = createCustomEqual();
2024
+ var strictDeepEqual = createCustomEqual({ strict: true });
2025
+ var circularDeepEqual = createCustomEqual({ circular: true });
2026
+ var strictCircularDeepEqual = createCustomEqual({
2027
+ circular: true,
2028
+ strict: true
2029
+ });
2030
+ var shallowEqual = createCustomEqual({
2031
+ createInternalComparator: function() {
2032
+ return sameValueZeroEqual;
2033
+ }
2034
+ });
2035
+ var strictShallowEqual = createCustomEqual({
2036
+ strict: true,
2037
+ createInternalComparator: function() {
2038
+ return sameValueZeroEqual;
2039
+ }
2040
+ });
2041
+ var circularShallowEqual = createCustomEqual({
2042
+ circular: true,
2043
+ createInternalComparator: function() {
2044
+ return sameValueZeroEqual;
2045
+ }
2046
+ });
2047
+ var strictCircularShallowEqual = createCustomEqual({
2048
+ circular: true,
2049
+ createInternalComparator: function() {
2050
+ return sameValueZeroEqual;
2051
+ },
2052
+ strict: true
2053
+ });
2054
+ function createCustomEqual(options) {
2055
+ if (options === void 0) {
2056
+ options = {};
2057
+ }
2058
+ var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b;
2059
+ var config = createEqualityComparatorConfig(options);
2060
+ var comparator = createEqualityComparator(config);
2061
+ var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
2062
+ return createIsEqual({ circular, comparator, createState, equals, strict });
2063
+ }
2064
+
2065
+ // ../core/lib/get-changed.ts
1690
2066
  var getChanged = (newItem, oldItem) => {
1691
2067
  return newItem ? Object.keys(newItem.props || {}).reduce((acc, item) => {
1692
2068
  const newItemProps = (newItem == null ? void 0 : newItem.props) || {};
1693
2069
  const oldItemProps = (oldItem == null ? void 0 : oldItem.props) || {};
1694
2070
  return __spreadProps(__spreadValues({}, acc), {
1695
- [item]: !(0, import_fast_deep_equal.default)(oldItemProps[item], newItemProps[item])
2071
+ [item]: !deepEqual(oldItemProps[item], newItemProps[item])
1696
2072
  });
1697
2073
  }, {}) : {};
1698
2074
  };
1699
2075
 
1700
2076
  // ../core/store/slices/permissions.ts
1701
2077
  var createPermissionsSlice = (set, get) => {
1702
- const resolvePermissions = (..._0) => __async(void 0, [..._0], function* (params = {}, force) {
2078
+ const resolvePermissions = (..._0) => __async(null, [..._0], function* (params = {}, force) {
1703
2079
  const { state, permissions, config } = get();
1704
2080
  const { cache: cache2, globalPermissions } = permissions;
1705
- const resolveDataForItem = (item2, force2 = false) => __async(void 0, null, function* () {
2081
+ const resolveDataForItem = (item2, force2 = false) => __async(null, null, function* () {
1706
2082
  var _a, _b, _c;
1707
2083
  const { config: config2, state: appState, setComponentLoading } = get();
1708
2084
  const componentConfig = item2.type === "root" ? config2.root : config2.components[item2.type];
@@ -1757,13 +2133,13 @@ var createPermissionsSlice = (set, get) => {
1757
2133
  if (item) {
1758
2134
  yield resolveDataForItem(item, force);
1759
2135
  } else if (type) {
1760
- flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(void 0, null, function* () {
2136
+ flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(null, null, function* () {
1761
2137
  yield resolveDataForItem(item2, force);
1762
2138
  }));
1763
2139
  } else if (root) {
1764
2140
  resolveDataForRoot(force);
1765
2141
  } else {
1766
- flattenData(state, config).map((item2) => __async(void 0, null, function* () {
2142
+ flattenData(state, config).map((item2) => __async(null, null, function* () {
1767
2143
  yield resolveDataForItem(item2, force);
1768
2144
  }));
1769
2145
  }
@@ -1817,16 +2193,15 @@ var createFieldsSlice = (_set, _get) => {
1817
2193
 
1818
2194
  // ../core/lib/resolve-component-data.ts
1819
2195
  init_react_import();
1820
- var import_fast_deep_equal2 = __toESM(require_fast_deep_equal());
1821
2196
  var cache = { lastChange: {} };
1822
- var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
2197
+ var resolveComponentData = (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
1823
2198
  const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
1824
2199
  const resolvedItem = __spreadValues({}, item);
1825
2200
  const shouldRunResolver = (configForItem == null ? void 0 : configForItem.resolveData) && item.props;
1826
2201
  const id = "id" in item.props ? item.props.id : "root";
1827
2202
  if (shouldRunResolver) {
1828
2203
  const { item: oldItem = null, resolved = {} } = cache.lastChange[id] || {};
1829
- if (trigger !== "force" && item && (0, import_fast_deep_equal2.default)(item, oldItem)) {
2204
+ if (trigger !== "force" && item && deepEqual(item, oldItem)) {
1830
2205
  return { node: resolved, didChange: false };
1831
2206
  }
1832
2207
  const changed = getChanged(item, oldItem);
@@ -1847,11 +2222,11 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
1847
2222
  let itemWithResolvedChildren = yield mapFields(
1848
2223
  resolvedItem,
1849
2224
  {
1850
- slot: (_02) => __async(void 0, [_02], function* ({ value }) {
2225
+ slot: (_02) => __async(null, [_02], function* ({ value }) {
1851
2226
  const content = value;
1852
2227
  return yield Promise.all(
1853
2228
  content.map(
1854
- (childItem) => __async(void 0, null, function* () {
2229
+ (childItem) => __async(null, null, function* () {
1855
2230
  return (yield resolveComponentData(
1856
2231
  childItem,
1857
2232
  config,
@@ -1876,7 +2251,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
1876
2251
  };
1877
2252
  return {
1878
2253
  node: itemWithResolvedChildren,
1879
- didChange: !(0, import_fast_deep_equal2.default)(item, itemWithResolvedChildren)
2254
+ didChange: !deepEqual(item, itemWithResolvedChildren)
1880
2255
  };
1881
2256
  });
1882
2257
 
@@ -2041,7 +2416,7 @@ var createAppStore = (initialAppStore) => create()(
2041
2416
  const selectedItem = state.ui.itemSelector ? getItem(state.ui.itemSelector, state) : null;
2042
2417
  return __spreadProps(__spreadValues({}, s), { state, selectedItem });
2043
2418
  }),
2044
- resolveComponentData: (componentData, trigger) => __async(void 0, null, function* () {
2419
+ resolveComponentData: (componentData, trigger) => __async(null, null, function* () {
2045
2420
  const { config, metadata, setComponentLoading, permissions } = get();
2046
2421
  const timeouts = {};
2047
2422
  return yield resolveComponentData(
@@ -2052,7 +2427,7 @@ var createAppStore = (initialAppStore) => create()(
2052
2427
  const id = "id" in item.props ? item.props.id : "root";
2053
2428
  timeouts[id] = setComponentLoading(id, true, 50);
2054
2429
  },
2055
- (item) => __async(void 0, null, function* () {
2430
+ (item) => __async(null, null, function* () {
2056
2431
  const id = "id" in item.props ? item.props.id : "root";
2057
2432
  if ("type" in item) {
2058
2433
  yield permissions.refreshPermissions({ item });
@@ -2064,7 +2439,7 @@ var createAppStore = (initialAppStore) => create()(
2064
2439
  trigger
2065
2440
  );
2066
2441
  }),
2067
- resolveAndCommitData: () => __async(void 0, null, function* () {
2442
+ resolveAndCommitData: () => __async(null, null, function* () {
2068
2443
  const { config, state, dispatch, resolveComponentData: resolveComponentData2 } = get();
2069
2444
  walkAppState(
2070
2445
  state,
@@ -2491,45 +2866,10 @@ classnames/index.js:
2491
2866
  *)
2492
2867
 
2493
2868
  lucide-react/dist/esm/shared/src/utils.js:
2494
- (**
2495
- * @license lucide-react v0.468.0 - ISC
2496
- *
2497
- * This source code is licensed under the ISC license.
2498
- * See the LICENSE file in the root directory of this source tree.
2499
- *)
2500
-
2501
2869
  lucide-react/dist/esm/defaultAttributes.js:
2502
- (**
2503
- * @license lucide-react v0.468.0 - ISC
2504
- *
2505
- * This source code is licensed under the ISC license.
2506
- * See the LICENSE file in the root directory of this source tree.
2507
- *)
2508
-
2509
2870
  lucide-react/dist/esm/Icon.js:
2510
- (**
2511
- * @license lucide-react v0.468.0 - ISC
2512
- *
2513
- * This source code is licensed under the ISC license.
2514
- * See the LICENSE file in the root directory of this source tree.
2515
- *)
2516
-
2517
2871
  lucide-react/dist/esm/createLucideIcon.js:
2518
- (**
2519
- * @license lucide-react v0.468.0 - ISC
2520
- *
2521
- * This source code is licensed under the ISC license.
2522
- * See the LICENSE file in the root directory of this source tree.
2523
- *)
2524
-
2525
2872
  lucide-react/dist/esm/icons/chevron-right.js:
2526
- (**
2527
- * @license lucide-react v0.468.0 - ISC
2528
- *
2529
- * This source code is licensed under the ISC license.
2530
- * See the LICENSE file in the root directory of this source tree.
2531
- *)
2532
-
2533
2873
  lucide-react/dist/esm/lucide-react.js:
2534
2874
  (**
2535
2875
  * @license lucide-react v0.468.0 - ISC