likec4 1.59.2 → 1.59.4
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/__app__/src/chunks/AIChat.mjs +118 -123
- package/__app__/src/chunks/LikeC4Styles.mjs +828 -686
- package/__app__/src/chunks/ProjectsOverview.mjs +82 -82
- package/__app__/src/chunks/es.mjs +1 -1
- package/__app__/src/chunks/hooks.mjs +164 -135
- package/__app__/src/chunks/libs/@floating-ui.mjs +649 -335
- package/__app__/src/chunks/libs/@mantine.mjs +2934 -2040
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +28 -28
- package/__app__/src/chunks/libs/@tanstack.mjs +46 -51
- package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
- package/__app__/src/chunks/libs/@xyflow/react.mjs +535 -448
- package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
- package/__app__/src/chunks/libs/d3.mjs +20 -45
- package/__app__/src/chunks/libs/fast-equals.mjs +62 -50
- package/__app__/src/chunks/libs/framer.mjs +300 -279
- package/__app__/src/chunks/libs/zod.mjs +17 -14
- package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
- package/__app__/src/chunks/styled-system.mjs +2580 -132
- package/__app__/src/main.mjs +24925 -23485
- package/__app__/src/style.css +1 -1
- package/config/schema.json +49 -0
- package/dist/app/render-view-client.css +1 -0
- package/dist/app/render-view-client.js +739 -0
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +7 -6
- package/dist/chunks/index.d.mts +18 -1
- package/dist/chunks/index2.d.mts +79 -26
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
- package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
- package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
- package/dist/chunks/libs/birpc.mjs +1 -1
- package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
- package/dist/chunks/libs/chevrotain.mjs +16 -16
- package/dist/chunks/libs/json5.mjs +3 -3
- package/dist/chunks/libs/langium.d.mts +1777 -16
- package/dist/chunks/libs/langium.mjs +11 -11
- package/dist/chunks/libs/merge-error-cause.mjs +2 -2
- package/dist/chunks/libs/p-queue.mjs +1 -1
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +2 -2
- package/dist/chunks/libs/picomatch.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +1717 -17
- package/dist/chunks/libs/zod.mjs +4 -4
- package/dist/chunks/node.mjs +68 -57
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +168 -54
- package/dist/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +291 -165
- package/dist/config/index.d.mts +7 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +4 -4
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/internal/index.d.mts +72 -35
- package/dist/vite-plugin/internal/index.mjs +125 -44
- package/package.json +47 -47
- package/react/index.d.mts +22767 -1432
- package/react/index.mjs +38152 -32309
- package/vite-plugin-modules.d.ts +21 -1
- package/dist/chunks/dist.mjs +0 -10
- package/dist/chunks/logger.mjs +0 -1
|
@@ -206,7 +206,7 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
|
|
|
206
206
|
},
|
|
207
207
|
lli8: function(e, n, r, i, a, o, s, c) {
|
|
208
208
|
let l = (e * i - n * r) * (a - s) - (e - r) * (a * c - o * s), u = (e * i - n * r) * (o - c) - (n - i) * (a * c - o * s), f = (e - r) * (o - c) - (n - i) * (a - s);
|
|
209
|
-
return f
|
|
209
|
+
return f != 0 && {
|
|
210
210
|
x: l / f,
|
|
211
211
|
y: u / f
|
|
212
212
|
};
|
|
@@ -322,8 +322,8 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
|
|
|
322
322
|
if (i !== 0) {
|
|
323
323
|
let a = -o(n * n - e * r), s = -e + n;
|
|
324
324
|
return [-(a + s) / i, -(-a + s) / i].filter(reduce);
|
|
325
|
-
}
|
|
326
|
-
return [];
|
|
325
|
+
}
|
|
326
|
+
return n !== r && i === 0 ? [(2 * n - r) / (2 * n - 2 * r)].filter(reduce) : [];
|
|
327
327
|
}
|
|
328
328
|
let c = s[0].y, u = s[1].y, f = s[2].y, p = s[3].y, m = -c + 3 * u - 3 * f + p, h = 3 * c - 6 * u + 3 * f, _ = -3 * c + 3 * u, v = c;
|
|
329
329
|
if (g.approximately(m, 0)) {
|
|
@@ -340,8 +340,9 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
|
|
|
340
340
|
D,
|
|
341
341
|
O
|
|
342
342
|
].filter(reduce);
|
|
343
|
-
}
|
|
344
|
-
|
|
343
|
+
}
|
|
344
|
+
if (C === 0) return w = S < 0 ? crt(-S) : -crt(S), E = 2 * w - h / 3, D = -w - h / 3, [E, D].filter(reduce);
|
|
345
|
+
{
|
|
345
346
|
let e = o(C);
|
|
346
347
|
return w = crt(-S + e), T = crt(S + e), [w - T - h / 3].filter(reduce);
|
|
347
348
|
}
|
|
@@ -352,8 +353,8 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
|
|
|
352
353
|
if (a !== 0) {
|
|
353
354
|
let e = -o(r * r - n * i), s = -n + r;
|
|
354
355
|
return [-(e + s) / a, -(-e + s) / a];
|
|
355
|
-
}
|
|
356
|
-
return [];
|
|
356
|
+
}
|
|
357
|
+
return r !== i && a === 0 ? [(2 * r - i) / (2 * (r - i))] : [];
|
|
357
358
|
}
|
|
358
359
|
if (e.length === 2) {
|
|
359
360
|
let n = e[0], r = e[1];
|
|
@@ -909,12 +910,12 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
|
|
|
909
910
|
let o = a.length();
|
|
910
911
|
p ? (s.push(a.scale(linearDistanceFunction(e, r, f, u, o))), c.push(a.scale(linearDistanceFunction(-n, -i, f, u, o)))) : (s.push(a.scale(e)), c.push(a.scale(-n))), u += o;
|
|
911
912
|
}), c = c.map(function(e) {
|
|
912
|
-
return l = e.points, l[3] ?
|
|
913
|
+
return l = e.points, e.points = l[3] ? [
|
|
913
914
|
l[3],
|
|
914
915
|
l[2],
|
|
915
916
|
l[1],
|
|
916
917
|
l[0]
|
|
917
|
-
] :
|
|
918
|
+
] : [
|
|
918
919
|
l[2],
|
|
919
920
|
l[1],
|
|
920
921
|
l[0]
|
|
@@ -901,7 +901,7 @@ function drag_default() {
|
|
|
901
901
|
e.on("mousedown.drag", mousedowned).filter(r).on("touchstart.drag", touchstarted).on("touchmove.drag", touchmoved, s).on("touchend.drag touchcancel.drag", touchended).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
902
902
|
}
|
|
903
903
|
function mousedowned(n, r) {
|
|
904
|
-
if (!
|
|
904
|
+
if (!m && e.call(this, n, r)) {
|
|
905
905
|
var a = beforestart(this, t.call(this, n, r), n, r, "mouse");
|
|
906
906
|
a && (select_default$1(n.view).on("mousemove.drag", mousemoved, c).on("mouseup.drag", mouseupped, c), nodrag_default(n.view), nopropagation$1(n), p = !1, d = n.clientX, f = n.clientY, a("start", n));
|
|
907
907
|
}
|
|
@@ -917,14 +917,10 @@ function drag_default() {
|
|
|
917
917
|
select_default$1(e.view).on("mousemove.drag mouseup.drag", null), yesdrag(e.view, p), noevent_default$1(e), a.mouse("end", e);
|
|
918
918
|
}
|
|
919
919
|
function touchstarted(n, r) {
|
|
920
|
-
if (e.call(this, n, r))
|
|
921
|
-
var a = n.changedTouches, o = t.call(this, n, r), s = a.length, c, l;
|
|
922
|
-
for (c = 0; c < s; ++c) (l = beforestart(this, o, n, r, a[c].identifier, a[c])) && (nopropagation$1(n), l("start", n, a[c]));
|
|
923
|
-
}
|
|
920
|
+
if (e.call(this, n, r)) for (var a = n.changedTouches, o = t.call(this, n, r), s = a.length, c = 0, l; c < s; ++c) (l = beforestart(this, o, n, r, a[c].identifier, a[c])) && (nopropagation$1(n), l("start", n, a[c]));
|
|
924
921
|
}
|
|
925
922
|
function touchmoved(e) {
|
|
926
|
-
var t = e.changedTouches, n = t.length, r, o;
|
|
927
|
-
for (r = 0; r < n; ++r) (o = a[t[r].identifier]) && (noevent_default$1(e), o("drag", e, t[r]));
|
|
923
|
+
for (var t = e.changedTouches, n = t.length, r = 0, o; r < n; ++r) (o = a[t[r].identifier]) && (noevent_default$1(e), o("drag", e, t[r]));
|
|
928
924
|
}
|
|
929
925
|
function touchended(e) {
|
|
930
926
|
var t = e.changedTouches, n = t.length, r, o;
|
|
@@ -951,9 +947,7 @@ function drag_default() {
|
|
|
951
947
|
a[c] = gesture, g = u++;
|
|
952
948
|
break;
|
|
953
949
|
case "end": delete a[c], --u;
|
|
954
|
-
case "drag":
|
|
955
|
-
f = pointer_default(o || r, t), g = u;
|
|
956
|
-
break;
|
|
950
|
+
case "drag": f = pointer_default(o || r, t), g = u;
|
|
957
951
|
}
|
|
958
952
|
d.call(n, e, new DragEvent(n, {
|
|
959
953
|
sourceEvent: r,
|
|
@@ -1359,8 +1353,7 @@ function isNumberArray(e) {
|
|
|
1359
1353
|
//#endregion
|
|
1360
1354
|
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
|
|
1361
1355
|
function genericArray(e, t) {
|
|
1362
|
-
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, a = Array(r), o = Array(n), s;
|
|
1363
|
-
for (s = 0; s < r; ++s) a[s] = value_default(e[s], t[s]);
|
|
1356
|
+
for (var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, a = Array(r), o = Array(n), s = 0; s < r; ++s) a[s] = value_default(e[s], t[s]);
|
|
1364
1357
|
for (; s < n; ++s) o[s] = t[s];
|
|
1365
1358
|
return function(e) {
|
|
1366
1359
|
for (s = 0; s < r; ++s) o[s] = a[s](e);
|
|
@@ -2115,14 +2108,11 @@ var re = 0;
|
|
|
2115
2108
|
function Transition(e, t, n, r) {
|
|
2116
2109
|
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
2117
2110
|
}
|
|
2118
|
-
function transition(e) {
|
|
2119
|
-
return selection().transition(e);
|
|
2120
|
-
}
|
|
2121
2111
|
function newId() {
|
|
2122
2112
|
return ++re;
|
|
2123
2113
|
}
|
|
2124
2114
|
var q = selection.prototype;
|
|
2125
|
-
Transition.prototype =
|
|
2115
|
+
Transition.prototype = {
|
|
2126
2116
|
constructor: Transition,
|
|
2127
2117
|
select: select_default,
|
|
2128
2118
|
selectAll: selectAll_default,
|
|
@@ -2520,10 +2510,12 @@ var Path = class {
|
|
|
2520
2510
|
if (e = +e, t = +t, n = +n, r = +r, a = +a, a < 0) throw Error(`negative radius: ${a}`);
|
|
2521
2511
|
let o = this._x1, s = this._y1, c = n - e, l = r - t, u = o - e, d = s - t, f = u * u + d * d;
|
|
2522
2512
|
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
|
|
2523
|
-
else if (f > $)
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2513
|
+
else if (f > $) {
|
|
2514
|
+
if (!(Math.abs(d * c - l * u) > $) || !a) this._append`L${this._x1 = e},${this._y1 = t}`;
|
|
2515
|
+
else {
|
|
2516
|
+
let p = n - o, m = r - s, h = c * c + l * l, g = p * p + m * m, _ = Math.sqrt(h), v = Math.sqrt(f), b = a * Math.tan((Z - Math.acos((h + f - g) / (2 * _ * v))) / 2), S = b / v, C = b / _;
|
|
2517
|
+
Math.abs(S - 1) > $ && this._append`L${e + S * u},${t + S * d}`, this._append`A${a},${a},0,0,${+(d * p > u * m)},${this._x1 = e + C * c},${this._y1 = t + C * l}`;
|
|
2518
|
+
}
|
|
2527
2519
|
}
|
|
2528
2520
|
}
|
|
2529
2521
|
arc(e, t, n, r, a, o) {
|
|
@@ -2538,10 +2530,7 @@ var Path = class {
|
|
|
2538
2530
|
return this._;
|
|
2539
2531
|
}
|
|
2540
2532
|
};
|
|
2541
|
-
|
|
2542
|
-
return new Path();
|
|
2543
|
-
}
|
|
2544
|
-
path.prototype = Path.prototype;
|
|
2533
|
+
Path.prototype;
|
|
2545
2534
|
//#endregion
|
|
2546
2535
|
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
|
|
2547
2536
|
function withPath(e) {
|
|
@@ -2586,9 +2575,7 @@ Linear.prototype = {
|
|
|
2586
2575
|
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
2587
2576
|
break;
|
|
2588
2577
|
case 1: this._point = 2;
|
|
2589
|
-
default:
|
|
2590
|
-
this._context.lineTo(e, t);
|
|
2591
|
-
break;
|
|
2578
|
+
default: this._context.lineTo(e, t);
|
|
2592
2579
|
}
|
|
2593
2580
|
}
|
|
2594
2581
|
};
|
|
@@ -2651,9 +2638,7 @@ Cardinal.prototype = {
|
|
|
2651
2638
|
case 2:
|
|
2652
2639
|
this._context.lineTo(this._x2, this._y2);
|
|
2653
2640
|
break;
|
|
2654
|
-
case 3:
|
|
2655
|
-
point$1(this, this._x1, this._y1);
|
|
2656
|
-
break;
|
|
2641
|
+
case 3: point$1(this, this._x1, this._y1);
|
|
2657
2642
|
}
|
|
2658
2643
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
2659
2644
|
},
|
|
@@ -2666,9 +2651,7 @@ Cardinal.prototype = {
|
|
|
2666
2651
|
this._point = 2, this._x1 = e, this._y1 = t;
|
|
2667
2652
|
break;
|
|
2668
2653
|
case 2: this._point = 3;
|
|
2669
|
-
default:
|
|
2670
|
-
point$1(this, e, t);
|
|
2671
|
-
break;
|
|
2654
|
+
default: point$1(this, e, t);
|
|
2672
2655
|
}
|
|
2673
2656
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2674
2657
|
}
|
|
@@ -2710,9 +2693,7 @@ CardinalOpen.prototype = {
|
|
|
2710
2693
|
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
2711
2694
|
break;
|
|
2712
2695
|
case 3: this._point = 4;
|
|
2713
|
-
default:
|
|
2714
|
-
point$1(this, e, t);
|
|
2715
|
-
break;
|
|
2696
|
+
default: point$1(this, e, t);
|
|
2716
2697
|
}
|
|
2717
2698
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2718
2699
|
}
|
|
@@ -2756,9 +2737,7 @@ CatmullRom.prototype = {
|
|
|
2756
2737
|
case 2:
|
|
2757
2738
|
this._context.lineTo(this._x2, this._y2);
|
|
2758
2739
|
break;
|
|
2759
|
-
case 3:
|
|
2760
|
-
this.point(this._x2, this._y2);
|
|
2761
|
-
break;
|
|
2740
|
+
case 3: this.point(this._x2, this._y2);
|
|
2762
2741
|
}
|
|
2763
2742
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
2764
2743
|
},
|
|
@@ -2775,9 +2754,7 @@ CatmullRom.prototype = {
|
|
|
2775
2754
|
this._point = 2;
|
|
2776
2755
|
break;
|
|
2777
2756
|
case 2: this._point = 3;
|
|
2778
|
-
default:
|
|
2779
|
-
point(this, e, t);
|
|
2780
|
-
break;
|
|
2757
|
+
default: point(this, e, t);
|
|
2781
2758
|
}
|
|
2782
2759
|
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2783
2760
|
}
|
|
@@ -2823,9 +2800,7 @@ CatmullRomOpen.prototype = {
|
|
|
2823
2800
|
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
2824
2801
|
break;
|
|
2825
2802
|
case 3: this._point = 4;
|
|
2826
|
-
default:
|
|
2827
|
-
point(this, e, t);
|
|
2828
|
-
break;
|
|
2803
|
+
default: point(this, e, t);
|
|
2829
2804
|
}
|
|
2830
2805
|
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2831
2806
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../rolldown-runtime.mjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/fast-equals@6.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/fast-equals@6.0.3/node_modules/fast-equals/dist/es/index.mjs
|
|
3
3
|
var { getOwnPropertyNames: e, getOwnPropertySymbols: t } = Object, { hasOwnProperty: n } = Object.prototype;
|
|
4
4
|
function combineComparators(e, t) {
|
|
5
5
|
return function isEqual(n, r, i) {
|
|
@@ -20,7 +20,7 @@ function getStrictProperties(n) {
|
|
|
20
20
|
let r = t(n);
|
|
21
21
|
return r.length ? e(n).concat(r) : e(n);
|
|
22
22
|
}
|
|
23
|
-
var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", { getOwnPropertyDescriptor:
|
|
23
|
+
var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", s = typeof Float16Array < "u", { getOwnPropertyDescriptor: c, keys: l } = Object, u = Object.is || function sameValueEqual(e, t) {
|
|
24
24
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
25
25
|
};
|
|
26
26
|
function strictEqual(e, t) {
|
|
@@ -39,10 +39,10 @@ function areDataViewsEqual(e, t) {
|
|
|
39
39
|
return e.byteLength === t.byteLength && areTypedArraysEqual(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
|
|
40
40
|
}
|
|
41
41
|
function areDatesEqual(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return u(e.getTime(), t.getTime());
|
|
43
43
|
}
|
|
44
|
-
function areErrorsEqual(e, t) {
|
|
45
|
-
return e.name === t.name && e.message === t.message && e.
|
|
44
|
+
function areErrorsEqual(e, t, n) {
|
|
45
|
+
return e.name === t.name && e.message === t.message && e.stack === t.stack && n.equals(e.cause, t.cause, "cause", "cause", e, t, n);
|
|
46
46
|
}
|
|
47
47
|
function areMapsEqual(e, t, n) {
|
|
48
48
|
let r = e.size;
|
|
@@ -69,20 +69,20 @@ function areMapsEqual(e, t, n) {
|
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
71
|
function areObjectsEqual(e, t, n) {
|
|
72
|
-
let r =
|
|
73
|
-
if (
|
|
72
|
+
let r = l(e), i = r.length;
|
|
73
|
+
if (l(t).length !== i) return !1;
|
|
74
74
|
for (; i-- > 0;) if (!isPropertyEqual(e, t, n, r[i])) return !1;
|
|
75
75
|
return !0;
|
|
76
76
|
}
|
|
77
77
|
function areObjectsEqualStrict(e, t, n) {
|
|
78
78
|
let r = getStrictProperties(e), i = r.length;
|
|
79
79
|
if (getStrictProperties(t).length !== i) return !1;
|
|
80
|
-
let a, o,
|
|
81
|
-
for (; i-- > 0;) if (a = r[i], !isPropertyEqual(e, t, n, a) || (o =
|
|
80
|
+
let a, o, s;
|
|
81
|
+
for (; i-- > 0;) if (a = r[i], !isPropertyEqual(e, t, n, a) || (o = c(e, a), s = c(t, a), (o || s) && (!o || !s || o.configurable !== s.configurable || o.enumerable !== s.enumerable || o.writable !== s.writable))) return !1;
|
|
82
82
|
return !0;
|
|
83
83
|
}
|
|
84
84
|
function arePrimitiveWrappersEqual(e, t) {
|
|
85
|
-
return
|
|
85
|
+
return u(e.valueOf(), t.valueOf());
|
|
86
86
|
}
|
|
87
87
|
function areRegExpsEqual(e, t) {
|
|
88
88
|
return e.source === t.source && e.flags === t.flags;
|
|
@@ -108,24 +108,35 @@ function areSetsEqual(e, t, n) {
|
|
|
108
108
|
function areTypedArraysEqual(e, t) {
|
|
109
109
|
let n = e.length;
|
|
110
110
|
if (t.length !== n || e.byteOffset !== t.byteOffset) return !1;
|
|
111
|
+
if (e instanceof Float64Array || e instanceof Float32Array || s && e instanceof Float16Array) {
|
|
112
|
+
for (; n-- > 0;) if (e[n] !== t[n] && (e[n] === e[n] || t[n] === t[n])) return !1;
|
|
113
|
+
return !0;
|
|
114
|
+
}
|
|
111
115
|
for (; n-- > 0;) if (e[n] !== t[n]) return !1;
|
|
112
116
|
return !0;
|
|
113
117
|
}
|
|
114
118
|
function areUrlsEqual(e, t) {
|
|
115
|
-
return e.
|
|
119
|
+
return e.href === t.href || e.protocol === t.protocol && e.username === t.username && e.password === t.password && e.host === t.host && e.pathname === t.pathname && e.hash === t.hash && areSearchParamsEqual(e.searchParams, t.searchParams);
|
|
120
|
+
}
|
|
121
|
+
function areSearchParamsEqual(e, t) {
|
|
122
|
+
let n = e.toString(), r = t.toString();
|
|
123
|
+
return n === r || sortSearchParams(n) === sortSearchParams(r);
|
|
124
|
+
}
|
|
125
|
+
function sortSearchParams(e) {
|
|
126
|
+
return e.split("&").sort().join("&");
|
|
116
127
|
}
|
|
117
128
|
function isPropertyEqual(e, t, n, s) {
|
|
118
129
|
return (s === o || s === a || s === i) && (e.$$typeof || t.$$typeof) ? !0 : r(t, s) && n.equals(e[s], t[s], s, s, e, t, n);
|
|
119
130
|
}
|
|
120
|
-
var
|
|
131
|
+
var d = Object.prototype.toString;
|
|
121
132
|
function createEqualityComparator(e) {
|
|
122
|
-
let t = createSupportedComparatorMap(e), { areArraysEqual: n, areDatesEqual: r, areFunctionsEqual: i, areMapsEqual: a, areNumbersEqual: o, areObjectsEqual: s, areRegExpsEqual: c, areSetsEqual: l, getUnsupportedCustomComparator:
|
|
133
|
+
let t = createSupportedComparatorMap(e), { areArraysEqual: n, areDatesEqual: r, areFunctionsEqual: i, areMapsEqual: a, areNumbersEqual: o, areObjectsEqual: s, areRegExpsEqual: c, areSetsEqual: l, getUnsupportedCustomComparator: u } = e;
|
|
123
134
|
return function comparator(e, f, p) {
|
|
124
135
|
if (e === f) return !0;
|
|
125
136
|
if (e == null || f == null) return !1;
|
|
126
137
|
let m = typeof e;
|
|
127
138
|
if (m !== typeof f) return !1;
|
|
128
|
-
if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function"
|
|
139
|
+
if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function" && i(e, f, p);
|
|
129
140
|
let h = e.constructor;
|
|
130
141
|
if (h !== f.constructor) return !1;
|
|
131
142
|
if (h === Object) return s(e, f, p);
|
|
@@ -136,9 +147,9 @@ function createEqualityComparator(e) {
|
|
|
136
147
|
if (h === Set) return l(e, f, p);
|
|
137
148
|
if (h === Promise) return !1;
|
|
138
149
|
if (Array.isArray(e)) return n(e, f, p);
|
|
139
|
-
let g =
|
|
150
|
+
let g = d.call(e), _ = t[g];
|
|
140
151
|
if (_) return _(e, f, p);
|
|
141
|
-
let v =
|
|
152
|
+
let v = u && u(e, f, p, g);
|
|
142
153
|
return v ? v(e, f, p) : !1;
|
|
143
154
|
};
|
|
144
155
|
}
|
|
@@ -148,10 +159,10 @@ function createEqualityComparatorConfig({ circular: e, createCustomConfig: t, st
|
|
|
148
159
|
areArraysEqual: n ? areObjectsEqualStrict : areArraysEqual,
|
|
149
160
|
areDataViewsEqual,
|
|
150
161
|
areDatesEqual,
|
|
151
|
-
areErrorsEqual,
|
|
162
|
+
areErrorsEqual: n ? combineComparators(areErrorsEqual, areObjectsEqualStrict) : combineComparators(areErrorsEqual, areObjectsEqual),
|
|
152
163
|
areFunctionsEqual: strictEqual,
|
|
153
164
|
areMapsEqual: n ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
|
|
154
|
-
areNumbersEqual:
|
|
165
|
+
areNumbersEqual: u,
|
|
155
166
|
areObjectsEqual: n ? areObjectsEqualStrict : areObjectsEqual,
|
|
156
167
|
arePrimitiveWrappersEqual,
|
|
157
168
|
areRegExpsEqual,
|
|
@@ -161,12 +172,13 @@ function createEqualityComparatorConfig({ circular: e, createCustomConfig: t, st
|
|
|
161
172
|
getUnsupportedCustomComparator: void 0
|
|
162
173
|
};
|
|
163
174
|
if (t && (r = Object.assign({}, r, t(r))), e) {
|
|
164
|
-
let e = createIsCircular(r.areArraysEqual), t = createIsCircular(r.
|
|
175
|
+
let e = createIsCircular(r.areArraysEqual), t = createIsCircular(r.areErrorsEqual), n = createIsCircular(r.areMapsEqual), i = createIsCircular(r.areObjectsEqual), a = createIsCircular(r.areSetsEqual);
|
|
165
176
|
r = Object.assign({}, r, {
|
|
166
177
|
areArraysEqual: e,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
178
|
+
areErrorsEqual: t,
|
|
179
|
+
areMapsEqual: n,
|
|
180
|
+
areObjectsEqual: i,
|
|
181
|
+
areSetsEqual: a
|
|
170
182
|
});
|
|
171
183
|
}
|
|
172
184
|
return r;
|
|
@@ -204,55 +216,55 @@ function createIsEqual({ circular: e, comparator: t, createState: n, equals: r,
|
|
|
204
216
|
return t(e, n, a);
|
|
205
217
|
};
|
|
206
218
|
}
|
|
207
|
-
function createSupportedComparatorMap({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, areDatesEqual: r, areErrorsEqual: i, areFunctionsEqual: a, areMapsEqual: o,
|
|
219
|
+
function createSupportedComparatorMap({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, areDatesEqual: r, areErrorsEqual: i, areFunctionsEqual: a, areMapsEqual: o, areObjectsEqual: s, arePrimitiveWrappersEqual: c, areRegExpsEqual: l, areSetsEqual: u, areTypedArraysEqual: d, areUrlsEqual: f }) {
|
|
208
220
|
return {
|
|
209
|
-
"[object Arguments]":
|
|
221
|
+
"[object Arguments]": s,
|
|
210
222
|
"[object Array]": t,
|
|
211
223
|
"[object ArrayBuffer]": e,
|
|
212
224
|
"[object AsyncGeneratorFunction]": a,
|
|
213
|
-
"[object BigInt]":
|
|
214
|
-
"[object BigInt64Array]":
|
|
215
|
-
"[object BigUint64Array]":
|
|
216
|
-
"[object Boolean]":
|
|
225
|
+
"[object BigInt]": c,
|
|
226
|
+
"[object BigInt64Array]": d,
|
|
227
|
+
"[object BigUint64Array]": d,
|
|
228
|
+
"[object Boolean]": c,
|
|
217
229
|
"[object DataView]": n,
|
|
218
230
|
"[object Date]": r,
|
|
219
231
|
"[object Error]": i,
|
|
220
|
-
"[object Float16Array]":
|
|
221
|
-
"[object Float32Array]":
|
|
222
|
-
"[object Float64Array]":
|
|
232
|
+
"[object Float16Array]": d,
|
|
233
|
+
"[object Float32Array]": d,
|
|
234
|
+
"[object Float64Array]": d,
|
|
223
235
|
"[object Function]": a,
|
|
224
236
|
"[object GeneratorFunction]": a,
|
|
225
|
-
"[object Int8Array]":
|
|
226
|
-
"[object Int16Array]":
|
|
227
|
-
"[object Int32Array]":
|
|
237
|
+
"[object Int8Array]": d,
|
|
238
|
+
"[object Int16Array]": d,
|
|
239
|
+
"[object Int32Array]": d,
|
|
228
240
|
"[object Map]": o,
|
|
229
|
-
"[object Number]":
|
|
230
|
-
"[object Object]": (e, t, n) => typeof e.then != "function" && typeof t.then != "function" &&
|
|
231
|
-
"[object RegExp]":
|
|
232
|
-
"[object Set]":
|
|
233
|
-
"[object String]":
|
|
234
|
-
"[object URL]":
|
|
235
|
-
"[object Uint8Array]":
|
|
236
|
-
"[object Uint8ClampedArray]":
|
|
237
|
-
"[object Uint16Array]":
|
|
238
|
-
"[object Uint32Array]":
|
|
241
|
+
"[object Number]": c,
|
|
242
|
+
"[object Object]": (e, t, n) => typeof e.then != "function" && typeof t.then != "function" && s(e, t, n),
|
|
243
|
+
"[object RegExp]": l,
|
|
244
|
+
"[object Set]": u,
|
|
245
|
+
"[object String]": c,
|
|
246
|
+
"[object URL]": f,
|
|
247
|
+
"[object Uint8Array]": d,
|
|
248
|
+
"[object Uint8ClampedArray]": d,
|
|
249
|
+
"[object Uint16Array]": d,
|
|
250
|
+
"[object Uint32Array]": d
|
|
239
251
|
};
|
|
240
252
|
}
|
|
241
|
-
var
|
|
253
|
+
var f = createCustomEqual();
|
|
242
254
|
createCustomEqual({ strict: !0 }), createCustomEqual({ circular: !0 }), createCustomEqual({
|
|
243
255
|
circular: !0,
|
|
244
256
|
strict: !0
|
|
245
257
|
});
|
|
246
|
-
var
|
|
258
|
+
var p = createCustomEqual({ createInternalComparator: () => u });
|
|
247
259
|
createCustomEqual({
|
|
248
260
|
strict: !0,
|
|
249
|
-
createInternalComparator: () =>
|
|
261
|
+
createInternalComparator: () => u
|
|
250
262
|
}), createCustomEqual({
|
|
251
263
|
circular: !0,
|
|
252
|
-
createInternalComparator: () =>
|
|
264
|
+
createInternalComparator: () => u
|
|
253
265
|
}), createCustomEqual({
|
|
254
266
|
circular: !0,
|
|
255
|
-
createInternalComparator: () =>
|
|
267
|
+
createInternalComparator: () => u,
|
|
256
268
|
strict: !0
|
|
257
269
|
});
|
|
258
270
|
function createCustomEqual(e = {}) {
|
|
@@ -266,4 +278,4 @@ function createCustomEqual(e = {}) {
|
|
|
266
278
|
});
|
|
267
279
|
}
|
|
268
280
|
//#endregion
|
|
269
|
-
export {
|
|
281
|
+
export { p as n, f as t };
|