@fedify/vocab 2.0.29-dev.2107 → 2.0.29-dev.2139

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/mod.js CHANGED
@@ -9,7 +9,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
9
9
  import { delay } from "es-toolkit";
10
10
  //#region deno.json
11
11
  var name = "@fedify/vocab";
12
- var version = "2.0.29-dev.2107+5ab4c99b";
12
+ var version = "2.0.29-dev.2139+7e5d091d";
13
13
  //#endregion
14
14
  //#region src/type.ts
15
15
  function getTypeId(object) {
@@ -781,7 +781,17 @@ var Object$1 = class Object$1 {
781
781
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
782
782
  const prop = this._cachedJsonLd["attachment"];
783
783
  const obj = Array.isArray(prop) ? prop[i] : prop;
784
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attachment_fromJsonLd(obj, options);
784
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
785
+ v = await this.#attachment_fromJsonLd(obj, options);
786
+ } catch (error) {
787
+ if (!options.suppressError) throw error;
788
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
789
+ property: "https://www.w3.org/ns/activitystreams#attachment",
790
+ index: i,
791
+ error
792
+ });
793
+ continue;
794
+ }
785
795
  }
786
796
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
787
797
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -950,7 +960,16 @@ var Object$1 = class Object$1 {
950
960
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
951
961
  const prop = this._cachedJsonLd["attributedTo"];
952
962
  const doc = Array.isArray(prop) ? prop[0] : prop;
953
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#attribution_fromJsonLd(doc, options);
963
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
964
+ v = await this.#attribution_fromJsonLd(doc, options);
965
+ } catch (error) {
966
+ if (!options.suppressError) throw error;
967
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
968
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
969
+ error
970
+ });
971
+ return null;
972
+ }
954
973
  }
955
974
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
956
975
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -993,7 +1012,17 @@ var Object$1 = class Object$1 {
993
1012
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
994
1013
  const prop = this._cachedJsonLd["attributedTo"];
995
1014
  const obj = Array.isArray(prop) ? prop[i] : prop;
996
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attribution_fromJsonLd(obj, options);
1015
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1016
+ v = await this.#attribution_fromJsonLd(obj, options);
1017
+ } catch (error) {
1018
+ if (!options.suppressError) throw error;
1019
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1020
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
1021
+ index: i,
1022
+ error
1023
+ });
1024
+ continue;
1025
+ }
997
1026
  }
998
1027
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
999
1028
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1115,7 +1144,16 @@ var Object$1 = class Object$1 {
1115
1144
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1116
1145
  const prop = this._cachedJsonLd["audience"];
1117
1146
  const doc = Array.isArray(prop) ? prop[0] : prop;
1118
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#audience_fromJsonLd(doc, options);
1147
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1148
+ v = await this.#audience_fromJsonLd(doc, options);
1149
+ } catch (error) {
1150
+ if (!options.suppressError) throw error;
1151
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1152
+ property: "https://www.w3.org/ns/activitystreams#audience",
1153
+ error
1154
+ });
1155
+ return null;
1156
+ }
1119
1157
  }
1120
1158
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1121
1159
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1157,7 +1195,17 @@ var Object$1 = class Object$1 {
1157
1195
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1158
1196
  const prop = this._cachedJsonLd["audience"];
1159
1197
  const obj = Array.isArray(prop) ? prop[i] : prop;
1160
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#audience_fromJsonLd(obj, options);
1198
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1199
+ v = await this.#audience_fromJsonLd(obj, options);
1200
+ } catch (error) {
1201
+ if (!options.suppressError) throw error;
1202
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1203
+ property: "https://www.w3.org/ns/activitystreams#audience",
1204
+ index: i,
1205
+ error
1206
+ });
1207
+ continue;
1208
+ }
1161
1209
  }
1162
1210
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1163
1211
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1313,7 +1361,17 @@ var Object$1 = class Object$1 {
1313
1361
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
1314
1362
  const prop = this._cachedJsonLd["context"];
1315
1363
  const obj = Array.isArray(prop) ? prop[i] : prop;
1316
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#context_fromJsonLd(obj, options);
1364
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1365
+ v = await this.#context_fromJsonLd(obj, options);
1366
+ } catch (error) {
1367
+ if (!options.suppressError) throw error;
1368
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1369
+ property: "https://www.w3.org/ns/activitystreams#context",
1370
+ index: i,
1371
+ error
1372
+ });
1373
+ continue;
1374
+ }
1317
1375
  }
1318
1376
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
1319
1377
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1469,7 +1527,17 @@ var Object$1 = class Object$1 {
1469
1527
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
1470
1528
  const prop = this._cachedJsonLd["generator"];
1471
1529
  const obj = Array.isArray(prop) ? prop[i] : prop;
1472
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#generator_fromJsonLd(obj, options);
1530
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1531
+ v = await this.#generator_fromJsonLd(obj, options);
1532
+ } catch (error) {
1533
+ if (!options.suppressError) throw error;
1534
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1535
+ property: "https://www.w3.org/ns/activitystreams#generator",
1536
+ index: i,
1537
+ error
1538
+ });
1539
+ continue;
1540
+ }
1473
1541
  }
1474
1542
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
1475
1543
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1592,7 +1660,16 @@ var Object$1 = class Object$1 {
1592
1660
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1593
1661
  const prop = this._cachedJsonLd["icon"];
1594
1662
  const doc = Array.isArray(prop) ? prop[0] : prop;
1595
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#icon_fromJsonLd(doc, options);
1663
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1664
+ v = await this.#icon_fromJsonLd(doc, options);
1665
+ } catch (error) {
1666
+ if (!options.suppressError) throw error;
1667
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1668
+ property: "https://www.w3.org/ns/activitystreams#icon",
1669
+ error
1670
+ });
1671
+ return null;
1672
+ }
1596
1673
  }
1597
1674
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1598
1675
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1635,7 +1712,17 @@ var Object$1 = class Object$1 {
1635
1712
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1636
1713
  const prop = this._cachedJsonLd["icon"];
1637
1714
  const obj = Array.isArray(prop) ? prop[i] : prop;
1638
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#icon_fromJsonLd(obj, options);
1715
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1716
+ v = await this.#icon_fromJsonLd(obj, options);
1717
+ } catch (error) {
1718
+ if (!options.suppressError) throw error;
1719
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1720
+ property: "https://www.w3.org/ns/activitystreams#icon",
1721
+ index: i,
1722
+ error
1723
+ });
1724
+ continue;
1725
+ }
1639
1726
  }
1640
1727
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1641
1728
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1758,7 +1845,16 @@ var Object$1 = class Object$1 {
1758
1845
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1759
1846
  const prop = this._cachedJsonLd["image"];
1760
1847
  const doc = Array.isArray(prop) ? prop[0] : prop;
1761
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#image_fromJsonLd(doc, options);
1848
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1849
+ v = await this.#image_fromJsonLd(doc, options);
1850
+ } catch (error) {
1851
+ if (!options.suppressError) throw error;
1852
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1853
+ property: "https://www.w3.org/ns/activitystreams#image",
1854
+ error
1855
+ });
1856
+ return null;
1857
+ }
1762
1858
  }
1763
1859
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1764
1860
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1801,7 +1897,17 @@ var Object$1 = class Object$1 {
1801
1897
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1802
1898
  const prop = this._cachedJsonLd["image"];
1803
1899
  const obj = Array.isArray(prop) ? prop[i] : prop;
1804
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#image_fromJsonLd(obj, options);
1900
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1901
+ v = await this.#image_fromJsonLd(obj, options);
1902
+ } catch (error) {
1903
+ if (!options.suppressError) throw error;
1904
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1905
+ property: "https://www.w3.org/ns/activitystreams#image",
1906
+ index: i,
1907
+ error
1908
+ });
1909
+ continue;
1910
+ }
1805
1911
  }
1806
1912
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1807
1913
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1933,7 +2039,16 @@ var Object$1 = class Object$1 {
1933
2039
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
1934
2040
  const prop = this._cachedJsonLd["inReplyTo"];
1935
2041
  const doc = Array.isArray(prop) ? prop[0] : prop;
1936
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replyTarget_fromJsonLd(doc, options);
2042
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2043
+ v = await this.#replyTarget_fromJsonLd(doc, options);
2044
+ } catch (error) {
2045
+ if (!options.suppressError) throw error;
2046
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2047
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2048
+ error
2049
+ });
2050
+ return null;
2051
+ }
1937
2052
  }
1938
2053
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
1939
2054
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1975,7 +2090,17 @@ var Object$1 = class Object$1 {
1975
2090
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
1976
2091
  const prop = this._cachedJsonLd["inReplyTo"];
1977
2092
  const obj = Array.isArray(prop) ? prop[i] : prop;
1978
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#replyTarget_fromJsonLd(obj, options);
2093
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2094
+ v = await this.#replyTarget_fromJsonLd(obj, options);
2095
+ } catch (error) {
2096
+ if (!options.suppressError) throw error;
2097
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2098
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2099
+ index: i,
2100
+ error
2101
+ });
2102
+ continue;
2103
+ }
1979
2104
  }
1980
2105
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
1981
2106
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2107,7 +2232,16 @@ var Object$1 = class Object$1 {
2107
2232
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2108
2233
  const prop = this._cachedJsonLd["location"];
2109
2234
  const doc = Array.isArray(prop) ? prop[0] : prop;
2110
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#location_fromJsonLd(doc, options);
2235
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2236
+ v = await this.#location_fromJsonLd(doc, options);
2237
+ } catch (error) {
2238
+ if (!options.suppressError) throw error;
2239
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2240
+ property: "https://www.w3.org/ns/activitystreams#location",
2241
+ error
2242
+ });
2243
+ return null;
2244
+ }
2111
2245
  }
2112
2246
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2113
2247
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2149,7 +2283,17 @@ var Object$1 = class Object$1 {
2149
2283
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2150
2284
  const prop = this._cachedJsonLd["location"];
2151
2285
  const obj = Array.isArray(prop) ? prop[i] : prop;
2152
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#location_fromJsonLd(obj, options);
2286
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2287
+ v = await this.#location_fromJsonLd(obj, options);
2288
+ } catch (error) {
2289
+ if (!options.suppressError) throw error;
2290
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2291
+ property: "https://www.w3.org/ns/activitystreams#location",
2292
+ index: i,
2293
+ error
2294
+ });
2295
+ continue;
2296
+ }
2153
2297
  }
2154
2298
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2155
2299
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2280,7 +2424,16 @@ var Object$1 = class Object$1 {
2280
2424
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2281
2425
  const prop = this._cachedJsonLd["preview"];
2282
2426
  const doc = Array.isArray(prop) ? prop[0] : prop;
2283
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#preview_fromJsonLd(doc, options);
2427
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2428
+ v = await this.#preview_fromJsonLd(doc, options);
2429
+ } catch (error) {
2430
+ if (!options.suppressError) throw error;
2431
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2432
+ property: "https://www.w3.org/ns/activitystreams#preview",
2433
+ error
2434
+ });
2435
+ return null;
2436
+ }
2284
2437
  }
2285
2438
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2286
2439
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2321,7 +2474,17 @@ var Object$1 = class Object$1 {
2321
2474
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2322
2475
  const prop = this._cachedJsonLd["preview"];
2323
2476
  const obj = Array.isArray(prop) ? prop[i] : prop;
2324
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
2477
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2478
+ v = await this.#preview_fromJsonLd(obj, options);
2479
+ } catch (error) {
2480
+ if (!options.suppressError) throw error;
2481
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2482
+ property: "https://www.w3.org/ns/activitystreams#preview",
2483
+ index: i,
2484
+ error
2485
+ });
2486
+ continue;
2487
+ }
2325
2488
  }
2326
2489
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2327
2490
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2450,7 +2613,16 @@ var Object$1 = class Object$1 {
2450
2613
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
2451
2614
  const prop = this._cachedJsonLd["replies"];
2452
2615
  const doc = Array.isArray(prop) ? prop[0] : prop;
2453
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replies_fromJsonLd(doc, options);
2616
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2617
+ v = await this.#replies_fromJsonLd(doc, options);
2618
+ } catch (error) {
2619
+ if (!options.suppressError) throw error;
2620
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2621
+ property: "https://www.w3.org/ns/activitystreams#replies",
2622
+ error
2623
+ });
2624
+ return null;
2625
+ }
2454
2626
  }
2455
2627
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
2456
2628
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2577,7 +2749,16 @@ var Object$1 = class Object$1 {
2577
2749
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
2578
2750
  const prop = this._cachedJsonLd["shares"];
2579
2751
  const doc = Array.isArray(prop) ? prop[0] : prop;
2580
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#shares_fromJsonLd(doc, options);
2752
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2753
+ v = await this.#shares_fromJsonLd(doc, options);
2754
+ } catch (error) {
2755
+ if (!options.suppressError) throw error;
2756
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2757
+ property: "https://www.w3.org/ns/activitystreams#shares",
2758
+ error
2759
+ });
2760
+ return null;
2761
+ }
2581
2762
  }
2582
2763
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
2583
2764
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2704,7 +2885,16 @@ var Object$1 = class Object$1 {
2704
2885
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
2705
2886
  const prop = this._cachedJsonLd["likes"];
2706
2887
  const doc = Array.isArray(prop) ? prop[0] : prop;
2707
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likes_fromJsonLd(doc, options);
2888
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2889
+ v = await this.#likes_fromJsonLd(doc, options);
2890
+ } catch (error) {
2891
+ if (!options.suppressError) throw error;
2892
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2893
+ property: "https://www.w3.org/ns/activitystreams#likes",
2894
+ error
2895
+ });
2896
+ return null;
2897
+ }
2708
2898
  }
2709
2899
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
2710
2900
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2825,7 +3015,16 @@ var Object$1 = class Object$1 {
2825
3015
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
2826
3016
  const prop = this._cachedJsonLd["emojiReactions"];
2827
3017
  const doc = Array.isArray(prop) ? prop[0] : prop;
2828
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#emojiReactions_fromJsonLd(doc, options);
3018
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3019
+ v = await this.#emojiReactions_fromJsonLd(doc, options);
3020
+ } catch (error) {
3021
+ if (!options.suppressError) throw error;
3022
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3023
+ property: "http://fedibird.com/ns#emojiReactions",
3024
+ error
3025
+ });
3026
+ return null;
3027
+ }
2829
3028
  }
2830
3029
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
2831
3030
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2981,7 +3180,17 @@ var Object$1 = class Object$1 {
2981
3180
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
2982
3181
  const prop = this._cachedJsonLd["tag"];
2983
3182
  const obj = Array.isArray(prop) ? prop[i] : prop;
2984
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#tag_fromJsonLd(obj, options);
3183
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3184
+ v = await this.#tag_fromJsonLd(obj, options);
3185
+ } catch (error) {
3186
+ if (!options.suppressError) throw error;
3187
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3188
+ property: "https://www.w3.org/ns/activitystreams#tag",
3189
+ index: i,
3190
+ error
3191
+ });
3192
+ continue;
3193
+ }
2985
3194
  }
2986
3195
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
2987
3196
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3122,7 +3331,16 @@ var Object$1 = class Object$1 {
3122
3331
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3123
3332
  const prop = this._cachedJsonLd["to"];
3124
3333
  const doc = Array.isArray(prop) ? prop[0] : prop;
3125
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#to_fromJsonLd(doc, options);
3334
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3335
+ v = await this.#to_fromJsonLd(doc, options);
3336
+ } catch (error) {
3337
+ if (!options.suppressError) throw error;
3338
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3339
+ property: "https://www.w3.org/ns/activitystreams#to",
3340
+ error
3341
+ });
3342
+ return null;
3343
+ }
3126
3344
  }
3127
3345
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3128
3346
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3164,7 +3382,17 @@ var Object$1 = class Object$1 {
3164
3382
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3165
3383
  const prop = this._cachedJsonLd["to"];
3166
3384
  const obj = Array.isArray(prop) ? prop[i] : prop;
3167
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#to_fromJsonLd(obj, options);
3385
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3386
+ v = await this.#to_fromJsonLd(obj, options);
3387
+ } catch (error) {
3388
+ if (!options.suppressError) throw error;
3389
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3390
+ property: "https://www.w3.org/ns/activitystreams#to",
3391
+ index: i,
3392
+ error
3393
+ });
3394
+ continue;
3395
+ }
3168
3396
  }
3169
3397
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3170
3398
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3286,7 +3514,16 @@ var Object$1 = class Object$1 {
3286
3514
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3287
3515
  const prop = this._cachedJsonLd["bto"];
3288
3516
  const doc = Array.isArray(prop) ? prop[0] : prop;
3289
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bto_fromJsonLd(doc, options);
3517
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3518
+ v = await this.#bto_fromJsonLd(doc, options);
3519
+ } catch (error) {
3520
+ if (!options.suppressError) throw error;
3521
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3522
+ property: "https://www.w3.org/ns/activitystreams#bto",
3523
+ error
3524
+ });
3525
+ return null;
3526
+ }
3290
3527
  }
3291
3528
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3292
3529
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3328,7 +3565,17 @@ var Object$1 = class Object$1 {
3328
3565
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3329
3566
  const prop = this._cachedJsonLd["bto"];
3330
3567
  const obj = Array.isArray(prop) ? prop[i] : prop;
3331
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bto_fromJsonLd(obj, options);
3568
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3569
+ v = await this.#bto_fromJsonLd(obj, options);
3570
+ } catch (error) {
3571
+ if (!options.suppressError) throw error;
3572
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3573
+ property: "https://www.w3.org/ns/activitystreams#bto",
3574
+ index: i,
3575
+ error
3576
+ });
3577
+ continue;
3578
+ }
3332
3579
  }
3333
3580
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3334
3581
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3450,7 +3697,16 @@ var Object$1 = class Object$1 {
3450
3697
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3451
3698
  const prop = this._cachedJsonLd["cc"];
3452
3699
  const doc = Array.isArray(prop) ? prop[0] : prop;
3453
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#cc_fromJsonLd(doc, options);
3700
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3701
+ v = await this.#cc_fromJsonLd(doc, options);
3702
+ } catch (error) {
3703
+ if (!options.suppressError) throw error;
3704
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3705
+ property: "https://www.w3.org/ns/activitystreams#cc",
3706
+ error
3707
+ });
3708
+ return null;
3709
+ }
3454
3710
  }
3455
3711
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3456
3712
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3492,7 +3748,17 @@ var Object$1 = class Object$1 {
3492
3748
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3493
3749
  const prop = this._cachedJsonLd["cc"];
3494
3750
  const obj = Array.isArray(prop) ? prop[i] : prop;
3495
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#cc_fromJsonLd(obj, options);
3751
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3752
+ v = await this.#cc_fromJsonLd(obj, options);
3753
+ } catch (error) {
3754
+ if (!options.suppressError) throw error;
3755
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3756
+ property: "https://www.w3.org/ns/activitystreams#cc",
3757
+ index: i,
3758
+ error
3759
+ });
3760
+ continue;
3761
+ }
3496
3762
  }
3497
3763
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3498
3764
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3614,7 +3880,16 @@ var Object$1 = class Object$1 {
3614
3880
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3615
3881
  const prop = this._cachedJsonLd["bcc"];
3616
3882
  const doc = Array.isArray(prop) ? prop[0] : prop;
3617
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bcc_fromJsonLd(doc, options);
3883
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3884
+ v = await this.#bcc_fromJsonLd(doc, options);
3885
+ } catch (error) {
3886
+ if (!options.suppressError) throw error;
3887
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3888
+ property: "https://www.w3.org/ns/activitystreams#bcc",
3889
+ error
3890
+ });
3891
+ return null;
3892
+ }
3618
3893
  }
3619
3894
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3620
3895
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3656,7 +3931,17 @@ var Object$1 = class Object$1 {
3656
3931
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3657
3932
  const prop = this._cachedJsonLd["bcc"];
3658
3933
  const obj = Array.isArray(prop) ? prop[i] : prop;
3659
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bcc_fromJsonLd(obj, options);
3934
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3935
+ v = await this.#bcc_fromJsonLd(obj, options);
3936
+ } catch (error) {
3937
+ if (!options.suppressError) throw error;
3938
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3939
+ property: "https://www.w3.org/ns/activitystreams#bcc",
3940
+ index: i,
3941
+ error
3942
+ });
3943
+ continue;
3944
+ }
3660
3945
  }
3661
3946
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3662
3947
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3814,7 +4099,16 @@ var Object$1 = class Object$1 {
3814
4099
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
3815
4100
  const prop = this._cachedJsonLd["proof"];
3816
4101
  const doc = Array.isArray(prop) ? prop[0] : prop;
3817
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#proof_fromJsonLd(doc, options);
4102
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4103
+ v = await this.#proof_fromJsonLd(doc, options);
4104
+ } catch (error) {
4105
+ if (!options.suppressError) throw error;
4106
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4107
+ property: "https://w3id.org/security#proof",
4108
+ error
4109
+ });
4110
+ return null;
4111
+ }
3818
4112
  }
3819
4113
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
3820
4114
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3855,7 +4149,17 @@ var Object$1 = class Object$1 {
3855
4149
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
3856
4150
  const prop = this._cachedJsonLd["proof"];
3857
4151
  const obj = Array.isArray(prop) ? prop[i] : prop;
3858
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#proof_fromJsonLd(obj, options);
4152
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
4153
+ v = await this.#proof_fromJsonLd(obj, options);
4154
+ } catch (error) {
4155
+ if (!options.suppressError) throw error;
4156
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
4157
+ property: "https://w3id.org/security#proof",
4158
+ index: i,
4159
+ error
4160
+ });
4161
+ continue;
4162
+ }
3859
4163
  }
3860
4164
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
3861
4165
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6513,7 +6817,16 @@ var Activity = class Activity extends Object$1 {
6513
6817
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
6514
6818
  const prop = this._cachedJsonLd["actor"];
6515
6819
  const doc = Array.isArray(prop) ? prop[0] : prop;
6516
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#actor_fromJsonLd(doc, options);
6820
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
6821
+ v = await this.#actor_fromJsonLd(doc, options);
6822
+ } catch (error) {
6823
+ if (!options.suppressError) throw error;
6824
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
6825
+ property: "https://www.w3.org/ns/activitystreams#actor",
6826
+ error
6827
+ });
6828
+ return null;
6829
+ }
6517
6830
  }
6518
6831
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
6519
6832
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6556,7 +6869,17 @@ var Activity = class Activity extends Object$1 {
6556
6869
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
6557
6870
  const prop = this._cachedJsonLd["actor"];
6558
6871
  const obj = Array.isArray(prop) ? prop[i] : prop;
6559
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#actor_fromJsonLd(obj, options);
6872
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
6873
+ v = await this.#actor_fromJsonLd(obj, options);
6874
+ } catch (error) {
6875
+ if (!options.suppressError) throw error;
6876
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
6877
+ property: "https://www.w3.org/ns/activitystreams#actor",
6878
+ index: i,
6879
+ error
6880
+ });
6881
+ continue;
6882
+ }
6560
6883
  }
6561
6884
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
6562
6885
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6679,7 +7002,16 @@ var Activity = class Activity extends Object$1 {
6679
7002
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
6680
7003
  const prop = this._cachedJsonLd["object"];
6681
7004
  const doc = Array.isArray(prop) ? prop[0] : prop;
6682
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
7005
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7006
+ v = await this.#object_fromJsonLd(doc, options);
7007
+ } catch (error) {
7008
+ if (!options.suppressError) throw error;
7009
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7010
+ property: "https://www.w3.org/ns/activitystreams#object",
7011
+ error
7012
+ });
7013
+ return null;
7014
+ }
6683
7015
  }
6684
7016
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
6685
7017
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6722,7 +7054,17 @@ var Activity = class Activity extends Object$1 {
6722
7054
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
6723
7055
  const prop = this._cachedJsonLd["object"];
6724
7056
  const obj = Array.isArray(prop) ? prop[i] : prop;
6725
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
7057
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7058
+ v = await this.#object_fromJsonLd(obj, options);
7059
+ } catch (error) {
7060
+ if (!options.suppressError) throw error;
7061
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7062
+ property: "https://www.w3.org/ns/activitystreams#object",
7063
+ index: i,
7064
+ error
7065
+ });
7066
+ continue;
7067
+ }
6726
7068
  }
6727
7069
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
6728
7070
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6848,7 +7190,16 @@ var Activity = class Activity extends Object$1 {
6848
7190
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
6849
7191
  const prop = this._cachedJsonLd["target"];
6850
7192
  const doc = Array.isArray(prop) ? prop[0] : prop;
6851
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#target_fromJsonLd(doc, options);
7193
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7194
+ v = await this.#target_fromJsonLd(doc, options);
7195
+ } catch (error) {
7196
+ if (!options.suppressError) throw error;
7197
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7198
+ property: "https://www.w3.org/ns/activitystreams#target",
7199
+ error
7200
+ });
7201
+ return null;
7202
+ }
6852
7203
  }
6853
7204
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
6854
7205
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6894,7 +7245,17 @@ var Activity = class Activity extends Object$1 {
6894
7245
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
6895
7246
  const prop = this._cachedJsonLd["target"];
6896
7247
  const obj = Array.isArray(prop) ? prop[i] : prop;
6897
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#target_fromJsonLd(obj, options);
7248
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7249
+ v = await this.#target_fromJsonLd(obj, options);
7250
+ } catch (error) {
7251
+ if (!options.suppressError) throw error;
7252
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7253
+ property: "https://www.w3.org/ns/activitystreams#target",
7254
+ index: i,
7255
+ error
7256
+ });
7257
+ continue;
7258
+ }
6898
7259
  }
6899
7260
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
6900
7261
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7017,7 +7378,16 @@ var Activity = class Activity extends Object$1 {
7017
7378
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
7018
7379
  const prop = this._cachedJsonLd["result"];
7019
7380
  const doc = Array.isArray(prop) ? prop[0] : prop;
7020
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#result_fromJsonLd(doc, options);
7381
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7382
+ v = await this.#result_fromJsonLd(doc, options);
7383
+ } catch (error) {
7384
+ if (!options.suppressError) throw error;
7385
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7386
+ property: "https://www.w3.org/ns/activitystreams#result",
7387
+ error
7388
+ });
7389
+ return null;
7390
+ }
7021
7391
  }
7022
7392
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
7023
7393
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7060,7 +7430,17 @@ var Activity = class Activity extends Object$1 {
7060
7430
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
7061
7431
  const prop = this._cachedJsonLd["result"];
7062
7432
  const obj = Array.isArray(prop) ? prop[i] : prop;
7063
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#result_fromJsonLd(obj, options);
7433
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7434
+ v = await this.#result_fromJsonLd(obj, options);
7435
+ } catch (error) {
7436
+ if (!options.suppressError) throw error;
7437
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7438
+ property: "https://www.w3.org/ns/activitystreams#result",
7439
+ index: i,
7440
+ error
7441
+ });
7442
+ continue;
7443
+ }
7064
7444
  }
7065
7445
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
7066
7446
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7184,7 +7564,16 @@ var Activity = class Activity extends Object$1 {
7184
7564
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
7185
7565
  const prop = this._cachedJsonLd["origin"];
7186
7566
  const doc = Array.isArray(prop) ? prop[0] : prop;
7187
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#origin_fromJsonLd(doc, options);
7567
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7568
+ v = await this.#origin_fromJsonLd(doc, options);
7569
+ } catch (error) {
7570
+ if (!options.suppressError) throw error;
7571
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7572
+ property: "https://www.w3.org/ns/activitystreams#origin",
7573
+ error
7574
+ });
7575
+ return null;
7576
+ }
7188
7577
  }
7189
7578
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
7190
7579
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7228,7 +7617,17 @@ var Activity = class Activity extends Object$1 {
7228
7617
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
7229
7618
  const prop = this._cachedJsonLd["origin"];
7230
7619
  const obj = Array.isArray(prop) ? prop[i] : prop;
7231
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#origin_fromJsonLd(obj, options);
7620
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7621
+ v = await this.#origin_fromJsonLd(obj, options);
7622
+ } catch (error) {
7623
+ if (!options.suppressError) throw error;
7624
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7625
+ property: "https://www.w3.org/ns/activitystreams#origin",
7626
+ index: i,
7627
+ error
7628
+ });
7629
+ continue;
7630
+ }
7232
7631
  }
7233
7632
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
7234
7633
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7350,7 +7749,16 @@ var Activity = class Activity extends Object$1 {
7350
7749
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
7351
7750
  const prop = this._cachedJsonLd["instrument"];
7352
7751
  const doc = Array.isArray(prop) ? prop[0] : prop;
7353
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#instrument_fromJsonLd(doc, options);
7752
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7753
+ v = await this.#instrument_fromJsonLd(doc, options);
7754
+ } catch (error) {
7755
+ if (!options.suppressError) throw error;
7756
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7757
+ property: "https://www.w3.org/ns/activitystreams#instrument",
7758
+ error
7759
+ });
7760
+ return null;
7761
+ }
7354
7762
  }
7355
7763
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
7356
7764
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7392,7 +7800,17 @@ var Activity = class Activity extends Object$1 {
7392
7800
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
7393
7801
  const prop = this._cachedJsonLd["instrument"];
7394
7802
  const obj = Array.isArray(prop) ? prop[i] : prop;
7395
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#instrument_fromJsonLd(obj, options);
7803
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
7804
+ v = await this.#instrument_fromJsonLd(obj, options);
7805
+ } catch (error) {
7806
+ if (!options.suppressError) throw error;
7807
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
7808
+ property: "https://www.w3.org/ns/activitystreams#instrument",
7809
+ index: i,
7810
+ error
7811
+ });
7812
+ continue;
7813
+ }
7396
7814
  }
7397
7815
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
7398
7816
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -9297,7 +9715,16 @@ var CryptographicKey = class {
9297
9715
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
9298
9716
  const prop = this._cachedJsonLd["owner"];
9299
9717
  const doc = Array.isArray(prop) ? prop[0] : prop;
9300
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#owner_fromJsonLd(doc, options);
9718
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
9719
+ v = await this.#owner_fromJsonLd(doc, options);
9720
+ } catch (error) {
9721
+ if (!options.suppressError) throw error;
9722
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
9723
+ property: "https://w3id.org/security#owner",
9724
+ error
9725
+ });
9726
+ return null;
9727
+ }
9301
9728
  }
9302
9729
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
9303
9730
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -9774,7 +10201,16 @@ var Multikey = class {
9774
10201
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
9775
10202
  const prop = this._cachedJsonLd["controller"];
9776
10203
  const doc = Array.isArray(prop) ? prop[0] : prop;
9777
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#controller_fromJsonLd(doc, options);
10204
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
10205
+ v = await this.#controller_fromJsonLd(doc, options);
10206
+ } catch (error) {
10207
+ if (!options.suppressError) throw error;
10208
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
10209
+ property: "https://w3id.org/security#controller",
10210
+ error
10211
+ });
10212
+ return null;
10213
+ }
9778
10214
  }
9779
10215
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
9780
10216
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -10918,7 +11354,16 @@ var Application = class Application extends Object$1 {
10918
11354
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
10919
11355
  const prop = this._cachedJsonLd["publicKey"];
10920
11356
  const doc = Array.isArray(prop) ? prop[0] : prop;
10921
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
11357
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11358
+ v = await this.#publicKey_fromJsonLd(doc, options);
11359
+ } catch (error) {
11360
+ if (!options.suppressError) throw error;
11361
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11362
+ property: "https://w3id.org/security#publicKey",
11363
+ error
11364
+ });
11365
+ return null;
11366
+ }
10922
11367
  }
10923
11368
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
10924
11369
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -10959,7 +11404,17 @@ var Application = class Application extends Object$1 {
10959
11404
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
10960
11405
  const prop = this._cachedJsonLd["publicKey"];
10961
11406
  const obj = Array.isArray(prop) ? prop[i] : prop;
10962
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
11407
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
11408
+ v = await this.#publicKey_fromJsonLd(obj, options);
11409
+ } catch (error) {
11410
+ if (!options.suppressError) throw error;
11411
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
11412
+ property: "https://w3id.org/security#publicKey",
11413
+ index: i,
11414
+ error
11415
+ });
11416
+ continue;
11417
+ }
10963
11418
  }
10964
11419
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
10965
11420
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11083,7 +11538,16 @@ var Application = class Application extends Object$1 {
11083
11538
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
11084
11539
  const prop = this._cachedJsonLd["assertionMethod"];
11085
11540
  const doc = Array.isArray(prop) ? prop[0] : prop;
11086
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
11541
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11542
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
11543
+ } catch (error) {
11544
+ if (!options.suppressError) throw error;
11545
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11546
+ property: "https://w3id.org/security#assertionMethod",
11547
+ error
11548
+ });
11549
+ return null;
11550
+ }
11087
11551
  }
11088
11552
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
11089
11553
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11127,7 +11591,17 @@ var Application = class Application extends Object$1 {
11127
11591
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
11128
11592
  const prop = this._cachedJsonLd["assertionMethod"];
11129
11593
  const obj = Array.isArray(prop) ? prop[i] : prop;
11130
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
11594
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
11595
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
11596
+ } catch (error) {
11597
+ if (!options.suppressError) throw error;
11598
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
11599
+ property: "https://w3id.org/security#assertionMethod",
11600
+ index: i,
11601
+ error
11602
+ });
11603
+ continue;
11604
+ }
11131
11605
  }
11132
11606
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
11133
11607
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11282,7 +11756,16 @@ var Application = class Application extends Object$1 {
11282
11756
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
11283
11757
  const prop = this._cachedJsonLd["inbox"];
11284
11758
  const doc = Array.isArray(prop) ? prop[0] : prop;
11285
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
11759
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11760
+ v = await this.#inbox_fromJsonLd(doc, options);
11761
+ } catch (error) {
11762
+ if (!options.suppressError) throw error;
11763
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11764
+ property: "http://www.w3.org/ns/ldp#inbox",
11765
+ error
11766
+ });
11767
+ return null;
11768
+ }
11286
11769
  }
11287
11770
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
11288
11771
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11421,7 +11904,16 @@ var Application = class Application extends Object$1 {
11421
11904
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
11422
11905
  const prop = this._cachedJsonLd["outbox"];
11423
11906
  const doc = Array.isArray(prop) ? prop[0] : prop;
11424
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
11907
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11908
+ v = await this.#outbox_fromJsonLd(doc, options);
11909
+ } catch (error) {
11910
+ if (!options.suppressError) throw error;
11911
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11912
+ property: "https://www.w3.org/ns/activitystreams#outbox",
11913
+ error
11914
+ });
11915
+ return null;
11916
+ }
11425
11917
  }
11426
11918
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
11427
11919
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11545,7 +12037,16 @@ var Application = class Application extends Object$1 {
11545
12037
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
11546
12038
  const prop = this._cachedJsonLd["following"];
11547
12039
  const doc = Array.isArray(prop) ? prop[0] : prop;
11548
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
12040
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12041
+ v = await this.#following_fromJsonLd(doc, options);
12042
+ } catch (error) {
12043
+ if (!options.suppressError) throw error;
12044
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12045
+ property: "https://www.w3.org/ns/activitystreams#following",
12046
+ error
12047
+ });
12048
+ return null;
12049
+ }
11549
12050
  }
11550
12051
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
11551
12052
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11672,7 +12173,16 @@ var Application = class Application extends Object$1 {
11672
12173
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
11673
12174
  const prop = this._cachedJsonLd["followers"];
11674
12175
  const doc = Array.isArray(prop) ? prop[0] : prop;
11675
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
12176
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12177
+ v = await this.#followers_fromJsonLd(doc, options);
12178
+ } catch (error) {
12179
+ if (!options.suppressError) throw error;
12180
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12181
+ property: "https://www.w3.org/ns/activitystreams#followers",
12182
+ error
12183
+ });
12184
+ return null;
12185
+ }
11676
12186
  }
11677
12187
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
11678
12188
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11797,7 +12307,16 @@ var Application = class Application extends Object$1 {
11797
12307
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
11798
12308
  const prop = this._cachedJsonLd["liked"];
11799
12309
  const doc = Array.isArray(prop) ? prop[0] : prop;
11800
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
12310
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12311
+ v = await this.#liked_fromJsonLd(doc, options);
12312
+ } catch (error) {
12313
+ if (!options.suppressError) throw error;
12314
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12315
+ property: "https://www.w3.org/ns/activitystreams#liked",
12316
+ error
12317
+ });
12318
+ return null;
12319
+ }
11801
12320
  }
11802
12321
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
11803
12322
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11920,7 +12439,16 @@ var Application = class Application extends Object$1 {
11920
12439
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
11921
12440
  const prop = this._cachedJsonLd["featured"];
11922
12441
  const doc = Array.isArray(prop) ? prop[0] : prop;
11923
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
12442
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12443
+ v = await this.#featured_fromJsonLd(doc, options);
12444
+ } catch (error) {
12445
+ if (!options.suppressError) throw error;
12446
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12447
+ property: "http://joinmastodon.org/ns#featured",
12448
+ error
12449
+ });
12450
+ return null;
12451
+ }
11924
12452
  }
11925
12453
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
11926
12454
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12043,7 +12571,16 @@ var Application = class Application extends Object$1 {
12043
12571
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
12044
12572
  const prop = this._cachedJsonLd["featuredTags"];
12045
12573
  const doc = Array.isArray(prop) ? prop[0] : prop;
12046
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
12574
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12575
+ v = await this.#featuredTags_fromJsonLd(doc, options);
12576
+ } catch (error) {
12577
+ if (!options.suppressError) throw error;
12578
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12579
+ property: "http://joinmastodon.org/ns#featuredTags",
12580
+ error
12581
+ });
12582
+ return null;
12583
+ }
12047
12584
  }
12048
12585
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
12049
12586
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12162,7 +12699,17 @@ var Application = class Application extends Object$1 {
12162
12699
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
12163
12700
  const prop = this._cachedJsonLd["streams"];
12164
12701
  const obj = Array.isArray(prop) ? prop[i] : prop;
12165
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
12702
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
12703
+ v = await this.#stream_fromJsonLd(obj, options);
12704
+ } catch (error) {
12705
+ if (!options.suppressError) throw error;
12706
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
12707
+ property: "https://www.w3.org/ns/activitystreams#streams",
12708
+ index: i,
12709
+ error
12710
+ });
12711
+ continue;
12712
+ }
12166
12713
  }
12167
12714
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
12168
12715
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12371,7 +12918,16 @@ var Application = class Application extends Object$1 {
12371
12918
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
12372
12919
  const prop = this._cachedJsonLd["movedTo"];
12373
12920
  const doc = Array.isArray(prop) ? prop[0] : prop;
12374
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
12921
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12922
+ v = await this.#successor_fromJsonLd(doc, options);
12923
+ } catch (error) {
12924
+ if (!options.suppressError) throw error;
12925
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12926
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
12927
+ error
12928
+ });
12929
+ return null;
12930
+ }
12375
12931
  }
12376
12932
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
12377
12933
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12540,7 +13096,16 @@ var Application = class Application extends Object$1 {
12540
13096
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
12541
13097
  const prop = this._cachedJsonLd["alsoKnownAs"];
12542
13098
  const doc = Array.isArray(prop) ? prop[0] : prop;
12543
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
13099
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13100
+ v = await this.#alias_fromJsonLd(doc, options);
13101
+ } catch (error) {
13102
+ if (!options.suppressError) throw error;
13103
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13104
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
13105
+ error
13106
+ });
13107
+ return null;
13108
+ }
12544
13109
  }
12545
13110
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
12546
13111
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12584,7 +13149,17 @@ var Application = class Application extends Object$1 {
12584
13149
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
12585
13150
  const prop = this._cachedJsonLd["alsoKnownAs"];
12586
13151
  const obj = Array.isArray(prop) ? prop[i] : prop;
12587
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
13152
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
13153
+ v = await this.#alias_fromJsonLd(obj, options);
13154
+ } catch (error) {
13155
+ if (!options.suppressError) throw error;
13156
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
13157
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
13158
+ index: i,
13159
+ error
13160
+ });
13161
+ continue;
13162
+ }
12588
13163
  }
12589
13164
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
12590
13165
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12708,7 +13283,16 @@ var Application = class Application extends Object$1 {
12708
13283
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
12709
13284
  const prop = this._cachedJsonLd["service"];
12710
13285
  const doc = Array.isArray(prop) ? prop[0] : prop;
12711
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
13286
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13287
+ v = await this.#service_fromJsonLd(doc, options);
13288
+ } catch (error) {
13289
+ if (!options.suppressError) throw error;
13290
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13291
+ property: "https://www.w3.org/ns/did#service",
13292
+ error
13293
+ });
13294
+ return null;
13295
+ }
12712
13296
  }
12713
13297
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
12714
13298
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12752,7 +13336,17 @@ var Application = class Application extends Object$1 {
12752
13336
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
12753
13337
  const prop = this._cachedJsonLd["service"];
12754
13338
  const obj = Array.isArray(prop) ? prop[i] : prop;
12755
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
13339
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
13340
+ v = await this.#service_fromJsonLd(obj, options);
13341
+ } catch (error) {
13342
+ if (!options.suppressError) throw error;
13343
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
13344
+ property: "https://www.w3.org/ns/did#service",
13345
+ index: i,
13346
+ error
13347
+ });
13348
+ continue;
13349
+ }
12756
13350
  }
12757
13351
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
12758
13352
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15384,7 +15978,16 @@ var Collection = class Collection extends Object$1 {
15384
15978
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
15385
15979
  const prop = this._cachedJsonLd["current"];
15386
15980
  const doc = Array.isArray(prop) ? prop[0] : prop;
15387
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#current_fromJsonLd(doc, options);
15981
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
15982
+ v = await this.#current_fromJsonLd(doc, options);
15983
+ } catch (error) {
15984
+ if (!options.suppressError) throw error;
15985
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
15986
+ property: "https://www.w3.org/ns/activitystreams#current",
15987
+ error
15988
+ });
15989
+ return null;
15990
+ }
15388
15991
  }
15389
15992
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
15390
15993
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15505,7 +16108,16 @@ var Collection = class Collection extends Object$1 {
15505
16108
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
15506
16109
  const prop = this._cachedJsonLd["first"];
15507
16110
  const doc = Array.isArray(prop) ? prop[0] : prop;
15508
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#first_fromJsonLd(doc, options);
16111
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16112
+ v = await this.#first_fromJsonLd(doc, options);
16113
+ } catch (error) {
16114
+ if (!options.suppressError) throw error;
16115
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16116
+ property: "https://www.w3.org/ns/activitystreams#first",
16117
+ error
16118
+ });
16119
+ return null;
16120
+ }
15509
16121
  }
15510
16122
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
15511
16123
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15626,7 +16238,16 @@ var Collection = class Collection extends Object$1 {
15626
16238
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
15627
16239
  const prop = this._cachedJsonLd["last"];
15628
16240
  const doc = Array.isArray(prop) ? prop[0] : prop;
15629
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#last_fromJsonLd(doc, options);
16241
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16242
+ v = await this.#last_fromJsonLd(doc, options);
16243
+ } catch (error) {
16244
+ if (!options.suppressError) throw error;
16245
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16246
+ property: "https://www.w3.org/ns/activitystreams#last",
16247
+ error
16248
+ });
16249
+ return null;
16250
+ }
15630
16251
  }
15631
16252
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
15632
16253
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15756,7 +16377,17 @@ var Collection = class Collection extends Object$1 {
15756
16377
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
15757
16378
  const prop = this._cachedJsonLd["items"];
15758
16379
  const obj = Array.isArray(prop) ? prop[i] : prop;
15759
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
16380
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
16381
+ v = await this.#item_fromJsonLd(obj, options);
16382
+ } catch (error) {
16383
+ if (!options.suppressError) throw error;
16384
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
16385
+ property: "https://www.w3.org/ns/activitystreams#items",
16386
+ index: i,
16387
+ error
16388
+ });
16389
+ continue;
16390
+ }
15760
16391
  }
15761
16392
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
15762
16393
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15877,7 +16508,16 @@ var Collection = class Collection extends Object$1 {
15877
16508
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
15878
16509
  const prop = this._cachedJsonLd["likesOf"];
15879
16510
  const doc = Array.isArray(prop) ? prop[0] : prop;
15880
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likesOf_fromJsonLd(doc, options);
16511
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16512
+ v = await this.#likesOf_fromJsonLd(doc, options);
16513
+ } catch (error) {
16514
+ if (!options.suppressError) throw error;
16515
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16516
+ property: "https://w3id.org/fep/5711#likesOf",
16517
+ error
16518
+ });
16519
+ return null;
16520
+ }
15881
16521
  }
15882
16522
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
15883
16523
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -15997,7 +16637,16 @@ var Collection = class Collection extends Object$1 {
15997
16637
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
15998
16638
  const prop = this._cachedJsonLd["sharesOf"];
15999
16639
  const doc = Array.isArray(prop) ? prop[0] : prop;
16000
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#sharesOf_fromJsonLd(doc, options);
16640
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16641
+ v = await this.#sharesOf_fromJsonLd(doc, options);
16642
+ } catch (error) {
16643
+ if (!options.suppressError) throw error;
16644
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16645
+ property: "https://w3id.org/fep/5711#sharesOf",
16646
+ error
16647
+ });
16648
+ return null;
16649
+ }
16001
16650
  }
16002
16651
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
16003
16652
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16117,7 +16766,16 @@ var Collection = class Collection extends Object$1 {
16117
16766
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
16118
16767
  const prop = this._cachedJsonLd["repliesOf"];
16119
16768
  const doc = Array.isArray(prop) ? prop[0] : prop;
16120
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#repliesOf_fromJsonLd(doc, options);
16769
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16770
+ v = await this.#repliesOf_fromJsonLd(doc, options);
16771
+ } catch (error) {
16772
+ if (!options.suppressError) throw error;
16773
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16774
+ property: "https://w3id.org/fep/5711#repliesOf",
16775
+ error
16776
+ });
16777
+ return null;
16778
+ }
16121
16779
  }
16122
16780
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
16123
16781
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16237,7 +16895,16 @@ var Collection = class Collection extends Object$1 {
16237
16895
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
16238
16896
  const prop = this._cachedJsonLd["inboxOf"];
16239
16897
  const doc = Array.isArray(prop) ? prop[0] : prop;
16240
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inboxOf_fromJsonLd(doc, options);
16898
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
16899
+ v = await this.#inboxOf_fromJsonLd(doc, options);
16900
+ } catch (error) {
16901
+ if (!options.suppressError) throw error;
16902
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
16903
+ property: "https://w3id.org/fep/5711#inboxOf",
16904
+ error
16905
+ });
16906
+ return null;
16907
+ }
16241
16908
  }
16242
16909
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
16243
16910
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16357,7 +17024,16 @@ var Collection = class Collection extends Object$1 {
16357
17024
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
16358
17025
  const prop = this._cachedJsonLd["outboxOf"];
16359
17026
  const doc = Array.isArray(prop) ? prop[0] : prop;
16360
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outboxOf_fromJsonLd(doc, options);
17027
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17028
+ v = await this.#outboxOf_fromJsonLd(doc, options);
17029
+ } catch (error) {
17030
+ if (!options.suppressError) throw error;
17031
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17032
+ property: "https://w3id.org/fep/5711#outboxOf",
17033
+ error
17034
+ });
17035
+ return null;
17036
+ }
16361
17037
  }
16362
17038
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
16363
17039
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16477,7 +17153,16 @@ var Collection = class Collection extends Object$1 {
16477
17153
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
16478
17154
  const prop = this._cachedJsonLd["followersOf"];
16479
17155
  const doc = Array.isArray(prop) ? prop[0] : prop;
16480
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followersOf_fromJsonLd(doc, options);
17156
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17157
+ v = await this.#followersOf_fromJsonLd(doc, options);
17158
+ } catch (error) {
17159
+ if (!options.suppressError) throw error;
17160
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17161
+ property: "https://w3id.org/fep/5711#followersOf",
17162
+ error
17163
+ });
17164
+ return null;
17165
+ }
16481
17166
  }
16482
17167
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
16483
17168
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16597,7 +17282,16 @@ var Collection = class Collection extends Object$1 {
16597
17282
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
16598
17283
  const prop = this._cachedJsonLd["followingOf"];
16599
17284
  const doc = Array.isArray(prop) ? prop[0] : prop;
16600
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followingOf_fromJsonLd(doc, options);
17285
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17286
+ v = await this.#followingOf_fromJsonLd(doc, options);
17287
+ } catch (error) {
17288
+ if (!options.suppressError) throw error;
17289
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17290
+ property: "https://w3id.org/fep/5711#followingOf",
17291
+ error
17292
+ });
17293
+ return null;
17294
+ }
16601
17295
  }
16602
17296
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
16603
17297
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16717,7 +17411,16 @@ var Collection = class Collection extends Object$1 {
16717
17411
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
16718
17412
  const prop = this._cachedJsonLd["likedOf"];
16719
17413
  const doc = Array.isArray(prop) ? prop[0] : prop;
16720
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likedOf_fromJsonLd(doc, options);
17414
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17415
+ v = await this.#likedOf_fromJsonLd(doc, options);
17416
+ } catch (error) {
17417
+ if (!options.suppressError) throw error;
17418
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17419
+ property: "https://w3id.org/fep/5711#likedOf",
17420
+ error
17421
+ });
17422
+ return null;
17423
+ }
16721
17424
  }
16722
17425
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
16723
17426
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17622,7 +18325,16 @@ var CollectionPage = class CollectionPage extends Collection {
17622
18325
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
17623
18326
  const prop = this._cachedJsonLd["partOf"];
17624
18327
  const doc = Array.isArray(prop) ? prop[0] : prop;
17625
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#partOf_fromJsonLd(doc, options);
18328
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18329
+ v = await this.#partOf_fromJsonLd(doc, options);
18330
+ } catch (error) {
18331
+ if (!options.suppressError) throw error;
18332
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18333
+ property: "https://www.w3.org/ns/activitystreams#partOf",
18334
+ error
18335
+ });
18336
+ return null;
18337
+ }
17626
18338
  }
17627
18339
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
17628
18340
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17742,7 +18454,16 @@ var CollectionPage = class CollectionPage extends Collection {
17742
18454
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
17743
18455
  const prop = this._cachedJsonLd["next"];
17744
18456
  const doc = Array.isArray(prop) ? prop[0] : prop;
17745
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#next_fromJsonLd(doc, options);
18457
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18458
+ v = await this.#next_fromJsonLd(doc, options);
18459
+ } catch (error) {
18460
+ if (!options.suppressError) throw error;
18461
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18462
+ property: "https://www.w3.org/ns/activitystreams#next",
18463
+ error
18464
+ });
18465
+ return null;
18466
+ }
17746
18467
  }
17747
18468
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
17748
18469
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17862,7 +18583,16 @@ var CollectionPage = class CollectionPage extends Collection {
17862
18583
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
17863
18584
  const prop = this._cachedJsonLd["prev"];
17864
18585
  const doc = Array.isArray(prop) ? prop[0] : prop;
17865
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#prev_fromJsonLd(doc, options);
18586
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18587
+ v = await this.#prev_fromJsonLd(doc, options);
18588
+ } catch (error) {
18589
+ if (!options.suppressError) throw error;
18590
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18591
+ property: "https://www.w3.org/ns/activitystreams#prev",
18592
+ error
18593
+ });
18594
+ return null;
18595
+ }
17866
18596
  }
17867
18597
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
17868
18598
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -19983,7 +20713,16 @@ var Group = class Group extends Object$1 {
19983
20713
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
19984
20714
  const prop = this._cachedJsonLd["publicKey"];
19985
20715
  const doc = Array.isArray(prop) ? prop[0] : prop;
19986
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
20716
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
20717
+ v = await this.#publicKey_fromJsonLd(doc, options);
20718
+ } catch (error) {
20719
+ if (!options.suppressError) throw error;
20720
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
20721
+ property: "https://w3id.org/security#publicKey",
20722
+ error
20723
+ });
20724
+ return null;
20725
+ }
19987
20726
  }
19988
20727
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
19989
20728
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20024,7 +20763,17 @@ var Group = class Group extends Object$1 {
20024
20763
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
20025
20764
  const prop = this._cachedJsonLd["publicKey"];
20026
20765
  const obj = Array.isArray(prop) ? prop[i] : prop;
20027
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
20766
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
20767
+ v = await this.#publicKey_fromJsonLd(obj, options);
20768
+ } catch (error) {
20769
+ if (!options.suppressError) throw error;
20770
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
20771
+ property: "https://w3id.org/security#publicKey",
20772
+ index: i,
20773
+ error
20774
+ });
20775
+ continue;
20776
+ }
20028
20777
  }
20029
20778
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
20030
20779
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20148,7 +20897,16 @@ var Group = class Group extends Object$1 {
20148
20897
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
20149
20898
  const prop = this._cachedJsonLd["assertionMethod"];
20150
20899
  const doc = Array.isArray(prop) ? prop[0] : prop;
20151
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
20900
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
20901
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
20902
+ } catch (error) {
20903
+ if (!options.suppressError) throw error;
20904
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
20905
+ property: "https://w3id.org/security#assertionMethod",
20906
+ error
20907
+ });
20908
+ return null;
20909
+ }
20152
20910
  }
20153
20911
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
20154
20912
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20192,7 +20950,17 @@ var Group = class Group extends Object$1 {
20192
20950
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
20193
20951
  const prop = this._cachedJsonLd["assertionMethod"];
20194
20952
  const obj = Array.isArray(prop) ? prop[i] : prop;
20195
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
20953
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
20954
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
20955
+ } catch (error) {
20956
+ if (!options.suppressError) throw error;
20957
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
20958
+ property: "https://w3id.org/security#assertionMethod",
20959
+ index: i,
20960
+ error
20961
+ });
20962
+ continue;
20963
+ }
20196
20964
  }
20197
20965
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
20198
20966
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20347,7 +21115,16 @@ var Group = class Group extends Object$1 {
20347
21115
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
20348
21116
  const prop = this._cachedJsonLd["inbox"];
20349
21117
  const doc = Array.isArray(prop) ? prop[0] : prop;
20350
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
21118
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21119
+ v = await this.#inbox_fromJsonLd(doc, options);
21120
+ } catch (error) {
21121
+ if (!options.suppressError) throw error;
21122
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21123
+ property: "http://www.w3.org/ns/ldp#inbox",
21124
+ error
21125
+ });
21126
+ return null;
21127
+ }
20351
21128
  }
20352
21129
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
20353
21130
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20486,7 +21263,16 @@ var Group = class Group extends Object$1 {
20486
21263
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
20487
21264
  const prop = this._cachedJsonLd["outbox"];
20488
21265
  const doc = Array.isArray(prop) ? prop[0] : prop;
20489
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
21266
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21267
+ v = await this.#outbox_fromJsonLd(doc, options);
21268
+ } catch (error) {
21269
+ if (!options.suppressError) throw error;
21270
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21271
+ property: "https://www.w3.org/ns/activitystreams#outbox",
21272
+ error
21273
+ });
21274
+ return null;
21275
+ }
20490
21276
  }
20491
21277
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
20492
21278
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20610,7 +21396,16 @@ var Group = class Group extends Object$1 {
20610
21396
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
20611
21397
  const prop = this._cachedJsonLd["following"];
20612
21398
  const doc = Array.isArray(prop) ? prop[0] : prop;
20613
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
21399
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21400
+ v = await this.#following_fromJsonLd(doc, options);
21401
+ } catch (error) {
21402
+ if (!options.suppressError) throw error;
21403
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21404
+ property: "https://www.w3.org/ns/activitystreams#following",
21405
+ error
21406
+ });
21407
+ return null;
21408
+ }
20614
21409
  }
20615
21410
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
20616
21411
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20737,7 +21532,16 @@ var Group = class Group extends Object$1 {
20737
21532
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
20738
21533
  const prop = this._cachedJsonLd["followers"];
20739
21534
  const doc = Array.isArray(prop) ? prop[0] : prop;
20740
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
21535
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21536
+ v = await this.#followers_fromJsonLd(doc, options);
21537
+ } catch (error) {
21538
+ if (!options.suppressError) throw error;
21539
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21540
+ property: "https://www.w3.org/ns/activitystreams#followers",
21541
+ error
21542
+ });
21543
+ return null;
21544
+ }
20741
21545
  }
20742
21546
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
20743
21547
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20862,7 +21666,16 @@ var Group = class Group extends Object$1 {
20862
21666
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
20863
21667
  const prop = this._cachedJsonLd["liked"];
20864
21668
  const doc = Array.isArray(prop) ? prop[0] : prop;
20865
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
21669
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21670
+ v = await this.#liked_fromJsonLd(doc, options);
21671
+ } catch (error) {
21672
+ if (!options.suppressError) throw error;
21673
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21674
+ property: "https://www.w3.org/ns/activitystreams#liked",
21675
+ error
21676
+ });
21677
+ return null;
21678
+ }
20866
21679
  }
20867
21680
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
20868
21681
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20985,7 +21798,16 @@ var Group = class Group extends Object$1 {
20985
21798
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
20986
21799
  const prop = this._cachedJsonLd["featured"];
20987
21800
  const doc = Array.isArray(prop) ? prop[0] : prop;
20988
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
21801
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21802
+ v = await this.#featured_fromJsonLd(doc, options);
21803
+ } catch (error) {
21804
+ if (!options.suppressError) throw error;
21805
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21806
+ property: "http://joinmastodon.org/ns#featured",
21807
+ error
21808
+ });
21809
+ return null;
21810
+ }
20989
21811
  }
20990
21812
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
20991
21813
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21108,7 +21930,16 @@ var Group = class Group extends Object$1 {
21108
21930
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
21109
21931
  const prop = this._cachedJsonLd["featuredTags"];
21110
21932
  const doc = Array.isArray(prop) ? prop[0] : prop;
21111
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
21933
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21934
+ v = await this.#featuredTags_fromJsonLd(doc, options);
21935
+ } catch (error) {
21936
+ if (!options.suppressError) throw error;
21937
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21938
+ property: "http://joinmastodon.org/ns#featuredTags",
21939
+ error
21940
+ });
21941
+ return null;
21942
+ }
21112
21943
  }
21113
21944
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
21114
21945
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21227,7 +22058,17 @@ var Group = class Group extends Object$1 {
21227
22058
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
21228
22059
  const prop = this._cachedJsonLd["streams"];
21229
22060
  const obj = Array.isArray(prop) ? prop[i] : prop;
21230
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
22061
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22062
+ v = await this.#stream_fromJsonLd(obj, options);
22063
+ } catch (error) {
22064
+ if (!options.suppressError) throw error;
22065
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22066
+ property: "https://www.w3.org/ns/activitystreams#streams",
22067
+ index: i,
22068
+ error
22069
+ });
22070
+ continue;
22071
+ }
21231
22072
  }
21232
22073
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
21233
22074
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21436,7 +22277,16 @@ var Group = class Group extends Object$1 {
21436
22277
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
21437
22278
  const prop = this._cachedJsonLd["movedTo"];
21438
22279
  const doc = Array.isArray(prop) ? prop[0] : prop;
21439
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
22280
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22281
+ v = await this.#successor_fromJsonLd(doc, options);
22282
+ } catch (error) {
22283
+ if (!options.suppressError) throw error;
22284
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22285
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
22286
+ error
22287
+ });
22288
+ return null;
22289
+ }
21440
22290
  }
21441
22291
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
21442
22292
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21605,7 +22455,16 @@ var Group = class Group extends Object$1 {
21605
22455
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
21606
22456
  const prop = this._cachedJsonLd["alsoKnownAs"];
21607
22457
  const doc = Array.isArray(prop) ? prop[0] : prop;
21608
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
22458
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22459
+ v = await this.#alias_fromJsonLd(doc, options);
22460
+ } catch (error) {
22461
+ if (!options.suppressError) throw error;
22462
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22463
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
22464
+ error
22465
+ });
22466
+ return null;
22467
+ }
21609
22468
  }
21610
22469
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
21611
22470
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21649,7 +22508,17 @@ var Group = class Group extends Object$1 {
21649
22508
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
21650
22509
  const prop = this._cachedJsonLd["alsoKnownAs"];
21651
22510
  const obj = Array.isArray(prop) ? prop[i] : prop;
21652
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
22511
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22512
+ v = await this.#alias_fromJsonLd(obj, options);
22513
+ } catch (error) {
22514
+ if (!options.suppressError) throw error;
22515
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22516
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
22517
+ index: i,
22518
+ error
22519
+ });
22520
+ continue;
22521
+ }
21653
22522
  }
21654
22523
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
21655
22524
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21773,7 +22642,16 @@ var Group = class Group extends Object$1 {
21773
22642
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
21774
22643
  const prop = this._cachedJsonLd["service"];
21775
22644
  const doc = Array.isArray(prop) ? prop[0] : prop;
21776
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
22645
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22646
+ v = await this.#service_fromJsonLd(doc, options);
22647
+ } catch (error) {
22648
+ if (!options.suppressError) throw error;
22649
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22650
+ property: "https://www.w3.org/ns/did#service",
22651
+ error
22652
+ });
22653
+ return null;
22654
+ }
21777
22655
  }
21778
22656
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
21779
22657
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21817,7 +22695,17 @@ var Group = class Group extends Object$1 {
21817
22695
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
21818
22696
  const prop = this._cachedJsonLd["service"];
21819
22697
  const obj = Array.isArray(prop) ? prop[i] : prop;
21820
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
22698
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22699
+ v = await this.#service_fromJsonLd(obj, options);
22700
+ } catch (error) {
22701
+ if (!options.suppressError) throw error;
22702
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22703
+ property: "https://www.w3.org/ns/did#service",
22704
+ index: i,
22705
+ error
22706
+ });
22707
+ continue;
22708
+ }
21821
22709
  }
21822
22710
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
21823
22711
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -23222,7 +24110,17 @@ var Link = class Link {
23222
24110
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
23223
24111
  const prop = this._cachedJsonLd["preview"];
23224
24112
  const obj = Array.isArray(prop) ? prop[i] : prop;
23225
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
24113
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
24114
+ v = await this.#preview_fromJsonLd(obj, options);
24115
+ } catch (error) {
24116
+ if (!options.suppressError) throw error;
24117
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
24118
+ property: "https://www.w3.org/ns/activitystreams#preview",
24119
+ index: i,
24120
+ error
24121
+ });
24122
+ continue;
24123
+ }
23226
24124
  }
23227
24125
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
23228
24126
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -25604,7 +26502,17 @@ var OrderedCollection = class OrderedCollection extends Collection {
25604
26502
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
25605
26503
  const prop = this._cachedJsonLd["orderedItems"];
25606
26504
  const obj = Array.isArray(prop) ? prop[i] : prop;
25607
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
26505
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
26506
+ v = await this.#item_fromJsonLd(obj, options);
26507
+ } catch (error) {
26508
+ if (!options.suppressError) throw error;
26509
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
26510
+ property: "https://www.w3.org/ns/activitystreams#items",
26511
+ index: i,
26512
+ error
26513
+ });
26514
+ continue;
26515
+ }
25608
26516
  }
25609
26517
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
25610
26518
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26064,7 +26972,17 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
26064
26972
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
26065
26973
  const prop = this._cachedJsonLd["orderedItems"];
26066
26974
  const obj = Array.isArray(prop) ? prop[i] : prop;
26067
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
26975
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
26976
+ v = await this.#item_fromJsonLd(obj, options);
26977
+ } catch (error) {
26978
+ if (!options.suppressError) throw error;
26979
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
26980
+ property: "https://www.w3.org/ns/activitystreams#items",
26981
+ index: i,
26982
+ error
26983
+ });
26984
+ continue;
26985
+ }
26068
26986
  }
26069
26987
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
26070
26988
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26825,7 +27743,16 @@ var Organization = class Organization extends Object$1 {
26825
27743
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26826
27744
  const prop = this._cachedJsonLd["publicKey"];
26827
27745
  const doc = Array.isArray(prop) ? prop[0] : prop;
26828
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
27746
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27747
+ v = await this.#publicKey_fromJsonLd(doc, options);
27748
+ } catch (error) {
27749
+ if (!options.suppressError) throw error;
27750
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27751
+ property: "https://w3id.org/security#publicKey",
27752
+ error
27753
+ });
27754
+ return null;
27755
+ }
26829
27756
  }
26830
27757
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26831
27758
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26866,7 +27793,17 @@ var Organization = class Organization extends Object$1 {
26866
27793
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26867
27794
  const prop = this._cachedJsonLd["publicKey"];
26868
27795
  const obj = Array.isArray(prop) ? prop[i] : prop;
26869
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
27796
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27797
+ v = await this.#publicKey_fromJsonLd(obj, options);
27798
+ } catch (error) {
27799
+ if (!options.suppressError) throw error;
27800
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27801
+ property: "https://w3id.org/security#publicKey",
27802
+ index: i,
27803
+ error
27804
+ });
27805
+ continue;
27806
+ }
26870
27807
  }
26871
27808
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26872
27809
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26990,7 +27927,16 @@ var Organization = class Organization extends Object$1 {
26990
27927
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
26991
27928
  const prop = this._cachedJsonLd["assertionMethod"];
26992
27929
  const doc = Array.isArray(prop) ? prop[0] : prop;
26993
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
27930
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27931
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
27932
+ } catch (error) {
27933
+ if (!options.suppressError) throw error;
27934
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27935
+ property: "https://w3id.org/security#assertionMethod",
27936
+ error
27937
+ });
27938
+ return null;
27939
+ }
26994
27940
  }
26995
27941
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
26996
27942
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27034,7 +27980,17 @@ var Organization = class Organization extends Object$1 {
27034
27980
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
27035
27981
  const prop = this._cachedJsonLd["assertionMethod"];
27036
27982
  const obj = Array.isArray(prop) ? prop[i] : prop;
27037
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
27983
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27984
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
27985
+ } catch (error) {
27986
+ if (!options.suppressError) throw error;
27987
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27988
+ property: "https://w3id.org/security#assertionMethod",
27989
+ index: i,
27990
+ error
27991
+ });
27992
+ continue;
27993
+ }
27038
27994
  }
27039
27995
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
27040
27996
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27189,7 +28145,16 @@ var Organization = class Organization extends Object$1 {
27189
28145
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
27190
28146
  const prop = this._cachedJsonLd["inbox"];
27191
28147
  const doc = Array.isArray(prop) ? prop[0] : prop;
27192
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
28148
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28149
+ v = await this.#inbox_fromJsonLd(doc, options);
28150
+ } catch (error) {
28151
+ if (!options.suppressError) throw error;
28152
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28153
+ property: "http://www.w3.org/ns/ldp#inbox",
28154
+ error
28155
+ });
28156
+ return null;
28157
+ }
27193
28158
  }
27194
28159
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
27195
28160
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27328,7 +28293,16 @@ var Organization = class Organization extends Object$1 {
27328
28293
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
27329
28294
  const prop = this._cachedJsonLd["outbox"];
27330
28295
  const doc = Array.isArray(prop) ? prop[0] : prop;
27331
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
28296
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28297
+ v = await this.#outbox_fromJsonLd(doc, options);
28298
+ } catch (error) {
28299
+ if (!options.suppressError) throw error;
28300
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28301
+ property: "https://www.w3.org/ns/activitystreams#outbox",
28302
+ error
28303
+ });
28304
+ return null;
28305
+ }
27332
28306
  }
27333
28307
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
27334
28308
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27452,7 +28426,16 @@ var Organization = class Organization extends Object$1 {
27452
28426
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
27453
28427
  const prop = this._cachedJsonLd["following"];
27454
28428
  const doc = Array.isArray(prop) ? prop[0] : prop;
27455
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
28429
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28430
+ v = await this.#following_fromJsonLd(doc, options);
28431
+ } catch (error) {
28432
+ if (!options.suppressError) throw error;
28433
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28434
+ property: "https://www.w3.org/ns/activitystreams#following",
28435
+ error
28436
+ });
28437
+ return null;
28438
+ }
27456
28439
  }
27457
28440
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
27458
28441
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27579,7 +28562,16 @@ var Organization = class Organization extends Object$1 {
27579
28562
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
27580
28563
  const prop = this._cachedJsonLd["followers"];
27581
28564
  const doc = Array.isArray(prop) ? prop[0] : prop;
27582
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
28565
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28566
+ v = await this.#followers_fromJsonLd(doc, options);
28567
+ } catch (error) {
28568
+ if (!options.suppressError) throw error;
28569
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28570
+ property: "https://www.w3.org/ns/activitystreams#followers",
28571
+ error
28572
+ });
28573
+ return null;
28574
+ }
27583
28575
  }
27584
28576
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
27585
28577
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27704,7 +28696,16 @@ var Organization = class Organization extends Object$1 {
27704
28696
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
27705
28697
  const prop = this._cachedJsonLd["liked"];
27706
28698
  const doc = Array.isArray(prop) ? prop[0] : prop;
27707
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
28699
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28700
+ v = await this.#liked_fromJsonLd(doc, options);
28701
+ } catch (error) {
28702
+ if (!options.suppressError) throw error;
28703
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28704
+ property: "https://www.w3.org/ns/activitystreams#liked",
28705
+ error
28706
+ });
28707
+ return null;
28708
+ }
27708
28709
  }
27709
28710
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
27710
28711
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27827,7 +28828,16 @@ var Organization = class Organization extends Object$1 {
27827
28828
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
27828
28829
  const prop = this._cachedJsonLd["featured"];
27829
28830
  const doc = Array.isArray(prop) ? prop[0] : prop;
27830
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
28831
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28832
+ v = await this.#featured_fromJsonLd(doc, options);
28833
+ } catch (error) {
28834
+ if (!options.suppressError) throw error;
28835
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28836
+ property: "http://joinmastodon.org/ns#featured",
28837
+ error
28838
+ });
28839
+ return null;
28840
+ }
27831
28841
  }
27832
28842
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
27833
28843
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27950,7 +28960,16 @@ var Organization = class Organization extends Object$1 {
27950
28960
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
27951
28961
  const prop = this._cachedJsonLd["featuredTags"];
27952
28962
  const doc = Array.isArray(prop) ? prop[0] : prop;
27953
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
28963
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28964
+ v = await this.#featuredTags_fromJsonLd(doc, options);
28965
+ } catch (error) {
28966
+ if (!options.suppressError) throw error;
28967
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28968
+ property: "http://joinmastodon.org/ns#featuredTags",
28969
+ error
28970
+ });
28971
+ return null;
28972
+ }
27954
28973
  }
27955
28974
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
27956
28975
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28069,7 +29088,17 @@ var Organization = class Organization extends Object$1 {
28069
29088
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
28070
29089
  const prop = this._cachedJsonLd["streams"];
28071
29090
  const obj = Array.isArray(prop) ? prop[i] : prop;
28072
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
29091
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29092
+ v = await this.#stream_fromJsonLd(obj, options);
29093
+ } catch (error) {
29094
+ if (!options.suppressError) throw error;
29095
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29096
+ property: "https://www.w3.org/ns/activitystreams#streams",
29097
+ index: i,
29098
+ error
29099
+ });
29100
+ continue;
29101
+ }
28073
29102
  }
28074
29103
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
28075
29104
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28278,7 +29307,16 @@ var Organization = class Organization extends Object$1 {
28278
29307
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
28279
29308
  const prop = this._cachedJsonLd["movedTo"];
28280
29309
  const doc = Array.isArray(prop) ? prop[0] : prop;
28281
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
29310
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29311
+ v = await this.#successor_fromJsonLd(doc, options);
29312
+ } catch (error) {
29313
+ if (!options.suppressError) throw error;
29314
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29315
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
29316
+ error
29317
+ });
29318
+ return null;
29319
+ }
28282
29320
  }
28283
29321
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
28284
29322
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28447,7 +29485,16 @@ var Organization = class Organization extends Object$1 {
28447
29485
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28448
29486
  const prop = this._cachedJsonLd["alsoKnownAs"];
28449
29487
  const doc = Array.isArray(prop) ? prop[0] : prop;
28450
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
29488
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29489
+ v = await this.#alias_fromJsonLd(doc, options);
29490
+ } catch (error) {
29491
+ if (!options.suppressError) throw error;
29492
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29493
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29494
+ error
29495
+ });
29496
+ return null;
29497
+ }
28451
29498
  }
28452
29499
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28453
29500
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28491,7 +29538,17 @@ var Organization = class Organization extends Object$1 {
28491
29538
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28492
29539
  const prop = this._cachedJsonLd["alsoKnownAs"];
28493
29540
  const obj = Array.isArray(prop) ? prop[i] : prop;
28494
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
29541
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29542
+ v = await this.#alias_fromJsonLd(obj, options);
29543
+ } catch (error) {
29544
+ if (!options.suppressError) throw error;
29545
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29546
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29547
+ index: i,
29548
+ error
29549
+ });
29550
+ continue;
29551
+ }
28495
29552
  }
28496
29553
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28497
29554
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28615,7 +29672,16 @@ var Organization = class Organization extends Object$1 {
28615
29672
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28616
29673
  const prop = this._cachedJsonLd["service"];
28617
29674
  const doc = Array.isArray(prop) ? prop[0] : prop;
28618
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
29675
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29676
+ v = await this.#service_fromJsonLd(doc, options);
29677
+ } catch (error) {
29678
+ if (!options.suppressError) throw error;
29679
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29680
+ property: "https://www.w3.org/ns/did#service",
29681
+ error
29682
+ });
29683
+ return null;
29684
+ }
28619
29685
  }
28620
29686
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28621
29687
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28659,7 +29725,17 @@ var Organization = class Organization extends Object$1 {
28659
29725
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28660
29726
  const prop = this._cachedJsonLd["service"];
28661
29727
  const obj = Array.isArray(prop) ? prop[i] : prop;
28662
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
29728
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29729
+ v = await this.#service_fromJsonLd(obj, options);
29730
+ } catch (error) {
29731
+ if (!options.suppressError) throw error;
29732
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29733
+ property: "https://www.w3.org/ns/did#service",
29734
+ index: i,
29735
+ error
29736
+ });
29737
+ continue;
29738
+ }
28663
29739
  }
28664
29740
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28665
29741
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30306,7 +31382,16 @@ var Person = class Person extends Object$1 {
30306
31382
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
30307
31383
  const prop = this._cachedJsonLd["publicKey"];
30308
31384
  const doc = Array.isArray(prop) ? prop[0] : prop;
30309
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
31385
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
31386
+ v = await this.#publicKey_fromJsonLd(doc, options);
31387
+ } catch (error) {
31388
+ if (!options.suppressError) throw error;
31389
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
31390
+ property: "https://w3id.org/security#publicKey",
31391
+ error
31392
+ });
31393
+ return null;
31394
+ }
30310
31395
  }
30311
31396
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
30312
31397
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30347,7 +31432,17 @@ var Person = class Person extends Object$1 {
30347
31432
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
30348
31433
  const prop = this._cachedJsonLd["publicKey"];
30349
31434
  const obj = Array.isArray(prop) ? prop[i] : prop;
30350
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
31435
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
31436
+ v = await this.#publicKey_fromJsonLd(obj, options);
31437
+ } catch (error) {
31438
+ if (!options.suppressError) throw error;
31439
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
31440
+ property: "https://w3id.org/security#publicKey",
31441
+ index: i,
31442
+ error
31443
+ });
31444
+ continue;
31445
+ }
30351
31446
  }
30352
31447
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
30353
31448
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30471,7 +31566,16 @@ var Person = class Person extends Object$1 {
30471
31566
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
30472
31567
  const prop = this._cachedJsonLd["assertionMethod"];
30473
31568
  const doc = Array.isArray(prop) ? prop[0] : prop;
30474
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
31569
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
31570
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
31571
+ } catch (error) {
31572
+ if (!options.suppressError) throw error;
31573
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
31574
+ property: "https://w3id.org/security#assertionMethod",
31575
+ error
31576
+ });
31577
+ return null;
31578
+ }
30475
31579
  }
30476
31580
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
30477
31581
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30515,7 +31619,17 @@ var Person = class Person extends Object$1 {
30515
31619
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
30516
31620
  const prop = this._cachedJsonLd["assertionMethod"];
30517
31621
  const obj = Array.isArray(prop) ? prop[i] : prop;
30518
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
31622
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
31623
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
31624
+ } catch (error) {
31625
+ if (!options.suppressError) throw error;
31626
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
31627
+ property: "https://w3id.org/security#assertionMethod",
31628
+ index: i,
31629
+ error
31630
+ });
31631
+ continue;
31632
+ }
30519
31633
  }
30520
31634
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
30521
31635
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30670,7 +31784,16 @@ var Person = class Person extends Object$1 {
30670
31784
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
30671
31785
  const prop = this._cachedJsonLd["inbox"];
30672
31786
  const doc = Array.isArray(prop) ? prop[0] : prop;
30673
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
31787
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
31788
+ v = await this.#inbox_fromJsonLd(doc, options);
31789
+ } catch (error) {
31790
+ if (!options.suppressError) throw error;
31791
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
31792
+ property: "http://www.w3.org/ns/ldp#inbox",
31793
+ error
31794
+ });
31795
+ return null;
31796
+ }
30674
31797
  }
30675
31798
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
30676
31799
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30809,7 +31932,16 @@ var Person = class Person extends Object$1 {
30809
31932
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
30810
31933
  const prop = this._cachedJsonLd["outbox"];
30811
31934
  const doc = Array.isArray(prop) ? prop[0] : prop;
30812
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
31935
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
31936
+ v = await this.#outbox_fromJsonLd(doc, options);
31937
+ } catch (error) {
31938
+ if (!options.suppressError) throw error;
31939
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
31940
+ property: "https://www.w3.org/ns/activitystreams#outbox",
31941
+ error
31942
+ });
31943
+ return null;
31944
+ }
30813
31945
  }
30814
31946
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
30815
31947
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -30933,7 +32065,16 @@ var Person = class Person extends Object$1 {
30933
32065
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
30934
32066
  const prop = this._cachedJsonLd["following"];
30935
32067
  const doc = Array.isArray(prop) ? prop[0] : prop;
30936
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
32068
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32069
+ v = await this.#following_fromJsonLd(doc, options);
32070
+ } catch (error) {
32071
+ if (!options.suppressError) throw error;
32072
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32073
+ property: "https://www.w3.org/ns/activitystreams#following",
32074
+ error
32075
+ });
32076
+ return null;
32077
+ }
30937
32078
  }
30938
32079
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
30939
32080
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31060,7 +32201,16 @@ var Person = class Person extends Object$1 {
31060
32201
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
31061
32202
  const prop = this._cachedJsonLd["followers"];
31062
32203
  const doc = Array.isArray(prop) ? prop[0] : prop;
31063
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
32204
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32205
+ v = await this.#followers_fromJsonLd(doc, options);
32206
+ } catch (error) {
32207
+ if (!options.suppressError) throw error;
32208
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32209
+ property: "https://www.w3.org/ns/activitystreams#followers",
32210
+ error
32211
+ });
32212
+ return null;
32213
+ }
31064
32214
  }
31065
32215
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
31066
32216
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31185,7 +32335,16 @@ var Person = class Person extends Object$1 {
31185
32335
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
31186
32336
  const prop = this._cachedJsonLd["liked"];
31187
32337
  const doc = Array.isArray(prop) ? prop[0] : prop;
31188
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
32338
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32339
+ v = await this.#liked_fromJsonLd(doc, options);
32340
+ } catch (error) {
32341
+ if (!options.suppressError) throw error;
32342
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32343
+ property: "https://www.w3.org/ns/activitystreams#liked",
32344
+ error
32345
+ });
32346
+ return null;
32347
+ }
31189
32348
  }
31190
32349
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
31191
32350
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31308,7 +32467,16 @@ var Person = class Person extends Object$1 {
31308
32467
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
31309
32468
  const prop = this._cachedJsonLd["featured"];
31310
32469
  const doc = Array.isArray(prop) ? prop[0] : prop;
31311
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
32470
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32471
+ v = await this.#featured_fromJsonLd(doc, options);
32472
+ } catch (error) {
32473
+ if (!options.suppressError) throw error;
32474
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32475
+ property: "http://joinmastodon.org/ns#featured",
32476
+ error
32477
+ });
32478
+ return null;
32479
+ }
31312
32480
  }
31313
32481
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
31314
32482
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31431,7 +32599,16 @@ var Person = class Person extends Object$1 {
31431
32599
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
31432
32600
  const prop = this._cachedJsonLd["featuredTags"];
31433
32601
  const doc = Array.isArray(prop) ? prop[0] : prop;
31434
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
32602
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32603
+ v = await this.#featuredTags_fromJsonLd(doc, options);
32604
+ } catch (error) {
32605
+ if (!options.suppressError) throw error;
32606
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32607
+ property: "http://joinmastodon.org/ns#featuredTags",
32608
+ error
32609
+ });
32610
+ return null;
32611
+ }
31435
32612
  }
31436
32613
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
31437
32614
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31550,7 +32727,17 @@ var Person = class Person extends Object$1 {
31550
32727
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
31551
32728
  const prop = this._cachedJsonLd["streams"];
31552
32729
  const obj = Array.isArray(prop) ? prop[i] : prop;
31553
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
32730
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
32731
+ v = await this.#stream_fromJsonLd(obj, options);
32732
+ } catch (error) {
32733
+ if (!options.suppressError) throw error;
32734
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
32735
+ property: "https://www.w3.org/ns/activitystreams#streams",
32736
+ index: i,
32737
+ error
32738
+ });
32739
+ continue;
32740
+ }
31554
32741
  }
31555
32742
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
31556
32743
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31759,7 +32946,16 @@ var Person = class Person extends Object$1 {
31759
32946
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
31760
32947
  const prop = this._cachedJsonLd["movedTo"];
31761
32948
  const doc = Array.isArray(prop) ? prop[0] : prop;
31762
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
32949
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32950
+ v = await this.#successor_fromJsonLd(doc, options);
32951
+ } catch (error) {
32952
+ if (!options.suppressError) throw error;
32953
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32954
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
32955
+ error
32956
+ });
32957
+ return null;
32958
+ }
31763
32959
  }
31764
32960
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
31765
32961
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31928,7 +33124,16 @@ var Person = class Person extends Object$1 {
31928
33124
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
31929
33125
  const prop = this._cachedJsonLd["alsoKnownAs"];
31930
33126
  const doc = Array.isArray(prop) ? prop[0] : prop;
31931
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
33127
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33128
+ v = await this.#alias_fromJsonLd(doc, options);
33129
+ } catch (error) {
33130
+ if (!options.suppressError) throw error;
33131
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33132
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
33133
+ error
33134
+ });
33135
+ return null;
33136
+ }
31932
33137
  }
31933
33138
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
31934
33139
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -31972,7 +33177,17 @@ var Person = class Person extends Object$1 {
31972
33177
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
31973
33178
  const prop = this._cachedJsonLd["alsoKnownAs"];
31974
33179
  const obj = Array.isArray(prop) ? prop[i] : prop;
31975
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
33180
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
33181
+ v = await this.#alias_fromJsonLd(obj, options);
33182
+ } catch (error) {
33183
+ if (!options.suppressError) throw error;
33184
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
33185
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
33186
+ index: i,
33187
+ error
33188
+ });
33189
+ continue;
33190
+ }
31976
33191
  }
31977
33192
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
31978
33193
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32096,7 +33311,16 @@ var Person = class Person extends Object$1 {
32096
33311
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
32097
33312
  const prop = this._cachedJsonLd["service"];
32098
33313
  const doc = Array.isArray(prop) ? prop[0] : prop;
32099
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
33314
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33315
+ v = await this.#service_fromJsonLd(doc, options);
33316
+ } catch (error) {
33317
+ if (!options.suppressError) throw error;
33318
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33319
+ property: "https://www.w3.org/ns/did#service",
33320
+ error
33321
+ });
33322
+ return null;
33323
+ }
32100
33324
  }
32101
33325
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
32102
33326
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32140,7 +33364,17 @@ var Person = class Person extends Object$1 {
32140
33364
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
32141
33365
  const prop = this._cachedJsonLd["service"];
32142
33366
  const obj = Array.isArray(prop) ? prop[i] : prop;
32143
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
33367
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
33368
+ v = await this.#service_fromJsonLd(obj, options);
33369
+ } catch (error) {
33370
+ if (!options.suppressError) throw error;
33371
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
33372
+ property: "https://www.w3.org/ns/did#service",
33373
+ index: i,
33374
+ error
33375
+ });
33376
+ continue;
33377
+ }
32144
33378
  }
32145
33379
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
32146
33380
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -33775,7 +35009,16 @@ var Profile = class Profile extends Object$1 {
33775
35009
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
33776
35010
  const prop = this._cachedJsonLd["describes"];
33777
35011
  const doc = Array.isArray(prop) ? prop[0] : prop;
33778
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#describes_fromJsonLd(doc, options);
35012
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35013
+ v = await this.#describes_fromJsonLd(doc, options);
35014
+ } catch (error) {
35015
+ if (!options.suppressError) throw error;
35016
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35017
+ property: "https://www.w3.org/ns/activitystreams#describes",
35018
+ error
35019
+ });
35020
+ return null;
35021
+ }
33779
35022
  }
33780
35023
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
33781
35024
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34143,7 +35386,17 @@ var Question = class Question extends IntransitiveActivity {
34143
35386
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
34144
35387
  const prop = this._cachedJsonLd["oneOf"];
34145
35388
  const obj = Array.isArray(prop) ? prop[i] : prop;
34146
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#exclusiveOption_fromJsonLd(obj, options);
35389
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
35390
+ v = await this.#exclusiveOption_fromJsonLd(obj, options);
35391
+ } catch (error) {
35392
+ if (!options.suppressError) throw error;
35393
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
35394
+ property: "https://www.w3.org/ns/activitystreams#oneOf",
35395
+ index: i,
35396
+ error
35397
+ });
35398
+ continue;
35399
+ }
34147
35400
  }
34148
35401
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
34149
35402
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34265,7 +35518,17 @@ var Question = class Question extends IntransitiveActivity {
34265
35518
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
34266
35519
  const prop = this._cachedJsonLd["anyOf"];
34267
35520
  const obj = Array.isArray(prop) ? prop[i] : prop;
34268
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#inclusiveOption_fromJsonLd(obj, options);
35521
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
35522
+ v = await this.#inclusiveOption_fromJsonLd(obj, options);
35523
+ } catch (error) {
35524
+ if (!options.suppressError) throw error;
35525
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
35526
+ property: "https://www.w3.org/ns/activitystreams#anyOf",
35527
+ index: i,
35528
+ error
35529
+ });
35530
+ continue;
35531
+ }
34269
35532
  }
34270
35533
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
34271
35534
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35099,7 +36362,16 @@ var Relationship = class Relationship extends Object$1 {
35099
36362
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
35100
36363
  const prop = this._cachedJsonLd["subject"];
35101
36364
  const doc = Array.isArray(prop) ? prop[0] : prop;
35102
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#subject_fromJsonLd(doc, options);
36365
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36366
+ v = await this.#subject_fromJsonLd(doc, options);
36367
+ } catch (error) {
36368
+ if (!options.suppressError) throw error;
36369
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36370
+ property: "https://www.w3.org/ns/activitystreams#subject",
36371
+ error
36372
+ });
36373
+ return null;
36374
+ }
35103
36375
  }
35104
36376
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
35105
36377
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35219,7 +36491,16 @@ var Relationship = class Relationship extends Object$1 {
35219
36491
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
35220
36492
  const prop = this._cachedJsonLd["object"];
35221
36493
  const doc = Array.isArray(prop) ? prop[0] : prop;
35222
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
36494
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36495
+ v = await this.#object_fromJsonLd(doc, options);
36496
+ } catch (error) {
36497
+ if (!options.suppressError) throw error;
36498
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36499
+ property: "https://www.w3.org/ns/activitystreams#object",
36500
+ error
36501
+ });
36502
+ return null;
36503
+ }
35223
36504
  }
35224
36505
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
35225
36506
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35260,7 +36541,17 @@ var Relationship = class Relationship extends Object$1 {
35260
36541
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
35261
36542
  const prop = this._cachedJsonLd["object"];
35262
36543
  const obj = Array.isArray(prop) ? prop[i] : prop;
35263
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
36544
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36545
+ v = await this.#object_fromJsonLd(obj, options);
36546
+ } catch (error) {
36547
+ if (!options.suppressError) throw error;
36548
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36549
+ property: "https://www.w3.org/ns/activitystreams#object",
36550
+ index: i,
36551
+ error
36552
+ });
36553
+ continue;
36554
+ }
35264
36555
  }
35265
36556
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
35266
36557
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35383,7 +36674,16 @@ var Relationship = class Relationship extends Object$1 {
35383
36674
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
35384
36675
  const prop = this._cachedJsonLd["relationship"];
35385
36676
  const doc = Array.isArray(prop) ? prop[0] : prop;
35386
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#relationship_fromJsonLd(doc, options);
36677
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36678
+ v = await this.#relationship_fromJsonLd(doc, options);
36679
+ } catch (error) {
36680
+ if (!options.suppressError) throw error;
36681
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36682
+ property: "https://www.w3.org/ns/activitystreams#relationship",
36683
+ error
36684
+ });
36685
+ return null;
36686
+ }
35387
36687
  }
35388
36688
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
35389
36689
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35426,7 +36726,17 @@ var Relationship = class Relationship extends Object$1 {
35426
36726
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
35427
36727
  const prop = this._cachedJsonLd["relationship"];
35428
36728
  const obj = Array.isArray(prop) ? prop[i] : prop;
35429
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#relationship_fromJsonLd(obj, options);
36729
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36730
+ v = await this.#relationship_fromJsonLd(obj, options);
36731
+ } catch (error) {
36732
+ if (!options.suppressError) throw error;
36733
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36734
+ property: "https://www.w3.org/ns/activitystreams#relationship",
36735
+ index: i,
36736
+ error
36737
+ });
36738
+ continue;
36739
+ }
35430
36740
  }
35431
36741
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
35432
36742
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36264,7 +37574,16 @@ var Service = class Service extends Object$1 {
36264
37574
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
36265
37575
  const prop = this._cachedJsonLd["publicKey"];
36266
37576
  const doc = Array.isArray(prop) ? prop[0] : prop;
36267
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
37577
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
37578
+ v = await this.#publicKey_fromJsonLd(doc, options);
37579
+ } catch (error) {
37580
+ if (!options.suppressError) throw error;
37581
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
37582
+ property: "https://w3id.org/security#publicKey",
37583
+ error
37584
+ });
37585
+ return null;
37586
+ }
36268
37587
  }
36269
37588
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
36270
37589
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36305,7 +37624,17 @@ var Service = class Service extends Object$1 {
36305
37624
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
36306
37625
  const prop = this._cachedJsonLd["publicKey"];
36307
37626
  const obj = Array.isArray(prop) ? prop[i] : prop;
36308
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
37627
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
37628
+ v = await this.#publicKey_fromJsonLd(obj, options);
37629
+ } catch (error) {
37630
+ if (!options.suppressError) throw error;
37631
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
37632
+ property: "https://w3id.org/security#publicKey",
37633
+ index: i,
37634
+ error
37635
+ });
37636
+ continue;
37637
+ }
36309
37638
  }
36310
37639
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
36311
37640
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36429,7 +37758,16 @@ var Service = class Service extends Object$1 {
36429
37758
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
36430
37759
  const prop = this._cachedJsonLd["assertionMethod"];
36431
37760
  const doc = Array.isArray(prop) ? prop[0] : prop;
36432
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
37761
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
37762
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
37763
+ } catch (error) {
37764
+ if (!options.suppressError) throw error;
37765
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
37766
+ property: "https://w3id.org/security#assertionMethod",
37767
+ error
37768
+ });
37769
+ return null;
37770
+ }
36433
37771
  }
36434
37772
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
36435
37773
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36473,7 +37811,17 @@ var Service = class Service extends Object$1 {
36473
37811
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
36474
37812
  const prop = this._cachedJsonLd["assertionMethod"];
36475
37813
  const obj = Array.isArray(prop) ? prop[i] : prop;
36476
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
37814
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
37815
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
37816
+ } catch (error) {
37817
+ if (!options.suppressError) throw error;
37818
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
37819
+ property: "https://w3id.org/security#assertionMethod",
37820
+ index: i,
37821
+ error
37822
+ });
37823
+ continue;
37824
+ }
36477
37825
  }
36478
37826
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
36479
37827
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36628,7 +37976,16 @@ var Service = class Service extends Object$1 {
36628
37976
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
36629
37977
  const prop = this._cachedJsonLd["inbox"];
36630
37978
  const doc = Array.isArray(prop) ? prop[0] : prop;
36631
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
37979
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
37980
+ v = await this.#inbox_fromJsonLd(doc, options);
37981
+ } catch (error) {
37982
+ if (!options.suppressError) throw error;
37983
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
37984
+ property: "http://www.w3.org/ns/ldp#inbox",
37985
+ error
37986
+ });
37987
+ return null;
37988
+ }
36632
37989
  }
36633
37990
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
36634
37991
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36767,7 +38124,16 @@ var Service = class Service extends Object$1 {
36767
38124
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
36768
38125
  const prop = this._cachedJsonLd["outbox"];
36769
38126
  const doc = Array.isArray(prop) ? prop[0] : prop;
36770
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
38127
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38128
+ v = await this.#outbox_fromJsonLd(doc, options);
38129
+ } catch (error) {
38130
+ if (!options.suppressError) throw error;
38131
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38132
+ property: "https://www.w3.org/ns/activitystreams#outbox",
38133
+ error
38134
+ });
38135
+ return null;
38136
+ }
36771
38137
  }
36772
38138
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
36773
38139
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -36891,7 +38257,16 @@ var Service = class Service extends Object$1 {
36891
38257
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
36892
38258
  const prop = this._cachedJsonLd["following"];
36893
38259
  const doc = Array.isArray(prop) ? prop[0] : prop;
36894
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
38260
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38261
+ v = await this.#following_fromJsonLd(doc, options);
38262
+ } catch (error) {
38263
+ if (!options.suppressError) throw error;
38264
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38265
+ property: "https://www.w3.org/ns/activitystreams#following",
38266
+ error
38267
+ });
38268
+ return null;
38269
+ }
36895
38270
  }
36896
38271
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
36897
38272
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37018,7 +38393,16 @@ var Service = class Service extends Object$1 {
37018
38393
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
37019
38394
  const prop = this._cachedJsonLd["followers"];
37020
38395
  const doc = Array.isArray(prop) ? prop[0] : prop;
37021
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
38396
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38397
+ v = await this.#followers_fromJsonLd(doc, options);
38398
+ } catch (error) {
38399
+ if (!options.suppressError) throw error;
38400
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38401
+ property: "https://www.w3.org/ns/activitystreams#followers",
38402
+ error
38403
+ });
38404
+ return null;
38405
+ }
37022
38406
  }
37023
38407
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
37024
38408
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37143,7 +38527,16 @@ var Service = class Service extends Object$1 {
37143
38527
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
37144
38528
  const prop = this._cachedJsonLd["liked"];
37145
38529
  const doc = Array.isArray(prop) ? prop[0] : prop;
37146
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
38530
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38531
+ v = await this.#liked_fromJsonLd(doc, options);
38532
+ } catch (error) {
38533
+ if (!options.suppressError) throw error;
38534
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38535
+ property: "https://www.w3.org/ns/activitystreams#liked",
38536
+ error
38537
+ });
38538
+ return null;
38539
+ }
37147
38540
  }
37148
38541
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
37149
38542
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37266,7 +38659,16 @@ var Service = class Service extends Object$1 {
37266
38659
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
37267
38660
  const prop = this._cachedJsonLd["featured"];
37268
38661
  const doc = Array.isArray(prop) ? prop[0] : prop;
37269
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
38662
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38663
+ v = await this.#featured_fromJsonLd(doc, options);
38664
+ } catch (error) {
38665
+ if (!options.suppressError) throw error;
38666
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38667
+ property: "http://joinmastodon.org/ns#featured",
38668
+ error
38669
+ });
38670
+ return null;
38671
+ }
37270
38672
  }
37271
38673
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
37272
38674
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37389,7 +38791,16 @@ var Service = class Service extends Object$1 {
37389
38791
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
37390
38792
  const prop = this._cachedJsonLd["featuredTags"];
37391
38793
  const doc = Array.isArray(prop) ? prop[0] : prop;
37392
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
38794
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38795
+ v = await this.#featuredTags_fromJsonLd(doc, options);
38796
+ } catch (error) {
38797
+ if (!options.suppressError) throw error;
38798
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38799
+ property: "http://joinmastodon.org/ns#featuredTags",
38800
+ error
38801
+ });
38802
+ return null;
38803
+ }
37393
38804
  }
37394
38805
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
37395
38806
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37508,7 +38919,17 @@ var Service = class Service extends Object$1 {
37508
38919
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
37509
38920
  const prop = this._cachedJsonLd["streams"];
37510
38921
  const obj = Array.isArray(prop) ? prop[i] : prop;
37511
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
38922
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
38923
+ v = await this.#stream_fromJsonLd(obj, options);
38924
+ } catch (error) {
38925
+ if (!options.suppressError) throw error;
38926
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
38927
+ property: "https://www.w3.org/ns/activitystreams#streams",
38928
+ index: i,
38929
+ error
38930
+ });
38931
+ continue;
38932
+ }
37512
38933
  }
37513
38934
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
37514
38935
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37717,7 +39138,16 @@ var Service = class Service extends Object$1 {
37717
39138
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
37718
39139
  const prop = this._cachedJsonLd["movedTo"];
37719
39140
  const doc = Array.isArray(prop) ? prop[0] : prop;
37720
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
39141
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39142
+ v = await this.#successor_fromJsonLd(doc, options);
39143
+ } catch (error) {
39144
+ if (!options.suppressError) throw error;
39145
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39146
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
39147
+ error
39148
+ });
39149
+ return null;
39150
+ }
37721
39151
  }
37722
39152
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
37723
39153
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37886,7 +39316,16 @@ var Service = class Service extends Object$1 {
37886
39316
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
37887
39317
  const prop = this._cachedJsonLd["alsoKnownAs"];
37888
39318
  const doc = Array.isArray(prop) ? prop[0] : prop;
37889
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
39319
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39320
+ v = await this.#alias_fromJsonLd(doc, options);
39321
+ } catch (error) {
39322
+ if (!options.suppressError) throw error;
39323
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39324
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
39325
+ error
39326
+ });
39327
+ return null;
39328
+ }
37890
39329
  }
37891
39330
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
37892
39331
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37930,7 +39369,17 @@ var Service = class Service extends Object$1 {
37930
39369
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
37931
39370
  const prop = this._cachedJsonLd["alsoKnownAs"];
37932
39371
  const obj = Array.isArray(prop) ? prop[i] : prop;
37933
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
39372
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
39373
+ v = await this.#alias_fromJsonLd(obj, options);
39374
+ } catch (error) {
39375
+ if (!options.suppressError) throw error;
39376
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
39377
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
39378
+ index: i,
39379
+ error
39380
+ });
39381
+ continue;
39382
+ }
37934
39383
  }
37935
39384
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
37936
39385
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38054,7 +39503,16 @@ var Service = class Service extends Object$1 {
38054
39503
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
38055
39504
  const prop = this._cachedJsonLd["service"];
38056
39505
  const doc = Array.isArray(prop) ? prop[0] : prop;
38057
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
39506
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39507
+ v = await this.#service_fromJsonLd(doc, options);
39508
+ } catch (error) {
39509
+ if (!options.suppressError) throw error;
39510
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39511
+ property: "https://www.w3.org/ns/did#service",
39512
+ error
39513
+ });
39514
+ return null;
39515
+ }
38058
39516
  }
38059
39517
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
38060
39518
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38098,7 +39556,17 @@ var Service = class Service extends Object$1 {
38098
39556
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
38099
39557
  const prop = this._cachedJsonLd["service"];
38100
39558
  const obj = Array.isArray(prop) ? prop[i] : prop;
38101
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
39559
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
39560
+ v = await this.#service_fromJsonLd(obj, options);
39561
+ } catch (error) {
39562
+ if (!options.suppressError) throw error;
39563
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
39564
+ property: "https://www.w3.org/ns/did#service",
39565
+ index: i,
39566
+ error
39567
+ });
39568
+ continue;
39569
+ }
38102
39570
  }
38103
39571
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
38104
39572
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");