@fedify/vocab 2.3.2-dev.1556 → 2.3.2

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.cjs CHANGED
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
33
33
  let es_toolkit = require("es-toolkit");
34
34
  //#region deno.json
35
35
  var name = "@fedify/vocab";
36
- var version = "2.3.2-dev.1556+3e14f2d7";
36
+ var version = "2.3.2";
37
37
  //#endregion
38
38
  //#region src/type.ts
39
39
  function getTypeId(object) {
@@ -74,6 +74,15 @@ const normalizeLinkToImage = async (value, context) => {
74
74
  };
75
75
  //#endregion
76
76
  //#region src/vocab.ts
77
+ function isValidLanguageTag(language) {
78
+ try {
79
+ new Intl.Locale(language);
80
+ return true;
81
+ } catch (error) {
82
+ if (error instanceof RangeError) return false;
83
+ throw error;
84
+ }
85
+ }
77
86
  /** Describes an object of any kind. The Object type serves as the base type for
78
87
  * most of the other kinds of objects defined in the Activity Vocabulary,
79
88
  * including other Core types such as {@link Activity},
@@ -87,6 +96,7 @@ var Object$1 = class Object$1 {
87
96
  #warning;
88
97
  #cachedJsonLd;
89
98
  #_baseUrl;
99
+ #shouldCacheJsonLd = true;
90
100
  id;
91
101
  get _documentLoader() {
92
102
  return this.#documentLoader;
@@ -109,6 +119,17 @@ var Object$1 = class Object$1 {
109
119
  get _baseUrl() {
110
120
  return this.#_baseUrl;
111
121
  }
122
+ get _shouldCacheJsonLd() {
123
+ return this.#shouldCacheJsonLd;
124
+ }
125
+ set _shouldCacheJsonLd(value) {
126
+ this.#shouldCacheJsonLd = value;
127
+ }
128
+ static _shouldCacheDecodedJsonLd(value) {
129
+ if (value == null || typeof value !== "object") return true;
130
+ if (!("_shouldCacheJsonLd" in value)) return true;
131
+ return value._shouldCacheJsonLd;
132
+ }
112
133
  /**
113
134
  * The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
114
135
  */
@@ -5291,6 +5312,7 @@ var Object$1 = class Object$1 {
5291
5312
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Object")) throw new TypeError("Invalid type: " + values["@type"]);
5292
5313
  }
5293
5314
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
5315
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
5294
5316
  const _49BipA5dq9eoH8LX8xdsVumveTca_attachment = [];
5295
5317
  let _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array = values["https://www.w3.org/ns/activitystreams#attachment"];
5296
5318
  for (const v of _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array == null ? [] : _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array.length === 1 && "@list" in _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array[0] ? _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array[0]["@list"] : _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array) {
@@ -5380,7 +5402,11 @@ var Object$1 = class Object$1 {
5380
5402
  ...options,
5381
5403
  baseUrl: options.baseUrl
5382
5404
  }) : void 0;
5383
- if (typeof decoded === "undefined") continue;
5405
+ if (typeof decoded === "undefined") {
5406
+ shouldCacheJsonLd = false;
5407
+ continue;
5408
+ }
5409
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5384
5410
  _49BipA5dq9eoH8LX8xdsVumveTca_attachment.push(decoded);
5385
5411
  }
5386
5412
  instance.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = _49BipA5dq9eoH8LX8xdsVumveTca_attachment;
@@ -5409,7 +5435,11 @@ var Object$1 = class Object$1 {
5409
5435
  ...options,
5410
5436
  baseUrl: options.baseUrl
5411
5437
  }) : void 0;
5412
- if (typeof decoded === "undefined") continue;
5438
+ if (typeof decoded === "undefined") {
5439
+ shouldCacheJsonLd = false;
5440
+ continue;
5441
+ }
5442
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5413
5443
  _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.push(decoded);
5414
5444
  }
5415
5445
  instance.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
@@ -5426,7 +5456,11 @@ var Object$1 = class Object$1 {
5426
5456
  ...options,
5427
5457
  baseUrl: options.baseUrl
5428
5458
  });
5429
- if (typeof decoded === "undefined") continue;
5459
+ if (typeof decoded === "undefined") {
5460
+ shouldCacheJsonLd = false;
5461
+ continue;
5462
+ }
5463
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5430
5464
  _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded);
5431
5465
  }
5432
5466
  instance.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
@@ -5434,8 +5468,12 @@ var Object$1 = class Object$1 {
5434
5468
  let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
5435
5469
  for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array == null ? [] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array.length === 1 && "@list" in _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0] ? _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0]["@list"] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array) {
5436
5470
  if (v == null) continue;
5437
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
5438
- if (typeof decoded === "undefined") continue;
5471
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
5472
+ if (typeof decoded === "undefined") {
5473
+ shouldCacheJsonLd = false;
5474
+ continue;
5475
+ }
5476
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5439
5477
  _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
5440
5478
  }
5441
5479
  instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
@@ -5525,7 +5563,11 @@ var Object$1 = class Object$1 {
5525
5563
  ...options,
5526
5564
  baseUrl: options.baseUrl
5527
5565
  }) : void 0;
5528
- if (typeof decoded === "undefined") continue;
5566
+ if (typeof decoded === "undefined") {
5567
+ shouldCacheJsonLd = false;
5568
+ continue;
5569
+ }
5570
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5529
5571
  _3mhZzGXSpQ431mBSz2kvych22v4e_context.push(decoded);
5530
5572
  }
5531
5573
  instance.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = _3mhZzGXSpQ431mBSz2kvych22v4e_context;
@@ -5533,8 +5575,12 @@ var Object$1 = class Object$1 {
5533
5575
  let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
5534
5576
  for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
5535
5577
  if (v == null) continue;
5536
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
5537
- if (typeof decoded === "undefined") continue;
5578
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
5579
+ if (typeof decoded === "undefined") {
5580
+ shouldCacheJsonLd = false;
5581
+ continue;
5582
+ }
5583
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5538
5584
  _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
5539
5585
  }
5540
5586
  instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
@@ -5543,7 +5589,11 @@ var Object$1 = class Object$1 {
5543
5589
  for (const v of _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array == null ? [] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array.length === 1 && "@list" in _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0] ? _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0]["@list"] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array) {
5544
5590
  if (v == null) continue;
5545
5591
  const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
5546
- if (typeof decoded === "undefined") continue;
5592
+ if (typeof decoded === "undefined") {
5593
+ shouldCacheJsonLd = false;
5594
+ continue;
5595
+ }
5596
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5547
5597
  _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(decoded);
5548
5598
  }
5549
5599
  instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
@@ -5633,7 +5683,11 @@ var Object$1 = class Object$1 {
5633
5683
  ...options,
5634
5684
  baseUrl: options.baseUrl
5635
5685
  }) : void 0;
5636
- if (typeof decoded === "undefined") continue;
5686
+ if (typeof decoded === "undefined") {
5687
+ shouldCacheJsonLd = false;
5688
+ continue;
5689
+ }
5690
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5637
5691
  _86xFhmgBapoMvYqjbjRuDPayTrS_generator.push(decoded);
5638
5692
  }
5639
5693
  instance.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = _86xFhmgBapoMvYqjbjRuDPayTrS_generator;
@@ -5667,7 +5721,11 @@ var Object$1 = class Object$1 {
5667
5721
  ...options,
5668
5722
  baseUrl: options.baseUrl
5669
5723
  });
5670
- if (typeof decoded === "undefined") continue;
5724
+ if (typeof decoded === "undefined") {
5725
+ shouldCacheJsonLd = false;
5726
+ continue;
5727
+ }
5728
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5671
5729
  _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded);
5672
5730
  }
5673
5731
  instance.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
@@ -5701,7 +5759,11 @@ var Object$1 = class Object$1 {
5701
5759
  ...options,
5702
5760
  baseUrl: options.baseUrl
5703
5761
  });
5704
- if (typeof decoded === "undefined") continue;
5762
+ if (typeof decoded === "undefined") {
5763
+ shouldCacheJsonLd = false;
5764
+ continue;
5765
+ }
5766
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5705
5767
  _3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded);
5706
5768
  }
5707
5769
  instance.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = _3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
@@ -5791,7 +5853,11 @@ var Object$1 = class Object$1 {
5791
5853
  ...options,
5792
5854
  baseUrl: options.baseUrl
5793
5855
  }) : void 0;
5794
- if (typeof decoded === "undefined") continue;
5856
+ if (typeof decoded === "undefined") {
5857
+ shouldCacheJsonLd = false;
5858
+ continue;
5859
+ }
5860
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5795
5861
  _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.push(decoded);
5796
5862
  }
5797
5863
  instance.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
@@ -5881,7 +5947,11 @@ var Object$1 = class Object$1 {
5881
5947
  ...options,
5882
5948
  baseUrl: options.baseUrl
5883
5949
  }) : void 0;
5884
- if (typeof decoded === "undefined") continue;
5950
+ if (typeof decoded === "undefined") {
5951
+ shouldCacheJsonLd = false;
5952
+ continue;
5953
+ }
5954
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5885
5955
  _31k5MUZJsnsPNg8dQQJieWaXTFnR_location.push(decoded);
5886
5956
  }
5887
5957
  instance.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = _31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
@@ -5971,7 +6041,11 @@ var Object$1 = class Object$1 {
5971
6041
  ...options,
5972
6042
  baseUrl: options.baseUrl
5973
6043
  }) : void 0;
5974
- if (typeof decoded === "undefined") continue;
6044
+ if (typeof decoded === "undefined") {
6045
+ shouldCacheJsonLd = false;
6046
+ continue;
6047
+ }
6048
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5975
6049
  _gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
5976
6050
  }
5977
6051
  instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
@@ -5980,7 +6054,11 @@ var Object$1 = class Object$1 {
5980
6054
  for (const v of _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array == null ? [] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array.length === 1 && "@list" in _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0] ? _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0]["@list"] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array) {
5981
6055
  if (v == null) continue;
5982
6056
  const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
5983
- if (typeof decoded === "undefined") continue;
6057
+ if (typeof decoded === "undefined") {
6058
+ shouldCacheJsonLd = false;
6059
+ continue;
6060
+ }
6061
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
5984
6062
  _5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(decoded);
5985
6063
  }
5986
6064
  instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = _5e258TDXtuhaFRPZiGoDfEpjdMr_published;
@@ -5997,7 +6075,11 @@ var Object$1 = class Object$1 {
5997
6075
  ...options,
5998
6076
  baseUrl: options.baseUrl
5999
6077
  });
6000
- if (typeof decoded === "undefined") continue;
6078
+ if (typeof decoded === "undefined") {
6079
+ shouldCacheJsonLd = false;
6080
+ continue;
6081
+ }
6082
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6001
6083
  _7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded);
6002
6084
  }
6003
6085
  instance.#_7UpwM3JWcXhADcscukEehBorf6k_replies = _7UpwM3JWcXhADcscukEehBorf6k_replies;
@@ -6014,7 +6096,11 @@ var Object$1 = class Object$1 {
6014
6096
  ...options,
6015
6097
  baseUrl: options.baseUrl
6016
6098
  });
6017
- if (typeof decoded === "undefined") continue;
6099
+ if (typeof decoded === "undefined") {
6100
+ shouldCacheJsonLd = false;
6101
+ continue;
6102
+ }
6103
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6018
6104
  _3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded);
6019
6105
  }
6020
6106
  instance.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = _3kAfck9PcEYt2L7xug5y99YPbANs_shares;
@@ -6031,7 +6117,11 @@ var Object$1 = class Object$1 {
6031
6117
  ...options,
6032
6118
  baseUrl: options.baseUrl
6033
6119
  });
6034
- if (typeof decoded === "undefined") continue;
6120
+ if (typeof decoded === "undefined") {
6121
+ shouldCacheJsonLd = false;
6122
+ continue;
6123
+ }
6124
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6035
6125
  _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded);
6036
6126
  }
6037
6127
  instance.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
@@ -6048,7 +6138,11 @@ var Object$1 = class Object$1 {
6048
6138
  ...options,
6049
6139
  baseUrl: options.baseUrl
6050
6140
  });
6051
- if (typeof decoded === "undefined") continue;
6141
+ if (typeof decoded === "undefined") {
6142
+ shouldCacheJsonLd = false;
6143
+ continue;
6144
+ }
6145
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6052
6146
  _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded);
6053
6147
  }
6054
6148
  instance.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
@@ -6057,7 +6151,11 @@ var Object$1 = class Object$1 {
6057
6151
  for (const v of _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array == null ? [] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array.length === 1 && "@list" in _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0] ? _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0]["@list"] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array) {
6058
6152
  if (v == null) continue;
6059
6153
  const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
6060
- if (typeof decoded === "undefined") continue;
6154
+ if (typeof decoded === "undefined") {
6155
+ shouldCacheJsonLd = false;
6156
+ continue;
6157
+ }
6158
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6061
6159
  _2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(decoded);
6062
6160
  }
6063
6161
  instance.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = _2w3Jmue4up8iVDUA51WZqomEF438_startTime;
@@ -6065,8 +6163,12 @@ var Object$1 = class Object$1 {
6065
6163
  let _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array = values["https://www.w3.org/ns/activitystreams#summary"];
6066
6164
  for (const v of _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array == null ? [] : _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array.length === 1 && "@list" in _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array[0] ? _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array[0]["@list"] : _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array) {
6067
6165
  if (v == null) continue;
6068
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
6069
- if (typeof decoded === "undefined") continue;
6166
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
6167
+ if (typeof decoded === "undefined") {
6168
+ shouldCacheJsonLd = false;
6169
+ continue;
6170
+ }
6171
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6070
6172
  _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.push(decoded);
6071
6173
  }
6072
6174
  instance.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
@@ -6156,7 +6258,11 @@ var Object$1 = class Object$1 {
6156
6258
  ...options,
6157
6259
  baseUrl: options.baseUrl
6158
6260
  }) : void 0;
6159
- if (typeof decoded === "undefined") continue;
6261
+ if (typeof decoded === "undefined") {
6262
+ shouldCacheJsonLd = false;
6263
+ continue;
6264
+ }
6265
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6160
6266
  _5chuqj6s95p5gg2sk1HntGfarRf_tag.push(decoded);
6161
6267
  }
6162
6268
  instance.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = _5chuqj6s95p5gg2sk1HntGfarRf_tag;
@@ -6165,7 +6271,11 @@ var Object$1 = class Object$1 {
6165
6271
  for (const v of _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array == null ? [] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array.length === 1 && "@list" in _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0] ? _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0]["@list"] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array) {
6166
6272
  if (v == null) continue;
6167
6273
  const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
6168
- if (typeof decoded === "undefined") continue;
6274
+ if (typeof decoded === "undefined") {
6275
+ shouldCacheJsonLd = false;
6276
+ continue;
6277
+ }
6278
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6169
6279
  _385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(decoded);
6170
6280
  }
6171
6281
  instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = _385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
@@ -6181,7 +6291,11 @@ var Object$1 = class Object$1 {
6181
6291
  ...options,
6182
6292
  baseUrl: options.baseUrl
6183
6293
  }) : void 0;
6184
- if (typeof decoded === "undefined") continue;
6294
+ if (typeof decoded === "undefined") {
6295
+ shouldCacheJsonLd = false;
6296
+ continue;
6297
+ }
6298
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6185
6299
  _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.push(decoded);
6186
6300
  }
6187
6301
  instance.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
@@ -6198,7 +6312,11 @@ var Object$1 = class Object$1 {
6198
6312
  ...options,
6199
6313
  baseUrl: options.baseUrl
6200
6314
  });
6201
- if (typeof decoded === "undefined") continue;
6315
+ if (typeof decoded === "undefined") {
6316
+ shouldCacheJsonLd = false;
6317
+ continue;
6318
+ }
6319
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6202
6320
  _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded);
6203
6321
  }
6204
6322
  instance.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
@@ -6215,7 +6333,11 @@ var Object$1 = class Object$1 {
6215
6333
  ...options,
6216
6334
  baseUrl: options.baseUrl
6217
6335
  });
6218
- if (typeof decoded === "undefined") continue;
6336
+ if (typeof decoded === "undefined") {
6337
+ shouldCacheJsonLd = false;
6338
+ continue;
6339
+ }
6340
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6219
6341
  _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded);
6220
6342
  }
6221
6343
  instance.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
@@ -6232,7 +6354,11 @@ var Object$1 = class Object$1 {
6232
6354
  ...options,
6233
6355
  baseUrl: options.baseUrl
6234
6356
  });
6235
- if (typeof decoded === "undefined") continue;
6357
+ if (typeof decoded === "undefined") {
6358
+ shouldCacheJsonLd = false;
6359
+ continue;
6360
+ }
6361
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6236
6362
  _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded);
6237
6363
  }
6238
6364
  instance.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
@@ -6249,7 +6375,11 @@ var Object$1 = class Object$1 {
6249
6375
  ...options,
6250
6376
  baseUrl: options.baseUrl
6251
6377
  });
6252
- if (typeof decoded === "undefined") continue;
6378
+ if (typeof decoded === "undefined") {
6379
+ shouldCacheJsonLd = false;
6380
+ continue;
6381
+ }
6382
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6253
6383
  _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded);
6254
6384
  }
6255
6385
  instance.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
@@ -6258,7 +6388,11 @@ var Object$1 = class Object$1 {
6258
6388
  for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
6259
6389
  if (v == null) continue;
6260
6390
  const decoded = v["@value"];
6261
- if (typeof decoded === "undefined") continue;
6391
+ if (typeof decoded === "undefined") {
6392
+ shouldCacheJsonLd = false;
6393
+ continue;
6394
+ }
6395
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6262
6396
  _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
6263
6397
  }
6264
6398
  instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
@@ -6267,7 +6401,11 @@ var Object$1 = class Object$1 {
6267
6401
  for (const v of _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array == null ? [] : _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array.length === 1 && "@list" in _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array[0] ? _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array[0]["@list"] : _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array) {
6268
6402
  if (v == null) continue;
6269
6403
  const decoded = Temporal.Duration.from(v["@value"]);
6270
- if (typeof decoded === "undefined") continue;
6404
+ if (typeof decoded === "undefined") {
6405
+ shouldCacheJsonLd = false;
6406
+ continue;
6407
+ }
6408
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6271
6409
  _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.push(decoded);
6272
6410
  }
6273
6411
  instance.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
@@ -6276,7 +6414,11 @@ var Object$1 = class Object$1 {
6276
6414
  for (const v of _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array == null ? [] : _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array.length === 1 && "@list" in _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array[0] ? _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array[0]["@list"] : _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array) {
6277
6415
  if (v == null) continue;
6278
6416
  const decoded = v["@value"];
6279
- if (typeof decoded === "undefined") continue;
6417
+ if (typeof decoded === "undefined") {
6418
+ shouldCacheJsonLd = false;
6419
+ continue;
6420
+ }
6421
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6280
6422
  _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.push(decoded);
6281
6423
  }
6282
6424
  instance.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
@@ -6288,7 +6430,11 @@ var Object$1 = class Object$1 {
6288
6430
  ...options,
6289
6431
  baseUrl: options.baseUrl
6290
6432
  });
6291
- if (typeof decoded === "undefined") continue;
6433
+ if (typeof decoded === "undefined") {
6434
+ shouldCacheJsonLd = false;
6435
+ continue;
6436
+ }
6437
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6292
6438
  _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded);
6293
6439
  }
6294
6440
  instance.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
@@ -6305,7 +6451,11 @@ var Object$1 = class Object$1 {
6305
6451
  ...options,
6306
6452
  baseUrl: options.baseUrl
6307
6453
  });
6308
- if (typeof decoded === "undefined") continue;
6454
+ if (typeof decoded === "undefined") {
6455
+ shouldCacheJsonLd = false;
6456
+ continue;
6457
+ }
6458
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6309
6459
  _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded);
6310
6460
  }
6311
6461
  instance.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
@@ -6317,7 +6467,11 @@ var Object$1 = class Object$1 {
6317
6467
  ...options,
6318
6468
  baseUrl: options.baseUrl
6319
6469
  });
6320
- if (typeof decoded === "undefined") continue;
6470
+ if (typeof decoded === "undefined") {
6471
+ shouldCacheJsonLd = false;
6472
+ continue;
6473
+ }
6474
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6321
6475
  _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded);
6322
6476
  }
6323
6477
  instance.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
@@ -6326,7 +6480,11 @@ var Object$1 = class Object$1 {
6326
6480
  for (const v of _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array == null ? [] : _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array.length === 1 && "@list" in _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array[0] ? _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array[0]["@list"] : _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array) {
6327
6481
  if (v == null) continue;
6328
6482
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
6329
- if (typeof decoded === "undefined") continue;
6483
+ if (typeof decoded === "undefined") {
6484
+ shouldCacheJsonLd = false;
6485
+ continue;
6486
+ }
6487
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6330
6488
  _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded);
6331
6489
  }
6332
6490
  instance.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
@@ -6343,7 +6501,11 @@ var Object$1 = class Object$1 {
6343
6501
  ...options,
6344
6502
  baseUrl: options.baseUrl
6345
6503
  });
6346
- if (typeof decoded === "undefined") continue;
6504
+ if (typeof decoded === "undefined") {
6505
+ shouldCacheJsonLd = false;
6506
+ continue;
6507
+ }
6508
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6347
6509
  _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded);
6348
6510
  }
6349
6511
  instance.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
@@ -6360,7 +6522,11 @@ var Object$1 = class Object$1 {
6360
6522
  ...options,
6361
6523
  baseUrl: options.baseUrl
6362
6524
  });
6363
- if (typeof decoded === "undefined") continue;
6525
+ if (typeof decoded === "undefined") {
6526
+ shouldCacheJsonLd = false;
6527
+ continue;
6528
+ }
6529
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6364
6530
  _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded);
6365
6531
  }
6366
6532
  instance.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
@@ -6377,11 +6543,16 @@ var Object$1 = class Object$1 {
6377
6543
  ...options,
6378
6544
  baseUrl: options.baseUrl
6379
6545
  });
6380
- if (typeof decoded === "undefined") continue;
6546
+ if (typeof decoded === "undefined") {
6547
+ shouldCacheJsonLd = false;
6548
+ continue;
6549
+ }
6550
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
6381
6551
  _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded);
6382
6552
  }
6383
6553
  instance.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
6384
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
6554
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
6555
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
6385
6556
  instance._cachedJsonLd = structuredClone(json);
6386
6557
  } catch {
6387
6558
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -6748,7 +6919,9 @@ var Emoji = class Emoji extends Object$1 {
6748
6919
  _fromSubclass: true
6749
6920
  });
6750
6921
  if (!(instance instanceof Emoji)) throw new TypeError("Unexpected type: " + instance.constructor.name);
6751
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
6922
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
6923
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
6924
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
6752
6925
  instance._cachedJsonLd = structuredClone(json);
6753
6926
  } catch {
6754
6927
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -7311,6 +7484,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
7311
7484
  _fromSubclass: true
7312
7485
  });
7313
7486
  if (!(instance instanceof ChatMessage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
7487
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
7314
7488
  const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
7315
7489
  let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
7316
7490
  for (const v of _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array == null ? [] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array.length === 1 && "@list" in _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0] ? _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0]["@list"] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array) {
@@ -7324,7 +7498,11 @@ var ChatMessage = class ChatMessage extends Object$1 {
7324
7498
  ...options,
7325
7499
  baseUrl: options.baseUrl
7326
7500
  });
7327
- if (typeof decoded === "undefined") continue;
7501
+ if (typeof decoded === "undefined") {
7502
+ shouldCacheJsonLd = false;
7503
+ continue;
7504
+ }
7505
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
7328
7506
  _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
7329
7507
  }
7330
7508
  instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
@@ -7335,7 +7513,11 @@ var ChatMessage = class ChatMessage extends Object$1 {
7335
7513
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
7336
7514
  if (v == null) continue;
7337
7515
  const decoded = new URL(v["@value"]);
7338
- if (typeof decoded === "undefined") continue;
7516
+ if (typeof decoded === "undefined") {
7517
+ shouldCacheJsonLd = false;
7518
+ continue;
7519
+ }
7520
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
7339
7521
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
7340
7522
  }
7341
7523
  instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
@@ -7352,11 +7534,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
7352
7534
  ...options,
7353
7535
  baseUrl: options.baseUrl
7354
7536
  });
7355
- if (typeof decoded === "undefined") continue;
7537
+ if (typeof decoded === "undefined") {
7538
+ shouldCacheJsonLd = false;
7539
+ continue;
7540
+ }
7541
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
7356
7542
  _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
7357
7543
  }
7358
7544
  instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
7359
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
7545
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
7546
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
7360
7547
  instance._cachedJsonLd = structuredClone(json);
7361
7548
  } catch {
7362
7549
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -8844,6 +9031,7 @@ var Activity = class Activity extends Object$1 {
8844
9031
  _fromSubclass: true
8845
9032
  });
8846
9033
  if (!(instance instanceof Activity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
9034
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
8847
9035
  const _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [];
8848
9036
  let _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array = values["https://www.w3.org/ns/activitystreams#actor"];
8849
9037
  for (const v of _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array == null ? [] : _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array.length === 1 && "@list" in _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array[0] ? _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array[0]["@list"] : _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array) {
@@ -8869,7 +9057,11 @@ var Activity = class Activity extends Object$1 {
8869
9057
  ...options,
8870
9058
  baseUrl: options.baseUrl
8871
9059
  }) : void 0;
8872
- if (typeof decoded === "undefined") continue;
9060
+ if (typeof decoded === "undefined") {
9061
+ shouldCacheJsonLd = false;
9062
+ continue;
9063
+ }
9064
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
8873
9065
  _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.push(decoded);
8874
9066
  }
8875
9067
  instance.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
@@ -8886,7 +9078,11 @@ var Activity = class Activity extends Object$1 {
8886
9078
  ...options,
8887
9079
  baseUrl: options.baseUrl
8888
9080
  });
8889
- if (typeof decoded === "undefined") continue;
9081
+ if (typeof decoded === "undefined") {
9082
+ shouldCacheJsonLd = false;
9083
+ continue;
9084
+ }
9085
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
8890
9086
  _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
8891
9087
  }
8892
9088
  instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
@@ -8903,7 +9099,11 @@ var Activity = class Activity extends Object$1 {
8903
9099
  ...options,
8904
9100
  baseUrl: options.baseUrl
8905
9101
  });
8906
- if (typeof decoded === "undefined") continue;
9102
+ if (typeof decoded === "undefined") {
9103
+ shouldCacheJsonLd = false;
9104
+ continue;
9105
+ }
9106
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
8907
9107
  _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded);
8908
9108
  }
8909
9109
  instance.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
@@ -8920,7 +9120,11 @@ var Activity = class Activity extends Object$1 {
8920
9120
  ...options,
8921
9121
  baseUrl: options.baseUrl
8922
9122
  });
8923
- if (typeof decoded === "undefined") continue;
9123
+ if (typeof decoded === "undefined") {
9124
+ shouldCacheJsonLd = false;
9125
+ continue;
9126
+ }
9127
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
8924
9128
  _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded);
8925
9129
  }
8926
9130
  instance.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
@@ -8937,7 +9141,11 @@ var Activity = class Activity extends Object$1 {
8937
9141
  ...options,
8938
9142
  baseUrl: options.baseUrl
8939
9143
  });
8940
- if (typeof decoded === "undefined") continue;
9144
+ if (typeof decoded === "undefined") {
9145
+ shouldCacheJsonLd = false;
9146
+ continue;
9147
+ }
9148
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
8941
9149
  _25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded);
8942
9150
  }
8943
9151
  instance.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = _25zu2s3VxVujgEKqrDycjE284XQR_origin;
@@ -8954,11 +9162,16 @@ var Activity = class Activity extends Object$1 {
8954
9162
  ...options,
8955
9163
  baseUrl: options.baseUrl
8956
9164
  });
8957
- if (typeof decoded === "undefined") continue;
9165
+ if (typeof decoded === "undefined") {
9166
+ shouldCacheJsonLd = false;
9167
+ continue;
9168
+ }
9169
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
8958
9170
  _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded);
8959
9171
  }
8960
9172
  instance.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
8961
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
9173
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
9174
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
8962
9175
  instance._cachedJsonLd = structuredClone(json);
8963
9176
  } catch {
8964
9177
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9150,7 +9363,9 @@ var EmojiReact = class EmojiReact extends Activity {
9150
9363
  _fromSubclass: true
9151
9364
  });
9152
9365
  if (!(instance instanceof EmojiReact)) throw new TypeError("Unexpected type: " + instance.constructor.name);
9153
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
9366
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
9367
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
9368
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
9154
9369
  instance._cachedJsonLd = structuredClone(json);
9155
9370
  } catch {
9156
9371
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9176,6 +9391,7 @@ var PropertyValue = class {
9176
9391
  #warning;
9177
9392
  #cachedJsonLd;
9178
9393
  #_baseUrl;
9394
+ #shouldCacheJsonLd = true;
9179
9395
  id;
9180
9396
  get _documentLoader() {
9181
9397
  return this.#documentLoader;
@@ -9198,6 +9414,17 @@ var PropertyValue = class {
9198
9414
  get _baseUrl() {
9199
9415
  return this.#_baseUrl;
9200
9416
  }
9417
+ get _shouldCacheJsonLd() {
9418
+ return this.#shouldCacheJsonLd;
9419
+ }
9420
+ set _shouldCacheJsonLd(value) {
9421
+ this.#shouldCacheJsonLd = value;
9422
+ }
9423
+ static _shouldCacheDecodedJsonLd(value) {
9424
+ if (value == null || typeof value !== "object") return true;
9425
+ if (!("_shouldCacheJsonLd" in value)) return true;
9426
+ return value._shouldCacheJsonLd;
9427
+ }
9201
9428
  /**
9202
9429
  * The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
9203
9430
  */
@@ -9398,12 +9625,17 @@ var PropertyValue = class {
9398
9625
  if (!values["@type"].includes("http://schema.org#PropertyValue")) throw new TypeError("Invalid type: " + values["@type"]);
9399
9626
  }
9400
9627
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
9628
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
9401
9629
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
9402
9630
  let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
9403
9631
  for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
9404
9632
  if (v == null) continue;
9405
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
9406
- if (typeof decoded === "undefined") continue;
9633
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
9634
+ if (typeof decoded === "undefined") {
9635
+ shouldCacheJsonLd = false;
9636
+ continue;
9637
+ }
9638
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
9407
9639
  _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
9408
9640
  }
9409
9641
  instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
@@ -9411,12 +9643,17 @@ var PropertyValue = class {
9411
9643
  let _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array = values["http://schema.org#value"];
9412
9644
  for (const v of _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array == null ? [] : _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array.length === 1 && "@list" in _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array[0] ? _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array[0]["@list"] : _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array) {
9413
9645
  if (v == null) continue;
9414
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
9415
- if (typeof decoded === "undefined") continue;
9646
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
9647
+ if (typeof decoded === "undefined") {
9648
+ shouldCacheJsonLd = false;
9649
+ continue;
9650
+ }
9651
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
9416
9652
  _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.push(decoded);
9417
9653
  }
9418
9654
  instance.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
9419
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
9655
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
9656
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
9420
9657
  instance._cachedJsonLd = structuredClone(json);
9421
9658
  } catch {
9422
9659
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9457,6 +9694,7 @@ var Measure = class {
9457
9694
  #warning;
9458
9695
  #cachedJsonLd;
9459
9696
  #_baseUrl;
9697
+ #shouldCacheJsonLd = true;
9460
9698
  id;
9461
9699
  get _documentLoader() {
9462
9700
  return this.#documentLoader;
@@ -9479,6 +9717,17 @@ var Measure = class {
9479
9717
  get _baseUrl() {
9480
9718
  return this.#_baseUrl;
9481
9719
  }
9720
+ get _shouldCacheJsonLd() {
9721
+ return this.#shouldCacheJsonLd;
9722
+ }
9723
+ set _shouldCacheJsonLd(value) {
9724
+ this.#shouldCacheJsonLd = value;
9725
+ }
9726
+ static _shouldCacheDecodedJsonLd(value) {
9727
+ if (value == null || typeof value !== "object") return true;
9728
+ if (!("_shouldCacheJsonLd" in value)) return true;
9729
+ return value._shouldCacheJsonLd;
9730
+ }
9482
9731
  /**
9483
9732
  * The type URI of {@link Measure}: `http://www.ontology-of-units-of-measure.org/resource/om-2/Measure`.
9484
9733
  */
@@ -9670,12 +9919,17 @@ var Measure = class {
9670
9919
  if (!values["@type"].includes("http://www.ontology-of-units-of-measure.org/resource/om-2/Measure")) throw new TypeError("Invalid type: " + values["@type"]);
9671
9920
  }
9672
9921
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
9922
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
9673
9923
  const _27fgyFbosTtMAhuepJH8K3ZGURT6 = [];
9674
9924
  let _27fgyFbosTtMAhuepJH8K3ZGURT6__array = values["http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit"];
9675
9925
  for (const v of _27fgyFbosTtMAhuepJH8K3ZGURT6__array == null ? [] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array.length === 1 && "@list" in _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0] ? _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0]["@list"] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array) {
9676
9926
  if (v == null) continue;
9677
9927
  const decoded = v["@value"];
9678
- if (typeof decoded === "undefined") continue;
9928
+ if (typeof decoded === "undefined") {
9929
+ shouldCacheJsonLd = false;
9930
+ continue;
9931
+ }
9932
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
9679
9933
  _27fgyFbosTtMAhuepJH8K3ZGURT6.push(decoded);
9680
9934
  }
9681
9935
  instance.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = _27fgyFbosTtMAhuepJH8K3ZGURT6;
@@ -9684,11 +9938,16 @@ var Measure = class {
9684
9938
  for (const v of _1GQx8o2RgxRs4x9G5uT39XYBv7D__array == null ? [] : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array.length === 1 && "@list" in _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0] ? _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0]["@list"] : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array) {
9685
9939
  if (v == null) continue;
9686
9940
  const decoded = (0, _fedify_vocab_runtime.parseDecimal)(v["@value"]);
9687
- if (typeof decoded === "undefined") continue;
9941
+ if (typeof decoded === "undefined") {
9942
+ shouldCacheJsonLd = false;
9943
+ continue;
9944
+ }
9945
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
9688
9946
  _1GQx8o2RgxRs4x9G5uT39XYBv7D.push(decoded);
9689
9947
  }
9690
9948
  instance.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = _1GQx8o2RgxRs4x9G5uT39XYBv7D;
9691
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
9949
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
9950
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
9692
9951
  instance._cachedJsonLd = structuredClone(json);
9693
9952
  } catch {
9694
9953
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -10179,6 +10438,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
10179
10438
  _fromSubclass: true
10180
10439
  });
10181
10440
  if (!(instance instanceof AnnounceAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
10441
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
10182
10442
  const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
10183
10443
  let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
10184
10444
  for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
@@ -10192,7 +10452,11 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
10192
10452
  ...options,
10193
10453
  baseUrl: options.baseUrl
10194
10454
  });
10195
- if (typeof decoded === "undefined") continue;
10455
+ if (typeof decoded === "undefined") {
10456
+ shouldCacheJsonLd = false;
10457
+ continue;
10458
+ }
10459
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10196
10460
  _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
10197
10461
  }
10198
10462
  instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
@@ -10209,11 +10473,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
10209
10473
  ...options,
10210
10474
  baseUrl: options.baseUrl
10211
10475
  });
10212
- if (typeof decoded === "undefined") continue;
10476
+ if (typeof decoded === "undefined") {
10477
+ shouldCacheJsonLd = false;
10478
+ continue;
10479
+ }
10480
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10213
10481
  _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
10214
10482
  }
10215
10483
  instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
10216
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
10484
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
10485
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
10217
10486
  instance._cachedJsonLd = structuredClone(json);
10218
10487
  } catch {
10219
10488
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -10383,7 +10652,9 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
10383
10652
  _fromSubclass: true
10384
10653
  });
10385
10654
  if (!(instance instanceof AnnounceRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
10386
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
10655
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
10656
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
10657
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
10387
10658
  instance._cachedJsonLd = structuredClone(json);
10388
10659
  } catch {
10389
10660
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -10415,6 +10686,7 @@ var InteractionPolicy = class {
10415
10686
  #warning;
10416
10687
  #cachedJsonLd;
10417
10688
  #_baseUrl;
10689
+ #shouldCacheJsonLd = true;
10418
10690
  id;
10419
10691
  get _documentLoader() {
10420
10692
  return this.#documentLoader;
@@ -10437,6 +10709,17 @@ var InteractionPolicy = class {
10437
10709
  get _baseUrl() {
10438
10710
  return this.#_baseUrl;
10439
10711
  }
10712
+ get _shouldCacheJsonLd() {
10713
+ return this.#shouldCacheJsonLd;
10714
+ }
10715
+ set _shouldCacheJsonLd(value) {
10716
+ this.#shouldCacheJsonLd = value;
10717
+ }
10718
+ static _shouldCacheDecodedJsonLd(value) {
10719
+ if (value == null || typeof value !== "object") return true;
10720
+ if (!("_shouldCacheJsonLd" in value)) return true;
10721
+ return value._shouldCacheJsonLd;
10722
+ }
10440
10723
  /**
10441
10724
  * The type URI of {@link InteractionPolicy}: `https://gotosocial.org/ns#InteractionPolicy`.
10442
10725
  */
@@ -10649,6 +10932,7 @@ var InteractionPolicy = class {
10649
10932
  if (!values["@type"].includes("https://gotosocial.org/ns#InteractionPolicy")) throw new TypeError("Invalid type: " + values["@type"]);
10650
10933
  }
10651
10934
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
10935
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
10652
10936
  const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [];
10653
10937
  let _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array = values["https://gotosocial.org/ns#canLike"];
10654
10938
  for (const v of _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array == null ? [] : _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array.length === 1 && "@list" in _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array[0] ? _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array[0]["@list"] : _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array) {
@@ -10657,7 +10941,11 @@ var InteractionPolicy = class {
10657
10941
  ...options,
10658
10942
  baseUrl: options.baseUrl
10659
10943
  });
10660
- if (typeof decoded === "undefined") continue;
10944
+ if (typeof decoded === "undefined") {
10945
+ shouldCacheJsonLd = false;
10946
+ continue;
10947
+ }
10948
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10661
10949
  _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded);
10662
10950
  }
10663
10951
  instance.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
@@ -10669,7 +10957,11 @@ var InteractionPolicy = class {
10669
10957
  ...options,
10670
10958
  baseUrl: options.baseUrl
10671
10959
  });
10672
- if (typeof decoded === "undefined") continue;
10960
+ if (typeof decoded === "undefined") {
10961
+ shouldCacheJsonLd = false;
10962
+ continue;
10963
+ }
10964
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10673
10965
  _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded);
10674
10966
  }
10675
10967
  instance.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
@@ -10681,7 +10973,11 @@ var InteractionPolicy = class {
10681
10973
  ...options,
10682
10974
  baseUrl: options.baseUrl
10683
10975
  });
10684
- if (typeof decoded === "undefined") continue;
10976
+ if (typeof decoded === "undefined") {
10977
+ shouldCacheJsonLd = false;
10978
+ continue;
10979
+ }
10980
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10685
10981
  _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded);
10686
10982
  }
10687
10983
  instance.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
@@ -10693,11 +10989,16 @@ var InteractionPolicy = class {
10693
10989
  ...options,
10694
10990
  baseUrl: options.baseUrl
10695
10991
  });
10696
- if (typeof decoded === "undefined") continue;
10992
+ if (typeof decoded === "undefined") {
10993
+ shouldCacheJsonLd = false;
10994
+ continue;
10995
+ }
10996
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10697
10997
  _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded);
10698
10998
  }
10699
10999
  instance.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
10700
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
11000
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
11001
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
10701
11002
  instance._cachedJsonLd = structuredClone(json);
10702
11003
  } catch {
10703
11004
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -10765,6 +11066,7 @@ var InteractionRule = class {
10765
11066
  #warning;
10766
11067
  #cachedJsonLd;
10767
11068
  #_baseUrl;
11069
+ #shouldCacheJsonLd = true;
10768
11070
  id;
10769
11071
  get _documentLoader() {
10770
11072
  return this.#documentLoader;
@@ -10787,6 +11089,17 @@ var InteractionRule = class {
10787
11089
  get _baseUrl() {
10788
11090
  return this.#_baseUrl;
10789
11091
  }
11092
+ get _shouldCacheJsonLd() {
11093
+ return this.#shouldCacheJsonLd;
11094
+ }
11095
+ set _shouldCacheJsonLd(value) {
11096
+ this.#shouldCacheJsonLd = value;
11097
+ }
11098
+ static _shouldCacheDecodedJsonLd(value) {
11099
+ if (value == null || typeof value !== "object") return true;
11100
+ if (!("_shouldCacheJsonLd" in value)) return true;
11101
+ return value._shouldCacheJsonLd;
11102
+ }
10790
11103
  /**
10791
11104
  * The type URI of {@link InteractionRule}: `https://gotosocial.org/ns#InteractionRule`.
10792
11105
  */
@@ -10981,12 +11294,17 @@ var InteractionRule = class {
10981
11294
  if (!values["@type"].includes("https://gotosocial.org/ns#InteractionRule")) throw new TypeError("Invalid type: " + values["@type"]);
10982
11295
  }
10983
11296
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
11297
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
10984
11298
  const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [];
10985
11299
  let _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array = values["https://gotosocial.org/ns#automaticApproval"];
10986
11300
  for (const v of _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array == null ? [] : _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array.length === 1 && "@list" in _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array[0] ? _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array[0]["@list"] : _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array) {
10987
11301
  if (v == null) continue;
10988
11302
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
10989
- if (typeof decoded === "undefined") continue;
11303
+ if (typeof decoded === "undefined") {
11304
+ shouldCacheJsonLd = false;
11305
+ continue;
11306
+ }
11307
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10990
11308
  _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded);
10991
11309
  }
10992
11310
  instance.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
@@ -10995,11 +11313,16 @@ var InteractionRule = class {
10995
11313
  for (const v of _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array == null ? [] : _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array.length === 1 && "@list" in _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array[0] ? _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array[0]["@list"] : _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array) {
10996
11314
  if (v == null) continue;
10997
11315
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
10998
- if (typeof decoded === "undefined") continue;
11316
+ if (typeof decoded === "undefined") {
11317
+ shouldCacheJsonLd = false;
11318
+ continue;
11319
+ }
11320
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
10999
11321
  _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded);
11000
11322
  }
11001
11323
  instance.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
11002
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
11324
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
11325
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
11003
11326
  instance._cachedJsonLd = structuredClone(json);
11004
11327
  } catch {
11005
11328
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -11491,6 +11814,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11491
11814
  _fromSubclass: true
11492
11815
  });
11493
11816
  if (!(instance instanceof LikeAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
11817
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
11494
11818
  const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
11495
11819
  let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
11496
11820
  for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
@@ -11504,7 +11828,11 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11504
11828
  ...options,
11505
11829
  baseUrl: options.baseUrl
11506
11830
  });
11507
- if (typeof decoded === "undefined") continue;
11831
+ if (typeof decoded === "undefined") {
11832
+ shouldCacheJsonLd = false;
11833
+ continue;
11834
+ }
11835
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
11508
11836
  _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
11509
11837
  }
11510
11838
  instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
@@ -11521,11 +11849,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11521
11849
  ...options,
11522
11850
  baseUrl: options.baseUrl
11523
11851
  });
11524
- if (typeof decoded === "undefined") continue;
11852
+ if (typeof decoded === "undefined") {
11853
+ shouldCacheJsonLd = false;
11854
+ continue;
11855
+ }
11856
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
11525
11857
  _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
11526
11858
  }
11527
11859
  instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
11528
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
11860
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
11861
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
11529
11862
  instance._cachedJsonLd = structuredClone(json);
11530
11863
  } catch {
11531
11864
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -11694,7 +12027,9 @@ var LikeRequest = class LikeRequest extends Activity {
11694
12027
  _fromSubclass: true
11695
12028
  });
11696
12029
  if (!(instance instanceof LikeRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
11697
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
12030
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
12031
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
12032
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
11698
12033
  instance._cachedJsonLd = structuredClone(json);
11699
12034
  } catch {
11700
12035
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -12169,6 +12504,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
12169
12504
  _fromSubclass: true
12170
12505
  });
12171
12506
  if (!(instance instanceof ReplyAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
12507
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
12172
12508
  const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
12173
12509
  let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
12174
12510
  for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
@@ -12182,7 +12518,11 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
12182
12518
  ...options,
12183
12519
  baseUrl: options.baseUrl
12184
12520
  });
12185
- if (typeof decoded === "undefined") continue;
12521
+ if (typeof decoded === "undefined") {
12522
+ shouldCacheJsonLd = false;
12523
+ continue;
12524
+ }
12525
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
12186
12526
  _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
12187
12527
  }
12188
12528
  instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
@@ -12199,11 +12539,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
12199
12539
  ...options,
12200
12540
  baseUrl: options.baseUrl
12201
12541
  });
12202
- if (typeof decoded === "undefined") continue;
12542
+ if (typeof decoded === "undefined") {
12543
+ shouldCacheJsonLd = false;
12544
+ continue;
12545
+ }
12546
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
12203
12547
  _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
12204
12548
  }
12205
12549
  instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
12206
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
12550
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
12551
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
12207
12552
  instance._cachedJsonLd = structuredClone(json);
12208
12553
  } catch {
12209
12554
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -12372,7 +12717,9 @@ var ReplyRequest = class ReplyRequest extends Activity {
12372
12717
  _fromSubclass: true
12373
12718
  });
12374
12719
  if (!(instance instanceof ReplyRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
12375
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
12720
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
12721
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
12722
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
12376
12723
  instance._cachedJsonLd = structuredClone(json);
12377
12724
  } catch {
12378
12725
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -12848,6 +13195,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12848
13195
  _fromSubclass: true
12849
13196
  });
12850
13197
  if (!(instance instanceof QuoteAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
13198
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
12851
13199
  const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
12852
13200
  let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
12853
13201
  for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
@@ -12861,7 +13209,11 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12861
13209
  ...options,
12862
13210
  baseUrl: options.baseUrl
12863
13211
  });
12864
- if (typeof decoded === "undefined") continue;
13212
+ if (typeof decoded === "undefined") {
13213
+ shouldCacheJsonLd = false;
13214
+ continue;
13215
+ }
13216
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
12865
13217
  _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
12866
13218
  }
12867
13219
  instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
@@ -12878,11 +13230,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12878
13230
  ...options,
12879
13231
  baseUrl: options.baseUrl
12880
13232
  });
12881
- if (typeof decoded === "undefined") continue;
13233
+ if (typeof decoded === "undefined") {
13234
+ shouldCacheJsonLd = false;
13235
+ continue;
13236
+ }
13237
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
12882
13238
  _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
12883
13239
  }
12884
13240
  instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
12885
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
13241
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
13242
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
12886
13243
  instance._cachedJsonLd = structuredClone(json);
12887
13244
  } catch {
12888
13245
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13081,7 +13438,9 @@ var QuoteRequest = class QuoteRequest extends Activity {
13081
13438
  _fromSubclass: true
13082
13439
  });
13083
13440
  if (!(instance instanceof QuoteRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
13084
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
13441
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
13442
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
13443
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
13085
13444
  instance._cachedJsonLd = structuredClone(json);
13086
13445
  } catch {
13087
13446
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13110,6 +13469,7 @@ var DidService = class {
13110
13469
  #warning;
13111
13470
  #cachedJsonLd;
13112
13471
  #_baseUrl;
13472
+ #shouldCacheJsonLd = true;
13113
13473
  id;
13114
13474
  get _documentLoader() {
13115
13475
  return this.#documentLoader;
@@ -13132,6 +13492,17 @@ var DidService = class {
13132
13492
  get _baseUrl() {
13133
13493
  return this.#_baseUrl;
13134
13494
  }
13495
+ get _shouldCacheJsonLd() {
13496
+ return this.#shouldCacheJsonLd;
13497
+ }
13498
+ set _shouldCacheJsonLd(value) {
13499
+ this.#shouldCacheJsonLd = value;
13500
+ }
13501
+ static _shouldCacheDecodedJsonLd(value) {
13502
+ if (value == null || typeof value !== "object") return true;
13503
+ if (!("_shouldCacheJsonLd" in value)) return true;
13504
+ return value._shouldCacheJsonLd;
13505
+ }
13135
13506
  /**
13136
13507
  * The type URI of {@link DidService}: `https://www.w3.org/ns/did#Service`.
13137
13508
  */
@@ -13290,16 +13661,22 @@ var DidService = class {
13290
13661
  if (!values["@type"].includes("https://www.w3.org/ns/did#Service")) throw new TypeError("Invalid type: " + values["@type"]);
13291
13662
  }
13292
13663
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
13664
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
13293
13665
  const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [];
13294
13666
  let _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array = values["https://www.w3.org/ns/did#serviceEndpoint"];
13295
13667
  for (const v of _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array == null ? [] : _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array.length === 1 && "@list" in _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array[0] ? _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array[0]["@list"] : _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array) {
13296
13668
  if (v == null) continue;
13297
13669
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
13298
- if (typeof decoded === "undefined") continue;
13670
+ if (typeof decoded === "undefined") {
13671
+ shouldCacheJsonLd = false;
13672
+ continue;
13673
+ }
13674
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
13299
13675
  _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded);
13300
13676
  }
13301
13677
  instance.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
13302
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
13678
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
13679
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
13303
13680
  instance._cachedJsonLd = structuredClone(json);
13304
13681
  } catch {
13305
13682
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13451,7 +13828,9 @@ var Export = class Export extends DidService {
13451
13828
  _fromSubclass: true
13452
13829
  });
13453
13830
  if (!(instance instanceof Export)) throw new TypeError("Unexpected type: " + instance.constructor.name);
13454
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
13831
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
13832
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
13833
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
13455
13834
  instance._cachedJsonLd = structuredClone(json);
13456
13835
  } catch {
13457
13836
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13478,6 +13857,7 @@ var DataIntegrityProof = class {
13478
13857
  #warning;
13479
13858
  #cachedJsonLd;
13480
13859
  #_baseUrl;
13860
+ #shouldCacheJsonLd = true;
13481
13861
  id;
13482
13862
  get _documentLoader() {
13483
13863
  return this.#documentLoader;
@@ -13500,6 +13880,17 @@ var DataIntegrityProof = class {
13500
13880
  get _baseUrl() {
13501
13881
  return this.#_baseUrl;
13502
13882
  }
13883
+ get _shouldCacheJsonLd() {
13884
+ return this.#shouldCacheJsonLd;
13885
+ }
13886
+ set _shouldCacheJsonLd(value) {
13887
+ this.#shouldCacheJsonLd = value;
13888
+ }
13889
+ static _shouldCacheDecodedJsonLd(value) {
13890
+ if (value == null || typeof value !== "object") return true;
13891
+ if (!("_shouldCacheJsonLd" in value)) return true;
13892
+ return value._shouldCacheJsonLd;
13893
+ }
13503
13894
  /**
13504
13895
  * The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
13505
13896
  */
@@ -13845,12 +14236,17 @@ var DataIntegrityProof = class {
13845
14236
  if (!values["@type"].includes("https://w3id.org/security#DataIntegrityProof")) throw new TypeError("Invalid type: " + values["@type"]);
13846
14237
  }
13847
14238
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
14239
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
13848
14240
  const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [];
13849
14241
  let _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array = values["https://w3id.org/security#cryptosuite"];
13850
14242
  for (const v of _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array == null ? [] : _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array.length === 1 && "@list" in _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array[0] ? _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array[0]["@list"] : _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array) {
13851
14243
  if (v == null) continue;
13852
14244
  const decoded = v["@value"];
13853
- if (typeof decoded === "undefined") continue;
14245
+ if (typeof decoded === "undefined") {
14246
+ shouldCacheJsonLd = false;
14247
+ continue;
14248
+ }
14249
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
13854
14250
  _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.push(decoded);
13855
14251
  }
13856
14252
  instance.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
@@ -13867,7 +14263,11 @@ var DataIntegrityProof = class {
13867
14263
  ...options,
13868
14264
  baseUrl: options.baseUrl
13869
14265
  });
13870
- if (typeof decoded === "undefined") continue;
14266
+ if (typeof decoded === "undefined") {
14267
+ shouldCacheJsonLd = false;
14268
+ continue;
14269
+ }
14270
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
13871
14271
  _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded);
13872
14272
  }
13873
14273
  instance.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
@@ -13876,7 +14276,11 @@ var DataIntegrityProof = class {
13876
14276
  for (const v of _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array == null ? [] : _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array.length === 1 && "@list" in _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array[0] ? _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array[0]["@list"] : _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array) {
13877
14277
  if (v == null) continue;
13878
14278
  const decoded = v["@id"].substring(26);
13879
- if (typeof decoded === "undefined") continue;
14279
+ if (typeof decoded === "undefined") {
14280
+ shouldCacheJsonLd = false;
14281
+ continue;
14282
+ }
14283
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
13880
14284
  _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.push(decoded);
13881
14285
  }
13882
14286
  instance.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
@@ -13885,7 +14289,11 @@ var DataIntegrityProof = class {
13885
14289
  for (const v of _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array == null ? [] : _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array.length === 1 && "@list" in _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array[0] ? _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array[0]["@list"] : _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array) {
13886
14290
  if (v == null) continue;
13887
14291
  const decoded = (0, _fedify_vocab_runtime.decodeMultibase)(v["@value"]);
13888
- if (typeof decoded === "undefined") continue;
14292
+ if (typeof decoded === "undefined") {
14293
+ shouldCacheJsonLd = false;
14294
+ continue;
14295
+ }
14296
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
13889
14297
  _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.push(decoded);
13890
14298
  }
13891
14299
  instance.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
@@ -13894,11 +14302,16 @@ var DataIntegrityProof = class {
13894
14302
  for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array == null ? [] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array.length === 1 && "@list" in _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0] ? _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0]["@list"] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
13895
14303
  if (v == null) continue;
13896
14304
  const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
13897
- if (typeof decoded === "undefined") continue;
14305
+ if (typeof decoded === "undefined") {
14306
+ shouldCacheJsonLd = false;
14307
+ continue;
14308
+ }
14309
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
13898
14310
  _3qzP3ukEZoUziK5FEiA1RhU4aqac.push(decoded);
13899
14311
  }
13900
14312
  instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
13901
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
14313
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
14314
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
13902
14315
  instance._cachedJsonLd = structuredClone(json);
13903
14316
  } catch {
13904
14317
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13954,6 +14367,7 @@ var CryptographicKey = class {
13954
14367
  #warning;
13955
14368
  #cachedJsonLd;
13956
14369
  #_baseUrl;
14370
+ #shouldCacheJsonLd = true;
13957
14371
  id;
13958
14372
  get _documentLoader() {
13959
14373
  return this.#documentLoader;
@@ -13976,6 +14390,17 @@ var CryptographicKey = class {
13976
14390
  get _baseUrl() {
13977
14391
  return this.#_baseUrl;
13978
14392
  }
14393
+ get _shouldCacheJsonLd() {
14394
+ return this.#shouldCacheJsonLd;
14395
+ }
14396
+ set _shouldCacheJsonLd(value) {
14397
+ this.#shouldCacheJsonLd = value;
14398
+ }
14399
+ static _shouldCacheDecodedJsonLd(value) {
14400
+ if (value == null || typeof value !== "object") return true;
14401
+ if (!("_shouldCacheJsonLd" in value)) return true;
14402
+ return value._shouldCacheJsonLd;
14403
+ }
13979
14404
  /**
13980
14405
  * The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
13981
14406
  */
@@ -14342,6 +14767,7 @@ var CryptographicKey = class {
14342
14767
  if (!values["@type"].includes("https://w3id.org/security#Key")) throw new TypeError("Invalid type: " + values["@type"]);
14343
14768
  }
14344
14769
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
14770
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
14345
14771
  const _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [];
14346
14772
  let _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array = values["https://w3id.org/security#owner"];
14347
14773
  for (const v of _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array == null ? [] : _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array.length === 1 && "@list" in _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array[0] ? _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array[0]["@list"] : _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array) {
@@ -14367,7 +14793,11 @@ var CryptographicKey = class {
14367
14793
  ...options,
14368
14794
  baseUrl: options.baseUrl
14369
14795
  }) : void 0;
14370
- if (typeof decoded === "undefined") continue;
14796
+ if (typeof decoded === "undefined") {
14797
+ shouldCacheJsonLd = false;
14798
+ continue;
14799
+ }
14800
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
14371
14801
  _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.push(decoded);
14372
14802
  }
14373
14803
  instance.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
@@ -14376,11 +14806,16 @@ var CryptographicKey = class {
14376
14806
  for (const v of _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array == null ? [] : _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array.length === 1 && "@list" in _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array[0] ? _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array[0]["@list"] : _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array) {
14377
14807
  if (v == null) continue;
14378
14808
  const decoded = await (0, _fedify_vocab_runtime.importPem)(v["@value"]);
14379
- if (typeof decoded === "undefined") continue;
14809
+ if (typeof decoded === "undefined") {
14810
+ shouldCacheJsonLd = false;
14811
+ continue;
14812
+ }
14813
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
14380
14814
  _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.push(decoded);
14381
14815
  }
14382
14816
  instance.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
14383
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
14817
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
14818
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
14384
14819
  instance._cachedJsonLd = structuredClone(json);
14385
14820
  } catch {
14386
14821
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -14424,6 +14859,7 @@ var Multikey = class {
14424
14859
  #warning;
14425
14860
  #cachedJsonLd;
14426
14861
  #_baseUrl;
14862
+ #shouldCacheJsonLd = true;
14427
14863
  id;
14428
14864
  get _documentLoader() {
14429
14865
  return this.#documentLoader;
@@ -14446,6 +14882,17 @@ var Multikey = class {
14446
14882
  get _baseUrl() {
14447
14883
  return this.#_baseUrl;
14448
14884
  }
14885
+ get _shouldCacheJsonLd() {
14886
+ return this.#shouldCacheJsonLd;
14887
+ }
14888
+ set _shouldCacheJsonLd(value) {
14889
+ this.#shouldCacheJsonLd = value;
14890
+ }
14891
+ static _shouldCacheDecodedJsonLd(value) {
14892
+ if (value == null || typeof value !== "object") return true;
14893
+ if (!("_shouldCacheJsonLd" in value)) return true;
14894
+ return value._shouldCacheJsonLd;
14895
+ }
14449
14896
  /**
14450
14897
  * The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
14451
14898
  */
@@ -14818,6 +15265,7 @@ var Multikey = class {
14818
15265
  if (!values["@type"].includes("https://w3id.org/security#Multikey")) throw new TypeError("Invalid type: " + values["@type"]);
14819
15266
  }
14820
15267
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
15268
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
14821
15269
  const _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [];
14822
15270
  let _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array = values["https://w3id.org/security#controller"];
14823
15271
  for (const v of _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array == null ? [] : _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array.length === 1 && "@list" in _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array[0] ? _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array[0]["@list"] : _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array) {
@@ -14843,7 +15291,11 @@ var Multikey = class {
14843
15291
  ...options,
14844
15292
  baseUrl: options.baseUrl
14845
15293
  }) : void 0;
14846
- if (typeof decoded === "undefined") continue;
15294
+ if (typeof decoded === "undefined") {
15295
+ shouldCacheJsonLd = false;
15296
+ continue;
15297
+ }
15298
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
14847
15299
  _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.push(decoded);
14848
15300
  }
14849
15301
  instance.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
@@ -14852,11 +15304,16 @@ var Multikey = class {
14852
15304
  for (const v of _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array == null ? [] : _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array.length === 1 && "@list" in _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array[0] ? _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array[0]["@list"] : _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array) {
14853
15305
  if (v == null) continue;
14854
15306
  const decoded = await (0, _fedify_vocab_runtime.importMultibaseKey)(v["@value"]);
14855
- if (typeof decoded === "undefined") continue;
15307
+ if (typeof decoded === "undefined") {
15308
+ shouldCacheJsonLd = false;
15309
+ continue;
15310
+ }
15311
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
14856
15312
  _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.push(decoded);
14857
15313
  }
14858
15314
  instance.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
14859
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
15315
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
15316
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
14860
15317
  instance._cachedJsonLd = structuredClone(json);
14861
15318
  } catch {
14862
15319
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15151,6 +15608,7 @@ var Agreement = class Agreement extends Object$1 {
15151
15608
  _fromSubclass: true
15152
15609
  });
15153
15610
  if (!(instance instanceof Agreement)) throw new TypeError("Unexpected type: " + instance.constructor.name);
15611
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
15154
15612
  const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
15155
15613
  let _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array = values["https://w3id.org/valueflows/ont/vf#stipulates"];
15156
15614
  for (const v of _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array == null ? [] : _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array.length === 1 && "@list" in _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array[0] ? _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array[0]["@list"] : _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array) {
@@ -15159,7 +15617,11 @@ var Agreement = class Agreement extends Object$1 {
15159
15617
  ...options,
15160
15618
  baseUrl: options.baseUrl
15161
15619
  });
15162
- if (typeof decoded === "undefined") continue;
15620
+ if (typeof decoded === "undefined") {
15621
+ shouldCacheJsonLd = false;
15622
+ continue;
15623
+ }
15624
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15163
15625
  _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.push(decoded);
15164
15626
  }
15165
15627
  instance.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
@@ -15171,11 +15633,16 @@ var Agreement = class Agreement extends Object$1 {
15171
15633
  ...options,
15172
15634
  baseUrl: options.baseUrl
15173
15635
  });
15174
- if (typeof decoded === "undefined") continue;
15636
+ if (typeof decoded === "undefined") {
15637
+ shouldCacheJsonLd = false;
15638
+ continue;
15639
+ }
15640
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15175
15641
  _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.push(decoded);
15176
15642
  }
15177
15643
  instance.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
15178
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
15644
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
15645
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
15179
15646
  instance._cachedJsonLd = structuredClone(json);
15180
15647
  } catch {
15181
15648
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15215,6 +15682,7 @@ var Commitment = class {
15215
15682
  #warning;
15216
15683
  #cachedJsonLd;
15217
15684
  #_baseUrl;
15685
+ #shouldCacheJsonLd = true;
15218
15686
  id;
15219
15687
  get _documentLoader() {
15220
15688
  return this.#documentLoader;
@@ -15237,6 +15705,17 @@ var Commitment = class {
15237
15705
  get _baseUrl() {
15238
15706
  return this.#_baseUrl;
15239
15707
  }
15708
+ get _shouldCacheJsonLd() {
15709
+ return this.#shouldCacheJsonLd;
15710
+ }
15711
+ set _shouldCacheJsonLd(value) {
15712
+ this.#shouldCacheJsonLd = value;
15713
+ }
15714
+ static _shouldCacheDecodedJsonLd(value) {
15715
+ if (value == null || typeof value !== "object") return true;
15716
+ if (!("_shouldCacheJsonLd" in value)) return true;
15717
+ return value._shouldCacheJsonLd;
15718
+ }
15240
15719
  /**
15241
15720
  * The type URI of {@link Commitment}: `https://w3id.org/valueflows/ont/vf#Commitment`.
15242
15721
  */
@@ -15447,12 +15926,17 @@ var Commitment = class {
15447
15926
  if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Commitment")) throw new TypeError("Invalid type: " + values["@type"]);
15448
15927
  }
15449
15928
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
15929
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
15450
15930
  const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
15451
15931
  let _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array = values["https://w3id.org/valueflows/ont/vf#satisfies"];
15452
15932
  for (const v of _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array == null ? [] : _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array.length === 1 && "@list" in _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array[0] ? _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array[0]["@list"] : _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array) {
15453
15933
  if (v == null) continue;
15454
15934
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
15455
- if (typeof decoded === "undefined") continue;
15935
+ if (typeof decoded === "undefined") {
15936
+ shouldCacheJsonLd = false;
15937
+ continue;
15938
+ }
15939
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15456
15940
  _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.push(decoded);
15457
15941
  }
15458
15942
  instance.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
@@ -15464,11 +15948,16 @@ var Commitment = class {
15464
15948
  ...options,
15465
15949
  baseUrl: options.baseUrl
15466
15950
  });
15467
- if (typeof decoded === "undefined") continue;
15951
+ if (typeof decoded === "undefined") {
15952
+ shouldCacheJsonLd = false;
15953
+ continue;
15954
+ }
15955
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15468
15956
  _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
15469
15957
  }
15470
15958
  instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
15471
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
15959
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
15960
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
15472
15961
  instance._cachedJsonLd = structuredClone(json);
15473
15962
  } catch {
15474
15963
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15510,6 +15999,7 @@ var Intent = class {
15510
15999
  #warning;
15511
16000
  #cachedJsonLd;
15512
16001
  #_baseUrl;
16002
+ #shouldCacheJsonLd = true;
15513
16003
  id;
15514
16004
  get _documentLoader() {
15515
16005
  return this.#documentLoader;
@@ -15532,6 +16022,17 @@ var Intent = class {
15532
16022
  get _baseUrl() {
15533
16023
  return this.#_baseUrl;
15534
16024
  }
16025
+ get _shouldCacheJsonLd() {
16026
+ return this.#shouldCacheJsonLd;
16027
+ }
16028
+ set _shouldCacheJsonLd(value) {
16029
+ this.#shouldCacheJsonLd = value;
16030
+ }
16031
+ static _shouldCacheDecodedJsonLd(value) {
16032
+ if (value == null || typeof value !== "object") return true;
16033
+ if (!("_shouldCacheJsonLd" in value)) return true;
16034
+ return value._shouldCacheJsonLd;
16035
+ }
15535
16036
  /**
15536
16037
  * The type URI of {@link Intent}: `https://w3id.org/valueflows/ont/vf#Intent`.
15537
16038
  */
@@ -15826,12 +16327,17 @@ var Intent = class {
15826
16327
  if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Intent")) throw new TypeError("Invalid type: " + values["@type"]);
15827
16328
  }
15828
16329
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
16330
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
15829
16331
  const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [];
15830
16332
  let _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array = values["https://w3id.org/valueflows/ont/vf#action"];
15831
16333
  for (const v of _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array == null ? [] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array.length === 1 && "@list" in _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0] ? _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0]["@list"] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array) {
15832
16334
  if (v == null) continue;
15833
16335
  const decoded = v["@value"];
15834
- if (typeof decoded === "undefined") continue;
16336
+ if (typeof decoded === "undefined") {
16337
+ shouldCacheJsonLd = false;
16338
+ continue;
16339
+ }
16340
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15835
16341
  _38VmZKmXJSBy3AvgqNa9GVqbdphy_action.push(decoded);
15836
16342
  }
15837
16343
  instance.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = _38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
@@ -15840,7 +16346,11 @@ var Intent = class {
15840
16346
  for (const v of _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array == null ? [] : _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array.length === 1 && "@list" in _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array[0] ? _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array[0]["@list"] : _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array) {
15841
16347
  if (v == null) continue;
15842
16348
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
15843
- if (typeof decoded === "undefined") continue;
16349
+ if (typeof decoded === "undefined") {
16350
+ shouldCacheJsonLd = false;
16351
+ continue;
16352
+ }
16353
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15844
16354
  _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded);
15845
16355
  }
15846
16356
  instance.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
@@ -15852,7 +16362,11 @@ var Intent = class {
15852
16362
  ...options,
15853
16363
  baseUrl: options.baseUrl
15854
16364
  });
15855
- if (typeof decoded === "undefined") continue;
16365
+ if (typeof decoded === "undefined") {
16366
+ shouldCacheJsonLd = false;
16367
+ continue;
16368
+ }
16369
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15856
16370
  _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
15857
16371
  }
15858
16372
  instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
@@ -15864,7 +16378,11 @@ var Intent = class {
15864
16378
  ...options,
15865
16379
  baseUrl: options.baseUrl
15866
16380
  });
15867
- if (typeof decoded === "undefined") continue;
16381
+ if (typeof decoded === "undefined") {
16382
+ shouldCacheJsonLd = false;
16383
+ continue;
16384
+ }
16385
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15868
16386
  _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded);
15869
16387
  }
15870
16388
  instance.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
@@ -15876,11 +16394,16 @@ var Intent = class {
15876
16394
  ...options,
15877
16395
  baseUrl: options.baseUrl
15878
16396
  });
15879
- if (typeof decoded === "undefined") continue;
16397
+ if (typeof decoded === "undefined") {
16398
+ shouldCacheJsonLd = false;
16399
+ continue;
16400
+ }
16401
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
15880
16402
  _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded);
15881
16403
  }
15882
16404
  instance.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
15883
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
16405
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
16406
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
15884
16407
  instance._cachedJsonLd = structuredClone(json);
15885
16408
  } catch {
15886
16409
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16249,12 +16772,17 @@ var Proposal = class Proposal extends Object$1 {
16249
16772
  _fromSubclass: true
16250
16773
  });
16251
16774
  if (!(instance instanceof Proposal)) throw new TypeError("Unexpected type: " + instance.constructor.name);
16775
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
16252
16776
  const _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [];
16253
16777
  let _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array = values["https://w3id.org/valueflows/ont/vf#purpose"];
16254
16778
  for (const v of _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array == null ? [] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array.length === 1 && "@list" in _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0] ? _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0]["@list"] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array) {
16255
16779
  if (v == null) continue;
16256
16780
  const decoded = v["@value"];
16257
- if (typeof decoded === "undefined") continue;
16781
+ if (typeof decoded === "undefined") {
16782
+ shouldCacheJsonLd = false;
16783
+ continue;
16784
+ }
16785
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
16258
16786
  _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.push(decoded);
16259
16787
  }
16260
16788
  instance.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
@@ -16266,7 +16794,11 @@ var Proposal = class Proposal extends Object$1 {
16266
16794
  ...options,
16267
16795
  baseUrl: options.baseUrl
16268
16796
  });
16269
- if (typeof decoded === "undefined") continue;
16797
+ if (typeof decoded === "undefined") {
16798
+ shouldCacheJsonLd = false;
16799
+ continue;
16800
+ }
16801
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
16270
16802
  _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded);
16271
16803
  }
16272
16804
  instance.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
@@ -16278,7 +16810,11 @@ var Proposal = class Proposal extends Object$1 {
16278
16810
  ...options,
16279
16811
  baseUrl: options.baseUrl
16280
16812
  });
16281
- if (typeof decoded === "undefined") continue;
16813
+ if (typeof decoded === "undefined") {
16814
+ shouldCacheJsonLd = false;
16815
+ continue;
16816
+ }
16817
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
16282
16818
  _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded);
16283
16819
  }
16284
16820
  instance.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
@@ -16287,11 +16823,16 @@ var Proposal = class Proposal extends Object$1 {
16287
16823
  for (const v of _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array == null ? [] : _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array.length === 1 && "@list" in _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array[0] ? _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array[0]["@list"] : _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array) {
16288
16824
  if (v == null) continue;
16289
16825
  const decoded = v["@value"];
16290
- if (typeof decoded === "undefined") continue;
16826
+ if (typeof decoded === "undefined") {
16827
+ shouldCacheJsonLd = false;
16828
+ continue;
16829
+ }
16830
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
16291
16831
  _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.push(decoded);
16292
16832
  }
16293
16833
  instance.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
16294
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
16834
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
16835
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
16295
16836
  instance._cachedJsonLd = structuredClone(json);
16296
16837
  } catch {
16297
16838
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16464,7 +17005,9 @@ var Accept = class Accept extends Activity {
16464
17005
  _fromSubclass: true
16465
17006
  });
16466
17007
  if (!(instance instanceof Accept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
16467
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
17008
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
17009
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
17010
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
16468
17011
  instance._cachedJsonLd = structuredClone(json);
16469
17012
  } catch {
16470
17013
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16616,7 +17159,9 @@ var Add = class Add extends Activity {
16616
17159
  _fromSubclass: true
16617
17160
  });
16618
17161
  if (!(instance instanceof Add)) throw new TypeError("Unexpected type: " + instance.constructor.name);
16619
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
17162
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
17163
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
17164
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
16620
17165
  instance._cachedJsonLd = structuredClone(json);
16621
17166
  } catch {
16622
17167
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16796,7 +17341,9 @@ var Announce = class Announce extends Activity {
16796
17341
  _fromSubclass: true
16797
17342
  });
16798
17343
  if (!(instance instanceof Announce)) throw new TypeError("Unexpected type: " + instance.constructor.name);
16799
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
17344
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
17345
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
17346
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
16800
17347
  instance._cachedJsonLd = structuredClone(json);
16801
17348
  } catch {
16802
17349
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -19715,12 +20262,17 @@ var Application = class Application extends Object$1 {
19715
20262
  _fromSubclass: true
19716
20263
  });
19717
20264
  if (!(instance instanceof Application)) throw new TypeError("Unexpected type: " + instance.constructor.name);
20265
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
19718
20266
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
19719
20267
  let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
19720
20268
  for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
19721
20269
  if (v == null) continue;
19722
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
19723
- if (typeof decoded === "undefined") continue;
20270
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
20271
+ if (typeof decoded === "undefined") {
20272
+ shouldCacheJsonLd = false;
20273
+ continue;
20274
+ }
20275
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19724
20276
  _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
19725
20277
  }
19726
20278
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
@@ -19737,7 +20289,11 @@ var Application = class Application extends Object$1 {
19737
20289
  ...options,
19738
20290
  baseUrl: options.baseUrl
19739
20291
  });
19740
- if (typeof decoded === "undefined") continue;
20292
+ if (typeof decoded === "undefined") {
20293
+ shouldCacheJsonLd = false;
20294
+ continue;
20295
+ }
20296
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19741
20297
  _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
19742
20298
  }
19743
20299
  instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
@@ -19754,7 +20310,11 @@ var Application = class Application extends Object$1 {
19754
20310
  ...options,
19755
20311
  baseUrl: options.baseUrl
19756
20312
  });
19757
- if (typeof decoded === "undefined") continue;
20313
+ if (typeof decoded === "undefined") {
20314
+ shouldCacheJsonLd = false;
20315
+ continue;
20316
+ }
20317
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19758
20318
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
19759
20319
  }
19760
20320
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -19763,7 +20323,11 @@ var Application = class Application extends Object$1 {
19763
20323
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
19764
20324
  if (v == null) continue;
19765
20325
  const decoded = v["@value"];
19766
- if (typeof decoded === "undefined") continue;
20326
+ if (typeof decoded === "undefined") {
20327
+ shouldCacheJsonLd = false;
20328
+ continue;
20329
+ }
20330
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19767
20331
  _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
19768
20332
  }
19769
20333
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
@@ -19783,7 +20347,11 @@ var Application = class Application extends Object$1 {
19783
20347
  ...options,
19784
20348
  baseUrl: options.baseUrl
19785
20349
  }) : void 0;
19786
- if (typeof decoded === "undefined") continue;
20350
+ if (typeof decoded === "undefined") {
20351
+ shouldCacheJsonLd = false;
20352
+ continue;
20353
+ }
20354
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19787
20355
  _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
19788
20356
  }
19789
20357
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
@@ -19803,7 +20371,11 @@ var Application = class Application extends Object$1 {
19803
20371
  ...options,
19804
20372
  baseUrl: options.baseUrl
19805
20373
  }) : void 0;
19806
- if (typeof decoded === "undefined") continue;
20374
+ if (typeof decoded === "undefined") {
20375
+ shouldCacheJsonLd = false;
20376
+ continue;
20377
+ }
20378
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19807
20379
  _41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
19808
20380
  }
19809
20381
  instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
@@ -19820,7 +20392,11 @@ var Application = class Application extends Object$1 {
19820
20392
  ...options,
19821
20393
  baseUrl: options.baseUrl
19822
20394
  });
19823
- if (typeof decoded === "undefined") continue;
20395
+ if (typeof decoded === "undefined") {
20396
+ shouldCacheJsonLd = false;
20397
+ continue;
20398
+ }
20399
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19824
20400
  _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
19825
20401
  }
19826
20402
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
@@ -19837,7 +20413,11 @@ var Application = class Application extends Object$1 {
19837
20413
  ...options,
19838
20414
  baseUrl: options.baseUrl
19839
20415
  });
19840
- if (typeof decoded === "undefined") continue;
20416
+ if (typeof decoded === "undefined") {
20417
+ shouldCacheJsonLd = false;
20418
+ continue;
20419
+ }
20420
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19841
20421
  _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
19842
20422
  }
19843
20423
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
@@ -19854,7 +20434,11 @@ var Application = class Application extends Object$1 {
19854
20434
  ...options,
19855
20435
  baseUrl: options.baseUrl
19856
20436
  });
19857
- if (typeof decoded === "undefined") continue;
20437
+ if (typeof decoded === "undefined") {
20438
+ shouldCacheJsonLd = false;
20439
+ continue;
20440
+ }
20441
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19858
20442
  _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
19859
20443
  }
19860
20444
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
@@ -19871,7 +20455,11 @@ var Application = class Application extends Object$1 {
19871
20455
  ...options,
19872
20456
  baseUrl: options.baseUrl
19873
20457
  });
19874
- if (typeof decoded === "undefined") continue;
20458
+ if (typeof decoded === "undefined") {
20459
+ shouldCacheJsonLd = false;
20460
+ continue;
20461
+ }
20462
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19875
20463
  _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
19876
20464
  }
19877
20465
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
@@ -19888,7 +20476,11 @@ var Application = class Application extends Object$1 {
19888
20476
  ...options,
19889
20477
  baseUrl: options.baseUrl
19890
20478
  });
19891
- if (typeof decoded === "undefined") continue;
20479
+ if (typeof decoded === "undefined") {
20480
+ shouldCacheJsonLd = false;
20481
+ continue;
20482
+ }
20483
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19892
20484
  _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
19893
20485
  }
19894
20486
  instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
@@ -19905,7 +20497,11 @@ var Application = class Application extends Object$1 {
19905
20497
  ...options,
19906
20498
  baseUrl: options.baseUrl
19907
20499
  });
19908
- if (typeof decoded === "undefined") continue;
20500
+ if (typeof decoded === "undefined") {
20501
+ shouldCacheJsonLd = false;
20502
+ continue;
20503
+ }
20504
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19909
20505
  _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
19910
20506
  }
19911
20507
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
@@ -19917,7 +20513,11 @@ var Application = class Application extends Object$1 {
19917
20513
  ...options,
19918
20514
  baseUrl: options.baseUrl
19919
20515
  });
19920
- if (typeof decoded === "undefined") continue;
20516
+ if (typeof decoded === "undefined") {
20517
+ shouldCacheJsonLd = false;
20518
+ continue;
20519
+ }
20520
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19921
20521
  _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
19922
20522
  }
19923
20523
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
@@ -19926,7 +20526,11 @@ var Application = class Application extends Object$1 {
19926
20526
  for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
19927
20527
  if (v == null) continue;
19928
20528
  const decoded = v["@value"];
19929
- if (typeof decoded === "undefined") continue;
20529
+ if (typeof decoded === "undefined") {
20530
+ shouldCacheJsonLd = false;
20531
+ continue;
20532
+ }
20533
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19930
20534
  _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
19931
20535
  }
19932
20536
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
@@ -19935,7 +20539,11 @@ var Application = class Application extends Object$1 {
19935
20539
  for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
19936
20540
  if (v == null) continue;
19937
20541
  const decoded = v["@value"];
19938
- if (typeof decoded === "undefined") continue;
20542
+ if (typeof decoded === "undefined") {
20543
+ shouldCacheJsonLd = false;
20544
+ continue;
20545
+ }
20546
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19939
20547
  _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
19940
20548
  }
19941
20549
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
@@ -19944,7 +20552,11 @@ var Application = class Application extends Object$1 {
19944
20552
  for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
19945
20553
  if (v == null) continue;
19946
20554
  const decoded = v["@value"];
19947
- if (typeof decoded === "undefined") continue;
20555
+ if (typeof decoded === "undefined") {
20556
+ shouldCacheJsonLd = false;
20557
+ continue;
20558
+ }
20559
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19948
20560
  _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
19949
20561
  }
19950
20562
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
@@ -19953,7 +20565,11 @@ var Application = class Application extends Object$1 {
19953
20565
  for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
19954
20566
  if (v == null) continue;
19955
20567
  const decoded = v["@value"];
19956
- if (typeof decoded === "undefined") continue;
20568
+ if (typeof decoded === "undefined") {
20569
+ shouldCacheJsonLd = false;
20570
+ continue;
20571
+ }
20572
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19957
20573
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
19958
20574
  }
19959
20575
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
@@ -19982,7 +20598,11 @@ var Application = class Application extends Object$1 {
19982
20598
  ...options,
19983
20599
  baseUrl: options.baseUrl
19984
20600
  }) : void 0;
19985
- if (typeof decoded === "undefined") continue;
20601
+ if (typeof decoded === "undefined") {
20602
+ shouldCacheJsonLd = false;
20603
+ continue;
20604
+ }
20605
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
19986
20606
  _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
19987
20607
  }
19988
20608
  instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
@@ -20011,7 +20631,11 @@ var Application = class Application extends Object$1 {
20011
20631
  ...options,
20012
20632
  baseUrl: options.baseUrl
20013
20633
  }) : void 0;
20014
- if (typeof decoded === "undefined") continue;
20634
+ if (typeof decoded === "undefined") {
20635
+ shouldCacheJsonLd = false;
20636
+ continue;
20637
+ }
20638
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
20015
20639
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
20016
20640
  }
20017
20641
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
@@ -20028,7 +20652,11 @@ var Application = class Application extends Object$1 {
20028
20652
  ...options,
20029
20653
  baseUrl: options.baseUrl
20030
20654
  });
20031
- if (typeof decoded === "undefined") continue;
20655
+ if (typeof decoded === "undefined") {
20656
+ shouldCacheJsonLd = false;
20657
+ continue;
20658
+ }
20659
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
20032
20660
  _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
20033
20661
  }
20034
20662
  instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
@@ -20037,7 +20665,11 @@ var Application = class Application extends Object$1 {
20037
20665
  for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
20038
20666
  if (v == null) continue;
20039
20667
  const decoded = v["@value"];
20040
- if (typeof decoded === "undefined") continue;
20668
+ if (typeof decoded === "undefined") {
20669
+ shouldCacheJsonLd = false;
20670
+ continue;
20671
+ }
20672
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
20041
20673
  _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
20042
20674
  }
20043
20675
  instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
@@ -20046,11 +20678,16 @@ var Application = class Application extends Object$1 {
20046
20678
  for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
20047
20679
  if (v == null) continue;
20048
20680
  const decoded = v["@value"];
20049
- if (typeof decoded === "undefined") continue;
20681
+ if (typeof decoded === "undefined") {
20682
+ shouldCacheJsonLd = false;
20683
+ continue;
20684
+ }
20685
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
20050
20686
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
20051
20687
  }
20052
20688
  instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
20053
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
20689
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
20690
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
20054
20691
  instance._cachedJsonLd = structuredClone(json);
20055
20692
  } catch {
20056
20693
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -20320,7 +20957,9 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
20320
20957
  _fromSubclass: true
20321
20958
  });
20322
20959
  if (!(instance instanceof IntransitiveActivity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
20323
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
20960
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
20961
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
20962
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
20324
20963
  instance._cachedJsonLd = structuredClone(json);
20325
20964
  } catch {
20326
20965
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -20471,7 +21110,9 @@ var Arrive = class Arrive extends IntransitiveActivity {
20471
21110
  _fromSubclass: true
20472
21111
  });
20473
21112
  if (!(instance instanceof Arrive)) throw new TypeError("Unexpected type: " + instance.constructor.name);
20474
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
21113
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
21114
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
21115
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
20475
21116
  instance._cachedJsonLd = structuredClone(json);
20476
21117
  } catch {
20477
21118
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21032,6 +21673,7 @@ var Article = class Article extends Object$1 {
21032
21673
  _fromSubclass: true
21033
21674
  });
21034
21675
  if (!(instance instanceof Article)) throw new TypeError("Unexpected type: " + instance.constructor.name);
21676
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
21035
21677
  const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
21036
21678
  let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
21037
21679
  for (const v of _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array == null ? [] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array.length === 1 && "@list" in _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0] ? _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0]["@list"] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array) {
@@ -21045,7 +21687,11 @@ var Article = class Article extends Object$1 {
21045
21687
  ...options,
21046
21688
  baseUrl: options.baseUrl
21047
21689
  });
21048
- if (typeof decoded === "undefined") continue;
21690
+ if (typeof decoded === "undefined") {
21691
+ shouldCacheJsonLd = false;
21692
+ continue;
21693
+ }
21694
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
21049
21695
  _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
21050
21696
  }
21051
21697
  instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
@@ -21056,7 +21702,11 @@ var Article = class Article extends Object$1 {
21056
21702
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
21057
21703
  if (v == null) continue;
21058
21704
  const decoded = new URL(v["@value"]);
21059
- if (typeof decoded === "undefined") continue;
21705
+ if (typeof decoded === "undefined") {
21706
+ shouldCacheJsonLd = false;
21707
+ continue;
21708
+ }
21709
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
21060
21710
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
21061
21711
  }
21062
21712
  instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
@@ -21073,11 +21723,16 @@ var Article = class Article extends Object$1 {
21073
21723
  ...options,
21074
21724
  baseUrl: options.baseUrl
21075
21725
  });
21076
- if (typeof decoded === "undefined") continue;
21726
+ if (typeof decoded === "undefined") {
21727
+ shouldCacheJsonLd = false;
21728
+ continue;
21729
+ }
21730
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
21077
21731
  _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
21078
21732
  }
21079
21733
  instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
21080
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
21734
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
21735
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
21081
21736
  instance._cachedJsonLd = structuredClone(json);
21082
21737
  } catch {
21083
21738
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21320,12 +21975,17 @@ var Document = class Document extends Object$1 {
21320
21975
  _fromSubclass: true
21321
21976
  });
21322
21977
  if (!(instance instanceof Document)) throw new TypeError("Unexpected type: " + instance.constructor.name);
21978
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
21323
21979
  const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
21324
21980
  let _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array = values["https://www.w3.org/ns/activitystreams#width"];
21325
21981
  for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array == null ? [] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array.length === 1 && "@list" in _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0] ? _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0]["@list"] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array) {
21326
21982
  if (v == null) continue;
21327
21983
  const decoded = v["@value"];
21328
- if (typeof decoded === "undefined") continue;
21984
+ if (typeof decoded === "undefined") {
21985
+ shouldCacheJsonLd = false;
21986
+ continue;
21987
+ }
21988
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
21329
21989
  _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
21330
21990
  }
21331
21991
  instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
@@ -21334,11 +21994,16 @@ var Document = class Document extends Object$1 {
21334
21994
  for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array == null ? [] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array.length === 1 && "@list" in _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0] ? _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0]["@list"] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array) {
21335
21995
  if (v == null) continue;
21336
21996
  const decoded = v["@value"];
21337
- if (typeof decoded === "undefined") continue;
21997
+ if (typeof decoded === "undefined") {
21998
+ shouldCacheJsonLd = false;
21999
+ continue;
22000
+ }
22001
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
21338
22002
  _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
21339
22003
  }
21340
22004
  instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
21341
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
22005
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
22006
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
21342
22007
  instance._cachedJsonLd = structuredClone(json);
21343
22008
  } catch {
21344
22009
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21512,7 +22177,9 @@ var Audio = class Audio extends Document {
21512
22177
  _fromSubclass: true
21513
22178
  });
21514
22179
  if (!(instance instanceof Audio)) throw new TypeError("Unexpected type: " + instance.constructor.name);
21515
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
22180
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
22181
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
22182
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
21516
22183
  instance._cachedJsonLd = structuredClone(json);
21517
22184
  } catch {
21518
22185
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21663,7 +22330,9 @@ var Ignore = class Ignore extends Activity {
21663
22330
  _fromSubclass: true
21664
22331
  });
21665
22332
  if (!(instance instanceof Ignore)) throw new TypeError("Unexpected type: " + instance.constructor.name);
21666
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
22333
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
22334
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
22335
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
21667
22336
  instance._cachedJsonLd = structuredClone(json);
21668
22337
  } catch {
21669
22338
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21815,7 +22484,9 @@ var Block = class Block extends Ignore {
21815
22484
  _fromSubclass: true
21816
22485
  });
21817
22486
  if (!(instance instanceof Block)) throw new TypeError("Unexpected type: " + instance.constructor.name);
21818
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
22487
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
22488
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
22489
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
21819
22490
  instance._cachedJsonLd = structuredClone(json);
21820
22491
  } catch {
21821
22492
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23902,12 +24573,17 @@ var Collection = class Collection extends Object$1 {
23902
24573
  _fromSubclass: true
23903
24574
  });
23904
24575
  if (!(instance instanceof Collection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
24576
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
23905
24577
  const _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [];
23906
24578
  let _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array = values["https://www.w3.org/ns/activitystreams#totalItems"];
23907
24579
  for (const v of _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array == null ? [] : _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array.length === 1 && "@list" in _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array[0] ? _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array[0]["@list"] : _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array) {
23908
24580
  if (v == null) continue;
23909
24581
  const decoded = v["@value"];
23910
- if (typeof decoded === "undefined") continue;
24582
+ if (typeof decoded === "undefined") {
24583
+ shouldCacheJsonLd = false;
24584
+ continue;
24585
+ }
24586
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
23911
24587
  _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.push(decoded);
23912
24588
  }
23913
24589
  instance.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
@@ -23924,7 +24600,11 @@ var Collection = class Collection extends Object$1 {
23924
24600
  ...options,
23925
24601
  baseUrl: options.baseUrl
23926
24602
  });
23927
- if (typeof decoded === "undefined") continue;
24603
+ if (typeof decoded === "undefined") {
24604
+ shouldCacheJsonLd = false;
24605
+ continue;
24606
+ }
24607
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
23928
24608
  _3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded);
23929
24609
  }
23930
24610
  instance.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = _3UyUdxnyn6cDn53QKrh4MBiearma_current;
@@ -23941,7 +24621,11 @@ var Collection = class Collection extends Object$1 {
23941
24621
  ...options,
23942
24622
  baseUrl: options.baseUrl
23943
24623
  });
23944
- if (typeof decoded === "undefined") continue;
24624
+ if (typeof decoded === "undefined") {
24625
+ shouldCacheJsonLd = false;
24626
+ continue;
24627
+ }
24628
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
23945
24629
  _J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded);
23946
24630
  }
23947
24631
  instance.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = _J52RqweMe6hhv7RnLJMC8BExTE5_first;
@@ -23958,7 +24642,11 @@ var Collection = class Collection extends Object$1 {
23958
24642
  ...options,
23959
24643
  baseUrl: options.baseUrl
23960
24644
  });
23961
- if (typeof decoded === "undefined") continue;
24645
+ if (typeof decoded === "undefined") {
24646
+ shouldCacheJsonLd = false;
24647
+ continue;
24648
+ }
24649
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
23962
24650
  _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded);
23963
24651
  }
23964
24652
  instance.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
@@ -24048,7 +24736,11 @@ var Collection = class Collection extends Object$1 {
24048
24736
  ...options,
24049
24737
  baseUrl: options.baseUrl
24050
24738
  }) : void 0;
24051
- if (typeof decoded === "undefined") continue;
24739
+ if (typeof decoded === "undefined") {
24740
+ shouldCacheJsonLd = false;
24741
+ continue;
24742
+ }
24743
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24052
24744
  _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
24053
24745
  }
24054
24746
  instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
@@ -24065,7 +24757,11 @@ var Collection = class Collection extends Object$1 {
24065
24757
  ...options,
24066
24758
  baseUrl: options.baseUrl
24067
24759
  });
24068
- if (typeof decoded === "undefined") continue;
24760
+ if (typeof decoded === "undefined") {
24761
+ shouldCacheJsonLd = false;
24762
+ continue;
24763
+ }
24764
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24069
24765
  _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded);
24070
24766
  }
24071
24767
  instance.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
@@ -24082,7 +24778,11 @@ var Collection = class Collection extends Object$1 {
24082
24778
  ...options,
24083
24779
  baseUrl: options.baseUrl
24084
24780
  });
24085
- if (typeof decoded === "undefined") continue;
24781
+ if (typeof decoded === "undefined") {
24782
+ shouldCacheJsonLd = false;
24783
+ continue;
24784
+ }
24785
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24086
24786
  _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded);
24087
24787
  }
24088
24788
  instance.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
@@ -24099,7 +24799,11 @@ var Collection = class Collection extends Object$1 {
24099
24799
  ...options,
24100
24800
  baseUrl: options.baseUrl
24101
24801
  });
24102
- if (typeof decoded === "undefined") continue;
24802
+ if (typeof decoded === "undefined") {
24803
+ shouldCacheJsonLd = false;
24804
+ continue;
24805
+ }
24806
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24103
24807
  _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded);
24104
24808
  }
24105
24809
  instance.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
@@ -24116,7 +24820,11 @@ var Collection = class Collection extends Object$1 {
24116
24820
  ...options,
24117
24821
  baseUrl: options.baseUrl
24118
24822
  });
24119
- if (typeof decoded === "undefined") continue;
24823
+ if (typeof decoded === "undefined") {
24824
+ shouldCacheJsonLd = false;
24825
+ continue;
24826
+ }
24827
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24120
24828
  _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded);
24121
24829
  }
24122
24830
  instance.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
@@ -24133,7 +24841,11 @@ var Collection = class Collection extends Object$1 {
24133
24841
  ...options,
24134
24842
  baseUrl: options.baseUrl
24135
24843
  });
24136
- if (typeof decoded === "undefined") continue;
24844
+ if (typeof decoded === "undefined") {
24845
+ shouldCacheJsonLd = false;
24846
+ continue;
24847
+ }
24848
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24137
24849
  _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded);
24138
24850
  }
24139
24851
  instance.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
@@ -24150,7 +24862,11 @@ var Collection = class Collection extends Object$1 {
24150
24862
  ...options,
24151
24863
  baseUrl: options.baseUrl
24152
24864
  });
24153
- if (typeof decoded === "undefined") continue;
24865
+ if (typeof decoded === "undefined") {
24866
+ shouldCacheJsonLd = false;
24867
+ continue;
24868
+ }
24869
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24154
24870
  _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded);
24155
24871
  }
24156
24872
  instance.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
@@ -24167,7 +24883,11 @@ var Collection = class Collection extends Object$1 {
24167
24883
  ...options,
24168
24884
  baseUrl: options.baseUrl
24169
24885
  });
24170
- if (typeof decoded === "undefined") continue;
24886
+ if (typeof decoded === "undefined") {
24887
+ shouldCacheJsonLd = false;
24888
+ continue;
24889
+ }
24890
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24171
24891
  _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded);
24172
24892
  }
24173
24893
  instance.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
@@ -24184,11 +24904,16 @@ var Collection = class Collection extends Object$1 {
24184
24904
  ...options,
24185
24905
  baseUrl: options.baseUrl
24186
24906
  });
24187
- if (typeof decoded === "undefined") continue;
24907
+ if (typeof decoded === "undefined") {
24908
+ shouldCacheJsonLd = false;
24909
+ continue;
24910
+ }
24911
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24188
24912
  _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded);
24189
24913
  }
24190
24914
  instance.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
24191
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
24915
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
24916
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
24192
24917
  instance._cachedJsonLd = structuredClone(json);
24193
24918
  } catch {
24194
24919
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -24930,6 +25655,7 @@ var CollectionPage = class CollectionPage extends Collection {
24930
25655
  _fromSubclass: true
24931
25656
  });
24932
25657
  if (!(instance instanceof CollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
25658
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
24933
25659
  const _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [];
24934
25660
  let _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array = values["https://www.w3.org/ns/activitystreams#partOf"];
24935
25661
  for (const v of _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array == null ? [] : _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array.length === 1 && "@list" in _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array[0] ? _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array[0]["@list"] : _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array) {
@@ -24943,7 +25669,11 @@ var CollectionPage = class CollectionPage extends Collection {
24943
25669
  ...options,
24944
25670
  baseUrl: options.baseUrl
24945
25671
  });
24946
- if (typeof decoded === "undefined") continue;
25672
+ if (typeof decoded === "undefined") {
25673
+ shouldCacheJsonLd = false;
25674
+ continue;
25675
+ }
25676
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24947
25677
  _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded);
24948
25678
  }
24949
25679
  instance.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
@@ -24960,7 +25690,11 @@ var CollectionPage = class CollectionPage extends Collection {
24960
25690
  ...options,
24961
25691
  baseUrl: options.baseUrl
24962
25692
  });
24963
- if (typeof decoded === "undefined") continue;
25693
+ if (typeof decoded === "undefined") {
25694
+ shouldCacheJsonLd = false;
25695
+ continue;
25696
+ }
25697
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24964
25698
  _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded);
24965
25699
  }
24966
25700
  instance.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
@@ -24977,11 +25711,16 @@ var CollectionPage = class CollectionPage extends Collection {
24977
25711
  ...options,
24978
25712
  baseUrl: options.baseUrl
24979
25713
  });
24980
- if (typeof decoded === "undefined") continue;
25714
+ if (typeof decoded === "undefined") {
25715
+ shouldCacheJsonLd = false;
25716
+ continue;
25717
+ }
25718
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
24981
25719
  _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded);
24982
25720
  }
24983
25721
  instance.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
24984
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
25722
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
25723
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
24985
25724
  instance._cachedJsonLd = structuredClone(json);
24986
25725
  } catch {
24987
25726
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -25176,7 +25915,9 @@ var Create = class Create extends Activity {
25176
25915
  _fromSubclass: true
25177
25916
  });
25178
25917
  if (!(instance instanceof Create)) throw new TypeError("Unexpected type: " + instance.constructor.name);
25179
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
25918
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
25919
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
25920
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
25180
25921
  instance._cachedJsonLd = structuredClone(json);
25181
25922
  } catch {
25182
25923
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -25352,7 +26093,9 @@ var Delete = class Delete extends Activity {
25352
26093
  _fromSubclass: true
25353
26094
  });
25354
26095
  if (!(instance instanceof Delete)) throw new TypeError("Unexpected type: " + instance.constructor.name);
25355
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
26096
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
26097
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
26098
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
25356
26099
  instance._cachedJsonLd = structuredClone(json);
25357
26100
  } catch {
25358
26101
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -25505,7 +26248,9 @@ var Dislike = class Dislike extends Activity {
25505
26248
  _fromSubclass: true
25506
26249
  });
25507
26250
  if (!(instance instanceof Dislike)) throw new TypeError("Unexpected type: " + instance.constructor.name);
25508
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
26251
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
26252
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
26253
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
25509
26254
  instance._cachedJsonLd = structuredClone(json);
25510
26255
  } catch {
25511
26256
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -25531,6 +26276,7 @@ var Endpoints = class {
25531
26276
  #warning;
25532
26277
  #cachedJsonLd;
25533
26278
  #_baseUrl;
26279
+ #shouldCacheJsonLd = true;
25534
26280
  id;
25535
26281
  get _documentLoader() {
25536
26282
  return this.#documentLoader;
@@ -25553,6 +26299,17 @@ var Endpoints = class {
25553
26299
  get _baseUrl() {
25554
26300
  return this.#_baseUrl;
25555
26301
  }
26302
+ get _shouldCacheJsonLd() {
26303
+ return this.#shouldCacheJsonLd;
26304
+ }
26305
+ set _shouldCacheJsonLd(value) {
26306
+ this.#shouldCacheJsonLd = value;
26307
+ }
26308
+ static _shouldCacheDecodedJsonLd(value) {
26309
+ if (value == null || typeof value !== "object") return true;
26310
+ if (!("_shouldCacheJsonLd" in value)) return true;
26311
+ return value._shouldCacheJsonLd;
26312
+ }
25556
26313
  /**
25557
26314
  * The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
25558
26315
  */
@@ -25852,12 +26609,17 @@ var Endpoints = class {
25852
26609
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Endpoints")) throw new TypeError("Invalid type: " + values["@type"]);
25853
26610
  }
25854
26611
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
26612
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
25855
26613
  const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [];
25856
26614
  let _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array = values["https://www.w3.org/ns/activitystreams#proxyUrl"];
25857
26615
  for (const v of _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array == null ? [] : _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array.length === 1 && "@list" in _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array[0] ? _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array[0]["@list"] : _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array) {
25858
26616
  if (v == null) continue;
25859
26617
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
25860
- if (typeof decoded === "undefined") continue;
26618
+ if (typeof decoded === "undefined") {
26619
+ shouldCacheJsonLd = false;
26620
+ continue;
26621
+ }
26622
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
25861
26623
  _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded);
25862
26624
  }
25863
26625
  instance.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
@@ -25866,7 +26628,11 @@ var Endpoints = class {
25866
26628
  for (const v of _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array == null ? [] : _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array.length === 1 && "@list" in _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array[0] ? _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array[0]["@list"] : _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array) {
25867
26629
  if (v == null) continue;
25868
26630
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
25869
- if (typeof decoded === "undefined") continue;
26631
+ if (typeof decoded === "undefined") {
26632
+ shouldCacheJsonLd = false;
26633
+ continue;
26634
+ }
26635
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
25870
26636
  _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded);
25871
26637
  }
25872
26638
  instance.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
@@ -25875,7 +26641,11 @@ var Endpoints = class {
25875
26641
  for (const v of _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array == null ? [] : _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array.length === 1 && "@list" in _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array[0] ? _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array[0]["@list"] : _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array) {
25876
26642
  if (v == null) continue;
25877
26643
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
25878
- if (typeof decoded === "undefined") continue;
26644
+ if (typeof decoded === "undefined") {
26645
+ shouldCacheJsonLd = false;
26646
+ continue;
26647
+ }
26648
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
25879
26649
  _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded);
25880
26650
  }
25881
26651
  instance.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
@@ -25884,7 +26654,11 @@ var Endpoints = class {
25884
26654
  for (const v of _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array == null ? [] : _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array.length === 1 && "@list" in _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array[0] ? _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array[0]["@list"] : _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array) {
25885
26655
  if (v == null) continue;
25886
26656
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
25887
- if (typeof decoded === "undefined") continue;
26657
+ if (typeof decoded === "undefined") {
26658
+ shouldCacheJsonLd = false;
26659
+ continue;
26660
+ }
26661
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
25888
26662
  _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded);
25889
26663
  }
25890
26664
  instance.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
@@ -25893,7 +26667,11 @@ var Endpoints = class {
25893
26667
  for (const v of _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array == null ? [] : _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array.length === 1 && "@list" in _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array[0] ? _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array[0]["@list"] : _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array) {
25894
26668
  if (v == null) continue;
25895
26669
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
25896
- if (typeof decoded === "undefined") continue;
26670
+ if (typeof decoded === "undefined") {
26671
+ shouldCacheJsonLd = false;
26672
+ continue;
26673
+ }
26674
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
25897
26675
  _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded);
25898
26676
  }
25899
26677
  instance.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
@@ -25902,11 +26680,16 @@ var Endpoints = class {
25902
26680
  for (const v of _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array == null ? [] : _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array.length === 1 && "@list" in _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array[0] ? _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array[0]["@list"] : _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array) {
25903
26681
  if (v == null) continue;
25904
26682
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
25905
- if (typeof decoded === "undefined") continue;
26683
+ if (typeof decoded === "undefined") {
26684
+ shouldCacheJsonLd = false;
26685
+ continue;
26686
+ }
26687
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
25906
26688
  _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
25907
26689
  }
25908
26690
  instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
25909
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
26691
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
26692
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
25910
26693
  instance._cachedJsonLd = structuredClone(json);
25911
26694
  } catch {
25912
26695
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -26104,7 +26887,9 @@ var Event = class Event extends Object$1 {
26104
26887
  _fromSubclass: true
26105
26888
  });
26106
26889
  if (!(instance instanceof Event)) throw new TypeError("Unexpected type: " + instance.constructor.name);
26107
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
26890
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
26891
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
26892
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
26108
26893
  instance._cachedJsonLd = structuredClone(json);
26109
26894
  } catch {
26110
26895
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -26255,7 +27040,9 @@ var Flag = class Flag extends Activity {
26255
27040
  _fromSubclass: true
26256
27041
  });
26257
27042
  if (!(instance instanceof Flag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
26258
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
27043
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
27044
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
27045
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
26259
27046
  instance._cachedJsonLd = structuredClone(json);
26260
27047
  } catch {
26261
27048
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -26410,7 +27197,9 @@ var Follow = class Follow extends Activity {
26410
27197
  _fromSubclass: true
26411
27198
  });
26412
27199
  if (!(instance instanceof Follow)) throw new TypeError("Unexpected type: " + instance.constructor.name);
26413
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
27200
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
27201
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
27202
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
26414
27203
  instance._cachedJsonLd = structuredClone(json);
26415
27204
  } catch {
26416
27205
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -29329,12 +30118,17 @@ var Group = class Group extends Object$1 {
29329
30118
  _fromSubclass: true
29330
30119
  });
29331
30120
  if (!(instance instanceof Group)) throw new TypeError("Unexpected type: " + instance.constructor.name);
30121
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
29332
30122
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
29333
30123
  let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
29334
30124
  for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
29335
30125
  if (v == null) continue;
29336
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
29337
- if (typeof decoded === "undefined") continue;
30126
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
30127
+ if (typeof decoded === "undefined") {
30128
+ shouldCacheJsonLd = false;
30129
+ continue;
30130
+ }
30131
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29338
30132
  _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
29339
30133
  }
29340
30134
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
@@ -29351,7 +30145,11 @@ var Group = class Group extends Object$1 {
29351
30145
  ...options,
29352
30146
  baseUrl: options.baseUrl
29353
30147
  });
29354
- if (typeof decoded === "undefined") continue;
30148
+ if (typeof decoded === "undefined") {
30149
+ shouldCacheJsonLd = false;
30150
+ continue;
30151
+ }
30152
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29355
30153
  _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
29356
30154
  }
29357
30155
  instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
@@ -29368,7 +30166,11 @@ var Group = class Group extends Object$1 {
29368
30166
  ...options,
29369
30167
  baseUrl: options.baseUrl
29370
30168
  });
29371
- if (typeof decoded === "undefined") continue;
30169
+ if (typeof decoded === "undefined") {
30170
+ shouldCacheJsonLd = false;
30171
+ continue;
30172
+ }
30173
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29372
30174
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
29373
30175
  }
29374
30176
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -29377,7 +30179,11 @@ var Group = class Group extends Object$1 {
29377
30179
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
29378
30180
  if (v == null) continue;
29379
30181
  const decoded = v["@value"];
29380
- if (typeof decoded === "undefined") continue;
30182
+ if (typeof decoded === "undefined") {
30183
+ shouldCacheJsonLd = false;
30184
+ continue;
30185
+ }
30186
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29381
30187
  _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
29382
30188
  }
29383
30189
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
@@ -29397,7 +30203,11 @@ var Group = class Group extends Object$1 {
29397
30203
  ...options,
29398
30204
  baseUrl: options.baseUrl
29399
30205
  }) : void 0;
29400
- if (typeof decoded === "undefined") continue;
30206
+ if (typeof decoded === "undefined") {
30207
+ shouldCacheJsonLd = false;
30208
+ continue;
30209
+ }
30210
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29401
30211
  _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
29402
30212
  }
29403
30213
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
@@ -29417,7 +30227,11 @@ var Group = class Group extends Object$1 {
29417
30227
  ...options,
29418
30228
  baseUrl: options.baseUrl
29419
30229
  }) : void 0;
29420
- if (typeof decoded === "undefined") continue;
30230
+ if (typeof decoded === "undefined") {
30231
+ shouldCacheJsonLd = false;
30232
+ continue;
30233
+ }
30234
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29421
30235
  _41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
29422
30236
  }
29423
30237
  instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
@@ -29434,7 +30248,11 @@ var Group = class Group extends Object$1 {
29434
30248
  ...options,
29435
30249
  baseUrl: options.baseUrl
29436
30250
  });
29437
- if (typeof decoded === "undefined") continue;
30251
+ if (typeof decoded === "undefined") {
30252
+ shouldCacheJsonLd = false;
30253
+ continue;
30254
+ }
30255
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29438
30256
  _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
29439
30257
  }
29440
30258
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
@@ -29451,7 +30269,11 @@ var Group = class Group extends Object$1 {
29451
30269
  ...options,
29452
30270
  baseUrl: options.baseUrl
29453
30271
  });
29454
- if (typeof decoded === "undefined") continue;
30272
+ if (typeof decoded === "undefined") {
30273
+ shouldCacheJsonLd = false;
30274
+ continue;
30275
+ }
30276
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29455
30277
  _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
29456
30278
  }
29457
30279
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
@@ -29468,7 +30290,11 @@ var Group = class Group extends Object$1 {
29468
30290
  ...options,
29469
30291
  baseUrl: options.baseUrl
29470
30292
  });
29471
- if (typeof decoded === "undefined") continue;
30293
+ if (typeof decoded === "undefined") {
30294
+ shouldCacheJsonLd = false;
30295
+ continue;
30296
+ }
30297
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29472
30298
  _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
29473
30299
  }
29474
30300
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
@@ -29485,7 +30311,11 @@ var Group = class Group extends Object$1 {
29485
30311
  ...options,
29486
30312
  baseUrl: options.baseUrl
29487
30313
  });
29488
- if (typeof decoded === "undefined") continue;
30314
+ if (typeof decoded === "undefined") {
30315
+ shouldCacheJsonLd = false;
30316
+ continue;
30317
+ }
30318
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29489
30319
  _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
29490
30320
  }
29491
30321
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
@@ -29502,7 +30332,11 @@ var Group = class Group extends Object$1 {
29502
30332
  ...options,
29503
30333
  baseUrl: options.baseUrl
29504
30334
  });
29505
- if (typeof decoded === "undefined") continue;
30335
+ if (typeof decoded === "undefined") {
30336
+ shouldCacheJsonLd = false;
30337
+ continue;
30338
+ }
30339
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29506
30340
  _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
29507
30341
  }
29508
30342
  instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
@@ -29519,7 +30353,11 @@ var Group = class Group extends Object$1 {
29519
30353
  ...options,
29520
30354
  baseUrl: options.baseUrl
29521
30355
  });
29522
- if (typeof decoded === "undefined") continue;
30356
+ if (typeof decoded === "undefined") {
30357
+ shouldCacheJsonLd = false;
30358
+ continue;
30359
+ }
30360
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29523
30361
  _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
29524
30362
  }
29525
30363
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
@@ -29531,7 +30369,11 @@ var Group = class Group extends Object$1 {
29531
30369
  ...options,
29532
30370
  baseUrl: options.baseUrl
29533
30371
  });
29534
- if (typeof decoded === "undefined") continue;
30372
+ if (typeof decoded === "undefined") {
30373
+ shouldCacheJsonLd = false;
30374
+ continue;
30375
+ }
30376
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29535
30377
  _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
29536
30378
  }
29537
30379
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
@@ -29540,7 +30382,11 @@ var Group = class Group extends Object$1 {
29540
30382
  for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
29541
30383
  if (v == null) continue;
29542
30384
  const decoded = v["@value"];
29543
- if (typeof decoded === "undefined") continue;
30385
+ if (typeof decoded === "undefined") {
30386
+ shouldCacheJsonLd = false;
30387
+ continue;
30388
+ }
30389
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29544
30390
  _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
29545
30391
  }
29546
30392
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
@@ -29549,7 +30395,11 @@ var Group = class Group extends Object$1 {
29549
30395
  for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
29550
30396
  if (v == null) continue;
29551
30397
  const decoded = v["@value"];
29552
- if (typeof decoded === "undefined") continue;
30398
+ if (typeof decoded === "undefined") {
30399
+ shouldCacheJsonLd = false;
30400
+ continue;
30401
+ }
30402
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29553
30403
  _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
29554
30404
  }
29555
30405
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
@@ -29558,7 +30408,11 @@ var Group = class Group extends Object$1 {
29558
30408
  for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
29559
30409
  if (v == null) continue;
29560
30410
  const decoded = v["@value"];
29561
- if (typeof decoded === "undefined") continue;
30411
+ if (typeof decoded === "undefined") {
30412
+ shouldCacheJsonLd = false;
30413
+ continue;
30414
+ }
30415
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29562
30416
  _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
29563
30417
  }
29564
30418
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
@@ -29567,7 +30421,11 @@ var Group = class Group extends Object$1 {
29567
30421
  for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
29568
30422
  if (v == null) continue;
29569
30423
  const decoded = v["@value"];
29570
- if (typeof decoded === "undefined") continue;
30424
+ if (typeof decoded === "undefined") {
30425
+ shouldCacheJsonLd = false;
30426
+ continue;
30427
+ }
30428
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29571
30429
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
29572
30430
  }
29573
30431
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
@@ -29596,7 +30454,11 @@ var Group = class Group extends Object$1 {
29596
30454
  ...options,
29597
30455
  baseUrl: options.baseUrl
29598
30456
  }) : void 0;
29599
- if (typeof decoded === "undefined") continue;
30457
+ if (typeof decoded === "undefined") {
30458
+ shouldCacheJsonLd = false;
30459
+ continue;
30460
+ }
30461
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29600
30462
  _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
29601
30463
  }
29602
30464
  instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
@@ -29625,7 +30487,11 @@ var Group = class Group extends Object$1 {
29625
30487
  ...options,
29626
30488
  baseUrl: options.baseUrl
29627
30489
  }) : void 0;
29628
- if (typeof decoded === "undefined") continue;
30490
+ if (typeof decoded === "undefined") {
30491
+ shouldCacheJsonLd = false;
30492
+ continue;
30493
+ }
30494
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29629
30495
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
29630
30496
  }
29631
30497
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
@@ -29642,7 +30508,11 @@ var Group = class Group extends Object$1 {
29642
30508
  ...options,
29643
30509
  baseUrl: options.baseUrl
29644
30510
  });
29645
- if (typeof decoded === "undefined") continue;
30511
+ if (typeof decoded === "undefined") {
30512
+ shouldCacheJsonLd = false;
30513
+ continue;
30514
+ }
30515
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29646
30516
  _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
29647
30517
  }
29648
30518
  instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
@@ -29651,7 +30521,11 @@ var Group = class Group extends Object$1 {
29651
30521
  for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
29652
30522
  if (v == null) continue;
29653
30523
  const decoded = v["@value"];
29654
- if (typeof decoded === "undefined") continue;
30524
+ if (typeof decoded === "undefined") {
30525
+ shouldCacheJsonLd = false;
30526
+ continue;
30527
+ }
30528
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29655
30529
  _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
29656
30530
  }
29657
30531
  instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
@@ -29660,11 +30534,16 @@ var Group = class Group extends Object$1 {
29660
30534
  for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
29661
30535
  if (v == null) continue;
29662
30536
  const decoded = v["@value"];
29663
- if (typeof decoded === "undefined") continue;
30537
+ if (typeof decoded === "undefined") {
30538
+ shouldCacheJsonLd = false;
30539
+ continue;
30540
+ }
30541
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
29664
30542
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
29665
30543
  }
29666
30544
  instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
29667
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
30545
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
30546
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
29668
30547
  instance._cachedJsonLd = structuredClone(json);
29669
30548
  } catch {
29670
30549
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -29813,6 +30692,7 @@ var Link = class Link {
29813
30692
  #warning;
29814
30693
  #cachedJsonLd;
29815
30694
  #_baseUrl;
30695
+ #shouldCacheJsonLd = true;
29816
30696
  id;
29817
30697
  get _documentLoader() {
29818
30698
  return this.#documentLoader;
@@ -29835,6 +30715,17 @@ var Link = class Link {
29835
30715
  get _baseUrl() {
29836
30716
  return this.#_baseUrl;
29837
30717
  }
30718
+ get _shouldCacheJsonLd() {
30719
+ return this.#shouldCacheJsonLd;
30720
+ }
30721
+ set _shouldCacheJsonLd(value) {
30722
+ this.#shouldCacheJsonLd = value;
30723
+ }
30724
+ static _shouldCacheDecodedJsonLd(value) {
30725
+ if (value == null || typeof value !== "object") return true;
30726
+ if (!("_shouldCacheJsonLd" in value)) return true;
30727
+ return value._shouldCacheJsonLd;
30728
+ }
29838
30729
  /**
29839
30730
  * The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
29840
30731
  */
@@ -30367,12 +31258,17 @@ var Link = class Link {
30367
31258
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Link")) throw new TypeError("Invalid type: " + values["@type"]);
30368
31259
  }
30369
31260
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
31261
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
30370
31262
  const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [];
30371
31263
  let _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array = values["https://www.w3.org/ns/activitystreams#href"];
30372
31264
  for (const v of _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array == null ? [] : _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array.length === 1 && "@list" in _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array[0] ? _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array[0]["@list"] : _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array) {
30373
31265
  if (v == null) continue;
30374
31266
  const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
30375
- if (typeof decoded === "undefined") continue;
31267
+ if (typeof decoded === "undefined") {
31268
+ shouldCacheJsonLd = false;
31269
+ continue;
31270
+ }
31271
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30376
31272
  _pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded);
30377
31273
  }
30378
31274
  instance.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = _pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
@@ -30381,7 +31277,11 @@ var Link = class Link {
30381
31277
  for (const v of _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array == null ? [] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array.length === 1 && "@list" in _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0] ? _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0]["@list"] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array) {
30382
31278
  if (v == null) continue;
30383
31279
  const decoded = v["@value"];
30384
- if (typeof decoded === "undefined") continue;
31280
+ if (typeof decoded === "undefined") {
31281
+ shouldCacheJsonLd = false;
31282
+ continue;
31283
+ }
31284
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30385
31285
  _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.push(decoded);
30386
31286
  }
30387
31287
  instance.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
@@ -30390,7 +31290,11 @@ var Link = class Link {
30390
31290
  for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
30391
31291
  if (v == null) continue;
30392
31292
  const decoded = v["@value"];
30393
- if (typeof decoded === "undefined") continue;
31293
+ if (typeof decoded === "undefined") {
31294
+ shouldCacheJsonLd = false;
31295
+ continue;
31296
+ }
31297
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30394
31298
  _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
30395
31299
  }
30396
31300
  instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
@@ -30398,8 +31302,12 @@ var Link = class Link {
30398
31302
  let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
30399
31303
  for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
30400
31304
  if (v == null) continue;
30401
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
30402
- if (typeof decoded === "undefined") continue;
31305
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
31306
+ if (typeof decoded === "undefined") {
31307
+ shouldCacheJsonLd = false;
31308
+ continue;
31309
+ }
31310
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30403
31311
  _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
30404
31312
  }
30405
31313
  instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
@@ -30408,7 +31316,11 @@ var Link = class Link {
30408
31316
  for (const v of _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array == null ? [] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array.length === 1 && "@list" in _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0] ? _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0]["@list"] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array) {
30409
31317
  if (v == null) continue;
30410
31318
  const decoded = new Intl.Locale(v["@value"]);
30411
- if (typeof decoded === "undefined") continue;
31319
+ if (typeof decoded === "undefined") {
31320
+ shouldCacheJsonLd = false;
31321
+ continue;
31322
+ }
31323
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30412
31324
  _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.push(decoded);
30413
31325
  }
30414
31326
  instance.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
@@ -30417,7 +31329,11 @@ var Link = class Link {
30417
31329
  for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array == null ? [] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array.length === 1 && "@list" in _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0] ? _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0]["@list"] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array) {
30418
31330
  if (v == null) continue;
30419
31331
  const decoded = v["@value"];
30420
- if (typeof decoded === "undefined") continue;
31332
+ if (typeof decoded === "undefined") {
31333
+ shouldCacheJsonLd = false;
31334
+ continue;
31335
+ }
31336
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30421
31337
  _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
30422
31338
  }
30423
31339
  instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
@@ -30426,7 +31342,11 @@ var Link = class Link {
30426
31342
  for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array == null ? [] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array.length === 1 && "@list" in _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0] ? _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0]["@list"] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array) {
30427
31343
  if (v == null) continue;
30428
31344
  const decoded = v["@value"];
30429
- if (typeof decoded === "undefined") continue;
31345
+ if (typeof decoded === "undefined") {
31346
+ shouldCacheJsonLd = false;
31347
+ continue;
31348
+ }
31349
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30430
31350
  _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
30431
31351
  }
30432
31352
  instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
@@ -30516,11 +31436,16 @@ var Link = class Link {
30516
31436
  ...options,
30517
31437
  baseUrl: options.baseUrl
30518
31438
  }) : void 0;
30519
- if (typeof decoded === "undefined") continue;
31439
+ if (typeof decoded === "undefined") {
31440
+ shouldCacheJsonLd = false;
31441
+ continue;
31442
+ }
31443
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
30520
31444
  _gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
30521
31445
  }
30522
31446
  instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
30523
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
31447
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
31448
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
30524
31449
  instance._cachedJsonLd = structuredClone(json);
30525
31450
  } catch {
30526
31451
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -30721,7 +31646,9 @@ var Hashtag = class Hashtag extends Link {
30721
31646
  _fromSubclass: true
30722
31647
  });
30723
31648
  if (!(instance instanceof Hashtag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
30724
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
31649
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
31650
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
31651
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
30725
31652
  instance._cachedJsonLd = structuredClone(json);
30726
31653
  } catch {
30727
31654
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -30884,7 +31811,9 @@ var Image = class Image extends Document {
30884
31811
  _fromSubclass: true
30885
31812
  });
30886
31813
  if (!(instance instanceof Image)) throw new TypeError("Unexpected type: " + instance.constructor.name);
30887
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
31814
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
31815
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
31816
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
30888
31817
  instance._cachedJsonLd = structuredClone(json);
30889
31818
  } catch {
30890
31819
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31036,7 +31965,9 @@ var Offer = class Offer extends Activity {
31036
31965
  _fromSubclass: true
31037
31966
  });
31038
31967
  if (!(instance instanceof Offer)) throw new TypeError("Unexpected type: " + instance.constructor.name);
31039
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
31968
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
31969
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
31970
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
31040
31971
  instance._cachedJsonLd = structuredClone(json);
31041
31972
  } catch {
31042
31973
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31186,7 +32117,9 @@ var Invite = class Invite extends Offer {
31186
32117
  _fromSubclass: true
31187
32118
  });
31188
32119
  if (!(instance instanceof Invite)) throw new TypeError("Unexpected type: " + instance.constructor.name);
31189
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
32120
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
32121
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
32122
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
31190
32123
  instance._cachedJsonLd = structuredClone(json);
31191
32124
  } catch {
31192
32125
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31336,7 +32269,9 @@ var Join = class Join extends Activity {
31336
32269
  _fromSubclass: true
31337
32270
  });
31338
32271
  if (!(instance instanceof Join)) throw new TypeError("Unexpected type: " + instance.constructor.name);
31339
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
32272
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
32273
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
32274
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
31340
32275
  instance._cachedJsonLd = structuredClone(json);
31341
32276
  } catch {
31342
32277
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31486,7 +32421,9 @@ var Leave = class Leave extends Activity {
31486
32421
  _fromSubclass: true
31487
32422
  });
31488
32423
  if (!(instance instanceof Leave)) throw new TypeError("Unexpected type: " + instance.constructor.name);
31489
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
32424
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
32425
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
32426
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
31490
32427
  instance._cachedJsonLd = structuredClone(json);
31491
32428
  } catch {
31492
32429
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31640,7 +32577,9 @@ var Like = class Like extends Activity {
31640
32577
  _fromSubclass: true
31641
32578
  });
31642
32579
  if (!(instance instanceof Like)) throw new TypeError("Unexpected type: " + instance.constructor.name);
31643
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
32580
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
32581
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
32582
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
31644
32583
  instance._cachedJsonLd = structuredClone(json);
31645
32584
  } catch {
31646
32585
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31789,7 +32728,9 @@ var Listen = class Listen extends Activity {
31789
32728
  _fromSubclass: true
31790
32729
  });
31791
32730
  if (!(instance instanceof Listen)) throw new TypeError("Unexpected type: " + instance.constructor.name);
31792
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
32731
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
32732
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
32733
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
31793
32734
  instance._cachedJsonLd = structuredClone(json);
31794
32735
  } catch {
31795
32736
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31941,7 +32882,9 @@ var Mention = class Mention extends Link {
31941
32882
  _fromSubclass: true
31942
32883
  });
31943
32884
  if (!(instance instanceof Mention)) throw new TypeError("Unexpected type: " + instance.constructor.name);
31944
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
32885
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
32886
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
32887
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
31945
32888
  instance._cachedJsonLd = structuredClone(json);
31946
32889
  } catch {
31947
32890
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -32092,7 +33035,9 @@ var Move = class Move extends Activity {
32092
33035
  _fromSubclass: true
32093
33036
  });
32094
33037
  if (!(instance instanceof Move)) throw new TypeError("Unexpected type: " + instance.constructor.name);
32095
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
33038
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
33039
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
33040
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
32096
33041
  instance._cachedJsonLd = structuredClone(json);
32097
33042
  } catch {
32098
33043
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -32654,6 +33599,7 @@ var Note = class Note extends Object$1 {
32654
33599
  _fromSubclass: true
32655
33600
  });
32656
33601
  if (!(instance instanceof Note)) throw new TypeError("Unexpected type: " + instance.constructor.name);
33602
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
32657
33603
  const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
32658
33604
  let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
32659
33605
  for (const v of _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array == null ? [] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array.length === 1 && "@list" in _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0] ? _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0]["@list"] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array) {
@@ -32667,7 +33613,11 @@ var Note = class Note extends Object$1 {
32667
33613
  ...options,
32668
33614
  baseUrl: options.baseUrl
32669
33615
  });
32670
- if (typeof decoded === "undefined") continue;
33616
+ if (typeof decoded === "undefined") {
33617
+ shouldCacheJsonLd = false;
33618
+ continue;
33619
+ }
33620
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
32671
33621
  _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
32672
33622
  }
32673
33623
  instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
@@ -32678,7 +33628,11 @@ var Note = class Note extends Object$1 {
32678
33628
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
32679
33629
  if (v == null) continue;
32680
33630
  const decoded = new URL(v["@value"]);
32681
- if (typeof decoded === "undefined") continue;
33631
+ if (typeof decoded === "undefined") {
33632
+ shouldCacheJsonLd = false;
33633
+ continue;
33634
+ }
33635
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
32682
33636
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
32683
33637
  }
32684
33638
  instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
@@ -32695,11 +33649,16 @@ var Note = class Note extends Object$1 {
32695
33649
  ...options,
32696
33650
  baseUrl: options.baseUrl
32697
33651
  });
32698
- if (typeof decoded === "undefined") continue;
33652
+ if (typeof decoded === "undefined") {
33653
+ shouldCacheJsonLd = false;
33654
+ continue;
33655
+ }
33656
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
32699
33657
  _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
32700
33658
  }
32701
33659
  instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
32702
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
33660
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
33661
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
32703
33662
  instance._cachedJsonLd = structuredClone(json);
32704
33663
  } catch {
32705
33664
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -33103,6 +34062,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
33103
34062
  _fromSubclass: true
33104
34063
  });
33105
34064
  if (!(instance instanceof OrderedCollection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
34065
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
33106
34066
  const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
33107
34067
  let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
33108
34068
  for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array == null ? [] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array.length === 1 && "@list" in _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0] ? _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0]["@list"] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array) {
@@ -33189,11 +34149,16 @@ var OrderedCollection = class OrderedCollection extends Collection {
33189
34149
  ...options,
33190
34150
  baseUrl: options.baseUrl
33191
34151
  }) : void 0;
33192
- if (typeof decoded === "undefined") continue;
34152
+ if (typeof decoded === "undefined") {
34153
+ shouldCacheJsonLd = false;
34154
+ continue;
34155
+ }
34156
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
33193
34157
  _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
33194
34158
  }
33195
34159
  instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
33196
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
34160
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
34161
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
33197
34162
  instance._cachedJsonLd = structuredClone(json);
33198
34163
  } catch {
33199
34164
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -33617,6 +34582,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
33617
34582
  _fromSubclass: true
33618
34583
  });
33619
34584
  if (!(instance instanceof OrderedCollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
34585
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
33620
34586
  const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
33621
34587
  let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
33622
34588
  for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array == null ? [] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array.length === 1 && "@list" in _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0] ? _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0]["@list"] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array) {
@@ -33703,7 +34669,11 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
33703
34669
  ...options,
33704
34670
  baseUrl: options.baseUrl
33705
34671
  }) : void 0;
33706
- if (typeof decoded === "undefined") continue;
34672
+ if (typeof decoded === "undefined") {
34673
+ shouldCacheJsonLd = false;
34674
+ continue;
34675
+ }
34676
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
33707
34677
  _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
33708
34678
  }
33709
34679
  instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
@@ -33712,11 +34682,16 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
33712
34682
  for (const v of _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array == null ? [] : _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array.length === 1 && "@list" in _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array[0] ? _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array[0]["@list"] : _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array) {
33713
34683
  if (v == null) continue;
33714
34684
  const decoded = v["@value"];
33715
- if (typeof decoded === "undefined") continue;
34685
+ if (typeof decoded === "undefined") {
34686
+ shouldCacheJsonLd = false;
34687
+ continue;
34688
+ }
34689
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
33716
34690
  _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.push(decoded);
33717
34691
  }
33718
34692
  instance.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
33719
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
34693
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
34694
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
33720
34695
  instance._cachedJsonLd = structuredClone(json);
33721
34696
  } catch {
33722
34697
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -36646,12 +37621,17 @@ var Organization = class Organization extends Object$1 {
36646
37621
  _fromSubclass: true
36647
37622
  });
36648
37623
  if (!(instance instanceof Organization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
37624
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
36649
37625
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
36650
37626
  let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
36651
37627
  for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
36652
37628
  if (v == null) continue;
36653
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
36654
- if (typeof decoded === "undefined") continue;
37629
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
37630
+ if (typeof decoded === "undefined") {
37631
+ shouldCacheJsonLd = false;
37632
+ continue;
37633
+ }
37634
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36655
37635
  _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
36656
37636
  }
36657
37637
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
@@ -36668,7 +37648,11 @@ var Organization = class Organization extends Object$1 {
36668
37648
  ...options,
36669
37649
  baseUrl: options.baseUrl
36670
37650
  });
36671
- if (typeof decoded === "undefined") continue;
37651
+ if (typeof decoded === "undefined") {
37652
+ shouldCacheJsonLd = false;
37653
+ continue;
37654
+ }
37655
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36672
37656
  _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
36673
37657
  }
36674
37658
  instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
@@ -36685,7 +37669,11 @@ var Organization = class Organization extends Object$1 {
36685
37669
  ...options,
36686
37670
  baseUrl: options.baseUrl
36687
37671
  });
36688
- if (typeof decoded === "undefined") continue;
37672
+ if (typeof decoded === "undefined") {
37673
+ shouldCacheJsonLd = false;
37674
+ continue;
37675
+ }
37676
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36689
37677
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
36690
37678
  }
36691
37679
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -36694,7 +37682,11 @@ var Organization = class Organization extends Object$1 {
36694
37682
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
36695
37683
  if (v == null) continue;
36696
37684
  const decoded = v["@value"];
36697
- if (typeof decoded === "undefined") continue;
37685
+ if (typeof decoded === "undefined") {
37686
+ shouldCacheJsonLd = false;
37687
+ continue;
37688
+ }
37689
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36698
37690
  _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
36699
37691
  }
36700
37692
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
@@ -36714,7 +37706,11 @@ var Organization = class Organization extends Object$1 {
36714
37706
  ...options,
36715
37707
  baseUrl: options.baseUrl
36716
37708
  }) : void 0;
36717
- if (typeof decoded === "undefined") continue;
37709
+ if (typeof decoded === "undefined") {
37710
+ shouldCacheJsonLd = false;
37711
+ continue;
37712
+ }
37713
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36718
37714
  _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
36719
37715
  }
36720
37716
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
@@ -36734,7 +37730,11 @@ var Organization = class Organization extends Object$1 {
36734
37730
  ...options,
36735
37731
  baseUrl: options.baseUrl
36736
37732
  }) : void 0;
36737
- if (typeof decoded === "undefined") continue;
37733
+ if (typeof decoded === "undefined") {
37734
+ shouldCacheJsonLd = false;
37735
+ continue;
37736
+ }
37737
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36738
37738
  _41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
36739
37739
  }
36740
37740
  instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
@@ -36751,7 +37751,11 @@ var Organization = class Organization extends Object$1 {
36751
37751
  ...options,
36752
37752
  baseUrl: options.baseUrl
36753
37753
  });
36754
- if (typeof decoded === "undefined") continue;
37754
+ if (typeof decoded === "undefined") {
37755
+ shouldCacheJsonLd = false;
37756
+ continue;
37757
+ }
37758
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36755
37759
  _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
36756
37760
  }
36757
37761
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
@@ -36768,7 +37772,11 @@ var Organization = class Organization extends Object$1 {
36768
37772
  ...options,
36769
37773
  baseUrl: options.baseUrl
36770
37774
  });
36771
- if (typeof decoded === "undefined") continue;
37775
+ if (typeof decoded === "undefined") {
37776
+ shouldCacheJsonLd = false;
37777
+ continue;
37778
+ }
37779
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36772
37780
  _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
36773
37781
  }
36774
37782
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
@@ -36785,7 +37793,11 @@ var Organization = class Organization extends Object$1 {
36785
37793
  ...options,
36786
37794
  baseUrl: options.baseUrl
36787
37795
  });
36788
- if (typeof decoded === "undefined") continue;
37796
+ if (typeof decoded === "undefined") {
37797
+ shouldCacheJsonLd = false;
37798
+ continue;
37799
+ }
37800
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36789
37801
  _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
36790
37802
  }
36791
37803
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
@@ -36802,7 +37814,11 @@ var Organization = class Organization extends Object$1 {
36802
37814
  ...options,
36803
37815
  baseUrl: options.baseUrl
36804
37816
  });
36805
- if (typeof decoded === "undefined") continue;
37817
+ if (typeof decoded === "undefined") {
37818
+ shouldCacheJsonLd = false;
37819
+ continue;
37820
+ }
37821
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36806
37822
  _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
36807
37823
  }
36808
37824
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
@@ -36819,7 +37835,11 @@ var Organization = class Organization extends Object$1 {
36819
37835
  ...options,
36820
37836
  baseUrl: options.baseUrl
36821
37837
  });
36822
- if (typeof decoded === "undefined") continue;
37838
+ if (typeof decoded === "undefined") {
37839
+ shouldCacheJsonLd = false;
37840
+ continue;
37841
+ }
37842
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36823
37843
  _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
36824
37844
  }
36825
37845
  instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
@@ -36836,7 +37856,11 @@ var Organization = class Organization extends Object$1 {
36836
37856
  ...options,
36837
37857
  baseUrl: options.baseUrl
36838
37858
  });
36839
- if (typeof decoded === "undefined") continue;
37859
+ if (typeof decoded === "undefined") {
37860
+ shouldCacheJsonLd = false;
37861
+ continue;
37862
+ }
37863
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36840
37864
  _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
36841
37865
  }
36842
37866
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
@@ -36848,7 +37872,11 @@ var Organization = class Organization extends Object$1 {
36848
37872
  ...options,
36849
37873
  baseUrl: options.baseUrl
36850
37874
  });
36851
- if (typeof decoded === "undefined") continue;
37875
+ if (typeof decoded === "undefined") {
37876
+ shouldCacheJsonLd = false;
37877
+ continue;
37878
+ }
37879
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36852
37880
  _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
36853
37881
  }
36854
37882
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
@@ -36857,7 +37885,11 @@ var Organization = class Organization extends Object$1 {
36857
37885
  for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
36858
37886
  if (v == null) continue;
36859
37887
  const decoded = v["@value"];
36860
- if (typeof decoded === "undefined") continue;
37888
+ if (typeof decoded === "undefined") {
37889
+ shouldCacheJsonLd = false;
37890
+ continue;
37891
+ }
37892
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36861
37893
  _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
36862
37894
  }
36863
37895
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
@@ -36866,7 +37898,11 @@ var Organization = class Organization extends Object$1 {
36866
37898
  for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
36867
37899
  if (v == null) continue;
36868
37900
  const decoded = v["@value"];
36869
- if (typeof decoded === "undefined") continue;
37901
+ if (typeof decoded === "undefined") {
37902
+ shouldCacheJsonLd = false;
37903
+ continue;
37904
+ }
37905
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36870
37906
  _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
36871
37907
  }
36872
37908
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
@@ -36875,7 +37911,11 @@ var Organization = class Organization extends Object$1 {
36875
37911
  for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
36876
37912
  if (v == null) continue;
36877
37913
  const decoded = v["@value"];
36878
- if (typeof decoded === "undefined") continue;
37914
+ if (typeof decoded === "undefined") {
37915
+ shouldCacheJsonLd = false;
37916
+ continue;
37917
+ }
37918
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36879
37919
  _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
36880
37920
  }
36881
37921
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
@@ -36884,7 +37924,11 @@ var Organization = class Organization extends Object$1 {
36884
37924
  for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
36885
37925
  if (v == null) continue;
36886
37926
  const decoded = v["@value"];
36887
- if (typeof decoded === "undefined") continue;
37927
+ if (typeof decoded === "undefined") {
37928
+ shouldCacheJsonLd = false;
37929
+ continue;
37930
+ }
37931
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36888
37932
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
36889
37933
  }
36890
37934
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
@@ -36913,7 +37957,11 @@ var Organization = class Organization extends Object$1 {
36913
37957
  ...options,
36914
37958
  baseUrl: options.baseUrl
36915
37959
  }) : void 0;
36916
- if (typeof decoded === "undefined") continue;
37960
+ if (typeof decoded === "undefined") {
37961
+ shouldCacheJsonLd = false;
37962
+ continue;
37963
+ }
37964
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36917
37965
  _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
36918
37966
  }
36919
37967
  instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
@@ -36942,7 +37990,11 @@ var Organization = class Organization extends Object$1 {
36942
37990
  ...options,
36943
37991
  baseUrl: options.baseUrl
36944
37992
  }) : void 0;
36945
- if (typeof decoded === "undefined") continue;
37993
+ if (typeof decoded === "undefined") {
37994
+ shouldCacheJsonLd = false;
37995
+ continue;
37996
+ }
37997
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36946
37998
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
36947
37999
  }
36948
38000
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
@@ -36959,7 +38011,11 @@ var Organization = class Organization extends Object$1 {
36959
38011
  ...options,
36960
38012
  baseUrl: options.baseUrl
36961
38013
  });
36962
- if (typeof decoded === "undefined") continue;
38014
+ if (typeof decoded === "undefined") {
38015
+ shouldCacheJsonLd = false;
38016
+ continue;
38017
+ }
38018
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36963
38019
  _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
36964
38020
  }
36965
38021
  instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
@@ -36968,7 +38024,11 @@ var Organization = class Organization extends Object$1 {
36968
38024
  for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
36969
38025
  if (v == null) continue;
36970
38026
  const decoded = v["@value"];
36971
- if (typeof decoded === "undefined") continue;
38027
+ if (typeof decoded === "undefined") {
38028
+ shouldCacheJsonLd = false;
38029
+ continue;
38030
+ }
38031
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36972
38032
  _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
36973
38033
  }
36974
38034
  instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
@@ -36977,11 +38037,16 @@ var Organization = class Organization extends Object$1 {
36977
38037
  for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
36978
38038
  if (v == null) continue;
36979
38039
  const decoded = v["@value"];
36980
- if (typeof decoded === "undefined") continue;
38040
+ if (typeof decoded === "undefined") {
38041
+ shouldCacheJsonLd = false;
38042
+ continue;
38043
+ }
38044
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
36981
38045
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
36982
38046
  }
36983
38047
  instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
36984
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
38048
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
38049
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
36985
38050
  instance._cachedJsonLd = structuredClone(json);
36986
38051
  } catch {
36987
38052
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -37260,7 +38325,9 @@ var Page = class Page extends Document {
37260
38325
  _fromSubclass: true
37261
38326
  });
37262
38327
  if (!(instance instanceof Page)) throw new TypeError("Unexpected type: " + instance.constructor.name);
37263
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
38328
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
38329
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
38330
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
37264
38331
  instance._cachedJsonLd = structuredClone(json);
37265
38332
  } catch {
37266
38333
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -40179,12 +41246,17 @@ var Person = class Person extends Object$1 {
40179
41246
  _fromSubclass: true
40180
41247
  });
40181
41248
  if (!(instance instanceof Person)) throw new TypeError("Unexpected type: " + instance.constructor.name);
41249
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
40182
41250
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
40183
41251
  let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
40184
41252
  for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
40185
41253
  if (v == null) continue;
40186
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
40187
- if (typeof decoded === "undefined") continue;
41254
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
41255
+ if (typeof decoded === "undefined") {
41256
+ shouldCacheJsonLd = false;
41257
+ continue;
41258
+ }
41259
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40188
41260
  _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
40189
41261
  }
40190
41262
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
@@ -40201,7 +41273,11 @@ var Person = class Person extends Object$1 {
40201
41273
  ...options,
40202
41274
  baseUrl: options.baseUrl
40203
41275
  });
40204
- if (typeof decoded === "undefined") continue;
41276
+ if (typeof decoded === "undefined") {
41277
+ shouldCacheJsonLd = false;
41278
+ continue;
41279
+ }
41280
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40205
41281
  _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
40206
41282
  }
40207
41283
  instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
@@ -40218,7 +41294,11 @@ var Person = class Person extends Object$1 {
40218
41294
  ...options,
40219
41295
  baseUrl: options.baseUrl
40220
41296
  });
40221
- if (typeof decoded === "undefined") continue;
41297
+ if (typeof decoded === "undefined") {
41298
+ shouldCacheJsonLd = false;
41299
+ continue;
41300
+ }
41301
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40222
41302
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
40223
41303
  }
40224
41304
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -40227,7 +41307,11 @@ var Person = class Person extends Object$1 {
40227
41307
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
40228
41308
  if (v == null) continue;
40229
41309
  const decoded = v["@value"];
40230
- if (typeof decoded === "undefined") continue;
41310
+ if (typeof decoded === "undefined") {
41311
+ shouldCacheJsonLd = false;
41312
+ continue;
41313
+ }
41314
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40231
41315
  _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
40232
41316
  }
40233
41317
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
@@ -40247,7 +41331,11 @@ var Person = class Person extends Object$1 {
40247
41331
  ...options,
40248
41332
  baseUrl: options.baseUrl
40249
41333
  }) : void 0;
40250
- if (typeof decoded === "undefined") continue;
41334
+ if (typeof decoded === "undefined") {
41335
+ shouldCacheJsonLd = false;
41336
+ continue;
41337
+ }
41338
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40251
41339
  _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
40252
41340
  }
40253
41341
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
@@ -40267,7 +41355,11 @@ var Person = class Person extends Object$1 {
40267
41355
  ...options,
40268
41356
  baseUrl: options.baseUrl
40269
41357
  }) : void 0;
40270
- if (typeof decoded === "undefined") continue;
41358
+ if (typeof decoded === "undefined") {
41359
+ shouldCacheJsonLd = false;
41360
+ continue;
41361
+ }
41362
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40271
41363
  _41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
40272
41364
  }
40273
41365
  instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
@@ -40284,7 +41376,11 @@ var Person = class Person extends Object$1 {
40284
41376
  ...options,
40285
41377
  baseUrl: options.baseUrl
40286
41378
  });
40287
- if (typeof decoded === "undefined") continue;
41379
+ if (typeof decoded === "undefined") {
41380
+ shouldCacheJsonLd = false;
41381
+ continue;
41382
+ }
41383
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40288
41384
  _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
40289
41385
  }
40290
41386
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
@@ -40301,7 +41397,11 @@ var Person = class Person extends Object$1 {
40301
41397
  ...options,
40302
41398
  baseUrl: options.baseUrl
40303
41399
  });
40304
- if (typeof decoded === "undefined") continue;
41400
+ if (typeof decoded === "undefined") {
41401
+ shouldCacheJsonLd = false;
41402
+ continue;
41403
+ }
41404
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40305
41405
  _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
40306
41406
  }
40307
41407
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
@@ -40318,7 +41418,11 @@ var Person = class Person extends Object$1 {
40318
41418
  ...options,
40319
41419
  baseUrl: options.baseUrl
40320
41420
  });
40321
- if (typeof decoded === "undefined") continue;
41421
+ if (typeof decoded === "undefined") {
41422
+ shouldCacheJsonLd = false;
41423
+ continue;
41424
+ }
41425
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40322
41426
  _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
40323
41427
  }
40324
41428
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
@@ -40335,7 +41439,11 @@ var Person = class Person extends Object$1 {
40335
41439
  ...options,
40336
41440
  baseUrl: options.baseUrl
40337
41441
  });
40338
- if (typeof decoded === "undefined") continue;
41442
+ if (typeof decoded === "undefined") {
41443
+ shouldCacheJsonLd = false;
41444
+ continue;
41445
+ }
41446
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40339
41447
  _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
40340
41448
  }
40341
41449
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
@@ -40352,7 +41460,11 @@ var Person = class Person extends Object$1 {
40352
41460
  ...options,
40353
41461
  baseUrl: options.baseUrl
40354
41462
  });
40355
- if (typeof decoded === "undefined") continue;
41463
+ if (typeof decoded === "undefined") {
41464
+ shouldCacheJsonLd = false;
41465
+ continue;
41466
+ }
41467
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40356
41468
  _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
40357
41469
  }
40358
41470
  instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
@@ -40369,7 +41481,11 @@ var Person = class Person extends Object$1 {
40369
41481
  ...options,
40370
41482
  baseUrl: options.baseUrl
40371
41483
  });
40372
- if (typeof decoded === "undefined") continue;
41484
+ if (typeof decoded === "undefined") {
41485
+ shouldCacheJsonLd = false;
41486
+ continue;
41487
+ }
41488
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40373
41489
  _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
40374
41490
  }
40375
41491
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
@@ -40381,7 +41497,11 @@ var Person = class Person extends Object$1 {
40381
41497
  ...options,
40382
41498
  baseUrl: options.baseUrl
40383
41499
  });
40384
- if (typeof decoded === "undefined") continue;
41500
+ if (typeof decoded === "undefined") {
41501
+ shouldCacheJsonLd = false;
41502
+ continue;
41503
+ }
41504
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40385
41505
  _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
40386
41506
  }
40387
41507
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
@@ -40390,7 +41510,11 @@ var Person = class Person extends Object$1 {
40390
41510
  for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
40391
41511
  if (v == null) continue;
40392
41512
  const decoded = v["@value"];
40393
- if (typeof decoded === "undefined") continue;
41513
+ if (typeof decoded === "undefined") {
41514
+ shouldCacheJsonLd = false;
41515
+ continue;
41516
+ }
41517
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40394
41518
  _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
40395
41519
  }
40396
41520
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
@@ -40399,7 +41523,11 @@ var Person = class Person extends Object$1 {
40399
41523
  for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
40400
41524
  if (v == null) continue;
40401
41525
  const decoded = v["@value"];
40402
- if (typeof decoded === "undefined") continue;
41526
+ if (typeof decoded === "undefined") {
41527
+ shouldCacheJsonLd = false;
41528
+ continue;
41529
+ }
41530
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40403
41531
  _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
40404
41532
  }
40405
41533
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
@@ -40408,7 +41536,11 @@ var Person = class Person extends Object$1 {
40408
41536
  for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
40409
41537
  if (v == null) continue;
40410
41538
  const decoded = v["@value"];
40411
- if (typeof decoded === "undefined") continue;
41539
+ if (typeof decoded === "undefined") {
41540
+ shouldCacheJsonLd = false;
41541
+ continue;
41542
+ }
41543
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40412
41544
  _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
40413
41545
  }
40414
41546
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
@@ -40417,7 +41549,11 @@ var Person = class Person extends Object$1 {
40417
41549
  for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
40418
41550
  if (v == null) continue;
40419
41551
  const decoded = v["@value"];
40420
- if (typeof decoded === "undefined") continue;
41552
+ if (typeof decoded === "undefined") {
41553
+ shouldCacheJsonLd = false;
41554
+ continue;
41555
+ }
41556
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40421
41557
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
40422
41558
  }
40423
41559
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
@@ -40446,7 +41582,11 @@ var Person = class Person extends Object$1 {
40446
41582
  ...options,
40447
41583
  baseUrl: options.baseUrl
40448
41584
  }) : void 0;
40449
- if (typeof decoded === "undefined") continue;
41585
+ if (typeof decoded === "undefined") {
41586
+ shouldCacheJsonLd = false;
41587
+ continue;
41588
+ }
41589
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40450
41590
  _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
40451
41591
  }
40452
41592
  instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
@@ -40475,7 +41615,11 @@ var Person = class Person extends Object$1 {
40475
41615
  ...options,
40476
41616
  baseUrl: options.baseUrl
40477
41617
  }) : void 0;
40478
- if (typeof decoded === "undefined") continue;
41618
+ if (typeof decoded === "undefined") {
41619
+ shouldCacheJsonLd = false;
41620
+ continue;
41621
+ }
41622
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40479
41623
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
40480
41624
  }
40481
41625
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
@@ -40492,7 +41636,11 @@ var Person = class Person extends Object$1 {
40492
41636
  ...options,
40493
41637
  baseUrl: options.baseUrl
40494
41638
  });
40495
- if (typeof decoded === "undefined") continue;
41639
+ if (typeof decoded === "undefined") {
41640
+ shouldCacheJsonLd = false;
41641
+ continue;
41642
+ }
41643
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40496
41644
  _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
40497
41645
  }
40498
41646
  instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
@@ -40501,7 +41649,11 @@ var Person = class Person extends Object$1 {
40501
41649
  for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
40502
41650
  if (v == null) continue;
40503
41651
  const decoded = v["@value"];
40504
- if (typeof decoded === "undefined") continue;
41652
+ if (typeof decoded === "undefined") {
41653
+ shouldCacheJsonLd = false;
41654
+ continue;
41655
+ }
41656
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40505
41657
  _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
40506
41658
  }
40507
41659
  instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
@@ -40510,11 +41662,16 @@ var Person = class Person extends Object$1 {
40510
41662
  for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
40511
41663
  if (v == null) continue;
40512
41664
  const decoded = v["@value"];
40513
- if (typeof decoded === "undefined") continue;
41665
+ if (typeof decoded === "undefined") {
41666
+ shouldCacheJsonLd = false;
41667
+ continue;
41668
+ }
41669
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40514
41670
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
40515
41671
  }
40516
41672
  instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
40517
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
41673
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
41674
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
40518
41675
  instance._cachedJsonLd = structuredClone(json);
40519
41676
  } catch {
40520
41677
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -40970,12 +42127,17 @@ var Place = class Place extends Object$1 {
40970
42127
  _fromSubclass: true
40971
42128
  });
40972
42129
  if (!(instance instanceof Place)) throw new TypeError("Unexpected type: " + instance.constructor.name);
42130
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
40973
42131
  const _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [];
40974
42132
  let _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array = values["https://www.w3.org/ns/activitystreams#accuracy"];
40975
42133
  for (const v of _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array == null ? [] : _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array.length === 1 && "@list" in _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array[0] ? _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array[0]["@list"] : _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array) {
40976
42134
  if (v == null) continue;
40977
42135
  const decoded = v["@value"];
40978
- if (typeof decoded === "undefined") continue;
42136
+ if (typeof decoded === "undefined") {
42137
+ shouldCacheJsonLd = false;
42138
+ continue;
42139
+ }
42140
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40979
42141
  _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.push(decoded);
40980
42142
  }
40981
42143
  instance.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
@@ -40984,7 +42146,11 @@ var Place = class Place extends Object$1 {
40984
42146
  for (const v of _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array == null ? [] : _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array.length === 1 && "@list" in _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array[0] ? _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array[0]["@list"] : _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array) {
40985
42147
  if (v == null) continue;
40986
42148
  const decoded = v["@value"];
40987
- if (typeof decoded === "undefined") continue;
42149
+ if (typeof decoded === "undefined") {
42150
+ shouldCacheJsonLd = false;
42151
+ continue;
42152
+ }
42153
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40988
42154
  _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.push(decoded);
40989
42155
  }
40990
42156
  instance.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
@@ -40993,7 +42159,11 @@ var Place = class Place extends Object$1 {
40993
42159
  for (const v of _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array == null ? [] : _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array.length === 1 && "@list" in _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array[0] ? _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array[0]["@list"] : _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array) {
40994
42160
  if (v == null) continue;
40995
42161
  const decoded = v["@value"];
40996
- if (typeof decoded === "undefined") continue;
42162
+ if (typeof decoded === "undefined") {
42163
+ shouldCacheJsonLd = false;
42164
+ continue;
42165
+ }
42166
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
40997
42167
  _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.push(decoded);
40998
42168
  }
40999
42169
  instance.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
@@ -41002,7 +42172,11 @@ var Place = class Place extends Object$1 {
41002
42172
  for (const v of _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array == null ? [] : _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array.length === 1 && "@list" in _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array[0] ? _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array[0]["@list"] : _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array) {
41003
42173
  if (v == null) continue;
41004
42174
  const decoded = v["@value"];
41005
- if (typeof decoded === "undefined") continue;
42175
+ if (typeof decoded === "undefined") {
42176
+ shouldCacheJsonLd = false;
42177
+ continue;
42178
+ }
42179
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
41006
42180
  _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.push(decoded);
41007
42181
  }
41008
42182
  instance.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
@@ -41011,7 +42185,11 @@ var Place = class Place extends Object$1 {
41011
42185
  for (const v of _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array == null ? [] : _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array.length === 1 && "@list" in _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array[0] ? _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array[0]["@list"] : _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array) {
41012
42186
  if (v == null) continue;
41013
42187
  const decoded = v["@value"];
41014
- if (typeof decoded === "undefined") continue;
42188
+ if (typeof decoded === "undefined") {
42189
+ shouldCacheJsonLd = false;
42190
+ continue;
42191
+ }
42192
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
41015
42193
  _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.push(decoded);
41016
42194
  }
41017
42195
  instance.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
@@ -41020,11 +42198,16 @@ var Place = class Place extends Object$1 {
41020
42198
  for (const v of _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array == null ? [] : _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array.length === 1 && "@list" in _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array[0] ? _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array[0]["@list"] : _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array) {
41021
42199
  if (v == null) continue;
41022
42200
  const decoded = typeof v === "object" && "@value" in v && (v["@value"] == "cm" || v["@value"] == "feet" || v["@value"] == "inches" || v["@value"] == "km" || v["@value"] == "m" || v["@value"] == "miles") ? v["@value"] : v != null && typeof v === "object" && "@id" in v && typeof v["@id"] === "string" && v["@id"] !== "" ? v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl) : void 0;
41023
- if (typeof decoded === "undefined") continue;
42201
+ if (typeof decoded === "undefined") {
42202
+ shouldCacheJsonLd = false;
42203
+ continue;
42204
+ }
42205
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
41024
42206
  _oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded);
41025
42207
  }
41026
42208
  instance.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = _oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
41027
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
42209
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
42210
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
41028
42211
  instance._cachedJsonLd = structuredClone(json);
41029
42212
  } catch {
41030
42213
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -41376,6 +42559,7 @@ var Profile = class Profile extends Object$1 {
41376
42559
  _fromSubclass: true
41377
42560
  });
41378
42561
  if (!(instance instanceof Profile)) throw new TypeError("Unexpected type: " + instance.constructor.name);
42562
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
41379
42563
  const _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [];
41380
42564
  let _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array = values["https://www.w3.org/ns/activitystreams#describes"];
41381
42565
  for (const v of _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array == null ? [] : _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array.length === 1 && "@list" in _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array[0] ? _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array[0]["@list"] : _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array) {
@@ -41389,11 +42573,16 @@ var Profile = class Profile extends Object$1 {
41389
42573
  ...options,
41390
42574
  baseUrl: options.baseUrl
41391
42575
  });
41392
- if (typeof decoded === "undefined") continue;
42576
+ if (typeof decoded === "undefined") {
42577
+ shouldCacheJsonLd = false;
42578
+ continue;
42579
+ }
42580
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
41393
42581
  _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded);
41394
42582
  }
41395
42583
  instance.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
41396
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
42584
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
42585
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
41397
42586
  instance._cachedJsonLd = structuredClone(json);
41398
42587
  } catch {
41399
42588
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -42237,6 +43426,7 @@ var Question = class Question extends IntransitiveActivity {
42237
43426
  _fromSubclass: true
42238
43427
  });
42239
43428
  if (!(instance instanceof Question)) throw new TypeError("Unexpected type: " + instance.constructor.name);
43429
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
42240
43430
  const _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = [];
42241
43431
  let _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array = values["https://www.w3.org/ns/activitystreams#oneOf"];
42242
43432
  for (const v of _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array == null ? [] : _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array.length === 1 && "@list" in _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array[0] ? _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array[0]["@list"] : _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array) {
@@ -42250,7 +43440,11 @@ var Question = class Question extends IntransitiveActivity {
42250
43440
  ...options,
42251
43441
  baseUrl: options.baseUrl
42252
43442
  });
42253
- if (typeof decoded === "undefined") continue;
43443
+ if (typeof decoded === "undefined") {
43444
+ shouldCacheJsonLd = false;
43445
+ continue;
43446
+ }
43447
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
42254
43448
  _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded);
42255
43449
  }
42256
43450
  instance.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
@@ -42267,7 +43461,11 @@ var Question = class Question extends IntransitiveActivity {
42267
43461
  ...options,
42268
43462
  baseUrl: options.baseUrl
42269
43463
  });
42270
- if (typeof decoded === "undefined") continue;
43464
+ if (typeof decoded === "undefined") {
43465
+ shouldCacheJsonLd = false;
43466
+ continue;
43467
+ }
43468
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
42271
43469
  _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded);
42272
43470
  }
42273
43471
  instance.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
@@ -42276,7 +43474,11 @@ var Question = class Question extends IntransitiveActivity {
42276
43474
  for (const v of _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array == null ? [] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array.length === 1 && "@list" in _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0] ? _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0]["@list"] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array) {
42277
43475
  if (v == null) continue;
42278
43476
  const decoded = typeof v === "object" && "@type" in v && "@value" in v && typeof v["@value"] === "string" && v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" && new Date(v["@value"]).toString() !== "Invalid Date" ? Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z") : typeof v === "object" && "@value" in v && typeof v["@value"] === "boolean" ? v["@value"] : void 0;
42279
- if (typeof decoded === "undefined") continue;
43477
+ if (typeof decoded === "undefined") {
43478
+ shouldCacheJsonLd = false;
43479
+ continue;
43480
+ }
43481
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
42280
43482
  _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.push(decoded);
42281
43483
  }
42282
43484
  instance.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
@@ -42285,7 +43487,11 @@ var Question = class Question extends IntransitiveActivity {
42285
43487
  for (const v of _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array == null ? [] : _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array.length === 1 && "@list" in _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array[0] ? _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array[0]["@list"] : _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array) {
42286
43488
  if (v == null) continue;
42287
43489
  const decoded = v["@value"];
42288
- if (typeof decoded === "undefined") continue;
43490
+ if (typeof decoded === "undefined") {
43491
+ shouldCacheJsonLd = false;
43492
+ continue;
43493
+ }
43494
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
42289
43495
  _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.push(decoded);
42290
43496
  }
42291
43497
  instance.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
@@ -42302,7 +43508,11 @@ var Question = class Question extends IntransitiveActivity {
42302
43508
  ...options,
42303
43509
  baseUrl: options.baseUrl
42304
43510
  });
42305
- if (typeof decoded === "undefined") continue;
43511
+ if (typeof decoded === "undefined") {
43512
+ shouldCacheJsonLd = false;
43513
+ continue;
43514
+ }
43515
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
42306
43516
  _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
42307
43517
  }
42308
43518
  instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
@@ -42313,7 +43523,11 @@ var Question = class Question extends IntransitiveActivity {
42313
43523
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
42314
43524
  if (v == null) continue;
42315
43525
  const decoded = new URL(v["@value"]);
42316
- if (typeof decoded === "undefined") continue;
43526
+ if (typeof decoded === "undefined") {
43527
+ shouldCacheJsonLd = false;
43528
+ continue;
43529
+ }
43530
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
42317
43531
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
42318
43532
  }
42319
43533
  instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
@@ -42330,11 +43544,16 @@ var Question = class Question extends IntransitiveActivity {
42330
43544
  ...options,
42331
43545
  baseUrl: options.baseUrl
42332
43546
  });
42333
- if (typeof decoded === "undefined") continue;
43547
+ if (typeof decoded === "undefined") {
43548
+ shouldCacheJsonLd = false;
43549
+ continue;
43550
+ }
43551
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
42334
43552
  _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
42335
43553
  }
42336
43554
  instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
42337
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
43555
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
43556
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
42338
43557
  instance._cachedJsonLd = structuredClone(json);
42339
43558
  } catch {
42340
43559
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -42519,7 +43738,9 @@ var Read = class Read extends Activity {
42519
43738
  _fromSubclass: true
42520
43739
  });
42521
43740
  if (!(instance instanceof Read)) throw new TypeError("Unexpected type: " + instance.constructor.name);
42522
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
43741
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
43742
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
43743
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
42523
43744
  instance._cachedJsonLd = structuredClone(json);
42524
43745
  } catch {
42525
43746
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -42670,7 +43891,9 @@ var Reject = class Reject extends Activity {
42670
43891
  _fromSubclass: true
42671
43892
  });
42672
43893
  if (!(instance instanceof Reject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
42673
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
43894
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
43895
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
43896
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
42674
43897
  instance._cachedJsonLd = structuredClone(json);
42675
43898
  } catch {
42676
43899
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -43421,6 +44644,7 @@ var Relationship = class Relationship extends Object$1 {
43421
44644
  _fromSubclass: true
43422
44645
  });
43423
44646
  if (!(instance instanceof Relationship)) throw new TypeError("Unexpected type: " + instance.constructor.name);
44647
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
43424
44648
  const _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [];
43425
44649
  let _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array = values["https://www.w3.org/ns/activitystreams#subject"];
43426
44650
  for (const v of _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array == null ? [] : _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array.length === 1 && "@list" in _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array[0] ? _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array[0]["@list"] : _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array) {
@@ -43434,7 +44658,11 @@ var Relationship = class Relationship extends Object$1 {
43434
44658
  ...options,
43435
44659
  baseUrl: options.baseUrl
43436
44660
  });
43437
- if (typeof decoded === "undefined") continue;
44661
+ if (typeof decoded === "undefined") {
44662
+ shouldCacheJsonLd = false;
44663
+ continue;
44664
+ }
44665
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
43438
44666
  _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded);
43439
44667
  }
43440
44668
  instance.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
@@ -43451,7 +44679,11 @@ var Relationship = class Relationship extends Object$1 {
43451
44679
  ...options,
43452
44680
  baseUrl: options.baseUrl
43453
44681
  });
43454
- if (typeof decoded === "undefined") continue;
44682
+ if (typeof decoded === "undefined") {
44683
+ shouldCacheJsonLd = false;
44684
+ continue;
44685
+ }
44686
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
43455
44687
  _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
43456
44688
  }
43457
44689
  instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
@@ -43468,11 +44700,16 @@ var Relationship = class Relationship extends Object$1 {
43468
44700
  ...options,
43469
44701
  baseUrl: options.baseUrl
43470
44702
  });
43471
- if (typeof decoded === "undefined") continue;
44703
+ if (typeof decoded === "undefined") {
44704
+ shouldCacheJsonLd = false;
44705
+ continue;
44706
+ }
44707
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
43472
44708
  _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded);
43473
44709
  }
43474
44710
  instance.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
43475
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
44711
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
44712
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
43476
44713
  instance._cachedJsonLd = structuredClone(json);
43477
44714
  } catch {
43478
44715
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -43640,7 +44877,9 @@ var Remove = class Remove extends Activity {
43640
44877
  _fromSubclass: true
43641
44878
  });
43642
44879
  if (!(instance instanceof Remove)) throw new TypeError("Unexpected type: " + instance.constructor.name);
43643
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
44880
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
44881
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
44882
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
43644
44883
  instance._cachedJsonLd = structuredClone(json);
43645
44884
  } catch {
43646
44885
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -46559,12 +47798,17 @@ var Service = class Service extends Object$1 {
46559
47798
  _fromSubclass: true
46560
47799
  });
46561
47800
  if (!(instance instanceof Service)) throw new TypeError("Unexpected type: " + instance.constructor.name);
47801
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
46562
47802
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
46563
47803
  let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
46564
47804
  for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
46565
47805
  if (v == null) continue;
46566
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
46567
- if (typeof decoded === "undefined") continue;
47806
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
47807
+ if (typeof decoded === "undefined") {
47808
+ shouldCacheJsonLd = false;
47809
+ continue;
47810
+ }
47811
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46568
47812
  _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
46569
47813
  }
46570
47814
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
@@ -46581,7 +47825,11 @@ var Service = class Service extends Object$1 {
46581
47825
  ...options,
46582
47826
  baseUrl: options.baseUrl
46583
47827
  });
46584
- if (typeof decoded === "undefined") continue;
47828
+ if (typeof decoded === "undefined") {
47829
+ shouldCacheJsonLd = false;
47830
+ continue;
47831
+ }
47832
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46585
47833
  _axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
46586
47834
  }
46587
47835
  instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
@@ -46598,7 +47846,11 @@ var Service = class Service extends Object$1 {
46598
47846
  ...options,
46599
47847
  baseUrl: options.baseUrl
46600
47848
  });
46601
- if (typeof decoded === "undefined") continue;
47849
+ if (typeof decoded === "undefined") {
47850
+ shouldCacheJsonLd = false;
47851
+ continue;
47852
+ }
47853
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46602
47854
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
46603
47855
  }
46604
47856
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -46607,7 +47859,11 @@ var Service = class Service extends Object$1 {
46607
47859
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
46608
47860
  if (v == null) continue;
46609
47861
  const decoded = v["@value"];
46610
- if (typeof decoded === "undefined") continue;
47862
+ if (typeof decoded === "undefined") {
47863
+ shouldCacheJsonLd = false;
47864
+ continue;
47865
+ }
47866
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46611
47867
  _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
46612
47868
  }
46613
47869
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
@@ -46627,7 +47883,11 @@ var Service = class Service extends Object$1 {
46627
47883
  ...options,
46628
47884
  baseUrl: options.baseUrl
46629
47885
  }) : void 0;
46630
- if (typeof decoded === "undefined") continue;
47886
+ if (typeof decoded === "undefined") {
47887
+ shouldCacheJsonLd = false;
47888
+ continue;
47889
+ }
47890
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46631
47891
  _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
46632
47892
  }
46633
47893
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
@@ -46647,7 +47907,11 @@ var Service = class Service extends Object$1 {
46647
47907
  ...options,
46648
47908
  baseUrl: options.baseUrl
46649
47909
  }) : void 0;
46650
- if (typeof decoded === "undefined") continue;
47910
+ if (typeof decoded === "undefined") {
47911
+ shouldCacheJsonLd = false;
47912
+ continue;
47913
+ }
47914
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46651
47915
  _41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
46652
47916
  }
46653
47917
  instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
@@ -46664,7 +47928,11 @@ var Service = class Service extends Object$1 {
46664
47928
  ...options,
46665
47929
  baseUrl: options.baseUrl
46666
47930
  });
46667
- if (typeof decoded === "undefined") continue;
47931
+ if (typeof decoded === "undefined") {
47932
+ shouldCacheJsonLd = false;
47933
+ continue;
47934
+ }
47935
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46668
47936
  _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
46669
47937
  }
46670
47938
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
@@ -46681,7 +47949,11 @@ var Service = class Service extends Object$1 {
46681
47949
  ...options,
46682
47950
  baseUrl: options.baseUrl
46683
47951
  });
46684
- if (typeof decoded === "undefined") continue;
47952
+ if (typeof decoded === "undefined") {
47953
+ shouldCacheJsonLd = false;
47954
+ continue;
47955
+ }
47956
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46685
47957
  _BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
46686
47958
  }
46687
47959
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
@@ -46698,7 +47970,11 @@ var Service = class Service extends Object$1 {
46698
47970
  ...options,
46699
47971
  baseUrl: options.baseUrl
46700
47972
  });
46701
- if (typeof decoded === "undefined") continue;
47973
+ if (typeof decoded === "undefined") {
47974
+ shouldCacheJsonLd = false;
47975
+ continue;
47976
+ }
47977
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46702
47978
  _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
46703
47979
  }
46704
47980
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
@@ -46715,7 +47991,11 @@ var Service = class Service extends Object$1 {
46715
47991
  ...options,
46716
47992
  baseUrl: options.baseUrl
46717
47993
  });
46718
- if (typeof decoded === "undefined") continue;
47994
+ if (typeof decoded === "undefined") {
47995
+ shouldCacheJsonLd = false;
47996
+ continue;
47997
+ }
47998
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46719
47999
  _4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
46720
48000
  }
46721
48001
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
@@ -46732,7 +48012,11 @@ var Service = class Service extends Object$1 {
46732
48012
  ...options,
46733
48013
  baseUrl: options.baseUrl
46734
48014
  });
46735
- if (typeof decoded === "undefined") continue;
48015
+ if (typeof decoded === "undefined") {
48016
+ shouldCacheJsonLd = false;
48017
+ continue;
48018
+ }
48019
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46736
48020
  _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
46737
48021
  }
46738
48022
  instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
@@ -46749,7 +48033,11 @@ var Service = class Service extends Object$1 {
46749
48033
  ...options,
46750
48034
  baseUrl: options.baseUrl
46751
48035
  });
46752
- if (typeof decoded === "undefined") continue;
48036
+ if (typeof decoded === "undefined") {
48037
+ shouldCacheJsonLd = false;
48038
+ continue;
48039
+ }
48040
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46753
48041
  _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
46754
48042
  }
46755
48043
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
@@ -46761,7 +48049,11 @@ var Service = class Service extends Object$1 {
46761
48049
  ...options,
46762
48050
  baseUrl: options.baseUrl
46763
48051
  });
46764
- if (typeof decoded === "undefined") continue;
48052
+ if (typeof decoded === "undefined") {
48053
+ shouldCacheJsonLd = false;
48054
+ continue;
48055
+ }
48056
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46765
48057
  _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
46766
48058
  }
46767
48059
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
@@ -46770,7 +48062,11 @@ var Service = class Service extends Object$1 {
46770
48062
  for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
46771
48063
  if (v == null) continue;
46772
48064
  const decoded = v["@value"];
46773
- if (typeof decoded === "undefined") continue;
48065
+ if (typeof decoded === "undefined") {
48066
+ shouldCacheJsonLd = false;
48067
+ continue;
48068
+ }
48069
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46774
48070
  _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
46775
48071
  }
46776
48072
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
@@ -46779,7 +48075,11 @@ var Service = class Service extends Object$1 {
46779
48075
  for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
46780
48076
  if (v == null) continue;
46781
48077
  const decoded = v["@value"];
46782
- if (typeof decoded === "undefined") continue;
48078
+ if (typeof decoded === "undefined") {
48079
+ shouldCacheJsonLd = false;
48080
+ continue;
48081
+ }
48082
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46783
48083
  _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
46784
48084
  }
46785
48085
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
@@ -46788,7 +48088,11 @@ var Service = class Service extends Object$1 {
46788
48088
  for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
46789
48089
  if (v == null) continue;
46790
48090
  const decoded = v["@value"];
46791
- if (typeof decoded === "undefined") continue;
48091
+ if (typeof decoded === "undefined") {
48092
+ shouldCacheJsonLd = false;
48093
+ continue;
48094
+ }
48095
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46792
48096
  _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
46793
48097
  }
46794
48098
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
@@ -46797,7 +48101,11 @@ var Service = class Service extends Object$1 {
46797
48101
  for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
46798
48102
  if (v == null) continue;
46799
48103
  const decoded = v["@value"];
46800
- if (typeof decoded === "undefined") continue;
48104
+ if (typeof decoded === "undefined") {
48105
+ shouldCacheJsonLd = false;
48106
+ continue;
48107
+ }
48108
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46801
48109
  _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
46802
48110
  }
46803
48111
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
@@ -46826,7 +48134,11 @@ var Service = class Service extends Object$1 {
46826
48134
  ...options,
46827
48135
  baseUrl: options.baseUrl
46828
48136
  }) : void 0;
46829
- if (typeof decoded === "undefined") continue;
48137
+ if (typeof decoded === "undefined") {
48138
+ shouldCacheJsonLd = false;
48139
+ continue;
48140
+ }
48141
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46830
48142
  _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
46831
48143
  }
46832
48144
  instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
@@ -46855,7 +48167,11 @@ var Service = class Service extends Object$1 {
46855
48167
  ...options,
46856
48168
  baseUrl: options.baseUrl
46857
48169
  }) : void 0;
46858
- if (typeof decoded === "undefined") continue;
48170
+ if (typeof decoded === "undefined") {
48171
+ shouldCacheJsonLd = false;
48172
+ continue;
48173
+ }
48174
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46859
48175
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
46860
48176
  }
46861
48177
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
@@ -46872,7 +48188,11 @@ var Service = class Service extends Object$1 {
46872
48188
  ...options,
46873
48189
  baseUrl: options.baseUrl
46874
48190
  });
46875
- if (typeof decoded === "undefined") continue;
48191
+ if (typeof decoded === "undefined") {
48192
+ shouldCacheJsonLd = false;
48193
+ continue;
48194
+ }
48195
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46876
48196
  _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
46877
48197
  }
46878
48198
  instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
@@ -46881,7 +48201,11 @@ var Service = class Service extends Object$1 {
46881
48201
  for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
46882
48202
  if (v == null) continue;
46883
48203
  const decoded = v["@value"];
46884
- if (typeof decoded === "undefined") continue;
48204
+ if (typeof decoded === "undefined") {
48205
+ shouldCacheJsonLd = false;
48206
+ continue;
48207
+ }
48208
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46885
48209
  _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
46886
48210
  }
46887
48211
  instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
@@ -46890,11 +48214,16 @@ var Service = class Service extends Object$1 {
46890
48214
  for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
46891
48215
  if (v == null) continue;
46892
48216
  const decoded = v["@value"];
46893
- if (typeof decoded === "undefined") continue;
48217
+ if (typeof decoded === "undefined") {
48218
+ shouldCacheJsonLd = false;
48219
+ continue;
48220
+ }
48221
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
46894
48222
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
46895
48223
  }
46896
48224
  instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
46897
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
48225
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
48226
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
46898
48227
  instance._cachedJsonLd = structuredClone(json);
46899
48228
  } catch {
46900
48229
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -47036,6 +48365,7 @@ var Source = class {
47036
48365
  #warning;
47037
48366
  #cachedJsonLd;
47038
48367
  #_baseUrl;
48368
+ #shouldCacheJsonLd = true;
47039
48369
  id;
47040
48370
  get _documentLoader() {
47041
48371
  return this.#documentLoader;
@@ -47058,6 +48388,17 @@ var Source = class {
47058
48388
  get _baseUrl() {
47059
48389
  return this.#_baseUrl;
47060
48390
  }
48391
+ get _shouldCacheJsonLd() {
48392
+ return this.#shouldCacheJsonLd;
48393
+ }
48394
+ set _shouldCacheJsonLd(value) {
48395
+ this.#shouldCacheJsonLd = value;
48396
+ }
48397
+ static _shouldCacheDecodedJsonLd(value) {
48398
+ if (value == null || typeof value !== "object") return true;
48399
+ if (!("_shouldCacheJsonLd" in value)) return true;
48400
+ return value._shouldCacheJsonLd;
48401
+ }
47061
48402
  /**
47062
48403
  * The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
47063
48404
  */
@@ -47256,12 +48597,17 @@ var Source = class {
47256
48597
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Source")) throw new TypeError("Invalid type: " + values["@type"]);
47257
48598
  }
47258
48599
  const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
48600
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
47259
48601
  const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [];
47260
48602
  let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
47261
48603
  for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array == null ? [] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array.length === 1 && "@list" in _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0] ? _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0]["@list"] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array) {
47262
48604
  if (v == null) continue;
47263
- const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
47264
- if (typeof decoded === "undefined") continue;
48605
+ const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new _fedify_vocab_runtime.LanguageString(v["@value"], v["@language"]) : void 0;
48606
+ if (typeof decoded === "undefined") {
48607
+ shouldCacheJsonLd = false;
48608
+ continue;
48609
+ }
48610
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
47265
48611
  _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
47266
48612
  }
47267
48613
  instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
@@ -47270,11 +48616,16 @@ var Source = class {
47270
48616
  for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
47271
48617
  if (v == null) continue;
47272
48618
  const decoded = v["@value"];
47273
- if (typeof decoded === "undefined") continue;
48619
+ if (typeof decoded === "undefined") {
48620
+ shouldCacheJsonLd = false;
48621
+ continue;
48622
+ }
48623
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
47274
48624
  _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
47275
48625
  }
47276
48626
  instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
47277
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
48627
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
48628
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
47278
48629
  instance._cachedJsonLd = structuredClone(json);
47279
48630
  } catch {
47280
48631
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -47440,7 +48791,9 @@ var TentativeAccept = class TentativeAccept extends Accept {
47440
48791
  _fromSubclass: true
47441
48792
  });
47442
48793
  if (!(instance instanceof TentativeAccept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
47443
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
48794
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
48795
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
48796
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
47444
48797
  instance._cachedJsonLd = structuredClone(json);
47445
48798
  } catch {
47446
48799
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -47590,7 +48943,9 @@ var TentativeReject = class TentativeReject extends Reject {
47590
48943
  _fromSubclass: true
47591
48944
  });
47592
48945
  if (!(instance instanceof TentativeReject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
47593
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
48946
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
48947
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
48948
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
47594
48949
  instance._cachedJsonLd = structuredClone(json);
47595
48950
  } catch {
47596
48951
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -47829,6 +49184,7 @@ var Tombstone = class Tombstone extends Object$1 {
47829
49184
  _fromSubclass: true
47830
49185
  });
47831
49186
  if (!(instance instanceof Tombstone)) throw new TypeError("Unexpected type: " + instance.constructor.name);
49187
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
47832
49188
  const _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [];
47833
49189
  let _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array = values["https://www.w3.org/ns/activitystreams#formerType"];
47834
49190
  for (const v of _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array == null ? [] : _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array.length === 1 && "@list" in _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array[0] ? _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array[0]["@list"] : _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array) {
@@ -47839,7 +49195,11 @@ var Tombstone = class Tombstone extends Object$1 {
47839
49195
  if (entityType == null) (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Ignoring unknown vocabulary entity type reference: {typeId}", { typeId: v["@id"] });
47840
49196
  return entityType;
47841
49197
  })();
47842
- if (typeof decoded === "undefined") continue;
49198
+ if (typeof decoded === "undefined") {
49199
+ shouldCacheJsonLd = false;
49200
+ continue;
49201
+ }
49202
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
47843
49203
  _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.push(decoded);
47844
49204
  }
47845
49205
  instance.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
@@ -47848,11 +49208,16 @@ var Tombstone = class Tombstone extends Object$1 {
47848
49208
  for (const v of _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array == null ? [] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array.length === 1 && "@list" in _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0] ? _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0]["@list"] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array) {
47849
49209
  if (v == null) continue;
47850
49210
  const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
47851
- if (typeof decoded === "undefined") continue;
49211
+ if (typeof decoded === "undefined") {
49212
+ shouldCacheJsonLd = false;
49213
+ continue;
49214
+ }
49215
+ if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
47852
49216
  _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(decoded);
47853
49217
  }
47854
49218
  instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
47855
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
49219
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
49220
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
47856
49221
  instance._cachedJsonLd = structuredClone(json);
47857
49222
  } catch {
47858
49223
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -48016,7 +49381,9 @@ var Travel = class Travel extends IntransitiveActivity {
48016
49381
  _fromSubclass: true
48017
49382
  });
48018
49383
  if (!(instance instanceof Travel)) throw new TypeError("Unexpected type: " + instance.constructor.name);
48019
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
49384
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
49385
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
49386
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
48020
49387
  instance._cachedJsonLd = structuredClone(json);
48021
49388
  } catch {
48022
49389
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -48180,7 +49547,9 @@ var Undo = class Undo extends Activity {
48180
49547
  _fromSubclass: true
48181
49548
  });
48182
49549
  if (!(instance instanceof Undo)) throw new TypeError("Unexpected type: " + instance.constructor.name);
48183
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
49550
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
49551
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
49552
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
48184
49553
  instance._cachedJsonLd = structuredClone(json);
48185
49554
  } catch {
48186
49555
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -48392,7 +49761,9 @@ var Update = class Update extends Activity {
48392
49761
  _fromSubclass: true
48393
49762
  });
48394
49763
  if (!(instance instanceof Update)) throw new TypeError("Unexpected type: " + instance.constructor.name);
48395
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
49764
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
49765
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
49766
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
48396
49767
  instance._cachedJsonLd = structuredClone(json);
48397
49768
  } catch {
48398
49769
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -48555,7 +49926,9 @@ var Video = class Video extends Document {
48555
49926
  _fromSubclass: true
48556
49927
  });
48557
49928
  if (!(instance instanceof Video)) throw new TypeError("Unexpected type: " + instance.constructor.name);
48558
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
49929
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
49930
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
49931
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
48559
49932
  instance._cachedJsonLd = structuredClone(json);
48560
49933
  } catch {
48561
49934
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -48704,7 +50077,9 @@ var View = class View extends Activity {
48704
50077
  _fromSubclass: true
48705
50078
  });
48706
50079
  if (!(instance instanceof View)) throw new TypeError("Unexpected type: " + instance.constructor.name);
48707
- if (!("_fromSubclass" in options) || !options._fromSubclass) try {
50080
+ let shouldCacheJsonLd = instance._shouldCacheJsonLd;
50081
+ instance._shouldCacheJsonLd = shouldCacheJsonLd;
50082
+ if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
48708
50083
  instance._cachedJsonLd = structuredClone(json);
48709
50084
  } catch {
48710
50085
  (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });