@fedify/vocab-tools 2.4.0-dev.2259 → 2.4.0-dev.2260

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.
@@ -39,6 +39,7 @@ import {
39
39
  createSnapshotContextLoader,
40
40
  dereferencePortableIri,
41
41
  getPortableResponseClaim,
42
+ getReferrerGateways,
42
43
  isPortableIri,
43
44
  isPortableMode,
44
45
  isUnsecuredPortableObject,
@@ -2371,7 +2372,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2371
2372
  span.end();
2372
2373
  }
2373
2374
  };
2374
- if (isPortableIri(url)) return await dereferencePortable(url);
2375
+ if (isPortableIri(url)) {
2376
+ // A reference in a portable actor's own document, e.g., its outbox,
2377
+ // has no location hints, so the actor's gateways are used instead:
2378
+ return await dereferencePortable(
2379
+ url,
2380
+ options.gateways == null
2381
+ ? { inferredGateways: getReferrerGateways(this, url) }
2382
+ : {},
2383
+ );
2384
+ }
2375
2385
  const lookupUrl = formatIri(url);
2376
2386
  const portableMode = isPortableMode(this, options);
2377
2387
  if (portableMode) {
@@ -2817,7 +2827,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2817
2827
  span.end();
2818
2828
  }
2819
2829
  };
2820
- if (isPortableIri(url)) return await dereferencePortable(url);
2830
+ if (isPortableIri(url)) {
2831
+ // A reference in a portable actor's own document, e.g., its outbox,
2832
+ // has no location hints, so the actor's gateways are used instead:
2833
+ return await dereferencePortable(
2834
+ url,
2835
+ options.gateways == null
2836
+ ? { inferredGateways: getReferrerGateways(this, url) }
2837
+ : {},
2838
+ );
2839
+ }
2821
2840
  const lookupUrl = formatIri(url);
2822
2841
  const portableMode = isPortableMode(this, options);
2823
2842
  if (portableMode) {
@@ -3451,7 +3470,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
3451
3470
  span.end();
3452
3471
  }
3453
3472
  };
3454
- if (isPortableIri(url)) return await dereferencePortable(url);
3473
+ if (isPortableIri(url)) {
3474
+ // A reference in a portable actor's own document, e.g., its outbox,
3475
+ // has no location hints, so the actor's gateways are used instead:
3476
+ return await dereferencePortable(
3477
+ url,
3478
+ options.gateways == null
3479
+ ? { inferredGateways: getReferrerGateways(this, url) }
3480
+ : {},
3481
+ );
3482
+ }
3455
3483
  const lookupUrl = formatIri(url);
3456
3484
  const portableMode = isPortableMode(this, options);
3457
3485
  if (portableMode) {
@@ -4052,7 +4080,16 @@ get contents(): ((string | LanguageString))[] {
4052
4080
  span.end();
4053
4081
  }
4054
4082
  };
4055
- if (isPortableIri(url)) return await dereferencePortable(url);
4083
+ if (isPortableIri(url)) {
4084
+ // A reference in a portable actor's own document, e.g., its outbox,
4085
+ // has no location hints, so the actor's gateways are used instead:
4086
+ return await dereferencePortable(
4087
+ url,
4088
+ options.gateways == null
4089
+ ? { inferredGateways: getReferrerGateways(this, url) }
4090
+ : {},
4091
+ );
4092
+ }
4056
4093
  const lookupUrl = formatIri(url);
4057
4094
  const portableMode = isPortableMode(this, options);
4058
4095
  if (portableMode) {
@@ -4529,7 +4566,16 @@ get names(): ((string | LanguageString))[] {
4529
4566
  span.end();
4530
4567
  }
4531
4568
  };
4532
- if (isPortableIri(url)) return await dereferencePortable(url);
4569
+ if (isPortableIri(url)) {
4570
+ // A reference in a portable actor's own document, e.g., its outbox,
4571
+ // has no location hints, so the actor's gateways are used instead:
4572
+ return await dereferencePortable(
4573
+ url,
4574
+ options.gateways == null
4575
+ ? { inferredGateways: getReferrerGateways(this, url) }
4576
+ : {},
4577
+ );
4578
+ }
4533
4579
  const lookupUrl = formatIri(url);
4534
4580
  const portableMode = isPortableMode(this, options);
4535
4581
  if (portableMode) {
@@ -4958,7 +5004,16 @@ get names(): ((string | LanguageString))[] {
4958
5004
  span.end();
4959
5005
  }
4960
5006
  };
4961
- if (isPortableIri(url)) return await dereferencePortable(url);
5007
+ if (isPortableIri(url)) {
5008
+ // A reference in a portable actor's own document, e.g., its outbox,
5009
+ // has no location hints, so the actor's gateways are used instead:
5010
+ return await dereferencePortable(
5011
+ url,
5012
+ options.gateways == null
5013
+ ? { inferredGateways: getReferrerGateways(this, url) }
5014
+ : {},
5015
+ );
5016
+ }
4962
5017
  const lookupUrl = formatIri(url);
4963
5018
  const portableMode = isPortableMode(this, options);
4964
5019
  if (portableMode) {
@@ -5554,7 +5609,16 @@ get names(): ((string | LanguageString))[] {
5554
5609
  span.end();
5555
5610
  }
5556
5611
  };
5557
- if (isPortableIri(url)) return await dereferencePortable(url);
5612
+ if (isPortableIri(url)) {
5613
+ // A reference in a portable actor's own document, e.g., its outbox,
5614
+ // has no location hints, so the actor's gateways are used instead:
5615
+ return await dereferencePortable(
5616
+ url,
5617
+ options.gateways == null
5618
+ ? { inferredGateways: getReferrerGateways(this, url) }
5619
+ : {},
5620
+ );
5621
+ }
5558
5622
  const lookupUrl = formatIri(url);
5559
5623
  const portableMode = isPortableMode(this, options);
5560
5624
  if (portableMode) {
@@ -6150,7 +6214,16 @@ get names(): ((string | LanguageString))[] {
6150
6214
  span.end();
6151
6215
  }
6152
6216
  };
6153
- if (isPortableIri(url)) return await dereferencePortable(url);
6217
+ if (isPortableIri(url)) {
6218
+ // A reference in a portable actor's own document, e.g., its outbox,
6219
+ // has no location hints, so the actor's gateways are used instead:
6220
+ return await dereferencePortable(
6221
+ url,
6222
+ options.gateways == null
6223
+ ? { inferredGateways: getReferrerGateways(this, url) }
6224
+ : {},
6225
+ );
6226
+ }
6154
6227
  const lookupUrl = formatIri(url);
6155
6228
  const portableMode = isPortableMode(this, options);
6156
6229
  if (portableMode) {
@@ -6737,7 +6810,16 @@ get names(): ((string | LanguageString))[] {
6737
6810
  span.end();
6738
6811
  }
6739
6812
  };
6740
- if (isPortableIri(url)) return await dereferencePortable(url);
6813
+ if (isPortableIri(url)) {
6814
+ // A reference in a portable actor's own document, e.g., its outbox,
6815
+ // has no location hints, so the actor's gateways are used instead:
6816
+ return await dereferencePortable(
6817
+ url,
6818
+ options.gateways == null
6819
+ ? { inferredGateways: getReferrerGateways(this, url) }
6820
+ : {},
6821
+ );
6822
+ }
6741
6823
  const lookupUrl = formatIri(url);
6742
6824
  const portableMode = isPortableMode(this, options);
6743
6825
  if (portableMode) {
@@ -7324,7 +7406,16 @@ get names(): ((string | LanguageString))[] {
7324
7406
  span.end();
7325
7407
  }
7326
7408
  };
7327
- if (isPortableIri(url)) return await dereferencePortable(url);
7409
+ if (isPortableIri(url)) {
7410
+ // A reference in a portable actor's own document, e.g., its outbox,
7411
+ // has no location hints, so the actor's gateways are used instead:
7412
+ return await dereferencePortable(
7413
+ url,
7414
+ options.gateways == null
7415
+ ? { inferredGateways: getReferrerGateways(this, url) }
7416
+ : {},
7417
+ );
7418
+ }
7328
7419
  const lookupUrl = formatIri(url);
7329
7420
  const portableMode = isPortableMode(this, options);
7330
7421
  if (portableMode) {
@@ -7922,7 +8013,16 @@ get names(): ((string | LanguageString))[] {
7922
8013
  span.end();
7923
8014
  }
7924
8015
  };
7925
- if (isPortableIri(url)) return await dereferencePortable(url);
8016
+ if (isPortableIri(url)) {
8017
+ // A reference in a portable actor's own document, e.g., its outbox,
8018
+ // has no location hints, so the actor's gateways are used instead:
8019
+ return await dereferencePortable(
8020
+ url,
8021
+ options.gateways == null
8022
+ ? { inferredGateways: getReferrerGateways(this, url) }
8023
+ : {},
8024
+ );
8025
+ }
7926
8026
  const lookupUrl = formatIri(url);
7927
8027
  const portableMode = isPortableMode(this, options);
7928
8028
  if (portableMode) {
@@ -8332,7 +8432,16 @@ get names(): ((string | LanguageString))[] {
8332
8432
  span.end();
8333
8433
  }
8334
8434
  };
8335
- if (isPortableIri(url)) return await dereferencePortable(url);
8435
+ if (isPortableIri(url)) {
8436
+ // A reference in a portable actor's own document, e.g., its outbox,
8437
+ // has no location hints, so the actor's gateways are used instead:
8438
+ return await dereferencePortable(
8439
+ url,
8440
+ options.gateways == null
8441
+ ? { inferredGateways: getReferrerGateways(this, url) }
8442
+ : {},
8443
+ );
8444
+ }
8336
8445
  const lookupUrl = formatIri(url);
8337
8446
  const portableMode = isPortableMode(this, options);
8338
8447
  if (portableMode) {
@@ -8748,7 +8857,16 @@ get names(): ((string | LanguageString))[] {
8748
8857
  span.end();
8749
8858
  }
8750
8859
  };
8751
- if (isPortableIri(url)) return await dereferencePortable(url);
8860
+ if (isPortableIri(url)) {
8861
+ // A reference in a portable actor's own document, e.g., its outbox,
8862
+ // has no location hints, so the actor's gateways are used instead:
8863
+ return await dereferencePortable(
8864
+ url,
8865
+ options.gateways == null
8866
+ ? { inferredGateways: getReferrerGateways(this, url) }
8867
+ : {},
8868
+ );
8869
+ }
8752
8870
  const lookupUrl = formatIri(url);
8753
8871
  const portableMode = isPortableMode(this, options);
8754
8872
  if (portableMode) {
@@ -9164,7 +9282,16 @@ get names(): ((string | LanguageString))[] {
9164
9282
  span.end();
9165
9283
  }
9166
9284
  };
9167
- if (isPortableIri(url)) return await dereferencePortable(url);
9285
+ if (isPortableIri(url)) {
9286
+ // A reference in a portable actor's own document, e.g., its outbox,
9287
+ // has no location hints, so the actor's gateways are used instead:
9288
+ return await dereferencePortable(
9289
+ url,
9290
+ options.gateways == null
9291
+ ? { inferredGateways: getReferrerGateways(this, url) }
9292
+ : {},
9293
+ );
9294
+ }
9168
9295
  const lookupUrl = formatIri(url);
9169
9296
  const portableMode = isPortableMode(this, options);
9170
9297
  if (portableMode) {
@@ -9614,7 +9741,16 @@ get summaries(): ((string | LanguageString))[] {
9614
9741
  span.end();
9615
9742
  }
9616
9743
  };
9617
- if (isPortableIri(url)) return await dereferencePortable(url);
9744
+ if (isPortableIri(url)) {
9745
+ // A reference in a portable actor's own document, e.g., its outbox,
9746
+ // has no location hints, so the actor's gateways are used instead:
9747
+ return await dereferencePortable(
9748
+ url,
9749
+ options.gateways == null
9750
+ ? { inferredGateways: getReferrerGateways(this, url) }
9751
+ : {},
9752
+ );
9753
+ }
9618
9754
  const lookupUrl = formatIri(url);
9619
9755
  const portableMode = isPortableMode(this, options);
9620
9756
  if (portableMode) {
@@ -10080,7 +10216,16 @@ get urls(): ((URL | Link))[] {
10080
10216
  span.end();
10081
10217
  }
10082
10218
  };
10083
- if (isPortableIri(url)) return await dereferencePortable(url);
10219
+ if (isPortableIri(url)) {
10220
+ // A reference in a portable actor's own document, e.g., its outbox,
10221
+ // has no location hints, so the actor's gateways are used instead:
10222
+ return await dereferencePortable(
10223
+ url,
10224
+ options.gateways == null
10225
+ ? { inferredGateways: getReferrerGateways(this, url) }
10226
+ : {},
10227
+ );
10228
+ }
10084
10229
  const lookupUrl = formatIri(url);
10085
10230
  const portableMode = isPortableMode(this, options);
10086
10231
  if (portableMode) {
@@ -10652,7 +10797,16 @@ get urls(): ((URL | Link))[] {
10652
10797
  span.end();
10653
10798
  }
10654
10799
  };
10655
- if (isPortableIri(url)) return await dereferencePortable(url);
10800
+ if (isPortableIri(url)) {
10801
+ // A reference in a portable actor's own document, e.g., its outbox,
10802
+ // has no location hints, so the actor's gateways are used instead:
10803
+ return await dereferencePortable(
10804
+ url,
10805
+ options.gateways == null
10806
+ ? { inferredGateways: getReferrerGateways(this, url) }
10807
+ : {},
10808
+ );
10809
+ }
10656
10810
  const lookupUrl = formatIri(url);
10657
10811
  const portableMode = isPortableMode(this, options);
10658
10812
  if (portableMode) {
@@ -11224,7 +11378,16 @@ get urls(): ((URL | Link))[] {
11224
11378
  span.end();
11225
11379
  }
11226
11380
  };
11227
- if (isPortableIri(url)) return await dereferencePortable(url);
11381
+ if (isPortableIri(url)) {
11382
+ // A reference in a portable actor's own document, e.g., its outbox,
11383
+ // has no location hints, so the actor's gateways are used instead:
11384
+ return await dereferencePortable(
11385
+ url,
11386
+ options.gateways == null
11387
+ ? { inferredGateways: getReferrerGateways(this, url) }
11388
+ : {},
11389
+ );
11390
+ }
11228
11391
  const lookupUrl = formatIri(url);
11229
11392
  const portableMode = isPortableMode(this, options);
11230
11393
  if (portableMode) {
@@ -11796,7 +11959,16 @@ get urls(): ((URL | Link))[] {
11796
11959
  span.end();
11797
11960
  }
11798
11961
  };
11799
- if (isPortableIri(url)) return await dereferencePortable(url);
11962
+ if (isPortableIri(url)) {
11963
+ // A reference in a portable actor's own document, e.g., its outbox,
11964
+ // has no location hints, so the actor's gateways are used instead:
11965
+ return await dereferencePortable(
11966
+ url,
11967
+ options.gateways == null
11968
+ ? { inferredGateways: getReferrerGateways(this, url) }
11969
+ : {},
11970
+ );
11971
+ }
11800
11972
  const lookupUrl = formatIri(url);
11801
11973
  const portableMode = isPortableMode(this, options);
11802
11974
  if (portableMode) {
@@ -12432,7 +12604,16 @@ get urls(): ((URL | Link))[] {
12432
12604
  span.end();
12433
12605
  }
12434
12606
  };
12435
- if (isPortableIri(url)) return await dereferencePortable(url);
12607
+ if (isPortableIri(url)) {
12608
+ // A reference in a portable actor's own document, e.g., its outbox,
12609
+ // has no location hints, so the actor's gateways are used instead:
12610
+ return await dereferencePortable(
12611
+ url,
12612
+ options.gateways == null
12613
+ ? { inferredGateways: getReferrerGateways(this, url) }
12614
+ : {},
12615
+ );
12616
+ }
12436
12617
  const lookupUrl = formatIri(url);
12437
12618
  const portableMode = isPortableMode(this, options);
12438
12619
  if (portableMode) {
@@ -13041,7 +13222,16 @@ get urls(): ((URL | Link))[] {
13041
13222
  span.end();
13042
13223
  }
13043
13224
  };
13044
- if (isPortableIri(url)) return await dereferencePortable(url);
13225
+ if (isPortableIri(url)) {
13226
+ // A reference in a portable actor's own document, e.g., its outbox,
13227
+ // has no location hints, so the actor's gateways are used instead:
13228
+ return await dereferencePortable(
13229
+ url,
13230
+ options.gateways == null
13231
+ ? { inferredGateways: getReferrerGateways(this, url) }
13232
+ : {},
13233
+ );
13234
+ }
13045
13235
  const lookupUrl = formatIri(url);
13046
13236
  const portableMode = isPortableMode(this, options);
13047
13237
  if (portableMode) {
@@ -13451,7 +13641,16 @@ get urls(): ((URL | Link))[] {
13451
13641
  span.end();
13452
13642
  }
13453
13643
  };
13454
- if (isPortableIri(url)) return await dereferencePortable(url);
13644
+ if (isPortableIri(url)) {
13645
+ // A reference in a portable actor's own document, e.g., its outbox,
13646
+ // has no location hints, so the actor's gateways are used instead:
13647
+ return await dereferencePortable(
13648
+ url,
13649
+ options.gateways == null
13650
+ ? { inferredGateways: getReferrerGateways(this, url) }
13651
+ : {},
13652
+ );
13653
+ }
13455
13654
  const lookupUrl = formatIri(url);
13456
13655
  const portableMode = isPortableMode(this, options);
13457
13656
  if (portableMode) {
@@ -13861,7 +14060,16 @@ get urls(): ((URL | Link))[] {
13861
14060
  span.end();
13862
14061
  }
13863
14062
  };
13864
- if (isPortableIri(url)) return await dereferencePortable(url);
14063
+ if (isPortableIri(url)) {
14064
+ // A reference in a portable actor's own document, e.g., its outbox,
14065
+ // has no location hints, so the actor's gateways are used instead:
14066
+ return await dereferencePortable(
14067
+ url,
14068
+ options.gateways == null
14069
+ ? { inferredGateways: getReferrerGateways(this, url) }
14070
+ : {},
14071
+ );
14072
+ }
13865
14073
  const lookupUrl = formatIri(url);
13866
14074
  const portableMode = isPortableMode(this, options);
13867
14075
  if (portableMode) {
@@ -19476,7 +19684,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
19476
19684
  span.end();
19477
19685
  }
19478
19686
  };
19479
- if (isPortableIri(url)) return await dereferencePortable(url);
19687
+ if (isPortableIri(url)) {
19688
+ // A reference in a portable actor's own document, e.g., its outbox,
19689
+ // has no location hints, so the actor's gateways are used instead:
19690
+ return await dereferencePortable(
19691
+ url,
19692
+ options.gateways == null
19693
+ ? { inferredGateways: getReferrerGateways(this, url) }
19694
+ : {},
19695
+ );
19696
+ }
19480
19697
  const lookupUrl = formatIri(url);
19481
19698
  const portableMode = isPortableMode(this, options);
19482
19699
  if (portableMode) {
@@ -19910,7 +20127,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
19910
20127
  span.end();
19911
20128
  }
19912
20129
  };
19913
- if (isPortableIri(url)) return await dereferencePortable(url);
20130
+ if (isPortableIri(url)) {
20131
+ // A reference in a portable actor's own document, e.g., its outbox,
20132
+ // has no location hints, so the actor's gateways are used instead:
20133
+ return await dereferencePortable(
20134
+ url,
20135
+ options.gateways == null
20136
+ ? { inferredGateways: getReferrerGateways(this, url) }
20137
+ : {},
20138
+ );
20139
+ }
19914
20140
  const lookupUrl = formatIri(url);
19915
20141
  const portableMode = isPortableMode(this, options);
19916
20142
  if (portableMode) {
@@ -21572,7 +21798,16 @@ instruments?: (Object | URL)[];}
21572
21798
  span.end();
21573
21799
  }
21574
21800
  };
21575
- if (isPortableIri(url)) return await dereferencePortable(url);
21801
+ if (isPortableIri(url)) {
21802
+ // A reference in a portable actor's own document, e.g., its outbox,
21803
+ // has no location hints, so the actor's gateways are used instead:
21804
+ return await dereferencePortable(
21805
+ url,
21806
+ options.gateways == null
21807
+ ? { inferredGateways: getReferrerGateways(this, url) }
21808
+ : {},
21809
+ );
21810
+ }
21576
21811
  const lookupUrl = formatIri(url);
21577
21812
  const portableMode = isPortableMode(this, options);
21578
21813
  if (portableMode) {
@@ -22206,7 +22441,16 @@ instruments?: (Object | URL)[];}
22206
22441
  span.end();
22207
22442
  }
22208
22443
  };
22209
- if (isPortableIri(url)) return await dereferencePortable(url);
22444
+ if (isPortableIri(url)) {
22445
+ // A reference in a portable actor's own document, e.g., its outbox,
22446
+ // has no location hints, so the actor's gateways are used instead:
22447
+ return await dereferencePortable(
22448
+ url,
22449
+ options.gateways == null
22450
+ ? { inferredGateways: getReferrerGateways(this, url) }
22451
+ : {},
22452
+ );
22453
+ }
22210
22454
  const lookupUrl = formatIri(url);
22211
22455
  const portableMode = isPortableMode(this, options);
22212
22456
  if (portableMode) {
@@ -22780,7 +23024,16 @@ instruments?: (Object | URL)[];}
22780
23024
  span.end();
22781
23025
  }
22782
23026
  };
22783
- if (isPortableIri(url)) return await dereferencePortable(url);
23027
+ if (isPortableIri(url)) {
23028
+ // A reference in a portable actor's own document, e.g., its outbox,
23029
+ // has no location hints, so the actor's gateways are used instead:
23030
+ return await dereferencePortable(
23031
+ url,
23032
+ options.gateways == null
23033
+ ? { inferredGateways: getReferrerGateways(this, url) }
23034
+ : {},
23035
+ );
23036
+ }
22784
23037
  const lookupUrl = formatIri(url);
22785
23038
  const portableMode = isPortableMode(this, options);
22786
23039
  if (portableMode) {
@@ -23360,7 +23613,16 @@ instruments?: (Object | URL)[];}
23360
23613
  span.end();
23361
23614
  }
23362
23615
  };
23363
- if (isPortableIri(url)) return await dereferencePortable(url);
23616
+ if (isPortableIri(url)) {
23617
+ // A reference in a portable actor's own document, e.g., its outbox,
23618
+ // has no location hints, so the actor's gateways are used instead:
23619
+ return await dereferencePortable(
23620
+ url,
23621
+ options.gateways == null
23622
+ ? { inferredGateways: getReferrerGateways(this, url) }
23623
+ : {},
23624
+ );
23625
+ }
23364
23626
  const lookupUrl = formatIri(url);
23365
23627
  const portableMode = isPortableMode(this, options);
23366
23628
  if (portableMode) {
@@ -23934,7 +24196,16 @@ instruments?: (Object | URL)[];}
23934
24196
  span.end();
23935
24197
  }
23936
24198
  };
23937
- if (isPortableIri(url)) return await dereferencePortable(url);
24199
+ if (isPortableIri(url)) {
24200
+ // A reference in a portable actor's own document, e.g., its outbox,
24201
+ // has no location hints, so the actor's gateways are used instead:
24202
+ return await dereferencePortable(
24203
+ url,
24204
+ options.gateways == null
24205
+ ? { inferredGateways: getReferrerGateways(this, url) }
24206
+ : {},
24207
+ );
24208
+ }
23938
24209
  const lookupUrl = formatIri(url);
23939
24210
  const portableMode = isPortableMode(this, options);
23940
24211
  if (portableMode) {
@@ -24510,7 +24781,16 @@ instruments?: (Object | URL)[];}
24510
24781
  span.end();
24511
24782
  }
24512
24783
  };
24513
- if (isPortableIri(url)) return await dereferencePortable(url);
24784
+ if (isPortableIri(url)) {
24785
+ // A reference in a portable actor's own document, e.g., its outbox,
24786
+ // has no location hints, so the actor's gateways are used instead:
24787
+ return await dereferencePortable(
24788
+ url,
24789
+ options.gateways == null
24790
+ ? { inferredGateways: getReferrerGateways(this, url) }
24791
+ : {},
24792
+ );
24793
+ }
24514
24794
  const lookupUrl = formatIri(url);
24515
24795
  const portableMode = isPortableMode(this, options);
24516
24796
  if (portableMode) {
@@ -28104,7 +28384,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
28104
28384
  span.end();
28105
28385
  }
28106
28386
  };
28107
- if (isPortableIri(url)) return await dereferencePortable(url);
28387
+ if (isPortableIri(url)) {
28388
+ // A reference in a portable actor's own document, e.g., its outbox,
28389
+ // has no location hints, so the actor's gateways are used instead:
28390
+ return await dereferencePortable(
28391
+ url,
28392
+ options.gateways == null
28393
+ ? { inferredGateways: getReferrerGateways(this, url) }
28394
+ : {},
28395
+ );
28396
+ }
28108
28397
  const lookupUrl = formatIri(url);
28109
28398
  const portableMode = isPortableMode(this, options);
28110
28399
  if (portableMode) {
@@ -28514,7 +28803,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
28514
28803
  span.end();
28515
28804
  }
28516
28805
  };
28517
- if (isPortableIri(url)) return await dereferencePortable(url);
28806
+ if (isPortableIri(url)) {
28807
+ // A reference in a portable actor's own document, e.g., its outbox,
28808
+ // has no location hints, so the actor's gateways are used instead:
28809
+ return await dereferencePortable(
28810
+ url,
28811
+ options.gateways == null
28812
+ ? { inferredGateways: getReferrerGateways(this, url) }
28813
+ : {},
28814
+ );
28815
+ }
28518
28816
  const lookupUrl = formatIri(url);
28519
28817
  const portableMode = isPortableMode(this, options);
28520
28818
  if (portableMode) {
@@ -31911,7 +32209,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
31911
32209
  span.end();
31912
32210
  }
31913
32211
  };
31914
- if (isPortableIri(url)) return await dereferencePortable(url);
32212
+ if (isPortableIri(url)) {
32213
+ // A reference in a portable actor's own document, e.g., its outbox,
32214
+ // has no location hints, so the actor's gateways are used instead:
32215
+ return await dereferencePortable(
32216
+ url,
32217
+ options.gateways == null
32218
+ ? { inferredGateways: getReferrerGateways(this, url) }
32219
+ : {},
32220
+ );
32221
+ }
31915
32222
  const lookupUrl = formatIri(url);
31916
32223
  const portableMode = isPortableMode(this, options);
31917
32224
  if (portableMode) {
@@ -32321,7 +32628,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
32321
32628
  span.end();
32322
32629
  }
32323
32630
  };
32324
- if (isPortableIri(url)) return await dereferencePortable(url);
32631
+ if (isPortableIri(url)) {
32632
+ // A reference in a portable actor's own document, e.g., its outbox,
32633
+ // has no location hints, so the actor's gateways are used instead:
32634
+ return await dereferencePortable(
32635
+ url,
32636
+ options.gateways == null
32637
+ ? { inferredGateways: getReferrerGateways(this, url) }
32638
+ : {},
32639
+ );
32640
+ }
32325
32641
  const lookupUrl = formatIri(url);
32326
32642
  const portableMode = isPortableMode(this, options);
32327
32643
  if (portableMode) {
@@ -33841,7 +34157,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
33841
34157
  span.end();
33842
34158
  }
33843
34159
  };
33844
- if (isPortableIri(url)) return await dereferencePortable(url);
34160
+ if (isPortableIri(url)) {
34161
+ // A reference in a portable actor's own document, e.g., its outbox,
34162
+ // has no location hints, so the actor's gateways are used instead:
34163
+ return await dereferencePortable(
34164
+ url,
34165
+ options.gateways == null
34166
+ ? { inferredGateways: getReferrerGateways(this, url) }
34167
+ : {},
34168
+ );
34169
+ }
33845
34170
  const lookupUrl = formatIri(url);
33846
34171
  const portableMode = isPortableMode(this, options);
33847
34172
  if (portableMode) {
@@ -34251,7 +34576,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
34251
34576
  span.end();
34252
34577
  }
34253
34578
  };
34254
- if (isPortableIri(url)) return await dereferencePortable(url);
34579
+ if (isPortableIri(url)) {
34580
+ // A reference in a portable actor's own document, e.g., its outbox,
34581
+ // has no location hints, so the actor's gateways are used instead:
34582
+ return await dereferencePortable(
34583
+ url,
34584
+ options.gateways == null
34585
+ ? { inferredGateways: getReferrerGateways(this, url) }
34586
+ : {},
34587
+ );
34588
+ }
34255
34589
  const lookupUrl = formatIri(url);
34256
34590
  const portableMode = isPortableMode(this, options);
34257
34591
  if (portableMode) {
@@ -35771,7 +36105,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
35771
36105
  span.end();
35772
36106
  }
35773
36107
  };
35774
- if (isPortableIri(url)) return await dereferencePortable(url);
36108
+ if (isPortableIri(url)) {
36109
+ // A reference in a portable actor's own document, e.g., its outbox,
36110
+ // has no location hints, so the actor's gateways are used instead:
36111
+ return await dereferencePortable(
36112
+ url,
36113
+ options.gateways == null
36114
+ ? { inferredGateways: getReferrerGateways(this, url) }
36115
+ : {},
36116
+ );
36117
+ }
35775
36118
  const lookupUrl = formatIri(url);
35776
36119
  const portableMode = isPortableMode(this, options);
35777
36120
  if (portableMode) {
@@ -36180,7 +36523,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
36180
36523
  span.end();
36181
36524
  }
36182
36525
  };
36183
- if (isPortableIri(url)) return await dereferencePortable(url);
36526
+ if (isPortableIri(url)) {
36527
+ // A reference in a portable actor's own document, e.g., its outbox,
36528
+ // has no location hints, so the actor's gateways are used instead:
36529
+ return await dereferencePortable(
36530
+ url,
36531
+ options.gateways == null
36532
+ ? { inferredGateways: getReferrerGateways(this, url) }
36533
+ : {},
36534
+ );
36535
+ }
36184
36536
  const lookupUrl = formatIri(url);
36185
36537
  const portableMode = isPortableMode(this, options);
36186
36538
  if (portableMode) {
@@ -37983,7 +38335,16 @@ urls?: ((URL | Link))[];}
37983
38335
  span.end();
37984
38336
  }
37985
38337
  };
37986
- if (isPortableIri(url)) return await dereferencePortable(url);
38338
+ if (isPortableIri(url)) {
38339
+ // A reference in a portable actor's own document, e.g., its outbox,
38340
+ // has no location hints, so the actor's gateways are used instead:
38341
+ return await dereferencePortable(
38342
+ url,
38343
+ options.gateways == null
38344
+ ? { inferredGateways: getReferrerGateways(this, url) }
38345
+ : {},
38346
+ );
38347
+ }
37987
38348
  const lookupUrl = formatIri(url);
37988
38349
  const portableMode = isPortableMode(this, options);
37989
38350
  if (portableMode) {
@@ -39751,7 +40112,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
39751
40112
  span.end();
39752
40113
  }
39753
40114
  };
39754
- if (isPortableIri(url)) return await dereferencePortable(url);
40115
+ if (isPortableIri(url)) {
40116
+ // A reference in a portable actor's own document, e.g., its outbox,
40117
+ // has no location hints, so the actor's gateways are used instead:
40118
+ return await dereferencePortable(
40119
+ url,
40120
+ options.gateways == null
40121
+ ? { inferredGateways: getReferrerGateways(this, url) }
40122
+ : {},
40123
+ );
40124
+ }
39755
40125
  const lookupUrl = formatIri(url);
39756
40126
  const portableMode = isPortableMode(this, options);
39757
40127
  if (portableMode) {
@@ -40159,7 +40529,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
40159
40529
  span.end();
40160
40530
  }
40161
40531
  };
40162
- if (isPortableIri(url)) return await dereferencePortable(url);
40532
+ if (isPortableIri(url)) {
40533
+ // A reference in a portable actor's own document, e.g., its outbox,
40534
+ // has no location hints, so the actor's gateways are used instead:
40535
+ return await dereferencePortable(
40536
+ url,
40537
+ options.gateways == null
40538
+ ? { inferredGateways: getReferrerGateways(this, url) }
40539
+ : {},
40540
+ );
40541
+ }
40163
40542
  const lookupUrl = formatIri(url);
40164
40543
  const portableMode = isPortableMode(this, options);
40165
40544
  if (portableMode) {
@@ -42018,7 +42397,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
42018
42397
  span.end();
42019
42398
  }
42020
42399
  };
42021
- if (isPortableIri(url)) return await dereferencePortable(url);
42400
+ if (isPortableIri(url)) {
42401
+ // A reference in a portable actor's own document, e.g., its outbox,
42402
+ // has no location hints, so the actor's gateways are used instead:
42403
+ return await dereferencePortable(
42404
+ url,
42405
+ options.gateways == null
42406
+ ? { inferredGateways: getReferrerGateways(this, url) }
42407
+ : {},
42408
+ );
42409
+ }
42022
42410
  const lookupUrl = formatIri(url);
42023
42411
  const portableMode = isPortableMode(this, options);
42024
42412
  if (portableMode) {
@@ -42428,7 +42816,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
42428
42816
  span.end();
42429
42817
  }
42430
42818
  };
42431
- if (isPortableIri(url)) return await dereferencePortable(url);
42819
+ if (isPortableIri(url)) {
42820
+ // A reference in a portable actor's own document, e.g., its outbox,
42821
+ // has no location hints, so the actor's gateways are used instead:
42822
+ return await dereferencePortable(
42823
+ url,
42824
+ options.gateways == null
42825
+ ? { inferredGateways: getReferrerGateways(this, url) }
42826
+ : {},
42827
+ );
42828
+ }
42432
42829
  const lookupUrl = formatIri(url);
42433
42830
  const portableMode = isPortableMode(this, options);
42434
42831
  if (portableMode) {
@@ -42838,7 +43235,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
42838
43235
  span.end();
42839
43236
  }
42840
43237
  };
42841
- if (isPortableIri(url)) return await dereferencePortable(url);
43238
+ if (isPortableIri(url)) {
43239
+ // A reference in a portable actor's own document, e.g., its outbox,
43240
+ // has no location hints, so the actor's gateways are used instead:
43241
+ return await dereferencePortable(
43242
+ url,
43243
+ options.gateways == null
43244
+ ? { inferredGateways: getReferrerGateways(this, url) }
43245
+ : {},
43246
+ );
43247
+ }
42842
43248
  const lookupUrl = formatIri(url);
42843
43249
  const portableMode = isPortableMode(this, options);
42844
43250
  if (portableMode) {
@@ -43248,7 +43654,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
43248
43654
  span.end();
43249
43655
  }
43250
43656
  };
43251
- if (isPortableIri(url)) return await dereferencePortable(url);
43657
+ if (isPortableIri(url)) {
43658
+ // A reference in a portable actor's own document, e.g., its outbox,
43659
+ // has no location hints, so the actor's gateways are used instead:
43660
+ return await dereferencePortable(
43661
+ url,
43662
+ options.gateways == null
43663
+ ? { inferredGateways: getReferrerGateways(this, url) }
43664
+ : {},
43665
+ );
43666
+ }
43252
43667
  const lookupUrl = formatIri(url);
43253
43668
  const portableMode = isPortableMode(this, options);
43254
43669
  if (portableMode) {
@@ -43678,7 +44093,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
43678
44093
  span.end();
43679
44094
  }
43680
44095
  };
43681
- if (isPortableIri(url)) return await dereferencePortable(url);
44096
+ if (isPortableIri(url)) {
44097
+ // A reference in a portable actor's own document, e.g., its outbox,
44098
+ // has no location hints, so the actor's gateways are used instead:
44099
+ return await dereferencePortable(
44100
+ url,
44101
+ options.gateways == null
44102
+ ? { inferredGateways: getReferrerGateways(this, url) }
44103
+ : {},
44104
+ );
44105
+ }
43682
44106
  const lookupUrl = formatIri(url);
43683
44107
  const portableMode = isPortableMode(this, options);
43684
44108
  if (portableMode) {
@@ -44087,7 +44511,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44087
44511
  span.end();
44088
44512
  }
44089
44513
  };
44090
- if (isPortableIri(url)) return await dereferencePortable(url);
44514
+ if (isPortableIri(url)) {
44515
+ // A reference in a portable actor's own document, e.g., its outbox,
44516
+ // has no location hints, so the actor's gateways are used instead:
44517
+ return await dereferencePortable(
44518
+ url,
44519
+ options.gateways == null
44520
+ ? { inferredGateways: getReferrerGateways(this, url) }
44521
+ : {},
44522
+ );
44523
+ }
44091
44524
  const lookupUrl = formatIri(url);
44092
44525
  const portableMode = isPortableMode(this, options);
44093
44526
  if (portableMode) {
@@ -44496,7 +44929,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44496
44929
  span.end();
44497
44930
  }
44498
44931
  };
44499
- if (isPortableIri(url)) return await dereferencePortable(url);
44932
+ if (isPortableIri(url)) {
44933
+ // A reference in a portable actor's own document, e.g., its outbox,
44934
+ // has no location hints, so the actor's gateways are used instead:
44935
+ return await dereferencePortable(
44936
+ url,
44937
+ options.gateways == null
44938
+ ? { inferredGateways: getReferrerGateways(this, url) }
44939
+ : {},
44940
+ );
44941
+ }
44500
44942
  const lookupUrl = formatIri(url);
44501
44943
  const portableMode = isPortableMode(this, options);
44502
44944
  if (portableMode) {
@@ -44905,7 +45347,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44905
45347
  span.end();
44906
45348
  }
44907
45349
  };
44908
- if (isPortableIri(url)) return await dereferencePortable(url);
45350
+ if (isPortableIri(url)) {
45351
+ // A reference in a portable actor's own document, e.g., its outbox,
45352
+ // has no location hints, so the actor's gateways are used instead:
45353
+ return await dereferencePortable(
45354
+ url,
45355
+ options.gateways == null
45356
+ ? { inferredGateways: getReferrerGateways(this, url) }
45357
+ : {},
45358
+ );
45359
+ }
44909
45360
  const lookupUrl = formatIri(url);
44910
45361
  const portableMode = isPortableMode(this, options);
44911
45362
  if (portableMode) {
@@ -45314,7 +45765,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45314
45765
  span.end();
45315
45766
  }
45316
45767
  };
45317
- if (isPortableIri(url)) return await dereferencePortable(url);
45768
+ if (isPortableIri(url)) {
45769
+ // A reference in a portable actor's own document, e.g., its outbox,
45770
+ // has no location hints, so the actor's gateways are used instead:
45771
+ return await dereferencePortable(
45772
+ url,
45773
+ options.gateways == null
45774
+ ? { inferredGateways: getReferrerGateways(this, url) }
45775
+ : {},
45776
+ );
45777
+ }
45318
45778
  const lookupUrl = formatIri(url);
45319
45779
  const portableMode = isPortableMode(this, options);
45320
45780
  if (portableMode) {
@@ -45723,7 +46183,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45723
46183
  span.end();
45724
46184
  }
45725
46185
  };
45726
- if (isPortableIri(url)) return await dereferencePortable(url);
46186
+ if (isPortableIri(url)) {
46187
+ // A reference in a portable actor's own document, e.g., its outbox,
46188
+ // has no location hints, so the actor's gateways are used instead:
46189
+ return await dereferencePortable(
46190
+ url,
46191
+ options.gateways == null
46192
+ ? { inferredGateways: getReferrerGateways(this, url) }
46193
+ : {},
46194
+ );
46195
+ }
45727
46196
  const lookupUrl = formatIri(url);
45728
46197
  const portableMode = isPortableMode(this, options);
45729
46198
  if (portableMode) {
@@ -46132,7 +46601,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46132
46601
  span.end();
46133
46602
  }
46134
46603
  };
46135
- if (isPortableIri(url)) return await dereferencePortable(url);
46604
+ if (isPortableIri(url)) {
46605
+ // A reference in a portable actor's own document, e.g., its outbox,
46606
+ // has no location hints, so the actor's gateways are used instead:
46607
+ return await dereferencePortable(
46608
+ url,
46609
+ options.gateways == null
46610
+ ? { inferredGateways: getReferrerGateways(this, url) }
46611
+ : {},
46612
+ );
46613
+ }
46136
46614
  const lookupUrl = formatIri(url);
46137
46615
  const portableMode = isPortableMode(this, options);
46138
46616
  if (portableMode) {
@@ -46541,7 +47019,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46541
47019
  span.end();
46542
47020
  }
46543
47021
  };
46544
- if (isPortableIri(url)) return await dereferencePortable(url);
47022
+ if (isPortableIri(url)) {
47023
+ // A reference in a portable actor's own document, e.g., its outbox,
47024
+ // has no location hints, so the actor's gateways are used instead:
47025
+ return await dereferencePortable(
47026
+ url,
47027
+ options.gateways == null
47028
+ ? { inferredGateways: getReferrerGateways(this, url) }
47029
+ : {},
47030
+ );
47031
+ }
46545
47032
  const lookupUrl = formatIri(url);
46546
47033
  const portableMode = isPortableMode(this, options);
46547
47034
  if (portableMode) {
@@ -48743,7 +49230,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
48743
49230
  span.end();
48744
49231
  }
48745
49232
  };
48746
- if (isPortableIri(url)) return await dereferencePortable(url);
49233
+ if (isPortableIri(url)) {
49234
+ // A reference in a portable actor's own document, e.g., its outbox,
49235
+ // has no location hints, so the actor's gateways are used instead:
49236
+ return await dereferencePortable(
49237
+ url,
49238
+ options.gateways == null
49239
+ ? { inferredGateways: getReferrerGateways(this, url) }
49240
+ : {},
49241
+ );
49242
+ }
48747
49243
  const lookupUrl = formatIri(url);
48748
49244
  const portableMode = isPortableMode(this, options);
48749
49245
  if (portableMode) {
@@ -50454,7 +50950,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
50454
50950
  span.end();
50455
50951
  }
50456
50952
  };
50457
- if (isPortableIri(url)) return await dereferencePortable(url);
50953
+ if (isPortableIri(url)) {
50954
+ // A reference in a portable actor's own document, e.g., its outbox,
50955
+ // has no location hints, so the actor's gateways are used instead:
50956
+ return await dereferencePortable(
50957
+ url,
50958
+ options.gateways == null
50959
+ ? { inferredGateways: getReferrerGateways(this, url) }
50960
+ : {},
50961
+ );
50962
+ }
50458
50963
  const lookupUrl = formatIri(url);
50459
50964
  const portableMode = isPortableMode(this, options);
50460
50965
  if (portableMode) {
@@ -50862,7 +51367,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
50862
51367
  span.end();
50863
51368
  }
50864
51369
  };
50865
- if (isPortableIri(url)) return await dereferencePortable(url);
51370
+ if (isPortableIri(url)) {
51371
+ // A reference in a portable actor's own document, e.g., its outbox,
51372
+ // has no location hints, so the actor's gateways are used instead:
51373
+ return await dereferencePortable(
51374
+ url,
51375
+ options.gateways == null
51376
+ ? { inferredGateways: getReferrerGateways(this, url) }
51377
+ : {},
51378
+ );
51379
+ }
50866
51380
  const lookupUrl = formatIri(url);
50867
51381
  const portableMode = isPortableMode(this, options);
50868
51382
  if (portableMode) {
@@ -53100,7 +53614,16 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL |
53100
53614
  span.end();
53101
53615
  }
53102
53616
  };
53103
- if (isPortableIri(url)) return await dereferencePortable(url);
53617
+ if (isPortableIri(url)) {
53618
+ // A reference in a portable actor's own document, e.g., its outbox,
53619
+ // has no location hints, so the actor's gateways are used instead:
53620
+ return await dereferencePortable(
53621
+ url,
53622
+ options.gateways == null
53623
+ ? { inferredGateways: getReferrerGateways(this, url) }
53624
+ : {},
53625
+ );
53626
+ }
53104
53627
  const lookupUrl = formatIri(url);
53105
53628
  const portableMode = isPortableMode(this, options);
53106
53629
  if (portableMode) {
@@ -54404,7 +54927,16 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
54404
54927
  span.end();
54405
54928
  }
54406
54929
  };
54407
- if (isPortableIri(url)) return await dereferencePortable(url);
54930
+ if (isPortableIri(url)) {
54931
+ // A reference in a portable actor's own document, e.g., its outbox,
54932
+ // has no location hints, so the actor's gateways are used instead:
54933
+ return await dereferencePortable(
54934
+ url,
54935
+ options.gateways == null
54936
+ ? { inferredGateways: getReferrerGateways(this, url) }
54937
+ : {},
54938
+ );
54939
+ }
54408
54940
  const lookupUrl = formatIri(url);
54409
54941
  const portableMode = isPortableMode(this, options);
54410
54942
  if (portableMode) {
@@ -55632,7 +56164,16 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
55632
56164
  span.end();
55633
56165
  }
55634
56166
  };
55635
- if (isPortableIri(url)) return await dereferencePortable(url);
56167
+ if (isPortableIri(url)) {
56168
+ // A reference in a portable actor's own document, e.g., its outbox,
56169
+ // has no location hints, so the actor's gateways are used instead:
56170
+ return await dereferencePortable(
56171
+ url,
56172
+ options.gateways == null
56173
+ ? { inferredGateways: getReferrerGateways(this, url) }
56174
+ : {},
56175
+ );
56176
+ }
55636
56177
  const lookupUrl = formatIri(url);
55637
56178
  const portableMode = isPortableMode(this, options);
55638
56179
  if (portableMode) {
@@ -62534,7 +63075,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
62534
63075
  span.end();
62535
63076
  }
62536
63077
  };
62537
- if (isPortableIri(url)) return await dereferencePortable(url);
63078
+ if (isPortableIri(url)) {
63079
+ // A reference in a portable actor's own document, e.g., its outbox,
63080
+ // has no location hints, so the actor's gateways are used instead:
63081
+ return await dereferencePortable(
63082
+ url,
63083
+ options.gateways == null
63084
+ ? { inferredGateways: getReferrerGateways(this, url) }
63085
+ : {},
63086
+ );
63087
+ }
62538
63088
  const lookupUrl = formatIri(url);
62539
63089
  const portableMode = isPortableMode(this, options);
62540
63090
  if (portableMode) {
@@ -63102,7 +63652,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
63102
63652
  span.end();
63103
63653
  }
63104
63654
  };
63105
- if (isPortableIri(url)) return await dereferencePortable(url);
63655
+ if (isPortableIri(url)) {
63656
+ // A reference in a portable actor's own document, e.g., its outbox,
63657
+ // has no location hints, so the actor's gateways are used instead:
63658
+ return await dereferencePortable(
63659
+ url,
63660
+ options.gateways == null
63661
+ ? { inferredGateways: getReferrerGateways(this, url) }
63662
+ : {},
63663
+ );
63664
+ }
63106
63665
  const lookupUrl = formatIri(url);
63107
63666
  const portableMode = isPortableMode(this, options);
63108
63667
  if (portableMode) {
@@ -63724,7 +64283,16 @@ get gateways(): (URL)[] {
63724
64283
  span.end();
63725
64284
  }
63726
64285
  };
63727
- if (isPortableIri(url)) return await dereferencePortable(url);
64286
+ if (isPortableIri(url)) {
64287
+ // A reference in a portable actor's own document, e.g., its outbox,
64288
+ // has no location hints, so the actor's gateways are used instead:
64289
+ return await dereferencePortable(
64290
+ url,
64291
+ options.gateways == null
64292
+ ? { inferredGateways: getReferrerGateways(this, url) }
64293
+ : {},
64294
+ );
64295
+ }
63728
64296
  const lookupUrl = formatIri(url);
63729
64297
  const portableMode = isPortableMode(this, options);
63730
64298
  if (portableMode) {
@@ -64160,7 +64728,16 @@ get gateways(): (URL)[] {
64160
64728
  span.end();
64161
64729
  }
64162
64730
  };
64163
- if (isPortableIri(url)) return await dereferencePortable(url);
64731
+ if (isPortableIri(url)) {
64732
+ // A reference in a portable actor's own document, e.g., its outbox,
64733
+ // has no location hints, so the actor's gateways are used instead:
64734
+ return await dereferencePortable(
64735
+ url,
64736
+ options.gateways == null
64737
+ ? { inferredGateways: getReferrerGateways(this, url) }
64738
+ : {},
64739
+ );
64740
+ }
64164
64741
  const lookupUrl = formatIri(url);
64165
64742
  const portableMode = isPortableMode(this, options);
64166
64743
  if (portableMode) {
@@ -64593,7 +65170,16 @@ get gateways(): (URL)[] {
64593
65170
  span.end();
64594
65171
  }
64595
65172
  };
64596
- if (isPortableIri(url)) return await dereferencePortable(url);
65173
+ if (isPortableIri(url)) {
65174
+ // A reference in a portable actor's own document, e.g., its outbox,
65175
+ // has no location hints, so the actor's gateways are used instead:
65176
+ return await dereferencePortable(
65177
+ url,
65178
+ options.gateways == null
65179
+ ? { inferredGateways: getReferrerGateways(this, url) }
65180
+ : {},
65181
+ );
65182
+ }
64597
65183
  const lookupUrl = formatIri(url);
64598
65184
  const portableMode = isPortableMode(this, options);
64599
65185
  if (portableMode) {
@@ -65006,7 +65592,16 @@ get gateways(): (URL)[] {
65006
65592
  span.end();
65007
65593
  }
65008
65594
  };
65009
- if (isPortableIri(url)) return await dereferencePortable(url);
65595
+ if (isPortableIri(url)) {
65596
+ // A reference in a portable actor's own document, e.g., its outbox,
65597
+ // has no location hints, so the actor's gateways are used instead:
65598
+ return await dereferencePortable(
65599
+ url,
65600
+ options.gateways == null
65601
+ ? { inferredGateways: getReferrerGateways(this, url) }
65602
+ : {},
65603
+ );
65604
+ }
65010
65605
  const lookupUrl = formatIri(url);
65011
65606
  const portableMode = isPortableMode(this, options);
65012
65607
  if (portableMode) {
@@ -65422,7 +66017,16 @@ get gateways(): (URL)[] {
65422
66017
  span.end();
65423
66018
  }
65424
66019
  };
65425
- if (isPortableIri(url)) return await dereferencePortable(url);
66020
+ if (isPortableIri(url)) {
66021
+ // A reference in a portable actor's own document, e.g., its outbox,
66022
+ // has no location hints, so the actor's gateways are used instead:
66023
+ return await dereferencePortable(
66024
+ url,
66025
+ options.gateways == null
66026
+ ? { inferredGateways: getReferrerGateways(this, url) }
66027
+ : {},
66028
+ );
66029
+ }
65426
66030
  const lookupUrl = formatIri(url);
65427
66031
  const portableMode = isPortableMode(this, options);
65428
66032
  if (portableMode) {
@@ -65836,7 +66440,16 @@ get gateways(): (URL)[] {
65836
66440
  span.end();
65837
66441
  }
65838
66442
  };
65839
- if (isPortableIri(url)) return await dereferencePortable(url);
66443
+ if (isPortableIri(url)) {
66444
+ // A reference in a portable actor's own document, e.g., its outbox,
66445
+ // has no location hints, so the actor's gateways are used instead:
66446
+ return await dereferencePortable(
66447
+ url,
66448
+ options.gateways == null
66449
+ ? { inferredGateways: getReferrerGateways(this, url) }
66450
+ : {},
66451
+ );
66452
+ }
65840
66453
  const lookupUrl = formatIri(url);
65841
66454
  const portableMode = isPortableMode(this, options);
65842
66455
  if (portableMode) {
@@ -66248,7 +66861,16 @@ get gateways(): (URL)[] {
66248
66861
  span.end();
66249
66862
  }
66250
66863
  };
66251
- if (isPortableIri(url)) return await dereferencePortable(url);
66864
+ if (isPortableIri(url)) {
66865
+ // A reference in a portable actor's own document, e.g., its outbox,
66866
+ // has no location hints, so the actor's gateways are used instead:
66867
+ return await dereferencePortable(
66868
+ url,
66869
+ options.gateways == null
66870
+ ? { inferredGateways: getReferrerGateways(this, url) }
66871
+ : {},
66872
+ );
66873
+ }
66252
66874
  const lookupUrl = formatIri(url);
66253
66875
  const portableMode = isPortableMode(this, options);
66254
66876
  if (portableMode) {
@@ -66660,7 +67282,16 @@ get gateways(): (URL)[] {
66660
67282
  span.end();
66661
67283
  }
66662
67284
  };
66663
- if (isPortableIri(url)) return await dereferencePortable(url);
67285
+ if (isPortableIri(url)) {
67286
+ // A reference in a portable actor's own document, e.g., its outbox,
67287
+ // has no location hints, so the actor's gateways are used instead:
67288
+ return await dereferencePortable(
67289
+ url,
67290
+ options.gateways == null
67291
+ ? { inferredGateways: getReferrerGateways(this, url) }
67292
+ : {},
67293
+ );
67294
+ }
66664
67295
  const lookupUrl = formatIri(url);
66665
67296
  const portableMode = isPortableMode(this, options);
66666
67297
  if (portableMode) {
@@ -67069,7 +67700,16 @@ get gateways(): (URL)[] {
67069
67700
  span.end();
67070
67701
  }
67071
67702
  };
67072
- if (isPortableIri(url)) return await dereferencePortable(url);
67703
+ if (isPortableIri(url)) {
67704
+ // A reference in a portable actor's own document, e.g., its outbox,
67705
+ // has no location hints, so the actor's gateways are used instead:
67706
+ return await dereferencePortable(
67707
+ url,
67708
+ options.gateways == null
67709
+ ? { inferredGateways: getReferrerGateways(this, url) }
67710
+ : {},
67711
+ );
67712
+ }
67073
67713
  const lookupUrl = formatIri(url);
67074
67714
  const portableMode = isPortableMode(this, options);
67075
67715
  if (portableMode) {
@@ -67558,7 +68198,16 @@ get gateways(): (URL)[] {
67558
68198
  span.end();
67559
68199
  }
67560
68200
  };
67561
- if (isPortableIri(url)) return await dereferencePortable(url);
68201
+ if (isPortableIri(url)) {
68202
+ // A reference in a portable actor's own document, e.g., its outbox,
68203
+ // has no location hints, so the actor's gateways are used instead:
68204
+ return await dereferencePortable(
68205
+ url,
68206
+ options.gateways == null
68207
+ ? { inferredGateways: getReferrerGateways(this, url) }
68208
+ : {},
68209
+ );
68210
+ }
67562
68211
  const lookupUrl = formatIri(url);
67563
68212
  const portableMode = isPortableMode(this, options);
67564
68213
  if (portableMode) {
@@ -68026,7 +68675,16 @@ get gateways(): (URL)[] {
68026
68675
  span.end();
68027
68676
  }
68028
68677
  };
68029
- if (isPortableIri(url)) return await dereferencePortable(url);
68678
+ if (isPortableIri(url)) {
68679
+ // A reference in a portable actor's own document, e.g., its outbox,
68680
+ // has no location hints, so the actor's gateways are used instead:
68681
+ return await dereferencePortable(
68682
+ url,
68683
+ options.gateways == null
68684
+ ? { inferredGateways: getReferrerGateways(this, url) }
68685
+ : {},
68686
+ );
68687
+ }
68030
68688
  const lookupUrl = formatIri(url);
68031
68689
  const portableMode = isPortableMode(this, options);
68032
68690
  if (portableMode) {
@@ -68662,7 +69320,16 @@ get gateways(): (URL)[] {
68662
69320
  span.end();
68663
69321
  }
68664
69322
  };
68665
- if (isPortableIri(url)) return await dereferencePortable(url);
69323
+ if (isPortableIri(url)) {
69324
+ // A reference in a portable actor's own document, e.g., its outbox,
69325
+ // has no location hints, so the actor's gateways are used instead:
69326
+ return await dereferencePortable(
69327
+ url,
69328
+ options.gateways == null
69329
+ ? { inferredGateways: getReferrerGateways(this, url) }
69330
+ : {},
69331
+ );
69332
+ }
68666
69333
  const lookupUrl = formatIri(url);
68667
69334
  const portableMode = isPortableMode(this, options);
68668
69335
  if (portableMode) {
@@ -73030,7 +73697,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
73030
73697
  span.end();
73031
73698
  }
73032
73699
  };
73033
- if (isPortableIri(url)) return await dereferencePortable(url);
73700
+ if (isPortableIri(url)) {
73701
+ // A reference in a portable actor's own document, e.g., its outbox,
73702
+ // has no location hints, so the actor's gateways are used instead:
73703
+ return await dereferencePortable(
73704
+ url,
73705
+ options.gateways == null
73706
+ ? { inferredGateways: getReferrerGateways(this, url) }
73707
+ : {},
73708
+ );
73709
+ }
73034
73710
  const lookupUrl = formatIri(url);
73035
73711
  const portableMode = isPortableMode(this, options);
73036
73712
  if (portableMode) {
@@ -73464,7 +74140,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
73464
74140
  span.end();
73465
74141
  }
73466
74142
  };
73467
- if (isPortableIri(url)) return await dereferencePortable(url);
74143
+ if (isPortableIri(url)) {
74144
+ // A reference in a portable actor's own document, e.g., its outbox,
74145
+ // has no location hints, so the actor's gateways are used instead:
74146
+ return await dereferencePortable(
74147
+ url,
74148
+ options.gateways == null
74149
+ ? { inferredGateways: getReferrerGateways(this, url) }
74150
+ : {},
74151
+ );
74152
+ }
73468
74153
  const lookupUrl = formatIri(url);
73469
74154
  const portableMode = isPortableMode(this, options);
73470
74155
  if (portableMode) {
@@ -76776,7 +77461,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
76776
77461
  span.end();
76777
77462
  }
76778
77463
  };
76779
- if (isPortableIri(url)) return await dereferencePortable(url);
77464
+ if (isPortableIri(url)) {
77465
+ // A reference in a portable actor's own document, e.g., its outbox,
77466
+ // has no location hints, so the actor's gateways are used instead:
77467
+ return await dereferencePortable(
77468
+ url,
77469
+ options.gateways == null
77470
+ ? { inferredGateways: getReferrerGateways(this, url) }
77471
+ : {},
77472
+ );
77473
+ }
76780
77474
  const lookupUrl = formatIri(url);
76781
77475
  const portableMode = isPortableMode(this, options);
76782
77476
  if (portableMode) {
@@ -77186,7 +77880,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
77186
77880
  span.end();
77187
77881
  }
77188
77882
  };
77189
- if (isPortableIri(url)) return await dereferencePortable(url);
77883
+ if (isPortableIri(url)) {
77884
+ // A reference in a portable actor's own document, e.g., its outbox,
77885
+ // has no location hints, so the actor's gateways are used instead:
77886
+ return await dereferencePortable(
77887
+ url,
77888
+ options.gateways == null
77889
+ ? { inferredGateways: getReferrerGateways(this, url) }
77890
+ : {},
77891
+ );
77892
+ }
77190
77893
  const lookupUrl = formatIri(url);
77191
77894
  const portableMode = isPortableMode(this, options);
77192
77895
  if (portableMode) {
@@ -77594,7 +78297,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
77594
78297
  span.end();
77595
78298
  }
77596
78299
  };
77597
- if (isPortableIri(url)) return await dereferencePortable(url);
78300
+ if (isPortableIri(url)) {
78301
+ // A reference in a portable actor's own document, e.g., its outbox,
78302
+ // has no location hints, so the actor's gateways are used instead:
78303
+ return await dereferencePortable(
78304
+ url,
78305
+ options.gateways == null
78306
+ ? { inferredGateways: getReferrerGateways(this, url) }
78307
+ : {},
78308
+ );
78309
+ }
77598
78310
  const lookupUrl = formatIri(url);
77599
78311
  const portableMode = isPortableMode(this, options);
77600
78312
  if (portableMode) {
@@ -83632,7 +84344,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
83632
84344
  span.end();
83633
84345
  }
83634
84346
  };
83635
- if (isPortableIri(url)) return await dereferencePortable(url);
84347
+ if (isPortableIri(url)) {
84348
+ // A reference in a portable actor's own document, e.g., its outbox,
84349
+ // has no location hints, so the actor's gateways are used instead:
84350
+ return await dereferencePortable(
84351
+ url,
84352
+ options.gateways == null
84353
+ ? { inferredGateways: getReferrerGateways(this, url) }
84354
+ : {},
84355
+ );
84356
+ }
83636
84357
  const lookupUrl = formatIri(url);
83637
84358
  const portableMode = isPortableMode(this, options);
83638
84359
  if (portableMode) {
@@ -84200,7 +84921,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
84200
84921
  span.end();
84201
84922
  }
84202
84923
  };
84203
- if (isPortableIri(url)) return await dereferencePortable(url);
84924
+ if (isPortableIri(url)) {
84925
+ // A reference in a portable actor's own document, e.g., its outbox,
84926
+ // has no location hints, so the actor's gateways are used instead:
84927
+ return await dereferencePortable(
84928
+ url,
84929
+ options.gateways == null
84930
+ ? { inferredGateways: getReferrerGateways(this, url) }
84931
+ : {},
84932
+ );
84933
+ }
84204
84934
  const lookupUrl = formatIri(url);
84205
84935
  const portableMode = isPortableMode(this, options);
84206
84936
  if (portableMode) {
@@ -84822,7 +85552,16 @@ get gateways(): (URL)[] {
84822
85552
  span.end();
84823
85553
  }
84824
85554
  };
84825
- if (isPortableIri(url)) return await dereferencePortable(url);
85555
+ if (isPortableIri(url)) {
85556
+ // A reference in a portable actor's own document, e.g., its outbox,
85557
+ // has no location hints, so the actor's gateways are used instead:
85558
+ return await dereferencePortable(
85559
+ url,
85560
+ options.gateways == null
85561
+ ? { inferredGateways: getReferrerGateways(this, url) }
85562
+ : {},
85563
+ );
85564
+ }
84826
85565
  const lookupUrl = formatIri(url);
84827
85566
  const portableMode = isPortableMode(this, options);
84828
85567
  if (portableMode) {
@@ -85258,7 +85997,16 @@ get gateways(): (URL)[] {
85258
85997
  span.end();
85259
85998
  }
85260
85999
  };
85261
- if (isPortableIri(url)) return await dereferencePortable(url);
86000
+ if (isPortableIri(url)) {
86001
+ // A reference in a portable actor's own document, e.g., its outbox,
86002
+ // has no location hints, so the actor's gateways are used instead:
86003
+ return await dereferencePortable(
86004
+ url,
86005
+ options.gateways == null
86006
+ ? { inferredGateways: getReferrerGateways(this, url) }
86007
+ : {},
86008
+ );
86009
+ }
85262
86010
  const lookupUrl = formatIri(url);
85263
86011
  const portableMode = isPortableMode(this, options);
85264
86012
  if (portableMode) {
@@ -85691,7 +86439,16 @@ get gateways(): (URL)[] {
85691
86439
  span.end();
85692
86440
  }
85693
86441
  };
85694
- if (isPortableIri(url)) return await dereferencePortable(url);
86442
+ if (isPortableIri(url)) {
86443
+ // A reference in a portable actor's own document, e.g., its outbox,
86444
+ // has no location hints, so the actor's gateways are used instead:
86445
+ return await dereferencePortable(
86446
+ url,
86447
+ options.gateways == null
86448
+ ? { inferredGateways: getReferrerGateways(this, url) }
86449
+ : {},
86450
+ );
86451
+ }
85695
86452
  const lookupUrl = formatIri(url);
85696
86453
  const portableMode = isPortableMode(this, options);
85697
86454
  if (portableMode) {
@@ -86104,7 +86861,16 @@ get gateways(): (URL)[] {
86104
86861
  span.end();
86105
86862
  }
86106
86863
  };
86107
- if (isPortableIri(url)) return await dereferencePortable(url);
86864
+ if (isPortableIri(url)) {
86865
+ // A reference in a portable actor's own document, e.g., its outbox,
86866
+ // has no location hints, so the actor's gateways are used instead:
86867
+ return await dereferencePortable(
86868
+ url,
86869
+ options.gateways == null
86870
+ ? { inferredGateways: getReferrerGateways(this, url) }
86871
+ : {},
86872
+ );
86873
+ }
86108
86874
  const lookupUrl = formatIri(url);
86109
86875
  const portableMode = isPortableMode(this, options);
86110
86876
  if (portableMode) {
@@ -86520,7 +87286,16 @@ get gateways(): (URL)[] {
86520
87286
  span.end();
86521
87287
  }
86522
87288
  };
86523
- if (isPortableIri(url)) return await dereferencePortable(url);
87289
+ if (isPortableIri(url)) {
87290
+ // A reference in a portable actor's own document, e.g., its outbox,
87291
+ // has no location hints, so the actor's gateways are used instead:
87292
+ return await dereferencePortable(
87293
+ url,
87294
+ options.gateways == null
87295
+ ? { inferredGateways: getReferrerGateways(this, url) }
87296
+ : {},
87297
+ );
87298
+ }
86524
87299
  const lookupUrl = formatIri(url);
86525
87300
  const portableMode = isPortableMode(this, options);
86526
87301
  if (portableMode) {
@@ -86934,7 +87709,16 @@ get gateways(): (URL)[] {
86934
87709
  span.end();
86935
87710
  }
86936
87711
  };
86937
- if (isPortableIri(url)) return await dereferencePortable(url);
87712
+ if (isPortableIri(url)) {
87713
+ // A reference in a portable actor's own document, e.g., its outbox,
87714
+ // has no location hints, so the actor's gateways are used instead:
87715
+ return await dereferencePortable(
87716
+ url,
87717
+ options.gateways == null
87718
+ ? { inferredGateways: getReferrerGateways(this, url) }
87719
+ : {},
87720
+ );
87721
+ }
86938
87722
  const lookupUrl = formatIri(url);
86939
87723
  const portableMode = isPortableMode(this, options);
86940
87724
  if (portableMode) {
@@ -87346,7 +88130,16 @@ get gateways(): (URL)[] {
87346
88130
  span.end();
87347
88131
  }
87348
88132
  };
87349
- if (isPortableIri(url)) return await dereferencePortable(url);
88133
+ if (isPortableIri(url)) {
88134
+ // A reference in a portable actor's own document, e.g., its outbox,
88135
+ // has no location hints, so the actor's gateways are used instead:
88136
+ return await dereferencePortable(
88137
+ url,
88138
+ options.gateways == null
88139
+ ? { inferredGateways: getReferrerGateways(this, url) }
88140
+ : {},
88141
+ );
88142
+ }
87350
88143
  const lookupUrl = formatIri(url);
87351
88144
  const portableMode = isPortableMode(this, options);
87352
88145
  if (portableMode) {
@@ -87758,7 +88551,16 @@ get gateways(): (URL)[] {
87758
88551
  span.end();
87759
88552
  }
87760
88553
  };
87761
- if (isPortableIri(url)) return await dereferencePortable(url);
88554
+ if (isPortableIri(url)) {
88555
+ // A reference in a portable actor's own document, e.g., its outbox,
88556
+ // has no location hints, so the actor's gateways are used instead:
88557
+ return await dereferencePortable(
88558
+ url,
88559
+ options.gateways == null
88560
+ ? { inferredGateways: getReferrerGateways(this, url) }
88561
+ : {},
88562
+ );
88563
+ }
87762
88564
  const lookupUrl = formatIri(url);
87763
88565
  const portableMode = isPortableMode(this, options);
87764
88566
  if (portableMode) {
@@ -88167,7 +88969,16 @@ get gateways(): (URL)[] {
88167
88969
  span.end();
88168
88970
  }
88169
88971
  };
88170
- if (isPortableIri(url)) return await dereferencePortable(url);
88972
+ if (isPortableIri(url)) {
88973
+ // A reference in a portable actor's own document, e.g., its outbox,
88974
+ // has no location hints, so the actor's gateways are used instead:
88975
+ return await dereferencePortable(
88976
+ url,
88977
+ options.gateways == null
88978
+ ? { inferredGateways: getReferrerGateways(this, url) }
88979
+ : {},
88980
+ );
88981
+ }
88171
88982
  const lookupUrl = formatIri(url);
88172
88983
  const portableMode = isPortableMode(this, options);
88173
88984
  if (portableMode) {
@@ -88656,7 +89467,16 @@ get gateways(): (URL)[] {
88656
89467
  span.end();
88657
89468
  }
88658
89469
  };
88659
- if (isPortableIri(url)) return await dereferencePortable(url);
89470
+ if (isPortableIri(url)) {
89471
+ // A reference in a portable actor's own document, e.g., its outbox,
89472
+ // has no location hints, so the actor's gateways are used instead:
89473
+ return await dereferencePortable(
89474
+ url,
89475
+ options.gateways == null
89476
+ ? { inferredGateways: getReferrerGateways(this, url) }
89477
+ : {},
89478
+ );
89479
+ }
88660
89480
  const lookupUrl = formatIri(url);
88661
89481
  const portableMode = isPortableMode(this, options);
88662
89482
  if (portableMode) {
@@ -89124,7 +89944,16 @@ get gateways(): (URL)[] {
89124
89944
  span.end();
89125
89945
  }
89126
89946
  };
89127
- if (isPortableIri(url)) return await dereferencePortable(url);
89947
+ if (isPortableIri(url)) {
89948
+ // A reference in a portable actor's own document, e.g., its outbox,
89949
+ // has no location hints, so the actor's gateways are used instead:
89950
+ return await dereferencePortable(
89951
+ url,
89952
+ options.gateways == null
89953
+ ? { inferredGateways: getReferrerGateways(this, url) }
89954
+ : {},
89955
+ );
89956
+ }
89128
89957
  const lookupUrl = formatIri(url);
89129
89958
  const portableMode = isPortableMode(this, options);
89130
89959
  if (portableMode) {
@@ -89760,7 +90589,16 @@ get gateways(): (URL)[] {
89760
90589
  span.end();
89761
90590
  }
89762
90591
  };
89763
- if (isPortableIri(url)) return await dereferencePortable(url);
90592
+ if (isPortableIri(url)) {
90593
+ // A reference in a portable actor's own document, e.g., its outbox,
90594
+ // has no location hints, so the actor's gateways are used instead:
90595
+ return await dereferencePortable(
90596
+ url,
90597
+ options.gateways == null
90598
+ ? { inferredGateways: getReferrerGateways(this, url) }
90599
+ : {},
90600
+ );
90601
+ }
89764
90602
  const lookupUrl = formatIri(url);
89765
90603
  const portableMode = isPortableMode(this, options);
89766
90604
  if (portableMode) {
@@ -93764,7 +94602,16 @@ get names(): ((string | LanguageString))[] {
93764
94602
  span.end();
93765
94603
  }
93766
94604
  };
93767
- if (isPortableIri(url)) return await dereferencePortable(url);
94605
+ if (isPortableIri(url)) {
94606
+ // A reference in a portable actor's own document, e.g., its outbox,
94607
+ // has no location hints, so the actor's gateways are used instead:
94608
+ return await dereferencePortable(
94609
+ url,
94610
+ options.gateways == null
94611
+ ? { inferredGateways: getReferrerGateways(this, url) }
94612
+ : {},
94613
+ );
94614
+ }
93768
94615
  const lookupUrl = formatIri(url);
93769
94616
  const portableMode = isPortableMode(this, options);
93770
94617
  if (portableMode) {
@@ -99612,7 +100459,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
99612
100459
  span.end();
99613
100460
  }
99614
100461
  };
99615
- if (isPortableIri(url)) return await dereferencePortable(url);
100462
+ if (isPortableIri(url)) {
100463
+ // A reference in a portable actor's own document, e.g., its outbox,
100464
+ // has no location hints, so the actor's gateways are used instead:
100465
+ return await dereferencePortable(
100466
+ url,
100467
+ options.gateways == null
100468
+ ? { inferredGateways: getReferrerGateways(this, url) }
100469
+ : {},
100470
+ );
100471
+ }
99616
100472
  const lookupUrl = formatIri(url);
99617
100473
  const portableMode = isPortableMode(this, options);
99618
100474
  if (portableMode) {
@@ -100046,7 +100902,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
100046
100902
  span.end();
100047
100903
  }
100048
100904
  };
100049
- if (isPortableIri(url)) return await dereferencePortable(url);
100905
+ if (isPortableIri(url)) {
100906
+ // A reference in a portable actor's own document, e.g., its outbox,
100907
+ // has no location hints, so the actor's gateways are used instead:
100908
+ return await dereferencePortable(
100909
+ url,
100910
+ options.gateways == null
100911
+ ? { inferredGateways: getReferrerGateways(this, url) }
100912
+ : {},
100913
+ );
100914
+ }
100050
100915
  const lookupUrl = formatIri(url);
100051
100916
  const portableMode = isPortableMode(this, options);
100052
100917
  if (portableMode) {
@@ -101259,7 +102124,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
101259
102124
  span.end();
101260
102125
  }
101261
102126
  };
101262
- if (isPortableIri(url)) return await dereferencePortable(url);
102127
+ if (isPortableIri(url)) {
102128
+ // A reference in a portable actor's own document, e.g., its outbox,
102129
+ // has no location hints, so the actor's gateways are used instead:
102130
+ return await dereferencePortable(
102131
+ url,
102132
+ options.gateways == null
102133
+ ? { inferredGateways: getReferrerGateways(this, url) }
102134
+ : {},
102135
+ );
102136
+ }
101263
102137
  const lookupUrl = formatIri(url);
101264
102138
  const portableMode = isPortableMode(this, options);
101265
102139
  if (portableMode) {
@@ -103359,7 +104233,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
103359
104233
  span.end();
103360
104234
  }
103361
104235
  };
103362
- if (isPortableIri(url)) return await dereferencePortable(url);
104236
+ if (isPortableIri(url)) {
104237
+ // A reference in a portable actor's own document, e.g., its outbox,
104238
+ // has no location hints, so the actor's gateways are used instead:
104239
+ return await dereferencePortable(
104240
+ url,
104241
+ options.gateways == null
104242
+ ? { inferredGateways: getReferrerGateways(this, url) }
104243
+ : {},
104244
+ );
104245
+ }
103363
104246
  const lookupUrl = formatIri(url);
103364
104247
  const portableMode = isPortableMode(this, options);
103365
104248
  if (portableMode) {
@@ -103927,7 +104810,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
103927
104810
  span.end();
103928
104811
  }
103929
104812
  };
103930
- if (isPortableIri(url)) return await dereferencePortable(url);
104813
+ if (isPortableIri(url)) {
104814
+ // A reference in a portable actor's own document, e.g., its outbox,
104815
+ // has no location hints, so the actor's gateways are used instead:
104816
+ return await dereferencePortable(
104817
+ url,
104818
+ options.gateways == null
104819
+ ? { inferredGateways: getReferrerGateways(this, url) }
104820
+ : {},
104821
+ );
104822
+ }
103931
104823
  const lookupUrl = formatIri(url);
103932
104824
  const portableMode = isPortableMode(this, options);
103933
104825
  if (portableMode) {
@@ -104549,7 +105441,16 @@ get gateways(): (URL)[] {
104549
105441
  span.end();
104550
105442
  }
104551
105443
  };
104552
- if (isPortableIri(url)) return await dereferencePortable(url);
105444
+ if (isPortableIri(url)) {
105445
+ // A reference in a portable actor's own document, e.g., its outbox,
105446
+ // has no location hints, so the actor's gateways are used instead:
105447
+ return await dereferencePortable(
105448
+ url,
105449
+ options.gateways == null
105450
+ ? { inferredGateways: getReferrerGateways(this, url) }
105451
+ : {},
105452
+ );
105453
+ }
104553
105454
  const lookupUrl = formatIri(url);
104554
105455
  const portableMode = isPortableMode(this, options);
104555
105456
  if (portableMode) {
@@ -104985,7 +105886,16 @@ get gateways(): (URL)[] {
104985
105886
  span.end();
104986
105887
  }
104987
105888
  };
104988
- if (isPortableIri(url)) return await dereferencePortable(url);
105889
+ if (isPortableIri(url)) {
105890
+ // A reference in a portable actor's own document, e.g., its outbox,
105891
+ // has no location hints, so the actor's gateways are used instead:
105892
+ return await dereferencePortable(
105893
+ url,
105894
+ options.gateways == null
105895
+ ? { inferredGateways: getReferrerGateways(this, url) }
105896
+ : {},
105897
+ );
105898
+ }
104989
105899
  const lookupUrl = formatIri(url);
104990
105900
  const portableMode = isPortableMode(this, options);
104991
105901
  if (portableMode) {
@@ -105418,7 +106328,16 @@ get gateways(): (URL)[] {
105418
106328
  span.end();
105419
106329
  }
105420
106330
  };
105421
- if (isPortableIri(url)) return await dereferencePortable(url);
106331
+ if (isPortableIri(url)) {
106332
+ // A reference in a portable actor's own document, e.g., its outbox,
106333
+ // has no location hints, so the actor's gateways are used instead:
106334
+ return await dereferencePortable(
106335
+ url,
106336
+ options.gateways == null
106337
+ ? { inferredGateways: getReferrerGateways(this, url) }
106338
+ : {},
106339
+ );
106340
+ }
105422
106341
  const lookupUrl = formatIri(url);
105423
106342
  const portableMode = isPortableMode(this, options);
105424
106343
  if (portableMode) {
@@ -105831,7 +106750,16 @@ get gateways(): (URL)[] {
105831
106750
  span.end();
105832
106751
  }
105833
106752
  };
105834
- if (isPortableIri(url)) return await dereferencePortable(url);
106753
+ if (isPortableIri(url)) {
106754
+ // A reference in a portable actor's own document, e.g., its outbox,
106755
+ // has no location hints, so the actor's gateways are used instead:
106756
+ return await dereferencePortable(
106757
+ url,
106758
+ options.gateways == null
106759
+ ? { inferredGateways: getReferrerGateways(this, url) }
106760
+ : {},
106761
+ );
106762
+ }
105835
106763
  const lookupUrl = formatIri(url);
105836
106764
  const portableMode = isPortableMode(this, options);
105837
106765
  if (portableMode) {
@@ -106247,7 +107175,16 @@ get gateways(): (URL)[] {
106247
107175
  span.end();
106248
107176
  }
106249
107177
  };
106250
- if (isPortableIri(url)) return await dereferencePortable(url);
107178
+ if (isPortableIri(url)) {
107179
+ // A reference in a portable actor's own document, e.g., its outbox,
107180
+ // has no location hints, so the actor's gateways are used instead:
107181
+ return await dereferencePortable(
107182
+ url,
107183
+ options.gateways == null
107184
+ ? { inferredGateways: getReferrerGateways(this, url) }
107185
+ : {},
107186
+ );
107187
+ }
106251
107188
  const lookupUrl = formatIri(url);
106252
107189
  const portableMode = isPortableMode(this, options);
106253
107190
  if (portableMode) {
@@ -106661,7 +107598,16 @@ get gateways(): (URL)[] {
106661
107598
  span.end();
106662
107599
  }
106663
107600
  };
106664
- if (isPortableIri(url)) return await dereferencePortable(url);
107601
+ if (isPortableIri(url)) {
107602
+ // A reference in a portable actor's own document, e.g., its outbox,
107603
+ // has no location hints, so the actor's gateways are used instead:
107604
+ return await dereferencePortable(
107605
+ url,
107606
+ options.gateways == null
107607
+ ? { inferredGateways: getReferrerGateways(this, url) }
107608
+ : {},
107609
+ );
107610
+ }
106665
107611
  const lookupUrl = formatIri(url);
106666
107612
  const portableMode = isPortableMode(this, options);
106667
107613
  if (portableMode) {
@@ -107073,7 +108019,16 @@ get gateways(): (URL)[] {
107073
108019
  span.end();
107074
108020
  }
107075
108021
  };
107076
- if (isPortableIri(url)) return await dereferencePortable(url);
108022
+ if (isPortableIri(url)) {
108023
+ // A reference in a portable actor's own document, e.g., its outbox,
108024
+ // has no location hints, so the actor's gateways are used instead:
108025
+ return await dereferencePortable(
108026
+ url,
108027
+ options.gateways == null
108028
+ ? { inferredGateways: getReferrerGateways(this, url) }
108029
+ : {},
108030
+ );
108031
+ }
107077
108032
  const lookupUrl = formatIri(url);
107078
108033
  const portableMode = isPortableMode(this, options);
107079
108034
  if (portableMode) {
@@ -107485,7 +108440,16 @@ get gateways(): (URL)[] {
107485
108440
  span.end();
107486
108441
  }
107487
108442
  };
107488
- if (isPortableIri(url)) return await dereferencePortable(url);
108443
+ if (isPortableIri(url)) {
108444
+ // A reference in a portable actor's own document, e.g., its outbox,
108445
+ // has no location hints, so the actor's gateways are used instead:
108446
+ return await dereferencePortable(
108447
+ url,
108448
+ options.gateways == null
108449
+ ? { inferredGateways: getReferrerGateways(this, url) }
108450
+ : {},
108451
+ );
108452
+ }
107489
108453
  const lookupUrl = formatIri(url);
107490
108454
  const portableMode = isPortableMode(this, options);
107491
108455
  if (portableMode) {
@@ -107894,7 +108858,16 @@ get gateways(): (URL)[] {
107894
108858
  span.end();
107895
108859
  }
107896
108860
  };
107897
- if (isPortableIri(url)) return await dereferencePortable(url);
108861
+ if (isPortableIri(url)) {
108862
+ // A reference in a portable actor's own document, e.g., its outbox,
108863
+ // has no location hints, so the actor's gateways are used instead:
108864
+ return await dereferencePortable(
108865
+ url,
108866
+ options.gateways == null
108867
+ ? { inferredGateways: getReferrerGateways(this, url) }
108868
+ : {},
108869
+ );
108870
+ }
107898
108871
  const lookupUrl = formatIri(url);
107899
108872
  const portableMode = isPortableMode(this, options);
107900
108873
  if (portableMode) {
@@ -108383,7 +109356,16 @@ get gateways(): (URL)[] {
108383
109356
  span.end();
108384
109357
  }
108385
109358
  };
108386
- if (isPortableIri(url)) return await dereferencePortable(url);
109359
+ if (isPortableIri(url)) {
109360
+ // A reference in a portable actor's own document, e.g., its outbox,
109361
+ // has no location hints, so the actor's gateways are used instead:
109362
+ return await dereferencePortable(
109363
+ url,
109364
+ options.gateways == null
109365
+ ? { inferredGateways: getReferrerGateways(this, url) }
109366
+ : {},
109367
+ );
109368
+ }
108387
109369
  const lookupUrl = formatIri(url);
108388
109370
  const portableMode = isPortableMode(this, options);
108389
109371
  if (portableMode) {
@@ -108851,7 +109833,16 @@ get gateways(): (URL)[] {
108851
109833
  span.end();
108852
109834
  }
108853
109835
  };
108854
- if (isPortableIri(url)) return await dereferencePortable(url);
109836
+ if (isPortableIri(url)) {
109837
+ // A reference in a portable actor's own document, e.g., its outbox,
109838
+ // has no location hints, so the actor's gateways are used instead:
109839
+ return await dereferencePortable(
109840
+ url,
109841
+ options.gateways == null
109842
+ ? { inferredGateways: getReferrerGateways(this, url) }
109843
+ : {},
109844
+ );
109845
+ }
108855
109846
  const lookupUrl = formatIri(url);
108856
109847
  const portableMode = isPortableMode(this, options);
108857
109848
  if (portableMode) {
@@ -109487,7 +110478,16 @@ get gateways(): (URL)[] {
109487
110478
  span.end();
109488
110479
  }
109489
110480
  };
109490
- if (isPortableIri(url)) return await dereferencePortable(url);
110481
+ if (isPortableIri(url)) {
110482
+ // A reference in a portable actor's own document, e.g., its outbox,
110483
+ // has no location hints, so the actor's gateways are used instead:
110484
+ return await dereferencePortable(
110485
+ url,
110486
+ options.gateways == null
110487
+ ? { inferredGateways: getReferrerGateways(this, url) }
110488
+ : {},
110489
+ );
110490
+ }
109491
110491
  const lookupUrl = formatIri(url);
109492
110492
  const portableMode = isPortableMode(this, options);
109493
110493
  if (portableMode) {
@@ -114382,7 +115382,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
114382
115382
  span.end();
114383
115383
  }
114384
115384
  };
114385
- if (isPortableIri(url)) return await dereferencePortable(url);
115385
+ if (isPortableIri(url)) {
115386
+ // A reference in a portable actor's own document, e.g., its outbox,
115387
+ // has no location hints, so the actor's gateways are used instead:
115388
+ return await dereferencePortable(
115389
+ url,
115390
+ options.gateways == null
115391
+ ? { inferredGateways: getReferrerGateways(this, url) }
115392
+ : {},
115393
+ );
115394
+ }
114386
115395
  const lookupUrl = formatIri(url);
114387
115396
  const portableMode = isPortableMode(this, options);
114388
115397
  if (portableMode) {
@@ -114950,7 +115959,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
114950
115959
  span.end();
114951
115960
  }
114952
115961
  };
114953
- if (isPortableIri(url)) return await dereferencePortable(url);
115962
+ if (isPortableIri(url)) {
115963
+ // A reference in a portable actor's own document, e.g., its outbox,
115964
+ // has no location hints, so the actor's gateways are used instead:
115965
+ return await dereferencePortable(
115966
+ url,
115967
+ options.gateways == null
115968
+ ? { inferredGateways: getReferrerGateways(this, url) }
115969
+ : {},
115970
+ );
115971
+ }
114954
115972
  const lookupUrl = formatIri(url);
114955
115973
  const portableMode = isPortableMode(this, options);
114956
115974
  if (portableMode) {
@@ -115572,7 +116590,16 @@ get gateways(): (URL)[] {
115572
116590
  span.end();
115573
116591
  }
115574
116592
  };
115575
- if (isPortableIri(url)) return await dereferencePortable(url);
116593
+ if (isPortableIri(url)) {
116594
+ // A reference in a portable actor's own document, e.g., its outbox,
116595
+ // has no location hints, so the actor's gateways are used instead:
116596
+ return await dereferencePortable(
116597
+ url,
116598
+ options.gateways == null
116599
+ ? { inferredGateways: getReferrerGateways(this, url) }
116600
+ : {},
116601
+ );
116602
+ }
115576
116603
  const lookupUrl = formatIri(url);
115577
116604
  const portableMode = isPortableMode(this, options);
115578
116605
  if (portableMode) {
@@ -116008,7 +117035,16 @@ get gateways(): (URL)[] {
116008
117035
  span.end();
116009
117036
  }
116010
117037
  };
116011
- if (isPortableIri(url)) return await dereferencePortable(url);
117038
+ if (isPortableIri(url)) {
117039
+ // A reference in a portable actor's own document, e.g., its outbox,
117040
+ // has no location hints, so the actor's gateways are used instead:
117041
+ return await dereferencePortable(
117042
+ url,
117043
+ options.gateways == null
117044
+ ? { inferredGateways: getReferrerGateways(this, url) }
117045
+ : {},
117046
+ );
117047
+ }
116012
117048
  const lookupUrl = formatIri(url);
116013
117049
  const portableMode = isPortableMode(this, options);
116014
117050
  if (portableMode) {
@@ -116441,7 +117477,16 @@ get gateways(): (URL)[] {
116441
117477
  span.end();
116442
117478
  }
116443
117479
  };
116444
- if (isPortableIri(url)) return await dereferencePortable(url);
117480
+ if (isPortableIri(url)) {
117481
+ // A reference in a portable actor's own document, e.g., its outbox,
117482
+ // has no location hints, so the actor's gateways are used instead:
117483
+ return await dereferencePortable(
117484
+ url,
117485
+ options.gateways == null
117486
+ ? { inferredGateways: getReferrerGateways(this, url) }
117487
+ : {},
117488
+ );
117489
+ }
116445
117490
  const lookupUrl = formatIri(url);
116446
117491
  const portableMode = isPortableMode(this, options);
116447
117492
  if (portableMode) {
@@ -116854,7 +117899,16 @@ get gateways(): (URL)[] {
116854
117899
  span.end();
116855
117900
  }
116856
117901
  };
116857
- if (isPortableIri(url)) return await dereferencePortable(url);
117902
+ if (isPortableIri(url)) {
117903
+ // A reference in a portable actor's own document, e.g., its outbox,
117904
+ // has no location hints, so the actor's gateways are used instead:
117905
+ return await dereferencePortable(
117906
+ url,
117907
+ options.gateways == null
117908
+ ? { inferredGateways: getReferrerGateways(this, url) }
117909
+ : {},
117910
+ );
117911
+ }
116858
117912
  const lookupUrl = formatIri(url);
116859
117913
  const portableMode = isPortableMode(this, options);
116860
117914
  if (portableMode) {
@@ -117270,7 +118324,16 @@ get gateways(): (URL)[] {
117270
118324
  span.end();
117271
118325
  }
117272
118326
  };
117273
- if (isPortableIri(url)) return await dereferencePortable(url);
118327
+ if (isPortableIri(url)) {
118328
+ // A reference in a portable actor's own document, e.g., its outbox,
118329
+ // has no location hints, so the actor's gateways are used instead:
118330
+ return await dereferencePortable(
118331
+ url,
118332
+ options.gateways == null
118333
+ ? { inferredGateways: getReferrerGateways(this, url) }
118334
+ : {},
118335
+ );
118336
+ }
117274
118337
  const lookupUrl = formatIri(url);
117275
118338
  const portableMode = isPortableMode(this, options);
117276
118339
  if (portableMode) {
@@ -117684,7 +118747,16 @@ get gateways(): (URL)[] {
117684
118747
  span.end();
117685
118748
  }
117686
118749
  };
117687
- if (isPortableIri(url)) return await dereferencePortable(url);
118750
+ if (isPortableIri(url)) {
118751
+ // A reference in a portable actor's own document, e.g., its outbox,
118752
+ // has no location hints, so the actor's gateways are used instead:
118753
+ return await dereferencePortable(
118754
+ url,
118755
+ options.gateways == null
118756
+ ? { inferredGateways: getReferrerGateways(this, url) }
118757
+ : {},
118758
+ );
118759
+ }
117688
118760
  const lookupUrl = formatIri(url);
117689
118761
  const portableMode = isPortableMode(this, options);
117690
118762
  if (portableMode) {
@@ -118096,7 +119168,16 @@ get gateways(): (URL)[] {
118096
119168
  span.end();
118097
119169
  }
118098
119170
  };
118099
- if (isPortableIri(url)) return await dereferencePortable(url);
119171
+ if (isPortableIri(url)) {
119172
+ // A reference in a portable actor's own document, e.g., its outbox,
119173
+ // has no location hints, so the actor's gateways are used instead:
119174
+ return await dereferencePortable(
119175
+ url,
119176
+ options.gateways == null
119177
+ ? { inferredGateways: getReferrerGateways(this, url) }
119178
+ : {},
119179
+ );
119180
+ }
118100
119181
  const lookupUrl = formatIri(url);
118101
119182
  const portableMode = isPortableMode(this, options);
118102
119183
  if (portableMode) {
@@ -118508,7 +119589,16 @@ get gateways(): (URL)[] {
118508
119589
  span.end();
118509
119590
  }
118510
119591
  };
118511
- if (isPortableIri(url)) return await dereferencePortable(url);
119592
+ if (isPortableIri(url)) {
119593
+ // A reference in a portable actor's own document, e.g., its outbox,
119594
+ // has no location hints, so the actor's gateways are used instead:
119595
+ return await dereferencePortable(
119596
+ url,
119597
+ options.gateways == null
119598
+ ? { inferredGateways: getReferrerGateways(this, url) }
119599
+ : {},
119600
+ );
119601
+ }
118512
119602
  const lookupUrl = formatIri(url);
118513
119603
  const portableMode = isPortableMode(this, options);
118514
119604
  if (portableMode) {
@@ -118917,7 +120007,16 @@ get gateways(): (URL)[] {
118917
120007
  span.end();
118918
120008
  }
118919
120009
  };
118920
- if (isPortableIri(url)) return await dereferencePortable(url);
120010
+ if (isPortableIri(url)) {
120011
+ // A reference in a portable actor's own document, e.g., its outbox,
120012
+ // has no location hints, so the actor's gateways are used instead:
120013
+ return await dereferencePortable(
120014
+ url,
120015
+ options.gateways == null
120016
+ ? { inferredGateways: getReferrerGateways(this, url) }
120017
+ : {},
120018
+ );
120019
+ }
118921
120020
  const lookupUrl = formatIri(url);
118922
120021
  const portableMode = isPortableMode(this, options);
118923
120022
  if (portableMode) {
@@ -119406,7 +120505,16 @@ get gateways(): (URL)[] {
119406
120505
  span.end();
119407
120506
  }
119408
120507
  };
119409
- if (isPortableIri(url)) return await dereferencePortable(url);
120508
+ if (isPortableIri(url)) {
120509
+ // A reference in a portable actor's own document, e.g., its outbox,
120510
+ // has no location hints, so the actor's gateways are used instead:
120511
+ return await dereferencePortable(
120512
+ url,
120513
+ options.gateways == null
120514
+ ? { inferredGateways: getReferrerGateways(this, url) }
120515
+ : {},
120516
+ );
120517
+ }
119410
120518
  const lookupUrl = formatIri(url);
119411
120519
  const portableMode = isPortableMode(this, options);
119412
120520
  if (portableMode) {
@@ -119874,7 +120982,16 @@ get gateways(): (URL)[] {
119874
120982
  span.end();
119875
120983
  }
119876
120984
  };
119877
- if (isPortableIri(url)) return await dereferencePortable(url);
120985
+ if (isPortableIri(url)) {
120986
+ // A reference in a portable actor's own document, e.g., its outbox,
120987
+ // has no location hints, so the actor's gateways are used instead:
120988
+ return await dereferencePortable(
120989
+ url,
120990
+ options.gateways == null
120991
+ ? { inferredGateways: getReferrerGateways(this, url) }
120992
+ : {},
120993
+ );
120994
+ }
119878
120995
  const lookupUrl = formatIri(url);
119879
120996
  const portableMode = isPortableMode(this, options);
119880
120997
  if (portableMode) {
@@ -120510,7 +121627,16 @@ get gateways(): (URL)[] {
120510
121627
  span.end();
120511
121628
  }
120512
121629
  };
120513
- if (isPortableIri(url)) return await dereferencePortable(url);
121630
+ if (isPortableIri(url)) {
121631
+ // A reference in a portable actor's own document, e.g., its outbox,
121632
+ // has no location hints, so the actor's gateways are used instead:
121633
+ return await dereferencePortable(
121634
+ url,
121635
+ options.gateways == null
121636
+ ? { inferredGateways: getReferrerGateways(this, url) }
121637
+ : {},
121638
+ );
121639
+ }
120514
121640
  const lookupUrl = formatIri(url);
120515
121641
  const portableMode = isPortableMode(this, options);
120516
121642
  if (portableMode) {
@@ -125186,7 +126312,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
125186
126312
  span.end();
125187
126313
  }
125188
126314
  };
125189
- if (isPortableIri(url)) return await dereferencePortable(url);
126315
+ if (isPortableIri(url)) {
126316
+ // A reference in a portable actor's own document, e.g., its outbox,
126317
+ // has no location hints, so the actor's gateways are used instead:
126318
+ return await dereferencePortable(
126319
+ url,
126320
+ options.gateways == null
126321
+ ? { inferredGateways: getReferrerGateways(this, url) }
126322
+ : {},
126323
+ );
126324
+ }
125190
126325
  const lookupUrl = formatIri(url);
125191
126326
  const portableMode = isPortableMode(this, options);
125192
126327
  if (portableMode) {
@@ -126360,7 +127495,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
126360
127495
  span.end();
126361
127496
  }
126362
127497
  };
126363
- if (isPortableIri(url)) return await dereferencePortable(url);
127498
+ if (isPortableIri(url)) {
127499
+ // A reference in a portable actor's own document, e.g., its outbox,
127500
+ // has no location hints, so the actor's gateways are used instead:
127501
+ return await dereferencePortable(
127502
+ url,
127503
+ options.gateways == null
127504
+ ? { inferredGateways: getReferrerGateways(this, url) }
127505
+ : {},
127506
+ );
127507
+ }
126364
127508
  const lookupUrl = formatIri(url);
126365
127509
  const portableMode = isPortableMode(this, options);
126366
127510
  if (portableMode) {
@@ -126776,7 +127920,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
126776
127920
  span.end();
126777
127921
  }
126778
127922
  };
126779
- if (isPortableIri(url)) return await dereferencePortable(url);
127923
+ if (isPortableIri(url)) {
127924
+ // A reference in a portable actor's own document, e.g., its outbox,
127925
+ // has no location hints, so the actor's gateways are used instead:
127926
+ return await dereferencePortable(
127927
+ url,
127928
+ options.gateways == null
127929
+ ? { inferredGateways: getReferrerGateways(this, url) }
127930
+ : {},
127931
+ );
127932
+ }
126780
127933
  const lookupUrl = formatIri(url);
126781
127934
  const portableMode = isPortableMode(this, options);
126782
127935
  if (portableMode) {
@@ -127222,7 +128375,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
127222
128375
  span.end();
127223
128376
  }
127224
128377
  };
127225
- if (isPortableIri(url)) return await dereferencePortable(url);
128378
+ if (isPortableIri(url)) {
128379
+ // A reference in a portable actor's own document, e.g., its outbox,
128380
+ // has no location hints, so the actor's gateways are used instead:
128381
+ return await dereferencePortable(
128382
+ url,
128383
+ options.gateways == null
128384
+ ? { inferredGateways: getReferrerGateways(this, url) }
128385
+ : {},
128386
+ );
128387
+ }
127226
128388
  const lookupUrl = formatIri(url);
127227
128389
  const portableMode = isPortableMode(this, options);
127228
128390
  if (portableMode) {
@@ -127656,7 +128818,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
127656
128818
  span.end();
127657
128819
  }
127658
128820
  };
127659
- if (isPortableIri(url)) return await dereferencePortable(url);
128821
+ if (isPortableIri(url)) {
128822
+ // A reference in a portable actor's own document, e.g., its outbox,
128823
+ // has no location hints, so the actor's gateways are used instead:
128824
+ return await dereferencePortable(
128825
+ url,
128826
+ options.gateways == null
128827
+ ? { inferredGateways: getReferrerGateways(this, url) }
128828
+ : {},
128829
+ );
128830
+ }
127660
128831
  const lookupUrl = formatIri(url);
127661
128832
  const portableMode = isPortableMode(this, options);
127662
128833
  if (portableMode) {
@@ -130073,7 +131244,16 @@ relationships?: (Object | URL)[];}
130073
131244
  span.end();
130074
131245
  }
130075
131246
  };
130076
- if (isPortableIri(url)) return await dereferencePortable(url);
131247
+ if (isPortableIri(url)) {
131248
+ // A reference in a portable actor's own document, e.g., its outbox,
131249
+ // has no location hints, so the actor's gateways are used instead:
131250
+ return await dereferencePortable(
131251
+ url,
131252
+ options.gateways == null
131253
+ ? { inferredGateways: getReferrerGateways(this, url) }
131254
+ : {},
131255
+ );
131256
+ }
130077
131257
  const lookupUrl = formatIri(url);
130078
131258
  const portableMode = isPortableMode(this, options);
130079
131259
  if (portableMode) {
@@ -130485,7 +131665,16 @@ relationships?: (Object | URL)[];}
130485
131665
  span.end();
130486
131666
  }
130487
131667
  };
130488
- if (isPortableIri(url)) return await dereferencePortable(url);
131668
+ if (isPortableIri(url)) {
131669
+ // A reference in a portable actor's own document, e.g., its outbox,
131670
+ // has no location hints, so the actor's gateways are used instead:
131671
+ return await dereferencePortable(
131672
+ url,
131673
+ options.gateways == null
131674
+ ? { inferredGateways: getReferrerGateways(this, url) }
131675
+ : {},
131676
+ );
131677
+ }
130489
131678
  const lookupUrl = formatIri(url);
130490
131679
  const portableMode = isPortableMode(this, options);
130491
131680
  if (portableMode) {
@@ -131055,7 +132244,16 @@ relationships?: (Object | URL)[];}
131055
132244
  span.end();
131056
132245
  }
131057
132246
  };
131058
- if (isPortableIri(url)) return await dereferencePortable(url);
132247
+ if (isPortableIri(url)) {
132248
+ // A reference in a portable actor's own document, e.g., its outbox,
132249
+ // has no location hints, so the actor's gateways are used instead:
132250
+ return await dereferencePortable(
132251
+ url,
132252
+ options.gateways == null
132253
+ ? { inferredGateways: getReferrerGateways(this, url) }
132254
+ : {},
132255
+ );
132256
+ }
131059
132257
  const lookupUrl = formatIri(url);
131060
132258
  const portableMode = isPortableMode(this, options);
131061
132259
  if (portableMode) {
@@ -133815,7 +135013,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
133815
135013
  span.end();
133816
135014
  }
133817
135015
  };
133818
- if (isPortableIri(url)) return await dereferencePortable(url);
135016
+ if (isPortableIri(url)) {
135017
+ // A reference in a portable actor's own document, e.g., its outbox,
135018
+ // has no location hints, so the actor's gateways are used instead:
135019
+ return await dereferencePortable(
135020
+ url,
135021
+ options.gateways == null
135022
+ ? { inferredGateways: getReferrerGateways(this, url) }
135023
+ : {},
135024
+ );
135025
+ }
133819
135026
  const lookupUrl = formatIri(url);
133820
135027
  const portableMode = isPortableMode(this, options);
133821
135028
  if (portableMode) {
@@ -134383,7 +135590,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
134383
135590
  span.end();
134384
135591
  }
134385
135592
  };
134386
- if (isPortableIri(url)) return await dereferencePortable(url);
135593
+ if (isPortableIri(url)) {
135594
+ // A reference in a portable actor's own document, e.g., its outbox,
135595
+ // has no location hints, so the actor's gateways are used instead:
135596
+ return await dereferencePortable(
135597
+ url,
135598
+ options.gateways == null
135599
+ ? { inferredGateways: getReferrerGateways(this, url) }
135600
+ : {},
135601
+ );
135602
+ }
134387
135603
  const lookupUrl = formatIri(url);
134388
135604
  const portableMode = isPortableMode(this, options);
134389
135605
  if (portableMode) {
@@ -135005,7 +136221,16 @@ get gateways(): (URL)[] {
135005
136221
  span.end();
135006
136222
  }
135007
136223
  };
135008
- if (isPortableIri(url)) return await dereferencePortable(url);
136224
+ if (isPortableIri(url)) {
136225
+ // A reference in a portable actor's own document, e.g., its outbox,
136226
+ // has no location hints, so the actor's gateways are used instead:
136227
+ return await dereferencePortable(
136228
+ url,
136229
+ options.gateways == null
136230
+ ? { inferredGateways: getReferrerGateways(this, url) }
136231
+ : {},
136232
+ );
136233
+ }
135009
136234
  const lookupUrl = formatIri(url);
135010
136235
  const portableMode = isPortableMode(this, options);
135011
136236
  if (portableMode) {
@@ -135441,7 +136666,16 @@ get gateways(): (URL)[] {
135441
136666
  span.end();
135442
136667
  }
135443
136668
  };
135444
- if (isPortableIri(url)) return await dereferencePortable(url);
136669
+ if (isPortableIri(url)) {
136670
+ // A reference in a portable actor's own document, e.g., its outbox,
136671
+ // has no location hints, so the actor's gateways are used instead:
136672
+ return await dereferencePortable(
136673
+ url,
136674
+ options.gateways == null
136675
+ ? { inferredGateways: getReferrerGateways(this, url) }
136676
+ : {},
136677
+ );
136678
+ }
135445
136679
  const lookupUrl = formatIri(url);
135446
136680
  const portableMode = isPortableMode(this, options);
135447
136681
  if (portableMode) {
@@ -135874,7 +137108,16 @@ get gateways(): (URL)[] {
135874
137108
  span.end();
135875
137109
  }
135876
137110
  };
135877
- if (isPortableIri(url)) return await dereferencePortable(url);
137111
+ if (isPortableIri(url)) {
137112
+ // A reference in a portable actor's own document, e.g., its outbox,
137113
+ // has no location hints, so the actor's gateways are used instead:
137114
+ return await dereferencePortable(
137115
+ url,
137116
+ options.gateways == null
137117
+ ? { inferredGateways: getReferrerGateways(this, url) }
137118
+ : {},
137119
+ );
137120
+ }
135878
137121
  const lookupUrl = formatIri(url);
135879
137122
  const portableMode = isPortableMode(this, options);
135880
137123
  if (portableMode) {
@@ -136287,7 +137530,16 @@ get gateways(): (URL)[] {
136287
137530
  span.end();
136288
137531
  }
136289
137532
  };
136290
- if (isPortableIri(url)) return await dereferencePortable(url);
137533
+ if (isPortableIri(url)) {
137534
+ // A reference in a portable actor's own document, e.g., its outbox,
137535
+ // has no location hints, so the actor's gateways are used instead:
137536
+ return await dereferencePortable(
137537
+ url,
137538
+ options.gateways == null
137539
+ ? { inferredGateways: getReferrerGateways(this, url) }
137540
+ : {},
137541
+ );
137542
+ }
136291
137543
  const lookupUrl = formatIri(url);
136292
137544
  const portableMode = isPortableMode(this, options);
136293
137545
  if (portableMode) {
@@ -136703,7 +137955,16 @@ get gateways(): (URL)[] {
136703
137955
  span.end();
136704
137956
  }
136705
137957
  };
136706
- if (isPortableIri(url)) return await dereferencePortable(url);
137958
+ if (isPortableIri(url)) {
137959
+ // A reference in a portable actor's own document, e.g., its outbox,
137960
+ // has no location hints, so the actor's gateways are used instead:
137961
+ return await dereferencePortable(
137962
+ url,
137963
+ options.gateways == null
137964
+ ? { inferredGateways: getReferrerGateways(this, url) }
137965
+ : {},
137966
+ );
137967
+ }
136707
137968
  const lookupUrl = formatIri(url);
136708
137969
  const portableMode = isPortableMode(this, options);
136709
137970
  if (portableMode) {
@@ -137117,7 +138378,16 @@ get gateways(): (URL)[] {
137117
138378
  span.end();
137118
138379
  }
137119
138380
  };
137120
- if (isPortableIri(url)) return await dereferencePortable(url);
138381
+ if (isPortableIri(url)) {
138382
+ // A reference in a portable actor's own document, e.g., its outbox,
138383
+ // has no location hints, so the actor's gateways are used instead:
138384
+ return await dereferencePortable(
138385
+ url,
138386
+ options.gateways == null
138387
+ ? { inferredGateways: getReferrerGateways(this, url) }
138388
+ : {},
138389
+ );
138390
+ }
137121
138391
  const lookupUrl = formatIri(url);
137122
138392
  const portableMode = isPortableMode(this, options);
137123
138393
  if (portableMode) {
@@ -137529,7 +138799,16 @@ get gateways(): (URL)[] {
137529
138799
  span.end();
137530
138800
  }
137531
138801
  };
137532
- if (isPortableIri(url)) return await dereferencePortable(url);
138802
+ if (isPortableIri(url)) {
138803
+ // A reference in a portable actor's own document, e.g., its outbox,
138804
+ // has no location hints, so the actor's gateways are used instead:
138805
+ return await dereferencePortable(
138806
+ url,
138807
+ options.gateways == null
138808
+ ? { inferredGateways: getReferrerGateways(this, url) }
138809
+ : {},
138810
+ );
138811
+ }
137533
138812
  const lookupUrl = formatIri(url);
137534
138813
  const portableMode = isPortableMode(this, options);
137535
138814
  if (portableMode) {
@@ -137941,7 +139220,16 @@ get gateways(): (URL)[] {
137941
139220
  span.end();
137942
139221
  }
137943
139222
  };
137944
- if (isPortableIri(url)) return await dereferencePortable(url);
139223
+ if (isPortableIri(url)) {
139224
+ // A reference in a portable actor's own document, e.g., its outbox,
139225
+ // has no location hints, so the actor's gateways are used instead:
139226
+ return await dereferencePortable(
139227
+ url,
139228
+ options.gateways == null
139229
+ ? { inferredGateways: getReferrerGateways(this, url) }
139230
+ : {},
139231
+ );
139232
+ }
137945
139233
  const lookupUrl = formatIri(url);
137946
139234
  const portableMode = isPortableMode(this, options);
137947
139235
  if (portableMode) {
@@ -138350,7 +139638,16 @@ get gateways(): (URL)[] {
138350
139638
  span.end();
138351
139639
  }
138352
139640
  };
138353
- if (isPortableIri(url)) return await dereferencePortable(url);
139641
+ if (isPortableIri(url)) {
139642
+ // A reference in a portable actor's own document, e.g., its outbox,
139643
+ // has no location hints, so the actor's gateways are used instead:
139644
+ return await dereferencePortable(
139645
+ url,
139646
+ options.gateways == null
139647
+ ? { inferredGateways: getReferrerGateways(this, url) }
139648
+ : {},
139649
+ );
139650
+ }
138354
139651
  const lookupUrl = formatIri(url);
138355
139652
  const portableMode = isPortableMode(this, options);
138356
139653
  if (portableMode) {
@@ -138839,7 +140136,16 @@ get gateways(): (URL)[] {
138839
140136
  span.end();
138840
140137
  }
138841
140138
  };
138842
- if (isPortableIri(url)) return await dereferencePortable(url);
140139
+ if (isPortableIri(url)) {
140140
+ // A reference in a portable actor's own document, e.g., its outbox,
140141
+ // has no location hints, so the actor's gateways are used instead:
140142
+ return await dereferencePortable(
140143
+ url,
140144
+ options.gateways == null
140145
+ ? { inferredGateways: getReferrerGateways(this, url) }
140146
+ : {},
140147
+ );
140148
+ }
138843
140149
  const lookupUrl = formatIri(url);
138844
140150
  const portableMode = isPortableMode(this, options);
138845
140151
  if (portableMode) {
@@ -139307,7 +140613,16 @@ get gateways(): (URL)[] {
139307
140613
  span.end();
139308
140614
  }
139309
140615
  };
139310
- if (isPortableIri(url)) return await dereferencePortable(url);
140616
+ if (isPortableIri(url)) {
140617
+ // A reference in a portable actor's own document, e.g., its outbox,
140618
+ // has no location hints, so the actor's gateways are used instead:
140619
+ return await dereferencePortable(
140620
+ url,
140621
+ options.gateways == null
140622
+ ? { inferredGateways: getReferrerGateways(this, url) }
140623
+ : {},
140624
+ );
140625
+ }
139311
140626
  const lookupUrl = formatIri(url);
139312
140627
  const portableMode = isPortableMode(this, options);
139313
140628
  if (portableMode) {
@@ -139943,7 +141258,16 @@ get gateways(): (URL)[] {
139943
141258
  span.end();
139944
141259
  }
139945
141260
  };
139946
- if (isPortableIri(url)) return await dereferencePortable(url);
141261
+ if (isPortableIri(url)) {
141262
+ // A reference in a portable actor's own document, e.g., its outbox,
141263
+ // has no location hints, so the actor's gateways are used instead:
141264
+ return await dereferencePortable(
141265
+ url,
141266
+ options.gateways == null
141267
+ ? { inferredGateways: getReferrerGateways(this, url) }
141268
+ : {},
141269
+ );
141270
+ }
139947
141271
  const lookupUrl = formatIri(url);
139948
141272
  const portableMode = isPortableMode(this, options);
139949
141273
  if (portableMode) {