@burdenoff/microfe-healthybowl 2026.903.14 → 2026.903.16
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/node_modules/@ungap/structured-clone/esm/deserialize.js +42 -33
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +47 -44
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +86 -74
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/utils/voiceTurnVisibility.js +2 -35
- package/package.json +3 -2
- package/dist/utils/voiceTurnVisibility.js.map +0 -1
|
@@ -1,63 +1,72 @@
|
|
|
1
1
|
//#region node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
2
|
-
var e = typeof self == "object" ? self : globalThis,
|
|
3
|
-
switch (
|
|
2
|
+
var { defineProperty: e } = Object, t = typeof self == "object" ? self : globalThis, n = (e, n) => {
|
|
3
|
+
switch (e) {
|
|
4
4
|
case "Function":
|
|
5
5
|
case "SharedWorker":
|
|
6
6
|
case "Worker":
|
|
7
7
|
case "eval":
|
|
8
8
|
case "setInterval":
|
|
9
|
-
case "setTimeout": throw TypeError("unable to deserialize " +
|
|
9
|
+
case "setTimeout": throw TypeError("unable to deserialize " + e);
|
|
10
10
|
}
|
|
11
|
-
return new e
|
|
12
|
-
},
|
|
13
|
-
let
|
|
14
|
-
if (
|
|
15
|
-
let [
|
|
16
|
-
switch (
|
|
11
|
+
return new t[e](n);
|
|
12
|
+
}, r = (r, i) => {
|
|
13
|
+
let a = (e, t) => (r.set(t, e), e), o = (s) => {
|
|
14
|
+
if (r.has(s)) return r.get(s);
|
|
15
|
+
let [c, l] = i[s];
|
|
16
|
+
switch (c) {
|
|
17
17
|
case 0:
|
|
18
|
-
case -1: return
|
|
18
|
+
case -1: return a(l, s);
|
|
19
19
|
case 1: {
|
|
20
|
-
let e =
|
|
21
|
-
for (let t of
|
|
20
|
+
let e = a([], s);
|
|
21
|
+
for (let t of l) e.push(o(t));
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
24
24
|
case 2: {
|
|
25
|
-
let
|
|
26
|
-
for (let [
|
|
27
|
-
|
|
25
|
+
let t = a({}, s);
|
|
26
|
+
for (let [n, r] of l) {
|
|
27
|
+
let i = o(n), a = o(r);
|
|
28
|
+
i === "__proto__" ? e(t, i, {
|
|
29
|
+
value: a,
|
|
30
|
+
configurable: !0,
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
writable: !0
|
|
33
|
+
}) : t[i] = a;
|
|
34
|
+
}
|
|
35
|
+
return t;
|
|
28
36
|
}
|
|
29
|
-
case 3: return
|
|
37
|
+
case 3: return a(new Date(l), s);
|
|
30
38
|
case 4: {
|
|
31
|
-
let { source: e, flags: t } =
|
|
32
|
-
return
|
|
39
|
+
let { source: e, flags: t } = l;
|
|
40
|
+
return a(new RegExp(e, t), s);
|
|
33
41
|
}
|
|
34
42
|
case 5: {
|
|
35
|
-
let e =
|
|
36
|
-
for (let [t, n] of
|
|
43
|
+
let e = a(/* @__PURE__ */ new Map(), s);
|
|
44
|
+
for (let [t, n] of l) e.set(o(t), o(n));
|
|
37
45
|
return e;
|
|
38
46
|
}
|
|
39
47
|
case 6: {
|
|
40
|
-
let e =
|
|
41
|
-
for (let t of
|
|
48
|
+
let e = a(/* @__PURE__ */ new Set(), s);
|
|
49
|
+
for (let t of l) e.add(o(t));
|
|
42
50
|
return e;
|
|
43
51
|
}
|
|
44
52
|
case 7: {
|
|
45
|
-
let { name:
|
|
46
|
-
return
|
|
53
|
+
let { name: e, message: r } = l;
|
|
54
|
+
return a(typeof t[e] == "function" ? n(e, r) : Error(r), s);
|
|
47
55
|
}
|
|
48
|
-
case 8: return
|
|
49
|
-
case "BigInt": return
|
|
50
|
-
case "ArrayBuffer": return
|
|
56
|
+
case 8: return a(BigInt(l), s);
|
|
57
|
+
case "BigInt": return a(Object(BigInt(l)), s);
|
|
58
|
+
case "ArrayBuffer": return a(new Uint8Array(l).buffer, l);
|
|
51
59
|
case "DataView": {
|
|
52
|
-
let { buffer: e } = new Uint8Array(
|
|
53
|
-
return
|
|
60
|
+
let { buffer: e } = new Uint8Array(l);
|
|
61
|
+
return a(new DataView(e), l);
|
|
54
62
|
}
|
|
63
|
+
case "-0": return -0;
|
|
55
64
|
}
|
|
56
|
-
return
|
|
65
|
+
return a(n(c, l), s);
|
|
57
66
|
};
|
|
58
|
-
return
|
|
59
|
-
},
|
|
67
|
+
return o;
|
|
68
|
+
}, i = (e) => r(/* @__PURE__ */ new Map(), e)(0);
|
|
60
69
|
//#endregion
|
|
61
|
-
export {
|
|
70
|
+
export { i as deserialize };
|
|
62
71
|
|
|
63
72
|
//# sourceMappingURL=deserialize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/deserialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst guard = (name, init) => {\n switch (name) {\n case 'Function':\n case 'SharedWorker':\n case 'Worker':\n case 'eval':\n case 'setInterval':\n case 'setTimeout':\n throw new TypeError('unable to deserialize ' + name);\n }\n return new env[name](init);\n};\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n
|
|
1
|
+
{"version":3,"file":"deserialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/deserialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst { defineProperty } = Object;\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst guard = (name, init) => {\n switch (name) {\n case 'Function':\n case 'SharedWorker':\n case 'Worker':\n case 'eval':\n case 'setInterval':\n case 'setTimeout':\n throw new TypeError('unable to deserialize ' + name);\n }\n return new env[name](init);\n};\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value) {\n const k = unpair(key), value = unpair(index);\n if (k === '__proto__') defineProperty(object, k, {\n value,\n configurable: true,\n enumerable: true,\n writable: true\n });\n else object[k] = value;\n }\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(\n typeof env[name] === 'function' ?\n guard(name, message) :\n new Error(message),\n index\n );\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n case 'ArrayBuffer':\n return as(new Uint8Array(value).buffer, value);\n case 'DataView': {\n const { buffer } = new Uint8Array(value);\n return as(new DataView(buffer), value);\n }\n case '-0': return -0;\n }\n return as(guard(type, value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,EAAE,sBAAmB,QACrB,IAAM,OAAO,QAAS,WAAW,OAAO,YAExC,KAAS,GAAM,MAAS;CAC5B,QAAQ,GAAR;EACE,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,cACH,MAAU,UAAU,2BAA2B,CAAI;CACvD;CACA,OAAO,IAAI,EAAI,GAAM,CAAI;AAC3B,GAEM,KAAgB,GAAG,MAAM;CAC7B,IAAM,KAAM,GAAK,OACf,EAAE,IAAI,GAAO,CAAG,GACT,IAGH,KAAS,MAAS;EACtB,IAAI,EAAE,IAAI,CAAK,GACb,OAAO,EAAE,IAAI,CAAK;EAEpB,IAAM,CAAC,GAAM,KAAS,EAAE;EACxB,QAAQ,GAAR;GACE,KAAA;GACA,KAAA,IACE,OAAO,EAAG,GAAO,CAAK;GACxB,KAAA,GAAY;IACV,IAAM,IAAM,EAAG,CAAC,GAAG,CAAK;IACxB,KAAK,IAAM,KAAS,GAClB,EAAI,KAAK,EAAO,CAAK,CAAC;IACxB,OAAO;GACT;GACA,KAAA,GAAa;IACX,IAAM,IAAS,EAAG,CAAC,GAAG,CAAK;IAC3B,KAAK,IAAM,CAAC,GAAK,MAAU,GAAO;KAChC,IAAM,IAAI,EAAO,CAAG,GAAG,IAAQ,EAAO,CAAK;KAC3C,AAAI,MAAM,cAAa,EAAe,GAAQ,GAAG;MAC/C;MACA,cAAc;MACd,YAAY;MACZ,UAAU;KACZ,CAAC,IACI,EAAO,KAAK;IACnB;IACA,OAAO;GACT;GACA,KAAA,GACE,OAAO,EAAG,IAAI,KAAK,CAAK,GAAG,CAAK;GAClC,KAAA,GAAa;IACX,IAAM,EAAC,WAAQ,aAAS;IACxB,OAAO,EAAG,IAAI,OAAO,GAAQ,CAAK,GAAG,CAAK;GAC5C;GACA,KAAA,GAAU;IACR,IAAM,IAAM,kBAAG,IAAI,IAAE,GAAG,CAAK;IAC7B,KAAK,IAAM,CAAC,GAAK,MAAU,GACzB,EAAI,IAAI,EAAO,CAAG,GAAG,EAAO,CAAK,CAAC;IACpC,OAAO;GACT;GACA,KAAA,GAAU;IACR,IAAM,IAAM,kBAAG,IAAI,IAAE,GAAG,CAAK;IAC7B,KAAK,IAAM,KAAS,GAClB,EAAI,IAAI,EAAO,CAAK,CAAC;IACvB,OAAO;GACT;GACA,KAAA,GAAY;IACV,IAAM,EAAC,SAAM,eAAW;IACxB,OAAO,EACL,OAAO,EAAI,MAAU,aACnB,EAAM,GAAM,CAAO,IACf,MAAM,CAAO,GACnB,CACF;GACF;GACA,KAAA,GACE,OAAO,EAAG,OAAO,CAAK,GAAG,CAAK;GAChC,KAAK,UACH,OAAO,EAAG,OAAO,OAAO,CAAK,CAAC,GAAG,CAAK;GACxC,KAAK,eACH,OAAO,EAAG,IAAI,WAAW,CAAK,EAAE,QAAQ,CAAK;GAC/C,KAAK,YAAY;IACf,IAAM,EAAE,cAAW,IAAI,WAAW,CAAK;IACvC,OAAO,EAAG,IAAI,SAAS,CAAM,GAAG,CAAK;GACvC;GACA,KAAK,MAAM,OAAO;EACpB;EACA,OAAO,EAAG,EAAM,GAAM,CAAK,GAAG,CAAK;CACrC;CAEA,OAAO;AACT,GAWa,KAAc,MAAc,kBAAa,IAAI,IAAE,GAAG,CAAU,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region node_modules/@ungap/structured-clone/esm/serialize.js
|
|
2
|
-
var e = "", { toString: t } = {}, { keys: n } = Object,
|
|
2
|
+
var e = "", { toString: t } = {}, { keys: n, is: r } = Object, i = (n) => {
|
|
3
3
|
let r = typeof n;
|
|
4
4
|
if (r !== "object" || !n) return [0, r];
|
|
5
5
|
let i = t.call(n).slice(8, -1);
|
|
@@ -13,81 +13,84 @@ var e = "", { toString: t } = {}, { keys: n } = Object, r = (n) => {
|
|
|
13
13
|
case "DataView": return [1, i];
|
|
14
14
|
}
|
|
15
15
|
return i.includes("Array") ? [1, i] : n instanceof Error ? [7, n.name || "Error"] : [2, i];
|
|
16
|
-
},
|
|
17
|
-
let
|
|
18
|
-
let n =
|
|
19
|
-
return
|
|
20
|
-
},
|
|
21
|
-
if (
|
|
22
|
-
let [
|
|
23
|
-
switch (
|
|
16
|
+
}, a = ([e, t]) => e === 0 && (t === "function" || t === "symbol"), o = (t, o, s, c) => {
|
|
17
|
+
let l = (e, t) => {
|
|
18
|
+
let n = c.push(e) - 1;
|
|
19
|
+
return s.set(t, n), n;
|
|
20
|
+
}, u = (d) => {
|
|
21
|
+
if (s.has(d)) return s.get(d);
|
|
22
|
+
let [f, p] = i(d);
|
|
23
|
+
switch (f) {
|
|
24
24
|
case 0: {
|
|
25
|
-
let e =
|
|
26
|
-
switch (
|
|
25
|
+
let e = d;
|
|
26
|
+
switch (p) {
|
|
27
27
|
case "bigint":
|
|
28
|
-
|
|
28
|
+
f = 8, e = d.toString();
|
|
29
|
+
break;
|
|
30
|
+
case "number":
|
|
31
|
+
if (!d && r(d, -0)) return c.push(["-0"]) - 1;
|
|
29
32
|
break;
|
|
30
33
|
case "function":
|
|
31
34
|
case "symbol":
|
|
32
|
-
if (t) throw TypeError("unable to serialize " +
|
|
35
|
+
if (t) throw TypeError("unable to serialize " + p);
|
|
33
36
|
e = null;
|
|
34
37
|
break;
|
|
35
|
-
case "undefined": return
|
|
38
|
+
case "undefined": return l([-1], d);
|
|
36
39
|
}
|
|
37
|
-
return
|
|
40
|
+
return l([f, e], d);
|
|
38
41
|
}
|
|
39
42
|
case 1: {
|
|
40
|
-
if (
|
|
41
|
-
let e =
|
|
42
|
-
return
|
|
43
|
+
if (p) {
|
|
44
|
+
let e = d;
|
|
45
|
+
return p === "DataView" ? e = new Uint8Array(d.buffer) : p === "ArrayBuffer" && (e = new Uint8Array(d)), l([p, [...e]], d);
|
|
43
46
|
}
|
|
44
|
-
let e = [], t =
|
|
45
|
-
for (let t of
|
|
47
|
+
let e = [], t = l([f, e], d);
|
|
48
|
+
for (let t of d) e.push(u(t));
|
|
46
49
|
return t;
|
|
47
50
|
}
|
|
48
51
|
case 2: {
|
|
49
|
-
if (
|
|
50
|
-
case "BigInt": return
|
|
52
|
+
if (p) switch (p) {
|
|
53
|
+
case "BigInt": return l([p, d.toString()], d);
|
|
51
54
|
case "Boolean":
|
|
52
55
|
case "Number":
|
|
53
|
-
case "String": return
|
|
56
|
+
case "String": return l([p, d.valueOf()], d);
|
|
54
57
|
}
|
|
55
|
-
if (
|
|
56
|
-
let e = [],
|
|
57
|
-
for (let
|
|
58
|
-
return
|
|
58
|
+
if (o && "toJSON" in d) return u(d.toJSON());
|
|
59
|
+
let e = [], r = l([f, e], d);
|
|
60
|
+
for (let r of n(d)) (t || !a(i(d[r]))) && e.push([u(r), u(d[r])]);
|
|
61
|
+
return r;
|
|
59
62
|
}
|
|
60
|
-
case 3: return
|
|
63
|
+
case 3: return l([f, isNaN(d.getTime()) ? e : d.toISOString()], d);
|
|
61
64
|
case 4: {
|
|
62
|
-
let { source: e, flags: t } =
|
|
63
|
-
return
|
|
65
|
+
let { source: e, flags: t } = d;
|
|
66
|
+
return l([f, {
|
|
64
67
|
source: e,
|
|
65
68
|
flags: t
|
|
66
|
-
}],
|
|
69
|
+
}], d);
|
|
67
70
|
}
|
|
68
71
|
case 5: {
|
|
69
|
-
let e = [], n =
|
|
70
|
-
for (let [n,
|
|
72
|
+
let e = [], n = l([f, e], d);
|
|
73
|
+
for (let [n, r] of d) (t || !(a(i(n)) || a(i(r)))) && e.push([u(n), u(r)]);
|
|
71
74
|
return n;
|
|
72
75
|
}
|
|
73
76
|
case 6: {
|
|
74
|
-
let e = [], n =
|
|
75
|
-
for (let n of
|
|
77
|
+
let e = [], n = l([f, e], d);
|
|
78
|
+
for (let n of d) (t || !a(i(n))) && e.push(u(n));
|
|
76
79
|
return n;
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
|
-
let { message:
|
|
80
|
-
return
|
|
81
|
-
name:
|
|
82
|
-
message:
|
|
83
|
-
}],
|
|
82
|
+
let { message: m } = d;
|
|
83
|
+
return l([f, {
|
|
84
|
+
name: p,
|
|
85
|
+
message: m
|
|
86
|
+
}], d);
|
|
84
87
|
};
|
|
85
|
-
return
|
|
86
|
-
},
|
|
88
|
+
return u;
|
|
89
|
+
}, s = (e, { json: t, lossy: n } = {}) => {
|
|
87
90
|
let r = [];
|
|
88
|
-
return
|
|
91
|
+
return o(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
89
92
|
};
|
|
90
93
|
//#endregion
|
|
91
|
-
export {
|
|
94
|
+
export { s as serialize };
|
|
92
95
|
|
|
93
96
|
//# sourceMappingURL=serialize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/serialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n case 'DataView':\n return [ARRAY, asString];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (value instanceof Error)\n return [ERROR, value.name || 'Error'];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type) {\n let spread = value;\n if (type === 'DataView') {\n spread = new Uint8Array(value.buffer);\n }\n else if (type === 'ArrayBuffer') {\n spread = new Uint8Array(value);\n }\n return as([type, [...spread]], value);\n }\n\n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,IAAQ,IAER,EAAC,gBAAY,CAAC,GACd,EAAC,
|
|
1
|
+
{"version":3,"file":"serialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/serialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys, is} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n case 'DataView':\n return [ARRAY, asString];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (value instanceof Error)\n return [ERROR, value.name || 'Error'];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'number':\n if (!value && is(value, -0))\n return _.push(['-0']) - 1;\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type) {\n let spread = value;\n if (type === 'DataView') {\n spread = new Uint8Array(value.buffer);\n }\n else if (type === 'ArrayBuffer') {\n spread = new Uint8Array(value);\n }\n return as([type, [...spread]], value);\n }\n\n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,IAAQ,IAER,EAAC,gBAAY,CAAC,GACd,EAAC,SAAM,UAAM,QAEb,KAAS,MAAS;CACtB,IAAM,IAAO,OAAO;CACpB,IAAI,MAAS,YAAY,CAAC,GACxB,OAAO,CAAA,GAAY,CAAI;CAEzB,IAAM,IAAW,EAAS,KAAK,CAAK,EAAE,MAAM,GAAG,EAAE;CACjD,QAAQ,GAAR;EACE,KAAK,SACH,OAAO,CAAA,GAAQ,CAAK;EACtB,KAAK,UACH,OAAO,CAAA,GAAS,CAAK;EACvB,KAAK,QACH,OAAO,CAAA,GAAO,CAAK;EACrB,KAAK,UACH,OAAO,CAAA,GAAS,CAAK;EACvB,KAAK,OACH,OAAO,CAAA,GAAM,CAAK;EACpB,KAAK,OACH,OAAO,CAAA,GAAM,CAAK;EACpB,KAAK,YACH,OAAO,CAAA,GAAQ,CAAQ;CAC3B;CAQA,OANI,EAAS,SAAS,OAAO,IACpB,CAAA,GAAQ,CAAQ,IAErB,aAAiB,QACZ,CAAA,GAAQ,EAAM,QAAQ,OAAO,IAE/B,CAAA,GAAS,CAAQ;AAC1B,GAEM,KAAc,CAAC,GAAM,OACzB,MAAA,MACC,MAAS,cAAc,MAAS,WAG7B,KAAc,GAAQ,GAAM,GAAG,MAAM;CAEzC,IAAM,KAAM,GAAK,MAAU;EACzB,IAAM,IAAQ,EAAE,KAAK,CAAG,IAAI;EAE5B,OADA,EAAE,IAAI,GAAO,CAAK,GACX;CACT,GAEM,KAAO,MAAS;EACpB,IAAI,EAAE,IAAI,CAAK,GACb,OAAO,EAAE,IAAI,CAAK;EAEpB,IAAI,CAAC,GAAM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c(e, t) {
|
|
26
26
|
return e === t || !e && !t && e !== e && t !== t;
|
|
27
27
|
}
|
|
28
|
-
var l = "__v", u = "__o", d = "_owner", { getOwnPropertyDescriptor:
|
|
29
|
-
function
|
|
30
|
-
return e.byteLength === t.byteLength &&
|
|
28
|
+
var l = "__v", u = "__o", d = "_owner", f = typeof Float16Array < "u", { getOwnPropertyDescriptor: p, keys: m } = Object;
|
|
29
|
+
function h(e, t) {
|
|
30
|
+
return e.byteLength === t.byteLength && O(new Uint8Array(e), new Uint8Array(t));
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function g(e, t, n) {
|
|
33
33
|
let r = e.length;
|
|
34
34
|
if (t.length !== r) return !1;
|
|
35
35
|
for (; r-- > 0;) if (!n.equals(e[r], t[r], r, r, e, t, n)) return !1;
|
|
36
36
|
return !0;
|
|
37
37
|
}
|
|
38
|
-
function g(e, t) {
|
|
39
|
-
return e.byteLength === t.byteLength && D(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
|
|
40
|
-
}
|
|
41
38
|
function _(e, t) {
|
|
42
|
-
return
|
|
39
|
+
return e.byteLength === t.byteLength && O(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
|
|
43
40
|
}
|
|
44
41
|
function v(e, t) {
|
|
45
|
-
return e.
|
|
42
|
+
return c(e.getTime(), t.getTime());
|
|
43
|
+
}
|
|
44
|
+
function y(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
|
-
function
|
|
47
|
+
function b(e, t) {
|
|
48
48
|
return e === t;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function x(e, t, n) {
|
|
51
51
|
let r = e.size;
|
|
52
52
|
if (r !== t.size) return !1;
|
|
53
53
|
if (!r) return !0;
|
|
@@ -71,27 +71,27 @@ function b(e, t, n) {
|
|
|
71
71
|
}
|
|
72
72
|
return !0;
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
let r =
|
|
77
|
-
if (
|
|
78
|
-
for (; i-- > 0;) if (!
|
|
74
|
+
var S = c;
|
|
75
|
+
function C(e, t, n) {
|
|
76
|
+
let r = m(e), i = r.length;
|
|
77
|
+
if (m(t).length !== i) return !1;
|
|
78
|
+
for (; i-- > 0;) if (!M(e, t, n, r[i])) return !1;
|
|
79
79
|
return !0;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function w(e, t, n) {
|
|
82
82
|
let r = o(e), i = r.length;
|
|
83
83
|
if (o(t).length !== i) return !1;
|
|
84
84
|
let a, s, c;
|
|
85
|
-
for (; i-- > 0;) if (a = r[i], !
|
|
85
|
+
for (; i-- > 0;) if (a = r[i], !M(e, t, n, a) || (s = p(e, a), c = p(t, a), (s || c) && (!s || !c || s.configurable !== c.configurable || s.enumerable !== c.enumerable || s.writable !== c.writable))) return !1;
|
|
86
86
|
return !0;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function T(e, t) {
|
|
89
89
|
return c(e.valueOf(), t.valueOf());
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function E(e, t) {
|
|
92
92
|
return e.source === t.source && e.flags === t.flags;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function D(e, t, n) {
|
|
95
95
|
let r = e.size;
|
|
96
96
|
if (r !== t.size) return !1;
|
|
97
97
|
if (!r) return !0;
|
|
@@ -109,19 +109,30 @@ function E(e, t, n) {
|
|
|
109
109
|
}
|
|
110
110
|
return !0;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
let n = e.
|
|
114
|
-
if (t.
|
|
112
|
+
function O(e, t) {
|
|
113
|
+
let n = e.length;
|
|
114
|
+
if (t.length !== n || e.byteOffset !== t.byteOffset) return !1;
|
|
115
|
+
if (e instanceof Float64Array || e instanceof Float32Array || f && e instanceof Float16Array) {
|
|
116
|
+
for (; n-- > 0;) if (e[n] !== t[n] && (e[n] === e[n] || t[n] === t[n])) return !1;
|
|
117
|
+
return !0;
|
|
118
|
+
}
|
|
115
119
|
for (; n-- > 0;) if (e[n] !== t[n]) return !1;
|
|
116
120
|
return !0;
|
|
117
121
|
}
|
|
118
|
-
function
|
|
119
|
-
return e.
|
|
122
|
+
function k(e, t) {
|
|
123
|
+
return e.href === t.href ? !0 : e.protocol === t.protocol && e.username === t.username && e.password === t.password && e.host === t.host && e.pathname === t.pathname && e.hash === t.hash && A(e.searchParams, t.searchParams);
|
|
124
|
+
}
|
|
125
|
+
function A(e, t) {
|
|
126
|
+
let n = e.toString(), r = t.toString();
|
|
127
|
+
return n === r || j(n) === j(r);
|
|
128
|
+
}
|
|
129
|
+
function j(e) {
|
|
130
|
+
return e.split("&").sort().join("&");
|
|
120
131
|
}
|
|
121
|
-
function
|
|
132
|
+
function M(e, t, n, r) {
|
|
122
133
|
return (r === d || r === u || r === l) && (e.$$typeof || t.$$typeof) ? !0 : s(t, r) && n.equals(e[r], t[r], r, r, e, t, n);
|
|
123
134
|
}
|
|
124
|
-
var
|
|
135
|
+
var N = "[object ArrayBuffer]", P = "[object Arguments]", F = "[object Boolean]", I = "[object DataView]", L = "[object Date]", R = "[object Error]", z = "[object Map]", B = "[object Number]", V = "[object Object]", H = "[object RegExp]", U = "[object Set]", W = "[object String]", G = {
|
|
125
136
|
"[object Int8Array]": !0,
|
|
126
137
|
"[object Uint8Array]": !0,
|
|
127
138
|
"[object Uint8ClampedArray]": !0,
|
|
@@ -134,8 +145,8 @@ var A = "[object ArrayBuffer]", j = "[object Arguments]", M = "[object Boolean]"
|
|
|
134
145
|
"[object Float64Array]": !0,
|
|
135
146
|
"[object BigInt64Array]": !0,
|
|
136
147
|
"[object BigUint64Array]": !0
|
|
137
|
-
},
|
|
138
|
-
function
|
|
148
|
+
}, K = "[object URL]", q = Object.prototype.toString;
|
|
149
|
+
function J({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, areDatesEqual: r, areErrorsEqual: i, areFunctionsEqual: o, areMapsEqual: s, areNumbersEqual: c, areObjectsEqual: l, arePrimitiveWrappersEqual: u, areRegExpsEqual: d, areSetsEqual: f, areTypedArraysEqual: p, areUrlsEqual: m, unknownTagComparators: h }) {
|
|
139
150
|
return function(g, _, v) {
|
|
140
151
|
if (g === _) return !0;
|
|
141
152
|
if (g == null || _ == null) return !1;
|
|
@@ -150,19 +161,19 @@ function G({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, a
|
|
|
150
161
|
if (b === RegExp) return d(g, _, v);
|
|
151
162
|
if (b === Map) return s(g, _, v);
|
|
152
163
|
if (b === Set) return f(g, _, v);
|
|
153
|
-
let x =
|
|
154
|
-
if (x ===
|
|
155
|
-
if (x ===
|
|
156
|
-
if (x ===
|
|
157
|
-
if (x ===
|
|
158
|
-
if (x ===
|
|
159
|
-
if (x ===
|
|
160
|
-
if (x ===
|
|
161
|
-
if (x ===
|
|
162
|
-
if (
|
|
163
|
-
if (x ===
|
|
164
|
-
if (x ===
|
|
165
|
-
if (x ===
|
|
164
|
+
let x = q.call(g);
|
|
165
|
+
if (x === L) return r(g, _, v);
|
|
166
|
+
if (x === H) return d(g, _, v);
|
|
167
|
+
if (x === z) return s(g, _, v);
|
|
168
|
+
if (x === U) return f(g, _, v);
|
|
169
|
+
if (x === V) return typeof g.then != "function" && typeof _.then != "function" && l(g, _, v);
|
|
170
|
+
if (x === K) return m(g, _, v);
|
|
171
|
+
if (x === R) return i(g, _, v);
|
|
172
|
+
if (x === P) return l(g, _, v);
|
|
173
|
+
if (G[x]) return p(g, _, v);
|
|
174
|
+
if (x === N) return e(g, _, v);
|
|
175
|
+
if (x === I) return n(g, _, v);
|
|
176
|
+
if (x === F || x === B || x === W) return u(g, _, v);
|
|
166
177
|
if (h) {
|
|
167
178
|
let e = h[x];
|
|
168
179
|
if (!e) {
|
|
@@ -174,41 +185,42 @@ function G({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, a
|
|
|
174
185
|
return !1;
|
|
175
186
|
};
|
|
176
187
|
}
|
|
177
|
-
function
|
|
188
|
+
function Y({ circular: e, createCustomConfig: t, strict: n }) {
|
|
178
189
|
let a = {
|
|
179
|
-
areArrayBuffersEqual:
|
|
180
|
-
areArraysEqual: n ?
|
|
181
|
-
areDataViewsEqual:
|
|
182
|
-
areDatesEqual:
|
|
183
|
-
areErrorsEqual:
|
|
184
|
-
areFunctionsEqual:
|
|
185
|
-
areMapsEqual: n ? r(
|
|
186
|
-
areNumbersEqual:
|
|
187
|
-
areObjectsEqual: n ?
|
|
188
|
-
arePrimitiveWrappersEqual:
|
|
189
|
-
areRegExpsEqual:
|
|
190
|
-
areSetsEqual: n ? r(
|
|
191
|
-
areTypedArraysEqual: n ? r(
|
|
192
|
-
areUrlsEqual:
|
|
190
|
+
areArrayBuffersEqual: h,
|
|
191
|
+
areArraysEqual: n ? w : g,
|
|
192
|
+
areDataViewsEqual: _,
|
|
193
|
+
areDatesEqual: v,
|
|
194
|
+
areErrorsEqual: n ? r(y, w) : r(y, C),
|
|
195
|
+
areFunctionsEqual: b,
|
|
196
|
+
areMapsEqual: n ? r(x, w) : x,
|
|
197
|
+
areNumbersEqual: S,
|
|
198
|
+
areObjectsEqual: n ? w : C,
|
|
199
|
+
arePrimitiveWrappersEqual: T,
|
|
200
|
+
areRegExpsEqual: E,
|
|
201
|
+
areSetsEqual: n ? r(D, w) : D,
|
|
202
|
+
areTypedArraysEqual: n ? r(O, w) : O,
|
|
203
|
+
areUrlsEqual: k,
|
|
193
204
|
unknownTagComparators: void 0
|
|
194
205
|
};
|
|
195
206
|
if (t && (a = Object.assign({}, a, t(a))), e) {
|
|
196
|
-
let e = i(a.areArraysEqual), t = i(a.
|
|
207
|
+
let e = i(a.areArraysEqual), t = i(a.areErrorsEqual), n = i(a.areMapsEqual), r = i(a.areObjectsEqual), o = i(a.areSetsEqual);
|
|
197
208
|
a = Object.assign({}, a, {
|
|
198
209
|
areArraysEqual: e,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
210
|
+
areErrorsEqual: t,
|
|
211
|
+
areMapsEqual: n,
|
|
212
|
+
areObjectsEqual: r,
|
|
213
|
+
areSetsEqual: o
|
|
202
214
|
});
|
|
203
215
|
}
|
|
204
216
|
return a;
|
|
205
217
|
}
|
|
206
|
-
function
|
|
218
|
+
function X(e) {
|
|
207
219
|
return function(t, n, r, i, a, o, s) {
|
|
208
220
|
return e(t, n, s);
|
|
209
221
|
};
|
|
210
222
|
}
|
|
211
|
-
function
|
|
223
|
+
function Z({ circular: e, comparator: t, createState: n, equals: r, strict: i }) {
|
|
212
224
|
if (n) return function(a, o) {
|
|
213
225
|
let { cache: s = e ? /* @__PURE__ */ new WeakMap() : void 0, meta: c } = n();
|
|
214
226
|
return t(a, o, {
|
|
@@ -236,32 +248,32 @@ function J({ circular: e, comparator: t, createState: n, equals: r, strict: i })
|
|
|
236
248
|
return t(e, n, a);
|
|
237
249
|
};
|
|
238
250
|
}
|
|
239
|
-
var
|
|
240
|
-
|
|
251
|
+
var Q = $();
|
|
252
|
+
$({ strict: !0 }), $({ circular: !0 }), $({
|
|
241
253
|
circular: !0,
|
|
242
254
|
strict: !0
|
|
243
|
-
}),
|
|
255
|
+
}), $({ createInternalComparator: () => c }), $({
|
|
244
256
|
strict: !0,
|
|
245
257
|
createInternalComparator: () => c
|
|
246
|
-
}),
|
|
258
|
+
}), $({
|
|
247
259
|
circular: !0,
|
|
248
260
|
createInternalComparator: () => c
|
|
249
|
-
}),
|
|
261
|
+
}), $({
|
|
250
262
|
circular: !0,
|
|
251
263
|
createInternalComparator: () => c,
|
|
252
264
|
strict: !0
|
|
253
265
|
});
|
|
254
|
-
function
|
|
255
|
-
let { circular: t = !1, createInternalComparator: n, createState: r, strict: i = !1 } = e, a =
|
|
256
|
-
return
|
|
266
|
+
function $(e = {}) {
|
|
267
|
+
let { circular: t = !1, createInternalComparator: n, createState: r, strict: i = !1 } = e, a = J(Y(e));
|
|
268
|
+
return Z({
|
|
257
269
|
circular: t,
|
|
258
270
|
comparator: a,
|
|
259
271
|
createState: r,
|
|
260
|
-
equals: n ? n(a) :
|
|
272
|
+
equals: n ? n(a) : X(a),
|
|
261
273
|
strict: i
|
|
262
274
|
});
|
|
263
275
|
}
|
|
264
276
|
//#endregion
|
|
265
|
-
export {
|
|
277
|
+
export { Q as deepEqual };
|
|
266
278
|
|
|
267
279
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/fast-equals/dist/es/index.mjs"],"sourcesContent":["const { getOwnPropertyNames, getOwnPropertySymbols } = Object;\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst { hasOwnProperty } = Object.prototype;\n/**\n * Combine two comparators into a single comparators.\n */\nfunction combineComparators(comparatorA, comparatorB) {\n return function isEqual(a, b, state) {\n return comparatorA(a, b, state) && comparatorB(a, b, state);\n };\n}\n/**\n * Wrap the provided `areItemsEqual` method to manage the circular state, allowing\n * for circular references to be safely included in the comparison without creating\n * stack overflows.\n */\nfunction createIsCircular(areItemsEqual) {\n return function isCircular(a, b, state) {\n if (!a || !b || typeof a !== 'object' || typeof b !== 'object') {\n return areItemsEqual(a, b, state);\n }\n const { cache } = state;\n const cachedA = cache.get(a);\n const cachedB = cache.get(b);\n if (cachedA && cachedB) {\n return cachedA === b && cachedB === a;\n }\n cache.set(a, b);\n cache.set(b, a);\n const result = areItemsEqual(a, b, state);\n cache.delete(a);\n cache.delete(b);\n return result;\n };\n}\n/**\n * Get the `@@toStringTag` of the value, if it exists.\n */\nfunction getShortTag(value) {\n return value != null ? value[Symbol.toStringTag] : undefined;\n}\n/**\n * Get the properties to strictly examine, which include both own properties that are\n * not enumerable and symbol properties.\n */\nfunction getStrictProperties(object) {\n return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));\n}\n/**\n * Whether the object contains the property passed as an own property.\n */\nconst hasOwn = \n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nObject.hasOwn || ((object, property) => hasOwnProperty.call(object, property));\n/**\n * Whether the values passed are strictly equal or both NaN.\n */\nfunction sameValueZeroEqual(a, b) {\n return a === b || (!a && !b && a !== a && b !== b);\n}\n\nconst PREACT_VNODE = '__v';\nconst PREACT_OWNER = '__o';\nconst REACT_OWNER = '_owner';\nconst { getOwnPropertyDescriptor, keys } = Object;\n/**\n * Whether the array buffers are equal in value.\n */\nfunction areArrayBuffersEqual(a, b) {\n return a.byteLength === b.byteLength && areTypedArraysEqual(new Uint8Array(a), new Uint8Array(b));\n}\n/**\n * Whether the arrays are equal in value.\n */\nfunction areArraysEqual(a, b, state) {\n let index = a.length;\n if (b.length !== index) {\n return false;\n }\n while (index-- > 0) {\n if (!state.equals(a[index], b[index], index, index, a, b, state)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the dataviews are equal in value.\n */\nfunction areDataViewsEqual(a, b) {\n return (a.byteLength === b.byteLength\n && areTypedArraysEqual(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)));\n}\n/**\n * Whether the dates passed are equal in value.\n */\nfunction areDatesEqual(a, b) {\n return sameValueZeroEqual(a.getTime(), b.getTime());\n}\n/**\n * Whether the errors passed are equal in value.\n */\nfunction areErrorsEqual(a, b) {\n return a.name === b.name && a.message === b.message && a.cause === b.cause && a.stack === b.stack;\n}\n/**\n * Whether the functions passed are equal in value.\n */\nfunction areFunctionsEqual(a, b) {\n return a === b;\n}\n/**\n * Whether the `Map`s are equal in value.\n */\nfunction areMapsEqual(a, b, state) {\n const size = a.size;\n if (size !== b.size) {\n return false;\n }\n if (!size) {\n return true;\n }\n const matchedIndices = new Array(size);\n const aIterable = a.entries();\n let aResult;\n let bResult;\n let index = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n const bIterable = b.entries();\n let hasMatch = false;\n let matchIndex = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n if (matchedIndices[matchIndex]) {\n matchIndex++;\n continue;\n }\n const aEntry = aResult.value;\n const bEntry = bResult.value;\n if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state)\n && state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n matchIndex++;\n }\n if (!hasMatch) {\n return false;\n }\n index++;\n }\n return true;\n}\n/**\n * Whether the numbers are equal in value.\n */\nconst areNumbersEqual = sameValueZeroEqual;\n/**\n * Whether the objects are equal in value.\n */\nfunction areObjectsEqual(a, b, state) {\n const properties = keys(a);\n let index = properties.length;\n if (keys(b).length !== index) {\n return false;\n }\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n if (!isPropertyEqual(a, b, state, properties[index])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the objects are equal in value with strict property checking.\n */\nfunction areObjectsEqualStrict(a, b, state) {\n const properties = getStrictProperties(a);\n let index = properties.length;\n if (getStrictProperties(b).length !== index) {\n return false;\n }\n let property;\n let descriptorA;\n let descriptorB;\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n property = properties[index];\n if (!isPropertyEqual(a, b, state, property)) {\n return false;\n }\n descriptorA = getOwnPropertyDescriptor(a, property);\n descriptorB = getOwnPropertyDescriptor(b, property);\n if ((descriptorA || descriptorB)\n && (!descriptorA\n || !descriptorB\n || descriptorA.configurable !== descriptorB.configurable\n || descriptorA.enumerable !== descriptorB.enumerable\n || descriptorA.writable !== descriptorB.writable)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the primitive wrappers passed are equal in value.\n */\nfunction arePrimitiveWrappersEqual(a, b) {\n return sameValueZeroEqual(a.valueOf(), b.valueOf());\n}\n/**\n * Whether the regexps passed are equal in value.\n */\nfunction areRegExpsEqual(a, b) {\n return a.source === b.source && a.flags === b.flags;\n}\n/**\n * Whether the `Set`s are equal in value.\n */\nfunction areSetsEqual(a, b, state) {\n const size = a.size;\n if (size !== b.size) {\n return false;\n }\n if (!size) {\n return true;\n }\n const matchedIndices = new Array(size);\n const aIterable = a.values();\n let aResult;\n let bResult;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n const bIterable = b.values();\n let hasMatch = false;\n let matchIndex = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n if (!matchedIndices[matchIndex]\n && state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state)) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n matchIndex++;\n }\n if (!hasMatch) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the TypedArray instances are equal in value.\n */\nfunction areTypedArraysEqual(a, b) {\n let index = a.byteLength;\n if (b.byteLength !== index || a.byteOffset !== b.byteOffset) {\n return false;\n }\n while (index-- > 0) {\n if (a[index] !== b[index]) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the URL instances are equal in value.\n */\nfunction areUrlsEqual(a, b) {\n return (a.hostname === b.hostname\n && a.pathname === b.pathname\n && a.protocol === b.protocol\n && a.port === b.port\n && a.hash === b.hash\n && a.username === b.username\n && a.password === b.password);\n}\nfunction isPropertyEqual(a, b, state, property) {\n if ((property === REACT_OWNER || property === PREACT_OWNER || property === PREACT_VNODE)\n && (a.$$typeof || b.$$typeof)) {\n return true;\n }\n return hasOwn(b, property) && state.equals(a[property], b[property], property, property, a, b, state);\n}\n\nconst ARRAY_BUFFER_TAG = '[object ArrayBuffer]';\nconst ARGUMENTS_TAG = '[object Arguments]';\nconst BOOLEAN_TAG = '[object Boolean]';\nconst DATA_VIEW_TAG = '[object DataView]';\nconst DATE_TAG = '[object Date]';\nconst ERROR_TAG = '[object Error]';\nconst MAP_TAG = '[object Map]';\nconst NUMBER_TAG = '[object Number]';\nconst OBJECT_TAG = '[object Object]';\nconst REG_EXP_TAG = '[object RegExp]';\nconst SET_TAG = '[object Set]';\nconst STRING_TAG = '[object String]';\nconst TYPED_ARRAY_TAGS = {\n '[object Int8Array]': true,\n '[object Uint8Array]': true,\n '[object Uint8ClampedArray]': true,\n '[object Int16Array]': true,\n '[object Uint16Array]': true,\n '[object Int32Array]': true,\n '[object Uint32Array]': true,\n '[object Float16Array]': true,\n '[object Float32Array]': true,\n '[object Float64Array]': true,\n '[object BigInt64Array]': true,\n '[object BigUint64Array]': true,\n};\nconst URL_TAG = '[object URL]';\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst toString = Object.prototype.toString;\n/**\n * Create a comparator method based on the type-specific equality comparators passed.\n */\nfunction createEqualityComparator({ areArrayBuffersEqual, areArraysEqual, areDataViewsEqual, areDatesEqual, areErrorsEqual, areFunctionsEqual, areMapsEqual, areNumbersEqual, areObjectsEqual, arePrimitiveWrappersEqual, areRegExpsEqual, areSetsEqual, areTypedArraysEqual, areUrlsEqual, unknownTagComparators, }) {\n /**\n * compare the value of the two objects and return true if they are equivalent in values\n */\n return function comparator(a, b, state) {\n // If the items are strictly equal, no need to do a value comparison.\n if (a === b) {\n return true;\n }\n // If either of the items are nullish and fail the strictly equal check\n // above, then they must be unequal.\n if (a == null || b == null) {\n return false;\n }\n const type = typeof a;\n if (type !== typeof b) {\n return false;\n }\n if (type !== 'object') {\n if (type === 'number') {\n return areNumbersEqual(a, b, state);\n }\n if (type === 'function') {\n return areFunctionsEqual(a, b, state);\n }\n // If a primitive value that is not strictly equal, it must be unequal.\n return false;\n }\n const constructor = a.constructor;\n // Checks are listed in order of commonality of use-case:\n // 1. Common complex object types (plain object, array)\n // 2. Common data values (date, regexp)\n // 3. Less-common complex object types (map, set)\n // 4. Less-common data values (promise, primitive wrappers)\n // Inherently this is both subjective and assumptive, however\n // when reviewing comparable libraries in the wild this order\n // appears to be generally consistent.\n // Constructors should match, otherwise there is potential for false positives\n // between class and subclass or custom object and POJO.\n if (constructor !== b.constructor) {\n return false;\n }\n // `isPlainObject` only checks against the object's own realm. Cross-realm\n // comparisons are rare, and will be handled in the ultimate fallback, so\n // we can avoid capturing the string tag.\n if (constructor === Object) {\n return areObjectsEqual(a, b, state);\n }\n // `isArray()` works on subclasses and is cross-realm, so we can avoid capturing\n // the string tag or doing an `instanceof` check.\n if (Array.isArray(a)) {\n return areArraysEqual(a, b, state);\n }\n // Try to fast-path equality checks for other complex object types in the\n // same realm to avoid capturing the string tag. Strict equality is used\n // instead of `instanceof` because it is more performant for the common\n // use-case. If someone is subclassing a native class, it will be handled\n // with the string tag comparison.\n if (constructor === Date) {\n return areDatesEqual(a, b, state);\n }\n if (constructor === RegExp) {\n return areRegExpsEqual(a, b, state);\n }\n if (constructor === Map) {\n return areMapsEqual(a, b, state);\n }\n if (constructor === Set) {\n return areSetsEqual(a, b, state);\n }\n // Since this is a custom object, capture the string tag to determing its type.\n // This is reasonably performant in modern environments like v8 and SpiderMonkey.\n const tag = toString.call(a);\n if (tag === DATE_TAG) {\n return areDatesEqual(a, b, state);\n }\n // For RegExp, the properties are not enumerable, and therefore will give false positives if\n // tested like a standard object.\n if (tag === REG_EXP_TAG) {\n return areRegExpsEqual(a, b, state);\n }\n if (tag === MAP_TAG) {\n return areMapsEqual(a, b, state);\n }\n if (tag === SET_TAG) {\n return areSetsEqual(a, b, state);\n }\n if (tag === OBJECT_TAG) {\n // The exception for value comparison is custom `Promise`-like class instances. These should\n // be treated the same as standard `Promise` objects, which means strict equality, and if\n // it reaches this point then that strict equality comparison has already failed.\n return typeof a.then !== 'function' && typeof b.then !== 'function' && areObjectsEqual(a, b, state);\n }\n // If a URL tag, it should be tested explicitly. Like RegExp, the properties are not\n // enumerable, and therefore will give false positives if tested like a standard object.\n if (tag === URL_TAG) {\n return areUrlsEqual(a, b, state);\n }\n // If an error tag, it should be tested explicitly. Like RegExp, the properties are not\n // enumerable, and therefore will give false positives if tested like a standard object.\n if (tag === ERROR_TAG) {\n return areErrorsEqual(a, b, state);\n }\n // If an arguments tag, it should be treated as a standard object.\n if (tag === ARGUMENTS_TAG) {\n return areObjectsEqual(a, b, state);\n }\n if (TYPED_ARRAY_TAGS[tag]) {\n return areTypedArraysEqual(a, b, state);\n }\n if (tag === ARRAY_BUFFER_TAG) {\n return areArrayBuffersEqual(a, b, state);\n }\n if (tag === DATA_VIEW_TAG) {\n return areDataViewsEqual(a, b, state);\n }\n // As the penultimate fallback, check if the values passed are primitive wrappers. This\n // is very rare in modern JS, which is why it is deprioritized compared to all other object\n // types.\n if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {\n return arePrimitiveWrappersEqual(a, b, state);\n }\n if (unknownTagComparators) {\n let unknownTagComparator = unknownTagComparators[tag];\n if (!unknownTagComparator) {\n const shortTag = getShortTag(a);\n if (shortTag) {\n unknownTagComparator = unknownTagComparators[shortTag];\n }\n }\n // If the custom config has an unknown tag comparator that matches the captured tag or the\n // @@toStringTag, it is the source of truth for whether the values are equal.\n if (unknownTagComparator) {\n return unknownTagComparator(a, b, state);\n }\n }\n // If not matching any tags that require a specific type of comparison, then we hard-code false because\n // the only thing remaining is strict equality, which has already been compared. This is for a few reasons:\n // - Certain types that cannot be introspected (e.g., `WeakMap`). For these types, this is the only\n // comparison that can be made.\n // - For types that can be introspected, but rarely have requirements to be compared\n // (`ArrayBuffer`, `DataView`, etc.), the cost is avoided to prioritize the common\n // use-cases (may be included in a future release, if requested enough).\n // - For types that can be introspected but do not have an objective definition of what\n // equality is (`Error`, etc.), the subjective decision is to be conservative and strictly compare.\n // In all cases, these decisions should be reevaluated based on changes to the language and\n // common development practices.\n return false;\n };\n}\n/**\n * Create the configuration object used for building comparators.\n */\nfunction createEqualityComparatorConfig({ circular, createCustomConfig, strict, }) {\n let config = {\n areArrayBuffersEqual,\n areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,\n areDataViewsEqual,\n areDatesEqual: areDatesEqual,\n areErrorsEqual: areErrorsEqual,\n areFunctionsEqual: areFunctionsEqual,\n areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,\n areNumbersEqual: areNumbersEqual,\n areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,\n arePrimitiveWrappersEqual: arePrimitiveWrappersEqual,\n areRegExpsEqual: areRegExpsEqual,\n areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,\n areTypedArraysEqual: strict\n ? combineComparators(areTypedArraysEqual, areObjectsEqualStrict)\n : areTypedArraysEqual,\n areUrlsEqual: areUrlsEqual,\n unknownTagComparators: undefined,\n };\n if (createCustomConfig) {\n config = Object.assign({}, config, createCustomConfig(config));\n }\n if (circular) {\n const areArraysEqual = createIsCircular(config.areArraysEqual);\n const areMapsEqual = createIsCircular(config.areMapsEqual);\n const areObjectsEqual = createIsCircular(config.areObjectsEqual);\n const areSetsEqual = createIsCircular(config.areSetsEqual);\n config = Object.assign({}, config, {\n areArraysEqual,\n areMapsEqual,\n areObjectsEqual,\n areSetsEqual,\n });\n }\n return config;\n}\n/**\n * Default equality comparator pass-through, used as the standard `isEqual` creator for\n * use inside the built comparator.\n */\nfunction createInternalEqualityComparator(compare) {\n return function (a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {\n return compare(a, b, state);\n };\n}\n/**\n * Create the `isEqual` function used by the consuming application.\n */\nfunction createIsEqual({ circular, comparator, createState, equals, strict }) {\n if (createState) {\n return function isEqual(a, b) {\n const { cache = circular ? new WeakMap() : undefined, meta } = createState();\n return comparator(a, b, {\n cache,\n equals,\n meta,\n strict,\n });\n };\n }\n if (circular) {\n return function isEqual(a, b) {\n return comparator(a, b, {\n cache: new WeakMap(),\n equals,\n meta: undefined,\n strict,\n });\n };\n }\n const state = {\n cache: undefined,\n equals,\n meta: undefined,\n strict,\n };\n return function isEqual(a, b) {\n return comparator(a, b, state);\n };\n}\n\n/**\n * Whether the items passed are deeply-equal in value.\n */\nconst deepEqual = createCustomEqual();\n/**\n * Whether the items passed are deeply-equal in value based on strict comparison.\n */\nconst strictDeepEqual = createCustomEqual({ strict: true });\n/**\n * Whether the items passed are deeply-equal in value, including circular references.\n */\nconst circularDeepEqual = createCustomEqual({ circular: true });\n/**\n * Whether the items passed are deeply-equal in value, including circular references,\n * based on strict comparison.\n */\nconst strictCircularDeepEqual = createCustomEqual({\n circular: true,\n strict: true,\n});\n/**\n * Whether the items passed are shallowly-equal in value.\n */\nconst shallowEqual = createCustomEqual({\n createInternalComparator: () => sameValueZeroEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value based on strict comparison\n */\nconst strictShallowEqual = createCustomEqual({\n strict: true,\n createInternalComparator: () => sameValueZeroEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value, including circular references.\n */\nconst circularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueZeroEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value, including circular references,\n * based on strict comparison.\n */\nconst strictCircularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueZeroEqual,\n strict: true,\n});\n/**\n * Create a custom equality comparison method.\n *\n * This can be done to create very targeted comparisons in extreme hot-path scenarios\n * where the standard methods are not performant enough, but can also be used to provide\n * support for legacy environments that do not support expected features like\n * `RegExp.prototype.flags` out of the box.\n */\nfunction createCustomEqual(options = {}) {\n const { circular = false, createInternalComparator: createCustomInternalComparator, createState, strict = false, } = options;\n const config = createEqualityComparatorConfig(options);\n const comparator = createEqualityComparator(config);\n const equals = createCustomInternalComparator\n ? createCustomInternalComparator(comparator)\n : createInternalEqualityComparator(comparator);\n return createIsEqual({ circular, comparator, createState, equals, strict });\n}\n\nexport { circularDeepEqual, circularShallowEqual, createCustomEqual, deepEqual, sameValueZeroEqual, shallowEqual, strictCircularDeepEqual, strictCircularShallowEqual, strictDeepEqual, strictShallowEqual };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,EAAE,wBAAqB,6BAA0B,QAEjD,EAAE,sBAAmB,OAAO;AAIlC,SAAS,EAAmB,GAAa,GAAa;CAClD,OAAO,SAAiB,GAAG,GAAG,GAAO;EACjC,OAAO,EAAY,GAAG,GAAG,CAAK,KAAK,EAAY,GAAG,GAAG,CAAK;CAC9D;AACJ;AAMA,SAAS,EAAiB,GAAe;CACrC,OAAO,SAAoB,GAAG,GAAG,GAAO;EACpC,IAAI,CAAC,KAAK,CAAC,KAAK,OAAO,KAAM,YAAY,OAAO,KAAM,UAClD,OAAO,EAAc,GAAG,GAAG,CAAK;EAEpC,IAAM,EAAE,aAAU,GACZ,IAAU,EAAM,IAAI,CAAC,GACrB,IAAU,EAAM,IAAI,CAAC;EAC3B,IAAI,KAAW,GACX,OAAO,MAAY,KAAK,MAAY;EAGxC,AADA,EAAM,IAAI,GAAG,CAAC,GACd,EAAM,IAAI,GAAG,CAAC;EACd,IAAM,IAAS,EAAc,GAAG,GAAG,CAAK;EAGxC,OAFA,EAAM,OAAO,CAAC,GACd,EAAM,OAAO,CAAC,GACP;CACX;AACJ;AAIA,SAAS,EAAY,GAAO;CACxB,OAAO,IAAsB,OAAO;AACxC;AAKA,SAAS,EAAoB,GAAQ;CACjC,OAAO,EAAoB,CAAM,EAAE,OAAO,EAAsB,CAAM,CAAC;AAC3E;AAIA,IAAM,IAEN,OAAO,YAAY,GAAQ,MAAa,EAAe,KAAK,GAAQ,CAAQ;AAI5E,SAAS,EAAmB,GAAG,GAAG;CAC9B,OAAO,MAAM,KAAM,CAAC,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,GAIhC,EAAkB,EAAE,UAAU,GAAK,CAAC,GAK9B,EAAkB;CAC9C,UAAU;CACV,QAAQ;AACZ,CAAC,GAIoB,EAAkB,EACnC,gCAAgC,EACpC,CAAC,GAI0B,EAAkB;CACzC,QAAQ;CACR,gCAAgC;AACpC,CAAC,GAI4B,EAAkB;CAC3C,UAAU;CACV,gCAAgC;AACpC,CAAC,GAKkC,EAAkB;CACjD,UAAU;CACV,gCAAgC;CAChC,QAAQ;AACZ,CAAC;AASD,SAAS,EAAkB,IAAU,CAAC,GAAG;CACrC,IAAM,EAAE,cAAW,IAAO,0BAA0B,GAAgC,gBAAa,YAAS,OAAW,GAE/G,IAAa,EADJ,EAA+B,CACG,CAAC;CAIlD,OAAO,EAAc;EAAE;EAAU;EAAY;EAAa,QAH3C,IACT,EAA+B,CAAU,IACzC,EAAiC,CAAU;EACiB;CAAO,CAAC;AAC9E"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/fast-equals/dist/es/index.mjs"],"sourcesContent":["const { getOwnPropertyNames, getOwnPropertySymbols } = Object;\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst { hasOwnProperty } = Object.prototype;\n/**\n * Combine two comparators into a single comparators.\n */\nfunction combineComparators(comparatorA, comparatorB) {\n return function isEqual(a, b, state) {\n return comparatorA(a, b, state) && comparatorB(a, b, state);\n };\n}\n/**\n * Wrap the provided `areItemsEqual` method to manage the circular state, allowing\n * for circular references to be safely included in the comparison without creating\n * stack overflows.\n */\nfunction createIsCircular(areItemsEqual) {\n return function isCircular(a, b, state) {\n if (!a || !b || typeof a !== 'object' || typeof b !== 'object') {\n return areItemsEqual(a, b, state);\n }\n const { cache } = state;\n const cachedA = cache.get(a);\n const cachedB = cache.get(b);\n if (cachedA && cachedB) {\n return cachedA === b && cachedB === a;\n }\n cache.set(a, b);\n cache.set(b, a);\n const result = areItemsEqual(a, b, state);\n cache.delete(a);\n cache.delete(b);\n return result;\n };\n}\n/**\n * Get the `@@toStringTag` of the value, if it exists.\n */\nfunction getShortTag(value) {\n return value != null ? value[Symbol.toStringTag] : undefined;\n}\n/**\n * Get the properties to strictly examine, which include both own properties that are\n * not enumerable and symbol properties.\n */\nfunction getStrictProperties(object) {\n return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));\n}\n/**\n * Whether the object contains the property passed as an own property.\n */\nconst hasOwn = \n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nObject.hasOwn || ((object, property) => hasOwnProperty.call(object, property));\n/**\n * Whether the values passed are strictly equal or both NaN.\n */\nfunction sameValueZeroEqual(a, b) {\n return a === b || (!a && !b && a !== a && b !== b);\n}\n\nconst PREACT_VNODE = '__v';\nconst PREACT_OWNER = '__o';\nconst REACT_OWNER = '_owner';\n// `Float16Array` is recent enough that it cannot be referenced unguarded, and capturing its\n// availability once keeps that detail out of the comparison itself.\nconst HAS_FLOAT_16_ARRAY = typeof Float16Array !== 'undefined';\nconst { getOwnPropertyDescriptor, keys } = Object;\n/**\n * Whether the array buffers are equal in value.\n */\nfunction areArrayBuffersEqual(a, b) {\n return a.byteLength === b.byteLength && areTypedArraysEqual(new Uint8Array(a), new Uint8Array(b));\n}\n/**\n * Whether the arrays are equal in value.\n */\nfunction areArraysEqual(a, b, state) {\n let index = a.length;\n if (b.length !== index) {\n return false;\n }\n while (index-- > 0) {\n if (!state.equals(a[index], b[index], index, index, a, b, state)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the dataviews are equal in value.\n */\nfunction areDataViewsEqual(a, b) {\n return (a.byteLength === b.byteLength\n && areTypedArraysEqual(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)));\n}\n/**\n * Whether the dates passed are equal in value.\n */\nfunction areDatesEqual(a, b) {\n return sameValueZeroEqual(a.getTime(), b.getTime());\n}\n/**\n * Whether the errors passed are equal in value.\n */\nfunction areErrorsEqual(a, b, state) {\n return (a.name === b.name\n && a.message === b.message\n && a.stack === b.stack\n && state.equals(a.cause, b.cause, 'cause', 'cause', a, b, state));\n}\n/**\n * Whether the functions passed are equal in value.\n */\nfunction areFunctionsEqual(a, b) {\n return a === b;\n}\n/**\n * Whether the `Map`s are equal in value.\n */\nfunction areMapsEqual(a, b, state) {\n const size = a.size;\n if (size !== b.size) {\n return false;\n }\n if (!size) {\n return true;\n }\n const matchedIndices = new Array(size);\n const aIterable = a.entries();\n let aResult;\n let bResult;\n let index = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n const bIterable = b.entries();\n let hasMatch = false;\n let matchIndex = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n if (matchedIndices[matchIndex]) {\n matchIndex++;\n continue;\n }\n const aEntry = aResult.value;\n const bEntry = bResult.value;\n if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state)\n && state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n matchIndex++;\n }\n if (!hasMatch) {\n return false;\n }\n index++;\n }\n return true;\n}\n/**\n * Whether the numbers are equal in value.\n */\nconst areNumbersEqual = sameValueZeroEqual;\n/**\n * Whether the objects are equal in value.\n */\nfunction areObjectsEqual(a, b, state) {\n const properties = keys(a);\n let index = properties.length;\n if (keys(b).length !== index) {\n return false;\n }\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n if (!isPropertyEqual(a, b, state, properties[index])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the objects are equal in value with strict property checking.\n */\nfunction areObjectsEqualStrict(a, b, state) {\n const properties = getStrictProperties(a);\n let index = properties.length;\n if (getStrictProperties(b).length !== index) {\n return false;\n }\n let property;\n let descriptorA;\n let descriptorB;\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n property = properties[index];\n if (!isPropertyEqual(a, b, state, property)) {\n return false;\n }\n descriptorA = getOwnPropertyDescriptor(a, property);\n descriptorB = getOwnPropertyDescriptor(b, property);\n if ((descriptorA || descriptorB)\n && (!descriptorA\n || !descriptorB\n || descriptorA.configurable !== descriptorB.configurable\n || descriptorA.enumerable !== descriptorB.enumerable\n || descriptorA.writable !== descriptorB.writable)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the primitive wrappers passed are equal in value.\n */\nfunction arePrimitiveWrappersEqual(a, b) {\n return sameValueZeroEqual(a.valueOf(), b.valueOf());\n}\n/**\n * Whether the regexps passed are equal in value.\n */\nfunction areRegExpsEqual(a, b) {\n return a.source === b.source && a.flags === b.flags;\n}\n/**\n * Whether the `Set`s are equal in value.\n */\nfunction areSetsEqual(a, b, state) {\n const size = a.size;\n if (size !== b.size) {\n return false;\n }\n if (!size) {\n return true;\n }\n const matchedIndices = new Array(size);\n const aIterable = a.values();\n let aResult;\n let bResult;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n const bIterable = b.values();\n let hasMatch = false;\n let matchIndex = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n if (!matchedIndices[matchIndex]\n && state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state)) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n matchIndex++;\n }\n if (!hasMatch) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the TypedArray instances are equal in value.\n */\nfunction areTypedArraysEqual(a, b) {\n let index = a.length;\n if (b.length !== index || a.byteOffset !== b.byteOffset) {\n return false;\n }\n // Only float-backed views can hold `NaN`, and the additional check needed to treat it as equal\n // to itself measurably slows the loop, so integer views keep the plain comparison. This is\n // hoisted out of the loop so the cost is paid once per call rather than once per element.\n if (a instanceof Float64Array || a instanceof Float32Array || (HAS_FLOAT_16_ARRAY && a instanceof Float16Array)) {\n while (index-- > 0) {\n // `NaN` is the only value not equal to itself, and it is treated as equal here to match\n // the SameValueZero semantics used for every other numeric comparison in the library.\n if (a[index] !== b[index] && (a[index] === a[index] || b[index] === b[index])) {\n return false;\n }\n }\n return true;\n }\n while (index-- > 0) {\n if (a[index] !== b[index]) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the URL instances are equal in value.\n */\nfunction areUrlsEqual(a, b) {\n // `href` is the normalized serialization of every component, so matching hrefs are equal without\n // any further work. Only a difference in query parameter ordering can survive a mismatch here.\n if (a.href === b.href) {\n return true;\n }\n return (a.protocol === b.protocol\n && a.username === b.username\n && a.password === b.password\n // `host` covers both the hostname and the port.\n && a.host === b.host\n && a.pathname === b.pathname\n && a.hash === b.hash\n && areSearchParamsEqual(a.searchParams, b.searchParams));\n}\n/**\n * Whether the search params passed are equal in value.\n *\n * @note\n * Order is not significant, matching how the other unordered collections in the library are\n * compared. Repeated keys are, so this is a comparison of multisets rather than of sets:\n * `a=1&a=2` is equal to `a=2&a=1`, but not to `a=1&a=1`.\n */\nfunction areSearchParamsEqual(a, b) {\n const serializedA = a.toString();\n const serializedB = b.toString();\n // Identical serializations are equal under any ordering, and this is by far the common case, so\n // it is worth checking before sorting anything.\n return serializedA === serializedB || sortSearchParams(serializedA) === sortSearchParams(serializedB);\n}\n/**\n * Reorder a serialized query string so that params holding the same pairs compare as equal\n * regardless of the order they appear in.\n *\n * @note\n * The serializer percent-encodes `&` and `=` wherever they appear inside a name or a value, so\n * splitting on `&` recovers exactly the pairs and nothing else.\n */\nfunction sortSearchParams(serialized) {\n return serialized.split('&').sort().join('&');\n}\nfunction isPropertyEqual(a, b, state, property) {\n if ((property === REACT_OWNER || property === PREACT_OWNER || property === PREACT_VNODE)\n && (a.$$typeof || b.$$typeof)) {\n return true;\n }\n return hasOwn(b, property) && state.equals(a[property], b[property], property, property, a, b, state);\n}\n\nconst ARRAY_BUFFER_TAG = '[object ArrayBuffer]';\nconst ARGUMENTS_TAG = '[object Arguments]';\nconst BOOLEAN_TAG = '[object Boolean]';\nconst DATA_VIEW_TAG = '[object DataView]';\nconst DATE_TAG = '[object Date]';\nconst ERROR_TAG = '[object Error]';\nconst MAP_TAG = '[object Map]';\nconst NUMBER_TAG = '[object Number]';\nconst OBJECT_TAG = '[object Object]';\nconst REG_EXP_TAG = '[object RegExp]';\nconst SET_TAG = '[object Set]';\nconst STRING_TAG = '[object String]';\nconst TYPED_ARRAY_TAGS = {\n '[object Int8Array]': true,\n '[object Uint8Array]': true,\n '[object Uint8ClampedArray]': true,\n '[object Int16Array]': true,\n '[object Uint16Array]': true,\n '[object Int32Array]': true,\n '[object Uint32Array]': true,\n '[object Float16Array]': true,\n '[object Float32Array]': true,\n '[object Float64Array]': true,\n '[object BigInt64Array]': true,\n '[object BigUint64Array]': true,\n};\nconst URL_TAG = '[object URL]';\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst toString = Object.prototype.toString;\n/**\n * Create a comparator method based on the type-specific equality comparators passed.\n */\nfunction createEqualityComparator({ areArrayBuffersEqual, areArraysEqual, areDataViewsEqual, areDatesEqual, areErrorsEqual, areFunctionsEqual, areMapsEqual, areNumbersEqual, areObjectsEqual, arePrimitiveWrappersEqual, areRegExpsEqual, areSetsEqual, areTypedArraysEqual, areUrlsEqual, unknownTagComparators, }) {\n /**\n * compare the value of the two objects and return true if they are equivalent in values\n */\n return function comparator(a, b, state) {\n // If the items are strictly equal, no need to do a value comparison.\n if (a === b) {\n return true;\n }\n // If either of the items are nullish and fail the strictly equal check\n // above, then they must be unequal.\n if (a == null || b == null) {\n return false;\n }\n const type = typeof a;\n if (type !== typeof b) {\n return false;\n }\n if (type !== 'object') {\n if (type === 'number') {\n return areNumbersEqual(a, b, state);\n }\n if (type === 'function') {\n return areFunctionsEqual(a, b, state);\n }\n // If a primitive value that is not strictly equal, it must be unequal.\n return false;\n }\n const constructor = a.constructor;\n // Checks are listed in order of commonality of use-case:\n // 1. Common complex object types (plain object, array)\n // 2. Common data values (date, regexp)\n // 3. Less-common complex object types (map, set)\n // 4. Less-common data values (promise, primitive wrappers)\n // Inherently this is both subjective and assumptive, however\n // when reviewing comparable libraries in the wild this order\n // appears to be generally consistent.\n // Constructors should match, otherwise there is potential for false positives\n // between class and subclass or custom object and POJO.\n if (constructor !== b.constructor) {\n return false;\n }\n // `isPlainObject` only checks against the object's own realm. Cross-realm\n // comparisons are rare, and will be handled in the ultimate fallback, so\n // we can avoid capturing the string tag.\n if (constructor === Object) {\n return areObjectsEqual(a, b, state);\n }\n // `isArray()` works on subclasses and is cross-realm, so we can avoid capturing\n // the string tag or doing an `instanceof` check.\n if (Array.isArray(a)) {\n return areArraysEqual(a, b, state);\n }\n // Try to fast-path equality checks for other complex object types in the\n // same realm to avoid capturing the string tag. Strict equality is used\n // instead of `instanceof` because it is more performant for the common\n // use-case. If someone is subclassing a native class, it will be handled\n // with the string tag comparison.\n if (constructor === Date) {\n return areDatesEqual(a, b, state);\n }\n if (constructor === RegExp) {\n return areRegExpsEqual(a, b, state);\n }\n if (constructor === Map) {\n return areMapsEqual(a, b, state);\n }\n if (constructor === Set) {\n return areSetsEqual(a, b, state);\n }\n // Since this is a custom object, capture the string tag to determing its type.\n // This is reasonably performant in modern environments like v8 and SpiderMonkey.\n const tag = toString.call(a);\n if (tag === DATE_TAG) {\n return areDatesEqual(a, b, state);\n }\n // For RegExp, the properties are not enumerable, and therefore will give false positives if\n // tested like a standard object.\n if (tag === REG_EXP_TAG) {\n return areRegExpsEqual(a, b, state);\n }\n if (tag === MAP_TAG) {\n return areMapsEqual(a, b, state);\n }\n if (tag === SET_TAG) {\n return areSetsEqual(a, b, state);\n }\n if (tag === OBJECT_TAG) {\n // The exception for value comparison is custom `Promise`-like class instances. These should\n // be treated the same as standard `Promise` objects, which means strict equality, and if\n // it reaches this point then that strict equality comparison has already failed.\n return typeof a.then !== 'function' && typeof b.then !== 'function' && areObjectsEqual(a, b, state);\n }\n // If a URL tag, it should be tested explicitly. Like RegExp, the properties are not\n // enumerable, and therefore will give false positives if tested like a standard object.\n if (tag === URL_TAG) {\n return areUrlsEqual(a, b, state);\n }\n // If an error tag, it should be tested explicitly. Like RegExp, the properties are not\n // enumerable, and therefore will give false positives if tested like a standard object.\n if (tag === ERROR_TAG) {\n return areErrorsEqual(a, b, state);\n }\n // If an arguments tag, it should be treated as a standard object.\n if (tag === ARGUMENTS_TAG) {\n return areObjectsEqual(a, b, state);\n }\n if (TYPED_ARRAY_TAGS[tag]) {\n return areTypedArraysEqual(a, b, state);\n }\n if (tag === ARRAY_BUFFER_TAG) {\n return areArrayBuffersEqual(a, b, state);\n }\n if (tag === DATA_VIEW_TAG) {\n return areDataViewsEqual(a, b, state);\n }\n // As the penultimate fallback, check if the values passed are primitive wrappers. This\n // is very rare in modern JS, which is why it is deprioritized compared to all other object\n // types.\n if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {\n return arePrimitiveWrappersEqual(a, b, state);\n }\n if (unknownTagComparators) {\n let unknownTagComparator = unknownTagComparators[tag];\n if (!unknownTagComparator) {\n const shortTag = getShortTag(a);\n if (shortTag) {\n unknownTagComparator = unknownTagComparators[shortTag];\n }\n }\n // If the custom config has an unknown tag comparator that matches the captured tag or the\n // @@toStringTag, it is the source of truth for whether the values are equal.\n if (unknownTagComparator) {\n return unknownTagComparator(a, b, state);\n }\n }\n // If not matching any tags that require a specific type of comparison, then we hard-code false because\n // the only thing remaining is strict equality, which has already been compared. This is for a few reasons:\n // - Certain types that cannot be introspected (e.g., `WeakMap`). For these types, this is the only\n // comparison that can be made.\n // - For types that can be introspected, but rarely have requirements to be compared\n // (`ArrayBuffer`, `DataView`, etc.), the cost is avoided to prioritize the common\n // use-cases (may be included in a future release, if requested enough).\n // - For types that can be introspected but do not have an objective definition of what\n // equality is (`Error`, etc.), the subjective decision is to be conservative and strictly compare.\n // In all cases, these decisions should be reevaluated based on changes to the language and\n // common development practices.\n return false;\n };\n}\n/**\n * Create the configuration object used for building comparators.\n */\nfunction createEqualityComparatorConfig({ circular, createCustomConfig, strict, }) {\n let config = {\n areArrayBuffersEqual,\n areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,\n areDataViewsEqual,\n areDatesEqual: areDatesEqual,\n // `Error` subclasses routinely carry their own enumerable properties (`status`, `code`, ...),\n // which the error comparator alone does not see, so it is composed with the object comparator.\n // `name` / `message` / `stack` are own but not enumerable, which is why errors need a\n // comparator of their own rather than being treated as plain objects in the first place.\n areErrorsEqual: strict\n ? combineComparators(areErrorsEqual, areObjectsEqualStrict)\n : combineComparators(areErrorsEqual, areObjectsEqual),\n areFunctionsEqual: areFunctionsEqual,\n areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,\n areNumbersEqual: areNumbersEqual,\n areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,\n arePrimitiveWrappersEqual: arePrimitiveWrappersEqual,\n areRegExpsEqual: areRegExpsEqual,\n areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,\n areTypedArraysEqual: strict\n ? combineComparators(areTypedArraysEqual, areObjectsEqualStrict)\n : areTypedArraysEqual,\n areUrlsEqual: areUrlsEqual,\n unknownTagComparators: undefined,\n };\n if (createCustomConfig) {\n config = Object.assign({}, config, createCustomConfig(config));\n }\n if (circular) {\n const areArraysEqual = createIsCircular(config.areArraysEqual);\n // Errors are included because comparing `cause` and own properties by value means an error\n // that references itself would otherwise recurse without bound.\n const areErrorsEqual = createIsCircular(config.areErrorsEqual);\n const areMapsEqual = createIsCircular(config.areMapsEqual);\n const areObjectsEqual = createIsCircular(config.areObjectsEqual);\n const areSetsEqual = createIsCircular(config.areSetsEqual);\n config = Object.assign({}, config, {\n areArraysEqual,\n areErrorsEqual,\n areMapsEqual,\n areObjectsEqual,\n areSetsEqual,\n });\n }\n return config;\n}\n/**\n * Default equality comparator pass-through, used as the standard `isEqual` creator for\n * use inside the built comparator.\n */\nfunction createInternalEqualityComparator(compare) {\n return function (a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {\n return compare(a, b, state);\n };\n}\n/**\n * Create the `isEqual` function used by the consuming application.\n */\nfunction createIsEqual({ circular, comparator, createState, equals, strict }) {\n if (createState) {\n return function isEqual(a, b) {\n const { cache = circular ? new WeakMap() : undefined, meta } = createState();\n return comparator(a, b, {\n cache,\n equals,\n meta,\n strict,\n });\n };\n }\n if (circular) {\n return function isEqual(a, b) {\n return comparator(a, b, {\n cache: new WeakMap(),\n equals,\n meta: undefined,\n strict,\n });\n };\n }\n const state = {\n cache: undefined,\n equals,\n meta: undefined,\n strict,\n };\n return function isEqual(a, b) {\n return comparator(a, b, state);\n };\n}\n\n/**\n * Whether the items passed are deeply-equal in value.\n */\nconst deepEqual = createCustomEqual();\n/**\n * Whether the items passed are deeply-equal in value based on strict comparison.\n */\nconst strictDeepEqual = createCustomEqual({ strict: true });\n/**\n * Whether the items passed are deeply-equal in value, including circular references.\n */\nconst circularDeepEqual = createCustomEqual({ circular: true });\n/**\n * Whether the items passed are deeply-equal in value, including circular references,\n * based on strict comparison.\n */\nconst strictCircularDeepEqual = createCustomEqual({\n circular: true,\n strict: true,\n});\n/**\n * Whether the items passed are shallowly-equal in value.\n */\nconst shallowEqual = createCustomEqual({\n createInternalComparator: () => sameValueZeroEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value based on strict comparison\n */\nconst strictShallowEqual = createCustomEqual({\n strict: true,\n createInternalComparator: () => sameValueZeroEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value, including circular references.\n */\nconst circularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueZeroEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value, including circular references,\n * based on strict comparison.\n */\nconst strictCircularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueZeroEqual,\n strict: true,\n});\n/**\n * Create a custom equality comparison method.\n *\n * This can be done to create very targeted comparisons in extreme hot-path scenarios\n * where the standard methods are not performant enough, but can also be used to provide\n * support for legacy environments that do not support expected features like\n * `RegExp.prototype.flags` out of the box.\n */\nfunction createCustomEqual(options = {}) {\n const { circular = false, createInternalComparator: createCustomInternalComparator, createState, strict = false, } = options;\n const config = createEqualityComparatorConfig(options);\n const comparator = createEqualityComparator(config);\n const equals = createCustomInternalComparator\n ? createCustomInternalComparator(comparator)\n : createInternalEqualityComparator(comparator);\n return createIsEqual({ circular, comparator, createState, equals, strict });\n}\n\nexport { circularDeepEqual, circularShallowEqual, createCustomEqual, deepEqual, sameValueZeroEqual, shallowEqual, strictCircularDeepEqual, strictCircularShallowEqual, strictDeepEqual, strictShallowEqual };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,EAAE,wBAAqB,6BAA0B,QAEjD,EAAE,sBAAmB,OAAO;AAIlC,SAAS,EAAmB,GAAa,GAAa;CAClD,OAAO,SAAiB,GAAG,GAAG,GAAO;EACjC,OAAO,EAAY,GAAG,GAAG,CAAK,KAAK,EAAY,GAAG,GAAG,CAAK;CAC9D;AACJ;AAMA,SAAS,EAAiB,GAAe;CACrC,OAAO,SAAoB,GAAG,GAAG,GAAO;EACpC,IAAI,CAAC,KAAK,CAAC,KAAK,OAAO,KAAM,YAAY,OAAO,KAAM,UAClD,OAAO,EAAc,GAAG,GAAG,CAAK;EAEpC,IAAM,EAAE,aAAU,GACZ,IAAU,EAAM,IAAI,CAAC,GACrB,IAAU,EAAM,IAAI,CAAC;EAC3B,IAAI,KAAW,GACX,OAAO,MAAY,KAAK,MAAY;EAGxC,AADA,EAAM,IAAI,GAAG,CAAC,GACd,EAAM,IAAI,GAAG,CAAC;EACd,IAAM,IAAS,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U;CACV,gCAAgC;AACpC,CAAC,GAKkC,EAAkB;CACjD,UAAU;CACV,gCAAgC;CAChC,QAAQ;AACZ,CAAC;AASD,SAAS,EAAkB,IAAU,CAAC,GAAG;CACrC,IAAM,EAAE,cAAW,IAAO,0BAA0B,GAAgC,gBAAa,YAAS,OAAW,GAE/G,IAAa,EADJ,EAA+B,CACG,CAAC;CAIlD,OAAO,EAAc;EAAE;EAAU;EAAY;EAAa,QAH3C,IACT,EAA+B,CAAU,IACzC,EAAiC,CAAU;EACiB;CAAO,CAAC;AAC9E"}
|
|
@@ -1,35 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return e.metadata?.voice === !0;
|
|
4
|
-
}
|
|
5
|
-
function t(e) {
|
|
6
|
-
let t = e.metadata?.voiceSessionId;
|
|
7
|
-
return typeof t == "string" && t.length > 0 ? t : void 0;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return e ? {
|
|
11
|
-
voice: !0,
|
|
12
|
-
voiceSessionId: e
|
|
13
|
-
} : {};
|
|
14
|
-
}
|
|
15
|
-
function r(t) {
|
|
16
|
-
return t.filter((t) => !e(t));
|
|
17
|
-
}
|
|
18
|
-
function i(t) {
|
|
19
|
-
return t.filter(e);
|
|
20
|
-
}
|
|
21
|
-
function a(e, t) {
|
|
22
|
-
let n = [];
|
|
23
|
-
for (let r of e) {
|
|
24
|
-
let e = t(r), i = n[n.length - 1];
|
|
25
|
-
i && i.sessionId === e ? i.turns.push(r) : n.push({
|
|
26
|
-
sessionId: e,
|
|
27
|
-
turns: [r]
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return n;
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
export { r as chatTurns, a as groupConsecutiveBySession, e as isVoiceTurn, n as voiceMarker, t as voiceSessionIdOf, i as voiceTurnsOnly };
|
|
34
|
-
|
|
35
|
-
//# sourceMappingURL=voiceTurnVisibility.js.map
|
|
1
|
+
import { chatTurns as e, groupConsecutiveBySession as t, isVoiceTurn as n, voiceMarker as r, voiceSessionIdOf as i, voiceTurnsOnly as a } from "@burdenoff/fe-libs/shared/assistant";
|
|
2
|
+
export { e as chatTurns, t as groupConsecutiveBySession, n as isVoiceTurn, r as voiceMarker, i as voiceSessionIdOf, a as voiceTurnsOnly };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-healthybowl",
|
|
3
|
-
"version": "2026.903.
|
|
3
|
+
"version": "2026.903.16",
|
|
4
4
|
"description": "Burdenoff HealthyBowl Microfrontend - Comprehensive organic farming and agro-foods management platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@apollo/client": "^4.0.11",
|
|
51
|
-
"@burdenoff/fe-libs": "2026.
|
|
51
|
+
"@burdenoff/fe-libs": "2026.903.5",
|
|
52
52
|
"@burdenoff/planmagnet-fe-sdk": "2026.831.1",
|
|
53
53
|
"@tanstack/react-query": "^5.90.16",
|
|
54
54
|
"clsx": "^2.1.1",
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
"@xmldom/xmldom": ">=0.8.12",
|
|
125
125
|
"swiper": ">=12.1.2",
|
|
126
126
|
"brace-expansion": "5.0.9",
|
|
127
|
+
"browserslist": "4.28.7",
|
|
127
128
|
"ajv": "6.15.0",
|
|
128
129
|
"js-yaml": "3.15.1",
|
|
129
130
|
"nanoid": "3.3.18",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"voiceTurnVisibility.js","names":[],"sources":["../../src/utils/voiceTurnVisibility.ts"],"sourcesContent":["/**\n * Which surface does a turn belong to?\n *\n * Voice and chat share ONE conversation: the live session was built as an\n * overlay over the chat thread, so `submitVoiceTurn` calls the same `handleSend`\n * the composer does and both write into the same persisted `messages` array.\n * That is why every spoken exchange appeared in the typed thread, and why the\n * voice panel painted the last six messages of the whole conversation —\n * including typed replies full of `##` and `**`, which it renders as literal\n * text.\n *\n * One marker fixes both directions:\n * - the chat panel hides turns that happened in voice\n * - the voice panel shows ONLY turns that happened in voice\n *\n * ★ Deliberately a display split, not separate persistence. It survives a\n * reload because the chat transcript is never rehydrated from the backend — the\n * store is the only source of truth for what either panel shows. The backend\n * session is still shared, so the model keeps full context of the conversation\n * across both surfaces, which is what makes \"carry on where we left off\" work.\n * Genuinely separate backend sessions are a larger change and would cost that.\n */\n\ninterface TurnLike {\n metadata?: ({ voice?: boolean; voiceSessionId?: string } & Record<string, unknown>) | undefined;\n}\n\n/** True when this turn happened inside a live voice session. */\nexport function isVoiceTurn(message: TurnLike): boolean {\n return message.metadata?.voice === true;\n}\n\n/**\n * WHICH voice session produced this turn, if we know.\n *\n * ★ `undefined` is a real answer, not a failure: every spoken turn recorded\n * before session ids existed carries `voice: true` and nothing else, and those\n * conversations are in users' localStorage today. It means \"some earlier\n * session\" and must never be read as \"not spoken\" — `isVoiceTurn` remains the\n * only thing that decides which surface a turn belongs to.\n */\nexport function voiceSessionIdOf(message: TurnLike): string | undefined {\n const id = message.metadata?.voiceSessionId;\n return typeof id === 'string' && id.length > 0 ? id : undefined;\n}\n\n/**\n * The marker as a fragment to spread into a message's `metadata`.\n *\n * ★ `patchMessage` REPLACES `metadata` instead of merging it, so every write\n * that rebuilds the object has to re-assert this or the turn silently demotes\n * itself to a chat turn. That is exactly what shipped: the marker was stamped\n * at creation and destroyed the instant the reply completed, so a spoken answer\n * appeared in the typed thread AND disappeared from the voice transcript at the\n * same moment — the transcript could only ever show the user's questions.\n *\n * Spreading one helper at all four sites is what keeps them from drifting;\n * `voiceMarkerCallSitesAreComplete` in the test file fails the build if a new\n * metadata write forgets it.\n *\n * ★ Takes the SESSION ID rather than a boolean, and stamps both fields from it.\n * There used to be a separate `dictated` flag that call sites passed straight\n * through, which made it possible to mark a turn as spoken while recording no\n * session — a state with no meaning that only the transcript would ever notice.\n * One argument means the two can never disagree.\n *\n * An absent id yields an EMPTY object, so a typed turn gets no marker at all:\n * `chatTurns` is allow-by-default, and a stray `voice: false` would be a second\n * way of saying the same thing.\n */\nexport function voiceMarker(sessionId: string | undefined): { voice?: true; voiceSessionId?: string } {\n return sessionId ? { voice: true, voiceSessionId: sessionId } : {};\n}\n\n/**\n * The turns the CHAT panel should show: everything that was not spoken.\n *\n * Untagged turns are treated as chat, so every conversation recorded before the\n * marker existed keeps rendering exactly as it did.\n */\nexport function chatTurns<T extends TurnLike>(messages: readonly T[]): T[] {\n return messages.filter((message) => !isVoiceTurn(message));\n}\n\n/**\n * The turns the VOICE panel should show: only what was spoken.\n *\n * This is also what scopes the voice transcript to the session. Previously it\n * took the last six messages of the whole conversation, so opening voice on an\n * existing thread immediately painted typed replies — the wall of raw markdown\n * in the operator's screenshot.\n */\nexport function voiceTurnsOnly<T extends TurnLike>(messages: readonly T[]): T[] {\n return messages.filter(isVoiceTurn);\n}\n\n/** One microphone-on-to-End, and the turns it produced, oldest first. */\nexport interface VoiceSessionGroup<T> {\n /**\n * `undefined` for turns recorded before session ids existed. Rendered as one\n * leading group rather than dropped — it is real history the user spoke.\n */\n sessionId: string | undefined;\n turns: T[];\n}\n\n/**\n * Split spoken turns into the sessions that produced them.\n *\n * The transcript shows a conversation's whole spoken history, which is the more\n * useful of the two options — you can go back to what you asked last time — but\n * run together it reads as one long exchange, and a question from a session\n * three days ago looks like it was just asked. Grouping is what makes showing\n * everything honest.\n *\n * ★ Groups by RUNS, not by collecting every turn with the same id. Turns are\n * stored in the order they happened, so a run IS a session; gathering by id\n * instead would silently reorder history if two sessions ever interleaved, and\n * would hide it rather than show it if they did.\n *\n * ★ Consecutive un-stamped turns collapse into a single leading group. Treating\n * each as its own session would print a divider between every pre-existing turn\n * — one long exchange shattered into fragments, which is worse than the\n * undivided version this is meant to fix.\n */\nexport function groupBySession<T extends TurnLike>(turns: readonly T[]): VoiceSessionGroup<T>[] {\n return groupConsecutiveBySession(turns, voiceSessionIdOf);\n}\n\n/**\n * The same grouping for turns that have already been flattened for display.\n *\n * The transcript renders `{id, role, text}`, not `Message`, so it cannot reach\n * `metadata`. Passing the extractor keeps ONE implementation of the run logic\n * instead of a second copy that drifts — the subtle part is the `undefined`\n * merge, and having it in two places is how one of them stops doing it.\n */\nexport function groupConsecutiveBySession<T>(\n turns: readonly T[],\n sessionIdOf: (turn: T) => string | undefined\n): VoiceSessionGroup<T>[] {\n const groups: VoiceSessionGroup<T>[] = [];\n for (const turn of turns) {\n const sessionId = sessionIdOf(turn);\n const current = groups[groups.length - 1];\n // A run continues while the id is unchanged. `undefined === undefined` is\n // what merges the legacy turns, and is deliberate rather than incidental.\n if (current && current.sessionId === sessionId) current.turns.push(turn);\n else groups.push({ sessionId, turns: [turn] });\n }\n return groups;\n}\n\n/**\n * A spoken turn flattened for display.\n *\n * ★ Shared by every component between the chat area and the transcript, so the\n * session id is carried in the TYPE and not merely at runtime. The intermediate\n * props used to declare `{id, role, text}` while the objects flowing through\n * happened to have more: it compiled, and the dividers worked, purely because\n * JavaScript keeps the extra property. Any future refactor that rebuilt one of\n * those objects would have dropped the id and silently run every session back\n * together — the exact defect this field was added to fix, reintroduced with no\n * type error.\n */\nexport interface VoiceTranscriptTurn {\n id: string;\n role: 'user' | 'assistant';\n text: string;\n /**\n * When the turn happened, ISO.\n *\n * Carried for the SAVED transcript rather than for the on-screen one: a file\n * that outlives the session is read later, when \"when did I ask that?\" is the\n * actual question, and a record without times answers it badly.\n */\n timestamp: string;\n /**\n * `undefined` on turns recorded before session ids existed.\n *\n * ★ REQUIRED-but-nullable rather than optional, and the difference is the\n * whole point. With `sessionId?: string`, an object rebuilt without the key is\n * still structurally assignable — so a refactor that mapped turns through and\n * dropped it would compile, and every session would silently run back\n * together. Written this way, omitting the key is a type error and passing\n * `undefined` is a decision someone made on purpose.\n */\n sessionId: string | undefined;\n}\n"],"mappings":";AA4BA,SAAgB,EAAY,GAA4B;CACtD,OAAO,EAAQ,UAAU,UAAU;AACrC;AAWA,SAAgB,EAAiB,GAAuC;CACtE,IAAM,IAAK,EAAQ,UAAU;CAC7B,OAAO,OAAO,KAAO,YAAY,EAAG,SAAS,IAAI,IAAK,KAAA;AACxD;AA0BA,SAAgB,EAAY,GAA0E;CACpG,OAAO,IAAY;EAAE,OAAO;EAAM,gBAAgB;CAAU,IAAI,CAAC;AACnE;AAQA,SAAgB,EAA8B,GAA6B;CACzE,OAAO,EAAS,QAAQ,MAAY,CAAC,EAAY,CAAO,CAAC;AAC3D;AAUA,SAAgB,EAAmC,GAA6B;CAC9E,OAAO,EAAS,OAAO,CAAW;AACpC;AA2CA,SAAgB,EACd,GACA,GACwB;CACxB,IAAM,IAAiC,CAAC;CACxC,KAAK,IAAM,KAAQ,GAAO;EACxB,IAAM,IAAY,EAAY,CAAI,GAC5B,IAAU,EAAO,EAAO,SAAS;EAGvC,AAAI,KAAW,EAAQ,cAAc,IAAW,EAAQ,MAAM,KAAK,CAAI,IAClE,EAAO,KAAK;GAAE;GAAW,OAAO,CAAC,CAAI;EAAE,CAAC;CAC/C;CACA,OAAO;AACT"}
|