@fedify/fedify 0.11.0-dev.252 → 0.11.0-dev.254

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.
@@ -3257,506 +3257,449 @@ export class Object {
3257
3257
  const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : undefined }, options);
3258
3258
  const _49BipA5dq9eoH8LX8xdsVumveTca = [];
3259
3259
  const _49BipA5dq9eoH8LX8xdsVumveTca__array = values["https://www.w3.org/ns/activitystreams#attachment"];
3260
- for (const v of _49BipA5dq9eoH8LX8xdsVumveTca__array ?? []) {
3261
- if (v == null)
3262
- continue;
3263
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3264
- globalThis.Object.keys(v).length === 1) {
3265
- _49BipA5dq9eoH8LX8xdsVumveTca.push(new URL(v["@id"]));
3266
- continue;
3267
- }
3268
- const decoded = typeof v === "object" && "@type" in v &&
3269
- Array.isArray(v["@type"]) &&
3270
- [
3271
- "https://www.w3.org/ns/activitystreams#Object",
3272
- "http://joinmastodon.org/ns#Emoji",
3273
- "https://www.w3.org/ns/activitystreams#Activity",
3274
- "https://www.w3.org/ns/activitystreams#Accept",
3275
- "https://www.w3.org/ns/activitystreams#Add",
3276
- "https://www.w3.org/ns/activitystreams#Announce",
3277
- "https://www.w3.org/ns/activitystreams#Create",
3278
- "https://www.w3.org/ns/activitystreams#Delete",
3279
- "https://www.w3.org/ns/activitystreams#Dislike",
3280
- "https://www.w3.org/ns/activitystreams#Flag",
3281
- "https://www.w3.org/ns/activitystreams#Follow",
3282
- "https://www.w3.org/ns/activitystreams#Ignore",
3283
- "https://www.w3.org/ns/activitystreams#Block",
3284
- "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3285
- "https://www.w3.org/ns/activitystreams#Arrive",
3286
- "https://www.w3.org/ns/activitystreams#Question",
3287
- "https://www.w3.org/ns/activitystreams#Like",
3288
- "https://www.w3.org/ns/activitystreams#Offer",
3289
- "https://www.w3.org/ns/activitystreams#Reject",
3290
- "https://www.w3.org/ns/activitystreams#Remove",
3291
- "https://www.w3.org/ns/activitystreams#Undo",
3292
- "https://www.w3.org/ns/activitystreams#Update",
3293
- "https://www.w3.org/ns/activitystreams#Application",
3294
- "https://www.w3.org/ns/activitystreams#Article",
3295
- "https://www.w3.org/ns/activitystreams#Collection",
3296
- "https://www.w3.org/ns/activitystreams#CollectionPage",
3297
- "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3298
- "https://www.w3.org/ns/activitystreams#OrderedCollection",
3299
- "https://www.w3.org/ns/activitystreams#Document",
3300
- "https://www.w3.org/ns/activitystreams#Audio",
3301
- "https://www.w3.org/ns/activitystreams#Image",
3302
- "https://www.w3.org/ns/activitystreams#Page",
3303
- "https://www.w3.org/ns/activitystreams#Video",
3304
- "https://www.w3.org/ns/activitystreams#Event",
3305
- "https://www.w3.org/ns/activitystreams#Group",
3306
- "https://www.w3.org/ns/activitystreams#Note",
3307
- "https://www.w3.org/ns/activitystreams#Organization",
3308
- "https://www.w3.org/ns/activitystreams#Person",
3309
- "https://www.w3.org/ns/activitystreams#Place",
3310
- "https://www.w3.org/ns/activitystreams#Profile",
3311
- "https://www.w3.org/ns/activitystreams#Relationship",
3312
- "https://www.w3.org/ns/activitystreams#Service",
3313
- "https://www.w3.org/ns/activitystreams#Tombstone",
3314
- ].some((t) => v["@type"].includes(t))
3315
- ? await _a.fromJsonLd(v, options)
3316
- : typeof v === "object" && "@type" in v &&
3260
+ if (_49BipA5dq9eoH8LX8xdsVumveTca__array != null) {
3261
+ for (const v of _49BipA5dq9eoH8LX8xdsVumveTca__array) {
3262
+ if (v == null)
3263
+ continue;
3264
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3265
+ globalThis.Object.keys(v).length === 1) {
3266
+ _49BipA5dq9eoH8LX8xdsVumveTca.push(new URL(v["@id"]));
3267
+ continue;
3268
+ }
3269
+ const decoded = typeof v === "object" && "@type" in v &&
3317
3270
  Array.isArray(v["@type"]) &&
3318
3271
  [
3319
- "https://www.w3.org/ns/activitystreams#Link",
3320
- "https://www.w3.org/ns/activitystreams#Hashtag",
3321
- "https://www.w3.org/ns/activitystreams#Mention",
3272
+ "https://www.w3.org/ns/activitystreams#Object",
3273
+ "http://joinmastodon.org/ns#Emoji",
3274
+ "https://www.w3.org/ns/activitystreams#Activity",
3275
+ "https://www.w3.org/ns/activitystreams#Accept",
3276
+ "https://www.w3.org/ns/activitystreams#Add",
3277
+ "https://www.w3.org/ns/activitystreams#Announce",
3278
+ "https://www.w3.org/ns/activitystreams#Create",
3279
+ "https://www.w3.org/ns/activitystreams#Delete",
3280
+ "https://www.w3.org/ns/activitystreams#Dislike",
3281
+ "https://www.w3.org/ns/activitystreams#Flag",
3282
+ "https://www.w3.org/ns/activitystreams#Follow",
3283
+ "https://www.w3.org/ns/activitystreams#Ignore",
3284
+ "https://www.w3.org/ns/activitystreams#Block",
3285
+ "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3286
+ "https://www.w3.org/ns/activitystreams#Arrive",
3287
+ "https://www.w3.org/ns/activitystreams#Question",
3288
+ "https://www.w3.org/ns/activitystreams#Like",
3289
+ "https://www.w3.org/ns/activitystreams#Offer",
3290
+ "https://www.w3.org/ns/activitystreams#Reject",
3291
+ "https://www.w3.org/ns/activitystreams#Remove",
3292
+ "https://www.w3.org/ns/activitystreams#Undo",
3293
+ "https://www.w3.org/ns/activitystreams#Update",
3294
+ "https://www.w3.org/ns/activitystreams#Application",
3295
+ "https://www.w3.org/ns/activitystreams#Article",
3296
+ "https://www.w3.org/ns/activitystreams#Collection",
3297
+ "https://www.w3.org/ns/activitystreams#CollectionPage",
3298
+ "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3299
+ "https://www.w3.org/ns/activitystreams#OrderedCollection",
3300
+ "https://www.w3.org/ns/activitystreams#Document",
3301
+ "https://www.w3.org/ns/activitystreams#Audio",
3302
+ "https://www.w3.org/ns/activitystreams#Image",
3303
+ "https://www.w3.org/ns/activitystreams#Page",
3304
+ "https://www.w3.org/ns/activitystreams#Video",
3305
+ "https://www.w3.org/ns/activitystreams#Event",
3306
+ "https://www.w3.org/ns/activitystreams#Group",
3307
+ "https://www.w3.org/ns/activitystreams#Note",
3308
+ "https://www.w3.org/ns/activitystreams#Organization",
3309
+ "https://www.w3.org/ns/activitystreams#Person",
3310
+ "https://www.w3.org/ns/activitystreams#Place",
3311
+ "https://www.w3.org/ns/activitystreams#Profile",
3312
+ "https://www.w3.org/ns/activitystreams#Relationship",
3313
+ "https://www.w3.org/ns/activitystreams#Service",
3314
+ "https://www.w3.org/ns/activitystreams#Tombstone",
3322
3315
  ].some((t) => v["@type"].includes(t))
3323
- ? await Link.fromJsonLd(v, options)
3316
+ ? await _a.fromJsonLd(v, options)
3324
3317
  : typeof v === "object" && "@type" in v &&
3325
3318
  Array.isArray(v["@type"]) &&
3326
- v["@type"].includes("http://schema.org#PropertyValue")
3327
- ? await PropertyValue.fromJsonLd(v, options)
3328
- : undefined;
3329
- if (typeof decoded === "undefined")
3330
- continue;
3331
- _49BipA5dq9eoH8LX8xdsVumveTca.push(decoded);
3319
+ [
3320
+ "https://www.w3.org/ns/activitystreams#Link",
3321
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3322
+ "https://www.w3.org/ns/activitystreams#Mention",
3323
+ ].some((t) => v["@type"].includes(t))
3324
+ ? await Link.fromJsonLd(v, options)
3325
+ : typeof v === "object" && "@type" in v &&
3326
+ Array.isArray(v["@type"]) &&
3327
+ v["@type"].includes("http://schema.org#PropertyValue")
3328
+ ? await PropertyValue.fromJsonLd(v, options)
3329
+ : undefined;
3330
+ if (typeof decoded === "undefined")
3331
+ continue;
3332
+ _49BipA5dq9eoH8LX8xdsVumveTca.push(decoded);
3333
+ }
3332
3334
  }
3333
3335
  instance.#_49BipA5dq9eoH8LX8xdsVumveTca = _49BipA5dq9eoH8LX8xdsVumveTca;
3334
3336
  const _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py = [];
3335
3337
  const _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py__array = values["https://www.w3.org/ns/activitystreams#attributedTo"];
3336
- for (const v of _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py__array ?? []) {
3337
- if (v == null)
3338
- continue;
3339
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3340
- globalThis.Object.keys(v).length === 1) {
3341
- _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py.push(new URL(v["@id"]));
3342
- continue;
3343
- }
3344
- const decoded = typeof v === "object" && "@type" in v &&
3345
- Array.isArray(v["@type"]) &&
3346
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
3347
- ? await Application.fromJsonLd(v, options)
3348
- : typeof v === "object" && "@type" in v &&
3338
+ if (_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py__array != null) {
3339
+ for (const v of _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py__array) {
3340
+ if (v == null)
3341
+ continue;
3342
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3343
+ globalThis.Object.keys(v).length === 1) {
3344
+ _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py.push(new URL(v["@id"]));
3345
+ continue;
3346
+ }
3347
+ const decoded = typeof v === "object" && "@type" in v &&
3349
3348
  Array.isArray(v["@type"]) &&
3350
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
3351
- ? await Group.fromJsonLd(v, options)
3349
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
3350
+ ? await Application.fromJsonLd(v, options)
3352
3351
  : typeof v === "object" && "@type" in v &&
3353
3352
  Array.isArray(v["@type"]) &&
3354
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
3355
- ? await Organization.fromJsonLd(v, options)
3353
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
3354
+ ? await Group.fromJsonLd(v, options)
3356
3355
  : typeof v === "object" && "@type" in v &&
3357
3356
  Array.isArray(v["@type"]) &&
3358
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
3359
- ? await Person.fromJsonLd(v, options)
3357
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
3358
+ ? await Organization.fromJsonLd(v, options)
3360
3359
  : typeof v === "object" && "@type" in v &&
3361
3360
  Array.isArray(v["@type"]) &&
3362
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
3363
- ? await Service.fromJsonLd(v, options)
3364
- : undefined;
3365
- if (typeof decoded === "undefined")
3366
- continue;
3367
- _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py.push(decoded);
3361
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
3362
+ ? await Person.fromJsonLd(v, options)
3363
+ : typeof v === "object" && "@type" in v &&
3364
+ Array.isArray(v["@type"]) &&
3365
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
3366
+ ? await Service.fromJsonLd(v, options)
3367
+ : undefined;
3368
+ if (typeof decoded === "undefined")
3369
+ continue;
3370
+ _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py.push(decoded);
3371
+ }
3368
3372
  }
3369
3373
  instance.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py = _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py;
3370
3374
  const _3ocC3VVi88cEd5sPWL8djkZsvTN6 = [];
3371
3375
  const _3ocC3VVi88cEd5sPWL8djkZsvTN6__array = values["https://www.w3.org/ns/activitystreams#audience"];
3372
- for (const v of _3ocC3VVi88cEd5sPWL8djkZsvTN6__array ?? []) {
3373
- if (v == null)
3374
- continue;
3375
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3376
- globalThis.Object.keys(v).length === 1) {
3377
- _3ocC3VVi88cEd5sPWL8djkZsvTN6.push(new URL(v["@id"]));
3378
- continue;
3376
+ if (_3ocC3VVi88cEd5sPWL8djkZsvTN6__array != null) {
3377
+ for (const v of _3ocC3VVi88cEd5sPWL8djkZsvTN6__array) {
3378
+ if (v == null)
3379
+ continue;
3380
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3381
+ globalThis.Object.keys(v).length === 1) {
3382
+ _3ocC3VVi88cEd5sPWL8djkZsvTN6.push(new URL(v["@id"]));
3383
+ continue;
3384
+ }
3385
+ _3ocC3VVi88cEd5sPWL8djkZsvTN6.push(await _a.fromJsonLd(v, options));
3379
3386
  }
3380
- _3ocC3VVi88cEd5sPWL8djkZsvTN6.push(await _a.fromJsonLd(v, options));
3381
3387
  }
3382
3388
  instance.#_3ocC3VVi88cEd5sPWL8djkZsvTN6 = _3ocC3VVi88cEd5sPWL8djkZsvTN6;
3383
3389
  const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz = [];
3384
3390
  const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz__array = values["https://www.w3.org/ns/activitystreams#content"];
3385
- for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz__array ?? []) {
3386
- if (v == null)
3387
- continue;
3388
- const decoded = typeof v === "object" && "@value" in v &&
3389
- typeof v["@value"] === "string" && !("@language" in v)
3390
- ? v["@value"]
3391
- : typeof v === "object" && "@language" in v && "@value" in v &&
3392
- typeof v["@language"] === "string" &&
3393
- typeof v["@value"] === "string"
3394
- ? new LanguageString(v["@value"], v["@language"])
3395
- : undefined;
3396
- if (typeof decoded === "undefined")
3397
- continue;
3398
- _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz.push(decoded);
3391
+ if (_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz__array != null) {
3392
+ for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz__array) {
3393
+ if (v == null)
3394
+ continue;
3395
+ const decoded = typeof v === "object" && "@value" in v &&
3396
+ typeof v["@value"] === "string" && !("@language" in v)
3397
+ ? v["@value"]
3398
+ : typeof v === "object" && "@language" in v && "@value" in v &&
3399
+ typeof v["@language"] === "string" &&
3400
+ typeof v["@value"] === "string"
3401
+ ? new LanguageString(v["@value"], v["@language"])
3402
+ : undefined;
3403
+ if (typeof decoded === "undefined")
3404
+ continue;
3405
+ _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz.push(decoded);
3406
+ }
3399
3407
  }
3400
3408
  instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz;
3401
3409
  const _3mhZzGXSpQ431mBSz2kvych22v4e = [];
3402
3410
  const _3mhZzGXSpQ431mBSz2kvych22v4e__array = values["https://www.w3.org/ns/activitystreams#context"];
3403
- for (const v of _3mhZzGXSpQ431mBSz2kvych22v4e__array ?? []) {
3404
- if (v == null)
3405
- continue;
3406
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3407
- globalThis.Object.keys(v).length === 1) {
3408
- _3mhZzGXSpQ431mBSz2kvych22v4e.push(new URL(v["@id"]));
3409
- continue;
3410
- }
3411
- const decoded = typeof v === "object" && "@type" in v &&
3412
- Array.isArray(v["@type"]) &&
3413
- [
3414
- "https://www.w3.org/ns/activitystreams#Object",
3415
- "http://joinmastodon.org/ns#Emoji",
3416
- "https://www.w3.org/ns/activitystreams#Activity",
3417
- "https://www.w3.org/ns/activitystreams#Accept",
3418
- "https://www.w3.org/ns/activitystreams#Add",
3419
- "https://www.w3.org/ns/activitystreams#Announce",
3420
- "https://www.w3.org/ns/activitystreams#Create",
3421
- "https://www.w3.org/ns/activitystreams#Delete",
3422
- "https://www.w3.org/ns/activitystreams#Dislike",
3423
- "https://www.w3.org/ns/activitystreams#Flag",
3424
- "https://www.w3.org/ns/activitystreams#Follow",
3425
- "https://www.w3.org/ns/activitystreams#Ignore",
3426
- "https://www.w3.org/ns/activitystreams#Block",
3427
- "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3428
- "https://www.w3.org/ns/activitystreams#Arrive",
3429
- "https://www.w3.org/ns/activitystreams#Question",
3430
- "https://www.w3.org/ns/activitystreams#Like",
3431
- "https://www.w3.org/ns/activitystreams#Offer",
3432
- "https://www.w3.org/ns/activitystreams#Reject",
3433
- "https://www.w3.org/ns/activitystreams#Remove",
3434
- "https://www.w3.org/ns/activitystreams#Undo",
3435
- "https://www.w3.org/ns/activitystreams#Update",
3436
- "https://www.w3.org/ns/activitystreams#Application",
3437
- "https://www.w3.org/ns/activitystreams#Article",
3438
- "https://www.w3.org/ns/activitystreams#Collection",
3439
- "https://www.w3.org/ns/activitystreams#CollectionPage",
3440
- "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3441
- "https://www.w3.org/ns/activitystreams#OrderedCollection",
3442
- "https://www.w3.org/ns/activitystreams#Document",
3443
- "https://www.w3.org/ns/activitystreams#Audio",
3444
- "https://www.w3.org/ns/activitystreams#Image",
3445
- "https://www.w3.org/ns/activitystreams#Page",
3446
- "https://www.w3.org/ns/activitystreams#Video",
3447
- "https://www.w3.org/ns/activitystreams#Event",
3448
- "https://www.w3.org/ns/activitystreams#Group",
3449
- "https://www.w3.org/ns/activitystreams#Note",
3450
- "https://www.w3.org/ns/activitystreams#Organization",
3451
- "https://www.w3.org/ns/activitystreams#Person",
3452
- "https://www.w3.org/ns/activitystreams#Place",
3453
- "https://www.w3.org/ns/activitystreams#Profile",
3454
- "https://www.w3.org/ns/activitystreams#Relationship",
3455
- "https://www.w3.org/ns/activitystreams#Service",
3456
- "https://www.w3.org/ns/activitystreams#Tombstone",
3457
- ].some((t) => v["@type"].includes(t))
3458
- ? await _a.fromJsonLd(v, options)
3459
- : typeof v === "object" && "@type" in v &&
3411
+ if (_3mhZzGXSpQ431mBSz2kvych22v4e__array != null) {
3412
+ for (const v of _3mhZzGXSpQ431mBSz2kvych22v4e__array) {
3413
+ if (v == null)
3414
+ continue;
3415
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3416
+ globalThis.Object.keys(v).length === 1) {
3417
+ _3mhZzGXSpQ431mBSz2kvych22v4e.push(new URL(v["@id"]));
3418
+ continue;
3419
+ }
3420
+ const decoded = typeof v === "object" && "@type" in v &&
3460
3421
  Array.isArray(v["@type"]) &&
3461
3422
  [
3462
- "https://www.w3.org/ns/activitystreams#Link",
3463
- "https://www.w3.org/ns/activitystreams#Hashtag",
3464
- "https://www.w3.org/ns/activitystreams#Mention",
3423
+ "https://www.w3.org/ns/activitystreams#Object",
3424
+ "http://joinmastodon.org/ns#Emoji",
3425
+ "https://www.w3.org/ns/activitystreams#Activity",
3426
+ "https://www.w3.org/ns/activitystreams#Accept",
3427
+ "https://www.w3.org/ns/activitystreams#Add",
3428
+ "https://www.w3.org/ns/activitystreams#Announce",
3429
+ "https://www.w3.org/ns/activitystreams#Create",
3430
+ "https://www.w3.org/ns/activitystreams#Delete",
3431
+ "https://www.w3.org/ns/activitystreams#Dislike",
3432
+ "https://www.w3.org/ns/activitystreams#Flag",
3433
+ "https://www.w3.org/ns/activitystreams#Follow",
3434
+ "https://www.w3.org/ns/activitystreams#Ignore",
3435
+ "https://www.w3.org/ns/activitystreams#Block",
3436
+ "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3437
+ "https://www.w3.org/ns/activitystreams#Arrive",
3438
+ "https://www.w3.org/ns/activitystreams#Question",
3439
+ "https://www.w3.org/ns/activitystreams#Like",
3440
+ "https://www.w3.org/ns/activitystreams#Offer",
3441
+ "https://www.w3.org/ns/activitystreams#Reject",
3442
+ "https://www.w3.org/ns/activitystreams#Remove",
3443
+ "https://www.w3.org/ns/activitystreams#Undo",
3444
+ "https://www.w3.org/ns/activitystreams#Update",
3445
+ "https://www.w3.org/ns/activitystreams#Application",
3446
+ "https://www.w3.org/ns/activitystreams#Article",
3447
+ "https://www.w3.org/ns/activitystreams#Collection",
3448
+ "https://www.w3.org/ns/activitystreams#CollectionPage",
3449
+ "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3450
+ "https://www.w3.org/ns/activitystreams#OrderedCollection",
3451
+ "https://www.w3.org/ns/activitystreams#Document",
3452
+ "https://www.w3.org/ns/activitystreams#Audio",
3453
+ "https://www.w3.org/ns/activitystreams#Image",
3454
+ "https://www.w3.org/ns/activitystreams#Page",
3455
+ "https://www.w3.org/ns/activitystreams#Video",
3456
+ "https://www.w3.org/ns/activitystreams#Event",
3457
+ "https://www.w3.org/ns/activitystreams#Group",
3458
+ "https://www.w3.org/ns/activitystreams#Note",
3459
+ "https://www.w3.org/ns/activitystreams#Organization",
3460
+ "https://www.w3.org/ns/activitystreams#Person",
3461
+ "https://www.w3.org/ns/activitystreams#Place",
3462
+ "https://www.w3.org/ns/activitystreams#Profile",
3463
+ "https://www.w3.org/ns/activitystreams#Relationship",
3464
+ "https://www.w3.org/ns/activitystreams#Service",
3465
+ "https://www.w3.org/ns/activitystreams#Tombstone",
3465
3466
  ].some((t) => v["@type"].includes(t))
3466
- ? await Link.fromJsonLd(v, options)
3467
- : undefined;
3468
- if (typeof decoded === "undefined")
3469
- continue;
3470
- _3mhZzGXSpQ431mBSz2kvych22v4e.push(decoded);
3467
+ ? await _a.fromJsonLd(v, options)
3468
+ : typeof v === "object" && "@type" in v &&
3469
+ Array.isArray(v["@type"]) &&
3470
+ [
3471
+ "https://www.w3.org/ns/activitystreams#Link",
3472
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3473
+ "https://www.w3.org/ns/activitystreams#Mention",
3474
+ ].some((t) => v["@type"].includes(t))
3475
+ ? await Link.fromJsonLd(v, options)
3476
+ : undefined;
3477
+ if (typeof decoded === "undefined")
3478
+ continue;
3479
+ _3mhZzGXSpQ431mBSz2kvych22v4e.push(decoded);
3480
+ }
3471
3481
  }
3472
3482
  instance.#_3mhZzGXSpQ431mBSz2kvych22v4e = _3mhZzGXSpQ431mBSz2kvych22v4e;
3473
3483
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav = [];
3474
3484
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array = values["https://www.w3.org/ns/activitystreams#name"];
3475
- for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array ?? []) {
3476
- if (v == null)
3477
- continue;
3478
- const decoded = typeof v === "object" && "@value" in v &&
3479
- typeof v["@value"] === "string" && !("@language" in v)
3480
- ? v["@value"]
3481
- : typeof v === "object" && "@language" in v && "@value" in v &&
3482
- typeof v["@language"] === "string" &&
3483
- typeof v["@value"] === "string"
3484
- ? new LanguageString(v["@value"], v["@language"])
3485
- : undefined;
3486
- if (typeof decoded === "undefined")
3487
- continue;
3488
- _4ZHbBuK7PrsvGgrjM8wgc6KMWjav.push(decoded);
3485
+ if (_4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array != null) {
3486
+ for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array) {
3487
+ if (v == null)
3488
+ continue;
3489
+ const decoded = typeof v === "object" && "@value" in v &&
3490
+ typeof v["@value"] === "string" && !("@language" in v)
3491
+ ? v["@value"]
3492
+ : typeof v === "object" && "@language" in v && "@value" in v &&
3493
+ typeof v["@language"] === "string" &&
3494
+ typeof v["@value"] === "string"
3495
+ ? new LanguageString(v["@value"], v["@language"])
3496
+ : undefined;
3497
+ if (typeof decoded === "undefined")
3498
+ continue;
3499
+ _4ZHbBuK7PrsvGgrjM8wgc6KMWjav.push(decoded);
3500
+ }
3489
3501
  }
3490
3502
  instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav;
3491
3503
  const _219RwDanjScTv5tYCjwGZVCM7KZ9 = [];
3492
3504
  const _219RwDanjScTv5tYCjwGZVCM7KZ9__array = values["https://www.w3.org/ns/activitystreams#endTime"];
3493
- for (const v of _219RwDanjScTv5tYCjwGZVCM7KZ9__array ?? []) {
3494
- if (v == null)
3495
- continue;
3496
- _219RwDanjScTv5tYCjwGZVCM7KZ9.push(dntShim.Temporal.Instant.from(v["@value"]));
3505
+ if (_219RwDanjScTv5tYCjwGZVCM7KZ9__array != null) {
3506
+ for (const v of _219RwDanjScTv5tYCjwGZVCM7KZ9__array) {
3507
+ if (v == null)
3508
+ continue;
3509
+ _219RwDanjScTv5tYCjwGZVCM7KZ9.push(dntShim.Temporal.Instant.from(v["@value"]));
3510
+ }
3497
3511
  }
3498
3512
  instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9 = _219RwDanjScTv5tYCjwGZVCM7KZ9;
3499
3513
  const _86xFhmgBapoMvYqjbjRuDPayTrS = [];
3500
3514
  const _86xFhmgBapoMvYqjbjRuDPayTrS__array = values["https://www.w3.org/ns/activitystreams#generator"];
3501
- for (const v of _86xFhmgBapoMvYqjbjRuDPayTrS__array ?? []) {
3502
- if (v == null)
3503
- continue;
3504
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3505
- globalThis.Object.keys(v).length === 1) {
3506
- _86xFhmgBapoMvYqjbjRuDPayTrS.push(new URL(v["@id"]));
3507
- continue;
3508
- }
3509
- const decoded = typeof v === "object" && "@type" in v &&
3510
- Array.isArray(v["@type"]) &&
3511
- [
3512
- "https://www.w3.org/ns/activitystreams#Object",
3513
- "http://joinmastodon.org/ns#Emoji",
3514
- "https://www.w3.org/ns/activitystreams#Activity",
3515
- "https://www.w3.org/ns/activitystreams#Accept",
3516
- "https://www.w3.org/ns/activitystreams#Add",
3517
- "https://www.w3.org/ns/activitystreams#Announce",
3518
- "https://www.w3.org/ns/activitystreams#Create",
3519
- "https://www.w3.org/ns/activitystreams#Delete",
3520
- "https://www.w3.org/ns/activitystreams#Dislike",
3521
- "https://www.w3.org/ns/activitystreams#Flag",
3522
- "https://www.w3.org/ns/activitystreams#Follow",
3523
- "https://www.w3.org/ns/activitystreams#Ignore",
3524
- "https://www.w3.org/ns/activitystreams#Block",
3525
- "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3526
- "https://www.w3.org/ns/activitystreams#Arrive",
3527
- "https://www.w3.org/ns/activitystreams#Question",
3528
- "https://www.w3.org/ns/activitystreams#Like",
3529
- "https://www.w3.org/ns/activitystreams#Offer",
3530
- "https://www.w3.org/ns/activitystreams#Reject",
3531
- "https://www.w3.org/ns/activitystreams#Remove",
3532
- "https://www.w3.org/ns/activitystreams#Undo",
3533
- "https://www.w3.org/ns/activitystreams#Update",
3534
- "https://www.w3.org/ns/activitystreams#Application",
3535
- "https://www.w3.org/ns/activitystreams#Article",
3536
- "https://www.w3.org/ns/activitystreams#Collection",
3537
- "https://www.w3.org/ns/activitystreams#CollectionPage",
3538
- "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3539
- "https://www.w3.org/ns/activitystreams#OrderedCollection",
3540
- "https://www.w3.org/ns/activitystreams#Document",
3541
- "https://www.w3.org/ns/activitystreams#Audio",
3542
- "https://www.w3.org/ns/activitystreams#Image",
3543
- "https://www.w3.org/ns/activitystreams#Page",
3544
- "https://www.w3.org/ns/activitystreams#Video",
3545
- "https://www.w3.org/ns/activitystreams#Event",
3546
- "https://www.w3.org/ns/activitystreams#Group",
3547
- "https://www.w3.org/ns/activitystreams#Note",
3548
- "https://www.w3.org/ns/activitystreams#Organization",
3549
- "https://www.w3.org/ns/activitystreams#Person",
3550
- "https://www.w3.org/ns/activitystreams#Place",
3551
- "https://www.w3.org/ns/activitystreams#Profile",
3552
- "https://www.w3.org/ns/activitystreams#Relationship",
3553
- "https://www.w3.org/ns/activitystreams#Service",
3554
- "https://www.w3.org/ns/activitystreams#Tombstone",
3555
- ].some((t) => v["@type"].includes(t))
3556
- ? await _a.fromJsonLd(v, options)
3557
- : typeof v === "object" && "@type" in v &&
3515
+ if (_86xFhmgBapoMvYqjbjRuDPayTrS__array != null) {
3516
+ for (const v of _86xFhmgBapoMvYqjbjRuDPayTrS__array) {
3517
+ if (v == null)
3518
+ continue;
3519
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3520
+ globalThis.Object.keys(v).length === 1) {
3521
+ _86xFhmgBapoMvYqjbjRuDPayTrS.push(new URL(v["@id"]));
3522
+ continue;
3523
+ }
3524
+ const decoded = typeof v === "object" && "@type" in v &&
3558
3525
  Array.isArray(v["@type"]) &&
3559
3526
  [
3560
- "https://www.w3.org/ns/activitystreams#Link",
3561
- "https://www.w3.org/ns/activitystreams#Hashtag",
3562
- "https://www.w3.org/ns/activitystreams#Mention",
3527
+ "https://www.w3.org/ns/activitystreams#Object",
3528
+ "http://joinmastodon.org/ns#Emoji",
3529
+ "https://www.w3.org/ns/activitystreams#Activity",
3530
+ "https://www.w3.org/ns/activitystreams#Accept",
3531
+ "https://www.w3.org/ns/activitystreams#Add",
3532
+ "https://www.w3.org/ns/activitystreams#Announce",
3533
+ "https://www.w3.org/ns/activitystreams#Create",
3534
+ "https://www.w3.org/ns/activitystreams#Delete",
3535
+ "https://www.w3.org/ns/activitystreams#Dislike",
3536
+ "https://www.w3.org/ns/activitystreams#Flag",
3537
+ "https://www.w3.org/ns/activitystreams#Follow",
3538
+ "https://www.w3.org/ns/activitystreams#Ignore",
3539
+ "https://www.w3.org/ns/activitystreams#Block",
3540
+ "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3541
+ "https://www.w3.org/ns/activitystreams#Arrive",
3542
+ "https://www.w3.org/ns/activitystreams#Question",
3543
+ "https://www.w3.org/ns/activitystreams#Like",
3544
+ "https://www.w3.org/ns/activitystreams#Offer",
3545
+ "https://www.w3.org/ns/activitystreams#Reject",
3546
+ "https://www.w3.org/ns/activitystreams#Remove",
3547
+ "https://www.w3.org/ns/activitystreams#Undo",
3548
+ "https://www.w3.org/ns/activitystreams#Update",
3549
+ "https://www.w3.org/ns/activitystreams#Application",
3550
+ "https://www.w3.org/ns/activitystreams#Article",
3551
+ "https://www.w3.org/ns/activitystreams#Collection",
3552
+ "https://www.w3.org/ns/activitystreams#CollectionPage",
3553
+ "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3554
+ "https://www.w3.org/ns/activitystreams#OrderedCollection",
3555
+ "https://www.w3.org/ns/activitystreams#Document",
3556
+ "https://www.w3.org/ns/activitystreams#Audio",
3557
+ "https://www.w3.org/ns/activitystreams#Image",
3558
+ "https://www.w3.org/ns/activitystreams#Page",
3559
+ "https://www.w3.org/ns/activitystreams#Video",
3560
+ "https://www.w3.org/ns/activitystreams#Event",
3561
+ "https://www.w3.org/ns/activitystreams#Group",
3562
+ "https://www.w3.org/ns/activitystreams#Note",
3563
+ "https://www.w3.org/ns/activitystreams#Organization",
3564
+ "https://www.w3.org/ns/activitystreams#Person",
3565
+ "https://www.w3.org/ns/activitystreams#Place",
3566
+ "https://www.w3.org/ns/activitystreams#Profile",
3567
+ "https://www.w3.org/ns/activitystreams#Relationship",
3568
+ "https://www.w3.org/ns/activitystreams#Service",
3569
+ "https://www.w3.org/ns/activitystreams#Tombstone",
3563
3570
  ].some((t) => v["@type"].includes(t))
3564
- ? await Link.fromJsonLd(v, options)
3565
- : undefined;
3566
- if (typeof decoded === "undefined")
3567
- continue;
3568
- _86xFhmgBapoMvYqjbjRuDPayTrS.push(decoded);
3571
+ ? await _a.fromJsonLd(v, options)
3572
+ : typeof v === "object" && "@type" in v &&
3573
+ Array.isArray(v["@type"]) &&
3574
+ [
3575
+ "https://www.w3.org/ns/activitystreams#Link",
3576
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3577
+ "https://www.w3.org/ns/activitystreams#Mention",
3578
+ ].some((t) => v["@type"].includes(t))
3579
+ ? await Link.fromJsonLd(v, options)
3580
+ : undefined;
3581
+ if (typeof decoded === "undefined")
3582
+ continue;
3583
+ _86xFhmgBapoMvYqjbjRuDPayTrS.push(decoded);
3584
+ }
3569
3585
  }
3570
3586
  instance.#_86xFhmgBapoMvYqjbjRuDPayTrS = _86xFhmgBapoMvYqjbjRuDPayTrS;
3571
3587
  const _33CjRLy5ujtsUrwRSCrsggvGdKuR = [];
3572
3588
  const _33CjRLy5ujtsUrwRSCrsggvGdKuR__array = values["https://www.w3.org/ns/activitystreams#icon"];
3573
- for (const v of _33CjRLy5ujtsUrwRSCrsggvGdKuR__array ?? []) {
3574
- if (v == null)
3575
- continue;
3576
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3577
- globalThis.Object.keys(v).length === 1) {
3578
- _33CjRLy5ujtsUrwRSCrsggvGdKuR.push(new URL(v["@id"]));
3579
- continue;
3589
+ if (_33CjRLy5ujtsUrwRSCrsggvGdKuR__array != null) {
3590
+ for (const v of _33CjRLy5ujtsUrwRSCrsggvGdKuR__array) {
3591
+ if (v == null)
3592
+ continue;
3593
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3594
+ globalThis.Object.keys(v).length === 1) {
3595
+ _33CjRLy5ujtsUrwRSCrsggvGdKuR.push(new URL(v["@id"]));
3596
+ continue;
3597
+ }
3598
+ _33CjRLy5ujtsUrwRSCrsggvGdKuR.push(await Image.fromJsonLd(v, options));
3580
3599
  }
3581
- _33CjRLy5ujtsUrwRSCrsggvGdKuR.push(await Image.fromJsonLd(v, options));
3582
3600
  }
3583
3601
  instance.#_33CjRLy5ujtsUrwRSCrsggvGdKuR = _33CjRLy5ujtsUrwRSCrsggvGdKuR;
3584
3602
  const _3dXrUdkARxwyJLtJcYi1AJ92H41U = [];
3585
3603
  const _3dXrUdkARxwyJLtJcYi1AJ92H41U__array = values["https://www.w3.org/ns/activitystreams#image"];
3586
- for (const v of _3dXrUdkARxwyJLtJcYi1AJ92H41U__array ?? []) {
3587
- if (v == null)
3588
- continue;
3589
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3590
- globalThis.Object.keys(v).length === 1) {
3591
- _3dXrUdkARxwyJLtJcYi1AJ92H41U.push(new URL(v["@id"]));
3592
- continue;
3604
+ if (_3dXrUdkARxwyJLtJcYi1AJ92H41U__array != null) {
3605
+ for (const v of _3dXrUdkARxwyJLtJcYi1AJ92H41U__array) {
3606
+ if (v == null)
3607
+ continue;
3608
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3609
+ globalThis.Object.keys(v).length === 1) {
3610
+ _3dXrUdkARxwyJLtJcYi1AJ92H41U.push(new URL(v["@id"]));
3611
+ continue;
3612
+ }
3613
+ _3dXrUdkARxwyJLtJcYi1AJ92H41U.push(await Image.fromJsonLd(v, options));
3593
3614
  }
3594
- _3dXrUdkARxwyJLtJcYi1AJ92H41U.push(await Image.fromJsonLd(v, options));
3595
3615
  }
3596
3616
  instance.#_3dXrUdkARxwyJLtJcYi1AJ92H41U = _3dXrUdkARxwyJLtJcYi1AJ92H41U;
3597
3617
  const _3fpbDrvZgf3Kq1a5V9aByFn8kx3s = [];
3598
3618
  const _3fpbDrvZgf3Kq1a5V9aByFn8kx3s__array = values["https://www.w3.org/ns/activitystreams#inReplyTo"];
3599
- for (const v of _3fpbDrvZgf3Kq1a5V9aByFn8kx3s__array ?? []) {
3600
- if (v == null)
3601
- continue;
3602
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3603
- globalThis.Object.keys(v).length === 1) {
3604
- _3fpbDrvZgf3Kq1a5V9aByFn8kx3s.push(new URL(v["@id"]));
3605
- continue;
3606
- }
3607
- const decoded = typeof v === "object" && "@type" in v &&
3608
- Array.isArray(v["@type"]) &&
3609
- [
3610
- "https://www.w3.org/ns/activitystreams#Object",
3611
- "http://joinmastodon.org/ns#Emoji",
3612
- "https://www.w3.org/ns/activitystreams#Activity",
3613
- "https://www.w3.org/ns/activitystreams#Accept",
3614
- "https://www.w3.org/ns/activitystreams#Add",
3615
- "https://www.w3.org/ns/activitystreams#Announce",
3616
- "https://www.w3.org/ns/activitystreams#Create",
3617
- "https://www.w3.org/ns/activitystreams#Delete",
3618
- "https://www.w3.org/ns/activitystreams#Dislike",
3619
- "https://www.w3.org/ns/activitystreams#Flag",
3620
- "https://www.w3.org/ns/activitystreams#Follow",
3621
- "https://www.w3.org/ns/activitystreams#Ignore",
3622
- "https://www.w3.org/ns/activitystreams#Block",
3623
- "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3624
- "https://www.w3.org/ns/activitystreams#Arrive",
3625
- "https://www.w3.org/ns/activitystreams#Question",
3626
- "https://www.w3.org/ns/activitystreams#Like",
3627
- "https://www.w3.org/ns/activitystreams#Offer",
3628
- "https://www.w3.org/ns/activitystreams#Reject",
3629
- "https://www.w3.org/ns/activitystreams#Remove",
3630
- "https://www.w3.org/ns/activitystreams#Undo",
3631
- "https://www.w3.org/ns/activitystreams#Update",
3632
- "https://www.w3.org/ns/activitystreams#Application",
3633
- "https://www.w3.org/ns/activitystreams#Article",
3634
- "https://www.w3.org/ns/activitystreams#Collection",
3635
- "https://www.w3.org/ns/activitystreams#CollectionPage",
3636
- "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3637
- "https://www.w3.org/ns/activitystreams#OrderedCollection",
3638
- "https://www.w3.org/ns/activitystreams#Document",
3639
- "https://www.w3.org/ns/activitystreams#Audio",
3640
- "https://www.w3.org/ns/activitystreams#Image",
3641
- "https://www.w3.org/ns/activitystreams#Page",
3642
- "https://www.w3.org/ns/activitystreams#Video",
3643
- "https://www.w3.org/ns/activitystreams#Event",
3644
- "https://www.w3.org/ns/activitystreams#Group",
3645
- "https://www.w3.org/ns/activitystreams#Note",
3646
- "https://www.w3.org/ns/activitystreams#Organization",
3647
- "https://www.w3.org/ns/activitystreams#Person",
3648
- "https://www.w3.org/ns/activitystreams#Place",
3649
- "https://www.w3.org/ns/activitystreams#Profile",
3650
- "https://www.w3.org/ns/activitystreams#Relationship",
3651
- "https://www.w3.org/ns/activitystreams#Service",
3652
- "https://www.w3.org/ns/activitystreams#Tombstone",
3653
- ].some((t) => v["@type"].includes(t))
3654
- ? await _a.fromJsonLd(v, options)
3655
- : typeof v === "object" && "@type" in v &&
3619
+ if (_3fpbDrvZgf3Kq1a5V9aByFn8kx3s__array != null) {
3620
+ for (const v of _3fpbDrvZgf3Kq1a5V9aByFn8kx3s__array) {
3621
+ if (v == null)
3622
+ continue;
3623
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3624
+ globalThis.Object.keys(v).length === 1) {
3625
+ _3fpbDrvZgf3Kq1a5V9aByFn8kx3s.push(new URL(v["@id"]));
3626
+ continue;
3627
+ }
3628
+ const decoded = typeof v === "object" && "@type" in v &&
3656
3629
  Array.isArray(v["@type"]) &&
3657
3630
  [
3658
- "https://www.w3.org/ns/activitystreams#Link",
3659
- "https://www.w3.org/ns/activitystreams#Hashtag",
3660
- "https://www.w3.org/ns/activitystreams#Mention",
3631
+ "https://www.w3.org/ns/activitystreams#Object",
3632
+ "http://joinmastodon.org/ns#Emoji",
3633
+ "https://www.w3.org/ns/activitystreams#Activity",
3634
+ "https://www.w3.org/ns/activitystreams#Accept",
3635
+ "https://www.w3.org/ns/activitystreams#Add",
3636
+ "https://www.w3.org/ns/activitystreams#Announce",
3637
+ "https://www.w3.org/ns/activitystreams#Create",
3638
+ "https://www.w3.org/ns/activitystreams#Delete",
3639
+ "https://www.w3.org/ns/activitystreams#Dislike",
3640
+ "https://www.w3.org/ns/activitystreams#Flag",
3641
+ "https://www.w3.org/ns/activitystreams#Follow",
3642
+ "https://www.w3.org/ns/activitystreams#Ignore",
3643
+ "https://www.w3.org/ns/activitystreams#Block",
3644
+ "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3645
+ "https://www.w3.org/ns/activitystreams#Arrive",
3646
+ "https://www.w3.org/ns/activitystreams#Question",
3647
+ "https://www.w3.org/ns/activitystreams#Like",
3648
+ "https://www.w3.org/ns/activitystreams#Offer",
3649
+ "https://www.w3.org/ns/activitystreams#Reject",
3650
+ "https://www.w3.org/ns/activitystreams#Remove",
3651
+ "https://www.w3.org/ns/activitystreams#Undo",
3652
+ "https://www.w3.org/ns/activitystreams#Update",
3653
+ "https://www.w3.org/ns/activitystreams#Application",
3654
+ "https://www.w3.org/ns/activitystreams#Article",
3655
+ "https://www.w3.org/ns/activitystreams#Collection",
3656
+ "https://www.w3.org/ns/activitystreams#CollectionPage",
3657
+ "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3658
+ "https://www.w3.org/ns/activitystreams#OrderedCollection",
3659
+ "https://www.w3.org/ns/activitystreams#Document",
3660
+ "https://www.w3.org/ns/activitystreams#Audio",
3661
+ "https://www.w3.org/ns/activitystreams#Image",
3662
+ "https://www.w3.org/ns/activitystreams#Page",
3663
+ "https://www.w3.org/ns/activitystreams#Video",
3664
+ "https://www.w3.org/ns/activitystreams#Event",
3665
+ "https://www.w3.org/ns/activitystreams#Group",
3666
+ "https://www.w3.org/ns/activitystreams#Note",
3667
+ "https://www.w3.org/ns/activitystreams#Organization",
3668
+ "https://www.w3.org/ns/activitystreams#Person",
3669
+ "https://www.w3.org/ns/activitystreams#Place",
3670
+ "https://www.w3.org/ns/activitystreams#Profile",
3671
+ "https://www.w3.org/ns/activitystreams#Relationship",
3672
+ "https://www.w3.org/ns/activitystreams#Service",
3673
+ "https://www.w3.org/ns/activitystreams#Tombstone",
3661
3674
  ].some((t) => v["@type"].includes(t))
3662
- ? await Link.fromJsonLd(v, options)
3663
- : undefined;
3664
- if (typeof decoded === "undefined")
3665
- continue;
3666
- _3fpbDrvZgf3Kq1a5V9aByFn8kx3s.push(decoded);
3667
- }
3668
- instance.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s = _3fpbDrvZgf3Kq1a5V9aByFn8kx3s;
3669
- const _31k5MUZJsnsPNg8dQQJieWaXTFnR = [];
3670
- const _31k5MUZJsnsPNg8dQQJieWaXTFnR__array = values["https://www.w3.org/ns/activitystreams#location"];
3671
- for (const v of _31k5MUZJsnsPNg8dQQJieWaXTFnR__array ?? []) {
3672
- if (v == null)
3673
- continue;
3674
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3675
- globalThis.Object.keys(v).length === 1) {
3676
- _31k5MUZJsnsPNg8dQQJieWaXTFnR.push(new URL(v["@id"]));
3677
- continue;
3675
+ ? await _a.fromJsonLd(v, options)
3676
+ : typeof v === "object" && "@type" in v &&
3677
+ Array.isArray(v["@type"]) &&
3678
+ [
3679
+ "https://www.w3.org/ns/activitystreams#Link",
3680
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3681
+ "https://www.w3.org/ns/activitystreams#Mention",
3682
+ ].some((t) => v["@type"].includes(t))
3683
+ ? await Link.fromJsonLd(v, options)
3684
+ : undefined;
3685
+ if (typeof decoded === "undefined")
3686
+ continue;
3687
+ _3fpbDrvZgf3Kq1a5V9aByFn8kx3s.push(decoded);
3678
3688
  }
3679
- const decoded = typeof v === "object" && "@type" in v &&
3680
- Array.isArray(v["@type"]) &&
3681
- [
3682
- "https://www.w3.org/ns/activitystreams#Object",
3683
- "http://joinmastodon.org/ns#Emoji",
3684
- "https://www.w3.org/ns/activitystreams#Activity",
3685
- "https://www.w3.org/ns/activitystreams#Accept",
3686
- "https://www.w3.org/ns/activitystreams#Add",
3687
- "https://www.w3.org/ns/activitystreams#Announce",
3688
- "https://www.w3.org/ns/activitystreams#Create",
3689
- "https://www.w3.org/ns/activitystreams#Delete",
3690
- "https://www.w3.org/ns/activitystreams#Dislike",
3691
- "https://www.w3.org/ns/activitystreams#Flag",
3692
- "https://www.w3.org/ns/activitystreams#Follow",
3693
- "https://www.w3.org/ns/activitystreams#Ignore",
3694
- "https://www.w3.org/ns/activitystreams#Block",
3695
- "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3696
- "https://www.w3.org/ns/activitystreams#Arrive",
3697
- "https://www.w3.org/ns/activitystreams#Question",
3698
- "https://www.w3.org/ns/activitystreams#Like",
3699
- "https://www.w3.org/ns/activitystreams#Offer",
3700
- "https://www.w3.org/ns/activitystreams#Reject",
3701
- "https://www.w3.org/ns/activitystreams#Remove",
3702
- "https://www.w3.org/ns/activitystreams#Undo",
3703
- "https://www.w3.org/ns/activitystreams#Update",
3704
- "https://www.w3.org/ns/activitystreams#Application",
3705
- "https://www.w3.org/ns/activitystreams#Article",
3706
- "https://www.w3.org/ns/activitystreams#Collection",
3707
- "https://www.w3.org/ns/activitystreams#CollectionPage",
3708
- "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3709
- "https://www.w3.org/ns/activitystreams#OrderedCollection",
3710
- "https://www.w3.org/ns/activitystreams#Document",
3711
- "https://www.w3.org/ns/activitystreams#Audio",
3712
- "https://www.w3.org/ns/activitystreams#Image",
3713
- "https://www.w3.org/ns/activitystreams#Page",
3714
- "https://www.w3.org/ns/activitystreams#Video",
3715
- "https://www.w3.org/ns/activitystreams#Event",
3716
- "https://www.w3.org/ns/activitystreams#Group",
3717
- "https://www.w3.org/ns/activitystreams#Note",
3718
- "https://www.w3.org/ns/activitystreams#Organization",
3719
- "https://www.w3.org/ns/activitystreams#Person",
3720
- "https://www.w3.org/ns/activitystreams#Place",
3721
- "https://www.w3.org/ns/activitystreams#Profile",
3722
- "https://www.w3.org/ns/activitystreams#Relationship",
3723
- "https://www.w3.org/ns/activitystreams#Service",
3724
- "https://www.w3.org/ns/activitystreams#Tombstone",
3725
- ].some((t) => v["@type"].includes(t))
3726
- ? await _a.fromJsonLd(v, options)
3727
- : typeof v === "object" && "@type" in v &&
3728
- Array.isArray(v["@type"]) &&
3729
- [
3730
- "https://www.w3.org/ns/activitystreams#Link",
3731
- "https://www.w3.org/ns/activitystreams#Hashtag",
3732
- "https://www.w3.org/ns/activitystreams#Mention",
3733
- ].some((t) => v["@type"].includes(t))
3734
- ? await Link.fromJsonLd(v, options)
3735
- : undefined;
3736
- if (typeof decoded === "undefined")
3737
- continue;
3738
- _31k5MUZJsnsPNg8dQQJieWaXTFnR.push(decoded);
3739
3689
  }
3740
- instance.#_31k5MUZJsnsPNg8dQQJieWaXTFnR = _31k5MUZJsnsPNg8dQQJieWaXTFnR;
3741
- const _gCVTegXxWWCw6wWRxa1QF65zusg = [];
3742
- const _gCVTegXxWWCw6wWRxa1QF65zusg__array = values["https://www.w3.org/ns/activitystreams#preview"];
3743
- for (const v of _gCVTegXxWWCw6wWRxa1QF65zusg__array ?? []) {
3744
- if (v == null)
3745
- continue;
3746
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3747
- globalThis.Object.keys(v).length === 1) {
3748
- _gCVTegXxWWCw6wWRxa1QF65zusg.push(new URL(v["@id"]));
3749
- continue;
3750
- }
3751
- const decoded = typeof v === "object" && "@type" in v &&
3752
- Array.isArray(v["@type"]) &&
3753
- [
3754
- "https://www.w3.org/ns/activitystreams#Link",
3755
- "https://www.w3.org/ns/activitystreams#Hashtag",
3756
- "https://www.w3.org/ns/activitystreams#Mention",
3757
- ].some((t) => v["@type"].includes(t))
3758
- ? await Link.fromJsonLd(v, options)
3759
- : typeof v === "object" && "@type" in v &&
3690
+ instance.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s = _3fpbDrvZgf3Kq1a5V9aByFn8kx3s;
3691
+ const _31k5MUZJsnsPNg8dQQJieWaXTFnR = [];
3692
+ const _31k5MUZJsnsPNg8dQQJieWaXTFnR__array = values["https://www.w3.org/ns/activitystreams#location"];
3693
+ if (_31k5MUZJsnsPNg8dQQJieWaXTFnR__array != null) {
3694
+ for (const v of _31k5MUZJsnsPNg8dQQJieWaXTFnR__array) {
3695
+ if (v == null)
3696
+ continue;
3697
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3698
+ globalThis.Object.keys(v).length === 1) {
3699
+ _31k5MUZJsnsPNg8dQQJieWaXTFnR.push(new URL(v["@id"]));
3700
+ continue;
3701
+ }
3702
+ const decoded = typeof v === "object" && "@type" in v &&
3760
3703
  Array.isArray(v["@type"]) &&
3761
3704
  [
3762
3705
  "https://www.w3.org/ns/activitystreams#Object",
@@ -3804,248 +3747,361 @@ export class Object {
3804
3747
  "https://www.w3.org/ns/activitystreams#Tombstone",
3805
3748
  ].some((t) => v["@type"].includes(t))
3806
3749
  ? await _a.fromJsonLd(v, options)
3807
- : undefined;
3808
- if (typeof decoded === "undefined")
3809
- continue;
3810
- _gCVTegXxWWCw6wWRxa1QF65zusg.push(decoded);
3750
+ : typeof v === "object" && "@type" in v &&
3751
+ Array.isArray(v["@type"]) &&
3752
+ [
3753
+ "https://www.w3.org/ns/activitystreams#Link",
3754
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3755
+ "https://www.w3.org/ns/activitystreams#Mention",
3756
+ ].some((t) => v["@type"].includes(t))
3757
+ ? await Link.fromJsonLd(v, options)
3758
+ : undefined;
3759
+ if (typeof decoded === "undefined")
3760
+ continue;
3761
+ _31k5MUZJsnsPNg8dQQJieWaXTFnR.push(decoded);
3762
+ }
3763
+ }
3764
+ instance.#_31k5MUZJsnsPNg8dQQJieWaXTFnR = _31k5MUZJsnsPNg8dQQJieWaXTFnR;
3765
+ const _gCVTegXxWWCw6wWRxa1QF65zusg = [];
3766
+ const _gCVTegXxWWCw6wWRxa1QF65zusg__array = values["https://www.w3.org/ns/activitystreams#preview"];
3767
+ if (_gCVTegXxWWCw6wWRxa1QF65zusg__array != null) {
3768
+ for (const v of _gCVTegXxWWCw6wWRxa1QF65zusg__array) {
3769
+ if (v == null)
3770
+ continue;
3771
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3772
+ globalThis.Object.keys(v).length === 1) {
3773
+ _gCVTegXxWWCw6wWRxa1QF65zusg.push(new URL(v["@id"]));
3774
+ continue;
3775
+ }
3776
+ const decoded = typeof v === "object" && "@type" in v &&
3777
+ Array.isArray(v["@type"]) &&
3778
+ [
3779
+ "https://www.w3.org/ns/activitystreams#Link",
3780
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3781
+ "https://www.w3.org/ns/activitystreams#Mention",
3782
+ ].some((t) => v["@type"].includes(t))
3783
+ ? await Link.fromJsonLd(v, options)
3784
+ : typeof v === "object" && "@type" in v &&
3785
+ Array.isArray(v["@type"]) &&
3786
+ [
3787
+ "https://www.w3.org/ns/activitystreams#Object",
3788
+ "http://joinmastodon.org/ns#Emoji",
3789
+ "https://www.w3.org/ns/activitystreams#Activity",
3790
+ "https://www.w3.org/ns/activitystreams#Accept",
3791
+ "https://www.w3.org/ns/activitystreams#Add",
3792
+ "https://www.w3.org/ns/activitystreams#Announce",
3793
+ "https://www.w3.org/ns/activitystreams#Create",
3794
+ "https://www.w3.org/ns/activitystreams#Delete",
3795
+ "https://www.w3.org/ns/activitystreams#Dislike",
3796
+ "https://www.w3.org/ns/activitystreams#Flag",
3797
+ "https://www.w3.org/ns/activitystreams#Follow",
3798
+ "https://www.w3.org/ns/activitystreams#Ignore",
3799
+ "https://www.w3.org/ns/activitystreams#Block",
3800
+ "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3801
+ "https://www.w3.org/ns/activitystreams#Arrive",
3802
+ "https://www.w3.org/ns/activitystreams#Question",
3803
+ "https://www.w3.org/ns/activitystreams#Like",
3804
+ "https://www.w3.org/ns/activitystreams#Offer",
3805
+ "https://www.w3.org/ns/activitystreams#Reject",
3806
+ "https://www.w3.org/ns/activitystreams#Remove",
3807
+ "https://www.w3.org/ns/activitystreams#Undo",
3808
+ "https://www.w3.org/ns/activitystreams#Update",
3809
+ "https://www.w3.org/ns/activitystreams#Application",
3810
+ "https://www.w3.org/ns/activitystreams#Article",
3811
+ "https://www.w3.org/ns/activitystreams#Collection",
3812
+ "https://www.w3.org/ns/activitystreams#CollectionPage",
3813
+ "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3814
+ "https://www.w3.org/ns/activitystreams#OrderedCollection",
3815
+ "https://www.w3.org/ns/activitystreams#Document",
3816
+ "https://www.w3.org/ns/activitystreams#Audio",
3817
+ "https://www.w3.org/ns/activitystreams#Image",
3818
+ "https://www.w3.org/ns/activitystreams#Page",
3819
+ "https://www.w3.org/ns/activitystreams#Video",
3820
+ "https://www.w3.org/ns/activitystreams#Event",
3821
+ "https://www.w3.org/ns/activitystreams#Group",
3822
+ "https://www.w3.org/ns/activitystreams#Note",
3823
+ "https://www.w3.org/ns/activitystreams#Organization",
3824
+ "https://www.w3.org/ns/activitystreams#Person",
3825
+ "https://www.w3.org/ns/activitystreams#Place",
3826
+ "https://www.w3.org/ns/activitystreams#Profile",
3827
+ "https://www.w3.org/ns/activitystreams#Relationship",
3828
+ "https://www.w3.org/ns/activitystreams#Service",
3829
+ "https://www.w3.org/ns/activitystreams#Tombstone",
3830
+ ].some((t) => v["@type"].includes(t))
3831
+ ? await _a.fromJsonLd(v, options)
3832
+ : undefined;
3833
+ if (typeof decoded === "undefined")
3834
+ continue;
3835
+ _gCVTegXxWWCw6wWRxa1QF65zusg.push(decoded);
3836
+ }
3811
3837
  }
3812
3838
  instance.#_gCVTegXxWWCw6wWRxa1QF65zusg = _gCVTegXxWWCw6wWRxa1QF65zusg;
3813
3839
  const _5e258TDXtuhaFRPZiGoDfEpjdMr = [];
3814
3840
  const _5e258TDXtuhaFRPZiGoDfEpjdMr__array = values["https://www.w3.org/ns/activitystreams#published"];
3815
- for (const v of _5e258TDXtuhaFRPZiGoDfEpjdMr__array ?? []) {
3816
- if (v == null)
3817
- continue;
3818
- _5e258TDXtuhaFRPZiGoDfEpjdMr.push(dntShim.Temporal.Instant.from(v["@value"]));
3841
+ if (_5e258TDXtuhaFRPZiGoDfEpjdMr__array != null) {
3842
+ for (const v of _5e258TDXtuhaFRPZiGoDfEpjdMr__array) {
3843
+ if (v == null)
3844
+ continue;
3845
+ _5e258TDXtuhaFRPZiGoDfEpjdMr.push(dntShim.Temporal.Instant.from(v["@value"]));
3846
+ }
3819
3847
  }
3820
3848
  instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr = _5e258TDXtuhaFRPZiGoDfEpjdMr;
3821
3849
  const _7UpwM3JWcXhADcscukEehBorf6k = [];
3822
3850
  const _7UpwM3JWcXhADcscukEehBorf6k__array = values["https://www.w3.org/ns/activitystreams#replies"];
3823
- for (const v of _7UpwM3JWcXhADcscukEehBorf6k__array ?? []) {
3824
- if (v == null)
3825
- continue;
3826
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3827
- globalThis.Object.keys(v).length === 1) {
3828
- _7UpwM3JWcXhADcscukEehBorf6k.push(new URL(v["@id"]));
3829
- continue;
3851
+ if (_7UpwM3JWcXhADcscukEehBorf6k__array != null) {
3852
+ for (const v of _7UpwM3JWcXhADcscukEehBorf6k__array) {
3853
+ if (v == null)
3854
+ continue;
3855
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3856
+ globalThis.Object.keys(v).length === 1) {
3857
+ _7UpwM3JWcXhADcscukEehBorf6k.push(new URL(v["@id"]));
3858
+ continue;
3859
+ }
3860
+ _7UpwM3JWcXhADcscukEehBorf6k.push(await Collection.fromJsonLd(v, options));
3830
3861
  }
3831
- _7UpwM3JWcXhADcscukEehBorf6k.push(await Collection.fromJsonLd(v, options));
3832
3862
  }
3833
3863
  instance.#_7UpwM3JWcXhADcscukEehBorf6k = _7UpwM3JWcXhADcscukEehBorf6k;
3834
3864
  const _2w3Jmue4up8iVDUA51WZqomEF438 = [];
3835
3865
  const _2w3Jmue4up8iVDUA51WZqomEF438__array = values["https://www.w3.org/ns/activitystreams#startTime"];
3836
- for (const v of _2w3Jmue4up8iVDUA51WZqomEF438__array ?? []) {
3837
- if (v == null)
3838
- continue;
3839
- _2w3Jmue4up8iVDUA51WZqomEF438.push(dntShim.Temporal.Instant.from(v["@value"]));
3866
+ if (_2w3Jmue4up8iVDUA51WZqomEF438__array != null) {
3867
+ for (const v of _2w3Jmue4up8iVDUA51WZqomEF438__array) {
3868
+ if (v == null)
3869
+ continue;
3870
+ _2w3Jmue4up8iVDUA51WZqomEF438.push(dntShim.Temporal.Instant.from(v["@value"]));
3871
+ }
3840
3872
  }
3841
3873
  instance.#_2w3Jmue4up8iVDUA51WZqomEF438 = _2w3Jmue4up8iVDUA51WZqomEF438;
3842
3874
  const _4LqirZspQbFWWQEbFcXAxm7tTDN1 = [];
3843
3875
  const _4LqirZspQbFWWQEbFcXAxm7tTDN1__array = values["https://www.w3.org/ns/activitystreams#summary"];
3844
- for (const v of _4LqirZspQbFWWQEbFcXAxm7tTDN1__array ?? []) {
3845
- if (v == null)
3846
- continue;
3847
- const decoded = typeof v === "object" && "@value" in v &&
3848
- typeof v["@value"] === "string" && !("@language" in v)
3849
- ? v["@value"]
3850
- : typeof v === "object" && "@language" in v && "@value" in v &&
3851
- typeof v["@language"] === "string" &&
3852
- typeof v["@value"] === "string"
3853
- ? new LanguageString(v["@value"], v["@language"])
3854
- : undefined;
3855
- if (typeof decoded === "undefined")
3856
- continue;
3857
- _4LqirZspQbFWWQEbFcXAxm7tTDN1.push(decoded);
3876
+ if (_4LqirZspQbFWWQEbFcXAxm7tTDN1__array != null) {
3877
+ for (const v of _4LqirZspQbFWWQEbFcXAxm7tTDN1__array) {
3878
+ if (v == null)
3879
+ continue;
3880
+ const decoded = typeof v === "object" && "@value" in v &&
3881
+ typeof v["@value"] === "string" && !("@language" in v)
3882
+ ? v["@value"]
3883
+ : typeof v === "object" && "@language" in v && "@value" in v &&
3884
+ typeof v["@language"] === "string" &&
3885
+ typeof v["@value"] === "string"
3886
+ ? new LanguageString(v["@value"], v["@language"])
3887
+ : undefined;
3888
+ if (typeof decoded === "undefined")
3889
+ continue;
3890
+ _4LqirZspQbFWWQEbFcXAxm7tTDN1.push(decoded);
3891
+ }
3858
3892
  }
3859
3893
  instance.#_4LqirZspQbFWWQEbFcXAxm7tTDN1 = _4LqirZspQbFWWQEbFcXAxm7tTDN1;
3860
3894
  const _5chuqj6s95p5gg2sk1HntGfarRf = [];
3861
3895
  const _5chuqj6s95p5gg2sk1HntGfarRf__array = values["https://www.w3.org/ns/activitystreams#tag"];
3862
- for (const v of _5chuqj6s95p5gg2sk1HntGfarRf__array ?? []) {
3863
- if (v == null)
3864
- continue;
3865
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3866
- globalThis.Object.keys(v).length === 1) {
3867
- _5chuqj6s95p5gg2sk1HntGfarRf.push(new URL(v["@id"]));
3868
- continue;
3869
- }
3870
- const decoded = typeof v === "object" && "@type" in v &&
3871
- Array.isArray(v["@type"]) &&
3872
- [
3873
- "https://www.w3.org/ns/activitystreams#Object",
3874
- "http://joinmastodon.org/ns#Emoji",
3875
- "https://www.w3.org/ns/activitystreams#Activity",
3876
- "https://www.w3.org/ns/activitystreams#Accept",
3877
- "https://www.w3.org/ns/activitystreams#Add",
3878
- "https://www.w3.org/ns/activitystreams#Announce",
3879
- "https://www.w3.org/ns/activitystreams#Create",
3880
- "https://www.w3.org/ns/activitystreams#Delete",
3881
- "https://www.w3.org/ns/activitystreams#Dislike",
3882
- "https://www.w3.org/ns/activitystreams#Flag",
3883
- "https://www.w3.org/ns/activitystreams#Follow",
3884
- "https://www.w3.org/ns/activitystreams#Ignore",
3885
- "https://www.w3.org/ns/activitystreams#Block",
3886
- "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3887
- "https://www.w3.org/ns/activitystreams#Arrive",
3888
- "https://www.w3.org/ns/activitystreams#Question",
3889
- "https://www.w3.org/ns/activitystreams#Like",
3890
- "https://www.w3.org/ns/activitystreams#Offer",
3891
- "https://www.w3.org/ns/activitystreams#Reject",
3892
- "https://www.w3.org/ns/activitystreams#Remove",
3893
- "https://www.w3.org/ns/activitystreams#Undo",
3894
- "https://www.w3.org/ns/activitystreams#Update",
3895
- "https://www.w3.org/ns/activitystreams#Application",
3896
- "https://www.w3.org/ns/activitystreams#Article",
3897
- "https://www.w3.org/ns/activitystreams#Collection",
3898
- "https://www.w3.org/ns/activitystreams#CollectionPage",
3899
- "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3900
- "https://www.w3.org/ns/activitystreams#OrderedCollection",
3901
- "https://www.w3.org/ns/activitystreams#Document",
3902
- "https://www.w3.org/ns/activitystreams#Audio",
3903
- "https://www.w3.org/ns/activitystreams#Image",
3904
- "https://www.w3.org/ns/activitystreams#Page",
3905
- "https://www.w3.org/ns/activitystreams#Video",
3906
- "https://www.w3.org/ns/activitystreams#Event",
3907
- "https://www.w3.org/ns/activitystreams#Group",
3908
- "https://www.w3.org/ns/activitystreams#Note",
3909
- "https://www.w3.org/ns/activitystreams#Organization",
3910
- "https://www.w3.org/ns/activitystreams#Person",
3911
- "https://www.w3.org/ns/activitystreams#Place",
3912
- "https://www.w3.org/ns/activitystreams#Profile",
3913
- "https://www.w3.org/ns/activitystreams#Relationship",
3914
- "https://www.w3.org/ns/activitystreams#Service",
3915
- "https://www.w3.org/ns/activitystreams#Tombstone",
3916
- ].some((t) => v["@type"].includes(t))
3917
- ? await _a.fromJsonLd(v, options)
3918
- : typeof v === "object" && "@type" in v &&
3896
+ if (_5chuqj6s95p5gg2sk1HntGfarRf__array != null) {
3897
+ for (const v of _5chuqj6s95p5gg2sk1HntGfarRf__array) {
3898
+ if (v == null)
3899
+ continue;
3900
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3901
+ globalThis.Object.keys(v).length === 1) {
3902
+ _5chuqj6s95p5gg2sk1HntGfarRf.push(new URL(v["@id"]));
3903
+ continue;
3904
+ }
3905
+ const decoded = typeof v === "object" && "@type" in v &&
3919
3906
  Array.isArray(v["@type"]) &&
3920
3907
  [
3921
- "https://www.w3.org/ns/activitystreams#Link",
3922
- "https://www.w3.org/ns/activitystreams#Hashtag",
3923
- "https://www.w3.org/ns/activitystreams#Mention",
3908
+ "https://www.w3.org/ns/activitystreams#Object",
3909
+ "http://joinmastodon.org/ns#Emoji",
3910
+ "https://www.w3.org/ns/activitystreams#Activity",
3911
+ "https://www.w3.org/ns/activitystreams#Accept",
3912
+ "https://www.w3.org/ns/activitystreams#Add",
3913
+ "https://www.w3.org/ns/activitystreams#Announce",
3914
+ "https://www.w3.org/ns/activitystreams#Create",
3915
+ "https://www.w3.org/ns/activitystreams#Delete",
3916
+ "https://www.w3.org/ns/activitystreams#Dislike",
3917
+ "https://www.w3.org/ns/activitystreams#Flag",
3918
+ "https://www.w3.org/ns/activitystreams#Follow",
3919
+ "https://www.w3.org/ns/activitystreams#Ignore",
3920
+ "https://www.w3.org/ns/activitystreams#Block",
3921
+ "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
3922
+ "https://www.w3.org/ns/activitystreams#Arrive",
3923
+ "https://www.w3.org/ns/activitystreams#Question",
3924
+ "https://www.w3.org/ns/activitystreams#Like",
3925
+ "https://www.w3.org/ns/activitystreams#Offer",
3926
+ "https://www.w3.org/ns/activitystreams#Reject",
3927
+ "https://www.w3.org/ns/activitystreams#Remove",
3928
+ "https://www.w3.org/ns/activitystreams#Undo",
3929
+ "https://www.w3.org/ns/activitystreams#Update",
3930
+ "https://www.w3.org/ns/activitystreams#Application",
3931
+ "https://www.w3.org/ns/activitystreams#Article",
3932
+ "https://www.w3.org/ns/activitystreams#Collection",
3933
+ "https://www.w3.org/ns/activitystreams#CollectionPage",
3934
+ "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
3935
+ "https://www.w3.org/ns/activitystreams#OrderedCollection",
3936
+ "https://www.w3.org/ns/activitystreams#Document",
3937
+ "https://www.w3.org/ns/activitystreams#Audio",
3938
+ "https://www.w3.org/ns/activitystreams#Image",
3939
+ "https://www.w3.org/ns/activitystreams#Page",
3940
+ "https://www.w3.org/ns/activitystreams#Video",
3941
+ "https://www.w3.org/ns/activitystreams#Event",
3942
+ "https://www.w3.org/ns/activitystreams#Group",
3943
+ "https://www.w3.org/ns/activitystreams#Note",
3944
+ "https://www.w3.org/ns/activitystreams#Organization",
3945
+ "https://www.w3.org/ns/activitystreams#Person",
3946
+ "https://www.w3.org/ns/activitystreams#Place",
3947
+ "https://www.w3.org/ns/activitystreams#Profile",
3948
+ "https://www.w3.org/ns/activitystreams#Relationship",
3949
+ "https://www.w3.org/ns/activitystreams#Service",
3950
+ "https://www.w3.org/ns/activitystreams#Tombstone",
3924
3951
  ].some((t) => v["@type"].includes(t))
3925
- ? await Link.fromJsonLd(v, options)
3926
- : undefined;
3927
- if (typeof decoded === "undefined")
3928
- continue;
3929
- _5chuqj6s95p5gg2sk1HntGfarRf.push(decoded);
3952
+ ? await _a.fromJsonLd(v, options)
3953
+ : typeof v === "object" && "@type" in v &&
3954
+ Array.isArray(v["@type"]) &&
3955
+ [
3956
+ "https://www.w3.org/ns/activitystreams#Link",
3957
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3958
+ "https://www.w3.org/ns/activitystreams#Mention",
3959
+ ].some((t) => v["@type"].includes(t))
3960
+ ? await Link.fromJsonLd(v, options)
3961
+ : undefined;
3962
+ if (typeof decoded === "undefined")
3963
+ continue;
3964
+ _5chuqj6s95p5gg2sk1HntGfarRf.push(decoded);
3965
+ }
3930
3966
  }
3931
3967
  instance.#_5chuqj6s95p5gg2sk1HntGfarRf = _5chuqj6s95p5gg2sk1HntGfarRf;
3932
3968
  const _385aB7ySixcf5Un6z3VsWmThgCzQ = [];
3933
3969
  const _385aB7ySixcf5Un6z3VsWmThgCzQ__array = values["https://www.w3.org/ns/activitystreams#updated"];
3934
- for (const v of _385aB7ySixcf5Un6z3VsWmThgCzQ__array ?? []) {
3935
- if (v == null)
3936
- continue;
3937
- _385aB7ySixcf5Un6z3VsWmThgCzQ.push(dntShim.Temporal.Instant.from(v["@value"]));
3970
+ if (_385aB7ySixcf5Un6z3VsWmThgCzQ__array != null) {
3971
+ for (const v of _385aB7ySixcf5Un6z3VsWmThgCzQ__array) {
3972
+ if (v == null)
3973
+ continue;
3974
+ _385aB7ySixcf5Un6z3VsWmThgCzQ.push(dntShim.Temporal.Instant.from(v["@value"]));
3975
+ }
3938
3976
  }
3939
3977
  instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ = _385aB7ySixcf5Un6z3VsWmThgCzQ;
3940
3978
  const _2oPEH9MQ3aj8JVwyYuWkqoVwV865 = [];
3941
3979
  const _2oPEH9MQ3aj8JVwyYuWkqoVwV865__array = values["https://www.w3.org/ns/activitystreams#url"];
3942
- for (const v of _2oPEH9MQ3aj8JVwyYuWkqoVwV865__array ?? []) {
3943
- if (v == null)
3944
- continue;
3945
- const decoded = typeof v === "object" && "@id" in v &&
3946
- typeof v["@id"] === "string"
3947
- ? new URL(v["@id"])
3948
- : typeof v === "object" && "@type" in v &&
3949
- Array.isArray(v["@type"]) &&
3950
- [
3951
- "https://www.w3.org/ns/activitystreams#Link",
3952
- "https://www.w3.org/ns/activitystreams#Hashtag",
3953
- "https://www.w3.org/ns/activitystreams#Mention",
3954
- ].some((t) => v["@type"].includes(t))
3955
- ? await Link.fromJsonLd(v, options)
3956
- : undefined;
3957
- if (typeof decoded === "undefined")
3958
- continue;
3959
- _2oPEH9MQ3aj8JVwyYuWkqoVwV865.push(decoded);
3980
+ if (_2oPEH9MQ3aj8JVwyYuWkqoVwV865__array != null) {
3981
+ for (const v of _2oPEH9MQ3aj8JVwyYuWkqoVwV865__array) {
3982
+ if (v == null)
3983
+ continue;
3984
+ const decoded = typeof v === "object" && "@id" in v &&
3985
+ typeof v["@id"] === "string"
3986
+ ? new URL(v["@id"])
3987
+ : typeof v === "object" && "@type" in v &&
3988
+ Array.isArray(v["@type"]) &&
3989
+ [
3990
+ "https://www.w3.org/ns/activitystreams#Link",
3991
+ "https://www.w3.org/ns/activitystreams#Hashtag",
3992
+ "https://www.w3.org/ns/activitystreams#Mention",
3993
+ ].some((t) => v["@type"].includes(t))
3994
+ ? await Link.fromJsonLd(v, options)
3995
+ : undefined;
3996
+ if (typeof decoded === "undefined")
3997
+ continue;
3998
+ _2oPEH9MQ3aj8JVwyYuWkqoVwV865.push(decoded);
3999
+ }
3960
4000
  }
3961
4001
  instance.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865 = _2oPEH9MQ3aj8JVwyYuWkqoVwV865;
3962
4002
  const _3hFbw7DTpHhq3cvVhkY8njhcsXbd = [];
3963
4003
  const _3hFbw7DTpHhq3cvVhkY8njhcsXbd__array = values["https://www.w3.org/ns/activitystreams#to"];
3964
- for (const v of _3hFbw7DTpHhq3cvVhkY8njhcsXbd__array ?? []) {
3965
- if (v == null)
3966
- continue;
3967
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3968
- globalThis.Object.keys(v).length === 1) {
3969
- _3hFbw7DTpHhq3cvVhkY8njhcsXbd.push(new URL(v["@id"]));
3970
- continue;
4004
+ if (_3hFbw7DTpHhq3cvVhkY8njhcsXbd__array != null) {
4005
+ for (const v of _3hFbw7DTpHhq3cvVhkY8njhcsXbd__array) {
4006
+ if (v == null)
4007
+ continue;
4008
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
4009
+ globalThis.Object.keys(v).length === 1) {
4010
+ _3hFbw7DTpHhq3cvVhkY8njhcsXbd.push(new URL(v["@id"]));
4011
+ continue;
4012
+ }
4013
+ _3hFbw7DTpHhq3cvVhkY8njhcsXbd.push(await _a.fromJsonLd(v, options));
3971
4014
  }
3972
- _3hFbw7DTpHhq3cvVhkY8njhcsXbd.push(await _a.fromJsonLd(v, options));
3973
4015
  }
3974
4016
  instance.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd = _3hFbw7DTpHhq3cvVhkY8njhcsXbd;
3975
4017
  const _aLZupjwL8XB7tzdLgCMXdjZ6qej = [];
3976
4018
  const _aLZupjwL8XB7tzdLgCMXdjZ6qej__array = values["https://www.w3.org/ns/activitystreams#bto"];
3977
- for (const v of _aLZupjwL8XB7tzdLgCMXdjZ6qej__array ?? []) {
3978
- if (v == null)
3979
- continue;
3980
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3981
- globalThis.Object.keys(v).length === 1) {
3982
- _aLZupjwL8XB7tzdLgCMXdjZ6qej.push(new URL(v["@id"]));
3983
- continue;
4019
+ if (_aLZupjwL8XB7tzdLgCMXdjZ6qej__array != null) {
4020
+ for (const v of _aLZupjwL8XB7tzdLgCMXdjZ6qej__array) {
4021
+ if (v == null)
4022
+ continue;
4023
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
4024
+ globalThis.Object.keys(v).length === 1) {
4025
+ _aLZupjwL8XB7tzdLgCMXdjZ6qej.push(new URL(v["@id"]));
4026
+ continue;
4027
+ }
4028
+ _aLZupjwL8XB7tzdLgCMXdjZ6qej.push(await _a.fromJsonLd(v, options));
3984
4029
  }
3985
- _aLZupjwL8XB7tzdLgCMXdjZ6qej.push(await _a.fromJsonLd(v, options));
3986
4030
  }
3987
4031
  instance.#_aLZupjwL8XB7tzdLgCMXdjZ6qej = _aLZupjwL8XB7tzdLgCMXdjZ6qej;
3988
4032
  const _42a1SvBs24QSLzKcfjCyNTjW5a1g = [];
3989
4033
  const _42a1SvBs24QSLzKcfjCyNTjW5a1g__array = values["https://www.w3.org/ns/activitystreams#cc"];
3990
- for (const v of _42a1SvBs24QSLzKcfjCyNTjW5a1g__array ?? []) {
3991
- if (v == null)
3992
- continue;
3993
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
3994
- globalThis.Object.keys(v).length === 1) {
3995
- _42a1SvBs24QSLzKcfjCyNTjW5a1g.push(new URL(v["@id"]));
3996
- continue;
4034
+ if (_42a1SvBs24QSLzKcfjCyNTjW5a1g__array != null) {
4035
+ for (const v of _42a1SvBs24QSLzKcfjCyNTjW5a1g__array) {
4036
+ if (v == null)
4037
+ continue;
4038
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
4039
+ globalThis.Object.keys(v).length === 1) {
4040
+ _42a1SvBs24QSLzKcfjCyNTjW5a1g.push(new URL(v["@id"]));
4041
+ continue;
4042
+ }
4043
+ _42a1SvBs24QSLzKcfjCyNTjW5a1g.push(await _a.fromJsonLd(v, options));
3997
4044
  }
3998
- _42a1SvBs24QSLzKcfjCyNTjW5a1g.push(await _a.fromJsonLd(v, options));
3999
4045
  }
4000
4046
  instance.#_42a1SvBs24QSLzKcfjCyNTjW5a1g = _42a1SvBs24QSLzKcfjCyNTjW5a1g;
4001
4047
  const _3qvegKUB8YLgTXRpEf8E6JZSkz2H = [];
4002
4048
  const _3qvegKUB8YLgTXRpEf8E6JZSkz2H__array = values["https://www.w3.org/ns/activitystreams#bcc"];
4003
- for (const v of _3qvegKUB8YLgTXRpEf8E6JZSkz2H__array ?? []) {
4004
- if (v == null)
4005
- continue;
4006
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
4007
- globalThis.Object.keys(v).length === 1) {
4008
- _3qvegKUB8YLgTXRpEf8E6JZSkz2H.push(new URL(v["@id"]));
4009
- continue;
4049
+ if (_3qvegKUB8YLgTXRpEf8E6JZSkz2H__array != null) {
4050
+ for (const v of _3qvegKUB8YLgTXRpEf8E6JZSkz2H__array) {
4051
+ if (v == null)
4052
+ continue;
4053
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
4054
+ globalThis.Object.keys(v).length === 1) {
4055
+ _3qvegKUB8YLgTXRpEf8E6JZSkz2H.push(new URL(v["@id"]));
4056
+ continue;
4057
+ }
4058
+ _3qvegKUB8YLgTXRpEf8E6JZSkz2H.push(await _a.fromJsonLd(v, options));
4010
4059
  }
4011
- _3qvegKUB8YLgTXRpEf8E6JZSkz2H.push(await _a.fromJsonLd(v, options));
4012
4060
  }
4013
4061
  instance.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H = _3qvegKUB8YLgTXRpEf8E6JZSkz2H;
4014
4062
  const _3BLrzmscsjHCw8TF5BHRW9WkPnX8 = [];
4015
4063
  const _3BLrzmscsjHCw8TF5BHRW9WkPnX8__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
4016
- for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8__array ?? []) {
4017
- if (v == null)
4018
- continue;
4019
- _3BLrzmscsjHCw8TF5BHRW9WkPnX8.push(v["@value"]);
4064
+ if (_3BLrzmscsjHCw8TF5BHRW9WkPnX8__array != null) {
4065
+ for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8__array) {
4066
+ if (v == null)
4067
+ continue;
4068
+ _3BLrzmscsjHCw8TF5BHRW9WkPnX8.push(v["@value"]);
4069
+ }
4020
4070
  }
4021
4071
  instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8 = _3BLrzmscsjHCw8TF5BHRW9WkPnX8;
4022
4072
  const _3bNvLMBN1bCJETiTihM3wvi1B2JX = [];
4023
4073
  const _3bNvLMBN1bCJETiTihM3wvi1B2JX__array = values["https://www.w3.org/ns/activitystreams#duration"];
4024
- for (const v of _3bNvLMBN1bCJETiTihM3wvi1B2JX__array ?? []) {
4025
- if (v == null)
4026
- continue;
4027
- _3bNvLMBN1bCJETiTihM3wvi1B2JX.push(dntShim.Temporal.Duration.from(v["@value"]));
4074
+ if (_3bNvLMBN1bCJETiTihM3wvi1B2JX__array != null) {
4075
+ for (const v of _3bNvLMBN1bCJETiTihM3wvi1B2JX__array) {
4076
+ if (v == null)
4077
+ continue;
4078
+ _3bNvLMBN1bCJETiTihM3wvi1B2JX.push(dntShim.Temporal.Duration.from(v["@value"]));
4079
+ }
4028
4080
  }
4029
4081
  instance.#_3bNvLMBN1bCJETiTihM3wvi1B2JX = _3bNvLMBN1bCJETiTihM3wvi1B2JX;
4030
4082
  const _u8gdcDTtChQ4tbSQMXc4cYWyum7 = [];
4031
4083
  const _u8gdcDTtChQ4tbSQMXc4cYWyum7__array = values["https://www.w3.org/ns/activitystreams#sensitive"];
4032
- for (const v of _u8gdcDTtChQ4tbSQMXc4cYWyum7__array ?? []) {
4033
- if (v == null)
4034
- continue;
4035
- _u8gdcDTtChQ4tbSQMXc4cYWyum7.push(v["@value"]);
4084
+ if (_u8gdcDTtChQ4tbSQMXc4cYWyum7__array != null) {
4085
+ for (const v of _u8gdcDTtChQ4tbSQMXc4cYWyum7__array) {
4086
+ if (v == null)
4087
+ continue;
4088
+ _u8gdcDTtChQ4tbSQMXc4cYWyum7.push(v["@value"]);
4089
+ }
4036
4090
  }
4037
4091
  instance.#_u8gdcDTtChQ4tbSQMXc4cYWyum7 = _u8gdcDTtChQ4tbSQMXc4cYWyum7;
4038
4092
  const _42rPnotok1ivQ2RNCKNbeFJgx8b8 = [];
4039
4093
  const _42rPnotok1ivQ2RNCKNbeFJgx8b8__array = values["https://w3id.org/security#proof"];
4040
- for (const v of _42rPnotok1ivQ2RNCKNbeFJgx8b8__array ?? []) {
4041
- if (v == null)
4042
- continue;
4043
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
4044
- globalThis.Object.keys(v).length === 1) {
4045
- _42rPnotok1ivQ2RNCKNbeFJgx8b8.push(new URL(v["@id"]));
4046
- continue;
4094
+ if (_42rPnotok1ivQ2RNCKNbeFJgx8b8__array != null) {
4095
+ for (const v of _42rPnotok1ivQ2RNCKNbeFJgx8b8__array) {
4096
+ if (v == null)
4097
+ continue;
4098
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
4099
+ globalThis.Object.keys(v).length === 1) {
4100
+ _42rPnotok1ivQ2RNCKNbeFJgx8b8.push(new URL(v["@id"]));
4101
+ continue;
4102
+ }
4103
+ _42rPnotok1ivQ2RNCKNbeFJgx8b8.push(await DataIntegrityProof.fromJsonLd(v, options));
4047
4104
  }
4048
- _42rPnotok1ivQ2RNCKNbeFJgx8b8.push(await DataIntegrityProof.fromJsonLd(v, options));
4049
4105
  }
4050
4106
  instance.#_42rPnotok1ivQ2RNCKNbeFJgx8b8 = _42rPnotok1ivQ2RNCKNbeFJgx8b8;
4051
4107
  return instance;
@@ -4766,38 +4822,42 @@ export class PropertyValue {
4766
4822
  const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : undefined }, options);
4767
4823
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav = [];
4768
4824
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array = values["https://www.w3.org/ns/activitystreams#name"];
4769
- for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array ?? []) {
4770
- if (v == null)
4771
- continue;
4772
- const decoded = typeof v === "object" && "@value" in v &&
4773
- typeof v["@value"] === "string" && !("@language" in v)
4774
- ? v["@value"]
4775
- : typeof v === "object" && "@language" in v && "@value" in v &&
4776
- typeof v["@language"] === "string" &&
4777
- typeof v["@value"] === "string"
4778
- ? new LanguageString(v["@value"], v["@language"])
4779
- : undefined;
4780
- if (typeof decoded === "undefined")
4781
- continue;
4782
- _4ZHbBuK7PrsvGgrjM8wgc6KMWjav.push(decoded);
4825
+ if (_4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array != null) {
4826
+ for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array) {
4827
+ if (v == null)
4828
+ continue;
4829
+ const decoded = typeof v === "object" && "@value" in v &&
4830
+ typeof v["@value"] === "string" && !("@language" in v)
4831
+ ? v["@value"]
4832
+ : typeof v === "object" && "@language" in v && "@value" in v &&
4833
+ typeof v["@language"] === "string" &&
4834
+ typeof v["@value"] === "string"
4835
+ ? new LanguageString(v["@value"], v["@language"])
4836
+ : undefined;
4837
+ if (typeof decoded === "undefined")
4838
+ continue;
4839
+ _4ZHbBuK7PrsvGgrjM8wgc6KMWjav.push(decoded);
4840
+ }
4783
4841
  }
4784
4842
  instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav;
4785
4843
  const _2cSy2magg4iZ7zLaG8U7DiJMoCkx = [];
4786
4844
  const _2cSy2magg4iZ7zLaG8U7DiJMoCkx__array = values["http://schema.org#value"];
4787
- for (const v of _2cSy2magg4iZ7zLaG8U7DiJMoCkx__array ?? []) {
4788
- if (v == null)
4789
- continue;
4790
- const decoded = typeof v === "object" && "@value" in v &&
4791
- typeof v["@value"] === "string" && !("@language" in v)
4792
- ? v["@value"]
4793
- : typeof v === "object" && "@language" in v && "@value" in v &&
4794
- typeof v["@language"] === "string" &&
4795
- typeof v["@value"] === "string"
4796
- ? new LanguageString(v["@value"], v["@language"])
4797
- : undefined;
4798
- if (typeof decoded === "undefined")
4799
- continue;
4800
- _2cSy2magg4iZ7zLaG8U7DiJMoCkx.push(decoded);
4845
+ if (_2cSy2magg4iZ7zLaG8U7DiJMoCkx__array != null) {
4846
+ for (const v of _2cSy2magg4iZ7zLaG8U7DiJMoCkx__array) {
4847
+ if (v == null)
4848
+ continue;
4849
+ const decoded = typeof v === "object" && "@value" in v &&
4850
+ typeof v["@value"] === "string" && !("@language" in v)
4851
+ ? v["@value"]
4852
+ : typeof v === "object" && "@language" in v && "@value" in v &&
4853
+ typeof v["@language"] === "string" &&
4854
+ typeof v["@value"] === "string"
4855
+ ? new LanguageString(v["@value"], v["@language"])
4856
+ : undefined;
4857
+ if (typeof decoded === "undefined")
4858
+ continue;
4859
+ _2cSy2magg4iZ7zLaG8U7DiJMoCkx.push(decoded);
4860
+ }
4801
4861
  }
4802
4862
  instance.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx = _2cSy2magg4iZ7zLaG8U7DiJMoCkx;
4803
4863
  return instance;
@@ -5211,47 +5271,57 @@ export class DataIntegrityProof {
5211
5271
  const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : undefined }, options);
5212
5272
  const _3RurJsa7tnptyqMFR5hDGcP9pMs5 = [];
5213
5273
  const _3RurJsa7tnptyqMFR5hDGcP9pMs5__array = values["https://w3id.org/security#cryptosuite"];
5214
- for (const v of _3RurJsa7tnptyqMFR5hDGcP9pMs5__array ?? []) {
5215
- if (v == null)
5216
- continue;
5217
- _3RurJsa7tnptyqMFR5hDGcP9pMs5.push(v["@value"]);
5274
+ if (_3RurJsa7tnptyqMFR5hDGcP9pMs5__array != null) {
5275
+ for (const v of _3RurJsa7tnptyqMFR5hDGcP9pMs5__array) {
5276
+ if (v == null)
5277
+ continue;
5278
+ _3RurJsa7tnptyqMFR5hDGcP9pMs5.push(v["@value"]);
5279
+ }
5218
5280
  }
5219
5281
  instance.#_3RurJsa7tnptyqMFR5hDGcP9pMs5 = _3RurJsa7tnptyqMFR5hDGcP9pMs5;
5220
5282
  const _2mHVKxqA7zncjveJrDEo3pWpMZqg = [];
5221
5283
  const _2mHVKxqA7zncjveJrDEo3pWpMZqg__array = values["https://w3id.org/security#verificationMethod"];
5222
- for (const v of _2mHVKxqA7zncjveJrDEo3pWpMZqg__array ?? []) {
5223
- if (v == null)
5224
- continue;
5225
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
5226
- globalThis.Object.keys(v).length === 1) {
5227
- _2mHVKxqA7zncjveJrDEo3pWpMZqg.push(new URL(v["@id"]));
5228
- continue;
5284
+ if (_2mHVKxqA7zncjveJrDEo3pWpMZqg__array != null) {
5285
+ for (const v of _2mHVKxqA7zncjveJrDEo3pWpMZqg__array) {
5286
+ if (v == null)
5287
+ continue;
5288
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
5289
+ globalThis.Object.keys(v).length === 1) {
5290
+ _2mHVKxqA7zncjveJrDEo3pWpMZqg.push(new URL(v["@id"]));
5291
+ continue;
5292
+ }
5293
+ _2mHVKxqA7zncjveJrDEo3pWpMZqg.push(await Multikey.fromJsonLd(v, options));
5229
5294
  }
5230
- _2mHVKxqA7zncjveJrDEo3pWpMZqg.push(await Multikey.fromJsonLd(v, options));
5231
5295
  }
5232
5296
  instance.#_2mHVKxqA7zncjveJrDEo3pWpMZqg = _2mHVKxqA7zncjveJrDEo3pWpMZqg;
5233
5297
  const _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb = [];
5234
5298
  const _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb__array = values["https://w3id.org/security#proofPurpose"];
5235
- for (const v of _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb__array ?? []) {
5236
- if (v == null)
5237
- continue;
5238
- _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb.push(v["@id"].substring(26));
5299
+ if (_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb__array != null) {
5300
+ for (const v of _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb__array) {
5301
+ if (v == null)
5302
+ continue;
5303
+ _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb.push(v["@id"].substring(26));
5304
+ }
5239
5305
  }
5240
5306
  instance.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb = _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb;
5241
5307
  const _3CjFK5vfKpX4HQuNh2b18TykoVLq = [];
5242
5308
  const _3CjFK5vfKpX4HQuNh2b18TykoVLq__array = values["https://w3id.org/security#proofValue"];
5243
- for (const v of _3CjFK5vfKpX4HQuNh2b18TykoVLq__array ?? []) {
5244
- if (v == null)
5245
- continue;
5246
- _3CjFK5vfKpX4HQuNh2b18TykoVLq.push(decodeMultibase(v["@value"]));
5309
+ if (_3CjFK5vfKpX4HQuNh2b18TykoVLq__array != null) {
5310
+ for (const v of _3CjFK5vfKpX4HQuNh2b18TykoVLq__array) {
5311
+ if (v == null)
5312
+ continue;
5313
+ _3CjFK5vfKpX4HQuNh2b18TykoVLq.push(decodeMultibase(v["@value"]));
5314
+ }
5247
5315
  }
5248
5316
  instance.#_3CjFK5vfKpX4HQuNh2b18TykoVLq = _3CjFK5vfKpX4HQuNh2b18TykoVLq;
5249
5317
  const _3qzP3ukEZoUziK5FEiA1RhU4aqac = [];
5250
5318
  const _3qzP3ukEZoUziK5FEiA1RhU4aqac__array = values["http://purl.org/dc/terms/created"];
5251
- for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array ?? []) {
5252
- if (v == null)
5253
- continue;
5254
- _3qzP3ukEZoUziK5FEiA1RhU4aqac.push(dntShim.Temporal.Instant.from(v["@value"]));
5319
+ if (_3qzP3ukEZoUziK5FEiA1RhU4aqac__array != null) {
5320
+ for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
5321
+ if (v == null)
5322
+ continue;
5323
+ _3qzP3ukEZoUziK5FEiA1RhU4aqac.push(dntShim.Temporal.Instant.from(v["@value"]));
5324
+ }
5255
5325
  }
5256
5326
  instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
5257
5327
  return instance;
@@ -5611,46 +5681,50 @@ export class CryptographicKey {
5611
5681
  const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : undefined }, options);
5612
5682
  const _5UJq9NDh3ZHgswFwwdVxQvJxdx2 = [];
5613
5683
  const _5UJq9NDh3ZHgswFwwdVxQvJxdx2__array = values["https://w3id.org/security#owner"];
5614
- for (const v of _5UJq9NDh3ZHgswFwwdVxQvJxdx2__array ?? []) {
5615
- if (v == null)
5616
- continue;
5617
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
5618
- globalThis.Object.keys(v).length === 1) {
5619
- _5UJq9NDh3ZHgswFwwdVxQvJxdx2.push(new URL(v["@id"]));
5620
- continue;
5621
- }
5622
- const decoded = typeof v === "object" && "@type" in v &&
5623
- Array.isArray(v["@type"]) &&
5624
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
5625
- ? await Application.fromJsonLd(v, options)
5626
- : typeof v === "object" && "@type" in v &&
5684
+ if (_5UJq9NDh3ZHgswFwwdVxQvJxdx2__array != null) {
5685
+ for (const v of _5UJq9NDh3ZHgswFwwdVxQvJxdx2__array) {
5686
+ if (v == null)
5687
+ continue;
5688
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
5689
+ globalThis.Object.keys(v).length === 1) {
5690
+ _5UJq9NDh3ZHgswFwwdVxQvJxdx2.push(new URL(v["@id"]));
5691
+ continue;
5692
+ }
5693
+ const decoded = typeof v === "object" && "@type" in v &&
5627
5694
  Array.isArray(v["@type"]) &&
5628
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
5629
- ? await Group.fromJsonLd(v, options)
5695
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
5696
+ ? await Application.fromJsonLd(v, options)
5630
5697
  : typeof v === "object" && "@type" in v &&
5631
5698
  Array.isArray(v["@type"]) &&
5632
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
5633
- ? await Organization.fromJsonLd(v, options)
5699
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
5700
+ ? await Group.fromJsonLd(v, options)
5634
5701
  : typeof v === "object" && "@type" in v &&
5635
5702
  Array.isArray(v["@type"]) &&
5636
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
5637
- ? await Person.fromJsonLd(v, options)
5703
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
5704
+ ? await Organization.fromJsonLd(v, options)
5638
5705
  : typeof v === "object" && "@type" in v &&
5639
5706
  Array.isArray(v["@type"]) &&
5640
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
5641
- ? await Service.fromJsonLd(v, options)
5642
- : undefined;
5643
- if (typeof decoded === "undefined")
5644
- continue;
5645
- _5UJq9NDh3ZHgswFwwdVxQvJxdx2.push(decoded);
5707
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
5708
+ ? await Person.fromJsonLd(v, options)
5709
+ : typeof v === "object" && "@type" in v &&
5710
+ Array.isArray(v["@type"]) &&
5711
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
5712
+ ? await Service.fromJsonLd(v, options)
5713
+ : undefined;
5714
+ if (typeof decoded === "undefined")
5715
+ continue;
5716
+ _5UJq9NDh3ZHgswFwwdVxQvJxdx2.push(decoded);
5717
+ }
5646
5718
  }
5647
5719
  instance.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2 = _5UJq9NDh3ZHgswFwwdVxQvJxdx2;
5648
5720
  const _2fE2QMDdg6KFGqa4NEC3TmjApSAD = [];
5649
5721
  const _2fE2QMDdg6KFGqa4NEC3TmjApSAD__array = values["https://w3id.org/security#publicKeyPem"];
5650
- for (const v of _2fE2QMDdg6KFGqa4NEC3TmjApSAD__array ?? []) {
5651
- if (v == null)
5652
- continue;
5653
- _2fE2QMDdg6KFGqa4NEC3TmjApSAD.push(await importSpki(v["@value"]));
5722
+ if (_2fE2QMDdg6KFGqa4NEC3TmjApSAD__array != null) {
5723
+ for (const v of _2fE2QMDdg6KFGqa4NEC3TmjApSAD__array) {
5724
+ if (v == null)
5725
+ continue;
5726
+ _2fE2QMDdg6KFGqa4NEC3TmjApSAD.push(await importSpki(v["@value"]));
5727
+ }
5654
5728
  }
5655
5729
  instance.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD = _2fE2QMDdg6KFGqa4NEC3TmjApSAD;
5656
5730
  return instance;
@@ -5988,46 +6062,50 @@ export class Multikey {
5988
6062
  const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : undefined }, options);
5989
6063
  const _2yr3eUBTP6cNcyaxKzAXWjFsnGzN = [];
5990
6064
  const _2yr3eUBTP6cNcyaxKzAXWjFsnGzN__array = values["https://w3id.org/security#controller"];
5991
- for (const v of _2yr3eUBTP6cNcyaxKzAXWjFsnGzN__array ?? []) {
5992
- if (v == null)
5993
- continue;
5994
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
5995
- globalThis.Object.keys(v).length === 1) {
5996
- _2yr3eUBTP6cNcyaxKzAXWjFsnGzN.push(new URL(v["@id"]));
5997
- continue;
5998
- }
5999
- const decoded = typeof v === "object" && "@type" in v &&
6000
- Array.isArray(v["@type"]) &&
6001
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
6002
- ? await Application.fromJsonLd(v, options)
6003
- : typeof v === "object" && "@type" in v &&
6065
+ if (_2yr3eUBTP6cNcyaxKzAXWjFsnGzN__array != null) {
6066
+ for (const v of _2yr3eUBTP6cNcyaxKzAXWjFsnGzN__array) {
6067
+ if (v == null)
6068
+ continue;
6069
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
6070
+ globalThis.Object.keys(v).length === 1) {
6071
+ _2yr3eUBTP6cNcyaxKzAXWjFsnGzN.push(new URL(v["@id"]));
6072
+ continue;
6073
+ }
6074
+ const decoded = typeof v === "object" && "@type" in v &&
6004
6075
  Array.isArray(v["@type"]) &&
6005
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
6006
- ? await Group.fromJsonLd(v, options)
6076
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
6077
+ ? await Application.fromJsonLd(v, options)
6007
6078
  : typeof v === "object" && "@type" in v &&
6008
6079
  Array.isArray(v["@type"]) &&
6009
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
6010
- ? await Organization.fromJsonLd(v, options)
6080
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
6081
+ ? await Group.fromJsonLd(v, options)
6011
6082
  : typeof v === "object" && "@type" in v &&
6012
6083
  Array.isArray(v["@type"]) &&
6013
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
6014
- ? await Person.fromJsonLd(v, options)
6084
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
6085
+ ? await Organization.fromJsonLd(v, options)
6015
6086
  : typeof v === "object" && "@type" in v &&
6016
6087
  Array.isArray(v["@type"]) &&
6017
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
6018
- ? await Service.fromJsonLd(v, options)
6019
- : undefined;
6020
- if (typeof decoded === "undefined")
6021
- continue;
6022
- _2yr3eUBTP6cNcyaxKzAXWjFsnGzN.push(decoded);
6088
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
6089
+ ? await Person.fromJsonLd(v, options)
6090
+ : typeof v === "object" && "@type" in v &&
6091
+ Array.isArray(v["@type"]) &&
6092
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
6093
+ ? await Service.fromJsonLd(v, options)
6094
+ : undefined;
6095
+ if (typeof decoded === "undefined")
6096
+ continue;
6097
+ _2yr3eUBTP6cNcyaxKzAXWjFsnGzN.push(decoded);
6098
+ }
6023
6099
  }
6024
6100
  instance.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN = _2yr3eUBTP6cNcyaxKzAXWjFsnGzN;
6025
6101
  const _4XLHbsR2gLVWU3NpEqKt9wANzn4F = [];
6026
6102
  const _4XLHbsR2gLVWU3NpEqKt9wANzn4F__array = values["https://w3id.org/security#publicKeyMultibase"];
6027
- for (const v of _4XLHbsR2gLVWU3NpEqKt9wANzn4F__array ?? []) {
6028
- if (v == null)
6029
- continue;
6030
- _4XLHbsR2gLVWU3NpEqKt9wANzn4F.push(await importMultibaseKey(v["@value"]));
6103
+ if (_4XLHbsR2gLVWU3NpEqKt9wANzn4F__array != null) {
6104
+ for (const v of _4XLHbsR2gLVWU3NpEqKt9wANzn4F__array) {
6105
+ if (v == null)
6106
+ continue;
6107
+ _4XLHbsR2gLVWU3NpEqKt9wANzn4F.push(await importMultibaseKey(v["@value"]));
6108
+ }
6031
6109
  }
6032
6110
  instance.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F = _4XLHbsR2gLVWU3NpEqKt9wANzn4F;
6033
6111
  return instance;
@@ -7197,103 +7275,115 @@ export class Activity extends Object {
7197
7275
  }
7198
7276
  const _2DjTTboo3CNHU2a2JQqUSE2dbv9D = [];
7199
7277
  const _2DjTTboo3CNHU2a2JQqUSE2dbv9D__array = values["https://www.w3.org/ns/activitystreams#actor"];
7200
- for (const v of _2DjTTboo3CNHU2a2JQqUSE2dbv9D__array ?? []) {
7201
- if (v == null)
7202
- continue;
7203
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7204
- globalThis.Object.keys(v).length === 1) {
7205
- _2DjTTboo3CNHU2a2JQqUSE2dbv9D.push(new URL(v["@id"]));
7206
- continue;
7207
- }
7208
- const decoded = typeof v === "object" && "@type" in v &&
7209
- Array.isArray(v["@type"]) &&
7210
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
7211
- ? await Application.fromJsonLd(v, options)
7212
- : typeof v === "object" && "@type" in v &&
7278
+ if (_2DjTTboo3CNHU2a2JQqUSE2dbv9D__array != null) {
7279
+ for (const v of _2DjTTboo3CNHU2a2JQqUSE2dbv9D__array) {
7280
+ if (v == null)
7281
+ continue;
7282
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7283
+ globalThis.Object.keys(v).length === 1) {
7284
+ _2DjTTboo3CNHU2a2JQqUSE2dbv9D.push(new URL(v["@id"]));
7285
+ continue;
7286
+ }
7287
+ const decoded = typeof v === "object" && "@type" in v &&
7213
7288
  Array.isArray(v["@type"]) &&
7214
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
7215
- ? await Group.fromJsonLd(v, options)
7289
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Application")
7290
+ ? await Application.fromJsonLd(v, options)
7216
7291
  : typeof v === "object" && "@type" in v &&
7217
7292
  Array.isArray(v["@type"]) &&
7218
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
7219
- ? await Organization.fromJsonLd(v, options)
7293
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Group")
7294
+ ? await Group.fromJsonLd(v, options)
7220
7295
  : typeof v === "object" && "@type" in v &&
7221
7296
  Array.isArray(v["@type"]) &&
7222
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
7223
- ? await Person.fromJsonLd(v, options)
7297
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")
7298
+ ? await Organization.fromJsonLd(v, options)
7224
7299
  : typeof v === "object" && "@type" in v &&
7225
7300
  Array.isArray(v["@type"]) &&
7226
- v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
7227
- ? await Service.fromJsonLd(v, options)
7228
- : undefined;
7229
- if (typeof decoded === "undefined")
7230
- continue;
7231
- _2DjTTboo3CNHU2a2JQqUSE2dbv9D.push(decoded);
7301
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Person")
7302
+ ? await Person.fromJsonLd(v, options)
7303
+ : typeof v === "object" && "@type" in v &&
7304
+ Array.isArray(v["@type"]) &&
7305
+ v["@type"].includes("https://www.w3.org/ns/activitystreams#Service")
7306
+ ? await Service.fromJsonLd(v, options)
7307
+ : undefined;
7308
+ if (typeof decoded === "undefined")
7309
+ continue;
7310
+ _2DjTTboo3CNHU2a2JQqUSE2dbv9D.push(decoded);
7311
+ }
7232
7312
  }
7233
7313
  instance.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D = _2DjTTboo3CNHU2a2JQqUSE2dbv9D;
7234
7314
  const _2MH19yxjn1wnHsNfa5n4JBhJzxyc = [];
7235
7315
  const _2MH19yxjn1wnHsNfa5n4JBhJzxyc__array = values["https://www.w3.org/ns/activitystreams#object"];
7236
- for (const v of _2MH19yxjn1wnHsNfa5n4JBhJzxyc__array ?? []) {
7237
- if (v == null)
7238
- continue;
7239
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7240
- globalThis.Object.keys(v).length === 1) {
7241
- _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(new URL(v["@id"]));
7242
- continue;
7316
+ if (_2MH19yxjn1wnHsNfa5n4JBhJzxyc__array != null) {
7317
+ for (const v of _2MH19yxjn1wnHsNfa5n4JBhJzxyc__array) {
7318
+ if (v == null)
7319
+ continue;
7320
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7321
+ globalThis.Object.keys(v).length === 1) {
7322
+ _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(new URL(v["@id"]));
7323
+ continue;
7324
+ }
7325
+ _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(await Object.fromJsonLd(v, options));
7243
7326
  }
7244
- _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(await Object.fromJsonLd(v, options));
7245
7327
  }
7246
7328
  instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc = _2MH19yxjn1wnHsNfa5n4JBhJzxyc;
7247
7329
  const _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF = [];
7248
7330
  const _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF__array = values["https://www.w3.org/ns/activitystreams#target"];
7249
- for (const v of _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF__array ?? []) {
7250
- if (v == null)
7251
- continue;
7252
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7253
- globalThis.Object.keys(v).length === 1) {
7254
- _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF.push(new URL(v["@id"]));
7255
- continue;
7331
+ if (_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF__array != null) {
7332
+ for (const v of _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF__array) {
7333
+ if (v == null)
7334
+ continue;
7335
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7336
+ globalThis.Object.keys(v).length === 1) {
7337
+ _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF.push(new URL(v["@id"]));
7338
+ continue;
7339
+ }
7340
+ _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF.push(await Object.fromJsonLd(v, options));
7256
7341
  }
7257
- _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF.push(await Object.fromJsonLd(v, options));
7258
7342
  }
7259
7343
  instance.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF = _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF;
7260
7344
  const _u4QGFbRFcYmPEKGbPv1hpBR9r5G = [];
7261
7345
  const _u4QGFbRFcYmPEKGbPv1hpBR9r5G__array = values["https://www.w3.org/ns/activitystreams#result"];
7262
- for (const v of _u4QGFbRFcYmPEKGbPv1hpBR9r5G__array ?? []) {
7263
- if (v == null)
7264
- continue;
7265
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7266
- globalThis.Object.keys(v).length === 1) {
7267
- _u4QGFbRFcYmPEKGbPv1hpBR9r5G.push(new URL(v["@id"]));
7268
- continue;
7346
+ if (_u4QGFbRFcYmPEKGbPv1hpBR9r5G__array != null) {
7347
+ for (const v of _u4QGFbRFcYmPEKGbPv1hpBR9r5G__array) {
7348
+ if (v == null)
7349
+ continue;
7350
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7351
+ globalThis.Object.keys(v).length === 1) {
7352
+ _u4QGFbRFcYmPEKGbPv1hpBR9r5G.push(new URL(v["@id"]));
7353
+ continue;
7354
+ }
7355
+ _u4QGFbRFcYmPEKGbPv1hpBR9r5G.push(await Object.fromJsonLd(v, options));
7269
7356
  }
7270
- _u4QGFbRFcYmPEKGbPv1hpBR9r5G.push(await Object.fromJsonLd(v, options));
7271
7357
  }
7272
7358
  instance.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G = _u4QGFbRFcYmPEKGbPv1hpBR9r5G;
7273
7359
  const _25zu2s3VxVujgEKqrDycjE284XQR = [];
7274
7360
  const _25zu2s3VxVujgEKqrDycjE284XQR__array = values["https://www.w3.org/ns/activitystreams#origin"];
7275
- for (const v of _25zu2s3VxVujgEKqrDycjE284XQR__array ?? []) {
7276
- if (v == null)
7277
- continue;
7278
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7279
- globalThis.Object.keys(v).length === 1) {
7280
- _25zu2s3VxVujgEKqrDycjE284XQR.push(new URL(v["@id"]));
7281
- continue;
7361
+ if (_25zu2s3VxVujgEKqrDycjE284XQR__array != null) {
7362
+ for (const v of _25zu2s3VxVujgEKqrDycjE284XQR__array) {
7363
+ if (v == null)
7364
+ continue;
7365
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7366
+ globalThis.Object.keys(v).length === 1) {
7367
+ _25zu2s3VxVujgEKqrDycjE284XQR.push(new URL(v["@id"]));
7368
+ continue;
7369
+ }
7370
+ _25zu2s3VxVujgEKqrDycjE284XQR.push(await Object.fromJsonLd(v, options));
7282
7371
  }
7283
- _25zu2s3VxVujgEKqrDycjE284XQR.push(await Object.fromJsonLd(v, options));
7284
7372
  }
7285
7373
  instance.#_25zu2s3VxVujgEKqrDycjE284XQR = _25zu2s3VxVujgEKqrDycjE284XQR;
7286
7374
  const _3c5t2x7DYRo2shwTxpkd4kYSS5WQ = [];
7287
7375
  const _3c5t2x7DYRo2shwTxpkd4kYSS5WQ__array = values["https://www.w3.org/ns/activitystreams#instrument"];
7288
- for (const v of _3c5t2x7DYRo2shwTxpkd4kYSS5WQ__array ?? []) {
7289
- if (v == null)
7290
- continue;
7291
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7292
- globalThis.Object.keys(v).length === 1) {
7293
- _3c5t2x7DYRo2shwTxpkd4kYSS5WQ.push(new URL(v["@id"]));
7294
- continue;
7376
+ if (_3c5t2x7DYRo2shwTxpkd4kYSS5WQ__array != null) {
7377
+ for (const v of _3c5t2x7DYRo2shwTxpkd4kYSS5WQ__array) {
7378
+ if (v == null)
7379
+ continue;
7380
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
7381
+ globalThis.Object.keys(v).length === 1) {
7382
+ _3c5t2x7DYRo2shwTxpkd4kYSS5WQ.push(new URL(v["@id"]));
7383
+ continue;
7384
+ }
7385
+ _3c5t2x7DYRo2shwTxpkd4kYSS5WQ.push(await Object.fromJsonLd(v, options));
7295
7386
  }
7296
- _3c5t2x7DYRo2shwTxpkd4kYSS5WQ.push(await Object.fromJsonLd(v, options));
7297
7387
  }
7298
7388
  instance.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ = _3c5t2x7DYRo2shwTxpkd4kYSS5WQ;
7299
7389
  return instance;
@@ -9133,185 +9223,217 @@ export class Application extends Object {
9133
9223
  }
9134
9224
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf = [];
9135
9225
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
9136
- for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array ?? []) {
9137
- if (v == null)
9138
- continue;
9139
- const decoded = typeof v === "object" && "@value" in v &&
9140
- typeof v["@value"] === "string" && !("@language" in v)
9141
- ? v["@value"]
9142
- : typeof v === "object" && "@language" in v && "@value" in v &&
9143
- typeof v["@language"] === "string" &&
9144
- typeof v["@value"] === "string"
9145
- ? new LanguageString(v["@value"], v["@language"])
9146
- : undefined;
9147
- if (typeof decoded === "undefined")
9148
- continue;
9149
- _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
9226
+ if (_3isuDgRAKSntq9XdbjiNxjwyPZAf__array != null) {
9227
+ for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array) {
9228
+ if (v == null)
9229
+ continue;
9230
+ const decoded = typeof v === "object" && "@value" in v &&
9231
+ typeof v["@value"] === "string" && !("@language" in v)
9232
+ ? v["@value"]
9233
+ : typeof v === "object" && "@language" in v && "@value" in v &&
9234
+ typeof v["@language"] === "string" &&
9235
+ typeof v["@value"] === "string"
9236
+ ? new LanguageString(v["@value"], v["@language"])
9237
+ : undefined;
9238
+ if (typeof decoded === "undefined")
9239
+ continue;
9240
+ _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
9241
+ }
9150
9242
  }
9151
9243
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf = _3isuDgRAKSntq9XdbjiNxjwyPZAf;
9152
9244
  const _axq166E2eZADq34V4MYUc8KMZdC = [];
9153
9245
  const _axq166E2eZADq34V4MYUc8KMZdC__array = values["https://w3id.org/security#publicKey"];
9154
- for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array ?? []) {
9155
- if (v == null)
9156
- continue;
9157
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9158
- globalThis.Object.keys(v).length === 1) {
9159
- _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
9160
- continue;
9246
+ if (_axq166E2eZADq34V4MYUc8KMZdC__array != null) {
9247
+ for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array) {
9248
+ if (v == null)
9249
+ continue;
9250
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9251
+ globalThis.Object.keys(v).length === 1) {
9252
+ _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
9253
+ continue;
9254
+ }
9255
+ _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
9161
9256
  }
9162
- _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
9163
9257
  }
9164
9258
  instance.#_axq166E2eZADq34V4MYUc8KMZdC = _axq166E2eZADq34V4MYUc8KMZdC;
9165
9259
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3 = [];
9166
9260
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array = values["https://w3id.org/security#assertionMethod"];
9167
- for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array ?? []) {
9168
- if (v == null)
9169
- continue;
9170
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9171
- globalThis.Object.keys(v).length === 1) {
9172
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
9173
- continue;
9261
+ if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3__array != null) {
9262
+ for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array) {
9263
+ if (v == null)
9264
+ continue;
9265
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9266
+ globalThis.Object.keys(v).length === 1) {
9267
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
9268
+ continue;
9269
+ }
9270
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
9174
9271
  }
9175
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
9176
9272
  }
9177
9273
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3 = _4EHQFWZSz1k1d4LmPrQiMba2GbP3;
9178
9274
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA = [];
9179
9275
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
9180
- for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array ?? []) {
9181
- if (v == null)
9182
- continue;
9183
- _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
9276
+ if (_36QNc9MxfkKf6h8sEUQSHnV9NZA__array != null) {
9277
+ for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array) {
9278
+ if (v == null)
9279
+ continue;
9280
+ _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
9281
+ }
9184
9282
  }
9185
9283
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA = _36QNc9MxfkKf6h8sEUQSHnV9NZA;
9186
9284
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB = [];
9187
9285
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array = values["http://www.w3.org/ns/ldp#inbox"];
9188
- for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array ?? []) {
9189
- if (v == null)
9190
- continue;
9191
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9192
- globalThis.Object.keys(v).length === 1) {
9193
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
9194
- continue;
9286
+ if (_3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array != null) {
9287
+ for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array) {
9288
+ if (v == null)
9289
+ continue;
9290
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9291
+ globalThis.Object.keys(v).length === 1) {
9292
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
9293
+ continue;
9294
+ }
9295
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
9195
9296
  }
9196
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
9197
9297
  }
9198
9298
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB;
9199
9299
  const _41QwhqJouoLg3h8dRPKat21brynC = [];
9200
9300
  const _41QwhqJouoLg3h8dRPKat21brynC__array = values["https://www.w3.org/ns/activitystreams#outbox"];
9201
- for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array ?? []) {
9202
- if (v == null)
9203
- continue;
9204
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9205
- globalThis.Object.keys(v).length === 1) {
9206
- _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
9207
- continue;
9301
+ if (_41QwhqJouoLg3h8dRPKat21brynC__array != null) {
9302
+ for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array) {
9303
+ if (v == null)
9304
+ continue;
9305
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9306
+ globalThis.Object.keys(v).length === 1) {
9307
+ _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
9308
+ continue;
9309
+ }
9310
+ _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
9208
9311
  }
9209
- _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
9210
9312
  }
9211
9313
  instance.#_41QwhqJouoLg3h8dRPKat21brynC = _41QwhqJouoLg3h8dRPKat21brynC;
9212
9314
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee = [];
9213
9315
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array = values["https://www.w3.org/ns/activitystreams#following"];
9214
- for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array ?? []) {
9215
- if (v == null)
9216
- continue;
9217
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9218
- globalThis.Object.keys(v).length === 1) {
9219
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
9220
- continue;
9316
+ if (_3yAv8jymNfNuJUDuBzJ1NQhdbAee__array != null) {
9317
+ for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array) {
9318
+ if (v == null)
9319
+ continue;
9320
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9321
+ globalThis.Object.keys(v).length === 1) {
9322
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
9323
+ continue;
9324
+ }
9325
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
9221
9326
  }
9222
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
9223
9327
  }
9224
9328
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee = _3yAv8jymNfNuJUDuBzJ1NQhdbAee;
9225
9329
  const _BBCTgfphhsFzpVfKTykGSpBNwoA = [];
9226
9330
  const _BBCTgfphhsFzpVfKTykGSpBNwoA__array = values["https://www.w3.org/ns/activitystreams#followers"];
9227
- for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array ?? []) {
9228
- if (v == null)
9229
- continue;
9230
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9231
- globalThis.Object.keys(v).length === 1) {
9232
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
9233
- continue;
9331
+ if (_BBCTgfphhsFzpVfKTykGSpBNwoA__array != null) {
9332
+ for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array) {
9333
+ if (v == null)
9334
+ continue;
9335
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9336
+ globalThis.Object.keys(v).length === 1) {
9337
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
9338
+ continue;
9339
+ }
9340
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
9234
9341
  }
9235
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
9236
9342
  }
9237
9343
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA = _BBCTgfphhsFzpVfKTykGSpBNwoA;
9238
9344
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU = [];
9239
9345
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU__array = values["https://www.w3.org/ns/activitystreams#liked"];
9240
- for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array ?? []) {
9241
- if (v == null)
9242
- continue;
9243
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9244
- globalThis.Object.keys(v).length === 1) {
9245
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
9246
- continue;
9346
+ if (_3bgkPwJanyTCoVFM9ovRcus8tKkU__array != null) {
9347
+ for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array) {
9348
+ if (v == null)
9349
+ continue;
9350
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9351
+ globalThis.Object.keys(v).length === 1) {
9352
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
9353
+ continue;
9354
+ }
9355
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
9247
9356
  }
9248
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
9249
9357
  }
9250
9358
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = _3bgkPwJanyTCoVFM9ovRcus8tKkU;
9251
9359
  const _4N1vBJzXDf8NbBumeECQMFvKetja = [];
9252
9360
  const _4N1vBJzXDf8NbBumeECQMFvKetja__array = values["http://joinmastodon.org/ns#featured"];
9253
- for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array ?? []) {
9254
- if (v == null)
9255
- continue;
9256
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9257
- globalThis.Object.keys(v).length === 1) {
9258
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
9259
- continue;
9361
+ if (_4N1vBJzXDf8NbBumeECQMFvKetja__array != null) {
9362
+ for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array) {
9363
+ if (v == null)
9364
+ continue;
9365
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9366
+ globalThis.Object.keys(v).length === 1) {
9367
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
9368
+ continue;
9369
+ }
9370
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
9260
9371
  }
9261
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
9262
9372
  }
9263
9373
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja = _4N1vBJzXDf8NbBumeECQMFvKetja;
9264
9374
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = [];
9265
9375
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array = values["https://www.w3.org/ns/activitystreams#streams"];
9266
- for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array ?? []) {
9267
- if (v == null)
9268
- continue;
9269
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9270
- globalThis.Object.keys(v).length === 1) {
9271
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
9272
- continue;
9376
+ if (_3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array != null) {
9377
+ for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array) {
9378
+ if (v == null)
9379
+ continue;
9380
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
9381
+ globalThis.Object.keys(v).length === 1) {
9382
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
9383
+ continue;
9384
+ }
9385
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
9273
9386
  }
9274
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
9275
9387
  }
9276
9388
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9;
9277
9389
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG = [];
9278
9390
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
9279
- for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array ?? []) {
9280
- if (v == null)
9281
- continue;
9282
- _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
9391
+ if (_sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array != null) {
9392
+ for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array) {
9393
+ if (v == null)
9394
+ continue;
9395
+ _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
9396
+ }
9283
9397
  }
9284
9398
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG;
9285
9399
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH = [];
9286
9400
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH__array = values["http://joinmastodon.org/ns#discoverable"];
9287
- for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array ?? []) {
9288
- if (v == null)
9289
- continue;
9290
- _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
9401
+ if (_gAJzg1QDc4rcefFsUzGSYmyXvNH__array != null) {
9402
+ for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array) {
9403
+ if (v == null)
9404
+ continue;
9405
+ _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
9406
+ }
9291
9407
  }
9292
9408
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH = _gAJzg1QDc4rcefFsUzGSYmyXvNH;
9293
9409
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7 = [];
9294
9410
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array = values["http://joinmastodon.org/ns#suspended"];
9295
- for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array ?? []) {
9296
- if (v == null)
9297
- continue;
9298
- _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
9411
+ if (_2kGKkJtoFWg8c18PaVSqj9NKP4t7__array != null) {
9412
+ for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array) {
9413
+ if (v == null)
9414
+ continue;
9415
+ _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
9416
+ }
9299
9417
  }
9300
9418
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7 = _2kGKkJtoFWg8c18PaVSqj9NKP4t7;
9301
9419
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ = [];
9302
9420
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ__array = values["http://joinmastodon.org/ns#memorial"];
9303
- for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array ?? []) {
9304
- if (v == null)
9305
- continue;
9306
- _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
9421
+ if (_79S8K4f5J9MWUgCxziRyUe6PTHZ__array != null) {
9422
+ for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array) {
9423
+ if (v == null)
9424
+ continue;
9425
+ _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
9426
+ }
9307
9427
  }
9308
9428
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ = _79S8K4f5J9MWUgCxziRyUe6PTHZ;
9309
9429
  const _2diCorzqPGQQqftp6e4SrCEwEnyk = [];
9310
9430
  const _2diCorzqPGQQqftp6e4SrCEwEnyk__array = values["http://joinmastodon.org/ns#indexable"];
9311
- for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array ?? []) {
9312
- if (v == null)
9313
- continue;
9314
- _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
9431
+ if (_2diCorzqPGQQqftp6e4SrCEwEnyk__array != null) {
9432
+ for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array) {
9433
+ if (v == null)
9434
+ continue;
9435
+ _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
9436
+ }
9315
9437
  }
9316
9438
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk = _2diCorzqPGQQqftp6e4SrCEwEnyk;
9317
9439
  return instance;
@@ -10071,18 +10193,22 @@ export class Document extends Object {
10071
10193
  }
10072
10194
  const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe = [];
10073
10195
  const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array = values["https://www.w3.org/ns/activitystreams#width"];
10074
- for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array ?? []) {
10075
- if (v == null)
10076
- continue;
10077
- _2e9AP7WdHBJYAgXG6GEyq7nSkNMe.push(v["@value"]);
10196
+ if (_2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array != null) {
10197
+ for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array) {
10198
+ if (v == null)
10199
+ continue;
10200
+ _2e9AP7WdHBJYAgXG6GEyq7nSkNMe.push(v["@value"]);
10201
+ }
10078
10202
  }
10079
10203
  instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe;
10080
10204
  const _2cGKFeFJMmiNpGZFEF75mCwFQsKb = [];
10081
10205
  const _2cGKFeFJMmiNpGZFEF75mCwFQsKb__array = values["https://www.w3.org/ns/activitystreams#height"];
10082
- for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb__array ?? []) {
10083
- if (v == null)
10084
- continue;
10085
- _2cGKFeFJMmiNpGZFEF75mCwFQsKb.push(v["@value"]);
10206
+ if (_2cGKFeFJMmiNpGZFEF75mCwFQsKb__array != null) {
10207
+ for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb__array) {
10208
+ if (v == null)
10209
+ continue;
10210
+ _2cGKFeFJMmiNpGZFEF75mCwFQsKb.push(v["@value"]);
10211
+ }
10086
10212
  }
10087
10213
  instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb = _2cGKFeFJMmiNpGZFEF75mCwFQsKb;
10088
10214
  return instance;
@@ -10966,62 +11092,72 @@ export class Collection extends Object {
10966
11092
  }
10967
11093
  const _XDbmNDuWHmrhqH712zqtecdbv1V = [];
10968
11094
  const _XDbmNDuWHmrhqH712zqtecdbv1V__array = values["https://www.w3.org/ns/activitystreams#totalItems"];
10969
- for (const v of _XDbmNDuWHmrhqH712zqtecdbv1V__array ?? []) {
10970
- if (v == null)
10971
- continue;
10972
- _XDbmNDuWHmrhqH712zqtecdbv1V.push(v["@value"]);
11095
+ if (_XDbmNDuWHmrhqH712zqtecdbv1V__array != null) {
11096
+ for (const v of _XDbmNDuWHmrhqH712zqtecdbv1V__array) {
11097
+ if (v == null)
11098
+ continue;
11099
+ _XDbmNDuWHmrhqH712zqtecdbv1V.push(v["@value"]);
11100
+ }
10973
11101
  }
10974
11102
  instance.#_XDbmNDuWHmrhqH712zqtecdbv1V = _XDbmNDuWHmrhqH712zqtecdbv1V;
10975
11103
  const _3UyUdxnyn6cDn53QKrh4MBiearma = [];
10976
11104
  const _3UyUdxnyn6cDn53QKrh4MBiearma__array = values["https://www.w3.org/ns/activitystreams#current"];
10977
- for (const v of _3UyUdxnyn6cDn53QKrh4MBiearma__array ?? []) {
10978
- if (v == null)
10979
- continue;
10980
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
10981
- globalThis.Object.keys(v).length === 1) {
10982
- _3UyUdxnyn6cDn53QKrh4MBiearma.push(new URL(v["@id"]));
10983
- continue;
11105
+ if (_3UyUdxnyn6cDn53QKrh4MBiearma__array != null) {
11106
+ for (const v of _3UyUdxnyn6cDn53QKrh4MBiearma__array) {
11107
+ if (v == null)
11108
+ continue;
11109
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11110
+ globalThis.Object.keys(v).length === 1) {
11111
+ _3UyUdxnyn6cDn53QKrh4MBiearma.push(new URL(v["@id"]));
11112
+ continue;
11113
+ }
11114
+ _3UyUdxnyn6cDn53QKrh4MBiearma.push(await CollectionPage.fromJsonLd(v, options));
10984
11115
  }
10985
- _3UyUdxnyn6cDn53QKrh4MBiearma.push(await CollectionPage.fromJsonLd(v, options));
10986
11116
  }
10987
11117
  instance.#_3UyUdxnyn6cDn53QKrh4MBiearma = _3UyUdxnyn6cDn53QKrh4MBiearma;
10988
11118
  const _J52RqweMe6hhv7RnLJMC8BExTE5 = [];
10989
11119
  const _J52RqweMe6hhv7RnLJMC8BExTE5__array = values["https://www.w3.org/ns/activitystreams#first"];
10990
- for (const v of _J52RqweMe6hhv7RnLJMC8BExTE5__array ?? []) {
10991
- if (v == null)
10992
- continue;
10993
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
10994
- globalThis.Object.keys(v).length === 1) {
10995
- _J52RqweMe6hhv7RnLJMC8BExTE5.push(new URL(v["@id"]));
10996
- continue;
11120
+ if (_J52RqweMe6hhv7RnLJMC8BExTE5__array != null) {
11121
+ for (const v of _J52RqweMe6hhv7RnLJMC8BExTE5__array) {
11122
+ if (v == null)
11123
+ continue;
11124
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11125
+ globalThis.Object.keys(v).length === 1) {
11126
+ _J52RqweMe6hhv7RnLJMC8BExTE5.push(new URL(v["@id"]));
11127
+ continue;
11128
+ }
11129
+ _J52RqweMe6hhv7RnLJMC8BExTE5.push(await CollectionPage.fromJsonLd(v, options));
10997
11130
  }
10998
- _J52RqweMe6hhv7RnLJMC8BExTE5.push(await CollectionPage.fromJsonLd(v, options));
10999
11131
  }
11000
11132
  instance.#_J52RqweMe6hhv7RnLJMC8BExTE5 = _J52RqweMe6hhv7RnLJMC8BExTE5;
11001
11133
  const _gyJJnyEFnuNVi1HFZKfAn3Hfn26 = [];
11002
11134
  const _gyJJnyEFnuNVi1HFZKfAn3Hfn26__array = values["https://www.w3.org/ns/activitystreams#last"];
11003
- for (const v of _gyJJnyEFnuNVi1HFZKfAn3Hfn26__array ?? []) {
11004
- if (v == null)
11005
- continue;
11006
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11007
- globalThis.Object.keys(v).length === 1) {
11008
- _gyJJnyEFnuNVi1HFZKfAn3Hfn26.push(new URL(v["@id"]));
11009
- continue;
11135
+ if (_gyJJnyEFnuNVi1HFZKfAn3Hfn26__array != null) {
11136
+ for (const v of _gyJJnyEFnuNVi1HFZKfAn3Hfn26__array) {
11137
+ if (v == null)
11138
+ continue;
11139
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11140
+ globalThis.Object.keys(v).length === 1) {
11141
+ _gyJJnyEFnuNVi1HFZKfAn3Hfn26.push(new URL(v["@id"]));
11142
+ continue;
11143
+ }
11144
+ _gyJJnyEFnuNVi1HFZKfAn3Hfn26.push(await CollectionPage.fromJsonLd(v, options));
11010
11145
  }
11011
- _gyJJnyEFnuNVi1HFZKfAn3Hfn26.push(await CollectionPage.fromJsonLd(v, options));
11012
11146
  }
11013
11147
  instance.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26 = _gyJJnyEFnuNVi1HFZKfAn3Hfn26;
11014
11148
  const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = [];
11015
11149
  const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array = values["https://www.w3.org/ns/activitystreams#items"];
11016
- for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array ?? []) {
11017
- if (v == null)
11018
- continue;
11019
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11020
- globalThis.Object.keys(v).length === 1) {
11021
- _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.push(new URL(v["@id"]));
11022
- continue;
11150
+ if (_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array != null) {
11151
+ for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array) {
11152
+ if (v == null)
11153
+ continue;
11154
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11155
+ globalThis.Object.keys(v).length === 1) {
11156
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.push(new URL(v["@id"]));
11157
+ continue;
11158
+ }
11159
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.push(await Object.fromJsonLd(v, options));
11023
11160
  }
11024
- _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.push(await Object.fromJsonLd(v, options));
11025
11161
  }
11026
11162
  instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg;
11027
11163
  return instance;
@@ -11457,41 +11593,47 @@ export class CollectionPage extends Collection {
11457
11593
  }
11458
11594
  const _2kWgBhQKjEauxx8C6qF3ZQamK4Le = [];
11459
11595
  const _2kWgBhQKjEauxx8C6qF3ZQamK4Le__array = values["https://www.w3.org/ns/activitystreams#partOf"];
11460
- for (const v of _2kWgBhQKjEauxx8C6qF3ZQamK4Le__array ?? []) {
11461
- if (v == null)
11462
- continue;
11463
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11464
- globalThis.Object.keys(v).length === 1) {
11465
- _2kWgBhQKjEauxx8C6qF3ZQamK4Le.push(new URL(v["@id"]));
11466
- continue;
11596
+ if (_2kWgBhQKjEauxx8C6qF3ZQamK4Le__array != null) {
11597
+ for (const v of _2kWgBhQKjEauxx8C6qF3ZQamK4Le__array) {
11598
+ if (v == null)
11599
+ continue;
11600
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11601
+ globalThis.Object.keys(v).length === 1) {
11602
+ _2kWgBhQKjEauxx8C6qF3ZQamK4Le.push(new URL(v["@id"]));
11603
+ continue;
11604
+ }
11605
+ _2kWgBhQKjEauxx8C6qF3ZQamK4Le.push(await Collection.fromJsonLd(v, options));
11467
11606
  }
11468
- _2kWgBhQKjEauxx8C6qF3ZQamK4Le.push(await Collection.fromJsonLd(v, options));
11469
11607
  }
11470
11608
  instance.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le = _2kWgBhQKjEauxx8C6qF3ZQamK4Le;
11471
11609
  const _3BT4kQLcXhHx7TAWaNDKh8nFn9eY = [];
11472
11610
  const _3BT4kQLcXhHx7TAWaNDKh8nFn9eY__array = values["https://www.w3.org/ns/activitystreams#next"];
11473
- for (const v of _3BT4kQLcXhHx7TAWaNDKh8nFn9eY__array ?? []) {
11474
- if (v == null)
11475
- continue;
11476
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11477
- globalThis.Object.keys(v).length === 1) {
11478
- _3BT4kQLcXhHx7TAWaNDKh8nFn9eY.push(new URL(v["@id"]));
11479
- continue;
11611
+ if (_3BT4kQLcXhHx7TAWaNDKh8nFn9eY__array != null) {
11612
+ for (const v of _3BT4kQLcXhHx7TAWaNDKh8nFn9eY__array) {
11613
+ if (v == null)
11614
+ continue;
11615
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11616
+ globalThis.Object.keys(v).length === 1) {
11617
+ _3BT4kQLcXhHx7TAWaNDKh8nFn9eY.push(new URL(v["@id"]));
11618
+ continue;
11619
+ }
11620
+ _3BT4kQLcXhHx7TAWaNDKh8nFn9eY.push(await _b.fromJsonLd(v, options));
11480
11621
  }
11481
- _3BT4kQLcXhHx7TAWaNDKh8nFn9eY.push(await _b.fromJsonLd(v, options));
11482
11622
  }
11483
11623
  instance.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY = _3BT4kQLcXhHx7TAWaNDKh8nFn9eY;
11484
11624
  const _3b8yG8tDNzQFFEnWhCc13G8eHooA = [];
11485
11625
  const _3b8yG8tDNzQFFEnWhCc13G8eHooA__array = values["https://www.w3.org/ns/activitystreams#prev"];
11486
- for (const v of _3b8yG8tDNzQFFEnWhCc13G8eHooA__array ?? []) {
11487
- if (v == null)
11488
- continue;
11489
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11490
- globalThis.Object.keys(v).length === 1) {
11491
- _3b8yG8tDNzQFFEnWhCc13G8eHooA.push(new URL(v["@id"]));
11492
- continue;
11626
+ if (_3b8yG8tDNzQFFEnWhCc13G8eHooA__array != null) {
11627
+ for (const v of _3b8yG8tDNzQFFEnWhCc13G8eHooA__array) {
11628
+ if (v == null)
11629
+ continue;
11630
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
11631
+ globalThis.Object.keys(v).length === 1) {
11632
+ _3b8yG8tDNzQFFEnWhCc13G8eHooA.push(new URL(v["@id"]));
11633
+ continue;
11634
+ }
11635
+ _3b8yG8tDNzQFFEnWhCc13G8eHooA.push(await _b.fromJsonLd(v, options));
11493
11636
  }
11494
- _3b8yG8tDNzQFFEnWhCc13G8eHooA.push(await _b.fromJsonLd(v, options));
11495
11637
  }
11496
11638
  instance.#_3b8yG8tDNzQFFEnWhCc13G8eHooA = _3b8yG8tDNzQFFEnWhCc13G8eHooA;
11497
11639
  return instance;
@@ -12235,50 +12377,62 @@ export class Endpoints {
12235
12377
  const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : undefined }, options);
12236
12378
  const _2JCYDbSxEHCCLdBYed33cCETfGyR = [];
12237
12379
  const _2JCYDbSxEHCCLdBYed33cCETfGyR__array = values["https://www.w3.org/ns/activitystreams#proxyUrl"];
12238
- for (const v of _2JCYDbSxEHCCLdBYed33cCETfGyR__array ?? []) {
12239
- if (v == null)
12240
- continue;
12241
- _2JCYDbSxEHCCLdBYed33cCETfGyR.push(new URL(v["@id"]));
12380
+ if (_2JCYDbSxEHCCLdBYed33cCETfGyR__array != null) {
12381
+ for (const v of _2JCYDbSxEHCCLdBYed33cCETfGyR__array) {
12382
+ if (v == null)
12383
+ continue;
12384
+ _2JCYDbSxEHCCLdBYed33cCETfGyR.push(new URL(v["@id"]));
12385
+ }
12242
12386
  }
12243
12387
  instance.#_2JCYDbSxEHCCLdBYed33cCETfGyR = _2JCYDbSxEHCCLdBYed33cCETfGyR;
12244
12388
  const _25S6UmgzDead8hxL5sQFezZTAusd = [];
12245
12389
  const _25S6UmgzDead8hxL5sQFezZTAusd__array = values["https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint"];
12246
- for (const v of _25S6UmgzDead8hxL5sQFezZTAusd__array ?? []) {
12247
- if (v == null)
12248
- continue;
12249
- _25S6UmgzDead8hxL5sQFezZTAusd.push(new URL(v["@id"]));
12390
+ if (_25S6UmgzDead8hxL5sQFezZTAusd__array != null) {
12391
+ for (const v of _25S6UmgzDead8hxL5sQFezZTAusd__array) {
12392
+ if (v == null)
12393
+ continue;
12394
+ _25S6UmgzDead8hxL5sQFezZTAusd.push(new URL(v["@id"]));
12395
+ }
12250
12396
  }
12251
12397
  instance.#_25S6UmgzDead8hxL5sQFezZTAusd = _25S6UmgzDead8hxL5sQFezZTAusd;
12252
12398
  const _iAMxqrSba7yBCRB1FZ5kEVdKEZ3 = [];
12253
12399
  const _iAMxqrSba7yBCRB1FZ5kEVdKEZ3__array = values["https://www.w3.org/ns/activitystreams#oauthTokenEndpoint"];
12254
- for (const v of _iAMxqrSba7yBCRB1FZ5kEVdKEZ3__array ?? []) {
12255
- if (v == null)
12256
- continue;
12257
- _iAMxqrSba7yBCRB1FZ5kEVdKEZ3.push(new URL(v["@id"]));
12400
+ if (_iAMxqrSba7yBCRB1FZ5kEVdKEZ3__array != null) {
12401
+ for (const v of _iAMxqrSba7yBCRB1FZ5kEVdKEZ3__array) {
12402
+ if (v == null)
12403
+ continue;
12404
+ _iAMxqrSba7yBCRB1FZ5kEVdKEZ3.push(new URL(v["@id"]));
12405
+ }
12258
12406
  }
12259
12407
  instance.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3 = _iAMxqrSba7yBCRB1FZ5kEVdKEZ3;
12260
12408
  const _8Bx9qN8oU7Bpt2xi6khaxWp1gMr = [];
12261
12409
  const _8Bx9qN8oU7Bpt2xi6khaxWp1gMr__array = values["https://www.w3.org/ns/activitystreams#provideClientKey"];
12262
- for (const v of _8Bx9qN8oU7Bpt2xi6khaxWp1gMr__array ?? []) {
12263
- if (v == null)
12264
- continue;
12265
- _8Bx9qN8oU7Bpt2xi6khaxWp1gMr.push(new URL(v["@id"]));
12410
+ if (_8Bx9qN8oU7Bpt2xi6khaxWp1gMr__array != null) {
12411
+ for (const v of _8Bx9qN8oU7Bpt2xi6khaxWp1gMr__array) {
12412
+ if (v == null)
12413
+ continue;
12414
+ _8Bx9qN8oU7Bpt2xi6khaxWp1gMr.push(new URL(v["@id"]));
12415
+ }
12266
12416
  }
12267
12417
  instance.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr = _8Bx9qN8oU7Bpt2xi6khaxWp1gMr;
12268
12418
  const _3dU7PMVQZJpsCpo2F4RQXxBXdPmS = [];
12269
12419
  const _3dU7PMVQZJpsCpo2F4RQXxBXdPmS__array = values["https://www.w3.org/ns/activitystreams#signClientKey"];
12270
- for (const v of _3dU7PMVQZJpsCpo2F4RQXxBXdPmS__array ?? []) {
12271
- if (v == null)
12272
- continue;
12273
- _3dU7PMVQZJpsCpo2F4RQXxBXdPmS.push(new URL(v["@id"]));
12420
+ if (_3dU7PMVQZJpsCpo2F4RQXxBXdPmS__array != null) {
12421
+ for (const v of _3dU7PMVQZJpsCpo2F4RQXxBXdPmS__array) {
12422
+ if (v == null)
12423
+ continue;
12424
+ _3dU7PMVQZJpsCpo2F4RQXxBXdPmS.push(new URL(v["@id"]));
12425
+ }
12274
12426
  }
12275
12427
  instance.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS = _3dU7PMVQZJpsCpo2F4RQXxBXdPmS;
12276
12428
  const _3JprUSDLVqqX4dwHRi37qGZZCRCc = [];
12277
12429
  const _3JprUSDLVqqX4dwHRi37qGZZCRCc__array = values["https://www.w3.org/ns/activitystreams#sharedInbox"];
12278
- for (const v of _3JprUSDLVqqX4dwHRi37qGZZCRCc__array ?? []) {
12279
- if (v == null)
12280
- continue;
12281
- _3JprUSDLVqqX4dwHRi37qGZZCRCc.push(new URL(v["@id"]));
12430
+ if (_3JprUSDLVqqX4dwHRi37qGZZCRCc__array != null) {
12431
+ for (const v of _3JprUSDLVqqX4dwHRi37qGZZCRCc__array) {
12432
+ if (v == null)
12433
+ continue;
12434
+ _3JprUSDLVqqX4dwHRi37qGZZCRCc.push(new URL(v["@id"]));
12435
+ }
12282
12436
  }
12283
12437
  instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc = _3JprUSDLVqqX4dwHRi37qGZZCRCc;
12284
12438
  return instance;
@@ -14086,185 +14240,217 @@ export class Group extends Object {
14086
14240
  }
14087
14241
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf = [];
14088
14242
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
14089
- for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array ?? []) {
14090
- if (v == null)
14091
- continue;
14092
- const decoded = typeof v === "object" && "@value" in v &&
14093
- typeof v["@value"] === "string" && !("@language" in v)
14094
- ? v["@value"]
14095
- : typeof v === "object" && "@language" in v && "@value" in v &&
14096
- typeof v["@language"] === "string" &&
14097
- typeof v["@value"] === "string"
14098
- ? new LanguageString(v["@value"], v["@language"])
14099
- : undefined;
14100
- if (typeof decoded === "undefined")
14101
- continue;
14102
- _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
14243
+ if (_3isuDgRAKSntq9XdbjiNxjwyPZAf__array != null) {
14244
+ for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array) {
14245
+ if (v == null)
14246
+ continue;
14247
+ const decoded = typeof v === "object" && "@value" in v &&
14248
+ typeof v["@value"] === "string" && !("@language" in v)
14249
+ ? v["@value"]
14250
+ : typeof v === "object" && "@language" in v && "@value" in v &&
14251
+ typeof v["@language"] === "string" &&
14252
+ typeof v["@value"] === "string"
14253
+ ? new LanguageString(v["@value"], v["@language"])
14254
+ : undefined;
14255
+ if (typeof decoded === "undefined")
14256
+ continue;
14257
+ _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
14258
+ }
14103
14259
  }
14104
14260
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf = _3isuDgRAKSntq9XdbjiNxjwyPZAf;
14105
14261
  const _axq166E2eZADq34V4MYUc8KMZdC = [];
14106
14262
  const _axq166E2eZADq34V4MYUc8KMZdC__array = values["https://w3id.org/security#publicKey"];
14107
- for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array ?? []) {
14108
- if (v == null)
14109
- continue;
14110
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14111
- globalThis.Object.keys(v).length === 1) {
14112
- _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
14113
- continue;
14263
+ if (_axq166E2eZADq34V4MYUc8KMZdC__array != null) {
14264
+ for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array) {
14265
+ if (v == null)
14266
+ continue;
14267
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14268
+ globalThis.Object.keys(v).length === 1) {
14269
+ _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
14270
+ continue;
14271
+ }
14272
+ _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
14114
14273
  }
14115
- _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
14116
14274
  }
14117
14275
  instance.#_axq166E2eZADq34V4MYUc8KMZdC = _axq166E2eZADq34V4MYUc8KMZdC;
14118
14276
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3 = [];
14119
14277
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array = values["https://w3id.org/security#assertionMethod"];
14120
- for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array ?? []) {
14121
- if (v == null)
14122
- continue;
14123
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14124
- globalThis.Object.keys(v).length === 1) {
14125
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
14126
- continue;
14278
+ if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3__array != null) {
14279
+ for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array) {
14280
+ if (v == null)
14281
+ continue;
14282
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14283
+ globalThis.Object.keys(v).length === 1) {
14284
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
14285
+ continue;
14286
+ }
14287
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
14127
14288
  }
14128
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
14129
14289
  }
14130
14290
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3 = _4EHQFWZSz1k1d4LmPrQiMba2GbP3;
14131
14291
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA = [];
14132
14292
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
14133
- for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array ?? []) {
14134
- if (v == null)
14135
- continue;
14136
- _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
14293
+ if (_36QNc9MxfkKf6h8sEUQSHnV9NZA__array != null) {
14294
+ for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array) {
14295
+ if (v == null)
14296
+ continue;
14297
+ _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
14298
+ }
14137
14299
  }
14138
14300
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA = _36QNc9MxfkKf6h8sEUQSHnV9NZA;
14139
14301
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB = [];
14140
14302
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array = values["http://www.w3.org/ns/ldp#inbox"];
14141
- for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array ?? []) {
14142
- if (v == null)
14143
- continue;
14144
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14145
- globalThis.Object.keys(v).length === 1) {
14146
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
14147
- continue;
14303
+ if (_3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array != null) {
14304
+ for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array) {
14305
+ if (v == null)
14306
+ continue;
14307
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14308
+ globalThis.Object.keys(v).length === 1) {
14309
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
14310
+ continue;
14311
+ }
14312
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
14148
14313
  }
14149
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
14150
14314
  }
14151
14315
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB;
14152
14316
  const _41QwhqJouoLg3h8dRPKat21brynC = [];
14153
14317
  const _41QwhqJouoLg3h8dRPKat21brynC__array = values["https://www.w3.org/ns/activitystreams#outbox"];
14154
- for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array ?? []) {
14155
- if (v == null)
14156
- continue;
14157
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14158
- globalThis.Object.keys(v).length === 1) {
14159
- _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
14160
- continue;
14318
+ if (_41QwhqJouoLg3h8dRPKat21brynC__array != null) {
14319
+ for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array) {
14320
+ if (v == null)
14321
+ continue;
14322
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14323
+ globalThis.Object.keys(v).length === 1) {
14324
+ _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
14325
+ continue;
14326
+ }
14327
+ _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
14161
14328
  }
14162
- _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
14163
14329
  }
14164
14330
  instance.#_41QwhqJouoLg3h8dRPKat21brynC = _41QwhqJouoLg3h8dRPKat21brynC;
14165
14331
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee = [];
14166
14332
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array = values["https://www.w3.org/ns/activitystreams#following"];
14167
- for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array ?? []) {
14168
- if (v == null)
14169
- continue;
14170
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14171
- globalThis.Object.keys(v).length === 1) {
14172
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
14173
- continue;
14333
+ if (_3yAv8jymNfNuJUDuBzJ1NQhdbAee__array != null) {
14334
+ for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array) {
14335
+ if (v == null)
14336
+ continue;
14337
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14338
+ globalThis.Object.keys(v).length === 1) {
14339
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
14340
+ continue;
14341
+ }
14342
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
14174
14343
  }
14175
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
14176
14344
  }
14177
14345
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee = _3yAv8jymNfNuJUDuBzJ1NQhdbAee;
14178
14346
  const _BBCTgfphhsFzpVfKTykGSpBNwoA = [];
14179
14347
  const _BBCTgfphhsFzpVfKTykGSpBNwoA__array = values["https://www.w3.org/ns/activitystreams#followers"];
14180
- for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array ?? []) {
14181
- if (v == null)
14182
- continue;
14183
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14184
- globalThis.Object.keys(v).length === 1) {
14185
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
14186
- continue;
14348
+ if (_BBCTgfphhsFzpVfKTykGSpBNwoA__array != null) {
14349
+ for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array) {
14350
+ if (v == null)
14351
+ continue;
14352
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14353
+ globalThis.Object.keys(v).length === 1) {
14354
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
14355
+ continue;
14356
+ }
14357
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
14187
14358
  }
14188
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
14189
14359
  }
14190
14360
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA = _BBCTgfphhsFzpVfKTykGSpBNwoA;
14191
14361
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU = [];
14192
14362
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU__array = values["https://www.w3.org/ns/activitystreams#liked"];
14193
- for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array ?? []) {
14194
- if (v == null)
14195
- continue;
14196
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14197
- globalThis.Object.keys(v).length === 1) {
14198
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
14199
- continue;
14363
+ if (_3bgkPwJanyTCoVFM9ovRcus8tKkU__array != null) {
14364
+ for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array) {
14365
+ if (v == null)
14366
+ continue;
14367
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14368
+ globalThis.Object.keys(v).length === 1) {
14369
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
14370
+ continue;
14371
+ }
14372
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
14200
14373
  }
14201
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
14202
14374
  }
14203
14375
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = _3bgkPwJanyTCoVFM9ovRcus8tKkU;
14204
14376
  const _4N1vBJzXDf8NbBumeECQMFvKetja = [];
14205
14377
  const _4N1vBJzXDf8NbBumeECQMFvKetja__array = values["http://joinmastodon.org/ns#featured"];
14206
- for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array ?? []) {
14207
- if (v == null)
14208
- continue;
14209
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14210
- globalThis.Object.keys(v).length === 1) {
14211
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
14212
- continue;
14378
+ if (_4N1vBJzXDf8NbBumeECQMFvKetja__array != null) {
14379
+ for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array) {
14380
+ if (v == null)
14381
+ continue;
14382
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14383
+ globalThis.Object.keys(v).length === 1) {
14384
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
14385
+ continue;
14386
+ }
14387
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
14213
14388
  }
14214
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
14215
14389
  }
14216
14390
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja = _4N1vBJzXDf8NbBumeECQMFvKetja;
14217
14391
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = [];
14218
14392
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array = values["https://www.w3.org/ns/activitystreams#streams"];
14219
- for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array ?? []) {
14220
- if (v == null)
14221
- continue;
14222
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14223
- globalThis.Object.keys(v).length === 1) {
14224
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
14225
- continue;
14393
+ if (_3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array != null) {
14394
+ for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array) {
14395
+ if (v == null)
14396
+ continue;
14397
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
14398
+ globalThis.Object.keys(v).length === 1) {
14399
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
14400
+ continue;
14401
+ }
14402
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
14226
14403
  }
14227
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
14228
14404
  }
14229
14405
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9;
14230
14406
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG = [];
14231
14407
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
14232
- for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array ?? []) {
14233
- if (v == null)
14234
- continue;
14235
- _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
14408
+ if (_sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array != null) {
14409
+ for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array) {
14410
+ if (v == null)
14411
+ continue;
14412
+ _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
14413
+ }
14236
14414
  }
14237
14415
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG;
14238
14416
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH = [];
14239
14417
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH__array = values["http://joinmastodon.org/ns#discoverable"];
14240
- for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array ?? []) {
14241
- if (v == null)
14242
- continue;
14243
- _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
14418
+ if (_gAJzg1QDc4rcefFsUzGSYmyXvNH__array != null) {
14419
+ for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array) {
14420
+ if (v == null)
14421
+ continue;
14422
+ _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
14423
+ }
14244
14424
  }
14245
14425
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH = _gAJzg1QDc4rcefFsUzGSYmyXvNH;
14246
14426
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7 = [];
14247
14427
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array = values["http://joinmastodon.org/ns#suspended"];
14248
- for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array ?? []) {
14249
- if (v == null)
14250
- continue;
14251
- _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
14428
+ if (_2kGKkJtoFWg8c18PaVSqj9NKP4t7__array != null) {
14429
+ for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array) {
14430
+ if (v == null)
14431
+ continue;
14432
+ _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
14433
+ }
14252
14434
  }
14253
14435
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7 = _2kGKkJtoFWg8c18PaVSqj9NKP4t7;
14254
14436
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ = [];
14255
14437
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ__array = values["http://joinmastodon.org/ns#memorial"];
14256
- for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array ?? []) {
14257
- if (v == null)
14258
- continue;
14259
- _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
14438
+ if (_79S8K4f5J9MWUgCxziRyUe6PTHZ__array != null) {
14439
+ for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array) {
14440
+ if (v == null)
14441
+ continue;
14442
+ _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
14443
+ }
14260
14444
  }
14261
14445
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ = _79S8K4f5J9MWUgCxziRyUe6PTHZ;
14262
14446
  const _2diCorzqPGQQqftp6e4SrCEwEnyk = [];
14263
14447
  const _2diCorzqPGQQqftp6e4SrCEwEnyk__array = values["http://joinmastodon.org/ns#indexable"];
14264
- for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array ?? []) {
14265
- if (v == null)
14266
- continue;
14267
- _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
14448
+ if (_2diCorzqPGQQqftp6e4SrCEwEnyk__array != null) {
14449
+ for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array) {
14450
+ if (v == null)
14451
+ continue;
14452
+ _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
14453
+ }
14268
14454
  }
14269
14455
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk = _2diCorzqPGQQqftp6e4SrCEwEnyk;
14270
14456
  return instance;
@@ -15055,140 +15241,156 @@ export class Link {
15055
15241
  const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : undefined }, options);
15056
15242
  const _pVjLsybKQdmkjuU7MHjiVmNnuj7 = [];
15057
15243
  const _pVjLsybKQdmkjuU7MHjiVmNnuj7__array = values["https://www.w3.org/ns/activitystreams#href"];
15058
- for (const v of _pVjLsybKQdmkjuU7MHjiVmNnuj7__array ?? []) {
15059
- if (v == null)
15060
- continue;
15061
- _pVjLsybKQdmkjuU7MHjiVmNnuj7.push(new URL(v["@id"]));
15244
+ if (_pVjLsybKQdmkjuU7MHjiVmNnuj7__array != null) {
15245
+ for (const v of _pVjLsybKQdmkjuU7MHjiVmNnuj7__array) {
15246
+ if (v == null)
15247
+ continue;
15248
+ _pVjLsybKQdmkjuU7MHjiVmNnuj7.push(new URL(v["@id"]));
15249
+ }
15062
15250
  }
15063
15251
  instance.#_pVjLsybKQdmkjuU7MHjiVmNnuj7 = _pVjLsybKQdmkjuU7MHjiVmNnuj7;
15064
15252
  const _2a1c5GkfkQsnyyLybF8UXBQfFuHZ = [];
15065
15253
  const _2a1c5GkfkQsnyyLybF8UXBQfFuHZ__array = values["https://www.w3.org/ns/activitystreams#rel"];
15066
- for (const v of _2a1c5GkfkQsnyyLybF8UXBQfFuHZ__array ?? []) {
15067
- if (v == null)
15068
- continue;
15069
- _2a1c5GkfkQsnyyLybF8UXBQfFuHZ.push(v["@value"]);
15254
+ if (_2a1c5GkfkQsnyyLybF8UXBQfFuHZ__array != null) {
15255
+ for (const v of _2a1c5GkfkQsnyyLybF8UXBQfFuHZ__array) {
15256
+ if (v == null)
15257
+ continue;
15258
+ _2a1c5GkfkQsnyyLybF8UXBQfFuHZ.push(v["@value"]);
15259
+ }
15070
15260
  }
15071
15261
  instance.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ = _2a1c5GkfkQsnyyLybF8UXBQfFuHZ;
15072
15262
  const _3BLrzmscsjHCw8TF5BHRW9WkPnX8 = [];
15073
15263
  const _3BLrzmscsjHCw8TF5BHRW9WkPnX8__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
15074
- for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8__array ?? []) {
15075
- if (v == null)
15076
- continue;
15077
- _3BLrzmscsjHCw8TF5BHRW9WkPnX8.push(v["@value"]);
15264
+ if (_3BLrzmscsjHCw8TF5BHRW9WkPnX8__array != null) {
15265
+ for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8__array) {
15266
+ if (v == null)
15267
+ continue;
15268
+ _3BLrzmscsjHCw8TF5BHRW9WkPnX8.push(v["@value"]);
15269
+ }
15078
15270
  }
15079
15271
  instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8 = _3BLrzmscsjHCw8TF5BHRW9WkPnX8;
15080
15272
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav = [];
15081
15273
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array = values["https://www.w3.org/ns/activitystreams#name"];
15082
- for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array ?? []) {
15083
- if (v == null)
15084
- continue;
15085
- const decoded = typeof v === "object" && "@value" in v &&
15086
- typeof v["@value"] === "string" && !("@language" in v)
15087
- ? v["@value"]
15088
- : typeof v === "object" && "@language" in v && "@value" in v &&
15089
- typeof v["@language"] === "string" &&
15090
- typeof v["@value"] === "string"
15091
- ? new LanguageString(v["@value"], v["@language"])
15092
- : undefined;
15093
- if (typeof decoded === "undefined")
15094
- continue;
15095
- _4ZHbBuK7PrsvGgrjM8wgc6KMWjav.push(decoded);
15274
+ if (_4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array != null) {
15275
+ for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav__array) {
15276
+ if (v == null)
15277
+ continue;
15278
+ const decoded = typeof v === "object" && "@value" in v &&
15279
+ typeof v["@value"] === "string" && !("@language" in v)
15280
+ ? v["@value"]
15281
+ : typeof v === "object" && "@language" in v && "@value" in v &&
15282
+ typeof v["@language"] === "string" &&
15283
+ typeof v["@value"] === "string"
15284
+ ? new LanguageString(v["@value"], v["@language"])
15285
+ : undefined;
15286
+ if (typeof decoded === "undefined")
15287
+ continue;
15288
+ _4ZHbBuK7PrsvGgrjM8wgc6KMWjav.push(decoded);
15289
+ }
15096
15290
  }
15097
15291
  instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav;
15098
15292
  const _f57HKWCp1YRBbTJE8PF12RbDJGf = [];
15099
15293
  const _f57HKWCp1YRBbTJE8PF12RbDJGf__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
15100
- for (const v of _f57HKWCp1YRBbTJE8PF12RbDJGf__array ?? []) {
15101
- if (v == null)
15102
- continue;
15103
- _f57HKWCp1YRBbTJE8PF12RbDJGf.push(parseLanguageTag(v["@value"]));
15294
+ if (_f57HKWCp1YRBbTJE8PF12RbDJGf__array != null) {
15295
+ for (const v of _f57HKWCp1YRBbTJE8PF12RbDJGf__array) {
15296
+ if (v == null)
15297
+ continue;
15298
+ _f57HKWCp1YRBbTJE8PF12RbDJGf.push(parseLanguageTag(v["@value"]));
15299
+ }
15104
15300
  }
15105
15301
  instance.#_f57HKWCp1YRBbTJE8PF12RbDJGf = _f57HKWCp1YRBbTJE8PF12RbDJGf;
15106
15302
  const _2cGKFeFJMmiNpGZFEF75mCwFQsKb = [];
15107
15303
  const _2cGKFeFJMmiNpGZFEF75mCwFQsKb__array = values["https://www.w3.org/ns/activitystreams#height"];
15108
- for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb__array ?? []) {
15109
- if (v == null)
15110
- continue;
15111
- _2cGKFeFJMmiNpGZFEF75mCwFQsKb.push(v["@value"]);
15304
+ if (_2cGKFeFJMmiNpGZFEF75mCwFQsKb__array != null) {
15305
+ for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb__array) {
15306
+ if (v == null)
15307
+ continue;
15308
+ _2cGKFeFJMmiNpGZFEF75mCwFQsKb.push(v["@value"]);
15309
+ }
15112
15310
  }
15113
15311
  instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb = _2cGKFeFJMmiNpGZFEF75mCwFQsKb;
15114
15312
  const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe = [];
15115
15313
  const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array = values["https://www.w3.org/ns/activitystreams#width"];
15116
- for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array ?? []) {
15117
- if (v == null)
15118
- continue;
15119
- _2e9AP7WdHBJYAgXG6GEyq7nSkNMe.push(v["@value"]);
15314
+ if (_2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array != null) {
15315
+ for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe__array) {
15316
+ if (v == null)
15317
+ continue;
15318
+ _2e9AP7WdHBJYAgXG6GEyq7nSkNMe.push(v["@value"]);
15319
+ }
15120
15320
  }
15121
15321
  instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe;
15122
15322
  const _gCVTegXxWWCw6wWRxa1QF65zusg = [];
15123
15323
  const _gCVTegXxWWCw6wWRxa1QF65zusg__array = values["https://www.w3.org/ns/activitystreams#preview"];
15124
- for (const v of _gCVTegXxWWCw6wWRxa1QF65zusg__array ?? []) {
15125
- if (v == null)
15126
- continue;
15127
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
15128
- globalThis.Object.keys(v).length === 1) {
15129
- _gCVTegXxWWCw6wWRxa1QF65zusg.push(new URL(v["@id"]));
15130
- continue;
15131
- }
15132
- const decoded = typeof v === "object" && "@type" in v &&
15133
- Array.isArray(v["@type"]) &&
15134
- [
15135
- "https://www.w3.org/ns/activitystreams#Link",
15136
- "https://www.w3.org/ns/activitystreams#Hashtag",
15137
- "https://www.w3.org/ns/activitystreams#Mention",
15138
- ].some((t) => v["@type"].includes(t))
15139
- ? await _c.fromJsonLd(v, options)
15140
- : typeof v === "object" && "@type" in v &&
15324
+ if (_gCVTegXxWWCw6wWRxa1QF65zusg__array != null) {
15325
+ for (const v of _gCVTegXxWWCw6wWRxa1QF65zusg__array) {
15326
+ if (v == null)
15327
+ continue;
15328
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
15329
+ globalThis.Object.keys(v).length === 1) {
15330
+ _gCVTegXxWWCw6wWRxa1QF65zusg.push(new URL(v["@id"]));
15331
+ continue;
15332
+ }
15333
+ const decoded = typeof v === "object" && "@type" in v &&
15141
15334
  Array.isArray(v["@type"]) &&
15142
15335
  [
15143
- "https://www.w3.org/ns/activitystreams#Object",
15144
- "http://joinmastodon.org/ns#Emoji",
15145
- "https://www.w3.org/ns/activitystreams#Activity",
15146
- "https://www.w3.org/ns/activitystreams#Accept",
15147
- "https://www.w3.org/ns/activitystreams#Add",
15148
- "https://www.w3.org/ns/activitystreams#Announce",
15149
- "https://www.w3.org/ns/activitystreams#Create",
15150
- "https://www.w3.org/ns/activitystreams#Delete",
15151
- "https://www.w3.org/ns/activitystreams#Dislike",
15152
- "https://www.w3.org/ns/activitystreams#Flag",
15153
- "https://www.w3.org/ns/activitystreams#Follow",
15154
- "https://www.w3.org/ns/activitystreams#Ignore",
15155
- "https://www.w3.org/ns/activitystreams#Block",
15156
- "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
15157
- "https://www.w3.org/ns/activitystreams#Arrive",
15158
- "https://www.w3.org/ns/activitystreams#Question",
15159
- "https://www.w3.org/ns/activitystreams#Like",
15160
- "https://www.w3.org/ns/activitystreams#Offer",
15161
- "https://www.w3.org/ns/activitystreams#Reject",
15162
- "https://www.w3.org/ns/activitystreams#Remove",
15163
- "https://www.w3.org/ns/activitystreams#Undo",
15164
- "https://www.w3.org/ns/activitystreams#Update",
15165
- "https://www.w3.org/ns/activitystreams#Application",
15166
- "https://www.w3.org/ns/activitystreams#Article",
15167
- "https://www.w3.org/ns/activitystreams#Collection",
15168
- "https://www.w3.org/ns/activitystreams#CollectionPage",
15169
- "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
15170
- "https://www.w3.org/ns/activitystreams#OrderedCollection",
15171
- "https://www.w3.org/ns/activitystreams#Document",
15172
- "https://www.w3.org/ns/activitystreams#Audio",
15173
- "https://www.w3.org/ns/activitystreams#Image",
15174
- "https://www.w3.org/ns/activitystreams#Page",
15175
- "https://www.w3.org/ns/activitystreams#Video",
15176
- "https://www.w3.org/ns/activitystreams#Event",
15177
- "https://www.w3.org/ns/activitystreams#Group",
15178
- "https://www.w3.org/ns/activitystreams#Note",
15179
- "https://www.w3.org/ns/activitystreams#Organization",
15180
- "https://www.w3.org/ns/activitystreams#Person",
15181
- "https://www.w3.org/ns/activitystreams#Place",
15182
- "https://www.w3.org/ns/activitystreams#Profile",
15183
- "https://www.w3.org/ns/activitystreams#Relationship",
15184
- "https://www.w3.org/ns/activitystreams#Service",
15185
- "https://www.w3.org/ns/activitystreams#Tombstone",
15336
+ "https://www.w3.org/ns/activitystreams#Link",
15337
+ "https://www.w3.org/ns/activitystreams#Hashtag",
15338
+ "https://www.w3.org/ns/activitystreams#Mention",
15186
15339
  ].some((t) => v["@type"].includes(t))
15187
- ? await Object.fromJsonLd(v, options)
15188
- : undefined;
15189
- if (typeof decoded === "undefined")
15190
- continue;
15191
- _gCVTegXxWWCw6wWRxa1QF65zusg.push(decoded);
15340
+ ? await _c.fromJsonLd(v, options)
15341
+ : typeof v === "object" && "@type" in v &&
15342
+ Array.isArray(v["@type"]) &&
15343
+ [
15344
+ "https://www.w3.org/ns/activitystreams#Object",
15345
+ "http://joinmastodon.org/ns#Emoji",
15346
+ "https://www.w3.org/ns/activitystreams#Activity",
15347
+ "https://www.w3.org/ns/activitystreams#Accept",
15348
+ "https://www.w3.org/ns/activitystreams#Add",
15349
+ "https://www.w3.org/ns/activitystreams#Announce",
15350
+ "https://www.w3.org/ns/activitystreams#Create",
15351
+ "https://www.w3.org/ns/activitystreams#Delete",
15352
+ "https://www.w3.org/ns/activitystreams#Dislike",
15353
+ "https://www.w3.org/ns/activitystreams#Flag",
15354
+ "https://www.w3.org/ns/activitystreams#Follow",
15355
+ "https://www.w3.org/ns/activitystreams#Ignore",
15356
+ "https://www.w3.org/ns/activitystreams#Block",
15357
+ "https://www.w3.org/ns/activitystreams#IntransitiveActivity",
15358
+ "https://www.w3.org/ns/activitystreams#Arrive",
15359
+ "https://www.w3.org/ns/activitystreams#Question",
15360
+ "https://www.w3.org/ns/activitystreams#Like",
15361
+ "https://www.w3.org/ns/activitystreams#Offer",
15362
+ "https://www.w3.org/ns/activitystreams#Reject",
15363
+ "https://www.w3.org/ns/activitystreams#Remove",
15364
+ "https://www.w3.org/ns/activitystreams#Undo",
15365
+ "https://www.w3.org/ns/activitystreams#Update",
15366
+ "https://www.w3.org/ns/activitystreams#Application",
15367
+ "https://www.w3.org/ns/activitystreams#Article",
15368
+ "https://www.w3.org/ns/activitystreams#Collection",
15369
+ "https://www.w3.org/ns/activitystreams#CollectionPage",
15370
+ "https://www.w3.org/ns/activitystreams#OrderedCollectionPage",
15371
+ "https://www.w3.org/ns/activitystreams#OrderedCollection",
15372
+ "https://www.w3.org/ns/activitystreams#Document",
15373
+ "https://www.w3.org/ns/activitystreams#Audio",
15374
+ "https://www.w3.org/ns/activitystreams#Image",
15375
+ "https://www.w3.org/ns/activitystreams#Page",
15376
+ "https://www.w3.org/ns/activitystreams#Video",
15377
+ "https://www.w3.org/ns/activitystreams#Event",
15378
+ "https://www.w3.org/ns/activitystreams#Group",
15379
+ "https://www.w3.org/ns/activitystreams#Note",
15380
+ "https://www.w3.org/ns/activitystreams#Organization",
15381
+ "https://www.w3.org/ns/activitystreams#Person",
15382
+ "https://www.w3.org/ns/activitystreams#Place",
15383
+ "https://www.w3.org/ns/activitystreams#Profile",
15384
+ "https://www.w3.org/ns/activitystreams#Relationship",
15385
+ "https://www.w3.org/ns/activitystreams#Service",
15386
+ "https://www.w3.org/ns/activitystreams#Tombstone",
15387
+ ].some((t) => v["@type"].includes(t))
15388
+ ? await Object.fromJsonLd(v, options)
15389
+ : undefined;
15390
+ if (typeof decoded === "undefined")
15391
+ continue;
15392
+ _gCVTegXxWWCw6wWRxa1QF65zusg.push(decoded);
15393
+ }
15192
15394
  }
15193
15395
  instance.#_gCVTegXxWWCw6wWRxa1QF65zusg = _gCVTegXxWWCw6wWRxa1QF65zusg;
15194
15396
  return instance;
@@ -16158,8 +16360,16 @@ export class OrderedCollection extends Collection {
16158
16360
  throw new TypeError("Unexpected type: " + instance.constructor.name);
16159
16361
  }
16160
16362
  const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = [];
16161
- const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array = values["https://www.w3.org/ns/activitystreams#items"];
16162
- for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array ?? []) {
16363
+ let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array = values["https://www.w3.org/ns/activitystreams#items"];
16364
+ if (_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array == null) {
16365
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array = [];
16366
+ }
16367
+ else if (_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array.length === 1 &&
16368
+ "@list" in _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array[0]) {
16369
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array =
16370
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array[0]["@list"];
16371
+ }
16372
+ for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg__array) {
16163
16373
  if (v == null)
16164
16374
  continue;
16165
16375
  if (typeof v === "object" && "@id" in v && !("@type" in v) &&
@@ -16338,10 +16548,12 @@ export class OrderedCollectionPage extends CollectionPage {
16338
16548
  }
16339
16549
  const _2W4yinFwqmpneu2h4m1mZ3pcLADd = [];
16340
16550
  const _2W4yinFwqmpneu2h4m1mZ3pcLADd__array = values["https://www.w3.org/ns/activitystreams#startIndex"];
16341
- for (const v of _2W4yinFwqmpneu2h4m1mZ3pcLADd__array ?? []) {
16342
- if (v == null)
16343
- continue;
16344
- _2W4yinFwqmpneu2h4m1mZ3pcLADd.push(v["@value"]);
16551
+ if (_2W4yinFwqmpneu2h4m1mZ3pcLADd__array != null) {
16552
+ for (const v of _2W4yinFwqmpneu2h4m1mZ3pcLADd__array) {
16553
+ if (v == null)
16554
+ continue;
16555
+ _2W4yinFwqmpneu2h4m1mZ3pcLADd.push(v["@value"]);
16556
+ }
16345
16557
  }
16346
16558
  instance.#_2W4yinFwqmpneu2h4m1mZ3pcLADd = _2W4yinFwqmpneu2h4m1mZ3pcLADd;
16347
16559
  return instance;
@@ -17753,185 +17965,217 @@ export class Organization extends Object {
17753
17965
  }
17754
17966
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf = [];
17755
17967
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
17756
- for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array ?? []) {
17757
- if (v == null)
17758
- continue;
17759
- const decoded = typeof v === "object" && "@value" in v &&
17760
- typeof v["@value"] === "string" && !("@language" in v)
17761
- ? v["@value"]
17762
- : typeof v === "object" && "@language" in v && "@value" in v &&
17763
- typeof v["@language"] === "string" &&
17764
- typeof v["@value"] === "string"
17765
- ? new LanguageString(v["@value"], v["@language"])
17766
- : undefined;
17767
- if (typeof decoded === "undefined")
17768
- continue;
17769
- _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
17968
+ if (_3isuDgRAKSntq9XdbjiNxjwyPZAf__array != null) {
17969
+ for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array) {
17970
+ if (v == null)
17971
+ continue;
17972
+ const decoded = typeof v === "object" && "@value" in v &&
17973
+ typeof v["@value"] === "string" && !("@language" in v)
17974
+ ? v["@value"]
17975
+ : typeof v === "object" && "@language" in v && "@value" in v &&
17976
+ typeof v["@language"] === "string" &&
17977
+ typeof v["@value"] === "string"
17978
+ ? new LanguageString(v["@value"], v["@language"])
17979
+ : undefined;
17980
+ if (typeof decoded === "undefined")
17981
+ continue;
17982
+ _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
17983
+ }
17770
17984
  }
17771
17985
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf = _3isuDgRAKSntq9XdbjiNxjwyPZAf;
17772
17986
  const _axq166E2eZADq34V4MYUc8KMZdC = [];
17773
17987
  const _axq166E2eZADq34V4MYUc8KMZdC__array = values["https://w3id.org/security#publicKey"];
17774
- for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array ?? []) {
17775
- if (v == null)
17776
- continue;
17777
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17778
- globalThis.Object.keys(v).length === 1) {
17779
- _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
17780
- continue;
17988
+ if (_axq166E2eZADq34V4MYUc8KMZdC__array != null) {
17989
+ for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array) {
17990
+ if (v == null)
17991
+ continue;
17992
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17993
+ globalThis.Object.keys(v).length === 1) {
17994
+ _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
17995
+ continue;
17996
+ }
17997
+ _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
17781
17998
  }
17782
- _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
17783
17999
  }
17784
18000
  instance.#_axq166E2eZADq34V4MYUc8KMZdC = _axq166E2eZADq34V4MYUc8KMZdC;
17785
18001
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3 = [];
17786
18002
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array = values["https://w3id.org/security#assertionMethod"];
17787
- for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array ?? []) {
17788
- if (v == null)
17789
- continue;
17790
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17791
- globalThis.Object.keys(v).length === 1) {
17792
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
17793
- continue;
18003
+ if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3__array != null) {
18004
+ for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array) {
18005
+ if (v == null)
18006
+ continue;
18007
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18008
+ globalThis.Object.keys(v).length === 1) {
18009
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
18010
+ continue;
18011
+ }
18012
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
17794
18013
  }
17795
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
17796
18014
  }
17797
18015
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3 = _4EHQFWZSz1k1d4LmPrQiMba2GbP3;
17798
18016
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA = [];
17799
18017
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
17800
- for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array ?? []) {
17801
- if (v == null)
17802
- continue;
17803
- _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
18018
+ if (_36QNc9MxfkKf6h8sEUQSHnV9NZA__array != null) {
18019
+ for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array) {
18020
+ if (v == null)
18021
+ continue;
18022
+ _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
18023
+ }
17804
18024
  }
17805
18025
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA = _36QNc9MxfkKf6h8sEUQSHnV9NZA;
17806
18026
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB = [];
17807
18027
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array = values["http://www.w3.org/ns/ldp#inbox"];
17808
- for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array ?? []) {
17809
- if (v == null)
17810
- continue;
17811
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17812
- globalThis.Object.keys(v).length === 1) {
17813
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
17814
- continue;
18028
+ if (_3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array != null) {
18029
+ for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array) {
18030
+ if (v == null)
18031
+ continue;
18032
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18033
+ globalThis.Object.keys(v).length === 1) {
18034
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
18035
+ continue;
18036
+ }
18037
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
17815
18038
  }
17816
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
17817
18039
  }
17818
18040
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB;
17819
18041
  const _41QwhqJouoLg3h8dRPKat21brynC = [];
17820
18042
  const _41QwhqJouoLg3h8dRPKat21brynC__array = values["https://www.w3.org/ns/activitystreams#outbox"];
17821
- for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array ?? []) {
17822
- if (v == null)
17823
- continue;
17824
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17825
- globalThis.Object.keys(v).length === 1) {
17826
- _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
17827
- continue;
18043
+ if (_41QwhqJouoLg3h8dRPKat21brynC__array != null) {
18044
+ for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array) {
18045
+ if (v == null)
18046
+ continue;
18047
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18048
+ globalThis.Object.keys(v).length === 1) {
18049
+ _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
18050
+ continue;
18051
+ }
18052
+ _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
17828
18053
  }
17829
- _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
17830
18054
  }
17831
18055
  instance.#_41QwhqJouoLg3h8dRPKat21brynC = _41QwhqJouoLg3h8dRPKat21brynC;
17832
18056
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee = [];
17833
18057
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array = values["https://www.w3.org/ns/activitystreams#following"];
17834
- for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array ?? []) {
17835
- if (v == null)
17836
- continue;
17837
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17838
- globalThis.Object.keys(v).length === 1) {
17839
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
17840
- continue;
18058
+ if (_3yAv8jymNfNuJUDuBzJ1NQhdbAee__array != null) {
18059
+ for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array) {
18060
+ if (v == null)
18061
+ continue;
18062
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18063
+ globalThis.Object.keys(v).length === 1) {
18064
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
18065
+ continue;
18066
+ }
18067
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
17841
18068
  }
17842
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
17843
18069
  }
17844
18070
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee = _3yAv8jymNfNuJUDuBzJ1NQhdbAee;
17845
18071
  const _BBCTgfphhsFzpVfKTykGSpBNwoA = [];
17846
18072
  const _BBCTgfphhsFzpVfKTykGSpBNwoA__array = values["https://www.w3.org/ns/activitystreams#followers"];
17847
- for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array ?? []) {
17848
- if (v == null)
17849
- continue;
17850
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17851
- globalThis.Object.keys(v).length === 1) {
17852
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
17853
- continue;
18073
+ if (_BBCTgfphhsFzpVfKTykGSpBNwoA__array != null) {
18074
+ for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array) {
18075
+ if (v == null)
18076
+ continue;
18077
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18078
+ globalThis.Object.keys(v).length === 1) {
18079
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
18080
+ continue;
18081
+ }
18082
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
17854
18083
  }
17855
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
17856
18084
  }
17857
18085
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA = _BBCTgfphhsFzpVfKTykGSpBNwoA;
17858
18086
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU = [];
17859
18087
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU__array = values["https://www.w3.org/ns/activitystreams#liked"];
17860
- for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array ?? []) {
17861
- if (v == null)
17862
- continue;
17863
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17864
- globalThis.Object.keys(v).length === 1) {
17865
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
17866
- continue;
18088
+ if (_3bgkPwJanyTCoVFM9ovRcus8tKkU__array != null) {
18089
+ for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array) {
18090
+ if (v == null)
18091
+ continue;
18092
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18093
+ globalThis.Object.keys(v).length === 1) {
18094
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
18095
+ continue;
18096
+ }
18097
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
17867
18098
  }
17868
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
17869
18099
  }
17870
18100
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = _3bgkPwJanyTCoVFM9ovRcus8tKkU;
17871
18101
  const _4N1vBJzXDf8NbBumeECQMFvKetja = [];
17872
18102
  const _4N1vBJzXDf8NbBumeECQMFvKetja__array = values["http://joinmastodon.org/ns#featured"];
17873
- for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array ?? []) {
17874
- if (v == null)
17875
- continue;
17876
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17877
- globalThis.Object.keys(v).length === 1) {
17878
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
17879
- continue;
18103
+ if (_4N1vBJzXDf8NbBumeECQMFvKetja__array != null) {
18104
+ for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array) {
18105
+ if (v == null)
18106
+ continue;
18107
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18108
+ globalThis.Object.keys(v).length === 1) {
18109
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
18110
+ continue;
18111
+ }
18112
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
17880
18113
  }
17881
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
17882
18114
  }
17883
18115
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja = _4N1vBJzXDf8NbBumeECQMFvKetja;
17884
18116
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = [];
17885
18117
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array = values["https://www.w3.org/ns/activitystreams#streams"];
17886
- for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array ?? []) {
17887
- if (v == null)
17888
- continue;
17889
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
17890
- globalThis.Object.keys(v).length === 1) {
17891
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
17892
- continue;
18118
+ if (_3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array != null) {
18119
+ for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array) {
18120
+ if (v == null)
18121
+ continue;
18122
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
18123
+ globalThis.Object.keys(v).length === 1) {
18124
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
18125
+ continue;
18126
+ }
18127
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
17893
18128
  }
17894
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
17895
18129
  }
17896
18130
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9;
17897
18131
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG = [];
17898
18132
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
17899
- for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array ?? []) {
17900
- if (v == null)
17901
- continue;
17902
- _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
18133
+ if (_sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array != null) {
18134
+ for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array) {
18135
+ if (v == null)
18136
+ continue;
18137
+ _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
18138
+ }
17903
18139
  }
17904
18140
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG;
17905
18141
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH = [];
17906
18142
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH__array = values["http://joinmastodon.org/ns#discoverable"];
17907
- for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array ?? []) {
17908
- if (v == null)
17909
- continue;
17910
- _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
18143
+ if (_gAJzg1QDc4rcefFsUzGSYmyXvNH__array != null) {
18144
+ for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array) {
18145
+ if (v == null)
18146
+ continue;
18147
+ _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
18148
+ }
17911
18149
  }
17912
18150
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH = _gAJzg1QDc4rcefFsUzGSYmyXvNH;
17913
18151
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7 = [];
17914
18152
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array = values["http://joinmastodon.org/ns#suspended"];
17915
- for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array ?? []) {
17916
- if (v == null)
17917
- continue;
17918
- _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
18153
+ if (_2kGKkJtoFWg8c18PaVSqj9NKP4t7__array != null) {
18154
+ for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array) {
18155
+ if (v == null)
18156
+ continue;
18157
+ _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
18158
+ }
17919
18159
  }
17920
18160
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7 = _2kGKkJtoFWg8c18PaVSqj9NKP4t7;
17921
18161
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ = [];
17922
18162
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ__array = values["http://joinmastodon.org/ns#memorial"];
17923
- for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array ?? []) {
17924
- if (v == null)
17925
- continue;
17926
- _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
18163
+ if (_79S8K4f5J9MWUgCxziRyUe6PTHZ__array != null) {
18164
+ for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array) {
18165
+ if (v == null)
18166
+ continue;
18167
+ _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
18168
+ }
17927
18169
  }
17928
18170
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ = _79S8K4f5J9MWUgCxziRyUe6PTHZ;
17929
18171
  const _2diCorzqPGQQqftp6e4SrCEwEnyk = [];
17930
18172
  const _2diCorzqPGQQqftp6e4SrCEwEnyk__array = values["http://joinmastodon.org/ns#indexable"];
17931
- for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array ?? []) {
17932
- if (v == null)
17933
- continue;
17934
- _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
18173
+ if (_2diCorzqPGQQqftp6e4SrCEwEnyk__array != null) {
18174
+ for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array) {
18175
+ if (v == null)
18176
+ continue;
18177
+ _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
18178
+ }
17935
18179
  }
17936
18180
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk = _2diCorzqPGQQqftp6e4SrCEwEnyk;
17937
18181
  return instance;
@@ -19635,185 +19879,217 @@ export class Person extends Object {
19635
19879
  }
19636
19880
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf = [];
19637
19881
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
19638
- for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array ?? []) {
19639
- if (v == null)
19640
- continue;
19641
- const decoded = typeof v === "object" && "@value" in v &&
19642
- typeof v["@value"] === "string" && !("@language" in v)
19643
- ? v["@value"]
19644
- : typeof v === "object" && "@language" in v && "@value" in v &&
19645
- typeof v["@language"] === "string" &&
19646
- typeof v["@value"] === "string"
19647
- ? new LanguageString(v["@value"], v["@language"])
19648
- : undefined;
19649
- if (typeof decoded === "undefined")
19650
- continue;
19651
- _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
19882
+ if (_3isuDgRAKSntq9XdbjiNxjwyPZAf__array != null) {
19883
+ for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array) {
19884
+ if (v == null)
19885
+ continue;
19886
+ const decoded = typeof v === "object" && "@value" in v &&
19887
+ typeof v["@value"] === "string" && !("@language" in v)
19888
+ ? v["@value"]
19889
+ : typeof v === "object" && "@language" in v && "@value" in v &&
19890
+ typeof v["@language"] === "string" &&
19891
+ typeof v["@value"] === "string"
19892
+ ? new LanguageString(v["@value"], v["@language"])
19893
+ : undefined;
19894
+ if (typeof decoded === "undefined")
19895
+ continue;
19896
+ _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
19897
+ }
19652
19898
  }
19653
19899
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf = _3isuDgRAKSntq9XdbjiNxjwyPZAf;
19654
19900
  const _axq166E2eZADq34V4MYUc8KMZdC = [];
19655
19901
  const _axq166E2eZADq34V4MYUc8KMZdC__array = values["https://w3id.org/security#publicKey"];
19656
- for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array ?? []) {
19657
- if (v == null)
19658
- continue;
19659
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19660
- globalThis.Object.keys(v).length === 1) {
19661
- _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
19662
- continue;
19902
+ if (_axq166E2eZADq34V4MYUc8KMZdC__array != null) {
19903
+ for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array) {
19904
+ if (v == null)
19905
+ continue;
19906
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19907
+ globalThis.Object.keys(v).length === 1) {
19908
+ _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
19909
+ continue;
19910
+ }
19911
+ _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
19663
19912
  }
19664
- _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
19665
19913
  }
19666
19914
  instance.#_axq166E2eZADq34V4MYUc8KMZdC = _axq166E2eZADq34V4MYUc8KMZdC;
19667
19915
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3 = [];
19668
19916
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array = values["https://w3id.org/security#assertionMethod"];
19669
- for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array ?? []) {
19670
- if (v == null)
19671
- continue;
19672
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19673
- globalThis.Object.keys(v).length === 1) {
19674
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
19675
- continue;
19917
+ if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3__array != null) {
19918
+ for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array) {
19919
+ if (v == null)
19920
+ continue;
19921
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19922
+ globalThis.Object.keys(v).length === 1) {
19923
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
19924
+ continue;
19925
+ }
19926
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
19676
19927
  }
19677
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
19678
19928
  }
19679
19929
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3 = _4EHQFWZSz1k1d4LmPrQiMba2GbP3;
19680
19930
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA = [];
19681
19931
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
19682
- for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array ?? []) {
19683
- if (v == null)
19684
- continue;
19685
- _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
19932
+ if (_36QNc9MxfkKf6h8sEUQSHnV9NZA__array != null) {
19933
+ for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array) {
19934
+ if (v == null)
19935
+ continue;
19936
+ _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
19937
+ }
19686
19938
  }
19687
19939
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA = _36QNc9MxfkKf6h8sEUQSHnV9NZA;
19688
19940
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB = [];
19689
19941
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array = values["http://www.w3.org/ns/ldp#inbox"];
19690
- for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array ?? []) {
19691
- if (v == null)
19692
- continue;
19693
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19694
- globalThis.Object.keys(v).length === 1) {
19695
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
19696
- continue;
19942
+ if (_3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array != null) {
19943
+ for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array) {
19944
+ if (v == null)
19945
+ continue;
19946
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19947
+ globalThis.Object.keys(v).length === 1) {
19948
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
19949
+ continue;
19950
+ }
19951
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
19697
19952
  }
19698
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
19699
19953
  }
19700
19954
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB;
19701
19955
  const _41QwhqJouoLg3h8dRPKat21brynC = [];
19702
19956
  const _41QwhqJouoLg3h8dRPKat21brynC__array = values["https://www.w3.org/ns/activitystreams#outbox"];
19703
- for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array ?? []) {
19704
- if (v == null)
19705
- continue;
19706
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19707
- globalThis.Object.keys(v).length === 1) {
19708
- _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
19709
- continue;
19957
+ if (_41QwhqJouoLg3h8dRPKat21brynC__array != null) {
19958
+ for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array) {
19959
+ if (v == null)
19960
+ continue;
19961
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19962
+ globalThis.Object.keys(v).length === 1) {
19963
+ _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
19964
+ continue;
19965
+ }
19966
+ _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
19710
19967
  }
19711
- _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
19712
19968
  }
19713
19969
  instance.#_41QwhqJouoLg3h8dRPKat21brynC = _41QwhqJouoLg3h8dRPKat21brynC;
19714
19970
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee = [];
19715
19971
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array = values["https://www.w3.org/ns/activitystreams#following"];
19716
- for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array ?? []) {
19717
- if (v == null)
19718
- continue;
19719
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19720
- globalThis.Object.keys(v).length === 1) {
19721
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
19722
- continue;
19972
+ if (_3yAv8jymNfNuJUDuBzJ1NQhdbAee__array != null) {
19973
+ for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array) {
19974
+ if (v == null)
19975
+ continue;
19976
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19977
+ globalThis.Object.keys(v).length === 1) {
19978
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
19979
+ continue;
19980
+ }
19981
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
19723
19982
  }
19724
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
19725
19983
  }
19726
19984
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee = _3yAv8jymNfNuJUDuBzJ1NQhdbAee;
19727
19985
  const _BBCTgfphhsFzpVfKTykGSpBNwoA = [];
19728
19986
  const _BBCTgfphhsFzpVfKTykGSpBNwoA__array = values["https://www.w3.org/ns/activitystreams#followers"];
19729
- for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array ?? []) {
19730
- if (v == null)
19731
- continue;
19732
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19733
- globalThis.Object.keys(v).length === 1) {
19734
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
19735
- continue;
19987
+ if (_BBCTgfphhsFzpVfKTykGSpBNwoA__array != null) {
19988
+ for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array) {
19989
+ if (v == null)
19990
+ continue;
19991
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19992
+ globalThis.Object.keys(v).length === 1) {
19993
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
19994
+ continue;
19995
+ }
19996
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
19736
19997
  }
19737
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
19738
19998
  }
19739
19999
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA = _BBCTgfphhsFzpVfKTykGSpBNwoA;
19740
20000
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU = [];
19741
20001
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU__array = values["https://www.w3.org/ns/activitystreams#liked"];
19742
- for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array ?? []) {
19743
- if (v == null)
19744
- continue;
19745
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19746
- globalThis.Object.keys(v).length === 1) {
19747
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
19748
- continue;
20002
+ if (_3bgkPwJanyTCoVFM9ovRcus8tKkU__array != null) {
20003
+ for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array) {
20004
+ if (v == null)
20005
+ continue;
20006
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
20007
+ globalThis.Object.keys(v).length === 1) {
20008
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
20009
+ continue;
20010
+ }
20011
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
19749
20012
  }
19750
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
19751
20013
  }
19752
20014
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = _3bgkPwJanyTCoVFM9ovRcus8tKkU;
19753
20015
  const _4N1vBJzXDf8NbBumeECQMFvKetja = [];
19754
20016
  const _4N1vBJzXDf8NbBumeECQMFvKetja__array = values["http://joinmastodon.org/ns#featured"];
19755
- for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array ?? []) {
19756
- if (v == null)
19757
- continue;
19758
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19759
- globalThis.Object.keys(v).length === 1) {
19760
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
19761
- continue;
20017
+ if (_4N1vBJzXDf8NbBumeECQMFvKetja__array != null) {
20018
+ for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array) {
20019
+ if (v == null)
20020
+ continue;
20021
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
20022
+ globalThis.Object.keys(v).length === 1) {
20023
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
20024
+ continue;
20025
+ }
20026
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
19762
20027
  }
19763
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
19764
20028
  }
19765
20029
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja = _4N1vBJzXDf8NbBumeECQMFvKetja;
19766
20030
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = [];
19767
20031
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array = values["https://www.w3.org/ns/activitystreams#streams"];
19768
- for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array ?? []) {
19769
- if (v == null)
19770
- continue;
19771
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
19772
- globalThis.Object.keys(v).length === 1) {
19773
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
19774
- continue;
20032
+ if (_3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array != null) {
20033
+ for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array) {
20034
+ if (v == null)
20035
+ continue;
20036
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
20037
+ globalThis.Object.keys(v).length === 1) {
20038
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
20039
+ continue;
20040
+ }
20041
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
19775
20042
  }
19776
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
19777
20043
  }
19778
20044
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9;
19779
20045
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG = [];
19780
20046
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
19781
- for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array ?? []) {
19782
- if (v == null)
19783
- continue;
19784
- _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
20047
+ if (_sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array != null) {
20048
+ for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array) {
20049
+ if (v == null)
20050
+ continue;
20051
+ _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
20052
+ }
19785
20053
  }
19786
20054
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG;
19787
20055
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH = [];
19788
20056
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH__array = values["http://joinmastodon.org/ns#discoverable"];
19789
- for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array ?? []) {
19790
- if (v == null)
19791
- continue;
19792
- _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
20057
+ if (_gAJzg1QDc4rcefFsUzGSYmyXvNH__array != null) {
20058
+ for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array) {
20059
+ if (v == null)
20060
+ continue;
20061
+ _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
20062
+ }
19793
20063
  }
19794
20064
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH = _gAJzg1QDc4rcefFsUzGSYmyXvNH;
19795
20065
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7 = [];
19796
20066
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array = values["http://joinmastodon.org/ns#suspended"];
19797
- for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array ?? []) {
19798
- if (v == null)
19799
- continue;
19800
- _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
20067
+ if (_2kGKkJtoFWg8c18PaVSqj9NKP4t7__array != null) {
20068
+ for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array) {
20069
+ if (v == null)
20070
+ continue;
20071
+ _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
20072
+ }
19801
20073
  }
19802
20074
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7 = _2kGKkJtoFWg8c18PaVSqj9NKP4t7;
19803
20075
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ = [];
19804
20076
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ__array = values["http://joinmastodon.org/ns#memorial"];
19805
- for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array ?? []) {
19806
- if (v == null)
19807
- continue;
19808
- _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
20077
+ if (_79S8K4f5J9MWUgCxziRyUe6PTHZ__array != null) {
20078
+ for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array) {
20079
+ if (v == null)
20080
+ continue;
20081
+ _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
20082
+ }
19809
20083
  }
19810
20084
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ = _79S8K4f5J9MWUgCxziRyUe6PTHZ;
19811
20085
  const _2diCorzqPGQQqftp6e4SrCEwEnyk = [];
19812
20086
  const _2diCorzqPGQQqftp6e4SrCEwEnyk__array = values["http://joinmastodon.org/ns#indexable"];
19813
- for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array ?? []) {
19814
- if (v == null)
19815
- continue;
19816
- _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
20087
+ if (_2diCorzqPGQQqftp6e4SrCEwEnyk__array != null) {
20088
+ for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array) {
20089
+ if (v == null)
20090
+ continue;
20091
+ _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
20092
+ }
19817
20093
  }
19818
20094
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk = _2diCorzqPGQQqftp6e4SrCEwEnyk;
19819
20095
  return instance;
@@ -20377,61 +20653,73 @@ export class Place extends Object {
20377
20653
  }
20378
20654
  const _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne = [];
20379
20655
  const _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne__array = values["https://www.w3.org/ns/activitystreams#accuracy"];
20380
- for (const v of _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne__array ?? []) {
20381
- if (v == null)
20382
- continue;
20383
- _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne.push(v["@value"]);
20656
+ if (_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne__array != null) {
20657
+ for (const v of _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne__array) {
20658
+ if (v == null)
20659
+ continue;
20660
+ _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne.push(v["@value"]);
20661
+ }
20384
20662
  }
20385
20663
  instance.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne = _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne;
20386
20664
  const _3Q6KDcFQUJRRaBux1BL2yp5QWiBi = [];
20387
20665
  const _3Q6KDcFQUJRRaBux1BL2yp5QWiBi__array = values["https://www.w3.org/ns/activitystreams#altitude"];
20388
- for (const v of _3Q6KDcFQUJRRaBux1BL2yp5QWiBi__array ?? []) {
20389
- if (v == null)
20390
- continue;
20391
- _3Q6KDcFQUJRRaBux1BL2yp5QWiBi.push(v["@value"]);
20666
+ if (_3Q6KDcFQUJRRaBux1BL2yp5QWiBi__array != null) {
20667
+ for (const v of _3Q6KDcFQUJRRaBux1BL2yp5QWiBi__array) {
20668
+ if (v == null)
20669
+ continue;
20670
+ _3Q6KDcFQUJRRaBux1BL2yp5QWiBi.push(v["@value"]);
20671
+ }
20392
20672
  }
20393
20673
  instance.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi = _3Q6KDcFQUJRRaBux1BL2yp5QWiBi;
20394
20674
  const _3g85RoKRnaNjP7DFyLSvsWDg7HGM = [];
20395
20675
  const _3g85RoKRnaNjP7DFyLSvsWDg7HGM__array = values["https://www.w3.org/ns/activitystreams#latitude"];
20396
- for (const v of _3g85RoKRnaNjP7DFyLSvsWDg7HGM__array ?? []) {
20397
- if (v == null)
20398
- continue;
20399
- _3g85RoKRnaNjP7DFyLSvsWDg7HGM.push(v["@value"]);
20676
+ if (_3g85RoKRnaNjP7DFyLSvsWDg7HGM__array != null) {
20677
+ for (const v of _3g85RoKRnaNjP7DFyLSvsWDg7HGM__array) {
20678
+ if (v == null)
20679
+ continue;
20680
+ _3g85RoKRnaNjP7DFyLSvsWDg7HGM.push(v["@value"]);
20681
+ }
20400
20682
  }
20401
20683
  instance.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM = _3g85RoKRnaNjP7DFyLSvsWDg7HGM;
20402
20684
  const _B2GEYdS9yBAF3ho1pm1rcRg7cSf = [];
20403
20685
  const _B2GEYdS9yBAF3ho1pm1rcRg7cSf__array = values["https://www.w3.org/ns/activitystreams#longitude"];
20404
- for (const v of _B2GEYdS9yBAF3ho1pm1rcRg7cSf__array ?? []) {
20405
- if (v == null)
20406
- continue;
20407
- _B2GEYdS9yBAF3ho1pm1rcRg7cSf.push(v["@value"]);
20686
+ if (_B2GEYdS9yBAF3ho1pm1rcRg7cSf__array != null) {
20687
+ for (const v of _B2GEYdS9yBAF3ho1pm1rcRg7cSf__array) {
20688
+ if (v == null)
20689
+ continue;
20690
+ _B2GEYdS9yBAF3ho1pm1rcRg7cSf.push(v["@value"]);
20691
+ }
20408
20692
  }
20409
20693
  instance.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf = _B2GEYdS9yBAF3ho1pm1rcRg7cSf;
20410
20694
  const _3ga86BKHUtRkGx5PHBjRiUXXzwnw = [];
20411
20695
  const _3ga86BKHUtRkGx5PHBjRiUXXzwnw__array = values["https://www.w3.org/ns/activitystreams#radius"];
20412
- for (const v of _3ga86BKHUtRkGx5PHBjRiUXXzwnw__array ?? []) {
20413
- if (v == null)
20414
- continue;
20415
- _3ga86BKHUtRkGx5PHBjRiUXXzwnw.push(v["@value"]);
20696
+ if (_3ga86BKHUtRkGx5PHBjRiUXXzwnw__array != null) {
20697
+ for (const v of _3ga86BKHUtRkGx5PHBjRiUXXzwnw__array) {
20698
+ if (v == null)
20699
+ continue;
20700
+ _3ga86BKHUtRkGx5PHBjRiUXXzwnw.push(v["@value"]);
20701
+ }
20416
20702
  }
20417
20703
  instance.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw = _3ga86BKHUtRkGx5PHBjRiUXXzwnw;
20418
20704
  const _oKrwxU4V8wiKhMW1QEYQibcJh8c = [];
20419
20705
  const _oKrwxU4V8wiKhMW1QEYQibcJh8c__array = values["https://www.w3.org/ns/activitystreams#units"];
20420
- for (const v of _oKrwxU4V8wiKhMW1QEYQibcJh8c__array ?? []) {
20421
- if (v == null)
20422
- continue;
20423
- const decoded = typeof v === "object" && "@value" in v &&
20424
- (v["@value"] == "cm" || v["@value"] == "feet" ||
20425
- v["@value"] == "inches" || v["@value"] == "km" ||
20426
- v["@value"] == "m" || v["@value"] == "miles")
20427
- ? v["@value"]
20428
- : typeof v === "object" && "@id" in v &&
20429
- typeof v["@id"] === "string"
20430
- ? new URL(v["@id"])
20431
- : undefined;
20432
- if (typeof decoded === "undefined")
20433
- continue;
20434
- _oKrwxU4V8wiKhMW1QEYQibcJh8c.push(decoded);
20706
+ if (_oKrwxU4V8wiKhMW1QEYQibcJh8c__array != null) {
20707
+ for (const v of _oKrwxU4V8wiKhMW1QEYQibcJh8c__array) {
20708
+ if (v == null)
20709
+ continue;
20710
+ const decoded = typeof v === "object" && "@value" in v &&
20711
+ (v["@value"] == "cm" || v["@value"] == "feet" ||
20712
+ v["@value"] == "inches" || v["@value"] == "km" ||
20713
+ v["@value"] == "m" || v["@value"] == "miles")
20714
+ ? v["@value"]
20715
+ : typeof v === "object" && "@id" in v &&
20716
+ typeof v["@id"] === "string"
20717
+ ? new URL(v["@id"])
20718
+ : undefined;
20719
+ if (typeof decoded === "undefined")
20720
+ continue;
20721
+ _oKrwxU4V8wiKhMW1QEYQibcJh8c.push(decoded);
20722
+ }
20435
20723
  }
20436
20724
  instance.#_oKrwxU4V8wiKhMW1QEYQibcJh8c = _oKrwxU4V8wiKhMW1QEYQibcJh8c;
20437
20725
  return instance;
@@ -20704,15 +20992,17 @@ export class Profile extends Object {
20704
20992
  }
20705
20993
  const _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1 = [];
20706
20994
  const _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1__array = values["https://www.w3.org/ns/activitystreams#describes"];
20707
- for (const v of _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1__array ?? []) {
20708
- if (v == null)
20709
- continue;
20710
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
20711
- globalThis.Object.keys(v).length === 1) {
20712
- _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1.push(new URL(v["@id"]));
20713
- continue;
20995
+ if (_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1__array != null) {
20996
+ for (const v of _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1__array) {
20997
+ if (v == null)
20998
+ continue;
20999
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21000
+ globalThis.Object.keys(v).length === 1) {
21001
+ _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1.push(new URL(v["@id"]));
21002
+ continue;
21003
+ }
21004
+ _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1.push(await Object.fromJsonLd(v, options));
20714
21005
  }
20715
- _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1.push(await Object.fromJsonLd(v, options));
20716
21006
  }
20717
21007
  instance.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1 = _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1;
20718
21008
  return instance;
@@ -21026,28 +21316,32 @@ export class Question extends IntransitiveActivity {
21026
21316
  }
21027
21317
  const _2N5scKaVEcdYHFmfKYYacAwUhUgQ = [];
21028
21318
  const _2N5scKaVEcdYHFmfKYYacAwUhUgQ__array = values["https://www.w3.org/ns/activitystreams#oneOf"];
21029
- for (const v of _2N5scKaVEcdYHFmfKYYacAwUhUgQ__array ?? []) {
21030
- if (v == null)
21031
- continue;
21032
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21033
- globalThis.Object.keys(v).length === 1) {
21034
- _2N5scKaVEcdYHFmfKYYacAwUhUgQ.push(new URL(v["@id"]));
21035
- continue;
21319
+ if (_2N5scKaVEcdYHFmfKYYacAwUhUgQ__array != null) {
21320
+ for (const v of _2N5scKaVEcdYHFmfKYYacAwUhUgQ__array) {
21321
+ if (v == null)
21322
+ continue;
21323
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21324
+ globalThis.Object.keys(v).length === 1) {
21325
+ _2N5scKaVEcdYHFmfKYYacAwUhUgQ.push(new URL(v["@id"]));
21326
+ continue;
21327
+ }
21328
+ _2N5scKaVEcdYHFmfKYYacAwUhUgQ.push(await Object.fromJsonLd(v, options));
21036
21329
  }
21037
- _2N5scKaVEcdYHFmfKYYacAwUhUgQ.push(await Object.fromJsonLd(v, options));
21038
21330
  }
21039
21331
  instance.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ = _2N5scKaVEcdYHFmfKYYacAwUhUgQ;
21040
21332
  const _2mV6isMTPRKbWdLCjcpiEysq5dAY = [];
21041
21333
  const _2mV6isMTPRKbWdLCjcpiEysq5dAY__array = values["https://www.w3.org/ns/activitystreams#anyOf"];
21042
- for (const v of _2mV6isMTPRKbWdLCjcpiEysq5dAY__array ?? []) {
21043
- if (v == null)
21044
- continue;
21045
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21046
- globalThis.Object.keys(v).length === 1) {
21047
- _2mV6isMTPRKbWdLCjcpiEysq5dAY.push(new URL(v["@id"]));
21048
- continue;
21334
+ if (_2mV6isMTPRKbWdLCjcpiEysq5dAY__array != null) {
21335
+ for (const v of _2mV6isMTPRKbWdLCjcpiEysq5dAY__array) {
21336
+ if (v == null)
21337
+ continue;
21338
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21339
+ globalThis.Object.keys(v).length === 1) {
21340
+ _2mV6isMTPRKbWdLCjcpiEysq5dAY.push(new URL(v["@id"]));
21341
+ continue;
21342
+ }
21343
+ _2mV6isMTPRKbWdLCjcpiEysq5dAY.push(await Object.fromJsonLd(v, options));
21049
21344
  }
21050
- _2mV6isMTPRKbWdLCjcpiEysq5dAY.push(await Object.fromJsonLd(v, options));
21051
21345
  }
21052
21346
  instance.#_2mV6isMTPRKbWdLCjcpiEysq5dAY = _2mV6isMTPRKbWdLCjcpiEysq5dAY;
21053
21347
  return instance;
@@ -21689,41 +21983,47 @@ export class Relationship extends Object {
21689
21983
  }
21690
21984
  const _2Zqdmi46ZnDQsECS6mzwhrv3rUKq = [];
21691
21985
  const _2Zqdmi46ZnDQsECS6mzwhrv3rUKq__array = values["https://www.w3.org/ns/activitystreams#subject"];
21692
- for (const v of _2Zqdmi46ZnDQsECS6mzwhrv3rUKq__array ?? []) {
21693
- if (v == null)
21694
- continue;
21695
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21696
- globalThis.Object.keys(v).length === 1) {
21697
- _2Zqdmi46ZnDQsECS6mzwhrv3rUKq.push(new URL(v["@id"]));
21698
- continue;
21986
+ if (_2Zqdmi46ZnDQsECS6mzwhrv3rUKq__array != null) {
21987
+ for (const v of _2Zqdmi46ZnDQsECS6mzwhrv3rUKq__array) {
21988
+ if (v == null)
21989
+ continue;
21990
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21991
+ globalThis.Object.keys(v).length === 1) {
21992
+ _2Zqdmi46ZnDQsECS6mzwhrv3rUKq.push(new URL(v["@id"]));
21993
+ continue;
21994
+ }
21995
+ _2Zqdmi46ZnDQsECS6mzwhrv3rUKq.push(await Object.fromJsonLd(v, options));
21699
21996
  }
21700
- _2Zqdmi46ZnDQsECS6mzwhrv3rUKq.push(await Object.fromJsonLd(v, options));
21701
21997
  }
21702
21998
  instance.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq = _2Zqdmi46ZnDQsECS6mzwhrv3rUKq;
21703
21999
  const _2MH19yxjn1wnHsNfa5n4JBhJzxyc = [];
21704
22000
  const _2MH19yxjn1wnHsNfa5n4JBhJzxyc__array = values["https://www.w3.org/ns/activitystreams#object"];
21705
- for (const v of _2MH19yxjn1wnHsNfa5n4JBhJzxyc__array ?? []) {
21706
- if (v == null)
21707
- continue;
21708
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21709
- globalThis.Object.keys(v).length === 1) {
21710
- _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(new URL(v["@id"]));
21711
- continue;
22001
+ if (_2MH19yxjn1wnHsNfa5n4JBhJzxyc__array != null) {
22002
+ for (const v of _2MH19yxjn1wnHsNfa5n4JBhJzxyc__array) {
22003
+ if (v == null)
22004
+ continue;
22005
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
22006
+ globalThis.Object.keys(v).length === 1) {
22007
+ _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(new URL(v["@id"]));
22008
+ continue;
22009
+ }
22010
+ _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(await Object.fromJsonLd(v, options));
21712
22011
  }
21713
- _2MH19yxjn1wnHsNfa5n4JBhJzxyc.push(await Object.fromJsonLd(v, options));
21714
22012
  }
21715
22013
  instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc = _2MH19yxjn1wnHsNfa5n4JBhJzxyc;
21716
22014
  const _4Lzz89F9qipAQSGkWyX9DGWiUojG = [];
21717
22015
  const _4Lzz89F9qipAQSGkWyX9DGWiUojG__array = values["https://www.w3.org/ns/activitystreams#relationship"];
21718
- for (const v of _4Lzz89F9qipAQSGkWyX9DGWiUojG__array ?? []) {
21719
- if (v == null)
21720
- continue;
21721
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
21722
- globalThis.Object.keys(v).length === 1) {
21723
- _4Lzz89F9qipAQSGkWyX9DGWiUojG.push(new URL(v["@id"]));
21724
- continue;
22016
+ if (_4Lzz89F9qipAQSGkWyX9DGWiUojG__array != null) {
22017
+ for (const v of _4Lzz89F9qipAQSGkWyX9DGWiUojG__array) {
22018
+ if (v == null)
22019
+ continue;
22020
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
22021
+ globalThis.Object.keys(v).length === 1) {
22022
+ _4Lzz89F9qipAQSGkWyX9DGWiUojG.push(new URL(v["@id"]));
22023
+ continue;
22024
+ }
22025
+ _4Lzz89F9qipAQSGkWyX9DGWiUojG.push(await Object.fromJsonLd(v, options));
21725
22026
  }
21726
- _4Lzz89F9qipAQSGkWyX9DGWiUojG.push(await Object.fromJsonLd(v, options));
21727
22027
  }
21728
22028
  instance.#_4Lzz89F9qipAQSGkWyX9DGWiUojG = _4Lzz89F9qipAQSGkWyX9DGWiUojG;
21729
22029
  return instance;
@@ -23278,185 +23578,217 @@ export class Service extends Object {
23278
23578
  }
23279
23579
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf = [];
23280
23580
  const _3isuDgRAKSntq9XdbjiNxjwyPZAf__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
23281
- for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array ?? []) {
23282
- if (v == null)
23283
- continue;
23284
- const decoded = typeof v === "object" && "@value" in v &&
23285
- typeof v["@value"] === "string" && !("@language" in v)
23286
- ? v["@value"]
23287
- : typeof v === "object" && "@language" in v && "@value" in v &&
23288
- typeof v["@language"] === "string" &&
23289
- typeof v["@value"] === "string"
23290
- ? new LanguageString(v["@value"], v["@language"])
23291
- : undefined;
23292
- if (typeof decoded === "undefined")
23293
- continue;
23294
- _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
23581
+ if (_3isuDgRAKSntq9XdbjiNxjwyPZAf__array != null) {
23582
+ for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf__array) {
23583
+ if (v == null)
23584
+ continue;
23585
+ const decoded = typeof v === "object" && "@value" in v &&
23586
+ typeof v["@value"] === "string" && !("@language" in v)
23587
+ ? v["@value"]
23588
+ : typeof v === "object" && "@language" in v && "@value" in v &&
23589
+ typeof v["@language"] === "string" &&
23590
+ typeof v["@value"] === "string"
23591
+ ? new LanguageString(v["@value"], v["@language"])
23592
+ : undefined;
23593
+ if (typeof decoded === "undefined")
23594
+ continue;
23595
+ _3isuDgRAKSntq9XdbjiNxjwyPZAf.push(decoded);
23596
+ }
23295
23597
  }
23296
23598
  instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf = _3isuDgRAKSntq9XdbjiNxjwyPZAf;
23297
23599
  const _axq166E2eZADq34V4MYUc8KMZdC = [];
23298
23600
  const _axq166E2eZADq34V4MYUc8KMZdC__array = values["https://w3id.org/security#publicKey"];
23299
- for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array ?? []) {
23300
- if (v == null)
23301
- continue;
23302
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23303
- globalThis.Object.keys(v).length === 1) {
23304
- _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
23305
- continue;
23601
+ if (_axq166E2eZADq34V4MYUc8KMZdC__array != null) {
23602
+ for (const v of _axq166E2eZADq34V4MYUc8KMZdC__array) {
23603
+ if (v == null)
23604
+ continue;
23605
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23606
+ globalThis.Object.keys(v).length === 1) {
23607
+ _axq166E2eZADq34V4MYUc8KMZdC.push(new URL(v["@id"]));
23608
+ continue;
23609
+ }
23610
+ _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
23306
23611
  }
23307
- _axq166E2eZADq34V4MYUc8KMZdC.push(await CryptographicKey.fromJsonLd(v, options));
23308
23612
  }
23309
23613
  instance.#_axq166E2eZADq34V4MYUc8KMZdC = _axq166E2eZADq34V4MYUc8KMZdC;
23310
23614
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3 = [];
23311
23615
  const _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array = values["https://w3id.org/security#assertionMethod"];
23312
- for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array ?? []) {
23313
- if (v == null)
23314
- continue;
23315
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23316
- globalThis.Object.keys(v).length === 1) {
23317
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
23318
- continue;
23616
+ if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3__array != null) {
23617
+ for (const v of _4EHQFWZSz1k1d4LmPrQiMba2GbP3__array) {
23618
+ if (v == null)
23619
+ continue;
23620
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23621
+ globalThis.Object.keys(v).length === 1) {
23622
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(new URL(v["@id"]));
23623
+ continue;
23624
+ }
23625
+ _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
23319
23626
  }
23320
- _4EHQFWZSz1k1d4LmPrQiMba2GbP3.push(await Multikey.fromJsonLd(v, options));
23321
23627
  }
23322
23628
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3 = _4EHQFWZSz1k1d4LmPrQiMba2GbP3;
23323
23629
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA = [];
23324
23630
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
23325
- for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array ?? []) {
23326
- if (v == null)
23327
- continue;
23328
- _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
23631
+ if (_36QNc9MxfkKf6h8sEUQSHnV9NZA__array != null) {
23632
+ for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA__array) {
23633
+ if (v == null)
23634
+ continue;
23635
+ _36QNc9MxfkKf6h8sEUQSHnV9NZA.push(v["@value"]);
23636
+ }
23329
23637
  }
23330
23638
  instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA = _36QNc9MxfkKf6h8sEUQSHnV9NZA;
23331
23639
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB = [];
23332
23640
  const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array = values["http://www.w3.org/ns/ldp#inbox"];
23333
- for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array ?? []) {
23334
- if (v == null)
23335
- continue;
23336
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23337
- globalThis.Object.keys(v).length === 1) {
23338
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
23339
- continue;
23641
+ if (_3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array != null) {
23642
+ for (const v of _3ghX3VfZXXbLvhCRH7QJqpzLrXjB__array) {
23643
+ if (v == null)
23644
+ continue;
23645
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23646
+ globalThis.Object.keys(v).length === 1) {
23647
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(new URL(v["@id"]));
23648
+ continue;
23649
+ }
23650
+ _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
23340
23651
  }
23341
- _3ghX3VfZXXbLvhCRH7QJqpzLrXjB.push(await OrderedCollection.fromJsonLd(v, options));
23342
23652
  }
23343
23653
  instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB;
23344
23654
  const _41QwhqJouoLg3h8dRPKat21brynC = [];
23345
23655
  const _41QwhqJouoLg3h8dRPKat21brynC__array = values["https://www.w3.org/ns/activitystreams#outbox"];
23346
- for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array ?? []) {
23347
- if (v == null)
23348
- continue;
23349
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23350
- globalThis.Object.keys(v).length === 1) {
23351
- _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
23352
- continue;
23656
+ if (_41QwhqJouoLg3h8dRPKat21brynC__array != null) {
23657
+ for (const v of _41QwhqJouoLg3h8dRPKat21brynC__array) {
23658
+ if (v == null)
23659
+ continue;
23660
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23661
+ globalThis.Object.keys(v).length === 1) {
23662
+ _41QwhqJouoLg3h8dRPKat21brynC.push(new URL(v["@id"]));
23663
+ continue;
23664
+ }
23665
+ _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
23353
23666
  }
23354
- _41QwhqJouoLg3h8dRPKat21brynC.push(await OrderedCollection.fromJsonLd(v, options));
23355
23667
  }
23356
23668
  instance.#_41QwhqJouoLg3h8dRPKat21brynC = _41QwhqJouoLg3h8dRPKat21brynC;
23357
23669
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee = [];
23358
23670
  const _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array = values["https://www.w3.org/ns/activitystreams#following"];
23359
- for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array ?? []) {
23360
- if (v == null)
23361
- continue;
23362
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23363
- globalThis.Object.keys(v).length === 1) {
23364
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
23365
- continue;
23671
+ if (_3yAv8jymNfNuJUDuBzJ1NQhdbAee__array != null) {
23672
+ for (const v of _3yAv8jymNfNuJUDuBzJ1NQhdbAee__array) {
23673
+ if (v == null)
23674
+ continue;
23675
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23676
+ globalThis.Object.keys(v).length === 1) {
23677
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(new URL(v["@id"]));
23678
+ continue;
23679
+ }
23680
+ _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
23366
23681
  }
23367
- _3yAv8jymNfNuJUDuBzJ1NQhdbAee.push(await Collection.fromJsonLd(v, options));
23368
23682
  }
23369
23683
  instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee = _3yAv8jymNfNuJUDuBzJ1NQhdbAee;
23370
23684
  const _BBCTgfphhsFzpVfKTykGSpBNwoA = [];
23371
23685
  const _BBCTgfphhsFzpVfKTykGSpBNwoA__array = values["https://www.w3.org/ns/activitystreams#followers"];
23372
- for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array ?? []) {
23373
- if (v == null)
23374
- continue;
23375
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23376
- globalThis.Object.keys(v).length === 1) {
23377
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
23378
- continue;
23686
+ if (_BBCTgfphhsFzpVfKTykGSpBNwoA__array != null) {
23687
+ for (const v of _BBCTgfphhsFzpVfKTykGSpBNwoA__array) {
23688
+ if (v == null)
23689
+ continue;
23690
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23691
+ globalThis.Object.keys(v).length === 1) {
23692
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(new URL(v["@id"]));
23693
+ continue;
23694
+ }
23695
+ _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
23379
23696
  }
23380
- _BBCTgfphhsFzpVfKTykGSpBNwoA.push(await Collection.fromJsonLd(v, options));
23381
23697
  }
23382
23698
  instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA = _BBCTgfphhsFzpVfKTykGSpBNwoA;
23383
23699
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU = [];
23384
23700
  const _3bgkPwJanyTCoVFM9ovRcus8tKkU__array = values["https://www.w3.org/ns/activitystreams#liked"];
23385
- for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array ?? []) {
23386
- if (v == null)
23387
- continue;
23388
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23389
- globalThis.Object.keys(v).length === 1) {
23390
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
23391
- continue;
23701
+ if (_3bgkPwJanyTCoVFM9ovRcus8tKkU__array != null) {
23702
+ for (const v of _3bgkPwJanyTCoVFM9ovRcus8tKkU__array) {
23703
+ if (v == null)
23704
+ continue;
23705
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23706
+ globalThis.Object.keys(v).length === 1) {
23707
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(new URL(v["@id"]));
23708
+ continue;
23709
+ }
23710
+ _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
23392
23711
  }
23393
- _3bgkPwJanyTCoVFM9ovRcus8tKkU.push(await Collection.fromJsonLd(v, options));
23394
23712
  }
23395
23713
  instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = _3bgkPwJanyTCoVFM9ovRcus8tKkU;
23396
23714
  const _4N1vBJzXDf8NbBumeECQMFvKetja = [];
23397
23715
  const _4N1vBJzXDf8NbBumeECQMFvKetja__array = values["http://joinmastodon.org/ns#featured"];
23398
- for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array ?? []) {
23399
- if (v == null)
23400
- continue;
23401
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23402
- globalThis.Object.keys(v).length === 1) {
23403
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
23404
- continue;
23716
+ if (_4N1vBJzXDf8NbBumeECQMFvKetja__array != null) {
23717
+ for (const v of _4N1vBJzXDf8NbBumeECQMFvKetja__array) {
23718
+ if (v == null)
23719
+ continue;
23720
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23721
+ globalThis.Object.keys(v).length === 1) {
23722
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(new URL(v["@id"]));
23723
+ continue;
23724
+ }
23725
+ _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
23405
23726
  }
23406
- _4N1vBJzXDf8NbBumeECQMFvKetja.push(await Collection.fromJsonLd(v, options));
23407
23727
  }
23408
23728
  instance.#_4N1vBJzXDf8NbBumeECQMFvKetja = _4N1vBJzXDf8NbBumeECQMFvKetja;
23409
23729
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = [];
23410
23730
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array = values["https://www.w3.org/ns/activitystreams#streams"];
23411
- for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array ?? []) {
23412
- if (v == null)
23413
- continue;
23414
- if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23415
- globalThis.Object.keys(v).length === 1) {
23416
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
23417
- continue;
23731
+ if (_3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array != null) {
23732
+ for (const v of _3sG2Hdwn9qzKGu9mpYkqakAMUkH9__array) {
23733
+ if (v == null)
23734
+ continue;
23735
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
23736
+ globalThis.Object.keys(v).length === 1) {
23737
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(new URL(v["@id"]));
23738
+ continue;
23739
+ }
23740
+ _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
23418
23741
  }
23419
- _3sG2Hdwn9qzKGu9mpYkqakAMUkH9.push(await Collection.fromJsonLd(v, options));
23420
23742
  }
23421
23743
  instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9;
23422
23744
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG = [];
23423
23745
  const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
23424
- for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array ?? []) {
23425
- if (v == null)
23426
- continue;
23427
- _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
23746
+ if (_sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array != null) {
23747
+ for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG__array) {
23748
+ if (v == null)
23749
+ continue;
23750
+ _sEoQwUbfk4hEfugzNQ2ZiDcLMkG.push(await Endpoints.fromJsonLd(v, options));
23751
+ }
23428
23752
  }
23429
23753
  instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG;
23430
23754
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH = [];
23431
23755
  const _gAJzg1QDc4rcefFsUzGSYmyXvNH__array = values["http://joinmastodon.org/ns#discoverable"];
23432
- for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array ?? []) {
23433
- if (v == null)
23434
- continue;
23435
- _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
23756
+ if (_gAJzg1QDc4rcefFsUzGSYmyXvNH__array != null) {
23757
+ for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH__array) {
23758
+ if (v == null)
23759
+ continue;
23760
+ _gAJzg1QDc4rcefFsUzGSYmyXvNH.push(v["@value"]);
23761
+ }
23436
23762
  }
23437
23763
  instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH = _gAJzg1QDc4rcefFsUzGSYmyXvNH;
23438
23764
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7 = [];
23439
23765
  const _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array = values["http://joinmastodon.org/ns#suspended"];
23440
- for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array ?? []) {
23441
- if (v == null)
23442
- continue;
23443
- _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
23766
+ if (_2kGKkJtoFWg8c18PaVSqj9NKP4t7__array != null) {
23767
+ for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7__array) {
23768
+ if (v == null)
23769
+ continue;
23770
+ _2kGKkJtoFWg8c18PaVSqj9NKP4t7.push(v["@value"]);
23771
+ }
23444
23772
  }
23445
23773
  instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7 = _2kGKkJtoFWg8c18PaVSqj9NKP4t7;
23446
23774
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ = [];
23447
23775
  const _79S8K4f5J9MWUgCxziRyUe6PTHZ__array = values["http://joinmastodon.org/ns#memorial"];
23448
- for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array ?? []) {
23449
- if (v == null)
23450
- continue;
23451
- _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
23776
+ if (_79S8K4f5J9MWUgCxziRyUe6PTHZ__array != null) {
23777
+ for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ__array) {
23778
+ if (v == null)
23779
+ continue;
23780
+ _79S8K4f5J9MWUgCxziRyUe6PTHZ.push(v["@value"]);
23781
+ }
23452
23782
  }
23453
23783
  instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ = _79S8K4f5J9MWUgCxziRyUe6PTHZ;
23454
23784
  const _2diCorzqPGQQqftp6e4SrCEwEnyk = [];
23455
23785
  const _2diCorzqPGQQqftp6e4SrCEwEnyk__array = values["http://joinmastodon.org/ns#indexable"];
23456
- for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array ?? []) {
23457
- if (v == null)
23458
- continue;
23459
- _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
23786
+ if (_2diCorzqPGQQqftp6e4SrCEwEnyk__array != null) {
23787
+ for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk__array) {
23788
+ if (v == null)
23789
+ continue;
23790
+ _2diCorzqPGQQqftp6e4SrCEwEnyk.push(v["@value"]);
23791
+ }
23460
23792
  }
23461
23793
  instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk = _2diCorzqPGQQqftp6e4SrCEwEnyk;
23462
23794
  return instance;
@@ -23807,10 +24139,12 @@ export class Tombstone extends Object {
23807
24139
  }
23808
24140
  const _8g8g4LiVMhFTXskuDEqx4ascxUr = [];
23809
24141
  const _8g8g4LiVMhFTXskuDEqx4ascxUr__array = values["https://www.w3.org/ns/activitystreams#deleted"];
23810
- for (const v of _8g8g4LiVMhFTXskuDEqx4ascxUr__array ?? []) {
23811
- if (v == null)
23812
- continue;
23813
- _8g8g4LiVMhFTXskuDEqx4ascxUr.push(dntShim.Temporal.Instant.from(v["@value"]));
24142
+ if (_8g8g4LiVMhFTXskuDEqx4ascxUr__array != null) {
24143
+ for (const v of _8g8g4LiVMhFTXskuDEqx4ascxUr__array) {
24144
+ if (v == null)
24145
+ continue;
24146
+ _8g8g4LiVMhFTXskuDEqx4ascxUr.push(dntShim.Temporal.Instant.from(v["@value"]));
24147
+ }
23814
24148
  }
23815
24149
  instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr = _8g8g4LiVMhFTXskuDEqx4ascxUr;
23816
24150
  return instance;