likec4 1.56.0 → 1.58.0
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__/codegen/react.mjs +7 -8
- package/__app__/codegen/webcomponent.mjs +77 -736
- package/__app__/src/aichat/index.mjs +8 -0
- package/__app__/src/chunks/AIChat.mjs +959 -0
- package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
- package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
- package/__app__/src/chunks/Markdown.mjs +146 -0
- package/__app__/src/chunks/NavigationPanel.mjs +61 -0
- package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
- package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
- package/__app__/src/chunks/es.mjs +439 -0
- package/__app__/src/chunks/hooks.mjs +145 -0
- package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
- package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
- package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
- package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
- package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
- package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
- package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
- package/__app__/src/chunks/libs/d3.mjs +2842 -0
- package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
- package/__app__/src/chunks/libs/framer.mjs +5872 -0
- package/__app__/src/chunks/libs/remeda.mjs +642 -0
- package/__app__/src/chunks/libs/zod.mjs +3170 -0
- package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
- package/__app__/src/chunks/styled-system.mjs +1040 -0
- package/__app__/src/fonts.css +1 -1
- package/__app__/src/main.mjs +14847 -1
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -41
- package/dist/chunks/enableServer.mjs +1 -0
- package/dist/chunks/filenames.mjs +2 -2
- package/dist/chunks/index2.d.mts +2057 -722
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
- package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +26 -26
- package/dist/chunks/libs/langium.d.mts +5 -5
- package/dist/chunks/libs/langium.mjs +10 -10
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +3 -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/which.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +60 -25
- package/dist/chunks/libs/zod.mjs +65 -0
- package/dist/chunks/node.mjs +84 -56
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +593 -0
- package/dist/cli/index.mjs +184 -141
- package/dist/index.d.mts +2 -131
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +2 -2
- package/dist/vite-plugin/index.d.mts +53 -2
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +327 -4
- package/dist/vite-plugin/internal/index.mjs +946 -1
- package/package.json +85 -72
- package/react/index.d.mts +174 -73
- package/react/index.mjs +42468 -38926
- package/vite-plugin-modules.d.ts +4 -0
- package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
- package/__app__/chunks/DiagramActorProvider.mjs +0 -10
- package/__app__/chunks/Fallback.mjs +0 -1
- package/__app__/chunks/Header.mjs +0 -13
- package/__app__/chunks/IconRenderer.mjs +0 -1
- package/__app__/chunks/LikeC4Diagram.mjs +0 -19
- package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
- package/__app__/chunks/LikeC4Styles.mjs +0 -48
- package/__app__/chunks/NavigationPanel.mjs +0 -1
- package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
- package/__app__/chunks/ViewReact.mjs +0 -1
- package/__app__/chunks/__root.mjs +0 -1
- package/__app__/chunks/adhoc-editor.mjs +0 -1
- package/__app__/chunks/hooks.mjs +0 -1
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
- package/__app__/chunks/libs/@mantine/core.mjs +0 -41
- package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
- package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
- package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
- package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -15
- package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
- package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
- package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
- package/__app__/chunks/libs/@xstate/react.mjs +0 -1
- package/__app__/chunks/libs/@xstate/store.mjs +0 -1
- package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
- package/__app__/chunks/libs/bezier-js.mjs +0 -1
- package/__app__/chunks/libs/d3-path.mjs +0 -1
- package/__app__/chunks/libs/d3-shape.mjs +0 -1
- package/__app__/chunks/libs/fast-equals.mjs +0 -1
- package/__app__/chunks/libs/framer-motion.mjs +0 -9
- package/__app__/chunks/libs/html-to-image.mjs +0 -2
- package/__app__/chunks/libs/motion-dom.mjs +0 -1
- package/__app__/chunks/libs/motion.mjs +0 -1
- package/__app__/chunks/libs/nanostores.mjs +0 -1
- package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
- package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
- package/__app__/chunks/libs/remeda.mjs +0 -1
- package/__app__/chunks/libs/xstate.mjs +0 -1
- package/__app__/chunks/libs/zod.mjs +0 -39
- package/__app__/chunks/rolldown-runtime.mjs +0 -1
- package/__app__/chunks/safeCtx.mjs +0 -1
- package/__app__/chunks/searchParams.mjs +0 -1
- package/__app__/chunks/single-index.mjs +0 -1
- package/__app__/chunks/styled-system.mjs +0 -1
- package/__app__/chunks/styles.css.mjs +0 -1
- package/__app__/chunks/useLikeC4Project.mjs +0 -1
- package/__app__/chunks/useUpdateEffect.mjs +0 -1
- package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
- package/__app__/src/pages/EmbedPage.mjs +0 -1
- package/__app__/src/pages/ExportPage.mjs +0 -1
- package/__app__/src/pages/ProjectsOverview.mjs +0 -1
- package/__app__/src/pages/ViewAsD2.mjs +0 -1
- package/__app__/src/pages/ViewAsDot.mjs +0 -1
- package/__app__/src/pages/ViewAsMmd.mjs +0 -1
- package/__app__/src/pages/ViewAsPuml.mjs +0 -1
- package/__app__/src/pages/ViewEditor.mjs +0 -1
- package/__app__/src/pages/ViewReact.mjs +0 -1
- package/__app__/src/routeTree.gen.mjs +0 -1
- package/__app__/src/routes/__root.mjs +0 -1
- package/__app__/src/routes/_single/adhoc.mjs +0 -1
- package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
- package/__app__/src/routes/_single/export._viewId.mjs +0 -1
- package/__app__/src/routes/_single/route.mjs +0 -1
- package/__app__/src/routes/_single/single-index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
- package/__app__/src/routes/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/-components.mjs +0 -1
- package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/route.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/projects.mjs +0 -1
- package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
- package/dist/chunks/libs/@hono/mcp.mjs +0 -45
- package/dist/chunks/libs/@hono/node-server.mjs +0 -1
- package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
- package/dist/chunks/libs/ajv.mjs +0 -1
- package/dist/chunks/libs/ansi-align.mjs +0 -2
- package/dist/chunks/libs/ansi-regex.mjs +0 -1
- package/dist/chunks/libs/ansi-styles.mjs +0 -1
- package/dist/chunks/libs/atomically.mjs +0 -1
- package/dist/chunks/libs/boxen.mjs +0 -22
- package/dist/chunks/libs/conf.mjs +0 -1
- package/dist/chunks/libs/defu.mjs +0 -1
- package/dist/chunks/libs/destr.mjs +0 -1
- package/dist/chunks/libs/find-up-simple.mjs +0 -1
- package/dist/chunks/libs/get-port.mjs +0 -1
- package/dist/chunks/libs/hono.mjs +0 -1
- package/dist/chunks/libs/is-docker.mjs +0 -1
- package/dist/chunks/libs/is-error-instance.mjs +0 -1
- package/dist/chunks/libs/is-inside-container.mjs +0 -1
- package/dist/chunks/libs/is-plain-obj.mjs +0 -1
- package/dist/chunks/libs/isexe.mjs +0 -1
- package/dist/chunks/libs/ky.mjs +0 -3
- package/dist/chunks/libs/p-debounce.mjs +0 -1
- package/dist/chunks/libs/p-limit.mjs +0 -1
- package/dist/chunks/libs/p-timeout.mjs +0 -1
- package/dist/chunks/libs/package-up.mjs +0 -1
- package/dist/chunks/libs/parse-ms.mjs +0 -1
- package/dist/chunks/libs/safe-stringify.mjs +0 -1
- package/dist/chunks/libs/strip-indent.mjs +0 -1
- package/dist/chunks/libs/tinyrainbow.mjs +0 -1
- package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
- package/dist/chunks/libs/ts-graphviz.mjs +0 -4
- package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
- package/dist/chunks/libs/word-wrap.mjs +0 -12
- package/dist/chunks/plugin.mjs +0 -400
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
- package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import "../rolldown-runtime.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/fast-equals@6.0.0/node_modules/fast-equals/dist/es/index.mjs
|
|
3
|
+
var { getOwnPropertyNames: e, getOwnPropertySymbols: t } = Object, { hasOwnProperty: n } = Object.prototype;
|
|
4
|
+
function combineComparators(e, t) {
|
|
5
|
+
return function isEqual(n, r, i) {
|
|
6
|
+
return e(n, r, i) && t(n, r, i);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function createIsCircular(e) {
|
|
10
|
+
return function isCircular(t, n, r) {
|
|
11
|
+
if (!t || !n || typeof t != "object" || typeof n != "object") return e(t, n, r);
|
|
12
|
+
let { cache: i } = r, a = i.get(t), o = i.get(n);
|
|
13
|
+
if (a && o) return a === n && o === t;
|
|
14
|
+
i.set(t, n), i.set(n, t);
|
|
15
|
+
let s = e(t, n, r);
|
|
16
|
+
return i.delete(t), i.delete(n), s;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function getStrictProperties(n) {
|
|
20
|
+
return e(n).concat(t(n));
|
|
21
|
+
}
|
|
22
|
+
var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", { getOwnPropertyDescriptor: s, keys: c } = Object, l = Object.is || function sameValueEqual(e, t) {
|
|
23
|
+
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
24
|
+
};
|
|
25
|
+
function strictEqual(e, t) {
|
|
26
|
+
return e === t;
|
|
27
|
+
}
|
|
28
|
+
function areArrayBuffersEqual(e, t) {
|
|
29
|
+
return e.byteLength === t.byteLength && areTypedArraysEqual(new Uint8Array(e), new Uint8Array(t));
|
|
30
|
+
}
|
|
31
|
+
function areArraysEqual(e, t, n) {
|
|
32
|
+
let r = e.length;
|
|
33
|
+
if (t.length !== r) return !1;
|
|
34
|
+
for (; r-- > 0;) if (!n.equals(e[r], t[r], r, r, e, t, n)) return !1;
|
|
35
|
+
return !0;
|
|
36
|
+
}
|
|
37
|
+
function areDataViewsEqual(e, t) {
|
|
38
|
+
return e.byteLength === t.byteLength && areTypedArraysEqual(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
|
|
39
|
+
}
|
|
40
|
+
function areDatesEqual(e, t) {
|
|
41
|
+
return l(e.getTime(), t.getTime());
|
|
42
|
+
}
|
|
43
|
+
function areErrorsEqual(e, t) {
|
|
44
|
+
return e.name === t.name && e.message === t.message && e.cause === t.cause && e.stack === t.stack;
|
|
45
|
+
}
|
|
46
|
+
function areMapsEqual(e, t, n) {
|
|
47
|
+
let r = e.size;
|
|
48
|
+
if (r !== t.size) return !1;
|
|
49
|
+
if (!r) return !0;
|
|
50
|
+
let i = Array(r), a = e.entries(), o, s, c = 0;
|
|
51
|
+
for (; (o = a.next()) && !o.done;) {
|
|
52
|
+
let r = t.entries(), a = !1, l = 0;
|
|
53
|
+
for (; (s = r.next()) && !s.done;) {
|
|
54
|
+
if (i[l]) {
|
|
55
|
+
l++;
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
let r = o.value, u = s.value;
|
|
59
|
+
if (n.equals(r[0], u[0], c, l, e, t, n) && n.equals(r[1], u[1], r[0], u[0], e, t, n)) {
|
|
60
|
+
a = i[l] = !0;
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
l++;
|
|
64
|
+
}
|
|
65
|
+
if (!a) return !1;
|
|
66
|
+
c++;
|
|
67
|
+
}
|
|
68
|
+
return !0;
|
|
69
|
+
}
|
|
70
|
+
function areObjectsEqual(e, t, n) {
|
|
71
|
+
let r = c(e), i = r.length;
|
|
72
|
+
if (c(t).length !== i) return !1;
|
|
73
|
+
for (; i-- > 0;) if (!isPropertyEqual(e, t, n, r[i])) return !1;
|
|
74
|
+
return !0;
|
|
75
|
+
}
|
|
76
|
+
function areObjectsEqualStrict(e, t, n) {
|
|
77
|
+
let r = getStrictProperties(e), i = r.length;
|
|
78
|
+
if (getStrictProperties(t).length !== i) return !1;
|
|
79
|
+
let a, o, c;
|
|
80
|
+
for (; i-- > 0;) if (a = r[i], !isPropertyEqual(e, t, n, a) || (o = s(e, a), c = s(t, a), (o || c) && (!o || !c || o.configurable !== c.configurable || o.enumerable !== c.enumerable || o.writable !== c.writable))) return !1;
|
|
81
|
+
return !0;
|
|
82
|
+
}
|
|
83
|
+
function arePrimitiveWrappersEqual(e, t) {
|
|
84
|
+
return l(e.valueOf(), t.valueOf());
|
|
85
|
+
}
|
|
86
|
+
function areRegExpsEqual(e, t) {
|
|
87
|
+
return e.source === t.source && e.flags === t.flags;
|
|
88
|
+
}
|
|
89
|
+
function areSetsEqual(e, t, n) {
|
|
90
|
+
let r = e.size;
|
|
91
|
+
if (r !== t.size) return !1;
|
|
92
|
+
if (!r) return !0;
|
|
93
|
+
let i = Array(r), a = e.values(), o, s;
|
|
94
|
+
for (; (o = a.next()) && !o.done;) {
|
|
95
|
+
let r = t.values(), a = !1, c = 0;
|
|
96
|
+
for (; (s = r.next()) && !s.done;) {
|
|
97
|
+
if (!i[c] && n.equals(o.value, s.value, o.value, s.value, e, t, n)) {
|
|
98
|
+
a = i[c] = !0;
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
c++;
|
|
102
|
+
}
|
|
103
|
+
if (!a) return !1;
|
|
104
|
+
}
|
|
105
|
+
return !0;
|
|
106
|
+
}
|
|
107
|
+
function areTypedArraysEqual(e, t) {
|
|
108
|
+
let n = e.byteLength;
|
|
109
|
+
if (t.byteLength !== n || e.byteOffset !== t.byteOffset) return !1;
|
|
110
|
+
for (; n-- > 0;) if (e[n] !== t[n]) return !1;
|
|
111
|
+
return !0;
|
|
112
|
+
}
|
|
113
|
+
function areUrlsEqual(e, t) {
|
|
114
|
+
return e.hostname === t.hostname && e.pathname === t.pathname && e.protocol === t.protocol && e.port === t.port && e.hash === t.hash && e.username === t.username && e.password === t.password;
|
|
115
|
+
}
|
|
116
|
+
function isPropertyEqual(e, t, n, s) {
|
|
117
|
+
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);
|
|
118
|
+
}
|
|
119
|
+
var u = Object.prototype.toString;
|
|
120
|
+
function createEqualityComparator(e) {
|
|
121
|
+
let t = createSupportedComparatorMap(e), { areArraysEqual: n, areDatesEqual: r, areFunctionsEqual: i, areMapsEqual: a, areNumbersEqual: o, areObjectsEqual: s, areRegExpsEqual: c, areSetsEqual: l, getUnsupportedCustomComparator: d } = e;
|
|
122
|
+
return function comparator(e, f, p) {
|
|
123
|
+
if (e === f) return !0;
|
|
124
|
+
if (e == null || f == null) return !1;
|
|
125
|
+
let m = typeof e;
|
|
126
|
+
if (m !== typeof f) return !1;
|
|
127
|
+
if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function" ? i(e, f, p) : !1;
|
|
128
|
+
let h = e.constructor;
|
|
129
|
+
if (h !== f.constructor) return !1;
|
|
130
|
+
if (h === Object) return s(e, f, p);
|
|
131
|
+
if (h === Array) return n(e, f, p);
|
|
132
|
+
if (h === Date) return r(e, f, p);
|
|
133
|
+
if (h === RegExp) return c(e, f, p);
|
|
134
|
+
if (h === Map) return a(e, f, p);
|
|
135
|
+
if (h === Set) return l(e, f, p);
|
|
136
|
+
if (h === Promise) return !1;
|
|
137
|
+
if (Array.isArray(e)) return n(e, f, p);
|
|
138
|
+
let g = u.call(e), _ = t[g];
|
|
139
|
+
if (_) return _(e, f, p);
|
|
140
|
+
let v = d && d(e, f, p, g);
|
|
141
|
+
return v ? v(e, f, p) : !1;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function createEqualityComparatorConfig({ circular: e, createCustomConfig: t, strict: n }) {
|
|
145
|
+
let r = {
|
|
146
|
+
areArrayBuffersEqual,
|
|
147
|
+
areArraysEqual: n ? areObjectsEqualStrict : areArraysEqual,
|
|
148
|
+
areDataViewsEqual,
|
|
149
|
+
areDatesEqual,
|
|
150
|
+
areErrorsEqual,
|
|
151
|
+
areFunctionsEqual: strictEqual,
|
|
152
|
+
areMapsEqual: n ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
|
|
153
|
+
areNumbersEqual: l,
|
|
154
|
+
areObjectsEqual: n ? areObjectsEqualStrict : areObjectsEqual,
|
|
155
|
+
arePrimitiveWrappersEqual,
|
|
156
|
+
areRegExpsEqual,
|
|
157
|
+
areSetsEqual: n ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,
|
|
158
|
+
areTypedArraysEqual: n ? combineComparators(areTypedArraysEqual, areObjectsEqualStrict) : areTypedArraysEqual,
|
|
159
|
+
areUrlsEqual,
|
|
160
|
+
getUnsupportedCustomComparator: void 0
|
|
161
|
+
};
|
|
162
|
+
if (t && (r = Object.assign({}, r, t(r))), e) {
|
|
163
|
+
let e = createIsCircular(r.areArraysEqual), t = createIsCircular(r.areMapsEqual), n = createIsCircular(r.areObjectsEqual), i = createIsCircular(r.areSetsEqual);
|
|
164
|
+
r = Object.assign({}, r, {
|
|
165
|
+
areArraysEqual: e,
|
|
166
|
+
areMapsEqual: t,
|
|
167
|
+
areObjectsEqual: n,
|
|
168
|
+
areSetsEqual: i
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
return r;
|
|
172
|
+
}
|
|
173
|
+
function createInternalEqualityComparator(e) {
|
|
174
|
+
return function(t, n, r, i, a, o, s) {
|
|
175
|
+
return e(t, n, s);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function createIsEqual({ circular: e, comparator: t, createState: n, equals: r, strict: i }) {
|
|
179
|
+
if (n) return function isEqual(a, o) {
|
|
180
|
+
let { cache: s = e ? /* @__PURE__ */ new WeakMap() : void 0, meta: c } = n();
|
|
181
|
+
return t(a, o, {
|
|
182
|
+
cache: s,
|
|
183
|
+
equals: r,
|
|
184
|
+
meta: c,
|
|
185
|
+
strict: i
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
if (e) return function isEqual(e, n) {
|
|
189
|
+
return t(e, n, {
|
|
190
|
+
cache: /* @__PURE__ */ new WeakMap(),
|
|
191
|
+
equals: r,
|
|
192
|
+
meta: void 0,
|
|
193
|
+
strict: i
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
let a = {
|
|
197
|
+
cache: void 0,
|
|
198
|
+
equals: r,
|
|
199
|
+
meta: void 0,
|
|
200
|
+
strict: i
|
|
201
|
+
};
|
|
202
|
+
return function isEqual(e, n) {
|
|
203
|
+
return t(e, n, a);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function createSupportedComparatorMap({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, areDatesEqual: r, areErrorsEqual: i, areFunctionsEqual: a, areMapsEqual: o, areNumbersEqual: s, areObjectsEqual: c, arePrimitiveWrappersEqual: l, areRegExpsEqual: u, areSetsEqual: d, areTypedArraysEqual: f, areUrlsEqual: p }) {
|
|
207
|
+
return {
|
|
208
|
+
"[object Arguments]": c,
|
|
209
|
+
"[object Array]": t,
|
|
210
|
+
"[object ArrayBuffer]": e,
|
|
211
|
+
"[object AsyncGeneratorFunction]": a,
|
|
212
|
+
"[object BigInt]": s,
|
|
213
|
+
"[object BigInt64Array]": f,
|
|
214
|
+
"[object BigUint64Array]": f,
|
|
215
|
+
"[object Boolean]": l,
|
|
216
|
+
"[object DataView]": n,
|
|
217
|
+
"[object Date]": r,
|
|
218
|
+
"[object Error]": i,
|
|
219
|
+
"[object Float16Array]": f,
|
|
220
|
+
"[object Float32Array]": f,
|
|
221
|
+
"[object Float64Array]": f,
|
|
222
|
+
"[object Function]": a,
|
|
223
|
+
"[object GeneratorFunction]": a,
|
|
224
|
+
"[object Int8Array]": f,
|
|
225
|
+
"[object Int16Array]": f,
|
|
226
|
+
"[object Int32Array]": f,
|
|
227
|
+
"[object Map]": o,
|
|
228
|
+
"[object Number]": l,
|
|
229
|
+
"[object Object]": (e, t, n) => typeof e.then != "function" && typeof t.then != "function" && c(e, t, n),
|
|
230
|
+
"[object RegExp]": u,
|
|
231
|
+
"[object Set]": d,
|
|
232
|
+
"[object String]": l,
|
|
233
|
+
"[object URL]": p,
|
|
234
|
+
"[object Uint8Array]": f,
|
|
235
|
+
"[object Uint8ClampedArray]": f,
|
|
236
|
+
"[object Uint16Array]": f,
|
|
237
|
+
"[object Uint32Array]": f
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
var d = createCustomEqual();
|
|
241
|
+
createCustomEqual({ strict: !0 }), createCustomEqual({ circular: !0 }), createCustomEqual({
|
|
242
|
+
circular: !0,
|
|
243
|
+
strict: !0
|
|
244
|
+
});
|
|
245
|
+
var f = createCustomEqual({ createInternalComparator: () => l });
|
|
246
|
+
createCustomEqual({
|
|
247
|
+
strict: !0,
|
|
248
|
+
createInternalComparator: () => l
|
|
249
|
+
}), createCustomEqual({
|
|
250
|
+
circular: !0,
|
|
251
|
+
createInternalComparator: () => l
|
|
252
|
+
}), createCustomEqual({
|
|
253
|
+
circular: !0,
|
|
254
|
+
createInternalComparator: () => l,
|
|
255
|
+
strict: !0
|
|
256
|
+
});
|
|
257
|
+
function createCustomEqual(e = {}) {
|
|
258
|
+
let { circular: t = !1, createInternalComparator: n, createState: r, strict: i = !1 } = e, a = createEqualityComparator(createEqualityComparatorConfig(e));
|
|
259
|
+
return createIsEqual({
|
|
260
|
+
circular: t,
|
|
261
|
+
comparator: a,
|
|
262
|
+
createState: r,
|
|
263
|
+
equals: n ? n(a) : createInternalEqualityComparator(a),
|
|
264
|
+
strict: i
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
//#endregion
|
|
268
|
+
export { f as n, d as t };
|