@learncard/idx-plugin 1.0.30 → 1.0.32

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.
@@ -1422,9 +1422,9 @@ var require_random = __commonJS({
1422
1422
  }
1423
1423
  });
1424
1424
 
1425
- // ../../../node_modules/.pnpm/dataloader@2.2.2/node_modules/dataloader/index.js
1425
+ // ../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js
1426
1426
  var require_dataloader = __commonJS({
1427
- "../../../node_modules/.pnpm/dataloader@2.2.2/node_modules/dataloader/index.js"(exports, module2) {
1427
+ "../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js"(exports, module2) {
1428
1428
  "use strict";
1429
1429
  var DataLoader2 = /* @__PURE__ */ function() {
1430
1430
  function DataLoader3(batchLoadFn, options) {
@@ -1447,8 +1447,9 @@ var require_dataloader = __commonJS({
1447
1447
  }
1448
1448
  var batch = getCurrentBatch(this);
1449
1449
  var cacheMap = this._cacheMap;
1450
- var cacheKey = this._cacheKeyFn(key2);
1450
+ var cacheKey;
1451
1451
  if (cacheMap) {
1452
+ cacheKey = this._cacheKeyFn(key2);
1452
1453
  var cachedPromise = cacheMap.get(cacheKey);
1453
1454
  if (cachedPromise) {
1454
1455
  var cacheHits = batch.cacheHits || (batch.cacheHits = []);
@@ -1572,11 +1573,11 @@ var require_dataloader = __commonJS({
1572
1573
  }
1573
1574
  resolveCacheHits(batch);
1574
1575
  for (var i2 = 0; i2 < batch.callbacks.length; i2++) {
1575
- var value = values[i2];
1576
- if (value instanceof Error) {
1577
- batch.callbacks[i2].reject(value);
1576
+ var _value = values[i2];
1577
+ if (_value instanceof Error) {
1578
+ batch.callbacks[i2].reject(_value);
1578
1579
  } else {
1579
- batch.callbacks[i2].resolve(value);
1580
+ batch.callbacks[i2].resolve(_value);
1580
1581
  }
1581
1582
  }
1582
1583
  })["catch"](function(error) {
@@ -5951,13 +5952,13 @@ function __spreadArray(to, from4, pack) {
5951
5952
  }
5952
5953
  __name(__spreadArray, "__spreadArray");
5953
5954
 
5954
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/isFunction.js
5955
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js
5955
5956
  function isFunction(value) {
5956
5957
  return typeof value === "function";
5957
5958
  }
5958
5959
  __name(isFunction, "isFunction");
5959
5960
 
5960
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
5961
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
5961
5962
  function createErrorClass(createImpl) {
5962
5963
  var _super = /* @__PURE__ */ __name(function(instance) {
5963
5964
  Error.call(instance);
@@ -5970,7 +5971,7 @@ function createErrorClass(createImpl) {
5970
5971
  }
5971
5972
  __name(createErrorClass, "createErrorClass");
5972
5973
 
5973
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
5974
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
5974
5975
  var UnsubscriptionError = createErrorClass(function(_super) {
5975
5976
  return /* @__PURE__ */ __name(function UnsubscriptionErrorImpl(errors) {
5976
5977
  _super(this);
@@ -5982,7 +5983,7 @@ var UnsubscriptionError = createErrorClass(function(_super) {
5982
5983
  }, "UnsubscriptionErrorImpl");
5983
5984
  });
5984
5985
 
5985
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
5986
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
5986
5987
  function arrRemove(arr, item) {
5987
5988
  if (arr) {
5988
5989
  var index = arr.indexOf(item);
@@ -5991,7 +5992,7 @@ function arrRemove(arr, item) {
5991
5992
  }
5992
5993
  __name(arrRemove, "arrRemove");
5993
5994
 
5994
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/Subscription.js
5995
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js
5995
5996
  var Subscription = function() {
5996
5997
  function Subscription3(initialTeardown) {
5997
5998
  this.initialTeardown = initialTeardown;
@@ -6131,7 +6132,7 @@ function execFinalizer(finalizer) {
6131
6132
  }
6132
6133
  __name(execFinalizer, "execFinalizer");
6133
6134
 
6134
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/config.js
6135
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js
6135
6136
  var config = {
6136
6137
  onUnhandledError: null,
6137
6138
  onStoppedNotification: null,
@@ -6140,7 +6141,7 @@ var config = {
6140
6141
  useDeprecatedNextContext: false
6141
6142
  };
6142
6143
 
6143
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
6144
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
6144
6145
  var timeoutProvider = {
6145
6146
  setTimeout: function(handler, timeout) {
6146
6147
  var args = [];
@@ -6160,7 +6161,7 @@ var timeoutProvider = {
6160
6161
  delegate: void 0
6161
6162
  };
6162
6163
 
6163
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
6164
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
6164
6165
  function reportUnhandledError(err) {
6165
6166
  timeoutProvider.setTimeout(function() {
6166
6167
  var onUnhandledError = config.onUnhandledError;
@@ -6173,12 +6174,12 @@ function reportUnhandledError(err) {
6173
6174
  }
6174
6175
  __name(reportUnhandledError, "reportUnhandledError");
6175
6176
 
6176
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/noop.js
6177
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js
6177
6178
  function noop() {
6178
6179
  }
6179
6180
  __name(noop, "noop");
6180
6181
 
6181
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
6182
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
6182
6183
  var COMPLETE_NOTIFICATION = function() {
6183
6184
  return createNotification("C", void 0, void 0);
6184
6185
  }();
@@ -6199,7 +6200,7 @@ function createNotification(kind, value, error) {
6199
6200
  }
6200
6201
  __name(createNotification, "createNotification");
6201
6202
 
6202
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/errorContext.js
6203
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js
6203
6204
  var context = null;
6204
6205
  function errorContext(cb) {
6205
6206
  if (config.useDeprecatedSynchronousErrorHandling) {
@@ -6228,7 +6229,7 @@ function captureError(err) {
6228
6229
  }
6229
6230
  __name(captureError, "captureError");
6230
6231
 
6231
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/Subscriber.js
6232
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js
6232
6233
  var Subscriber = function(_super) {
6233
6234
  __extends2(Subscriber3, _super);
6234
6235
  function Subscriber3(destination) {
@@ -6400,18 +6401,18 @@ var EMPTY_OBSERVER = {
6400
6401
  complete: noop
6401
6402
  };
6402
6403
 
6403
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/symbol/observable.js
6404
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js
6404
6405
  var observable = function() {
6405
6406
  return typeof Symbol === "function" && Symbol.observable || "@@observable";
6406
6407
  }();
6407
6408
 
6408
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/identity.js
6409
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js
6409
6410
  function identity3(x) {
6410
6411
  return x;
6411
6412
  }
6412
6413
  __name(identity3, "identity");
6413
6414
 
6414
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/util/pipe.js
6415
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js
6415
6416
  function pipeFromArray(fns) {
6416
6417
  if (fns.length === 0) {
6417
6418
  return identity3;
@@ -6427,7 +6428,7 @@ function pipeFromArray(fns) {
6427
6428
  }
6428
6429
  __name(pipeFromArray, "pipeFromArray");
6429
6430
 
6430
- // ../../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/Observable.js
6431
+ // ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js
6431
6432
  var Observable = function() {
6432
6433
  function Observable3(subscribe) {
6433
6434
  if (subscribe) {
@@ -11569,7 +11570,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
11569
11570
  frontDoorBoostUri: mod.string().optional(),
11570
11571
  createdAt: mod.string(),
11571
11572
  updatedAt: mod.string(),
11572
- expiresAt: mod.string().optional()
11573
+ expiresAt: mod.string().optional(),
11574
+ autoBoosts: mod.string().array().optional()
11573
11575
  });
11574
11576
  var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
11575
11577
  records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
@@ -47482,24 +47484,25 @@ var require_lodash22 = __commonJS2({
47482
47484
  }
47483
47485
  });
47484
47486
  var require_browser_ponyfill = __commonJS2({
47485
- "../../../node_modules/.pnpm/cross-fetch@3.1.8/node_modules/cross-fetch/dist/browser-ponyfill.js"(exports, module2) {
47486
- var global2 = typeof self !== "undefined" ? self : exports;
47487
- var __self__ = function() {
47487
+ "../../../node_modules/.pnpm/cross-fetch@3.2.0/node_modules/cross-fetch/dist/browser-ponyfill.js"(exports, module2) {
47488
+ var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof global !== "undefined" && global;
47489
+ var __globalThis__ = function() {
47488
47490
  function F() {
47489
47491
  this.fetch = false;
47490
- this.DOMException = global2.DOMException;
47492
+ this.DOMException = __global__.DOMException;
47491
47493
  }
47492
47494
  __name(F, "F");
47493
47495
  __name3(F, "F");
47494
- F.prototype = global2;
47496
+ F.prototype = __global__;
47495
47497
  return new F();
47496
47498
  }();
47497
- (function(self2) {
47499
+ (function(globalThis2) {
47498
47500
  var irrelevant = function(exports2) {
47501
+ var g = typeof globalThis2 !== "undefined" && globalThis2 || typeof self !== "undefined" && self || typeof global !== "undefined" && global || {};
47499
47502
  var support = {
47500
- searchParams: "URLSearchParams" in self2,
47501
- iterable: "Symbol" in self2 && "iterator" in Symbol,
47502
- blob: "FileReader" in self2 && "Blob" in self2 && function() {
47503
+ searchParams: "URLSearchParams" in g,
47504
+ iterable: "Symbol" in g && "iterator" in Symbol,
47505
+ blob: "FileReader" in g && "Blob" in g && function() {
47503
47506
  try {
47504
47507
  new Blob();
47505
47508
  return true;
@@ -47507,8 +47510,8 @@ var require_browser_ponyfill = __commonJS2({
47507
47510
  return false;
47508
47511
  }
47509
47512
  }(),
47510
- formData: "FormData" in self2,
47511
- arrayBuffer: "ArrayBuffer" in self2
47513
+ formData: "FormData" in g,
47514
+ arrayBuffer: "ArrayBuffer" in g
47512
47515
  };
47513
47516
  function isDataView(obj) {
47514
47517
  return obj && DataView.prototype.isPrototypeOf(obj);
@@ -47535,8 +47538,8 @@ var require_browser_ponyfill = __commonJS2({
47535
47538
  if (typeof name32 !== "string") {
47536
47539
  name32 = String(name32);
47537
47540
  }
47538
- if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name32)) {
47539
- throw new TypeError("Invalid character in header field name");
47541
+ if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name32) || name32 === "") {
47542
+ throw new TypeError('Invalid character in header field name: "' + name32 + '"');
47540
47543
  }
47541
47544
  return name32.toLowerCase();
47542
47545
  }
@@ -47574,6 +47577,9 @@ var require_browser_ponyfill = __commonJS2({
47574
47577
  }, this);
47575
47578
  } else if (Array.isArray(headers)) {
47576
47579
  headers.forEach(function(header) {
47580
+ if (header.length != 2) {
47581
+ throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + header.length);
47582
+ }
47577
47583
  this.append(header[0], header[1]);
47578
47584
  }, this);
47579
47585
  } else if (headers) {
@@ -47635,6 +47641,8 @@ var require_browser_ponyfill = __commonJS2({
47635
47641
  Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
47636
47642
  }
47637
47643
  function consumed(body) {
47644
+ if (body._noBody)
47645
+ return;
47638
47646
  if (body.bodyUsed) {
47639
47647
  return Promise.reject(new TypeError("Already read"));
47640
47648
  }
@@ -47665,7 +47673,9 @@ var require_browser_ponyfill = __commonJS2({
47665
47673
  function readBlobAsText(blob) {
47666
47674
  var reader = new FileReader();
47667
47675
  var promise = fileReaderReady(reader);
47668
- reader.readAsText(blob);
47676
+ var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);
47677
+ var encoding = match ? match[1] : "utf-8";
47678
+ reader.readAsText(blob, encoding);
47669
47679
  return promise;
47670
47680
  }
47671
47681
  __name(readBlobAsText, "readBlobAsText");
@@ -47694,8 +47704,10 @@ var require_browser_ponyfill = __commonJS2({
47694
47704
  function Body() {
47695
47705
  this.bodyUsed = false;
47696
47706
  this._initBody = function(body) {
47707
+ this.bodyUsed = this.bodyUsed;
47697
47708
  this._bodyInit = body;
47698
47709
  if (!body) {
47710
+ this._noBody = true;
47699
47711
  this._bodyText = "";
47700
47712
  } else if (typeof body === "string") {
47701
47713
  this._bodyText = body;
@@ -47739,14 +47751,28 @@ var require_browser_ponyfill = __commonJS2({
47739
47751
  return Promise.resolve(new Blob([this._bodyText]));
47740
47752
  }
47741
47753
  };
47742
- this.arrayBuffer = function() {
47743
- if (this._bodyArrayBuffer) {
47744
- return consumed(this) || Promise.resolve(this._bodyArrayBuffer);
47754
+ }
47755
+ this.arrayBuffer = function() {
47756
+ if (this._bodyArrayBuffer) {
47757
+ var isConsumed = consumed(this);
47758
+ if (isConsumed) {
47759
+ return isConsumed;
47760
+ } else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
47761
+ return Promise.resolve(
47762
+ this._bodyArrayBuffer.buffer.slice(
47763
+ this._bodyArrayBuffer.byteOffset,
47764
+ this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
47765
+ )
47766
+ );
47745
47767
  } else {
47746
- return this.blob().then(readBlobAsArrayBuffer);
47768
+ return Promise.resolve(this._bodyArrayBuffer);
47747
47769
  }
47748
- };
47749
- }
47770
+ } else if (support.blob) {
47771
+ return this.blob().then(readBlobAsArrayBuffer);
47772
+ } else {
47773
+ throw new Error("could not read as ArrayBuffer");
47774
+ }
47775
+ };
47750
47776
  this.text = function() {
47751
47777
  var rejected = consumed(this);
47752
47778
  if (rejected) {
@@ -47774,7 +47800,7 @@ var require_browser_ponyfill = __commonJS2({
47774
47800
  }
47775
47801
  __name(Body, "Body");
47776
47802
  __name3(Body, "Body");
47777
- var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
47803
+ var methods = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
47778
47804
  function normalizeMethod(method) {
47779
47805
  var upcased = method.toUpperCase();
47780
47806
  return methods.indexOf(upcased) > -1 ? upcased : method;
@@ -47782,6 +47808,9 @@ var require_browser_ponyfill = __commonJS2({
47782
47808
  __name(normalizeMethod, "normalizeMethod");
47783
47809
  __name3(normalizeMethod, "normalizeMethod");
47784
47810
  function Request(input, options) {
47811
+ if (!(this instanceof Request)) {
47812
+ throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
47813
+ }
47785
47814
  options = options || {};
47786
47815
  var body = options.body;
47787
47816
  if (input instanceof Request) {
@@ -47809,12 +47838,28 @@ var require_browser_ponyfill = __commonJS2({
47809
47838
  }
47810
47839
  this.method = normalizeMethod(options.method || this.method || "GET");
47811
47840
  this.mode = options.mode || this.mode || null;
47812
- this.signal = options.signal || this.signal;
47841
+ this.signal = options.signal || this.signal || function() {
47842
+ if ("AbortController" in g) {
47843
+ var ctrl = new AbortController();
47844
+ return ctrl.signal;
47845
+ }
47846
+ }();
47813
47847
  this.referrer = null;
47814
47848
  if ((this.method === "GET" || this.method === "HEAD") && body) {
47815
47849
  throw new TypeError("Body not allowed for GET or HEAD requests");
47816
47850
  }
47817
47851
  this._initBody(body);
47852
+ if (this.method === "GET" || this.method === "HEAD") {
47853
+ if (options.cache === "no-store" || options.cache === "no-cache") {
47854
+ var reParamSearch = /([?&])_=[^&]*/;
47855
+ if (reParamSearch.test(this.url)) {
47856
+ this.url = this.url.replace(reParamSearch, "$1_=" + new Date().getTime());
47857
+ } else {
47858
+ var reQueryString = /\?/;
47859
+ this.url += (reQueryString.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
47860
+ }
47861
+ }
47862
+ }
47818
47863
  }
47819
47864
  __name(Request, "Request");
47820
47865
  __name3(Request, "Request");
@@ -47838,12 +47883,18 @@ var require_browser_ponyfill = __commonJS2({
47838
47883
  function parseHeaders(rawHeaders) {
47839
47884
  var headers = new Headers();
47840
47885
  var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, " ");
47841
- preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
47886
+ preProcessedHeaders.split("\r").map(function(header) {
47887
+ return header.indexOf("\n") === 0 ? header.substr(1, header.length) : header;
47888
+ }).forEach(function(line) {
47842
47889
  var parts = line.split(":");
47843
47890
  var key2 = parts.shift().trim();
47844
47891
  if (key2) {
47845
47892
  var value = parts.join(":").trim();
47846
- headers.append(key2, value);
47893
+ try {
47894
+ headers.append(key2, value);
47895
+ } catch (error) {
47896
+ console.warn("Response " + error.message);
47897
+ }
47847
47898
  }
47848
47899
  });
47849
47900
  return headers;
@@ -47852,13 +47903,19 @@ var require_browser_ponyfill = __commonJS2({
47852
47903
  __name3(parseHeaders, "parseHeaders");
47853
47904
  Body.call(Request.prototype);
47854
47905
  function Response(bodyInit, options) {
47906
+ if (!(this instanceof Response)) {
47907
+ throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
47908
+ }
47855
47909
  if (!options) {
47856
47910
  options = {};
47857
47911
  }
47858
47912
  this.type = "default";
47859
47913
  this.status = options.status === void 0 ? 200 : options.status;
47914
+ if (this.status < 200 || this.status > 599) {
47915
+ throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
47916
+ }
47860
47917
  this.ok = this.status >= 200 && this.status < 300;
47861
- this.statusText = "statusText" in options ? options.statusText : "OK";
47918
+ this.statusText = options.statusText === void 0 ? "" : "" + options.statusText;
47862
47919
  this.headers = new Headers(options.headers);
47863
47920
  this.url = options.url || "";
47864
47921
  this._initBody(bodyInit);
@@ -47875,7 +47932,9 @@ var require_browser_ponyfill = __commonJS2({
47875
47932
  });
47876
47933
  };
47877
47934
  Response.error = function() {
47878
- var response = new Response(null, { status: 0, statusText: "" });
47935
+ var response = new Response(null, { status: 200, statusText: "" });
47936
+ response.ok = false;
47937
+ response.status = 0;
47879
47938
  response.type = "error";
47880
47939
  return response;
47881
47940
  };
@@ -47886,7 +47945,7 @@ var require_browser_ponyfill = __commonJS2({
47886
47945
  }
47887
47946
  return new Response(null, { status, headers: { location: url } });
47888
47947
  };
47889
- exports2.DOMException = self2.DOMException;
47948
+ exports2.DOMException = g.DOMException;
47890
47949
  try {
47891
47950
  new exports2.DOMException();
47892
47951
  } catch (err) {
@@ -47913,35 +47972,73 @@ var require_browser_ponyfill = __commonJS2({
47913
47972
  __name3(abortXhr, "abortXhr");
47914
47973
  xhr.onload = function() {
47915
47974
  var options = {
47916
- status: xhr.status,
47917
47975
  statusText: xhr.statusText,
47918
47976
  headers: parseHeaders(xhr.getAllResponseHeaders() || "")
47919
47977
  };
47978
+ if (request.url.indexOf("file://") === 0 && (xhr.status < 200 || xhr.status > 599)) {
47979
+ options.status = 200;
47980
+ } else {
47981
+ options.status = xhr.status;
47982
+ }
47920
47983
  options.url = "responseURL" in xhr ? xhr.responseURL : options.headers.get("X-Request-URL");
47921
47984
  var body = "response" in xhr ? xhr.response : xhr.responseText;
47922
- resolve(new Response(body, options));
47985
+ setTimeout(function() {
47986
+ resolve(new Response(body, options));
47987
+ }, 0);
47923
47988
  };
47924
47989
  xhr.onerror = function() {
47925
- reject(new TypeError("Network request failed"));
47990
+ setTimeout(function() {
47991
+ reject(new TypeError("Network request failed"));
47992
+ }, 0);
47926
47993
  };
47927
47994
  xhr.ontimeout = function() {
47928
- reject(new TypeError("Network request failed"));
47995
+ setTimeout(function() {
47996
+ reject(new TypeError("Network request timed out"));
47997
+ }, 0);
47929
47998
  };
47930
47999
  xhr.onabort = function() {
47931
- reject(new exports2.DOMException("Aborted", "AbortError"));
48000
+ setTimeout(function() {
48001
+ reject(new exports2.DOMException("Aborted", "AbortError"));
48002
+ }, 0);
47932
48003
  };
47933
- xhr.open(request.method, request.url, true);
48004
+ function fixUrl(url) {
48005
+ try {
48006
+ return url === "" && g.location.href ? g.location.href : url;
48007
+ } catch (e2) {
48008
+ return url;
48009
+ }
48010
+ }
48011
+ __name(fixUrl, "fixUrl");
48012
+ __name3(fixUrl, "fixUrl");
48013
+ xhr.open(request.method, fixUrl(request.url), true);
47934
48014
  if (request.credentials === "include") {
47935
48015
  xhr.withCredentials = true;
47936
48016
  } else if (request.credentials === "omit") {
47937
48017
  xhr.withCredentials = false;
47938
48018
  }
47939
- if ("responseType" in xhr && support.blob) {
47940
- xhr.responseType = "blob";
48019
+ if ("responseType" in xhr) {
48020
+ if (support.blob) {
48021
+ xhr.responseType = "blob";
48022
+ } else if (support.arrayBuffer) {
48023
+ xhr.responseType = "arraybuffer";
48024
+ }
48025
+ }
48026
+ if (init2 && typeof init2.headers === "object" && !(init2.headers instanceof Headers || g.Headers && init2.headers instanceof g.Headers)) {
48027
+ var names = [];
48028
+ Object.getOwnPropertyNames(init2.headers).forEach(function(name32) {
48029
+ names.push(normalizeName(name32));
48030
+ xhr.setRequestHeader(name32, normalizeValue(init2.headers[name32]));
48031
+ });
48032
+ request.headers.forEach(function(value, name32) {
48033
+ if (names.indexOf(name32) === -1) {
48034
+ xhr.setRequestHeader(name32, value);
48035
+ }
48036
+ });
48037
+ } else {
48038
+ request.headers.forEach(function(value, name32) {
48039
+ xhr.setRequestHeader(name32, value);
48040
+ });
47941
48041
  }
47942
- request.headers.forEach(function(value, name32) {
47943
- xhr.setRequestHeader(name32, value);
47944
- });
47945
48042
  if (request.signal) {
47946
48043
  request.signal.addEventListener("abort", abortXhr);
47947
48044
  xhr.onreadystatechange = function() {
@@ -47956,11 +48053,11 @@ var require_browser_ponyfill = __commonJS2({
47956
48053
  __name(fetch2, "fetch2");
47957
48054
  __name3(fetch2, "fetch");
47958
48055
  fetch2.polyfill = true;
47959
- if (!self2.fetch) {
47960
- self2.fetch = fetch2;
47961
- self2.Headers = Headers;
47962
- self2.Request = Request;
47963
- self2.Response = Response;
48056
+ if (!g.fetch) {
48057
+ g.fetch = fetch2;
48058
+ g.Headers = Headers;
48059
+ g.Request = Request;
48060
+ g.Response = Response;
47964
48061
  }
47965
48062
  exports2.Headers = Headers;
47966
48063
  exports2.Request = Request;
@@ -47969,10 +48066,10 @@ var require_browser_ponyfill = __commonJS2({
47969
48066
  Object.defineProperty(exports2, "__esModule", { value: true });
47970
48067
  return exports2;
47971
48068
  }({});
47972
- })(__self__);
47973
- __self__.fetch.ponyfill = true;
47974
- delete __self__.fetch.polyfill;
47975
- var ctx = __self__;
48069
+ })(__globalThis__);
48070
+ __globalThis__.fetch.ponyfill = true;
48071
+ delete __globalThis__.fetch.polyfill;
48072
+ var ctx = __global__.fetch ? __global__ : __globalThis__;
47976
48073
  exports = ctx.fetch;
47977
48074
  exports.default = ctx.fetch;
47978
48075
  exports.fetch = ctx.fetch;
@@ -47983,7 +48080,7 @@ var require_browser_ponyfill = __commonJS2({
47983
48080
  }
47984
48081
  });
47985
48082
  var require_dataloader2 = __commonJS2({
47986
- "../../../node_modules/.pnpm/dataloader@2.2.2/node_modules/dataloader/index.js"(exports, module2) {
48083
+ "../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js"(exports, module2) {
47987
48084
  "use strict";
47988
48085
  var DataLoader2 = /* @__PURE__ */ function() {
47989
48086
  function DataLoader3(batchLoadFn, options) {
@@ -48007,8 +48104,9 @@ var require_dataloader2 = __commonJS2({
48007
48104
  }
48008
48105
  var batch = getCurrentBatch(this);
48009
48106
  var cacheMap = this._cacheMap;
48010
- var cacheKey = this._cacheKeyFn(key2);
48107
+ var cacheKey;
48011
48108
  if (cacheMap) {
48109
+ cacheKey = this._cacheKeyFn(key2);
48012
48110
  var cachedPromise = cacheMap.get(cacheKey);
48013
48111
  if (cachedPromise) {
48014
48112
  var cacheHits = batch.cacheHits || (batch.cacheHits = []);
@@ -48133,11 +48231,11 @@ var require_dataloader2 = __commonJS2({
48133
48231
  }
48134
48232
  resolveCacheHits(batch);
48135
48233
  for (var i2 = 0; i2 < batch.callbacks.length; i2++) {
48136
- var value = values[i2];
48137
- if (value instanceof Error) {
48138
- batch.callbacks[i2].reject(value);
48234
+ var _value = values[i2];
48235
+ if (_value instanceof Error) {
48236
+ batch.callbacks[i2].reject(_value);
48139
48237
  } else {
48140
- batch.callbacks[i2].resolve(value);
48238
+ batch.callbacks[i2].resolve(_value);
48141
48239
  }
48142
48240
  }
48143
48241
  })["catch"](function(error) {
@@ -53626,7 +53724,7 @@ function verifyTimeChecks(cacao, options) {
53626
53724
  }
53627
53725
  __name(verifyTimeChecks, "verifyTimeChecks");
53628
53726
  __name3(verifyTimeChecks, "verifyTimeChecks");
53629
- var version22 = "logger/5.7.0";
53727
+ var version22 = "logger/5.8.0";
53630
53728
  var _permanentCensorErrors = false;
53631
53729
  var _censorErrors = false;
53632
53730
  var LogLevels = { debug: 1, "default": 2, info: 2, warning: 3, error: 4, off: 5 };
@@ -53916,7 +54014,7 @@ var Logger = /* @__PURE__ */ __name(class {
53916
54014
  __name3(Logger, "Logger");
53917
54015
  Logger.errors = ErrorCode;
53918
54016
  Logger.levels = LogLevel;
53919
- var version3 = "bytes/5.7.0";
54017
+ var version3 = "bytes/5.8.0";
53920
54018
  var logger = new Logger(version3);
53921
54019
  function isHexable(value) {
53922
54020
  return !!value.toHexString;
@@ -54259,7 +54357,7 @@ function splitSignature(signature2) {
54259
54357
  __name(splitSignature, "splitSignature");
54260
54358
  __name3(splitSignature, "splitSignature");
54261
54359
  var import_bn = __toESM2(require_bn2());
54262
- var version4 = "bignumber/5.7.0";
54360
+ var version4 = "bignumber/5.8.0";
54263
54361
  var BN = import_bn.default.BN;
54264
54362
  var logger2 = new Logger(version4);
54265
54363
  function _base36To16(value) {
@@ -54273,7 +54371,7 @@ function keccak256(data) {
54273
54371
  }
54274
54372
  __name(keccak256, "keccak256");
54275
54373
  __name3(keccak256, "keccak256");
54276
- var version5 = "address/5.7.0";
54374
+ var version5 = "address/5.8.0";
54277
54375
  var logger3 = new Logger(version5);
54278
54376
  function getChecksumAddress(address) {
54279
54377
  if (!isHexString(address, 20)) {
@@ -54362,7 +54460,7 @@ function getAddress(address) {
54362
54460
  }
54363
54461
  __name(getAddress, "getAddress");
54364
54462
  __name3(getAddress, "getAddress");
54365
- var version6 = "properties/5.7.0";
54463
+ var version6 = "properties/5.8.0";
54366
54464
  var logger4 = new Logger(version6);
54367
54465
  function defineReadOnly(object, name32, value) {
54368
54466
  Object.defineProperty(object, name32, {
@@ -54373,7 +54471,7 @@ function defineReadOnly(object, name32, value) {
54373
54471
  }
54374
54472
  __name(defineReadOnly, "defineReadOnly");
54375
54473
  __name3(defineReadOnly, "defineReadOnly");
54376
- var version7 = "strings/5.7.0";
54474
+ var version7 = "strings/5.8.0";
54377
54475
  var logger5 = new Logger(version7);
54378
54476
  var UnicodeNormalizationForm;
54379
54477
  (function(UnicodeNormalizationForm2) {
@@ -54578,10 +54676,13 @@ var utils_1$1 = createCommonjsModule(function(module2, exports) {
54578
54676
  utils.encode = utils_1.encode;
54579
54677
  function getNAF2(num, w, bits) {
54580
54678
  var naf = new Array(Math.max(num.bitLength(), bits) + 1);
54581
- naf.fill(0);
54679
+ var i2;
54680
+ for (i2 = 0; i2 < naf.length; i2 += 1) {
54681
+ naf[i2] = 0;
54682
+ }
54582
54683
  var ws = 1 << w + 1;
54583
54684
  var k = num.clone();
54584
- for (var i2 = 0; i2 < naf.length; i2++) {
54685
+ for (i2 = 0; i2 < naf.length; i2++) {
54585
54686
  var z;
54586
54687
  var mod22 = k.andln(ws - 1);
54587
54688
  if (k.isOdd()) {
@@ -56046,8 +56147,8 @@ KeyPair.prototype.derive = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functi
56046
56147
  KeyPair.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign2(msg, enc, options) {
56047
56148
  return this.ec.sign(msg, this, enc, options);
56048
56149
  }, "sign2"), "sign");
56049
- KeyPair.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify2(msg, signature2) {
56050
- return this.ec.verify(msg, signature2, this);
56150
+ KeyPair.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify2(msg, signature2, options) {
56151
+ return this.ec.verify(msg, signature2, this, void 0, options);
56051
56152
  }, "verify2"), "verify");
56052
56153
  KeyPair.prototype.inspect = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function inspect3() {
56053
56154
  return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
@@ -56083,6 +56184,9 @@ function getLength(buf22, p) {
56083
56184
  if (octetLen === 0 || octetLen > 4) {
56084
56185
  return false;
56085
56186
  }
56187
+ if (buf22[p.place] === 0) {
56188
+ return false;
56189
+ }
56086
56190
  var val = 0;
56087
56191
  for (var i2 = 0, off = p.place; i2 < octetLen; i2++, off++) {
56088
56192
  val <<= 8;
@@ -56130,6 +56234,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
56130
56234
  if (rlen === false) {
56131
56235
  return false;
56132
56236
  }
56237
+ if ((data[p.place] & 128) !== 0) {
56238
+ return false;
56239
+ }
56133
56240
  var r2 = data.slice(p.place, rlen + p.place);
56134
56241
  p.place += rlen;
56135
56242
  if (data[p.place++] !== 2) {
@@ -56142,6 +56249,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
56142
56249
  if (data.length !== slen + p.place) {
56143
56250
  return false;
56144
56251
  }
56252
+ if ((data[p.place] & 128) !== 0) {
56253
+ return false;
56254
+ }
56145
56255
  var s2 = data.slice(p.place, slen + p.place);
56146
56256
  if (r2[0] === 0) {
56147
56257
  if (r2[1] & 128) {
@@ -56256,8 +56366,23 @@ EC.prototype.genKeyPair = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functio
56256
56366
  return this.keyFromPrivate(priv);
56257
56367
  }
56258
56368
  }, "genKeyPair"), "genKeyPair");
56259
- EC.prototype._truncateToN = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function _truncateToN(msg, truncOnly) {
56260
- var delta = msg.byteLength() * 8 - this.n.bitLength();
56369
+ EC.prototype._truncateToN = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function _truncateToN(msg, truncOnly, bitLength) {
56370
+ var byteLength;
56371
+ if (import_bn2.default.isBN(msg) || typeof msg === "number") {
56372
+ msg = new import_bn2.default(msg, 16);
56373
+ byteLength = msg.byteLength();
56374
+ } else if (typeof msg === "object") {
56375
+ byteLength = msg.length;
56376
+ msg = new import_bn2.default(msg, 16);
56377
+ } else {
56378
+ var str = msg.toString();
56379
+ byteLength = str.length + 1 >>> 1;
56380
+ msg = new import_bn2.default(str, 16);
56381
+ }
56382
+ if (typeof bitLength !== "number") {
56383
+ bitLength = byteLength * 8;
56384
+ }
56385
+ var delta = bitLength - this.n.bitLength();
56261
56386
  if (delta > 0)
56262
56387
  msg = msg.ushrn(delta);
56263
56388
  if (!truncOnly && msg.cmp(this.n) >= 0)
@@ -56272,11 +56397,22 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
56272
56397
  }
56273
56398
  if (!options)
56274
56399
  options = {};
56400
+ if (typeof msg !== "string" && typeof msg !== "number" && !import_bn2.default.isBN(msg)) {
56401
+ assert$5(
56402
+ typeof msg === "object" && msg && typeof msg.length === "number",
56403
+ "Expected message to be an array-like, a hex string, or a BN instance"
56404
+ );
56405
+ assert$5(msg.length >>> 0 === msg.length);
56406
+ for (var i2 = 0; i2 < msg.length; i2++)
56407
+ assert$5((msg[i2] & 255) === msg[i2]);
56408
+ }
56275
56409
  key2 = this.keyFromPrivate(key2, enc);
56276
- msg = this._truncateToN(new import_bn2.default(msg, 16));
56410
+ msg = this._truncateToN(msg, false, options.msgBitLength);
56411
+ assert$5(!msg.isNeg(), "Can not sign a negative message");
56277
56412
  var bytes = this.n.byteLength();
56278
56413
  var bkey = key2.getPrivate().toArray("be", bytes);
56279
56414
  var nonce = msg.toArray("be", bytes);
56415
+ assert$5(new import_bn2.default(nonce).eq(msg), "Can not sign message");
56280
56416
  var drbg = new hmacDrbg({
56281
56417
  hash: this.hash,
56282
56418
  entropy: bkey,
@@ -56309,8 +56445,10 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
56309
56445
  return new signature({ r: r2, s: s2, recoveryParam });
56310
56446
  }
56311
56447
  }, "sign3"), "sign");
56312
- EC.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify3(msg, signature$1, key2, enc) {
56313
- msg = this._truncateToN(new import_bn2.default(msg, 16));
56448
+ EC.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify3(msg, signature$1, key2, enc, options) {
56449
+ if (!options)
56450
+ options = {};
56451
+ msg = this._truncateToN(msg, false, options.msgBitLength);
56314
56452
  key2 = this.keyFromPublic(key2, enc);
56315
56453
  signature$1 = new signature(signature$1, "hex");
56316
56454
  var r2 = signature$1.r;
@@ -56373,7 +56511,7 @@ EC.prototype.getKeyRecoveryParam = function(e2, signature$1, Q, enc) {
56373
56511
  var elliptic_1 = createCommonjsModule(function(module2, exports) {
56374
56512
  "use strict";
56375
56513
  var elliptic = exports;
56376
- elliptic.version = { version: "6.5.4" }.version;
56514
+ elliptic.version = { version: "6.6.1" }.version;
56377
56515
  elliptic.utils = utils_1$1;
56378
56516
  elliptic.rand = function() {
56379
56517
  throw new Error("unsupported");
@@ -56384,7 +56522,7 @@ var elliptic_1 = createCommonjsModule(function(module2, exports) {
56384
56522
  elliptic.eddsa = null;
56385
56523
  });
56386
56524
  var EC$1 = elliptic_1.ec;
56387
- var version8 = "signing-key/5.7.0";
56525
+ var version8 = "signing-key/5.8.0";
56388
56526
  var logger6 = new Logger(version8);
56389
56527
  var _curve = null;
56390
56528
  function getCurve() {
@@ -56465,7 +56603,7 @@ function computePublicKey(key2, compressed) {
56465
56603
  }
56466
56604
  __name(computePublicKey, "computePublicKey");
56467
56605
  __name3(computePublicKey, "computePublicKey");
56468
- var version9 = "transactions/5.7.0";
56606
+ var version9 = "transactions/5.8.0";
56469
56607
  var logger7 = new Logger(version9);
56470
56608
  var TransactionTypes;
56471
56609
  (function(TransactionTypes2) {
@@ -56484,7 +56622,7 @@ function recoverAddress(digest22, signature2) {
56484
56622
  }
56485
56623
  __name(recoverAddress, "recoverAddress");
56486
56624
  __name3(recoverAddress, "recoverAddress");
56487
- var version10 = "wallet/5.7.0";
56625
+ var version10 = "wallet/5.8.0";
56488
56626
  var logger8 = new Logger(version10);
56489
56627
  function verifyMessage(message, signature2) {
56490
56628
  return recoverAddress(hashMessage(message), signature2);
@@ -66448,7 +66586,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
66448
66586
  frontDoorBoostUri: mod2.string().optional(),
66449
66587
  createdAt: mod2.string(),
66450
66588
  updatedAt: mod2.string(),
66451
- expiresAt: mod2.string().optional()
66589
+ expiresAt: mod2.string().optional(),
66590
+ autoBoosts: mod2.string().array().optional()
66452
66591
  });
66453
66592
  var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
66454
66593
  records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
@@ -66627,8 +66766,23 @@ var BackwardsCompatCredentialsListValidator = mod.object({
66627
66766
  credentials: CredentialRecordValidator.or(BackwardsCompatIDXCredentialValidator).array()
66628
66767
  }).strict();
66629
66768
 
66769
+ // src/defaults.ts
66770
+ var DEFAULT_IDX_ARGS = {
66771
+ modelData: {
66772
+ definitions: {
66773
+ MyVerifiableCredentials: "kjzl6cwe1jw14am5tu5hh412s19o4zm8aq3g2lpd6s4paxj2nly2lj4drp3pun2"
66774
+ },
66775
+ schemas: {
66776
+ AchievementVerifiableCredential: "ceramic://k3y52l7qbv1frylibw2725v8gem3hxs1onoh6pvux0szdduugczh0hddxo6qsd6o0",
66777
+ VerifiableCredentialsList: "ceramic://k3y52l7qbv1frxkcwfpyauky3fyl4n44izridy3blvjjzgftis40sk9w8g3remghs"
66778
+ },
66779
+ tiles: {}
66780
+ },
66781
+ credentialAlias: "MyVerifiableCredentials"
66782
+ };
66783
+
66630
66784
  // src/idx.ts
66631
- var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias }) => {
66785
+ var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias } = DEFAULT_IDX_ARGS) => {
66632
66786
  const ceramic = learnCard.invoke.getCeramicClient();
66633
66787
  const dataStore = new DIDDataStore({ ceramic, model: modelData });
66634
66788
  const getCredentialsListFromIdx = /* @__PURE__ */ __name(async (alias = credentialAlias) => {