@pod-os/core 0.6.1-bea440b.0 → 0.6.1-bf507bb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1140 -1326
- package/lib/index.js +1140 -1326
- package/package.json +12 -12
- package/types/authentication/index.d.ts +1 -1
- package/Readme.md +0 -3
package/dist/index.js
CHANGED
|
@@ -437,148 +437,6 @@ var require_events = __commonJS({
|
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
|
|
440
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/constant.js
|
|
441
|
-
var require_constant = __commonJS({
|
|
442
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/constant.js"(exports) {
|
|
443
|
-
"use strict";
|
|
444
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
445
|
-
exports.DEFAULT_SCOPES = exports.REFRESH_BEFORE_EXPIRATION_SECONDS = exports.EVENTS = exports.PREFERRED_SIGNING_ALG = exports.SOLID_CLIENT_AUTHN_KEY_PREFIX = void 0;
|
|
446
|
-
exports.SOLID_CLIENT_AUTHN_KEY_PREFIX = "solidClientAuthn:";
|
|
447
|
-
exports.PREFERRED_SIGNING_ALG = ["ES256", "RS256"];
|
|
448
|
-
exports.EVENTS = {
|
|
449
|
-
ERROR: "error",
|
|
450
|
-
LOGIN: "login",
|
|
451
|
-
LOGOUT: "logout",
|
|
452
|
-
NEW_REFRESH_TOKEN: "newRefreshToken",
|
|
453
|
-
SESSION_EXPIRED: "sessionExpired",
|
|
454
|
-
SESSION_EXTENDED: "sessionExtended",
|
|
455
|
-
SESSION_RESTORED: "sessionRestore",
|
|
456
|
-
TIMEOUT_SET: "timeoutSet"
|
|
457
|
-
};
|
|
458
|
-
exports.REFRESH_BEFORE_EXPIRATION_SECONDS = 5;
|
|
459
|
-
var SCOPE_OPENID = "openid";
|
|
460
|
-
var SCOPE_OFFLINE = "offline_access";
|
|
461
|
-
var SCOPE_WEBID = "webid";
|
|
462
|
-
exports.DEFAULT_SCOPES = [SCOPE_OPENID, SCOPE_OFFLINE, SCOPE_WEBID].join(" ");
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
|
|
466
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/errors/InruptError.js
|
|
467
|
-
var require_InruptError = __commonJS({
|
|
468
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/errors/InruptError.js"(exports) {
|
|
469
|
-
"use strict";
|
|
470
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
471
|
-
var InruptError = class extends Error {
|
|
472
|
-
constructor(messageOrIri, messageParams, appendErrorIri = true) {
|
|
473
|
-
super(typeof messageOrIri === "string" ? InruptError.substituteParams(messageOrIri, messageParams) : InruptError.appendErrorIri(InruptError.lookupErrorIri(messageOrIri, messageParams), messageOrIri, appendErrorIri));
|
|
474
|
-
}
|
|
475
|
-
httpResponse(httpErrorResponse, appendHttpDetails = true) {
|
|
476
|
-
this.message = InruptError.appendHttpResponseDetails(this.message, httpErrorResponse, appendHttpDetails);
|
|
477
|
-
this.httpErrorResponse = httpErrorResponse;
|
|
478
|
-
return this;
|
|
479
|
-
}
|
|
480
|
-
hasHttpResponse() {
|
|
481
|
-
return this.httpErrorResponse !== void 0;
|
|
482
|
-
}
|
|
483
|
-
getHttpResponse() {
|
|
484
|
-
return this.httpErrorResponse;
|
|
485
|
-
}
|
|
486
|
-
getHttpStatusCode() {
|
|
487
|
-
if (this.httpErrorResponse === void 0) {
|
|
488
|
-
throw new InruptError("This InruptError was not provided with a HTTP response - so we can't get its HTTP Status Code.");
|
|
489
|
-
}
|
|
490
|
-
return this.httpErrorResponse.status;
|
|
491
|
-
}
|
|
492
|
-
getHttpStatusText() {
|
|
493
|
-
if (this.httpErrorResponse === void 0) {
|
|
494
|
-
throw new InruptError("This InruptError was not provided with a HTTP response - so we can't get its HTTP Status Text!");
|
|
495
|
-
}
|
|
496
|
-
return this.httpErrorResponse.statusText;
|
|
497
|
-
}
|
|
498
|
-
static determineIfVocabTerm(value) {
|
|
499
|
-
if (value.strict !== void 0) {
|
|
500
|
-
return true;
|
|
501
|
-
}
|
|
502
|
-
return false;
|
|
503
|
-
}
|
|
504
|
-
static lookupErrorIri(iri, messageParams) {
|
|
505
|
-
if (InruptError.determineIfVocabTerm(iri)) {
|
|
506
|
-
const message2 = messageParams === void 0 ? iri.message : iri.messageParams(...messageParams);
|
|
507
|
-
return message2 === void 0 ? `Looked up error message IRI [${iri.value}], but found no message value.` : message2;
|
|
508
|
-
}
|
|
509
|
-
return `Error message looked up at: [${iri.value}]${messageParams === void 0 ? "" : `, with params [${messageParams.toString()}]`}`;
|
|
510
|
-
}
|
|
511
|
-
static appendHttpResponseDetails(message2, response, append) {
|
|
512
|
-
if (append && typeof response !== "undefined") {
|
|
513
|
-
return `${message2} HTTP details: status code [${response.status}], status text [${response.statusText}].`;
|
|
514
|
-
}
|
|
515
|
-
return message2;
|
|
516
|
-
}
|
|
517
|
-
static appendErrorIri(message2, iri, append) {
|
|
518
|
-
return append ? `${message2} Error IRI: [${iri.value}].` : message2;
|
|
519
|
-
}
|
|
520
|
-
static substituteParams(message2, params) {
|
|
521
|
-
let fullMessage = message2;
|
|
522
|
-
if (params !== void 0) {
|
|
523
|
-
const paramsRequired = message2.split("{{").length - 1;
|
|
524
|
-
if (paramsRequired !== params.length) {
|
|
525
|
-
throw new Error(`Setting parameters on message [${message2}], but it requires [${paramsRequired}] params and we received [${params.length}].`);
|
|
526
|
-
}
|
|
527
|
-
for (let i = 0; i < params.length; i += 1) {
|
|
528
|
-
const marker = `{{${i}}}`;
|
|
529
|
-
fullMessage = fullMessage.replace(marker, params[i]);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
return fullMessage;
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
|
-
exports.default = InruptError;
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
|
|
539
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/util/handlerPattern/AggregateHandler.js
|
|
540
|
-
var require_AggregateHandler = __commonJS({
|
|
541
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/util/handlerPattern/AggregateHandler.js"(exports) {
|
|
542
|
-
"use strict";
|
|
543
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
544
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
545
|
-
};
|
|
546
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
547
|
-
var InruptError_1 = __importDefault(require_InruptError());
|
|
548
|
-
var AggregateHandler = class {
|
|
549
|
-
constructor(handleables) {
|
|
550
|
-
this.handleables = handleables;
|
|
551
|
-
}
|
|
552
|
-
async getProperHandler(params) {
|
|
553
|
-
const canHandleList = await Promise.all(this.handleables.map((handleable) => handleable.canHandle(...params)));
|
|
554
|
-
for (let i = 0; i < canHandleList.length; i += 1) {
|
|
555
|
-
if (canHandleList[i]) {
|
|
556
|
-
return this.handleables[i];
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
return null;
|
|
560
|
-
}
|
|
561
|
-
async canHandle(...params) {
|
|
562
|
-
return await this.getProperHandler(params) !== null;
|
|
563
|
-
}
|
|
564
|
-
async handle(...params) {
|
|
565
|
-
const handler = await this.getProperHandler(params);
|
|
566
|
-
if (handler) {
|
|
567
|
-
return handler.handle(...params);
|
|
568
|
-
}
|
|
569
|
-
throw new InruptError_1.default(`[${this.constructor.name}] cannot find a suitable handler for: ${params.map((param) => {
|
|
570
|
-
try {
|
|
571
|
-
return JSON.stringify(param);
|
|
572
|
-
} catch (err) {
|
|
573
|
-
return param.toString();
|
|
574
|
-
}
|
|
575
|
-
}).join(", ")}`);
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
|
-
exports.default = AggregateHandler;
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
|
|
582
440
|
// ../node_modules/cross-fetch/dist/browser-ponyfill.js
|
|
583
441
|
var require_browser_ponyfill = __commonJS({
|
|
584
442
|
"../node_modules/cross-fetch/dist/browser-ponyfill.js"(exports, module2) {
|
|
@@ -2374,6 +2232,7 @@ var init_jwk_to_key = __esm({
|
|
|
2374
2232
|
}
|
|
2375
2233
|
const keyData = { ...jwk };
|
|
2376
2234
|
delete keyData.alg;
|
|
2235
|
+
delete keyData.use;
|
|
2377
2236
|
return webcrypto_default.subtle.importKey("jwk", keyData, ...rest);
|
|
2378
2237
|
};
|
|
2379
2238
|
jwk_to_key_default = parse;
|
|
@@ -2467,11 +2326,12 @@ async function importX509(x509, alg, options) {
|
|
|
2467
2326
|
}
|
|
2468
2327
|
async function importPKCS8(pkcs8, alg, options) {
|
|
2469
2328
|
if (typeof pkcs8 !== "string" || pkcs8.indexOf("-----BEGIN PRIVATE KEY-----") !== 0) {
|
|
2470
|
-
throw new TypeError('"pkcs8" must be
|
|
2329
|
+
throw new TypeError('"pkcs8" must be PKCS#8 formatted string');
|
|
2471
2330
|
}
|
|
2472
2331
|
return fromPKCS8(pkcs8, alg, options);
|
|
2473
2332
|
}
|
|
2474
2333
|
async function importJWK(jwk, alg, octAsKeyObject) {
|
|
2334
|
+
var _a;
|
|
2475
2335
|
if (!isObject(jwk)) {
|
|
2476
2336
|
throw new TypeError("JWK must be an object");
|
|
2477
2337
|
}
|
|
@@ -2486,7 +2346,7 @@ async function importJWK(jwk, alg, octAsKeyObject) {
|
|
|
2486
2346
|
}
|
|
2487
2347
|
octAsKeyObject !== null && octAsKeyObject !== void 0 ? octAsKeyObject : octAsKeyObject = jwk.ext !== true;
|
|
2488
2348
|
if (octAsKeyObject) {
|
|
2489
|
-
return jwk_to_key_default({ ...jwk, alg, ext: false });
|
|
2349
|
+
return jwk_to_key_default({ ...jwk, alg, ext: (_a = jwk.ext) !== null && _a !== void 0 ? _a : false });
|
|
2490
2350
|
}
|
|
2491
2351
|
return decode(jwk.k);
|
|
2492
2352
|
case "RSA":
|
|
@@ -5024,16 +4884,764 @@ var init_browser = __esm({
|
|
|
5024
4884
|
}
|
|
5025
4885
|
});
|
|
5026
4886
|
|
|
5027
|
-
// ../node_modules
|
|
5028
|
-
var
|
|
5029
|
-
"../node_modules
|
|
4887
|
+
// ../node_modules/uuid/dist/commonjs-browser/rng.js
|
|
4888
|
+
var require_rng = __commonJS({
|
|
4889
|
+
"../node_modules/uuid/dist/commonjs-browser/rng.js"(exports) {
|
|
5030
4890
|
"use strict";
|
|
5031
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
4891
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4892
|
+
value: true
|
|
4893
|
+
});
|
|
4894
|
+
exports.default = rng;
|
|
4895
|
+
var getRandomValues;
|
|
4896
|
+
var rnds8 = new Uint8Array(16);
|
|
4897
|
+
function rng() {
|
|
4898
|
+
if (!getRandomValues) {
|
|
4899
|
+
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
4900
|
+
if (!getRandomValues) {
|
|
4901
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
return getRandomValues(rnds8);
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
});
|
|
4908
|
+
|
|
4909
|
+
// ../node_modules/uuid/dist/commonjs-browser/regex.js
|
|
4910
|
+
var require_regex = __commonJS({
|
|
4911
|
+
"../node_modules/uuid/dist/commonjs-browser/regex.js"(exports) {
|
|
4912
|
+
"use strict";
|
|
4913
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4914
|
+
value: true
|
|
4915
|
+
});
|
|
4916
|
+
exports.default = void 0;
|
|
4917
|
+
var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
4918
|
+
exports.default = _default;
|
|
4919
|
+
}
|
|
4920
|
+
});
|
|
4921
|
+
|
|
4922
|
+
// ../node_modules/uuid/dist/commonjs-browser/validate.js
|
|
4923
|
+
var require_validate = __commonJS({
|
|
4924
|
+
"../node_modules/uuid/dist/commonjs-browser/validate.js"(exports) {
|
|
4925
|
+
"use strict";
|
|
4926
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4927
|
+
value: true
|
|
4928
|
+
});
|
|
4929
|
+
exports.default = void 0;
|
|
4930
|
+
var _regex = _interopRequireDefault(require_regex());
|
|
4931
|
+
function _interopRequireDefault(obj) {
|
|
4932
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4933
|
+
}
|
|
4934
|
+
function validate(uuid) {
|
|
4935
|
+
return typeof uuid === "string" && _regex.default.test(uuid);
|
|
4936
|
+
}
|
|
4937
|
+
var _default = validate;
|
|
4938
|
+
exports.default = _default;
|
|
4939
|
+
}
|
|
4940
|
+
});
|
|
4941
|
+
|
|
4942
|
+
// ../node_modules/uuid/dist/commonjs-browser/stringify.js
|
|
4943
|
+
var require_stringify = __commonJS({
|
|
4944
|
+
"../node_modules/uuid/dist/commonjs-browser/stringify.js"(exports) {
|
|
4945
|
+
"use strict";
|
|
4946
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4947
|
+
value: true
|
|
4948
|
+
});
|
|
4949
|
+
exports.default = void 0;
|
|
4950
|
+
exports.unsafeStringify = unsafeStringify;
|
|
4951
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
4952
|
+
function _interopRequireDefault(obj) {
|
|
4953
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4954
|
+
}
|
|
4955
|
+
var byteToHex = [];
|
|
4956
|
+
for (let i = 0; i < 256; ++i) {
|
|
4957
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
4958
|
+
}
|
|
4959
|
+
function unsafeStringify(arr, offset = 0) {
|
|
4960
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
4961
|
+
}
|
|
4962
|
+
function stringify(arr, offset = 0) {
|
|
4963
|
+
const uuid = unsafeStringify(arr, offset);
|
|
4964
|
+
if (!(0, _validate.default)(uuid)) {
|
|
4965
|
+
throw TypeError("Stringified UUID is invalid");
|
|
4966
|
+
}
|
|
4967
|
+
return uuid;
|
|
4968
|
+
}
|
|
4969
|
+
var _default = stringify;
|
|
4970
|
+
exports.default = _default;
|
|
4971
|
+
}
|
|
4972
|
+
});
|
|
4973
|
+
|
|
4974
|
+
// ../node_modules/uuid/dist/commonjs-browser/v1.js
|
|
4975
|
+
var require_v1 = __commonJS({
|
|
4976
|
+
"../node_modules/uuid/dist/commonjs-browser/v1.js"(exports) {
|
|
4977
|
+
"use strict";
|
|
4978
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4979
|
+
value: true
|
|
4980
|
+
});
|
|
4981
|
+
exports.default = void 0;
|
|
4982
|
+
var _rng = _interopRequireDefault(require_rng());
|
|
4983
|
+
var _stringify = require_stringify();
|
|
4984
|
+
function _interopRequireDefault(obj) {
|
|
4985
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4986
|
+
}
|
|
4987
|
+
var _nodeId;
|
|
4988
|
+
var _clockseq;
|
|
4989
|
+
var _lastMSecs = 0;
|
|
4990
|
+
var _lastNSecs = 0;
|
|
4991
|
+
function v1(options, buf, offset) {
|
|
4992
|
+
let i = buf && offset || 0;
|
|
4993
|
+
const b = buf || new Array(16);
|
|
4994
|
+
options = options || {};
|
|
4995
|
+
let node = options.node || _nodeId;
|
|
4996
|
+
let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
|
|
4997
|
+
if (node == null || clockseq == null) {
|
|
4998
|
+
const seedBytes = options.random || (options.rng || _rng.default)();
|
|
4999
|
+
if (node == null) {
|
|
5000
|
+
node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
5001
|
+
}
|
|
5002
|
+
if (clockseq == null) {
|
|
5003
|
+
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
|
|
5004
|
+
}
|
|
5005
|
+
}
|
|
5006
|
+
let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
|
|
5007
|
+
let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
|
|
5008
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
|
|
5009
|
+
if (dt < 0 && options.clockseq === void 0) {
|
|
5010
|
+
clockseq = clockseq + 1 & 16383;
|
|
5011
|
+
}
|
|
5012
|
+
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
|
|
5013
|
+
nsecs = 0;
|
|
5014
|
+
}
|
|
5015
|
+
if (nsecs >= 1e4) {
|
|
5016
|
+
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
5017
|
+
}
|
|
5018
|
+
_lastMSecs = msecs;
|
|
5019
|
+
_lastNSecs = nsecs;
|
|
5020
|
+
_clockseq = clockseq;
|
|
5021
|
+
msecs += 122192928e5;
|
|
5022
|
+
const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
|
|
5023
|
+
b[i++] = tl >>> 24 & 255;
|
|
5024
|
+
b[i++] = tl >>> 16 & 255;
|
|
5025
|
+
b[i++] = tl >>> 8 & 255;
|
|
5026
|
+
b[i++] = tl & 255;
|
|
5027
|
+
const tmh = msecs / 4294967296 * 1e4 & 268435455;
|
|
5028
|
+
b[i++] = tmh >>> 8 & 255;
|
|
5029
|
+
b[i++] = tmh & 255;
|
|
5030
|
+
b[i++] = tmh >>> 24 & 15 | 16;
|
|
5031
|
+
b[i++] = tmh >>> 16 & 255;
|
|
5032
|
+
b[i++] = clockseq >>> 8 | 128;
|
|
5033
|
+
b[i++] = clockseq & 255;
|
|
5034
|
+
for (let n = 0; n < 6; ++n) {
|
|
5035
|
+
b[i + n] = node[n];
|
|
5036
|
+
}
|
|
5037
|
+
return buf || (0, _stringify.unsafeStringify)(b);
|
|
5038
|
+
}
|
|
5039
|
+
var _default = v1;
|
|
5040
|
+
exports.default = _default;
|
|
5041
|
+
}
|
|
5042
|
+
});
|
|
5043
|
+
|
|
5044
|
+
// ../node_modules/uuid/dist/commonjs-browser/parse.js
|
|
5045
|
+
var require_parse = __commonJS({
|
|
5046
|
+
"../node_modules/uuid/dist/commonjs-browser/parse.js"(exports) {
|
|
5047
|
+
"use strict";
|
|
5048
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5049
|
+
value: true
|
|
5050
|
+
});
|
|
5051
|
+
exports.default = void 0;
|
|
5052
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
5053
|
+
function _interopRequireDefault(obj) {
|
|
5054
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5055
|
+
}
|
|
5056
|
+
function parse3(uuid) {
|
|
5057
|
+
if (!(0, _validate.default)(uuid)) {
|
|
5058
|
+
throw TypeError("Invalid UUID");
|
|
5059
|
+
}
|
|
5060
|
+
let v;
|
|
5061
|
+
const arr = new Uint8Array(16);
|
|
5062
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
5063
|
+
arr[1] = v >>> 16 & 255;
|
|
5064
|
+
arr[2] = v >>> 8 & 255;
|
|
5065
|
+
arr[3] = v & 255;
|
|
5066
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
5067
|
+
arr[5] = v & 255;
|
|
5068
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
5069
|
+
arr[7] = v & 255;
|
|
5070
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
5071
|
+
arr[9] = v & 255;
|
|
5072
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
|
|
5073
|
+
arr[11] = v / 4294967296 & 255;
|
|
5074
|
+
arr[12] = v >>> 24 & 255;
|
|
5075
|
+
arr[13] = v >>> 16 & 255;
|
|
5076
|
+
arr[14] = v >>> 8 & 255;
|
|
5077
|
+
arr[15] = v & 255;
|
|
5078
|
+
return arr;
|
|
5079
|
+
}
|
|
5080
|
+
var _default = parse3;
|
|
5081
|
+
exports.default = _default;
|
|
5082
|
+
}
|
|
5083
|
+
});
|
|
5084
|
+
|
|
5085
|
+
// ../node_modules/uuid/dist/commonjs-browser/v35.js
|
|
5086
|
+
var require_v35 = __commonJS({
|
|
5087
|
+
"../node_modules/uuid/dist/commonjs-browser/v35.js"(exports) {
|
|
5088
|
+
"use strict";
|
|
5089
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5090
|
+
value: true
|
|
5091
|
+
});
|
|
5092
|
+
exports.URL = exports.DNS = void 0;
|
|
5093
|
+
exports.default = v35;
|
|
5094
|
+
var _stringify = require_stringify();
|
|
5095
|
+
var _parse = _interopRequireDefault(require_parse());
|
|
5096
|
+
function _interopRequireDefault(obj) {
|
|
5097
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5098
|
+
}
|
|
5099
|
+
function stringToBytes(str) {
|
|
5100
|
+
str = unescape(encodeURIComponent(str));
|
|
5101
|
+
const bytes = [];
|
|
5102
|
+
for (let i = 0; i < str.length; ++i) {
|
|
5103
|
+
bytes.push(str.charCodeAt(i));
|
|
5104
|
+
}
|
|
5105
|
+
return bytes;
|
|
5106
|
+
}
|
|
5107
|
+
var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
5108
|
+
exports.DNS = DNS;
|
|
5109
|
+
var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5110
|
+
exports.URL = URL2;
|
|
5111
|
+
function v35(name, version, hashfunc) {
|
|
5112
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
5113
|
+
var _namespace;
|
|
5114
|
+
if (typeof value === "string") {
|
|
5115
|
+
value = stringToBytes(value);
|
|
5116
|
+
}
|
|
5117
|
+
if (typeof namespace === "string") {
|
|
5118
|
+
namespace = (0, _parse.default)(namespace);
|
|
5119
|
+
}
|
|
5120
|
+
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
5121
|
+
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
5122
|
+
}
|
|
5123
|
+
let bytes = new Uint8Array(16 + value.length);
|
|
5124
|
+
bytes.set(namespace);
|
|
5125
|
+
bytes.set(value, namespace.length);
|
|
5126
|
+
bytes = hashfunc(bytes);
|
|
5127
|
+
bytes[6] = bytes[6] & 15 | version;
|
|
5128
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
5129
|
+
if (buf) {
|
|
5130
|
+
offset = offset || 0;
|
|
5131
|
+
for (let i = 0; i < 16; ++i) {
|
|
5132
|
+
buf[offset + i] = bytes[i];
|
|
5133
|
+
}
|
|
5134
|
+
return buf;
|
|
5135
|
+
}
|
|
5136
|
+
return (0, _stringify.unsafeStringify)(bytes);
|
|
5137
|
+
}
|
|
5138
|
+
try {
|
|
5139
|
+
generateUUID.name = name;
|
|
5140
|
+
} catch (err) {
|
|
5141
|
+
}
|
|
5142
|
+
generateUUID.DNS = DNS;
|
|
5143
|
+
generateUUID.URL = URL2;
|
|
5144
|
+
return generateUUID;
|
|
5145
|
+
}
|
|
5146
|
+
}
|
|
5147
|
+
});
|
|
5148
|
+
|
|
5149
|
+
// ../node_modules/uuid/dist/commonjs-browser/md5.js
|
|
5150
|
+
var require_md5 = __commonJS({
|
|
5151
|
+
"../node_modules/uuid/dist/commonjs-browser/md5.js"(exports) {
|
|
5152
|
+
"use strict";
|
|
5153
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5154
|
+
value: true
|
|
5155
|
+
});
|
|
5156
|
+
exports.default = void 0;
|
|
5157
|
+
function md5(bytes) {
|
|
5158
|
+
if (typeof bytes === "string") {
|
|
5159
|
+
const msg2 = unescape(encodeURIComponent(bytes));
|
|
5160
|
+
bytes = new Uint8Array(msg2.length);
|
|
5161
|
+
for (let i = 0; i < msg2.length; ++i) {
|
|
5162
|
+
bytes[i] = msg2.charCodeAt(i);
|
|
5163
|
+
}
|
|
5164
|
+
}
|
|
5165
|
+
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
5166
|
+
}
|
|
5167
|
+
function md5ToHexEncodedArray(input) {
|
|
5168
|
+
const output = [];
|
|
5169
|
+
const length32 = input.length * 32;
|
|
5170
|
+
const hexTab = "0123456789abcdef";
|
|
5171
|
+
for (let i = 0; i < length32; i += 8) {
|
|
5172
|
+
const x = input[i >> 5] >>> i % 32 & 255;
|
|
5173
|
+
const hex = parseInt(hexTab.charAt(x >>> 4 & 15) + hexTab.charAt(x & 15), 16);
|
|
5174
|
+
output.push(hex);
|
|
5175
|
+
}
|
|
5176
|
+
return output;
|
|
5177
|
+
}
|
|
5178
|
+
function getOutputLength(inputLength8) {
|
|
5179
|
+
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
5180
|
+
}
|
|
5181
|
+
function wordsToMd5(x, len) {
|
|
5182
|
+
x[len >> 5] |= 128 << len % 32;
|
|
5183
|
+
x[getOutputLength(len) - 1] = len;
|
|
5184
|
+
let a = 1732584193;
|
|
5185
|
+
let b = -271733879;
|
|
5186
|
+
let c = -1732584194;
|
|
5187
|
+
let d = 271733878;
|
|
5188
|
+
for (let i = 0; i < x.length; i += 16) {
|
|
5189
|
+
const olda = a;
|
|
5190
|
+
const oldb = b;
|
|
5191
|
+
const oldc = c;
|
|
5192
|
+
const oldd = d;
|
|
5193
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
5194
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
5195
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
5196
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
5197
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
5198
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
5199
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
5200
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
5201
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
5202
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
5203
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
5204
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
5205
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
5206
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
5207
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
5208
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
5209
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
5210
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
5211
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
5212
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
5213
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
5214
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
5215
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
5216
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
5217
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
5218
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
5219
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
5220
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
5221
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
5222
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
5223
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
5224
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
5225
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
5226
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
5227
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
5228
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
5229
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
5230
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
5231
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
5232
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
5233
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
5234
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
5235
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
5236
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
5237
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
5238
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
5239
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
5240
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
5241
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
5242
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
5243
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
5244
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
5245
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
5246
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
5247
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
5248
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
5249
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
5250
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
5251
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
5252
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
5253
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
5254
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
5255
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
5256
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
5257
|
+
a = safeAdd(a, olda);
|
|
5258
|
+
b = safeAdd(b, oldb);
|
|
5259
|
+
c = safeAdd(c, oldc);
|
|
5260
|
+
d = safeAdd(d, oldd);
|
|
5261
|
+
}
|
|
5262
|
+
return [a, b, c, d];
|
|
5263
|
+
}
|
|
5264
|
+
function bytesToWords(input) {
|
|
5265
|
+
if (input.length === 0) {
|
|
5266
|
+
return [];
|
|
5267
|
+
}
|
|
5268
|
+
const length8 = input.length * 8;
|
|
5269
|
+
const output = new Uint32Array(getOutputLength(length8));
|
|
5270
|
+
for (let i = 0; i < length8; i += 8) {
|
|
5271
|
+
output[i >> 5] |= (input[i / 8] & 255) << i % 32;
|
|
5272
|
+
}
|
|
5273
|
+
return output;
|
|
5274
|
+
}
|
|
5275
|
+
function safeAdd(x, y) {
|
|
5276
|
+
const lsw = (x & 65535) + (y & 65535);
|
|
5277
|
+
const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
5278
|
+
return msw << 16 | lsw & 65535;
|
|
5279
|
+
}
|
|
5280
|
+
function bitRotateLeft(num, cnt) {
|
|
5281
|
+
return num << cnt | num >>> 32 - cnt;
|
|
5282
|
+
}
|
|
5283
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
5284
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
5285
|
+
}
|
|
5286
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
5287
|
+
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
5288
|
+
}
|
|
5289
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
5290
|
+
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
5291
|
+
}
|
|
5292
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
5293
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
5294
|
+
}
|
|
5295
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
5296
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
5297
|
+
}
|
|
5298
|
+
var _default = md5;
|
|
5299
|
+
exports.default = _default;
|
|
5300
|
+
}
|
|
5301
|
+
});
|
|
5302
|
+
|
|
5303
|
+
// ../node_modules/uuid/dist/commonjs-browser/v3.js
|
|
5304
|
+
var require_v3 = __commonJS({
|
|
5305
|
+
"../node_modules/uuid/dist/commonjs-browser/v3.js"(exports) {
|
|
5306
|
+
"use strict";
|
|
5307
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5308
|
+
value: true
|
|
5309
|
+
});
|
|
5310
|
+
exports.default = void 0;
|
|
5311
|
+
var _v = _interopRequireDefault(require_v35());
|
|
5312
|
+
var _md = _interopRequireDefault(require_md5());
|
|
5313
|
+
function _interopRequireDefault(obj) {
|
|
5314
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5315
|
+
}
|
|
5316
|
+
var v3 = (0, _v.default)("v3", 48, _md.default);
|
|
5317
|
+
var _default = v3;
|
|
5318
|
+
exports.default = _default;
|
|
5319
|
+
}
|
|
5320
|
+
});
|
|
5321
|
+
|
|
5322
|
+
// ../node_modules/uuid/dist/commonjs-browser/native.js
|
|
5323
|
+
var require_native = __commonJS({
|
|
5324
|
+
"../node_modules/uuid/dist/commonjs-browser/native.js"(exports) {
|
|
5325
|
+
"use strict";
|
|
5326
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5327
|
+
value: true
|
|
5328
|
+
});
|
|
5329
|
+
exports.default = void 0;
|
|
5330
|
+
var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
5331
|
+
var _default = {
|
|
5332
|
+
randomUUID
|
|
5333
|
+
};
|
|
5334
|
+
exports.default = _default;
|
|
5335
|
+
}
|
|
5336
|
+
});
|
|
5337
|
+
|
|
5338
|
+
// ../node_modules/uuid/dist/commonjs-browser/v4.js
|
|
5339
|
+
var require_v4 = __commonJS({
|
|
5340
|
+
"../node_modules/uuid/dist/commonjs-browser/v4.js"(exports) {
|
|
5341
|
+
"use strict";
|
|
5342
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5343
|
+
value: true
|
|
5344
|
+
});
|
|
5345
|
+
exports.default = void 0;
|
|
5346
|
+
var _native = _interopRequireDefault(require_native());
|
|
5347
|
+
var _rng = _interopRequireDefault(require_rng());
|
|
5348
|
+
var _stringify = require_stringify();
|
|
5349
|
+
function _interopRequireDefault(obj) {
|
|
5350
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5351
|
+
}
|
|
5352
|
+
function v4(options, buf, offset) {
|
|
5353
|
+
if (_native.default.randomUUID && !buf && !options) {
|
|
5354
|
+
return _native.default.randomUUID();
|
|
5355
|
+
}
|
|
5356
|
+
options = options || {};
|
|
5357
|
+
const rnds = options.random || (options.rng || _rng.default)();
|
|
5358
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
5359
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
5360
|
+
if (buf) {
|
|
5361
|
+
offset = offset || 0;
|
|
5362
|
+
for (let i = 0; i < 16; ++i) {
|
|
5363
|
+
buf[offset + i] = rnds[i];
|
|
5364
|
+
}
|
|
5365
|
+
return buf;
|
|
5366
|
+
}
|
|
5367
|
+
return (0, _stringify.unsafeStringify)(rnds);
|
|
5368
|
+
}
|
|
5369
|
+
var _default = v4;
|
|
5370
|
+
exports.default = _default;
|
|
5371
|
+
}
|
|
5372
|
+
});
|
|
5373
|
+
|
|
5374
|
+
// ../node_modules/uuid/dist/commonjs-browser/sha1.js
|
|
5375
|
+
var require_sha1 = __commonJS({
|
|
5376
|
+
"../node_modules/uuid/dist/commonjs-browser/sha1.js"(exports) {
|
|
5377
|
+
"use strict";
|
|
5378
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5379
|
+
value: true
|
|
5380
|
+
});
|
|
5381
|
+
exports.default = void 0;
|
|
5382
|
+
function f(s, x, y, z) {
|
|
5383
|
+
switch (s) {
|
|
5384
|
+
case 0:
|
|
5385
|
+
return x & y ^ ~x & z;
|
|
5386
|
+
case 1:
|
|
5387
|
+
return x ^ y ^ z;
|
|
5388
|
+
case 2:
|
|
5389
|
+
return x & y ^ x & z ^ y & z;
|
|
5390
|
+
case 3:
|
|
5391
|
+
return x ^ y ^ z;
|
|
5392
|
+
}
|
|
5393
|
+
}
|
|
5394
|
+
function ROTL(x, n) {
|
|
5395
|
+
return x << n | x >>> 32 - n;
|
|
5396
|
+
}
|
|
5397
|
+
function sha1(bytes) {
|
|
5398
|
+
const K = [1518500249, 1859775393, 2400959708, 3395469782];
|
|
5399
|
+
const H = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
5400
|
+
if (typeof bytes === "string") {
|
|
5401
|
+
const msg2 = unescape(encodeURIComponent(bytes));
|
|
5402
|
+
bytes = [];
|
|
5403
|
+
for (let i = 0; i < msg2.length; ++i) {
|
|
5404
|
+
bytes.push(msg2.charCodeAt(i));
|
|
5405
|
+
}
|
|
5406
|
+
} else if (!Array.isArray(bytes)) {
|
|
5407
|
+
bytes = Array.prototype.slice.call(bytes);
|
|
5408
|
+
}
|
|
5409
|
+
bytes.push(128);
|
|
5410
|
+
const l = bytes.length / 4 + 2;
|
|
5411
|
+
const N = Math.ceil(l / 16);
|
|
5412
|
+
const M = new Array(N);
|
|
5413
|
+
for (let i = 0; i < N; ++i) {
|
|
5414
|
+
const arr = new Uint32Array(16);
|
|
5415
|
+
for (let j = 0; j < 16; ++j) {
|
|
5416
|
+
arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
|
|
5417
|
+
}
|
|
5418
|
+
M[i] = arr;
|
|
5419
|
+
}
|
|
5420
|
+
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
5421
|
+
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
5422
|
+
M[N - 1][15] = (bytes.length - 1) * 8 & 4294967295;
|
|
5423
|
+
for (let i = 0; i < N; ++i) {
|
|
5424
|
+
const W = new Uint32Array(80);
|
|
5425
|
+
for (let t = 0; t < 16; ++t) {
|
|
5426
|
+
W[t] = M[i][t];
|
|
5427
|
+
}
|
|
5428
|
+
for (let t = 16; t < 80; ++t) {
|
|
5429
|
+
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
5430
|
+
}
|
|
5431
|
+
let a = H[0];
|
|
5432
|
+
let b = H[1];
|
|
5433
|
+
let c = H[2];
|
|
5434
|
+
let d = H[3];
|
|
5435
|
+
let e = H[4];
|
|
5436
|
+
for (let t = 0; t < 80; ++t) {
|
|
5437
|
+
const s = Math.floor(t / 20);
|
|
5438
|
+
const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
|
|
5439
|
+
e = d;
|
|
5440
|
+
d = c;
|
|
5441
|
+
c = ROTL(b, 30) >>> 0;
|
|
5442
|
+
b = a;
|
|
5443
|
+
a = T;
|
|
5444
|
+
}
|
|
5445
|
+
H[0] = H[0] + a >>> 0;
|
|
5446
|
+
H[1] = H[1] + b >>> 0;
|
|
5447
|
+
H[2] = H[2] + c >>> 0;
|
|
5448
|
+
H[3] = H[3] + d >>> 0;
|
|
5449
|
+
H[4] = H[4] + e >>> 0;
|
|
5450
|
+
}
|
|
5451
|
+
return [H[0] >> 24 & 255, H[0] >> 16 & 255, H[0] >> 8 & 255, H[0] & 255, H[1] >> 24 & 255, H[1] >> 16 & 255, H[1] >> 8 & 255, H[1] & 255, H[2] >> 24 & 255, H[2] >> 16 & 255, H[2] >> 8 & 255, H[2] & 255, H[3] >> 24 & 255, H[3] >> 16 & 255, H[3] >> 8 & 255, H[3] & 255, H[4] >> 24 & 255, H[4] >> 16 & 255, H[4] >> 8 & 255, H[4] & 255];
|
|
5452
|
+
}
|
|
5453
|
+
var _default = sha1;
|
|
5454
|
+
exports.default = _default;
|
|
5455
|
+
}
|
|
5456
|
+
});
|
|
5457
|
+
|
|
5458
|
+
// ../node_modules/uuid/dist/commonjs-browser/v5.js
|
|
5459
|
+
var require_v5 = __commonJS({
|
|
5460
|
+
"../node_modules/uuid/dist/commonjs-browser/v5.js"(exports) {
|
|
5461
|
+
"use strict";
|
|
5462
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5463
|
+
value: true
|
|
5464
|
+
});
|
|
5465
|
+
exports.default = void 0;
|
|
5466
|
+
var _v = _interopRequireDefault(require_v35());
|
|
5467
|
+
var _sha = _interopRequireDefault(require_sha1());
|
|
5468
|
+
function _interopRequireDefault(obj) {
|
|
5469
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5470
|
+
}
|
|
5471
|
+
var v5 = (0, _v.default)("v5", 80, _sha.default);
|
|
5472
|
+
var _default = v5;
|
|
5473
|
+
exports.default = _default;
|
|
5474
|
+
}
|
|
5475
|
+
});
|
|
5476
|
+
|
|
5477
|
+
// ../node_modules/uuid/dist/commonjs-browser/nil.js
|
|
5478
|
+
var require_nil = __commonJS({
|
|
5479
|
+
"../node_modules/uuid/dist/commonjs-browser/nil.js"(exports) {
|
|
5480
|
+
"use strict";
|
|
5481
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5482
|
+
value: true
|
|
5483
|
+
});
|
|
5484
|
+
exports.default = void 0;
|
|
5485
|
+
var _default = "00000000-0000-0000-0000-000000000000";
|
|
5486
|
+
exports.default = _default;
|
|
5487
|
+
}
|
|
5488
|
+
});
|
|
5489
|
+
|
|
5490
|
+
// ../node_modules/uuid/dist/commonjs-browser/version.js
|
|
5491
|
+
var require_version = __commonJS({
|
|
5492
|
+
"../node_modules/uuid/dist/commonjs-browser/version.js"(exports) {
|
|
5493
|
+
"use strict";
|
|
5494
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5495
|
+
value: true
|
|
5496
|
+
});
|
|
5497
|
+
exports.default = void 0;
|
|
5498
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
5499
|
+
function _interopRequireDefault(obj) {
|
|
5500
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5501
|
+
}
|
|
5502
|
+
function version(uuid) {
|
|
5503
|
+
if (!(0, _validate.default)(uuid)) {
|
|
5504
|
+
throw TypeError("Invalid UUID");
|
|
5505
|
+
}
|
|
5506
|
+
return parseInt(uuid.slice(14, 15), 16);
|
|
5507
|
+
}
|
|
5508
|
+
var _default = version;
|
|
5509
|
+
exports.default = _default;
|
|
5510
|
+
}
|
|
5511
|
+
});
|
|
5512
|
+
|
|
5513
|
+
// ../node_modules/uuid/dist/commonjs-browser/index.js
|
|
5514
|
+
var require_commonjs_browser = __commonJS({
|
|
5515
|
+
"../node_modules/uuid/dist/commonjs-browser/index.js"(exports) {
|
|
5516
|
+
"use strict";
|
|
5517
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5518
|
+
value: true
|
|
5519
|
+
});
|
|
5520
|
+
Object.defineProperty(exports, "NIL", {
|
|
5521
|
+
enumerable: true,
|
|
5522
|
+
get: function get() {
|
|
5523
|
+
return _nil.default;
|
|
5524
|
+
}
|
|
5525
|
+
});
|
|
5526
|
+
Object.defineProperty(exports, "parse", {
|
|
5527
|
+
enumerable: true,
|
|
5528
|
+
get: function get() {
|
|
5529
|
+
return _parse.default;
|
|
5530
|
+
}
|
|
5531
|
+
});
|
|
5532
|
+
Object.defineProperty(exports, "stringify", {
|
|
5533
|
+
enumerable: true,
|
|
5534
|
+
get: function get() {
|
|
5535
|
+
return _stringify.default;
|
|
5536
|
+
}
|
|
5537
|
+
});
|
|
5538
|
+
Object.defineProperty(exports, "v1", {
|
|
5539
|
+
enumerable: true,
|
|
5540
|
+
get: function get() {
|
|
5541
|
+
return _v.default;
|
|
5542
|
+
}
|
|
5543
|
+
});
|
|
5544
|
+
Object.defineProperty(exports, "v3", {
|
|
5545
|
+
enumerable: true,
|
|
5546
|
+
get: function get() {
|
|
5547
|
+
return _v2.default;
|
|
5548
|
+
}
|
|
5549
|
+
});
|
|
5550
|
+
Object.defineProperty(exports, "v4", {
|
|
5551
|
+
enumerable: true,
|
|
5552
|
+
get: function get() {
|
|
5553
|
+
return _v3.default;
|
|
5554
|
+
}
|
|
5555
|
+
});
|
|
5556
|
+
Object.defineProperty(exports, "v5", {
|
|
5557
|
+
enumerable: true,
|
|
5558
|
+
get: function get() {
|
|
5559
|
+
return _v4.default;
|
|
5560
|
+
}
|
|
5561
|
+
});
|
|
5562
|
+
Object.defineProperty(exports, "validate", {
|
|
5563
|
+
enumerable: true,
|
|
5564
|
+
get: function get() {
|
|
5565
|
+
return _validate.default;
|
|
5566
|
+
}
|
|
5567
|
+
});
|
|
5568
|
+
Object.defineProperty(exports, "version", {
|
|
5569
|
+
enumerable: true,
|
|
5570
|
+
get: function get() {
|
|
5571
|
+
return _version.default;
|
|
5572
|
+
}
|
|
5573
|
+
});
|
|
5574
|
+
var _v = _interopRequireDefault(require_v1());
|
|
5575
|
+
var _v2 = _interopRequireDefault(require_v3());
|
|
5576
|
+
var _v3 = _interopRequireDefault(require_v4());
|
|
5577
|
+
var _v4 = _interopRequireDefault(require_v5());
|
|
5578
|
+
var _nil = _interopRequireDefault(require_nil());
|
|
5579
|
+
var _version = _interopRequireDefault(require_version());
|
|
5580
|
+
var _validate = _interopRequireDefault(require_validate());
|
|
5581
|
+
var _stringify = _interopRequireDefault(require_stringify());
|
|
5582
|
+
var _parse = _interopRequireDefault(require_parse());
|
|
5583
|
+
function _interopRequireDefault(obj) {
|
|
5584
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
5585
|
+
}
|
|
5586
|
+
}
|
|
5587
|
+
});
|
|
5588
|
+
|
|
5589
|
+
// ../node_modules/@inrupt/solid-client-authn-core/dist/index.js
|
|
5590
|
+
var require_dist = __commonJS({
|
|
5591
|
+
"../node_modules/@inrupt/solid-client-authn-core/dist/index.js"(exports) {
|
|
5592
|
+
"use strict";
|
|
5593
|
+
var crossFetch2 = require_browser_ponyfill();
|
|
5594
|
+
var jose = (init_browser(), __toCommonJS(browser_exports));
|
|
5595
|
+
var uuid = require_commonjs_browser();
|
|
5596
|
+
var SOLID_CLIENT_AUTHN_KEY_PREFIX = "solidClientAuthn:";
|
|
5597
|
+
var PREFERRED_SIGNING_ALG = ["ES256", "RS256"];
|
|
5598
|
+
var EVENTS = {
|
|
5599
|
+
ERROR: "error",
|
|
5600
|
+
LOGIN: "login",
|
|
5601
|
+
LOGOUT: "logout",
|
|
5602
|
+
NEW_REFRESH_TOKEN: "newRefreshToken",
|
|
5603
|
+
SESSION_EXPIRED: "sessionExpired",
|
|
5604
|
+
SESSION_EXTENDED: "sessionExtended",
|
|
5605
|
+
SESSION_RESTORED: "sessionRestore",
|
|
5606
|
+
TIMEOUT_SET: "timeoutSet"
|
|
5607
|
+
};
|
|
5608
|
+
var REFRESH_BEFORE_EXPIRATION_SECONDS = 5;
|
|
5609
|
+
var SCOPE_OPENID = "openid";
|
|
5610
|
+
var SCOPE_OFFLINE = "offline_access";
|
|
5611
|
+
var SCOPE_WEBID = "webid";
|
|
5612
|
+
var DEFAULT_SCOPES = [SCOPE_OPENID, SCOPE_OFFLINE, SCOPE_WEBID].join(" ");
|
|
5613
|
+
var AggregateHandler = class {
|
|
5614
|
+
constructor(handleables) {
|
|
5615
|
+
this.handleables = handleables;
|
|
5616
|
+
}
|
|
5617
|
+
async getProperHandler(params) {
|
|
5618
|
+
const canHandleList = await Promise.all(this.handleables.map((handleable) => handleable.canHandle(...params)));
|
|
5619
|
+
for (let i = 0; i < canHandleList.length; i += 1) {
|
|
5620
|
+
if (canHandleList[i]) {
|
|
5621
|
+
return this.handleables[i];
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
5624
|
+
return null;
|
|
5625
|
+
}
|
|
5626
|
+
async canHandle(...params) {
|
|
5627
|
+
return await this.getProperHandler(params) !== null;
|
|
5628
|
+
}
|
|
5629
|
+
async handle(...params) {
|
|
5630
|
+
const handler = await this.getProperHandler(params);
|
|
5631
|
+
if (handler) {
|
|
5632
|
+
return handler.handle(...params);
|
|
5633
|
+
}
|
|
5634
|
+
throw new Error(`[${this.constructor.name}] cannot find a suitable handler for: ${params.map((param) => {
|
|
5635
|
+
try {
|
|
5636
|
+
return JSON.stringify(param);
|
|
5637
|
+
} catch (err) {
|
|
5638
|
+
return param.toString();
|
|
5639
|
+
}
|
|
5640
|
+
}).join(", ")}`);
|
|
5641
|
+
}
|
|
5642
|
+
};
|
|
5035
5643
|
async function fetchJwks2(jwksIri, issuerIri) {
|
|
5036
|
-
const jwksResponse = await
|
|
5644
|
+
const jwksResponse = await crossFetch2.fetch(jwksIri);
|
|
5037
5645
|
if (jwksResponse.status !== 200) {
|
|
5038
5646
|
throw new Error(`Could not fetch JWKS for [${issuerIri}] at [${jwksIri}]: ${jwksResponse.status} ${jwksResponse.statusText}`);
|
|
5039
5647
|
}
|
|
@@ -5045,12 +5653,11 @@ var require_token = __commonJS({
|
|
|
5045
5653
|
}
|
|
5046
5654
|
return jwk;
|
|
5047
5655
|
}
|
|
5048
|
-
exports.fetchJwks = fetchJwks2;
|
|
5049
5656
|
async function getWebidFromTokenPayload(idToken, jwksIri, issuerIri, clientId) {
|
|
5050
5657
|
const jwk = await fetchJwks2(jwksIri, issuerIri);
|
|
5051
5658
|
let payload;
|
|
5052
5659
|
try {
|
|
5053
|
-
const { payload: verifiedPayload } = await
|
|
5660
|
+
const { payload: verifiedPayload } = await jose.jwtVerify(idToken, await jose.importJWK(jwk), {
|
|
5054
5661
|
issuer: issuerIri,
|
|
5055
5662
|
audience: clientId
|
|
5056
5663
|
});
|
|
@@ -5071,39 +5678,10 @@ var require_token = __commonJS({
|
|
|
5071
5678
|
throw new Error(`The token has no 'webid' claim, and its 'sub' claim of [${payload.sub}] is invalid as a URL - error [${e}].`);
|
|
5072
5679
|
}
|
|
5073
5680
|
}
|
|
5074
|
-
exports.getWebidFromTokenPayload = getWebidFromTokenPayload;
|
|
5075
|
-
}
|
|
5076
|
-
});
|
|
5077
|
-
|
|
5078
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/sessionInfo/ISessionInfo.js
|
|
5079
|
-
var require_ISessionInfo = __commonJS({
|
|
5080
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/sessionInfo/ISessionInfo.js"(exports) {
|
|
5081
|
-
"use strict";
|
|
5082
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5083
|
-
exports.isSupportedTokenType = void 0;
|
|
5084
5681
|
function isSupportedTokenType(token) {
|
|
5085
5682
|
return typeof token === "string" && ["DPoP", "Bearer"].includes(token);
|
|
5086
5683
|
}
|
|
5087
|
-
|
|
5088
|
-
}
|
|
5089
|
-
});
|
|
5090
|
-
|
|
5091
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/sessionInfo/ISessionInfoManager.js
|
|
5092
|
-
var require_ISessionInfoManager = __commonJS({
|
|
5093
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/sessionInfo/ISessionInfoManager.js"(exports) {
|
|
5094
|
-
"use strict";
|
|
5095
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5096
|
-
exports.USER_SESSION_PREFIX = void 0;
|
|
5097
|
-
exports.USER_SESSION_PREFIX = "solidClientAuthenticationUser";
|
|
5098
|
-
}
|
|
5099
|
-
});
|
|
5100
|
-
|
|
5101
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/login/oidc/IClientRegistrar.js
|
|
5102
|
-
var require_IClientRegistrar = __commonJS({
|
|
5103
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/login/oidc/IClientRegistrar.js"(exports) {
|
|
5104
|
-
"use strict";
|
|
5105
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5106
|
-
exports.handleRegistration = exports.determineSigningAlg = void 0;
|
|
5684
|
+
var USER_SESSION_PREFIX = "solidClientAuthenticationUser";
|
|
5107
5685
|
function isValidUrl(url) {
|
|
5108
5686
|
try {
|
|
5109
5687
|
new URL(url);
|
|
@@ -5118,7 +5696,6 @@ var require_IClientRegistrar = __commonJS({
|
|
|
5118
5696
|
return supported.includes(signingAlg);
|
|
5119
5697
|
})) !== null && _a !== void 0 ? _a : null;
|
|
5120
5698
|
}
|
|
5121
|
-
exports.determineSigningAlg = determineSigningAlg;
|
|
5122
5699
|
function determineClientType(options, issuerConfig) {
|
|
5123
5700
|
if (options.clientId !== void 0 && !isValidUrl(options.clientId)) {
|
|
5124
5701
|
return "static";
|
|
@@ -5157,25 +5734,9 @@ var require_IClientRegistrar = __commonJS({
|
|
|
5157
5734
|
clientType
|
|
5158
5735
|
};
|
|
5159
5736
|
}
|
|
5160
|
-
exports.handleRegistration = handleRegistration;
|
|
5161
|
-
}
|
|
5162
|
-
});
|
|
5163
|
-
|
|
5164
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/storage/StorageUtility.js
|
|
5165
|
-
var require_StorageUtility = __commonJS({
|
|
5166
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/storage/StorageUtility.js"(exports) {
|
|
5167
|
-
"use strict";
|
|
5168
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
5169
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
5170
|
-
};
|
|
5171
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5172
|
-
exports.saveSessionInfoToStorage = exports.loadOidcContextFromStorage = exports.getSessionIdFromOauthState = void 0;
|
|
5173
|
-
var jose_1 = (init_browser(), __toCommonJS(browser_exports));
|
|
5174
|
-
var InruptError_1 = __importDefault(require_InruptError());
|
|
5175
5737
|
async function getSessionIdFromOauthState(storageUtility, oauthState) {
|
|
5176
5738
|
return storageUtility.getForUser(oauthState, "sessionId");
|
|
5177
5739
|
}
|
|
5178
|
-
exports.getSessionIdFromOauthState = getSessionIdFromOauthState;
|
|
5179
5740
|
async function loadOidcContextFromStorage(sessionId, storageUtility, configFetcher) {
|
|
5180
5741
|
try {
|
|
5181
5742
|
const [issuerIri, codeVerifier, storedRedirectIri, dpop] = await Promise.all([
|
|
@@ -5198,7 +5759,6 @@ var require_StorageUtility = __commonJS({
|
|
|
5198
5759
|
throw new Error(`Failed to retrieve OIDC context from storage associated with session [${sessionId}]: ${e}`);
|
|
5199
5760
|
}
|
|
5200
5761
|
}
|
|
5201
|
-
exports.loadOidcContextFromStorage = loadOidcContextFromStorage;
|
|
5202
5762
|
async function saveSessionInfoToStorage(storageUtility, sessionId, webId, isLoggedIn, refreshToken, secure, dpopKey) {
|
|
5203
5763
|
if (refreshToken !== void 0) {
|
|
5204
5764
|
await storageUtility.setForUser(sessionId, { refreshToken }, { secure });
|
|
@@ -5212,11 +5772,10 @@ var require_StorageUtility = __commonJS({
|
|
|
5212
5772
|
if (dpopKey !== void 0) {
|
|
5213
5773
|
await storageUtility.setForUser(sessionId, {
|
|
5214
5774
|
publicKey: JSON.stringify(dpopKey.publicKey),
|
|
5215
|
-
privateKey: JSON.stringify(await
|
|
5775
|
+
privateKey: JSON.stringify(await jose.exportJWK(dpopKey.privateKey))
|
|
5216
5776
|
}, { secure });
|
|
5217
5777
|
}
|
|
5218
5778
|
}
|
|
5219
|
-
exports.saveSessionInfoToStorage = saveSessionInfoToStorage;
|
|
5220
5779
|
var StorageUtility = class {
|
|
5221
5780
|
constructor(secureStorage, insecureStorage) {
|
|
5222
5781
|
this.secureStorage = secureStorage;
|
|
@@ -5233,7 +5792,7 @@ var require_StorageUtility = __commonJS({
|
|
|
5233
5792
|
try {
|
|
5234
5793
|
return JSON.parse(stored);
|
|
5235
5794
|
} catch (err) {
|
|
5236
|
-
throw new
|
|
5795
|
+
throw new Error(`Data for user [${userId}] in [${secure ? "secure" : "unsecure"}] storage is corrupted - expected valid JSON, but got: ${stored}`);
|
|
5237
5796
|
}
|
|
5238
5797
|
}
|
|
5239
5798
|
async setUserData(userId, data, secure) {
|
|
@@ -5242,7 +5801,7 @@ var require_StorageUtility = __commonJS({
|
|
|
5242
5801
|
async get(key, options) {
|
|
5243
5802
|
const value = await ((options === null || options === void 0 ? void 0 : options.secure) ? this.secureStorage : this.insecureStorage).get(key);
|
|
5244
5803
|
if (value === void 0 && (options === null || options === void 0 ? void 0 : options.errorIfNull)) {
|
|
5245
|
-
throw new
|
|
5804
|
+
throw new Error(`[${key}] is not stored`);
|
|
5246
5805
|
}
|
|
5247
5806
|
return value;
|
|
5248
5807
|
}
|
|
@@ -5260,7 +5819,7 @@ var require_StorageUtility = __commonJS({
|
|
|
5260
5819
|
}
|
|
5261
5820
|
value = userData[key];
|
|
5262
5821
|
if (value === void 0 && (options === null || options === void 0 ? void 0 : options.errorIfNull)) {
|
|
5263
|
-
throw new
|
|
5822
|
+
throw new Error(`Field [${key}] for user [${userId}] is not stored`);
|
|
5264
5823
|
}
|
|
5265
5824
|
return value || void 0;
|
|
5266
5825
|
}
|
|
@@ -5282,15 +5841,6 @@ var require_StorageUtility = __commonJS({
|
|
|
5282
5841
|
await ((options === null || options === void 0 ? void 0 : options.secure) ? this.secureStorage : this.insecureStorage).delete(this.getKey(userId));
|
|
5283
5842
|
}
|
|
5284
5843
|
};
|
|
5285
|
-
exports.default = StorageUtility;
|
|
5286
|
-
}
|
|
5287
|
-
});
|
|
5288
|
-
|
|
5289
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/storage/InMemoryStorage.js
|
|
5290
|
-
var require_InMemoryStorage = __commonJS({
|
|
5291
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/storage/InMemoryStorage.js"(exports) {
|
|
5292
|
-
"use strict";
|
|
5293
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5294
5844
|
var InMemoryStorage = class {
|
|
5295
5845
|
constructor() {
|
|
5296
5846
|
this.map = {};
|
|
@@ -5305,60 +5855,22 @@ var require_InMemoryStorage = __commonJS({
|
|
|
5305
5855
|
delete this.map[key];
|
|
5306
5856
|
}
|
|
5307
5857
|
};
|
|
5308
|
-
exports.default = InMemoryStorage;
|
|
5309
|
-
}
|
|
5310
|
-
});
|
|
5311
|
-
|
|
5312
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/errors/ConfigurationError.js
|
|
5313
|
-
var require_ConfigurationError = __commonJS({
|
|
5314
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/errors/ConfigurationError.js"(exports) {
|
|
5315
|
-
"use strict";
|
|
5316
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5317
5858
|
var ConfigurationError = class extends Error {
|
|
5318
5859
|
constructor(message2) {
|
|
5319
5860
|
super(message2);
|
|
5320
5861
|
}
|
|
5321
5862
|
};
|
|
5322
|
-
exports.default = ConfigurationError;
|
|
5323
|
-
}
|
|
5324
|
-
});
|
|
5325
|
-
|
|
5326
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/errors/NotImplementedError.js
|
|
5327
|
-
var require_NotImplementedError = __commonJS({
|
|
5328
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/errors/NotImplementedError.js"(exports) {
|
|
5329
|
-
"use strict";
|
|
5330
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5331
5863
|
var NotImplementedError = class extends Error {
|
|
5332
5864
|
constructor(methodName) {
|
|
5333
5865
|
super(`[${methodName}] is not implemented`);
|
|
5334
5866
|
}
|
|
5335
5867
|
};
|
|
5336
|
-
exports.default = NotImplementedError;
|
|
5337
|
-
}
|
|
5338
|
-
});
|
|
5339
|
-
|
|
5340
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/errors/InvalidResponseError.js
|
|
5341
|
-
var require_InvalidResponseError = __commonJS({
|
|
5342
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/errors/InvalidResponseError.js"(exports) {
|
|
5343
|
-
"use strict";
|
|
5344
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5345
|
-
exports.InvalidResponseError = void 0;
|
|
5346
5868
|
var InvalidResponseError = class extends Error {
|
|
5347
5869
|
constructor(missingFields) {
|
|
5348
5870
|
super(`Invalid response from OIDC provider: missing fields ${missingFields}`);
|
|
5349
5871
|
this.missingFields = missingFields;
|
|
5350
5872
|
}
|
|
5351
5873
|
};
|
|
5352
|
-
exports.InvalidResponseError = InvalidResponseError;
|
|
5353
|
-
}
|
|
5354
|
-
});
|
|
5355
|
-
|
|
5356
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/errors/OidcProviderError.js
|
|
5357
|
-
var require_OidcProviderError = __commonJS({
|
|
5358
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/errors/OidcProviderError.js"(exports) {
|
|
5359
|
-
"use strict";
|
|
5360
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5361
|
-
exports.OidcProviderError = void 0;
|
|
5362
5874
|
var OidcProviderError = class extends Error {
|
|
5363
5875
|
constructor(message2, error2, errorDescription) {
|
|
5364
5876
|
super(message2);
|
|
@@ -5366,596 +5878,39 @@ var require_OidcProviderError = __commonJS({
|
|
|
5366
5878
|
this.errorDescription = errorDescription;
|
|
5367
5879
|
}
|
|
5368
5880
|
};
|
|
5369
|
-
exports.OidcProviderError = OidcProviderError;
|
|
5370
|
-
}
|
|
5371
|
-
});
|
|
5372
|
-
|
|
5373
|
-
// ../node_modules/uuid/dist/esm-browser/rng.js
|
|
5374
|
-
function rng() {
|
|
5375
|
-
if (!getRandomValues) {
|
|
5376
|
-
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== "undefined" && typeof msCrypto.getRandomValues === "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
5377
|
-
if (!getRandomValues) {
|
|
5378
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
5379
|
-
}
|
|
5380
|
-
}
|
|
5381
|
-
return getRandomValues(rnds8);
|
|
5382
|
-
}
|
|
5383
|
-
var getRandomValues, rnds8;
|
|
5384
|
-
var init_rng = __esm({
|
|
5385
|
-
"../node_modules/uuid/dist/esm-browser/rng.js"() {
|
|
5386
|
-
rnds8 = new Uint8Array(16);
|
|
5387
|
-
}
|
|
5388
|
-
});
|
|
5389
|
-
|
|
5390
|
-
// ../node_modules/uuid/dist/esm-browser/regex.js
|
|
5391
|
-
var regex_default;
|
|
5392
|
-
var init_regex = __esm({
|
|
5393
|
-
"../node_modules/uuid/dist/esm-browser/regex.js"() {
|
|
5394
|
-
regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
5395
|
-
}
|
|
5396
|
-
});
|
|
5397
|
-
|
|
5398
|
-
// ../node_modules/uuid/dist/esm-browser/validate.js
|
|
5399
|
-
function validate(uuid) {
|
|
5400
|
-
return typeof uuid === "string" && regex_default.test(uuid);
|
|
5401
|
-
}
|
|
5402
|
-
var validate_default;
|
|
5403
|
-
var init_validate = __esm({
|
|
5404
|
-
"../node_modules/uuid/dist/esm-browser/validate.js"() {
|
|
5405
|
-
init_regex();
|
|
5406
|
-
validate_default = validate;
|
|
5407
|
-
}
|
|
5408
|
-
});
|
|
5409
|
-
|
|
5410
|
-
// ../node_modules/uuid/dist/esm-browser/stringify.js
|
|
5411
|
-
function stringify(arr) {
|
|
5412
|
-
var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
5413
|
-
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
5414
|
-
if (!validate_default(uuid)) {
|
|
5415
|
-
throw TypeError("Stringified UUID is invalid");
|
|
5416
|
-
}
|
|
5417
|
-
return uuid;
|
|
5418
|
-
}
|
|
5419
|
-
var byteToHex, i, stringify_default;
|
|
5420
|
-
var init_stringify = __esm({
|
|
5421
|
-
"../node_modules/uuid/dist/esm-browser/stringify.js"() {
|
|
5422
|
-
init_validate();
|
|
5423
|
-
byteToHex = [];
|
|
5424
|
-
for (i = 0; i < 256; ++i) {
|
|
5425
|
-
byteToHex.push((i + 256).toString(16).substr(1));
|
|
5426
|
-
}
|
|
5427
|
-
stringify_default = stringify;
|
|
5428
|
-
}
|
|
5429
|
-
});
|
|
5430
|
-
|
|
5431
|
-
// ../node_modules/uuid/dist/esm-browser/v1.js
|
|
5432
|
-
function v1(options, buf, offset) {
|
|
5433
|
-
var i = buf && offset || 0;
|
|
5434
|
-
var b = buf || new Array(16);
|
|
5435
|
-
options = options || {};
|
|
5436
|
-
var node = options.node || _nodeId;
|
|
5437
|
-
var clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
|
|
5438
|
-
if (node == null || clockseq == null) {
|
|
5439
|
-
var seedBytes = options.random || (options.rng || rng)();
|
|
5440
|
-
if (node == null) {
|
|
5441
|
-
node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
5442
|
-
}
|
|
5443
|
-
if (clockseq == null) {
|
|
5444
|
-
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
|
|
5445
|
-
}
|
|
5446
|
-
}
|
|
5447
|
-
var msecs = options.msecs !== void 0 ? options.msecs : Date.now();
|
|
5448
|
-
var nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
|
|
5449
|
-
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
|
|
5450
|
-
if (dt < 0 && options.clockseq === void 0) {
|
|
5451
|
-
clockseq = clockseq + 1 & 16383;
|
|
5452
|
-
}
|
|
5453
|
-
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
|
|
5454
|
-
nsecs = 0;
|
|
5455
|
-
}
|
|
5456
|
-
if (nsecs >= 1e4) {
|
|
5457
|
-
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
5458
|
-
}
|
|
5459
|
-
_lastMSecs = msecs;
|
|
5460
|
-
_lastNSecs = nsecs;
|
|
5461
|
-
_clockseq = clockseq;
|
|
5462
|
-
msecs += 122192928e5;
|
|
5463
|
-
var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
|
|
5464
|
-
b[i++] = tl >>> 24 & 255;
|
|
5465
|
-
b[i++] = tl >>> 16 & 255;
|
|
5466
|
-
b[i++] = tl >>> 8 & 255;
|
|
5467
|
-
b[i++] = tl & 255;
|
|
5468
|
-
var tmh = msecs / 4294967296 * 1e4 & 268435455;
|
|
5469
|
-
b[i++] = tmh >>> 8 & 255;
|
|
5470
|
-
b[i++] = tmh & 255;
|
|
5471
|
-
b[i++] = tmh >>> 24 & 15 | 16;
|
|
5472
|
-
b[i++] = tmh >>> 16 & 255;
|
|
5473
|
-
b[i++] = clockseq >>> 8 | 128;
|
|
5474
|
-
b[i++] = clockseq & 255;
|
|
5475
|
-
for (var n = 0; n < 6; ++n) {
|
|
5476
|
-
b[i + n] = node[n];
|
|
5477
|
-
}
|
|
5478
|
-
return buf || stringify_default(b);
|
|
5479
|
-
}
|
|
5480
|
-
var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default;
|
|
5481
|
-
var init_v1 = __esm({
|
|
5482
|
-
"../node_modules/uuid/dist/esm-browser/v1.js"() {
|
|
5483
|
-
init_rng();
|
|
5484
|
-
init_stringify();
|
|
5485
|
-
_lastMSecs = 0;
|
|
5486
|
-
_lastNSecs = 0;
|
|
5487
|
-
v1_default = v1;
|
|
5488
|
-
}
|
|
5489
|
-
});
|
|
5490
|
-
|
|
5491
|
-
// ../node_modules/uuid/dist/esm-browser/parse.js
|
|
5492
|
-
function parse2(uuid) {
|
|
5493
|
-
if (!validate_default(uuid)) {
|
|
5494
|
-
throw TypeError("Invalid UUID");
|
|
5495
|
-
}
|
|
5496
|
-
var v;
|
|
5497
|
-
var arr = new Uint8Array(16);
|
|
5498
|
-
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
5499
|
-
arr[1] = v >>> 16 & 255;
|
|
5500
|
-
arr[2] = v >>> 8 & 255;
|
|
5501
|
-
arr[3] = v & 255;
|
|
5502
|
-
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
5503
|
-
arr[5] = v & 255;
|
|
5504
|
-
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
5505
|
-
arr[7] = v & 255;
|
|
5506
|
-
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
5507
|
-
arr[9] = v & 255;
|
|
5508
|
-
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
|
|
5509
|
-
arr[11] = v / 4294967296 & 255;
|
|
5510
|
-
arr[12] = v >>> 24 & 255;
|
|
5511
|
-
arr[13] = v >>> 16 & 255;
|
|
5512
|
-
arr[14] = v >>> 8 & 255;
|
|
5513
|
-
arr[15] = v & 255;
|
|
5514
|
-
return arr;
|
|
5515
|
-
}
|
|
5516
|
-
var parse_default;
|
|
5517
|
-
var init_parse = __esm({
|
|
5518
|
-
"../node_modules/uuid/dist/esm-browser/parse.js"() {
|
|
5519
|
-
init_validate();
|
|
5520
|
-
parse_default = parse2;
|
|
5521
|
-
}
|
|
5522
|
-
});
|
|
5523
|
-
|
|
5524
|
-
// ../node_modules/uuid/dist/esm-browser/v35.js
|
|
5525
|
-
function stringToBytes(str) {
|
|
5526
|
-
str = unescape(encodeURIComponent(str));
|
|
5527
|
-
var bytes = [];
|
|
5528
|
-
for (var i = 0; i < str.length; ++i) {
|
|
5529
|
-
bytes.push(str.charCodeAt(i));
|
|
5530
|
-
}
|
|
5531
|
-
return bytes;
|
|
5532
|
-
}
|
|
5533
|
-
function v35_default(name, version2, hashfunc) {
|
|
5534
|
-
function generateUUID(value, namespace, buf, offset) {
|
|
5535
|
-
if (typeof value === "string") {
|
|
5536
|
-
value = stringToBytes(value);
|
|
5537
|
-
}
|
|
5538
|
-
if (typeof namespace === "string") {
|
|
5539
|
-
namespace = parse_default(namespace);
|
|
5540
|
-
}
|
|
5541
|
-
if (namespace.length !== 16) {
|
|
5542
|
-
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
5543
|
-
}
|
|
5544
|
-
var bytes = new Uint8Array(16 + value.length);
|
|
5545
|
-
bytes.set(namespace);
|
|
5546
|
-
bytes.set(value, namespace.length);
|
|
5547
|
-
bytes = hashfunc(bytes);
|
|
5548
|
-
bytes[6] = bytes[6] & 15 | version2;
|
|
5549
|
-
bytes[8] = bytes[8] & 63 | 128;
|
|
5550
|
-
if (buf) {
|
|
5551
|
-
offset = offset || 0;
|
|
5552
|
-
for (var i = 0; i < 16; ++i) {
|
|
5553
|
-
buf[offset + i] = bytes[i];
|
|
5554
|
-
}
|
|
5555
|
-
return buf;
|
|
5556
|
-
}
|
|
5557
|
-
return stringify_default(bytes);
|
|
5558
|
-
}
|
|
5559
|
-
try {
|
|
5560
|
-
generateUUID.name = name;
|
|
5561
|
-
} catch (err) {
|
|
5562
|
-
}
|
|
5563
|
-
generateUUID.DNS = DNS;
|
|
5564
|
-
generateUUID.URL = URL2;
|
|
5565
|
-
return generateUUID;
|
|
5566
|
-
}
|
|
5567
|
-
var DNS, URL2;
|
|
5568
|
-
var init_v35 = __esm({
|
|
5569
|
-
"../node_modules/uuid/dist/esm-browser/v35.js"() {
|
|
5570
|
-
init_stringify();
|
|
5571
|
-
init_parse();
|
|
5572
|
-
DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
5573
|
-
URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5574
|
-
}
|
|
5575
|
-
});
|
|
5576
|
-
|
|
5577
|
-
// ../node_modules/uuid/dist/esm-browser/md5.js
|
|
5578
|
-
function md5(bytes) {
|
|
5579
|
-
if (typeof bytes === "string") {
|
|
5580
|
-
var msg2 = unescape(encodeURIComponent(bytes));
|
|
5581
|
-
bytes = new Uint8Array(msg2.length);
|
|
5582
|
-
for (var i = 0; i < msg2.length; ++i) {
|
|
5583
|
-
bytes[i] = msg2.charCodeAt(i);
|
|
5584
|
-
}
|
|
5585
|
-
}
|
|
5586
|
-
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
5587
|
-
}
|
|
5588
|
-
function md5ToHexEncodedArray(input) {
|
|
5589
|
-
var output = [];
|
|
5590
|
-
var length32 = input.length * 32;
|
|
5591
|
-
var hexTab = "0123456789abcdef";
|
|
5592
|
-
for (var i = 0; i < length32; i += 8) {
|
|
5593
|
-
var x = input[i >> 5] >>> i % 32 & 255;
|
|
5594
|
-
var hex = parseInt(hexTab.charAt(x >>> 4 & 15) + hexTab.charAt(x & 15), 16);
|
|
5595
|
-
output.push(hex);
|
|
5596
|
-
}
|
|
5597
|
-
return output;
|
|
5598
|
-
}
|
|
5599
|
-
function getOutputLength(inputLength8) {
|
|
5600
|
-
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
5601
|
-
}
|
|
5602
|
-
function wordsToMd5(x, len) {
|
|
5603
|
-
x[len >> 5] |= 128 << len % 32;
|
|
5604
|
-
x[getOutputLength(len) - 1] = len;
|
|
5605
|
-
var a = 1732584193;
|
|
5606
|
-
var b = -271733879;
|
|
5607
|
-
var c = -1732584194;
|
|
5608
|
-
var d = 271733878;
|
|
5609
|
-
for (var i = 0; i < x.length; i += 16) {
|
|
5610
|
-
var olda = a;
|
|
5611
|
-
var oldb = b;
|
|
5612
|
-
var oldc = c;
|
|
5613
|
-
var oldd = d;
|
|
5614
|
-
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
5615
|
-
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
5616
|
-
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
5617
|
-
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
5618
|
-
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
5619
|
-
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
5620
|
-
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
5621
|
-
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
5622
|
-
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
5623
|
-
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
5624
|
-
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
5625
|
-
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
5626
|
-
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
5627
|
-
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
5628
|
-
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
5629
|
-
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
5630
|
-
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
5631
|
-
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
5632
|
-
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
5633
|
-
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
5634
|
-
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
5635
|
-
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
5636
|
-
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
5637
|
-
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
5638
|
-
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
5639
|
-
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
5640
|
-
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
5641
|
-
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
5642
|
-
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
5643
|
-
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
5644
|
-
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
5645
|
-
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
5646
|
-
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
5647
|
-
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
5648
|
-
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
5649
|
-
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
5650
|
-
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
5651
|
-
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
5652
|
-
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
5653
|
-
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
5654
|
-
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
5655
|
-
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
5656
|
-
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
5657
|
-
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
5658
|
-
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
5659
|
-
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
5660
|
-
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
5661
|
-
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
5662
|
-
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
5663
|
-
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
5664
|
-
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
5665
|
-
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
5666
|
-
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
5667
|
-
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
5668
|
-
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
5669
|
-
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
5670
|
-
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
5671
|
-
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
5672
|
-
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
5673
|
-
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
5674
|
-
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
5675
|
-
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
5676
|
-
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
5677
|
-
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
5678
|
-
a = safeAdd(a, olda);
|
|
5679
|
-
b = safeAdd(b, oldb);
|
|
5680
|
-
c = safeAdd(c, oldc);
|
|
5681
|
-
d = safeAdd(d, oldd);
|
|
5682
|
-
}
|
|
5683
|
-
return [a, b, c, d];
|
|
5684
|
-
}
|
|
5685
|
-
function bytesToWords(input) {
|
|
5686
|
-
if (input.length === 0) {
|
|
5687
|
-
return [];
|
|
5688
|
-
}
|
|
5689
|
-
var length8 = input.length * 8;
|
|
5690
|
-
var output = new Uint32Array(getOutputLength(length8));
|
|
5691
|
-
for (var i = 0; i < length8; i += 8) {
|
|
5692
|
-
output[i >> 5] |= (input[i / 8] & 255) << i % 32;
|
|
5693
|
-
}
|
|
5694
|
-
return output;
|
|
5695
|
-
}
|
|
5696
|
-
function safeAdd(x, y) {
|
|
5697
|
-
var lsw = (x & 65535) + (y & 65535);
|
|
5698
|
-
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
5699
|
-
return msw << 16 | lsw & 65535;
|
|
5700
|
-
}
|
|
5701
|
-
function bitRotateLeft(num, cnt) {
|
|
5702
|
-
return num << cnt | num >>> 32 - cnt;
|
|
5703
|
-
}
|
|
5704
|
-
function md5cmn(q, a, b, x, s, t) {
|
|
5705
|
-
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
5706
|
-
}
|
|
5707
|
-
function md5ff(a, b, c, d, x, s, t) {
|
|
5708
|
-
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
5709
|
-
}
|
|
5710
|
-
function md5gg(a, b, c, d, x, s, t) {
|
|
5711
|
-
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
5712
|
-
}
|
|
5713
|
-
function md5hh(a, b, c, d, x, s, t) {
|
|
5714
|
-
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
5715
|
-
}
|
|
5716
|
-
function md5ii(a, b, c, d, x, s, t) {
|
|
5717
|
-
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
5718
|
-
}
|
|
5719
|
-
var md5_default;
|
|
5720
|
-
var init_md5 = __esm({
|
|
5721
|
-
"../node_modules/uuid/dist/esm-browser/md5.js"() {
|
|
5722
|
-
md5_default = md5;
|
|
5723
|
-
}
|
|
5724
|
-
});
|
|
5725
|
-
|
|
5726
|
-
// ../node_modules/uuid/dist/esm-browser/v3.js
|
|
5727
|
-
var v3, v3_default;
|
|
5728
|
-
var init_v3 = __esm({
|
|
5729
|
-
"../node_modules/uuid/dist/esm-browser/v3.js"() {
|
|
5730
|
-
init_v35();
|
|
5731
|
-
init_md5();
|
|
5732
|
-
v3 = v35_default("v3", 48, md5_default);
|
|
5733
|
-
v3_default = v3;
|
|
5734
|
-
}
|
|
5735
|
-
});
|
|
5736
|
-
|
|
5737
|
-
// ../node_modules/uuid/dist/esm-browser/v4.js
|
|
5738
|
-
function v4(options, buf, offset) {
|
|
5739
|
-
options = options || {};
|
|
5740
|
-
var rnds = options.random || (options.rng || rng)();
|
|
5741
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
5742
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
5743
|
-
if (buf) {
|
|
5744
|
-
offset = offset || 0;
|
|
5745
|
-
for (var i = 0; i < 16; ++i) {
|
|
5746
|
-
buf[offset + i] = rnds[i];
|
|
5747
|
-
}
|
|
5748
|
-
return buf;
|
|
5749
|
-
}
|
|
5750
|
-
return stringify_default(rnds);
|
|
5751
|
-
}
|
|
5752
|
-
var v4_default;
|
|
5753
|
-
var init_v4 = __esm({
|
|
5754
|
-
"../node_modules/uuid/dist/esm-browser/v4.js"() {
|
|
5755
|
-
init_rng();
|
|
5756
|
-
init_stringify();
|
|
5757
|
-
v4_default = v4;
|
|
5758
|
-
}
|
|
5759
|
-
});
|
|
5760
|
-
|
|
5761
|
-
// ../node_modules/uuid/dist/esm-browser/sha1.js
|
|
5762
|
-
function f(s, x, y, z) {
|
|
5763
|
-
switch (s) {
|
|
5764
|
-
case 0:
|
|
5765
|
-
return x & y ^ ~x & z;
|
|
5766
|
-
case 1:
|
|
5767
|
-
return x ^ y ^ z;
|
|
5768
|
-
case 2:
|
|
5769
|
-
return x & y ^ x & z ^ y & z;
|
|
5770
|
-
case 3:
|
|
5771
|
-
return x ^ y ^ z;
|
|
5772
|
-
}
|
|
5773
|
-
}
|
|
5774
|
-
function ROTL(x, n) {
|
|
5775
|
-
return x << n | x >>> 32 - n;
|
|
5776
|
-
}
|
|
5777
|
-
function sha1(bytes) {
|
|
5778
|
-
var K = [1518500249, 1859775393, 2400959708, 3395469782];
|
|
5779
|
-
var H = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
5780
|
-
if (typeof bytes === "string") {
|
|
5781
|
-
var msg2 = unescape(encodeURIComponent(bytes));
|
|
5782
|
-
bytes = [];
|
|
5783
|
-
for (var i = 0; i < msg2.length; ++i) {
|
|
5784
|
-
bytes.push(msg2.charCodeAt(i));
|
|
5785
|
-
}
|
|
5786
|
-
} else if (!Array.isArray(bytes)) {
|
|
5787
|
-
bytes = Array.prototype.slice.call(bytes);
|
|
5788
|
-
}
|
|
5789
|
-
bytes.push(128);
|
|
5790
|
-
var l = bytes.length / 4 + 2;
|
|
5791
|
-
var N = Math.ceil(l / 16);
|
|
5792
|
-
var M = new Array(N);
|
|
5793
|
-
for (var _i = 0; _i < N; ++_i) {
|
|
5794
|
-
var arr = new Uint32Array(16);
|
|
5795
|
-
for (var j = 0; j < 16; ++j) {
|
|
5796
|
-
arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
|
|
5797
|
-
}
|
|
5798
|
-
M[_i] = arr;
|
|
5799
|
-
}
|
|
5800
|
-
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
5801
|
-
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
5802
|
-
M[N - 1][15] = (bytes.length - 1) * 8 & 4294967295;
|
|
5803
|
-
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
5804
|
-
var W = new Uint32Array(80);
|
|
5805
|
-
for (var t = 0; t < 16; ++t) {
|
|
5806
|
-
W[t] = M[_i2][t];
|
|
5807
|
-
}
|
|
5808
|
-
for (var _t = 16; _t < 80; ++_t) {
|
|
5809
|
-
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
5810
|
-
}
|
|
5811
|
-
var a = H[0];
|
|
5812
|
-
var b = H[1];
|
|
5813
|
-
var c = H[2];
|
|
5814
|
-
var d = H[3];
|
|
5815
|
-
var e = H[4];
|
|
5816
|
-
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
5817
|
-
var s = Math.floor(_t2 / 20);
|
|
5818
|
-
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
5819
|
-
e = d;
|
|
5820
|
-
d = c;
|
|
5821
|
-
c = ROTL(b, 30) >>> 0;
|
|
5822
|
-
b = a;
|
|
5823
|
-
a = T;
|
|
5824
|
-
}
|
|
5825
|
-
H[0] = H[0] + a >>> 0;
|
|
5826
|
-
H[1] = H[1] + b >>> 0;
|
|
5827
|
-
H[2] = H[2] + c >>> 0;
|
|
5828
|
-
H[3] = H[3] + d >>> 0;
|
|
5829
|
-
H[4] = H[4] + e >>> 0;
|
|
5830
|
-
}
|
|
5831
|
-
return [H[0] >> 24 & 255, H[0] >> 16 & 255, H[0] >> 8 & 255, H[0] & 255, H[1] >> 24 & 255, H[1] >> 16 & 255, H[1] >> 8 & 255, H[1] & 255, H[2] >> 24 & 255, H[2] >> 16 & 255, H[2] >> 8 & 255, H[2] & 255, H[3] >> 24 & 255, H[3] >> 16 & 255, H[3] >> 8 & 255, H[3] & 255, H[4] >> 24 & 255, H[4] >> 16 & 255, H[4] >> 8 & 255, H[4] & 255];
|
|
5832
|
-
}
|
|
5833
|
-
var sha1_default;
|
|
5834
|
-
var init_sha1 = __esm({
|
|
5835
|
-
"../node_modules/uuid/dist/esm-browser/sha1.js"() {
|
|
5836
|
-
sha1_default = sha1;
|
|
5837
|
-
}
|
|
5838
|
-
});
|
|
5839
|
-
|
|
5840
|
-
// ../node_modules/uuid/dist/esm-browser/v5.js
|
|
5841
|
-
var v5, v5_default;
|
|
5842
|
-
var init_v5 = __esm({
|
|
5843
|
-
"../node_modules/uuid/dist/esm-browser/v5.js"() {
|
|
5844
|
-
init_v35();
|
|
5845
|
-
init_sha1();
|
|
5846
|
-
v5 = v35_default("v5", 80, sha1_default);
|
|
5847
|
-
v5_default = v5;
|
|
5848
|
-
}
|
|
5849
|
-
});
|
|
5850
|
-
|
|
5851
|
-
// ../node_modules/uuid/dist/esm-browser/nil.js
|
|
5852
|
-
var nil_default;
|
|
5853
|
-
var init_nil = __esm({
|
|
5854
|
-
"../node_modules/uuid/dist/esm-browser/nil.js"() {
|
|
5855
|
-
nil_default = "00000000-0000-0000-0000-000000000000";
|
|
5856
|
-
}
|
|
5857
|
-
});
|
|
5858
|
-
|
|
5859
|
-
// ../node_modules/uuid/dist/esm-browser/version.js
|
|
5860
|
-
function version(uuid) {
|
|
5861
|
-
if (!validate_default(uuid)) {
|
|
5862
|
-
throw TypeError("Invalid UUID");
|
|
5863
|
-
}
|
|
5864
|
-
return parseInt(uuid.substr(14, 1), 16);
|
|
5865
|
-
}
|
|
5866
|
-
var version_default;
|
|
5867
|
-
var init_version = __esm({
|
|
5868
|
-
"../node_modules/uuid/dist/esm-browser/version.js"() {
|
|
5869
|
-
init_validate();
|
|
5870
|
-
version_default = version;
|
|
5871
|
-
}
|
|
5872
|
-
});
|
|
5873
|
-
|
|
5874
|
-
// ../node_modules/uuid/dist/esm-browser/index.js
|
|
5875
|
-
var esm_browser_exports = {};
|
|
5876
|
-
__export(esm_browser_exports, {
|
|
5877
|
-
NIL: () => nil_default,
|
|
5878
|
-
parse: () => parse_default,
|
|
5879
|
-
stringify: () => stringify_default,
|
|
5880
|
-
v1: () => v1_default,
|
|
5881
|
-
v3: () => v3_default,
|
|
5882
|
-
v4: () => v4_default,
|
|
5883
|
-
v5: () => v5_default,
|
|
5884
|
-
validate: () => validate_default,
|
|
5885
|
-
version: () => version_default
|
|
5886
|
-
});
|
|
5887
|
-
var init_esm_browser = __esm({
|
|
5888
|
-
"../node_modules/uuid/dist/esm-browser/index.js"() {
|
|
5889
|
-
init_v1();
|
|
5890
|
-
init_v3();
|
|
5891
|
-
init_v4();
|
|
5892
|
-
init_v5();
|
|
5893
|
-
init_nil();
|
|
5894
|
-
init_version();
|
|
5895
|
-
init_validate();
|
|
5896
|
-
init_stringify();
|
|
5897
|
-
init_parse();
|
|
5898
|
-
}
|
|
5899
|
-
});
|
|
5900
|
-
|
|
5901
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/authenticatedFetch/dpopUtils.js
|
|
5902
|
-
var require_dpopUtils = __commonJS({
|
|
5903
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/authenticatedFetch/dpopUtils.js"(exports) {
|
|
5904
|
-
"use strict";
|
|
5905
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5906
|
-
exports.generateDpopKeyPair = exports.createDpopHeader = void 0;
|
|
5907
|
-
var jose_1 = (init_browser(), __toCommonJS(browser_exports));
|
|
5908
|
-
var uuid_1 = (init_esm_browser(), __toCommonJS(esm_browser_exports));
|
|
5909
|
-
var constant_1 = require_constant();
|
|
5910
5881
|
function normalizeHTU(audience) {
|
|
5911
5882
|
const audienceUrl = new URL(audience);
|
|
5912
5883
|
return new URL(audienceUrl.pathname, audienceUrl.origin).toString();
|
|
5913
5884
|
}
|
|
5914
5885
|
async function createDpopHeader(audience, method, dpopKey) {
|
|
5915
|
-
return new
|
|
5886
|
+
return new jose.SignJWT({
|
|
5916
5887
|
htu: normalizeHTU(audience),
|
|
5917
5888
|
htm: method.toUpperCase(),
|
|
5918
|
-
jti:
|
|
5889
|
+
jti: uuid.v4()
|
|
5919
5890
|
}).setProtectedHeader({
|
|
5920
|
-
alg:
|
|
5891
|
+
alg: PREFERRED_SIGNING_ALG[0],
|
|
5921
5892
|
jwk: dpopKey.publicKey,
|
|
5922
5893
|
typ: "dpop+jwt"
|
|
5923
5894
|
}).setIssuedAt().sign(dpopKey.privateKey, {});
|
|
5924
5895
|
}
|
|
5925
|
-
exports.createDpopHeader = createDpopHeader;
|
|
5926
5896
|
async function generateDpopKeyPair() {
|
|
5927
|
-
const { privateKey, publicKey } = await
|
|
5897
|
+
const { privateKey, publicKey } = await jose.generateKeyPair(PREFERRED_SIGNING_ALG[0]);
|
|
5928
5898
|
const dpopKeyPair = {
|
|
5929
5899
|
privateKey,
|
|
5930
|
-
publicKey: await
|
|
5900
|
+
publicKey: await jose.exportJWK(publicKey)
|
|
5931
5901
|
};
|
|
5932
|
-
[dpopKeyPair.publicKey.alg] =
|
|
5902
|
+
[dpopKeyPair.publicKey.alg] = PREFERRED_SIGNING_ALG;
|
|
5933
5903
|
return dpopKeyPair;
|
|
5934
5904
|
}
|
|
5935
|
-
|
|
5936
|
-
}
|
|
5937
|
-
});
|
|
5938
|
-
|
|
5939
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/authenticatedFetch/fetchFactory.js
|
|
5940
|
-
var require_fetchFactory = __commonJS({
|
|
5941
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/authenticatedFetch/fetchFactory.js"(exports) {
|
|
5942
|
-
"use strict";
|
|
5943
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5944
|
-
exports.buildAuthenticatedFetch = exports.DEFAULT_EXPIRATION_TIME_SECONDS = void 0;
|
|
5945
|
-
var cross_fetch_1 = require_browser_ponyfill();
|
|
5946
|
-
var constant_1 = require_constant();
|
|
5947
|
-
var dpopUtils_1 = require_dpopUtils();
|
|
5948
|
-
var OidcProviderError_1 = require_OidcProviderError();
|
|
5949
|
-
var InvalidResponseError_1 = require_InvalidResponseError();
|
|
5950
|
-
exports.DEFAULT_EXPIRATION_TIME_SECONDS = 600;
|
|
5905
|
+
var DEFAULT_EXPIRATION_TIME_SECONDS = 600;
|
|
5951
5906
|
function isExpectedAuthError(statusCode) {
|
|
5952
5907
|
return [401, 403].includes(statusCode);
|
|
5953
5908
|
}
|
|
5954
5909
|
async function buildDpopFetchOptions(targetUrl, authToken, dpopKey, defaultOptions) {
|
|
5955
5910
|
var _a;
|
|
5956
|
-
const headers = new
|
|
5911
|
+
const headers = new crossFetch2.Headers(defaultOptions === null || defaultOptions === void 0 ? void 0 : defaultOptions.headers);
|
|
5957
5912
|
headers.set("Authorization", `DPoP ${authToken}`);
|
|
5958
|
-
headers.set("DPoP", await
|
|
5913
|
+
headers.set("DPoP", await createDpopHeader(targetUrl, (_a = defaultOptions === null || defaultOptions === void 0 ? void 0 : defaultOptions.method) !== null && _a !== void 0 ? _a : "get", dpopKey));
|
|
5959
5914
|
return {
|
|
5960
5915
|
...defaultOptions,
|
|
5961
5916
|
headers
|
|
@@ -5965,7 +5920,7 @@ var require_fetchFactory = __commonJS({
|
|
|
5965
5920
|
if (dpopKey !== void 0) {
|
|
5966
5921
|
return buildDpopFetchOptions(targetUrl, authToken, dpopKey, defaultOptions);
|
|
5967
5922
|
}
|
|
5968
|
-
const headers = new
|
|
5923
|
+
const headers = new crossFetch2.Headers(defaultOptions === null || defaultOptions === void 0 ? void 0 : defaultOptions.headers);
|
|
5969
5924
|
headers.set("Authorization", `Bearer ${authToken}`);
|
|
5970
5925
|
return {
|
|
5971
5926
|
...defaultOptions,
|
|
@@ -5978,9 +5933,9 @@ var require_fetchFactory = __commonJS({
|
|
|
5978
5933
|
async function refreshAccessToken(refreshOptions, dpopKey, eventEmitter) {
|
|
5979
5934
|
var _a;
|
|
5980
5935
|
const tokenSet = await refreshOptions.tokenRefresher.refresh(refreshOptions.sessionId, refreshOptions.refreshToken, dpopKey);
|
|
5981
|
-
eventEmitter === null || eventEmitter === void 0 ? void 0 : eventEmitter.emit(
|
|
5936
|
+
eventEmitter === null || eventEmitter === void 0 ? void 0 : eventEmitter.emit(EVENTS.SESSION_EXTENDED, (_a = tokenSet.expiresIn) !== null && _a !== void 0 ? _a : DEFAULT_EXPIRATION_TIME_SECONDS);
|
|
5982
5937
|
if (typeof tokenSet.refreshToken === "string") {
|
|
5983
|
-
eventEmitter === null || eventEmitter === void 0 ? void 0 : eventEmitter.emit(
|
|
5938
|
+
eventEmitter === null || eventEmitter === void 0 ? void 0 : eventEmitter.emit(EVENTS.NEW_REFRESH_TOKEN, tokenSet.refreshToken);
|
|
5984
5939
|
}
|
|
5985
5940
|
return {
|
|
5986
5941
|
accessToken: tokenSet.accessToken,
|
|
@@ -5990,9 +5945,9 @@ var require_fetchFactory = __commonJS({
|
|
|
5990
5945
|
}
|
|
5991
5946
|
var computeRefreshDelay = (expiresIn) => {
|
|
5992
5947
|
if (expiresIn !== void 0) {
|
|
5993
|
-
return expiresIn -
|
|
5948
|
+
return expiresIn - REFRESH_BEFORE_EXPIRATION_SECONDS > 0 ? expiresIn - REFRESH_BEFORE_EXPIRATION_SECONDS : expiresIn;
|
|
5994
5949
|
}
|
|
5995
|
-
return
|
|
5950
|
+
return DEFAULT_EXPIRATION_TIME_SECONDS;
|
|
5996
5951
|
};
|
|
5997
5952
|
async function buildAuthenticatedFetch(unauthFetch, accessToken, options) {
|
|
5998
5953
|
var _a;
|
|
@@ -6010,24 +5965,24 @@ var require_fetchFactory = __commonJS({
|
|
|
6010
5965
|
}
|
|
6011
5966
|
clearTimeout(latestTimeout);
|
|
6012
5967
|
latestTimeout = setTimeout(proactivelyRefreshToken, computeRefreshDelay(expiresIn) * 1e3);
|
|
6013
|
-
(_a2 = options.eventEmitter) === null || _a2 === void 0 ? void 0 : _a2.emit(
|
|
5968
|
+
(_a2 = options.eventEmitter) === null || _a2 === void 0 ? void 0 : _a2.emit(EVENTS.TIMEOUT_SET, latestTimeout);
|
|
6014
5969
|
} catch (e) {
|
|
6015
|
-
if (e instanceof
|
|
6016
|
-
(_b = options === null || options === void 0 ? void 0 : options.eventEmitter) === null || _b === void 0 ? void 0 : _b.emit(
|
|
6017
|
-
(_c = options === null || options === void 0 ? void 0 : options.eventEmitter) === null || _c === void 0 ? void 0 : _c.emit(
|
|
5970
|
+
if (e instanceof OidcProviderError) {
|
|
5971
|
+
(_b = options === null || options === void 0 ? void 0 : options.eventEmitter) === null || _b === void 0 ? void 0 : _b.emit(EVENTS.ERROR, e.error, e.errorDescription);
|
|
5972
|
+
(_c = options === null || options === void 0 ? void 0 : options.eventEmitter) === null || _c === void 0 ? void 0 : _c.emit(EVENTS.SESSION_EXPIRED);
|
|
6018
5973
|
}
|
|
6019
|
-
if (e instanceof
|
|
6020
|
-
(_d = options === null || options === void 0 ? void 0 : options.eventEmitter) === null || _d === void 0 ? void 0 : _d.emit(
|
|
5974
|
+
if (e instanceof InvalidResponseError && e.missingFields.includes("access_token")) {
|
|
5975
|
+
(_d = options === null || options === void 0 ? void 0 : options.eventEmitter) === null || _d === void 0 ? void 0 : _d.emit(EVENTS.SESSION_EXPIRED);
|
|
6021
5976
|
}
|
|
6022
5977
|
}
|
|
6023
5978
|
};
|
|
6024
5979
|
latestTimeout = setTimeout(proactivelyRefreshToken, computeRefreshDelay(options.expiresIn) * 1e3);
|
|
6025
|
-
(_a = options.eventEmitter) === null || _a === void 0 ? void 0 : _a.emit(
|
|
5980
|
+
(_a = options.eventEmitter) === null || _a === void 0 ? void 0 : _a.emit(EVENTS.TIMEOUT_SET, latestTimeout);
|
|
6026
5981
|
} else if (options !== void 0 && options.eventEmitter !== void 0) {
|
|
6027
5982
|
const expirationTimeout = setTimeout(() => {
|
|
6028
|
-
options.eventEmitter.emit(
|
|
5983
|
+
options.eventEmitter.emit(EVENTS.SESSION_EXPIRED);
|
|
6029
5984
|
}, computeRefreshDelay(options.expiresIn) * 1e3);
|
|
6030
|
-
options.eventEmitter.emit(
|
|
5985
|
+
options.eventEmitter.emit(EVENTS.TIMEOUT_SET, expirationTimeout);
|
|
6031
5986
|
}
|
|
6032
5987
|
return async (url, requestInit) => {
|
|
6033
5988
|
let response = await makeAuthenticatedRequest(unauthFetch, currentAccessToken, url, requestInit, options === null || options === void 0 ? void 0 : options.dpopKey);
|
|
@@ -6042,28 +5997,14 @@ var require_fetchFactory = __commonJS({
|
|
|
6042
5997
|
return response;
|
|
6043
5998
|
};
|
|
6044
5999
|
}
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/storage/__mocks__/StorageUtility.js
|
|
6050
|
-
var require_StorageUtility2 = __commonJS({
|
|
6051
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/storage/__mocks__/StorageUtility.js"(exports) {
|
|
6052
|
-
"use strict";
|
|
6053
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6054
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
6055
|
-
};
|
|
6056
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6057
|
-
exports.mockStorageUtility = exports.mockStorage = exports.StorageUtilityMock = exports.StorageUtilityGetResponse = void 0;
|
|
6058
|
-
var StorageUtility_1 = __importDefault(require_StorageUtility());
|
|
6059
|
-
exports.StorageUtilityGetResponse = "getResponse";
|
|
6060
|
-
exports.StorageUtilityMock = {
|
|
6061
|
-
get: async (key, options) => exports.StorageUtilityGetResponse,
|
|
6000
|
+
var StorageUtilityGetResponse = "getResponse";
|
|
6001
|
+
var StorageUtilityMock = {
|
|
6002
|
+
get: async (key, options) => StorageUtilityGetResponse,
|
|
6062
6003
|
set: async (key, value) => {
|
|
6063
6004
|
},
|
|
6064
6005
|
delete: async (key) => {
|
|
6065
6006
|
},
|
|
6066
|
-
getForUser: async (userId, key, options) =>
|
|
6007
|
+
getForUser: async (userId, key, options) => StorageUtilityGetResponse,
|
|
6067
6008
|
setForUser: async (userId, values, options) => {
|
|
6068
6009
|
},
|
|
6069
6010
|
deleteForUser: async (userId, key, options) => {
|
|
@@ -6091,135 +6032,45 @@ var require_StorageUtility2 = __commonJS({
|
|
|
6091
6032
|
}
|
|
6092
6033
|
};
|
|
6093
6034
|
};
|
|
6094
|
-
exports.mockStorage = mockStorage;
|
|
6095
6035
|
var mockStorageUtility = (stored, isSecure = false) => {
|
|
6096
6036
|
if (isSecure) {
|
|
6097
|
-
return new
|
|
6037
|
+
return new StorageUtility(mockStorage(stored), mockStorage({}));
|
|
6098
6038
|
}
|
|
6099
|
-
return new
|
|
6039
|
+
return new StorageUtility(mockStorage({}), mockStorage(stored));
|
|
6100
6040
|
};
|
|
6041
|
+
exports.AggregateHandler = AggregateHandler;
|
|
6042
|
+
exports.ConfigurationError = ConfigurationError;
|
|
6043
|
+
exports.DEFAULT_SCOPES = DEFAULT_SCOPES;
|
|
6044
|
+
exports.EVENTS = EVENTS;
|
|
6045
|
+
exports.InMemoryStorage = InMemoryStorage;
|
|
6046
|
+
exports.InvalidResponseError = InvalidResponseError;
|
|
6047
|
+
exports.NotImplementedError = NotImplementedError;
|
|
6048
|
+
exports.OidcProviderError = OidcProviderError;
|
|
6049
|
+
exports.PREFERRED_SIGNING_ALG = PREFERRED_SIGNING_ALG;
|
|
6050
|
+
exports.REFRESH_BEFORE_EXPIRATION_SECONDS = REFRESH_BEFORE_EXPIRATION_SECONDS;
|
|
6051
|
+
exports.SOLID_CLIENT_AUTHN_KEY_PREFIX = SOLID_CLIENT_AUTHN_KEY_PREFIX;
|
|
6052
|
+
exports.StorageUtility = StorageUtility;
|
|
6053
|
+
exports.StorageUtilityGetResponse = StorageUtilityGetResponse;
|
|
6054
|
+
exports.StorageUtilityMock = StorageUtilityMock;
|
|
6055
|
+
exports.USER_SESSION_PREFIX = USER_SESSION_PREFIX;
|
|
6056
|
+
exports.buildAuthenticatedFetch = buildAuthenticatedFetch;
|
|
6057
|
+
exports.createDpopHeader = createDpopHeader;
|
|
6058
|
+
exports.determineSigningAlg = determineSigningAlg;
|
|
6059
|
+
exports.fetchJwks = fetchJwks2;
|
|
6060
|
+
exports.generateDpopKeyPair = generateDpopKeyPair;
|
|
6061
|
+
exports.getSessionIdFromOauthState = getSessionIdFromOauthState;
|
|
6062
|
+
exports.getWebidFromTokenPayload = getWebidFromTokenPayload;
|
|
6063
|
+
exports.handleRegistration = handleRegistration;
|
|
6064
|
+
exports.isSupportedTokenType = isSupportedTokenType;
|
|
6065
|
+
exports.loadOidcContextFromStorage = loadOidcContextFromStorage;
|
|
6066
|
+
exports.mockStorage = mockStorage;
|
|
6101
6067
|
exports.mockStorageUtility = mockStorageUtility;
|
|
6102
|
-
|
|
6103
|
-
});
|
|
6104
|
-
|
|
6105
|
-
// ../node_modules/@inrupt/solid-client-authn-core/dist/index.js
|
|
6106
|
-
var require_dist = __commonJS({
|
|
6107
|
-
"../node_modules/@inrupt/solid-client-authn-core/dist/index.js"(exports) {
|
|
6108
|
-
"use strict";
|
|
6109
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6110
|
-
if (k2 === void 0)
|
|
6111
|
-
k2 = k;
|
|
6112
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6113
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6114
|
-
desc = { enumerable: true, get: function() {
|
|
6115
|
-
return m[k];
|
|
6116
|
-
} };
|
|
6117
|
-
}
|
|
6118
|
-
Object.defineProperty(o, k2, desc);
|
|
6119
|
-
} : function(o, m, k, k2) {
|
|
6120
|
-
if (k2 === void 0)
|
|
6121
|
-
k2 = k;
|
|
6122
|
-
o[k2] = m[k];
|
|
6123
|
-
});
|
|
6124
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
6125
|
-
for (var p in m)
|
|
6126
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
6127
|
-
__createBinding(exports2, m, p);
|
|
6128
|
-
};
|
|
6129
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6130
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
6131
|
-
};
|
|
6132
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6133
|
-
exports.StorageUtilityGetResponse = exports.StorageUtilityMock = exports.mockStorageUtility = exports.mockStorage = exports.buildAuthenticatedFetch = exports.generateDpopKeyPair = exports.createDpopHeader = exports.OidcProviderError = exports.InvalidResponseError = exports.NotImplementedError = exports.ConfigurationError = exports.InMemoryStorage = exports.getSessionIdFromOauthState = exports.saveSessionInfoToStorage = exports.loadOidcContextFromStorage = exports.StorageUtility = exports.determineSigningAlg = exports.handleRegistration = exports.USER_SESSION_PREFIX = exports.isSupportedTokenType = exports.fetchJwks = exports.getWebidFromTokenPayload = exports.AggregateHandler = void 0;
|
|
6134
|
-
__exportStar(require_constant(), exports);
|
|
6135
|
-
var AggregateHandler_1 = require_AggregateHandler();
|
|
6136
|
-
Object.defineProperty(exports, "AggregateHandler", { enumerable: true, get: function() {
|
|
6137
|
-
return __importDefault(AggregateHandler_1).default;
|
|
6138
|
-
} });
|
|
6139
|
-
var token_1 = require_token();
|
|
6140
|
-
Object.defineProperty(exports, "getWebidFromTokenPayload", { enumerable: true, get: function() {
|
|
6141
|
-
return token_1.getWebidFromTokenPayload;
|
|
6142
|
-
} });
|
|
6143
|
-
Object.defineProperty(exports, "fetchJwks", { enumerable: true, get: function() {
|
|
6144
|
-
return token_1.fetchJwks;
|
|
6145
|
-
} });
|
|
6146
|
-
var ISessionInfo_1 = require_ISessionInfo();
|
|
6147
|
-
Object.defineProperty(exports, "isSupportedTokenType", { enumerable: true, get: function() {
|
|
6148
|
-
return ISessionInfo_1.isSupportedTokenType;
|
|
6149
|
-
} });
|
|
6150
|
-
var ISessionInfoManager_1 = require_ISessionInfoManager();
|
|
6151
|
-
Object.defineProperty(exports, "USER_SESSION_PREFIX", { enumerable: true, get: function() {
|
|
6152
|
-
return ISessionInfoManager_1.USER_SESSION_PREFIX;
|
|
6153
|
-
} });
|
|
6154
|
-
var IClientRegistrar_1 = require_IClientRegistrar();
|
|
6155
|
-
Object.defineProperty(exports, "handleRegistration", { enumerable: true, get: function() {
|
|
6156
|
-
return IClientRegistrar_1.handleRegistration;
|
|
6157
|
-
} });
|
|
6158
|
-
Object.defineProperty(exports, "determineSigningAlg", { enumerable: true, get: function() {
|
|
6159
|
-
return IClientRegistrar_1.determineSigningAlg;
|
|
6160
|
-
} });
|
|
6161
|
-
var StorageUtility_1 = require_StorageUtility();
|
|
6162
|
-
Object.defineProperty(exports, "StorageUtility", { enumerable: true, get: function() {
|
|
6163
|
-
return __importDefault(StorageUtility_1).default;
|
|
6164
|
-
} });
|
|
6165
|
-
Object.defineProperty(exports, "loadOidcContextFromStorage", { enumerable: true, get: function() {
|
|
6166
|
-
return StorageUtility_1.loadOidcContextFromStorage;
|
|
6167
|
-
} });
|
|
6168
|
-
Object.defineProperty(exports, "saveSessionInfoToStorage", { enumerable: true, get: function() {
|
|
6169
|
-
return StorageUtility_1.saveSessionInfoToStorage;
|
|
6170
|
-
} });
|
|
6171
|
-
Object.defineProperty(exports, "getSessionIdFromOauthState", { enumerable: true, get: function() {
|
|
6172
|
-
return StorageUtility_1.getSessionIdFromOauthState;
|
|
6173
|
-
} });
|
|
6174
|
-
var InMemoryStorage_1 = require_InMemoryStorage();
|
|
6175
|
-
Object.defineProperty(exports, "InMemoryStorage", { enumerable: true, get: function() {
|
|
6176
|
-
return __importDefault(InMemoryStorage_1).default;
|
|
6177
|
-
} });
|
|
6178
|
-
var ConfigurationError_1 = require_ConfigurationError();
|
|
6179
|
-
Object.defineProperty(exports, "ConfigurationError", { enumerable: true, get: function() {
|
|
6180
|
-
return __importDefault(ConfigurationError_1).default;
|
|
6181
|
-
} });
|
|
6182
|
-
var NotImplementedError_1 = require_NotImplementedError();
|
|
6183
|
-
Object.defineProperty(exports, "NotImplementedError", { enumerable: true, get: function() {
|
|
6184
|
-
return __importDefault(NotImplementedError_1).default;
|
|
6185
|
-
} });
|
|
6186
|
-
var InvalidResponseError_1 = require_InvalidResponseError();
|
|
6187
|
-
Object.defineProperty(exports, "InvalidResponseError", { enumerable: true, get: function() {
|
|
6188
|
-
return InvalidResponseError_1.InvalidResponseError;
|
|
6189
|
-
} });
|
|
6190
|
-
var OidcProviderError_1 = require_OidcProviderError();
|
|
6191
|
-
Object.defineProperty(exports, "OidcProviderError", { enumerable: true, get: function() {
|
|
6192
|
-
return OidcProviderError_1.OidcProviderError;
|
|
6193
|
-
} });
|
|
6194
|
-
var dpopUtils_1 = require_dpopUtils();
|
|
6195
|
-
Object.defineProperty(exports, "createDpopHeader", { enumerable: true, get: function() {
|
|
6196
|
-
return dpopUtils_1.createDpopHeader;
|
|
6197
|
-
} });
|
|
6198
|
-
Object.defineProperty(exports, "generateDpopKeyPair", { enumerable: true, get: function() {
|
|
6199
|
-
return dpopUtils_1.generateDpopKeyPair;
|
|
6200
|
-
} });
|
|
6201
|
-
var fetchFactory_1 = require_fetchFactory();
|
|
6202
|
-
Object.defineProperty(exports, "buildAuthenticatedFetch", { enumerable: true, get: function() {
|
|
6203
|
-
return fetchFactory_1.buildAuthenticatedFetch;
|
|
6204
|
-
} });
|
|
6205
|
-
var StorageUtility_2 = require_StorageUtility2();
|
|
6206
|
-
Object.defineProperty(exports, "mockStorage", { enumerable: true, get: function() {
|
|
6207
|
-
return StorageUtility_2.mockStorage;
|
|
6208
|
-
} });
|
|
6209
|
-
Object.defineProperty(exports, "mockStorageUtility", { enumerable: true, get: function() {
|
|
6210
|
-
return StorageUtility_2.mockStorageUtility;
|
|
6211
|
-
} });
|
|
6212
|
-
Object.defineProperty(exports, "StorageUtilityMock", { enumerable: true, get: function() {
|
|
6213
|
-
return StorageUtility_2.StorageUtilityMock;
|
|
6214
|
-
} });
|
|
6215
|
-
Object.defineProperty(exports, "StorageUtilityGetResponse", { enumerable: true, get: function() {
|
|
6216
|
-
return StorageUtility_2.StorageUtilityGetResponse;
|
|
6217
|
-
} });
|
|
6068
|
+
exports.saveSessionInfoToStorage = saveSessionInfoToStorage;
|
|
6218
6069
|
}
|
|
6219
6070
|
});
|
|
6220
6071
|
|
|
6221
6072
|
// ../node_modules/@inrupt/solid-client-authn-browser/dist/storage/StorageUtility.js
|
|
6222
|
-
var
|
|
6073
|
+
var require_StorageUtility = __commonJS({
|
|
6223
6074
|
"../node_modules/@inrupt/solid-client-authn-browser/dist/storage/StorageUtility.js"(exports) {
|
|
6224
6075
|
"use strict";
|
|
6225
6076
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6548,10 +6399,10 @@ var require_oidc_client_min = __commonJS({
|
|
|
6548
6399
|
if (!(t2 instanceof e2))
|
|
6549
6400
|
throw new TypeError("Cannot call a class as a function");
|
|
6550
6401
|
}
|
|
6551
|
-
var l = ".well-known/openid-configuration",
|
|
6402
|
+
var l = ".well-known/openid-configuration", f = "id_token", g = "openid", d = "client_secret_post";
|
|
6552
6403
|
e.OidcClientSettings = function() {
|
|
6553
6404
|
function t2() {
|
|
6554
|
-
var e2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r2 = e2.authority, i2 = e2.metadataUrl, o2 = e2.metadata, l2 = e2.signingKeys, p = e2.metadataSeed, v = e2.client_id, y = e2.client_secret, m = e2.response_type, _ = void 0 === m ?
|
|
6405
|
+
var e2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r2 = e2.authority, i2 = e2.metadataUrl, o2 = e2.metadata, l2 = e2.signingKeys, p = e2.metadataSeed, v = e2.client_id, y = e2.client_secret, m = e2.response_type, _ = void 0 === m ? f : m, S = e2.scope, b = void 0 === S ? g : S, w = e2.redirect_uri, F = e2.post_logout_redirect_uri, E = e2.client_authentication, x = void 0 === E ? d : E, A = e2.prompt, k = e2.display, P = e2.max_age, C = e2.ui_locales, T = e2.acr_values, R = e2.resource, I = e2.response_mode, D = e2.filterProtocolClaims, L = void 0 === D || D, N = e2.loadUserInfo, U = void 0 === N || N, B = e2.staleStateAge, O = void 0 === B ? 900 : B, j = e2.clockSkew, M = void 0 === j ? 300 : j, H = e2.clockService, V = void 0 === H ? new s.ClockService() : H, K = e2.userInfoJwtIssuer, q = void 0 === K ? "OP" : K, J = e2.mergeClaims, W = void 0 !== J && J, z = e2.stateStore, Y = void 0 === z ? new a.WebStorageStateStore() : z, G = e2.ResponseValidatorCtor, X = void 0 === G ? u.ResponseValidator : G, $ = e2.MetadataServiceCtor, Q = void 0 === $ ? c.MetadataService : $, Z = e2.extraQueryParams, tt = void 0 === Z ? {} : Z, et = e2.extraTokenParams, rt = void 0 === et ? {} : et;
|
|
6555
6406
|
h(this, t2), this._authority = r2, this._metadataUrl = i2, this._metadata = o2, this._metadataSeed = p, this._signingKeys = l2, this._client_id = v, this._client_secret = y, this._response_type = _, this._scope = b, this._redirect_uri = w, this._post_logout_redirect_uri = F, this._client_authentication = x, this._prompt = A, this._display = k, this._max_age = P, this._ui_locales = C, this._acr_values = T, this._resource = R, this._response_mode = I, this._filterProtocolClaims = !!L, this._loadUserInfo = !!U, this._staleStateAge = O, this._clockSkew = M, this._clockService = V, this._userInfoJwtIssuer = q, this._mergeClaims = !!W, this._stateStore = Y, this._validator = new X(this), this._metadataService = new Q(this), this._extraQueryParams = "object" === (void 0 === tt ? "undefined" : n(tt)) ? tt : {}, this._extraTokenParams = "object" === (void 0 === rt ? "undefined" : n(rt)) ? rt : {};
|
|
6556
6407
|
}
|
|
6557
6408
|
return t2.prototype.getEpochTime = function t3() {
|
|
@@ -6770,7 +6621,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
6770
6621
|
var n = r(0), i = r(3), o = r(13);
|
|
6771
6622
|
e.SigninRequest = function() {
|
|
6772
6623
|
function t2(e2) {
|
|
6773
|
-
var r2 = e2.url, s = e2.client_id, a = e2.redirect_uri, u = e2.response_type, c = e2.scope, h = e2.authority, l = e2.data,
|
|
6624
|
+
var r2 = e2.url, s = e2.client_id, a = e2.redirect_uri, u = e2.response_type, c = e2.scope, h = e2.authority, l = e2.data, f = e2.prompt, g = e2.display, d = e2.max_age, p = e2.ui_locales, v = e2.id_token_hint, y = e2.login_hint, m = e2.acr_values, _ = e2.resource, S = e2.response_mode, b = e2.request, w = e2.request_uri, F = e2.extraQueryParams, E = e2.request_type, x = e2.client_secret, A = e2.extraTokenParams, k = e2.skipUserInfo;
|
|
6774
6625
|
if (function P(t3, e3) {
|
|
6775
6626
|
if (!(t3 instanceof e3))
|
|
6776
6627
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -6788,7 +6639,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
6788
6639
|
throw n.Log.error("SigninRequest.ctor: No authority passed"), new Error("authority");
|
|
6789
6640
|
var C = t2.isOidc(u), T = t2.isCode(u);
|
|
6790
6641
|
S || (S = t2.isCode(u) ? "query" : null), this.state = new o.SigninState({ nonce: C, data: l, client_id: s, authority: h, redirect_uri: a, code_verifier: T, request_type: E, response_mode: S, client_secret: x, scope: c, extraTokenParams: A, skipUserInfo: k }), r2 = i.UrlUtility.addQueryParam(r2, "client_id", s), r2 = i.UrlUtility.addQueryParam(r2, "redirect_uri", a), r2 = i.UrlUtility.addQueryParam(r2, "response_type", u), r2 = i.UrlUtility.addQueryParam(r2, "scope", c), r2 = i.UrlUtility.addQueryParam(r2, "state", this.state.id), C && (r2 = i.UrlUtility.addQueryParam(r2, "nonce", this.state.nonce)), T && (r2 = i.UrlUtility.addQueryParam(r2, "code_challenge", this.state.code_challenge), r2 = i.UrlUtility.addQueryParam(r2, "code_challenge_method", "S256"));
|
|
6791
|
-
var R = { prompt:
|
|
6642
|
+
var R = { prompt: f, display: g, max_age: d, ui_locales: p, id_token_hint: v, login_hint: y, acr_values: m, resource: _, request: b, request_uri: w, response_mode: S };
|
|
6792
6643
|
for (var I in R)
|
|
6793
6644
|
R[I] && (r2 = i.UrlUtility.addQueryParam(r2, I, R[I]));
|
|
6794
6645
|
for (var D in F)
|
|
@@ -6887,7 +6738,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
6887
6738
|
return function(e2, r2, n2) {
|
|
6888
6739
|
return r2 && t2(e2.prototype, r2), n2 && t2(e2, n2), e2;
|
|
6889
6740
|
};
|
|
6890
|
-
}(), i = r(0), o = r(5), s = r(12), a = r(8), u = r(34), c = r(35), h = r(36), l = r(13),
|
|
6741
|
+
}(), i = r(0), o = r(5), s = r(12), a = r(8), u = r(34), c = r(35), h = r(36), l = r(13), f = r(9);
|
|
6891
6742
|
function g(t2, e2) {
|
|
6892
6743
|
if (!(t2 instanceof e2))
|
|
6893
6744
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -6898,14 +6749,14 @@ var require_oidc_client_min = __commonJS({
|
|
|
6898
6749
|
g(this, t2), e2 instanceof o.OidcClientSettings ? this._settings = e2 : this._settings = new o.OidcClientSettings(e2);
|
|
6899
6750
|
}
|
|
6900
6751
|
return t2.prototype.createSigninRequest = function t3() {
|
|
6901
|
-
var e2 = this, r2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = r2.response_type, o2 = r2.scope, s2 = r2.redirect_uri, u2 = r2.data, c2 = r2.state, h2 = r2.prompt, l2 = r2.display,
|
|
6752
|
+
var e2 = this, r2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = r2.response_type, o2 = r2.scope, s2 = r2.redirect_uri, u2 = r2.data, c2 = r2.state, h2 = r2.prompt, l2 = r2.display, f2 = r2.max_age, g2 = r2.ui_locales, d = r2.id_token_hint, p = r2.login_hint, v = r2.acr_values, y = r2.resource, m = r2.request, _ = r2.request_uri, S = r2.response_mode, b = r2.extraQueryParams, w = r2.extraTokenParams, F = r2.request_type, E = r2.skipUserInfo, x = arguments[1];
|
|
6902
6753
|
i.Log.debug("OidcClient.createSigninRequest");
|
|
6903
6754
|
var A = this._settings.client_id;
|
|
6904
|
-
n2 = n2 || this._settings.response_type, o2 = o2 || this._settings.scope, s2 = s2 || this._settings.redirect_uri, h2 = h2 || this._settings.prompt, l2 = l2 || this._settings.display,
|
|
6755
|
+
n2 = n2 || this._settings.response_type, o2 = o2 || this._settings.scope, s2 = s2 || this._settings.redirect_uri, h2 = h2 || this._settings.prompt, l2 = l2 || this._settings.display, f2 = f2 || this._settings.max_age, g2 = g2 || this._settings.ui_locales, v = v || this._settings.acr_values, y = y || this._settings.resource, S = S || this._settings.response_mode, b = b || this._settings.extraQueryParams, w = w || this._settings.extraTokenParams;
|
|
6905
6756
|
var k = this._settings.authority;
|
|
6906
6757
|
return a.SigninRequest.isCode(n2) && "code" !== n2 ? Promise.reject(new Error("OpenID Connect hybrid flow is not supported")) : this._metadataService.getAuthorizationEndpoint().then(function(t4) {
|
|
6907
6758
|
i.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint", t4);
|
|
6908
|
-
var r3 = new a.SigninRequest({ url: t4, client_id: A, redirect_uri: s2, response_type: n2, scope: o2, data: u2 || c2, authority: k, prompt: h2, display: l2, max_age:
|
|
6759
|
+
var r3 = new a.SigninRequest({ url: t4, client_id: A, redirect_uri: s2, response_type: n2, scope: o2, data: u2 || c2, authority: k, prompt: h2, display: l2, max_age: f2, ui_locales: g2, id_token_hint: d, login_hint: p, acr_values: v, resource: y, request: m, request_uri: _, extraQueryParams: b, extraTokenParams: w, request_type: F, response_mode: S, client_secret: e2._settings.client_secret, skipUserInfo: E }), P = r3.state;
|
|
6909
6760
|
return (x = x || e2._stateStore).set(P.id, P.toStorageString()).then(function() {
|
|
6910
6761
|
return r3;
|
|
6911
6762
|
});
|
|
@@ -6935,8 +6786,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
6935
6786
|
if (!t4)
|
|
6936
6787
|
throw i.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"), new Error("no end session endpoint");
|
|
6937
6788
|
i.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint", t4);
|
|
6938
|
-
var r3 = new c.SignoutRequest({ url: t4, id_token_hint: n2, post_logout_redirect_uri: a2, data: o2 || s2, extraQueryParams: u2, request_type: h2 }),
|
|
6939
|
-
return
|
|
6789
|
+
var r3 = new c.SignoutRequest({ url: t4, id_token_hint: n2, post_logout_redirect_uri: a2, data: o2 || s2, extraQueryParams: u2, request_type: h2 }), f2 = r3.state;
|
|
6790
|
+
return f2 && (i.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"), (l2 = l2 || e2._stateStore).set(f2.id, f2.toStorageString())), r3;
|
|
6940
6791
|
});
|
|
6941
6792
|
}, t2.prototype.readSignoutResponseState = function t3(e2, r2) {
|
|
6942
6793
|
var n2 = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
|
|
@@ -6950,7 +6801,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
6950
6801
|
return u2(a2).then(function(t4) {
|
|
6951
6802
|
if (!t4)
|
|
6952
6803
|
throw i.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"), new Error("No matching state found in storage");
|
|
6953
|
-
return { state:
|
|
6804
|
+
return { state: f.State.fromStorageString(t4), response: o2 };
|
|
6954
6805
|
});
|
|
6955
6806
|
}, t2.prototype.processSignoutResponse = function t3(e2, r2) {
|
|
6956
6807
|
var n2 = this;
|
|
@@ -6959,7 +6810,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
6959
6810
|
return e3 ? (i.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"), n2._validator.validateSignoutResponse(e3, r3)) : (i.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"), r3);
|
|
6960
6811
|
});
|
|
6961
6812
|
}, t2.prototype.clearStaleState = function t3(e2) {
|
|
6962
|
-
return i.Log.debug("OidcClient.clearStaleState"), e2 = e2 || this._stateStore,
|
|
6813
|
+
return i.Log.debug("OidcClient.clearStaleState"), e2 = e2 || this._stateStore, f.State.clearStaleState(e2, this.settings.staleStateAge);
|
|
6963
6814
|
}, n(t2, [{ key: "_stateStore", get: function t3() {
|
|
6964
6815
|
return this.settings.stateStore;
|
|
6965
6816
|
} }, { key: "_validator", get: function t3() {
|
|
@@ -7061,14 +6912,14 @@ var require_oidc_client_min = __commonJS({
|
|
|
7061
6912
|
}
|
|
7062
6913
|
e.SigninState = function(t2) {
|
|
7063
6914
|
function e2() {
|
|
7064
|
-
var r2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = r2.nonce, i2 = r2.authority, o2 = r2.client_id, u = r2.redirect_uri, l = r2.code_verifier,
|
|
6915
|
+
var r2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = r2.nonce, i2 = r2.authority, o2 = r2.client_id, u = r2.redirect_uri, l = r2.code_verifier, f = r2.response_mode, g = r2.client_secret, d = r2.scope, p = r2.extraTokenParams, v = r2.skipUserInfo;
|
|
7065
6916
|
c(this, e2);
|
|
7066
6917
|
var y = h(this, t2.call(this, arguments[0]));
|
|
7067
6918
|
if (true === n2 ? y._nonce = (0, a.default)() : n2 && (y._nonce = n2), true === l ? y._code_verifier = (0, a.default)() + (0, a.default)() + (0, a.default)() : l && (y._code_verifier = l), y.code_verifier) {
|
|
7068
6919
|
var m = s.JoseUtil.hashString(y.code_verifier, "SHA256");
|
|
7069
6920
|
y._code_challenge = s.JoseUtil.hexToBase64Url(m);
|
|
7070
6921
|
}
|
|
7071
|
-
return y._redirect_uri = u, y._authority = i2, y._client_id = o2, y._response_mode =
|
|
6922
|
+
return y._redirect_uri = u, y._authority = i2, y._client_id = o2, y._response_mode = f, y._client_secret = g, y._scope = d, y._extraTokenParams = p, y._skipUserInfo = v, y;
|
|
7072
6923
|
}
|
|
7073
6924
|
return function r2(t3, e3) {
|
|
7074
6925
|
if ("function" != typeof e3 && null !== e3)
|
|
@@ -7446,8 +7297,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
7446
7297
|
}, function(t, e, r) {
|
|
7447
7298
|
"use strict";
|
|
7448
7299
|
Object.defineProperty(e, "__esModule", { value: true });
|
|
7449
|
-
var n = r(0), i = r(10), o = r(5), s = r(6), a = r(37), u = r(38), c = r(16), h = r(2), l = r(48),
|
|
7450
|
-
e.default = { Version: m.Version, Log: n.Log, OidcClient: i.OidcClient, OidcClientSettings: o.OidcClientSettings, WebStorageStateStore: s.WebStorageStateStore, InMemoryWebStorage: a.InMemoryWebStorage, UserManager: u.UserManager, AccessTokenEvents: c.AccessTokenEvents, MetadataService: h.MetadataService, CordovaPopupNavigator: l.CordovaPopupNavigator, CordovaIFrameNavigator:
|
|
7300
|
+
var n = r(0), i = r(10), o = r(5), s = r(6), a = r(37), u = r(38), c = r(16), h = r(2), l = r(48), f = r(49), g = r(19), d = r(20), p = r(18), v = r(1), y = r(15), m = r(50);
|
|
7301
|
+
e.default = { Version: m.Version, Log: n.Log, OidcClient: i.OidcClient, OidcClientSettings: o.OidcClientSettings, WebStorageStateStore: s.WebStorageStateStore, InMemoryWebStorage: a.InMemoryWebStorage, UserManager: u.UserManager, AccessTokenEvents: c.AccessTokenEvents, MetadataService: h.MetadataService, CordovaPopupNavigator: l.CordovaPopupNavigator, CordovaIFrameNavigator: f.CordovaIFrameNavigator, CheckSessionIFrame: g.CheckSessionIFrame, TokenRevocationClient: d.TokenRevocationClient, SessionMonitor: p.SessionMonitor, Global: v.Global, User: y.User }, t.exports = e.default;
|
|
7451
7302
|
}, function(t, e, r) {
|
|
7452
7303
|
"use strict";
|
|
7453
7304
|
Object.defineProperty(e, "__esModule", { value: true });
|
|
@@ -7731,7 +7582,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
7731
7582
|
"use strict";
|
|
7732
7583
|
(function(t2) {
|
|
7733
7584
|
Object.defineProperty(e, "__esModule", { value: true });
|
|
7734
|
-
var r2, n, i, o, s, a, u, c, h, l,
|
|
7585
|
+
var r2, n, i, o, s, a, u, c, h, l, f, g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
7735
7586
|
return typeof t3;
|
|
7736
7587
|
} : function(t3) {
|
|
7737
7588
|
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
@@ -7817,10 +7668,10 @@ var require_oidc_client_min = __commonJS({
|
|
|
7817
7668
|
if (c2) {
|
|
7818
7669
|
for (var l2 = 0; l2 < c2; l2 += a2)
|
|
7819
7670
|
this._doProcessBlock(i2, l2);
|
|
7820
|
-
var
|
|
7671
|
+
var f2 = i2.splice(0, c2);
|
|
7821
7672
|
n2.sigBytes -= h2;
|
|
7822
7673
|
}
|
|
7823
|
-
return new s.init(
|
|
7674
|
+
return new s.init(f2, h2);
|
|
7824
7675
|
}, clone: function t3() {
|
|
7825
7676
|
var e2 = o.clone.call(this);
|
|
7826
7677
|
return e2._data = this._data.clone(), e2;
|
|
@@ -7838,9 +7689,9 @@ var require_oidc_client_min = __commonJS({
|
|
|
7838
7689
|
};
|
|
7839
7690
|
}, _createHmacHelper: function t3(e2) {
|
|
7840
7691
|
return function(t4, r3) {
|
|
7841
|
-
return new
|
|
7692
|
+
return new f.HMAC.init(e2, r3).finalize(t4);
|
|
7842
7693
|
};
|
|
7843
|
-
} }),
|
|
7694
|
+
} }), f = n.algo = {}, n);
|
|
7844
7695
|
!function(t3) {
|
|
7845
7696
|
var e2, r3 = (e2 = v).lib, n2 = r3.Base, i2 = r3.WordArray;
|
|
7846
7697
|
(e2 = e2.x64 = {}).Word = n2.extend({ init: function t4(e3, r4) {
|
|
@@ -7887,8 +7738,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
7887
7738
|
var h2;
|
|
7888
7739
|
t: {
|
|
7889
7740
|
h2 = u2;
|
|
7890
|
-
for (var l2 = t3.sqrt(h2),
|
|
7891
|
-
if (!(h2 %
|
|
7741
|
+
for (var l2 = t3.sqrt(h2), f2 = 2; f2 <= l2; f2++)
|
|
7742
|
+
if (!(h2 % f2)) {
|
|
7892
7743
|
h2 = false;
|
|
7893
7744
|
break t;
|
|
7894
7745
|
}
|
|
@@ -7900,16 +7751,16 @@ var require_oidc_client_min = __commonJS({
|
|
|
7900
7751
|
i2 = i2.SHA256 = n2.extend({ _doReset: function t4() {
|
|
7901
7752
|
this._hash = new r3.init(o2.slice(0));
|
|
7902
7753
|
}, _doProcessBlock: function t4(e3, r4) {
|
|
7903
|
-
for (var n3 = this._hash.words, i3 = n3[0], o3 = n3[1], a3 = n3[2], u3 = n3[3], c3 = n3[4], h3 = n3[5], l3 = n3[6],
|
|
7754
|
+
for (var n3 = this._hash.words, i3 = n3[0], o3 = n3[1], a3 = n3[2], u3 = n3[3], c3 = n3[4], h3 = n3[5], l3 = n3[6], f3 = n3[7], d2 = 0; 64 > d2; d2++) {
|
|
7904
7755
|
if (16 > d2)
|
|
7905
7756
|
g2[d2] = 0 | e3[r4 + d2];
|
|
7906
7757
|
else {
|
|
7907
7758
|
var p2 = g2[d2 - 15], v2 = g2[d2 - 2];
|
|
7908
7759
|
g2[d2] = ((p2 << 25 | p2 >>> 7) ^ (p2 << 14 | p2 >>> 18) ^ p2 >>> 3) + g2[d2 - 7] + ((v2 << 15 | v2 >>> 17) ^ (v2 << 13 | v2 >>> 19) ^ v2 >>> 10) + g2[d2 - 16];
|
|
7909
7760
|
}
|
|
7910
|
-
p2 =
|
|
7761
|
+
p2 = f3 + ((c3 << 26 | c3 >>> 6) ^ (c3 << 21 | c3 >>> 11) ^ (c3 << 7 | c3 >>> 25)) + (c3 & h3 ^ ~c3 & l3) + s2[d2] + g2[d2], v2 = ((i3 << 30 | i3 >>> 2) ^ (i3 << 19 | i3 >>> 13) ^ (i3 << 10 | i3 >>> 22)) + (i3 & o3 ^ i3 & a3 ^ o3 & a3), f3 = l3, l3 = h3, h3 = c3, c3 = u3 + p2 | 0, u3 = a3, a3 = o3, o3 = i3, i3 = p2 + v2 | 0;
|
|
7911
7762
|
}
|
|
7912
|
-
n3[0] = n3[0] + i3 | 0, n3[1] = n3[1] + o3 | 0, n3[2] = n3[2] + a3 | 0, n3[3] = n3[3] + u3 | 0, n3[4] = n3[4] + c3 | 0, n3[5] = n3[5] + h3 | 0, n3[6] = n3[6] + l3 | 0, n3[7] = n3[7] +
|
|
7763
|
+
n3[0] = n3[0] + i3 | 0, n3[1] = n3[1] + o3 | 0, n3[2] = n3[2] + a3 | 0, n3[3] = n3[3] + u3 | 0, n3[4] = n3[4] + c3 | 0, n3[5] = n3[5] + h3 | 0, n3[6] = n3[6] + l3 | 0, n3[7] = n3[7] + f3 | 0;
|
|
7913
7764
|
}, _doFinalize: function e3() {
|
|
7914
7765
|
var r4 = this._data, n3 = r4.words, i3 = 8 * this._nDataBytes, o3 = 8 * r4.sigBytes;
|
|
7915
7766
|
return n3[o3 >>> 5] |= 128 << 24 - o3 % 32, n3[14 + (o3 + 64 >>> 9 << 4)] = t3.floor(i3 / 4294967296), n3[15 + (o3 + 64 >>> 9 << 4)] = i3, r4.sigBytes = 4 * n3.length, this._process(), this._hash;
|
|
@@ -7927,7 +7778,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
7927
7778
|
o2 = o2.SHA512 = r3.extend({ _doReset: function t4() {
|
|
7928
7779
|
this._hash = new i2.init([new n2.init(1779033703, 4089235720), new n2.init(3144134277, 2227873595), new n2.init(1013904242, 4271175723), new n2.init(2773480762, 1595750129), new n2.init(1359893119, 2917565137), new n2.init(2600822924, 725511199), new n2.init(528734635, 4215389547), new n2.init(1541459225, 327033209)]);
|
|
7929
7780
|
}, _doProcessBlock: function t4(e3, r4) {
|
|
7930
|
-
for (var n3 = (
|
|
7781
|
+
for (var n3 = (f2 = this._hash.words)[0], i3 = f2[1], o3 = f2[2], u3 = f2[3], c2 = f2[4], h2 = f2[5], l2 = f2[6], f2 = f2[7], g2 = n3.high, d2 = n3.low, p2 = i3.high, v2 = i3.low, y2 = o3.high, m2 = o3.low, _2 = u3.high, S2 = u3.low, b2 = c2.high, w2 = c2.low, F2 = h2.high, E = h2.low, x = l2.high, A = l2.low, k2 = f2.high, P2 = f2.low, C2 = g2, T2 = d2, R2 = p2, I2 = v2, D2 = y2, L2 = m2, N2 = _2, U2 = S2, B2 = b2, O2 = w2, j2 = F2, M2 = E, H2 = x, V2 = A, K2 = k2, q2 = P2, J = 0; 80 > J; J++) {
|
|
7931
7782
|
var W = a2[J];
|
|
7932
7783
|
if (16 > J)
|
|
7933
7784
|
var z = W.high = 0 | e3[r4 + 2 * J], Y = W.low = 0 | e3[r4 + 2 * J + 1];
|
|
@@ -7941,7 +7792,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
7941
7792
|
var et = T2 & I2 ^ T2 & L2 ^ I2 & L2, rt = (G = (C2 >>> 28 | T2 << 4) ^ (C2 << 30 | T2 >>> 2) ^ (C2 << 25 | T2 >>> 7), X = (T2 >>> 28 | C2 << 4) ^ (T2 << 30 | C2 >>> 2) ^ (T2 << 25 | C2 >>> 7), ($ = s2[J]).high), nt = $.low;
|
|
7942
7793
|
Z = K2 + ((B2 >>> 14 | O2 << 18) ^ (B2 >>> 18 | O2 << 14) ^ (B2 << 23 | O2 >>> 9)) + (($ = q2 + ((O2 >>> 14 | B2 << 18) ^ (O2 >>> 18 | B2 << 14) ^ (O2 << 23 | B2 >>> 9))) >>> 0 < q2 >>> 0 ? 1 : 0), K2 = H2, q2 = V2, H2 = j2, V2 = M2, j2 = B2, M2 = O2, B2 = N2 + (Z = (Z = (Z = Z + Q + (($ = $ + tt) >>> 0 < tt >>> 0 ? 1 : 0)) + rt + (($ = $ + nt) >>> 0 < nt >>> 0 ? 1 : 0)) + z + (($ = $ + Y) >>> 0 < Y >>> 0 ? 1 : 0)) + ((O2 = U2 + $ | 0) >>> 0 < U2 >>> 0 ? 1 : 0) | 0, N2 = D2, U2 = L2, D2 = R2, L2 = I2, R2 = C2, I2 = T2, C2 = Z + (W = G + W + ((Y = X + et) >>> 0 < X >>> 0 ? 1 : 0)) + ((T2 = $ + Y | 0) >>> 0 < $ >>> 0 ? 1 : 0) | 0;
|
|
7943
7794
|
}
|
|
7944
|
-
d2 = n3.low = d2 + T2, n3.high = g2 + C2 + (d2 >>> 0 < T2 >>> 0 ? 1 : 0), v2 = i3.low = v2 + I2, i3.high = p2 + R2 + (v2 >>> 0 < I2 >>> 0 ? 1 : 0), m2 = o3.low = m2 + L2, o3.high = y2 + D2 + (m2 >>> 0 < L2 >>> 0 ? 1 : 0), S2 = u3.low = S2 + U2, u3.high = _2 + N2 + (S2 >>> 0 < U2 >>> 0 ? 1 : 0), w2 = c2.low = w2 + O2, c2.high = b2 + B2 + (w2 >>> 0 < O2 >>> 0 ? 1 : 0), E = h2.low = E + M2, h2.high = F2 + j2 + (E >>> 0 < M2 >>> 0 ? 1 : 0), A = l2.low = A + V2, l2.high = x + H2 + (A >>> 0 < V2 >>> 0 ? 1 : 0), P2 =
|
|
7795
|
+
d2 = n3.low = d2 + T2, n3.high = g2 + C2 + (d2 >>> 0 < T2 >>> 0 ? 1 : 0), v2 = i3.low = v2 + I2, i3.high = p2 + R2 + (v2 >>> 0 < I2 >>> 0 ? 1 : 0), m2 = o3.low = m2 + L2, o3.high = y2 + D2 + (m2 >>> 0 < L2 >>> 0 ? 1 : 0), S2 = u3.low = S2 + U2, u3.high = _2 + N2 + (S2 >>> 0 < U2 >>> 0 ? 1 : 0), w2 = c2.low = w2 + O2, c2.high = b2 + B2 + (w2 >>> 0 < O2 >>> 0 ? 1 : 0), E = h2.low = E + M2, h2.high = F2 + j2 + (E >>> 0 < M2 >>> 0 ? 1 : 0), A = l2.low = A + V2, l2.high = x + H2 + (A >>> 0 < V2 >>> 0 ? 1 : 0), P2 = f2.low = P2 + q2, f2.high = k2 + K2 + (P2 >>> 0 < q2 >>> 0 ? 1 : 0);
|
|
7945
7796
|
}, _doFinalize: function t4() {
|
|
7946
7797
|
var e3 = this._data, r4 = e3.words, n3 = 8 * this._nDataBytes, i3 = 8 * e3.sigBytes;
|
|
7947
7798
|
return r4[i3 >>> 5] |= 128 << 24 - i3 % 32, r4[30 + (i3 + 128 >>> 10 << 5)] = Math.floor(n3 / 4294967296), r4[31 + (i3 + 128 >>> 10 << 5)] = n3, e3.sigBytes = 4 * r4.length, this._process(), this._hash.toX32();
|
|
@@ -8194,11 +8045,11 @@ var require_oidc_client_min = __commonJS({
|
|
|
8194
8045
|
u2 > 0 ? (n2.lShiftTo(u2, o2), i2.lShiftTo(u2, r3)) : (n2.copyTo(o2), i2.copyTo(r3));
|
|
8195
8046
|
var c2 = o2.t, h2 = o2[c2 - 1];
|
|
8196
8047
|
if (0 != h2) {
|
|
8197
|
-
var l2 = h2 * (1 << this.F1) + (c2 > 1 ? o2[c2 - 2] >> this.F2 : 0),
|
|
8048
|
+
var l2 = h2 * (1 << this.F1) + (c2 > 1 ? o2[c2 - 2] >> this.F2 : 0), f2 = this.FV / l2, g2 = (1 << this.F1) / l2, d2 = 1 << this.F2, p2 = r3.t, v2 = p2 - c2, y2 = null == e2 ? F() : e2;
|
|
8198
8049
|
for (o2.dlShiftTo(v2, y2), r3.compareTo(y2) >= 0 && (r3[r3.t++] = 1, r3.subTo(y2, r3)), w.ONE.dlShiftTo(c2, y2), y2.subTo(o2, o2); o2.t < c2; )
|
|
8199
8050
|
o2[o2.t++] = 0;
|
|
8200
8051
|
for (; --v2 >= 0; ) {
|
|
8201
|
-
var m2 = r3[--p2] == h2 ? this.DM : Math.floor(r3[p2] *
|
|
8052
|
+
var m2 = r3[--p2] == h2 ? this.DM : Math.floor(r3[p2] * f2 + (r3[p2 - 1] + d2) * g2);
|
|
8202
8053
|
if ((r3[p2] += o2.am(0, m2, r3, v2, 0, c2)) < m2)
|
|
8203
8054
|
for (o2.dlShiftTo(v2, y2), r3.subTo(y2, r3); r3[p2] < --m2; )
|
|
8204
8055
|
r3.subTo(y2, r3);
|
|
@@ -8518,7 +8369,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
8518
8369
|
for (n2.sqrTo(s2[1], h2); a2 <= c2; )
|
|
8519
8370
|
s2[a2] = F(), n2.mulTo(h2, s2[a2 - 2], s2[a2]), a2 += 2;
|
|
8520
8371
|
}
|
|
8521
|
-
var l2,
|
|
8372
|
+
var l2, f2, g2 = t3.t - 1, d2 = true, p2 = F();
|
|
8522
8373
|
for (i2 = D(t3[g2]) - 1; g2 >= 0; ) {
|
|
8523
8374
|
for (i2 >= u2 ? l2 = t3[g2] >> i2 - u2 & c2 : (l2 = (t3[g2] & (1 << i2 + 1) - 1) << u2 - i2, g2 > 0 && (l2 |= t3[g2 - 1] >> this.DB + i2 - u2)), a2 = r3; 0 == (1 & l2); )
|
|
8524
8375
|
l2 >>= 1, --a2;
|
|
@@ -8527,10 +8378,10 @@ var require_oidc_client_min = __commonJS({
|
|
|
8527
8378
|
else {
|
|
8528
8379
|
for (; a2 > 1; )
|
|
8529
8380
|
n2.sqrTo(o2, p2), n2.sqrTo(p2, o2), a2 -= 2;
|
|
8530
|
-
a2 > 0 ? n2.sqrTo(o2, p2) : (
|
|
8381
|
+
a2 > 0 ? n2.sqrTo(o2, p2) : (f2 = o2, o2 = p2, p2 = f2), n2.mulTo(p2, s2[l2], o2);
|
|
8531
8382
|
}
|
|
8532
8383
|
for (; g2 >= 0 && 0 == (t3[g2] & 1 << i2); )
|
|
8533
|
-
n2.sqrTo(o2, p2),
|
|
8384
|
+
n2.sqrTo(o2, p2), f2 = o2, o2 = p2, p2 = f2, --i2 < 0 && (i2 = this.DB - 1, --g2);
|
|
8534
8385
|
}
|
|
8535
8386
|
return n2.revert(o2);
|
|
8536
8387
|
}, w.prototype.modInverse = function be(t3) {
|
|
@@ -8696,13 +8547,13 @@ var require_oidc_client_min = __commonJS({
|
|
|
8696
8547
|
u2 += "\0";
|
|
8697
8548
|
var c2 = r4("") + u2 + "" + t4, h2 = new Array(n3);
|
|
8698
8549
|
new Be().nextBytes(h2);
|
|
8699
|
-
var l2 = je(h2, c2.length, r4),
|
|
8550
|
+
var l2 = je(h2, c2.length, r4), f2 = [];
|
|
8700
8551
|
for (a2 = 0; a2 < c2.length; a2 += 1)
|
|
8701
|
-
|
|
8702
|
-
var g2 = je(
|
|
8552
|
+
f2[a2] = c2.charCodeAt(a2) ^ l2.charCodeAt(a2);
|
|
8553
|
+
var g2 = je(f2, h2.length, r4), d2 = [0];
|
|
8703
8554
|
for (a2 = 0; a2 < h2.length; a2 += 1)
|
|
8704
8555
|
d2[a2 + 1] = h2[a2] ^ g2.charCodeAt(a2);
|
|
8705
|
-
return new w(d2.concat(
|
|
8556
|
+
return new w(d2.concat(f2));
|
|
8706
8557
|
}(t3, this.n.bitLength() + 7 >> 3, e2, r3);
|
|
8707
8558
|
if (null == n2)
|
|
8708
8559
|
return null;
|
|
@@ -8745,8 +8596,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
8745
8596
|
var e2 = t3.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t3.z)).mod(this.curve.q), r3 = t3.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t3.z)).mod(this.curve.q);
|
|
8746
8597
|
if (w.ZERO.equals(r3))
|
|
8747
8598
|
return w.ZERO.equals(e2) ? this.twice() : this.curve.getInfinity();
|
|
8748
|
-
var n2 = new w("3"), i2 = this.x.toBigInteger(), o2 = this.y.toBigInteger(), s2 = (t3.x.toBigInteger(), t3.y.toBigInteger(), r3.square()), a2 = s2.multiply(r3), u2 = i2.multiply(s2), c2 = e2.square().multiply(this.z), h2 = c2.subtract(u2.shiftLeft(1)).multiply(t3.z).subtract(a2).multiply(r3).mod(this.curve.q), l2 = u2.multiply(n2).multiply(e2).subtract(o2.multiply(a2)).subtract(c2.multiply(e2)).multiply(t3.z).add(e2.multiply(a2)).mod(this.curve.q),
|
|
8749
|
-
return new Ve(this.curve, this.curve.fromBigInteger(h2), this.curve.fromBigInteger(l2),
|
|
8599
|
+
var n2 = new w("3"), i2 = this.x.toBigInteger(), o2 = this.y.toBigInteger(), s2 = (t3.x.toBigInteger(), t3.y.toBigInteger(), r3.square()), a2 = s2.multiply(r3), u2 = i2.multiply(s2), c2 = e2.square().multiply(this.z), h2 = c2.subtract(u2.shiftLeft(1)).multiply(t3.z).subtract(a2).multiply(r3).mod(this.curve.q), l2 = u2.multiply(n2).multiply(e2).subtract(o2.multiply(a2)).subtract(c2.multiply(e2)).multiply(t3.z).add(e2.multiply(a2)).mod(this.curve.q), f2 = a2.multiply(this.z).multiply(t3.z).mod(this.curve.q);
|
|
8600
|
+
return new Ve(this.curve, this.curve.fromBigInteger(h2), this.curve.fromBigInteger(l2), f2);
|
|
8750
8601
|
}, Ve.prototype.twice = function cr() {
|
|
8751
8602
|
if (this.isInfinity())
|
|
8752
8603
|
return this;
|
|
@@ -8886,14 +8737,14 @@ var require_oidc_client_min = __commonJS({
|
|
|
8886
8737
|
return function(r4, s2) {
|
|
8887
8738
|
var a2, u2, c2 = r4.match(t3), h2 = c2[0], l2 = false;
|
|
8888
8739
|
"{" === h2 ? a2 = {} : "[" === h2 ? a2 = [] : (a2 = [], l2 = true);
|
|
8889
|
-
for (var
|
|
8740
|
+
for (var f2 = [a2], d2 = 1 - l2, p2 = c2.length; d2 < p2; ++d2) {
|
|
8890
8741
|
var v2;
|
|
8891
8742
|
switch ((h2 = c2[d2]).charCodeAt(0)) {
|
|
8892
8743
|
default:
|
|
8893
|
-
(v2 =
|
|
8744
|
+
(v2 = f2[0])[u2 || v2.length] = +h2, u2 = void 0;
|
|
8894
8745
|
break;
|
|
8895
8746
|
case 34:
|
|
8896
|
-
if (-1 !== (h2 = h2.substring(1, h2.length - 1)).indexOf("\\") && (h2 = h2.replace(e2, n2)), v2 =
|
|
8747
|
+
if (-1 !== (h2 = h2.substring(1, h2.length - 1)).indexOf("\\") && (h2 = h2.replace(e2, n2)), v2 = f2[0], !u2) {
|
|
8897
8748
|
if (!(v2 instanceof Array)) {
|
|
8898
8749
|
u2 = h2 || i2;
|
|
8899
8750
|
break;
|
|
@@ -8903,32 +8754,32 @@ var require_oidc_client_min = __commonJS({
|
|
|
8903
8754
|
v2[u2] = h2, u2 = void 0;
|
|
8904
8755
|
break;
|
|
8905
8756
|
case 91:
|
|
8906
|
-
v2 =
|
|
8757
|
+
v2 = f2[0], f2.unshift(v2[u2 || v2.length] = []), u2 = void 0;
|
|
8907
8758
|
break;
|
|
8908
8759
|
case 93:
|
|
8909
|
-
|
|
8760
|
+
f2.shift();
|
|
8910
8761
|
break;
|
|
8911
8762
|
case 102:
|
|
8912
|
-
(v2 =
|
|
8763
|
+
(v2 = f2[0])[u2 || v2.length] = false, u2 = void 0;
|
|
8913
8764
|
break;
|
|
8914
8765
|
case 110:
|
|
8915
|
-
(v2 =
|
|
8766
|
+
(v2 = f2[0])[u2 || v2.length] = null, u2 = void 0;
|
|
8916
8767
|
break;
|
|
8917
8768
|
case 116:
|
|
8918
|
-
(v2 =
|
|
8769
|
+
(v2 = f2[0])[u2 || v2.length] = true, u2 = void 0;
|
|
8919
8770
|
break;
|
|
8920
8771
|
case 123:
|
|
8921
|
-
v2 =
|
|
8772
|
+
v2 = f2[0], f2.unshift(v2[u2 || v2.length] = {}), u2 = void 0;
|
|
8922
8773
|
break;
|
|
8923
8774
|
case 125:
|
|
8924
|
-
|
|
8775
|
+
f2.shift();
|
|
8925
8776
|
}
|
|
8926
8777
|
}
|
|
8927
8778
|
if (l2) {
|
|
8928
|
-
if (1 !==
|
|
8779
|
+
if (1 !== f2.length)
|
|
8929
8780
|
throw new Error();
|
|
8930
8781
|
a2 = a2[0];
|
|
8931
|
-
} else if (
|
|
8782
|
+
} else if (f2.length)
|
|
8932
8783
|
throw new Error();
|
|
8933
8784
|
if (s2) {
|
|
8934
8785
|
a2 = function t4(e3, r5) {
|
|
@@ -8969,7 +8820,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
8969
8820
|
}, this.getPEMStringFromHex = function(t3, e2) {
|
|
8970
8821
|
return jr(t3, e2);
|
|
8971
8822
|
}, this.newObject = function(t3) {
|
|
8972
|
-
var e2 = Sr.asn1, r3 = e2.ASN1Object, n2 = e2.DERBoolean, i2 = e2.DERInteger, o2 = e2.DERBitString, s2 = e2.DEROctetString, a2 = e2.DERNull, u2 = e2.DERObjectIdentifier, c2 = e2.DEREnumerated, h2 = e2.DERUTF8String, l2 = e2.DERNumericString,
|
|
8823
|
+
var e2 = Sr.asn1, r3 = e2.ASN1Object, n2 = e2.DERBoolean, i2 = e2.DERInteger, o2 = e2.DERBitString, s2 = e2.DEROctetString, a2 = e2.DERNull, u2 = e2.DERObjectIdentifier, c2 = e2.DEREnumerated, h2 = e2.DERUTF8String, l2 = e2.DERNumericString, f2 = e2.DERPrintableString, g2 = e2.DERTeletexString, d2 = e2.DERIA5String, p2 = e2.DERUTCTime, v2 = e2.DERGeneralizedTime, y2 = e2.DERVisibleString, m2 = e2.DERBMPString, _2 = e2.DERSequence, S2 = e2.DERSet, b2 = e2.DERTaggedObject, w2 = e2.ASN1Util.newObject;
|
|
8973
8824
|
if (t3 instanceof e2.ASN1Object)
|
|
8974
8825
|
return t3;
|
|
8975
8826
|
var F2 = Object.keys(t3);
|
|
@@ -8997,7 +8848,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
8997
8848
|
if ("numstr" == E)
|
|
8998
8849
|
return new l2(t3[E]);
|
|
8999
8850
|
if ("prnstr" == E)
|
|
9000
|
-
return new
|
|
8851
|
+
return new f2(t3[E]);
|
|
9001
8852
|
if ("telstr" == E)
|
|
9002
8853
|
return new g2(t3[E]);
|
|
9003
8854
|
if ("ia5str" == E)
|
|
@@ -9592,24 +9443,24 @@ var require_oidc_client_min = __commonJS({
|
|
|
9592
9443
|
void 0 === e2 && (e2 = { ommit_long_octet: 32 }), void 0 === r3 && (r3 = 0), void 0 === n2 && (n2 = "");
|
|
9593
9444
|
var h2, l2 = e2.ommit_long_octet;
|
|
9594
9445
|
if ("01" == (h2 = u2.substr(r3, 2)))
|
|
9595
|
-
return "00" == (
|
|
9446
|
+
return "00" == (f2 = o2(u2, r3)) ? n2 + "BOOLEAN FALSE\n" : n2 + "BOOLEAN TRUE\n";
|
|
9596
9447
|
if ("02" == h2)
|
|
9597
|
-
return n2 + "INTEGER " + c2(
|
|
9448
|
+
return n2 + "INTEGER " + c2(f2 = o2(u2, r3), l2) + "\n";
|
|
9598
9449
|
if ("03" == h2) {
|
|
9599
|
-
var
|
|
9600
|
-
if (i2.isASN1HEX(
|
|
9450
|
+
var f2 = o2(u2, r3);
|
|
9451
|
+
if (i2.isASN1HEX(f2.substr(2))) {
|
|
9601
9452
|
var g2 = n2 + "BITSTRING, encapsulates\n";
|
|
9602
|
-
return g2 += s2(
|
|
9453
|
+
return g2 += s2(f2.substr(2), e2, 0, n2 + " ");
|
|
9603
9454
|
}
|
|
9604
|
-
return n2 + "BITSTRING " + c2(
|
|
9455
|
+
return n2 + "BITSTRING " + c2(f2, l2) + "\n";
|
|
9605
9456
|
}
|
|
9606
9457
|
if ("04" == h2) {
|
|
9607
|
-
|
|
9608
|
-
if (i2.isASN1HEX(
|
|
9458
|
+
f2 = o2(u2, r3);
|
|
9459
|
+
if (i2.isASN1HEX(f2)) {
|
|
9609
9460
|
g2 = n2 + "OCTETSTRING, encapsulates\n";
|
|
9610
|
-
return g2 += s2(
|
|
9461
|
+
return g2 += s2(f2, e2, 0, n2 + " ");
|
|
9611
9462
|
}
|
|
9612
|
-
return n2 + "OCTETSTRING " + c2(
|
|
9463
|
+
return n2 + "OCTETSTRING " + c2(f2, l2) + "\n";
|
|
9613
9464
|
}
|
|
9614
9465
|
if ("05" == h2)
|
|
9615
9466
|
return n2 + "NULL\n";
|
|
@@ -9663,12 +9514,12 @@ var require_oidc_client_min = __commonJS({
|
|
|
9663
9514
|
g2 += s2(u2, e2, b2[S2], n2 + " ");
|
|
9664
9515
|
return g2;
|
|
9665
9516
|
}
|
|
9666
|
-
|
|
9667
|
-
if (Fr.isASN1HEX(
|
|
9517
|
+
f2 = o2(u2, r3);
|
|
9518
|
+
if (Fr.isASN1HEX(f2)) {
|
|
9668
9519
|
var g2 = n2 + "[" + w2 + "]\n";
|
|
9669
|
-
return g2 += s2(
|
|
9520
|
+
return g2 += s2(f2, e2, 0, n2 + " ");
|
|
9670
9521
|
}
|
|
9671
|
-
return ("68747470" ==
|
|
9522
|
+
return ("68747470" == f2.substr(0, 8) || "subjectAltName" === e2.x509ExtName && 2 == w2) && (f2 = Dr(f2)), g2 = n2 + "[" + w2 + "] " + f2 + "\n";
|
|
9672
9523
|
}
|
|
9673
9524
|
return n2 + "UNKNOWN(" + h2 + ") " + o2(u2, r3) + "\n";
|
|
9674
9525
|
}, Fr.isContextTag = function(t3, e2) {
|
|
@@ -9718,11 +9569,11 @@ var require_oidc_client_min = __commonJS({
|
|
|
9718
9569
|
throw new Error("not least zeros for DER INTEGER");
|
|
9719
9570
|
}
|
|
9720
9571
|
if (32 & parseInt(c2, 16)) {
|
|
9721
|
-
for (var l2 = o2.getVblen(t3, e2),
|
|
9722
|
-
|
|
9572
|
+
for (var l2 = o2.getVblen(t3, e2), f2 = 0, g2 = o2.getChildIdx(t3, e2), d2 = 0; d2 < g2.length; d2++) {
|
|
9573
|
+
f2 += o2.getTLV(t3, g2[d2]).length, o2.checkStrictDER(t3, g2[d2], r3, n2, i2);
|
|
9723
9574
|
}
|
|
9724
|
-
if (2 * l2 !=
|
|
9725
|
-
throw new Error("sum of children's TLV length and L unmatch: " + 2 * l2 + "!=" +
|
|
9575
|
+
if (2 * l2 != f2)
|
|
9576
|
+
throw new Error("sum of children's TLV length and L unmatch: " + 2 * l2 + "!=" + f2);
|
|
9726
9577
|
}
|
|
9727
9578
|
}, Fr.oidname = function(t3) {
|
|
9728
9579
|
var e2 = Sr.asn1;
|
|
@@ -10263,12 +10114,12 @@ var require_oidc_client_min = __commonJS({
|
|
|
10263
10114
|
if (void 0 !== e2[n2] && (n2 = e2[r4]), void 0 !== t3[n2])
|
|
10264
10115
|
return t3[n2];
|
|
10265
10116
|
throw "unregistered EC curve name: " + n2;
|
|
10266
|
-
}, this.regist = function(n2, i2, o2, s2, a2, u2, c2, h2, l2,
|
|
10117
|
+
}, this.regist = function(n2, i2, o2, s2, a2, u2, c2, h2, l2, f2, g2, d2) {
|
|
10267
10118
|
t3[n2] = {};
|
|
10268
10119
|
var p2 = r3(o2), v2 = r3(s2), y2 = r3(a2), m2 = r3(u2), _2 = r3(c2), S2 = new Ke(p2, v2, y2), b2 = S2.decodePointHex("04" + h2 + l2);
|
|
10269
10120
|
t3[n2].name = n2, t3[n2].keylen = i2, t3[n2].curve = S2, t3[n2].G = b2, t3[n2].n = m2, t3[n2].h = _2, t3[n2].oid = g2, t3[n2].info = d2;
|
|
10270
|
-
for (var w2 = 0; w2 <
|
|
10271
|
-
e2[
|
|
10121
|
+
for (var w2 = 0; w2 < f2.length; w2++)
|
|
10122
|
+
e2[f2[w2]] = n2;
|
|
10272
10123
|
};
|
|
10273
10124
|
}(), Sr.crypto.ECParameterDB.regist("secp128r1", 128, "FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF", "FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC", "E87579C11079F43DD824993C2CEE5ED3", "FFFFFFFE0000000075A30D1B9038A115", "1", "161FF7528B899B2D0C28607CA52C5B86", "CF5AC8395BAFEB13C02DA292DDED7A83", [], "", "secp128r1 : SECG curve over a 128 bit prime field"), Sr.crypto.ECParameterDB.regist("secp160k1", 160, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73", "0", "7", "0100000000000000000001B8FA16DFAB9ACA16B6B3", "1", "3B4C382CE37AA192A4019E763036F4F5DD4D7EBB", "938CF935318FDCED6BC28286531733C3F03C4FEE", [], "", "secp160k1 : SECG curve over a 160 bit prime field"), Sr.crypto.ECParameterDB.regist("secp160r1", 160, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC", "1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45", "0100000000000000000001F4C8F927AED3CA752257", "1", "4A96B5688EF573284664698968C38BB913CBFC82", "23A628553168947D59DCC912042351377AC5FB32", [], "", "secp160r1 : SECG curve over a 160 bit prime field"), Sr.crypto.ECParameterDB.regist("secp192k1", 192, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37", "0", "3", "FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D", "1", "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D", "9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D", []), Sr.crypto.ECParameterDB.regist("secp192r1", 192, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC", "64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1", "FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831", "1", "188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012", "07192B95FFC8DA78631011ED6B24CDD573F977A11E794811", []), Sr.crypto.ECParameterDB.regist("secp224r1", 224, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE", "B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4", "FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D", "1", "B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21", "BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34", []), Sr.crypto.ECParameterDB.regist("secp256k1", 256, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F", "0", "7", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141", "1", "79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798", "483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8", []), Sr.crypto.ECParameterDB.regist("secp256r1", 256, "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF", "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC", "5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B", "FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551", "1", "6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296", "4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5", ["NIST P-256", "P-256", "prime256v1"]), Sr.crypto.ECParameterDB.regist("secp384r1", 384, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC", "B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973", "1", "AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7", "3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f", ["NIST P-384", "P-384"]), Sr.crypto.ECParameterDB.regist("secp521r1", 521, "1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC", "051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00", "1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409", "1", "C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66", "011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650", ["NIST P-521", "P-521"]);
|
|
10274
10125
|
var tn = function() {
|
|
@@ -10311,8 +10162,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
10311
10162
|
if (null != h2 && l2.update(h2), l2.update(a3), l2.update(s3), h2 = l2.finalize(), (c2 += v.enc.Hex.stringify(h2)).length >= 2 * u2)
|
|
10312
10163
|
break;
|
|
10313
10164
|
}
|
|
10314
|
-
var
|
|
10315
|
-
return
|
|
10165
|
+
var f2 = {};
|
|
10166
|
+
return f2.keyhex = c2.substr(0, 2 * i2[e3].keylen), f2.ivhex = c2.substr(2 * i2[e3].keylen, 2 * i2[e3].ivlen), f2;
|
|
10316
10167
|
}, a2 = function t4(e3, r4, n3, o3) {
|
|
10317
10168
|
var s3 = v.enc.Base64.parse(e3), a3 = v.enc.Hex.stringify(s3);
|
|
10318
10169
|
return (0, i2[r4].proc)(a3, n3, o3);
|
|
@@ -10367,11 +10218,11 @@ var require_oidc_client_min = __commonJS({
|
|
|
10367
10218
|
if (l2.length < 2)
|
|
10368
10219
|
throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: " + l2.length);
|
|
10369
10220
|
o3.pbkdf2Salt = i3(e3, l2[0]);
|
|
10370
|
-
var
|
|
10221
|
+
var f2 = i3(e3, l2[1]);
|
|
10371
10222
|
try {
|
|
10372
|
-
o3.pbkdf2Iter = parseInt(
|
|
10223
|
+
o3.pbkdf2Iter = parseInt(f2, 16);
|
|
10373
10224
|
} catch (t5) {
|
|
10374
|
-
throw new Error("malformed format pbkdf2Iter: " +
|
|
10225
|
+
throw new Error("malformed format pbkdf2Iter: " + f2);
|
|
10375
10226
|
}
|
|
10376
10227
|
return o3;
|
|
10377
10228
|
}, getPBKDF2KeyHexFromParam: function t4(e3, r4) {
|
|
@@ -10487,13 +10338,13 @@ var require_oidc_client_min = __commonJS({
|
|
|
10487
10338
|
if ("RSA" === t3.kty && void 0 !== t3.n && void 0 !== t3.e && void 0 !== t3.d)
|
|
10488
10339
|
return (P2 = new u2()).setPrivate(Rr(t3.n), Rr(t3.e), Rr(t3.d)), P2;
|
|
10489
10340
|
if ("EC" === t3.kty && void 0 !== t3.crv && void 0 !== t3.x && void 0 !== t3.y && void 0 === t3.d) {
|
|
10490
|
-
var l2 = (k2 = new s2({ curve: t3.crv })).ecparams.keylen / 4,
|
|
10491
|
-
return k2.setPublicKeyHex(
|
|
10341
|
+
var l2 = (k2 = new s2({ curve: t3.crv })).ecparams.keylen / 4, f2 = "04" + ("0000000000" + Rr(t3.x)).slice(-l2) + ("0000000000" + Rr(t3.y)).slice(-l2);
|
|
10342
|
+
return k2.setPublicKeyHex(f2), k2;
|
|
10492
10343
|
}
|
|
10493
10344
|
if ("EC" === t3.kty && void 0 !== t3.crv && void 0 !== t3.x && void 0 !== t3.y && void 0 !== t3.d) {
|
|
10494
|
-
l2 = (k2 = new s2({ curve: t3.crv })).ecparams.keylen / 4,
|
|
10345
|
+
l2 = (k2 = new s2({ curve: t3.crv })).ecparams.keylen / 4, f2 = "04" + ("0000000000" + Rr(t3.x)).slice(-l2) + ("0000000000" + Rr(t3.y)).slice(-l2);
|
|
10495
10346
|
var g2 = ("0000000000" + Rr(t3.d)).slice(-l2);
|
|
10496
|
-
return k2.setPublicKeyHex(
|
|
10347
|
+
return k2.setPublicKeyHex(f2), k2.setPrivateKeyHex(g2), k2;
|
|
10497
10348
|
}
|
|
10498
10349
|
if ("pkcs5prv" === r3) {
|
|
10499
10350
|
var d2, p2 = t3, v2 = Fr;
|
|
@@ -10565,7 +10416,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
10565
10416
|
}
|
|
10566
10417
|
throw new Error("unknown algorithm: " + t3);
|
|
10567
10418
|
}, tn.getPEM = function(t3, e2, r3, n2, i2, o2) {
|
|
10568
|
-
var s2 = Sr, a2 = s2.asn1, u2 = a2.DERObjectIdentifier, c2 = a2.DERInteger, h2 = a2.ASN1Util.newObject, l2 = a2.x509.SubjectPublicKeyInfo,
|
|
10419
|
+
var s2 = Sr, a2 = s2.asn1, u2 = a2.DERObjectIdentifier, c2 = a2.DERInteger, h2 = a2.ASN1Util.newObject, l2 = a2.x509.SubjectPublicKeyInfo, f2 = s2.crypto, g2 = f2.DSA, d2 = f2.ECDSA, p2 = Me;
|
|
10569
10420
|
function y2(t4) {
|
|
10570
10421
|
return h2({ seq: [{ int: 0 }, { int: { bigint: t4.n } }, { int: t4.e }, { int: { bigint: t4.d } }, { int: { bigint: t4.p } }, { int: { bigint: t4.q } }, { int: { bigint: t4.dmp1 } }, { int: { bigint: t4.dmq1 } }, { int: { bigint: t4.coeff } }] });
|
|
10571
10422
|
}
|
|
@@ -10724,7 +10575,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
10724
10575
|
return [];
|
|
10725
10576
|
}
|
|
10726
10577
|
function on(t3) {
|
|
10727
|
-
var e2, r3 = Fr, n2 = r3.getChildIdx, i2 = r3.getV, o2 = r3.getTLV, s2 = r3.getVbyList, a2 = r3.getVbyListEx, u2 = r3.getTLVbyList, c2 = r3.getTLVbyListEx, h2 = r3.getIdxbyList, l2 = r3.getIdxbyListEx,
|
|
10578
|
+
var e2, r3 = Fr, n2 = r3.getChildIdx, i2 = r3.getV, o2 = r3.getTLV, s2 = r3.getVbyList, a2 = r3.getVbyListEx, u2 = r3.getTLVbyList, c2 = r3.getTLVbyListEx, h2 = r3.getIdxbyList, l2 = r3.getIdxbyListEx, f2 = r3.getVidx, g2 = r3.getInt, d2 = r3.oidname, p2 = r3.hextooidstr, v2 = Mr;
|
|
10728
10579
|
try {
|
|
10729
10580
|
e2 = Sr.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;
|
|
10730
10581
|
} catch (t4) {
|
|
@@ -10803,7 +10654,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
10803
10654
|
var l3 = { critical: false }, g3 = 0;
|
|
10804
10655
|
3 === n2(a3, o3[c3]).length && (l3.critical = true, g3 = 1), l3.oid = r3.hextooidstr(s2(a3, o3[c3], [0], "06"));
|
|
10805
10656
|
var d3 = h2(a3, o3[c3], [1 + g3]);
|
|
10806
|
-
l3.vidx =
|
|
10657
|
+
l3.vidx = f2(a3, d3), this.aExtInfo.push(l3);
|
|
10807
10658
|
}
|
|
10808
10659
|
}, this.getExtInfo = function(t4) {
|
|
10809
10660
|
var e3 = this.aExtInfo, r4 = t4;
|
|
@@ -11237,8 +11088,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
11237
11088
|
else if ("subjectKeyIdentifier" === c3)
|
|
11238
11089
|
t4 += " " + this.getExtSubjectKeyIdentifier().kid.hex + "\n";
|
|
11239
11090
|
else if ("authorityKeyIdentifier" === c3) {
|
|
11240
|
-
var
|
|
11241
|
-
void 0 !==
|
|
11091
|
+
var f3 = this.getExtAuthorityKeyIdentifier();
|
|
11092
|
+
void 0 !== f3.kid && (t4 += " kid=" + f3.kid.hex + "\n");
|
|
11242
11093
|
} else {
|
|
11243
11094
|
if ("extKeyUsage" === c3)
|
|
11244
11095
|
t4 += " " + this.getExtExtKeyUsage().array.join(", ") + "\n";
|
|
@@ -11286,9 +11137,9 @@ var require_oidc_client_min = __commonJS({
|
|
|
11286
11137
|
var h2 = Lr(u2(Nr("\0\0\0\0\0\0\0\0" + i2 + c2))), l2 = [];
|
|
11287
11138
|
for (n2 = 0; n2 < a2 - r3 - o2 - 2; n2 += 1)
|
|
11288
11139
|
l2[n2] = 0;
|
|
11289
|
-
var
|
|
11290
|
-
for (n2 = 0; n2 <
|
|
11291
|
-
d2[n2] =
|
|
11140
|
+
var f2 = String.fromCharCode.apply(String, l2) + "" + c2, g2 = rn(h2, f2.length, u2), d2 = [];
|
|
11141
|
+
for (n2 = 0; n2 < f2.length; n2 += 1)
|
|
11142
|
+
d2[n2] = f2.charCodeAt(n2) ^ g2.charCodeAt(n2);
|
|
11292
11143
|
var p2 = 65280 >> 8 * a2 - s2 & 255;
|
|
11293
11144
|
for (d2[0] &= ~p2, n2 = 0; n2 < o2; n2++)
|
|
11294
11145
|
d2.push(h2.charCodeAt(n2));
|
|
@@ -11346,12 +11197,12 @@ var require_oidc_client_min = __commonJS({
|
|
|
11346
11197
|
l2.unshift(0);
|
|
11347
11198
|
if (188 !== l2[h2 - 1])
|
|
11348
11199
|
throw new Error("encoded message does not end in 0xbc");
|
|
11349
|
-
var
|
|
11350
|
-
if (0 != (
|
|
11200
|
+
var f2 = (l2 = String.fromCharCode.apply(String, l2)).substr(0, h2 - u2 - 1), g2 = l2.substr(f2.length, u2), d2 = 65280 >> 8 * h2 - c2 & 255;
|
|
11201
|
+
if (0 != (f2.charCodeAt(0) & d2))
|
|
11351
11202
|
throw new Error("bits beyond keysize not zero");
|
|
11352
|
-
var p2 = rn(g2,
|
|
11353
|
-
for (i2 = 0; i2 <
|
|
11354
|
-
v2[i2] =
|
|
11203
|
+
var p2 = rn(g2, f2.length, s2), v2 = [];
|
|
11204
|
+
for (i2 = 0; i2 < f2.length; i2 += 1)
|
|
11205
|
+
v2[i2] = f2.charCodeAt(i2) ^ p2.charCodeAt(i2);
|
|
11355
11206
|
v2[0] &= ~d2;
|
|
11356
11207
|
var y2 = h2 - u2 - n2 - 2;
|
|
11357
11208
|
for (i2 = 0; i2 < y2; i2 += 1)
|
|
@@ -11408,7 +11259,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
11408
11259
|
}
|
|
11409
11260
|
};
|
|
11410
11261
|
}, Sr.jws.JWS.sign = function(t3, e2, r3, n2, i2) {
|
|
11411
|
-
var o2, s2, a2, u2 = Sr, c2 = u2.jws.JWS, h2 = c2.readSafeJSONString, l2 = c2.isSafeJSONString,
|
|
11262
|
+
var o2, s2, a2, u2 = Sr, c2 = u2.jws.JWS, h2 = c2.readSafeJSONString, l2 = c2.isSafeJSONString, f2 = u2.crypto, d2 = (f2.ECDSA, f2.Mac), p2 = f2.Signature, v2 = JSON;
|
|
11412
11263
|
if ("string" != typeof e2 && "object" != (void 0 === e2 ? "undefined" : g(e2)))
|
|
11413
11264
|
throw "spHeader must be JSON string or object: " + e2;
|
|
11414
11265
|
if ("object" == (void 0 === e2 ? "undefined" : g(e2)) && (s2 = e2, o2 = v2.stringify(s2)), "string" == typeof e2) {
|
|
@@ -11444,7 +11295,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
11444
11295
|
var l2 = t3.split(".");
|
|
11445
11296
|
if (3 !== l2.length)
|
|
11446
11297
|
return false;
|
|
11447
|
-
var
|
|
11298
|
+
var f2 = l2[0] + "." + l2[1], d2 = Rr(l2[2]), p2 = s2(wr(l2[0])), v2 = null, y2 = null;
|
|
11448
11299
|
if (void 0 === p2.alg)
|
|
11449
11300
|
throw "algorithm not specified in header";
|
|
11450
11301
|
if ((y2 = (v2 = p2.alg).substr(0, 2), null != r3 && "[object Array]" === Object.prototype.toString.call(r3) && r3.length > 0) && -1 == (":" + r3.join(":") + ":").indexOf(":" + v2 + ":"))
|
|
@@ -11464,7 +11315,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
11464
11315
|
if (void 0 === e2)
|
|
11465
11316
|
throw "hexadecimal key shall be specified for HMAC";
|
|
11466
11317
|
var _2 = new c2({ alg: m2, pass: e2 });
|
|
11467
|
-
return _2.updateString(
|
|
11318
|
+
return _2.updateString(f2), d2 == _2.doFinal();
|
|
11468
11319
|
}
|
|
11469
11320
|
if (-1 != m2.indexOf("withECDSA")) {
|
|
11470
11321
|
var S2, b2 = null;
|
|
@@ -11473,35 +11324,35 @@ var require_oidc_client_min = __commonJS({
|
|
|
11473
11324
|
} catch (t4) {
|
|
11474
11325
|
return false;
|
|
11475
11326
|
}
|
|
11476
|
-
return (S2 = new h2({ alg: m2 })).init(e2), S2.updateString(
|
|
11327
|
+
return (S2 = new h2({ alg: m2 })).init(e2), S2.updateString(f2), S2.verify(b2);
|
|
11477
11328
|
}
|
|
11478
|
-
return (S2 = new h2({ alg: m2 })).init(e2), S2.updateString(
|
|
11329
|
+
return (S2 = new h2({ alg: m2 })).init(e2), S2.updateString(f2), S2.verify(d2);
|
|
11479
11330
|
}, Sr.jws.JWS.parse = function(t3) {
|
|
11480
11331
|
var e2, r3, n2, i2 = t3.split("."), o2 = {};
|
|
11481
11332
|
if (2 != i2.length && 3 != i2.length)
|
|
11482
11333
|
throw "malformed sJWS: wrong number of '.' splitted elements";
|
|
11483
11334
|
return e2 = i2[0], r3 = i2[1], 3 == i2.length && (n2 = i2[2]), o2.headerObj = Sr.jws.JWS.readSafeJSONString(wr(e2)), o2.payloadObj = Sr.jws.JWS.readSafeJSONString(wr(r3)), o2.headerPP = JSON.stringify(o2.headerObj, null, " "), null == o2.payloadObj ? o2.payloadPP = wr(r3) : o2.payloadPP = JSON.stringify(o2.payloadObj, null, " "), void 0 !== n2 && (o2.sigHex = Rr(n2)), o2;
|
|
11484
11335
|
}, Sr.jws.JWS.verifyJWT = function(t3, e2, r3) {
|
|
11485
|
-
var n2 = Sr.jws, i2 = n2.JWS, o2 = i2.readSafeJSONString, s2 = i2.inArray, a2 = i2.includedArray, u2 = t3.split("."), c2 = u2[0], h2 = u2[1], l2 = (Rr(u2[2]), o2(wr(c2))),
|
|
11336
|
+
var n2 = Sr.jws, i2 = n2.JWS, o2 = i2.readSafeJSONString, s2 = i2.inArray, a2 = i2.includedArray, u2 = t3.split("."), c2 = u2[0], h2 = u2[1], l2 = (Rr(u2[2]), o2(wr(c2))), f2 = o2(wr(h2));
|
|
11486
11337
|
if (void 0 === l2.alg)
|
|
11487
11338
|
return false;
|
|
11488
11339
|
if (void 0 === r3.alg)
|
|
11489
11340
|
throw "acceptField.alg shall be specified";
|
|
11490
11341
|
if (!s2(l2.alg, r3.alg))
|
|
11491
11342
|
return false;
|
|
11492
|
-
if (void 0 !==
|
|
11343
|
+
if (void 0 !== f2.iss && "object" === g(r3.iss) && !s2(f2.iss, r3.iss))
|
|
11493
11344
|
return false;
|
|
11494
|
-
if (void 0 !==
|
|
11345
|
+
if (void 0 !== f2.sub && "object" === g(r3.sub) && !s2(f2.sub, r3.sub))
|
|
11495
11346
|
return false;
|
|
11496
|
-
if (void 0 !==
|
|
11497
|
-
if ("string" == typeof
|
|
11498
|
-
if (!s2(
|
|
11347
|
+
if (void 0 !== f2.aud && "object" === g(r3.aud)) {
|
|
11348
|
+
if ("string" == typeof f2.aud) {
|
|
11349
|
+
if (!s2(f2.aud, r3.aud))
|
|
11499
11350
|
return false;
|
|
11500
|
-
} else if ("object" == g(
|
|
11351
|
+
} else if ("object" == g(f2.aud) && !a2(f2.aud, r3.aud))
|
|
11501
11352
|
return false;
|
|
11502
11353
|
}
|
|
11503
11354
|
var d2 = n2.IntDate.getNow();
|
|
11504
|
-
return void 0 !== r3.verifyAt && "number" == typeof r3.verifyAt && (d2 = r3.verifyAt), void 0 !== r3.gracePeriod && "number" == typeof r3.gracePeriod || (r3.gracePeriod = 0), !(void 0 !==
|
|
11355
|
+
return void 0 !== r3.verifyAt && "number" == typeof r3.verifyAt && (d2 = r3.verifyAt), void 0 !== r3.gracePeriod && "number" == typeof r3.gracePeriod || (r3.gracePeriod = 0), !(void 0 !== f2.exp && "number" == typeof f2.exp && f2.exp + r3.gracePeriod < d2) && (!(void 0 !== f2.nbf && "number" == typeof f2.nbf && d2 < f2.nbf - r3.gracePeriod) && (!(void 0 !== f2.iat && "number" == typeof f2.iat && d2 < f2.iat - r3.gracePeriod) && ((void 0 === f2.jti || void 0 === r3.jti || f2.jti === r3.jti) && !!i2.verify(t3, e2, r3.alg))));
|
|
11505
11356
|
}, Sr.jws.JWS.includedArray = function(t3, e2) {
|
|
11506
11357
|
var r3 = Sr.jws.JWS.inArray;
|
|
11507
11358
|
if (null === t3)
|
|
@@ -11721,7 +11572,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
11721
11572
|
if (e3.byteLength < r3 + (n3 || 0))
|
|
11722
11573
|
throw new RangeError("'length' is out of bounds");
|
|
11723
11574
|
e3 = void 0 === r3 && void 0 === n3 ? new Uint8Array(e3) : void 0 === n3 ? new Uint8Array(e3, r3) : new Uint8Array(e3, r3, n3);
|
|
11724
|
-
u.TYPED_ARRAY_SUPPORT ? (t4 = e3).__proto__ = u.prototype : t4 =
|
|
11575
|
+
u.TYPED_ARRAY_SUPPORT ? (t4 = e3).__proto__ = u.prototype : t4 = f(t4, e3);
|
|
11725
11576
|
return t4;
|
|
11726
11577
|
}(t3, e2, r2, n2) : "string" == typeof e2 ? function s2(t4, e3, r3) {
|
|
11727
11578
|
"string" == typeof r3 && "" !== r3 || (r3 = "utf8");
|
|
@@ -11739,9 +11590,9 @@ var require_oidc_client_min = __commonJS({
|
|
|
11739
11590
|
if ("undefined" != typeof ArrayBuffer && e3.buffer instanceof ArrayBuffer || "length" in e3)
|
|
11740
11591
|
return "number" != typeof e3.length || function n3(t5) {
|
|
11741
11592
|
return t5 != t5;
|
|
11742
|
-
}(e3.length) ? a(t4, 0) :
|
|
11593
|
+
}(e3.length) ? a(t4, 0) : f(t4, e3);
|
|
11743
11594
|
if ("Buffer" === e3.type && o(e3.data))
|
|
11744
|
-
return
|
|
11595
|
+
return f(t4, e3.data);
|
|
11745
11596
|
}
|
|
11746
11597
|
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
|
|
11747
11598
|
}(t3, e2);
|
|
@@ -11758,7 +11609,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
11758
11609
|
t3[r2] = 0;
|
|
11759
11610
|
return t3;
|
|
11760
11611
|
}
|
|
11761
|
-
function
|
|
11612
|
+
function f(t3, e2) {
|
|
11762
11613
|
var r2 = e2.length < 0 ? 0 : 0 | g(e2.length);
|
|
11763
11614
|
t3 = a(t3, r2);
|
|
11764
11615
|
for (var n2 = 0; n2 < r2; n2 += 1)
|
|
@@ -11879,8 +11730,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
11879
11730
|
-1 !== h2 && (o2 -= o2 - h2), h2 = -1;
|
|
11880
11731
|
} else
|
|
11881
11732
|
for (r2 + u2 > a2 && (r2 = a2 - u2), o2 = r2; o2 >= 0; o2--) {
|
|
11882
|
-
for (var l2 = true,
|
|
11883
|
-
if (c2(t3, o2 +
|
|
11733
|
+
for (var l2 = true, f2 = 0; f2 < u2; f2++)
|
|
11734
|
+
if (c2(t3, o2 + f2) !== c2(e2, f2)) {
|
|
11884
11735
|
l2 = false;
|
|
11885
11736
|
break;
|
|
11886
11737
|
}
|
|
@@ -11951,7 +11802,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
11951
11802
|
}
|
|
11952
11803
|
null === h2 ? (h2 = 65533, l2 = 1) : h2 > 65535 && (h2 -= 65536, n2.push(h2 >>> 10 & 1023 | 55296), h2 = 56320 | 1023 & h2), n2.push(h2), i2 += l2;
|
|
11953
11804
|
}
|
|
11954
|
-
return function
|
|
11805
|
+
return function f2(t4) {
|
|
11955
11806
|
var e3 = t4.length;
|
|
11956
11807
|
if (e3 <= C)
|
|
11957
11808
|
return String.fromCharCode.apply(String, t4);
|
|
@@ -12076,9 +11927,9 @@ var require_oidc_client_min = __commonJS({
|
|
|
12076
11927
|
return 1;
|
|
12077
11928
|
if (this === e2)
|
|
12078
11929
|
return 0;
|
|
12079
|
-
for (var s2 = (o2 >>>= 0) - (i2 >>>= 0), a2 = (n2 >>>= 0) - (r2 >>>= 0), c2 = Math.min(s2, a2), h2 = this.slice(i2, o2), l2 = e2.slice(r2, n2),
|
|
12080
|
-
if (h2[
|
|
12081
|
-
s2 = h2[
|
|
11930
|
+
for (var s2 = (o2 >>>= 0) - (i2 >>>= 0), a2 = (n2 >>>= 0) - (r2 >>>= 0), c2 = Math.min(s2, a2), h2 = this.slice(i2, o2), l2 = e2.slice(r2, n2), f2 = 0; f2 < c2; ++f2)
|
|
11931
|
+
if (h2[f2] !== l2[f2]) {
|
|
11932
|
+
s2 = h2[f2], a2 = l2[f2];
|
|
12082
11933
|
break;
|
|
12083
11934
|
}
|
|
12084
11935
|
return s2 < a2 ? -1 : a2 < s2 ? 1 : 0;
|
|
@@ -12443,10 +12294,10 @@ var require_oidc_client_min = __commonJS({
|
|
|
12443
12294
|
}, function(t, e, r) {
|
|
12444
12295
|
"use strict";
|
|
12445
12296
|
e.byteLength = function n(t2) {
|
|
12446
|
-
var e2 =
|
|
12297
|
+
var e2 = f(t2), r2 = e2[0], n2 = e2[1];
|
|
12447
12298
|
return 3 * (r2 + n2) / 4 - n2;
|
|
12448
12299
|
}, e.toByteArray = function i(t2) {
|
|
12449
|
-
var e2, r2, n =
|
|
12300
|
+
var e2, r2, n = f(t2), i2 = n[0], o = n[1], s2 = new u(function c2(t3, e3, r3) {
|
|
12450
12301
|
return 3 * (e3 + r3) / 4 - r3;
|
|
12451
12302
|
}(0, i2, o)), h2 = 0, l2 = o > 0 ? i2 - 4 : i2;
|
|
12452
12303
|
for (r2 = 0; r2 < l2; r2 += 4)
|
|
@@ -12462,7 +12313,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
12462
12313
|
};
|
|
12463
12314
|
for (var s = [], a = [], u = "undefined" != typeof Uint8Array ? Uint8Array : Array, c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", h = 0, l = c.length; h < l; ++h)
|
|
12464
12315
|
s[h] = c[h], a[c.charCodeAt(h)] = h;
|
|
12465
|
-
function
|
|
12316
|
+
function f(t2) {
|
|
12466
12317
|
var e2 = t2.length;
|
|
12467
12318
|
if (e2 % 4 > 0)
|
|
12468
12319
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -12477,10 +12328,10 @@ var require_oidc_client_min = __commonJS({
|
|
|
12477
12328
|
a["-".charCodeAt(0)] = 62, a["_".charCodeAt(0)] = 63;
|
|
12478
12329
|
}, function(t, e) {
|
|
12479
12330
|
e.read = function(t2, e2, r, n, i) {
|
|
12480
|
-
var o, s, a = 8 * i - n - 1, u = (1 << a) - 1, c = u >> 1, h = -7, l = r ? i - 1 : 0,
|
|
12481
|
-
for (l +=
|
|
12331
|
+
var o, s, a = 8 * i - n - 1, u = (1 << a) - 1, c = u >> 1, h = -7, l = r ? i - 1 : 0, f = r ? -1 : 1, g = t2[e2 + l];
|
|
12332
|
+
for (l += f, o = g & (1 << -h) - 1, g >>= -h, h += a; h > 0; o = 256 * o + t2[e2 + l], l += f, h -= 8)
|
|
12482
12333
|
;
|
|
12483
|
-
for (s = o & (1 << -h) - 1, o >>= -h, h += n; h > 0; s = 256 * s + t2[e2 + l], l +=
|
|
12334
|
+
for (s = o & (1 << -h) - 1, o >>= -h, h += n; h > 0; s = 256 * s + t2[e2 + l], l += f, h -= 8)
|
|
12484
12335
|
;
|
|
12485
12336
|
if (0 === o)
|
|
12486
12337
|
o = 1 - c;
|
|
@@ -12491,8 +12342,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
12491
12342
|
}
|
|
12492
12343
|
return (g ? -1 : 1) * s * Math.pow(2, o - n);
|
|
12493
12344
|
}, e.write = function(t2, e2, r, n, i, o) {
|
|
12494
|
-
var s, a, u, c = 8 * o - i - 1, h = (1 << c) - 1, l = h >> 1,
|
|
12495
|
-
for (e2 = Math.abs(e2), isNaN(e2) || e2 === 1 / 0 ? (a = isNaN(e2) ? 1 : 0, s = h) : (s = Math.floor(Math.log(e2) / Math.LN2), e2 * (u = Math.pow(2, -s)) < 1 && (s--, u *= 2), (e2 += s + l >= 1 ?
|
|
12345
|
+
var s, a, u, c = 8 * o - i - 1, h = (1 << c) - 1, l = h >> 1, f = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = n ? 0 : o - 1, d = n ? 1 : -1, p = e2 < 0 || 0 === e2 && 1 / e2 < 0 ? 1 : 0;
|
|
12346
|
+
for (e2 = Math.abs(e2), isNaN(e2) || e2 === 1 / 0 ? (a = isNaN(e2) ? 1 : 0, s = h) : (s = Math.floor(Math.log(e2) / Math.LN2), e2 * (u = Math.pow(2, -s)) < 1 && (s--, u *= 2), (e2 += s + l >= 1 ? f / u : f * Math.pow(2, 1 - l)) * u >= 2 && (s++, u /= 2), s + l >= h ? (a = 0, s = h) : s + l >= 1 ? (a = (e2 * u - 1) * Math.pow(2, i), s += l) : (a = e2 * Math.pow(2, l - 1) * Math.pow(2, i), s = 0)); i >= 8; t2[r + g] = 255 & a, g += d, a /= 256, i -= 8)
|
|
12496
12347
|
;
|
|
12497
12348
|
for (s = s << i | a, c += i; c > 0; t2[r + g] = 255 & s, g += d, s /= 256, c -= 8)
|
|
12498
12349
|
;
|
|
@@ -12522,7 +12373,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
12522
12373
|
} catch (t5) {
|
|
12523
12374
|
i.Log.error(t5);
|
|
12524
12375
|
}
|
|
12525
|
-
}, t3.validateJwt = function e3(o2, s2, u2, c, h, l,
|
|
12376
|
+
}, t3.validateJwt = function e3(o2, s2, u2, c, h, l, f) {
|
|
12526
12377
|
i.Log.debug("JoseUtil.validateJwt");
|
|
12527
12378
|
try {
|
|
12528
12379
|
if ("RSA" === s2.kty)
|
|
@@ -12541,7 +12392,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
12541
12392
|
return i.Log.error("JoseUtil.validateJwt: EC key missing key material", s2), Promise.reject(new Error("EC key missing key material"));
|
|
12542
12393
|
s2 = r2.getKey(s2);
|
|
12543
12394
|
}
|
|
12544
|
-
return t3._validateJwt(o2, s2, u2, c, h, l,
|
|
12395
|
+
return t3._validateJwt(o2, s2, u2, c, h, l, f);
|
|
12545
12396
|
} catch (t4) {
|
|
12546
12397
|
return i.Log.error(t4 && t4.message || t4), Promise.reject("JWT validation failed");
|
|
12547
12398
|
}
|
|
@@ -12654,8 +12505,8 @@ var require_oidc_client_min = __commonJS({
|
|
|
12654
12505
|
throw new TypeError("Cannot call a class as a function");
|
|
12655
12506
|
}(this, t2), !r2)
|
|
12656
12507
|
throw n.Log.error("SignoutRequest.ctor: No url passed"), new Error("url");
|
|
12657
|
-
for (var
|
|
12658
|
-
r2 = i.UrlUtility.addQueryParam(r2,
|
|
12508
|
+
for (var f in s && (r2 = i.UrlUtility.addQueryParam(r2, "id_token_hint", s)), a && (r2 = i.UrlUtility.addQueryParam(r2, "post_logout_redirect_uri", a), u && (this.state = new o.State({ data: u, request_type: h }), r2 = i.UrlUtility.addQueryParam(r2, "state", this.state.id))), c)
|
|
12509
|
+
r2 = i.UrlUtility.addQueryParam(r2, f, c[f]);
|
|
12659
12510
|
this.url = r2;
|
|
12660
12511
|
};
|
|
12661
12512
|
}, function(t, e, r) {
|
|
@@ -12716,7 +12567,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
12716
12567
|
return function(e2, r2, n2) {
|
|
12717
12568
|
return r2 && t2(e2.prototype, r2), n2 && t2(e2, n2), e2;
|
|
12718
12569
|
};
|
|
12719
|
-
}(), i = r(0), o = r(10), s = r(39), a = r(15), u = r(45), c = r(47), h = r(18), l = r(8),
|
|
12570
|
+
}(), i = r(0), o = r(10), s = r(39), a = r(15), u = r(45), c = r(47), h = r(18), l = r(8), f = r(20), g = r(11), d = r(4);
|
|
12720
12571
|
function p(t2, e2) {
|
|
12721
12572
|
if (!(t2 instanceof e2))
|
|
12722
12573
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -12728,7 +12579,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
12728
12579
|
}
|
|
12729
12580
|
e.UserManager = function(t2) {
|
|
12730
12581
|
function e2() {
|
|
12731
|
-
var r2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : c.SilentRenewService, o2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : h.SessionMonitor, a2 = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] :
|
|
12582
|
+
var r2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : c.SilentRenewService, o2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : h.SessionMonitor, a2 = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : f.TokenRevocationClient, l2 = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : g.TokenClient, y = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : d.JoseUtil;
|
|
12732
12583
|
p(this, e2), r2 instanceof s.UserManagerSettings || (r2 = new s.UserManagerSettings(r2));
|
|
12733
12584
|
var m = v(this, t2.call(this, r2));
|
|
12734
12585
|
return m._events = new u.UserManagerEvents(r2), m._silentRenewService = new n2(m), m.settings.automaticSilentRenew && (i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"), m.startSilentRenew()), m.settings.monitorSession && (i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"), m._sessionMonitor = new o2(m)), m._tokenRevocationClient = new a2(m._settings), m._tokenClient = new l2(m._settings), m._joseUtil = y, m;
|
|
@@ -12997,7 +12848,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
12997
12848
|
if (!(t2 instanceof e2))
|
|
12998
12849
|
throw new TypeError("Cannot call a class as a function");
|
|
12999
12850
|
}
|
|
13000
|
-
function
|
|
12851
|
+
function f(t2, e2) {
|
|
13001
12852
|
if (!t2)
|
|
13002
12853
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
13003
12854
|
return !e2 || "object" != typeof e2 && "function" != typeof e2 ? t2 : e2;
|
|
@@ -13006,7 +12857,7 @@ var require_oidc_client_min = __commonJS({
|
|
|
13006
12857
|
function e2() {
|
|
13007
12858
|
var r2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = r2.popup_redirect_uri, i2 = r2.popup_post_logout_redirect_uri, g = r2.popupWindowFeatures, d = r2.popupWindowTarget, p = r2.silent_redirect_uri, v = r2.silentRequestTimeout, y = r2.automaticSilentRenew, m = void 0 !== y && y, _ = r2.validateSubOnSilentRenew, S = void 0 !== _ && _, b = r2.includeIdTokenInSilentRenew, w = void 0 === b || b, F = r2.monitorSession, E = void 0 === F || F, x = r2.monitorAnonymousSession, A = void 0 !== x && x, k = r2.checkSessionInterval, P = void 0 === k ? 2e3 : k, C = r2.stopCheckSessionOnError, T = void 0 === C || C, R = r2.query_status_response_type, I = r2.revokeAccessTokenOnSignout, D = void 0 !== I && I, L = r2.accessTokenExpiringNotificationTime, N = void 0 === L ? 60 : L, U = r2.redirectNavigator, B = void 0 === U ? new o.RedirectNavigator() : U, O = r2.popupNavigator, j = void 0 === O ? new s.PopupNavigator() : O, M = r2.iframeNavigator, H = void 0 === M ? new a.IFrameNavigator() : M, V = r2.userStore, K = void 0 === V ? new u.WebStorageStateStore({ store: c.Global.sessionStorage }) : V;
|
|
13008
12859
|
l(this, e2);
|
|
13009
|
-
var q =
|
|
12860
|
+
var q = f(this, t2.call(this, arguments[0]));
|
|
13010
12861
|
return q._popup_redirect_uri = n2, q._popup_post_logout_redirect_uri = i2, q._popupWindowFeatures = g, q._popupWindowTarget = d, q._silent_redirect_uri = p, q._silentRequestTimeout = v, q._automaticSilentRenew = m, q._validateSubOnSilentRenew = S, q._includeIdTokenInSilentRenew = w, q._accessTokenExpiringNotificationTime = N, q._monitorSession = E, q._monitorAnonymousSession = A, q._checkSessionInterval = P, q._stopCheckSessionOnError = T, R ? q._query_status_response_type = R : arguments[0] && arguments[0].response_type ? q._query_status_response_type = h.SigninRequest.isOidc(arguments[0].response_type) ? "id_token" : "code" : q._query_status_response_type = "id_token", q._revokeAccessTokenOnSignout = D, q._redirectNavigator = B, q._popupNavigator = j, q._iframeNavigator = H, q._userStore = K, q;
|
|
13011
12862
|
}
|
|
13012
12863
|
return function r2(t3, e3) {
|
|
@@ -13430,7 +13281,6 @@ var require_oidc_client_min = __commonJS({
|
|
|
13430
13281
|
var require_dist2 = __commonJS({
|
|
13431
13282
|
"../node_modules/@inrupt/oidc-client-ext/dist/index.js"(exports) {
|
|
13432
13283
|
"use strict";
|
|
13433
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13434
13284
|
var oidcClient = require_oidc_client_min();
|
|
13435
13285
|
var solidClientAuthnCore = require_dist();
|
|
13436
13286
|
function processErrorResponse(responseBody, options) {
|
|
@@ -14099,7 +13949,7 @@ var require_SessionInfoManager = __commonJS({
|
|
|
14099
13949
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14100
13950
|
exports.SessionInfoManager = exports.clear = exports.getUnauthenticatedSession = void 0;
|
|
14101
13951
|
var solid_client_authn_core_1 = require_dist();
|
|
14102
|
-
var uuid_1 = (
|
|
13952
|
+
var uuid_1 = require_commonjs_browser();
|
|
14103
13953
|
var oidc_client_ext_1 = require_dist2();
|
|
14104
13954
|
function getUnauthenticatedSession() {
|
|
14105
13955
|
return {
|
|
@@ -14509,7 +14359,7 @@ var require_dependencies = __commonJS({
|
|
|
14509
14359
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14510
14360
|
exports.getClientAuthenticationWithDependencies = void 0;
|
|
14511
14361
|
var solid_client_authn_core_1 = require_dist();
|
|
14512
|
-
var StorageUtility_1 = __importDefault(
|
|
14362
|
+
var StorageUtility_1 = __importDefault(require_StorageUtility());
|
|
14513
14363
|
var ClientAuthentication_1 = __importDefault(require_ClientAuthentication());
|
|
14514
14364
|
var OidcLoginHandler_1 = __importDefault(require_OidcLoginHandler());
|
|
14515
14365
|
var AuthorizationCodeWithPkceOidcHandler_1 = __importDefault(require_AuthorizationCodeWithPkceOidcHandler());
|
|
@@ -14546,7 +14396,7 @@ var require_dependencies = __commonJS({
|
|
|
14546
14396
|
});
|
|
14547
14397
|
|
|
14548
14398
|
// ../node_modules/@inrupt/solid-client-authn-browser/dist/constant.js
|
|
14549
|
-
var
|
|
14399
|
+
var require_constant = __commonJS({
|
|
14550
14400
|
"../node_modules/@inrupt/solid-client-authn-browser/dist/constant.js"(exports) {
|
|
14551
14401
|
"use strict";
|
|
14552
14402
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -14565,9 +14415,9 @@ var require_Session = __commonJS({
|
|
|
14565
14415
|
exports.Session = exports.silentlyAuthenticate = void 0;
|
|
14566
14416
|
var events_1 = require_events();
|
|
14567
14417
|
var solid_client_authn_core_1 = require_dist();
|
|
14568
|
-
var uuid_1 = (
|
|
14418
|
+
var uuid_1 = require_commonjs_browser();
|
|
14569
14419
|
var dependencies_1 = require_dependencies();
|
|
14570
|
-
var constant_1 =
|
|
14420
|
+
var constant_1 = require_constant();
|
|
14571
14421
|
async function silentlyAuthenticate(sessionId, clientAuthn, session) {
|
|
14572
14422
|
var _a;
|
|
14573
14423
|
const storedSessionInfo = await clientAuthn.validateCurrentSession(sessionId);
|
|
@@ -14591,7 +14441,7 @@ var require_Session = __commonJS({
|
|
|
14591
14441
|
return !!(sessionInfo === null || sessionInfo === void 0 ? void 0 : sessionInfo.isLoggedIn);
|
|
14592
14442
|
}
|
|
14593
14443
|
var Session2 = class extends events_1.EventEmitter {
|
|
14594
|
-
constructor(sessionOptions = {}, sessionId) {
|
|
14444
|
+
constructor(sessionOptions = {}, sessionId = void 0) {
|
|
14595
14445
|
super();
|
|
14596
14446
|
this.tokenRequestInProgress = false;
|
|
14597
14447
|
this.login = async (options) => {
|
|
@@ -14601,7 +14451,8 @@ var require_Session = __commonJS({
|
|
|
14601
14451
|
...options,
|
|
14602
14452
|
tokenType: (_a = options.tokenType) !== null && _a !== void 0 ? _a : "DPoP"
|
|
14603
14453
|
}, this);
|
|
14604
|
-
return new Promise(() =>
|
|
14454
|
+
return new Promise(() => {
|
|
14455
|
+
});
|
|
14605
14456
|
};
|
|
14606
14457
|
this.fetch = async (url, init) => {
|
|
14607
14458
|
return this.clientAuthentication.fetch(url, init);
|
|
@@ -16445,15 +16296,15 @@ var require_util = __commonJS({
|
|
|
16445
16296
|
const issuer = options.issuer || new IdentifierIssuer("_:b");
|
|
16446
16297
|
return _labelBlankNodes(issuer, input);
|
|
16447
16298
|
};
|
|
16448
|
-
api.compareValues = (
|
|
16449
|
-
if (
|
|
16299
|
+
api.compareValues = (v1, v2) => {
|
|
16300
|
+
if (v1 === v2) {
|
|
16450
16301
|
return true;
|
|
16451
16302
|
}
|
|
16452
|
-
if (graphTypes.isValue(
|
|
16303
|
+
if (graphTypes.isValue(v1) && graphTypes.isValue(v2) && v1["@value"] === v2["@value"] && v1["@type"] === v2["@type"] && v1["@language"] === v2["@language"] && v1["@index"] === v2["@index"]) {
|
|
16453
16304
|
return true;
|
|
16454
16305
|
}
|
|
16455
|
-
if (types2.isObject(
|
|
16456
|
-
return
|
|
16306
|
+
if (types2.isObject(v1) && "@id" in v1 && types2.isObject(v2) && "@id" in v2) {
|
|
16307
|
+
return v1["@id"] === v2["@id"];
|
|
16457
16308
|
}
|
|
16458
16309
|
return false;
|
|
16459
16310
|
};
|
|
@@ -18820,9 +18671,9 @@ var require_context = __commonJS({
|
|
|
18820
18671
|
}
|
|
18821
18672
|
return null;
|
|
18822
18673
|
};
|
|
18823
|
-
api.processingMode = (activeCtx,
|
|
18824
|
-
if (
|
|
18825
|
-
return !activeCtx.processingMode || activeCtx.processingMode >= "json-ld-" +
|
|
18674
|
+
api.processingMode = (activeCtx, version) => {
|
|
18675
|
+
if (version.toString() >= "1.1") {
|
|
18676
|
+
return !activeCtx.processingMode || activeCtx.processingMode >= "json-ld-" + version.toString();
|
|
18826
18677
|
} else {
|
|
18827
18678
|
return activeCtx.processingMode === "json-ld-1.0";
|
|
18828
18679
|
}
|
|
@@ -18888,15 +18739,15 @@ var require_context = __commonJS({
|
|
|
18888
18739
|
return false;
|
|
18889
18740
|
}
|
|
18890
18741
|
for (const k1 in x1) {
|
|
18891
|
-
let
|
|
18742
|
+
let v1 = x1[k1];
|
|
18892
18743
|
let v2 = x2[k1];
|
|
18893
18744
|
if (k1 === "@container") {
|
|
18894
|
-
if (Array.isArray(
|
|
18895
|
-
|
|
18745
|
+
if (Array.isArray(v1) && Array.isArray(v2)) {
|
|
18746
|
+
v1 = v1.slice().sort();
|
|
18896
18747
|
v2 = v2.slice().sort();
|
|
18897
18748
|
}
|
|
18898
18749
|
}
|
|
18899
|
-
if (!_deepCompare(
|
|
18750
|
+
if (!_deepCompare(v1, v2)) {
|
|
18900
18751
|
return false;
|
|
18901
18752
|
}
|
|
18902
18753
|
}
|
|
@@ -20989,7 +20840,7 @@ var require_frame = __commonJS({
|
|
|
20989
20840
|
return nodeObject && _filterSubject(state, nodeObject, pattern, flags);
|
|
20990
20841
|
}
|
|
20991
20842
|
function _valueMatch(pattern, value) {
|
|
20992
|
-
const
|
|
20843
|
+
const v1 = value["@value"];
|
|
20993
20844
|
const t1 = value["@type"];
|
|
20994
20845
|
const l1 = value["@language"];
|
|
20995
20846
|
const v2 = pattern["@value"] ? types2.isArray(pattern["@value"]) ? pattern["@value"] : [pattern["@value"]] : [];
|
|
@@ -20998,7 +20849,7 @@ var require_frame = __commonJS({
|
|
|
20998
20849
|
if (v2.length === 0 && t2.length === 0 && l2.length === 0) {
|
|
20999
20850
|
return true;
|
|
21000
20851
|
}
|
|
21001
|
-
if (!(v2.includes(
|
|
20852
|
+
if (!(v2.includes(v1) || types2.isEmptyObject(v2[0]))) {
|
|
21002
20853
|
return false;
|
|
21003
20854
|
}
|
|
21004
20855
|
if (!(!t1 && t2.length === 0 || t2.includes(t1) || t1 && types2.isEmptyObject(t2[0]))) {
|
|
@@ -22573,7 +22424,9 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
22573
22424
|
module2.exports = _regeneratorRuntime2 = function _regeneratorRuntime3() {
|
|
22574
22425
|
return exports2;
|
|
22575
22426
|
}, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
22576
|
-
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty,
|
|
22427
|
+
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function(obj, key, desc) {
|
|
22428
|
+
obj[key] = desc.value;
|
|
22429
|
+
}, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
22577
22430
|
function define2(obj, key, value) {
|
|
22578
22431
|
return Object.defineProperty(obj, key, {
|
|
22579
22432
|
value,
|
|
@@ -22591,48 +22444,9 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
22591
22444
|
}
|
|
22592
22445
|
function wrap4(innerFn, outerFn, self2, tryLocsList) {
|
|
22593
22446
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
22594
|
-
return generator
|
|
22595
|
-
|
|
22596
|
-
|
|
22597
|
-
if ("executing" === state)
|
|
22598
|
-
throw new Error("Generator is already running");
|
|
22599
|
-
if ("completed" === state) {
|
|
22600
|
-
if ("throw" === method)
|
|
22601
|
-
throw arg;
|
|
22602
|
-
return doneResult();
|
|
22603
|
-
}
|
|
22604
|
-
for (context2.method = method, context2.arg = arg; ; ) {
|
|
22605
|
-
var delegate = context2.delegate;
|
|
22606
|
-
if (delegate) {
|
|
22607
|
-
var delegateResult = maybeInvokeDelegate(delegate, context2);
|
|
22608
|
-
if (delegateResult) {
|
|
22609
|
-
if (delegateResult === ContinueSentinel)
|
|
22610
|
-
continue;
|
|
22611
|
-
return delegateResult;
|
|
22612
|
-
}
|
|
22613
|
-
}
|
|
22614
|
-
if ("next" === context2.method)
|
|
22615
|
-
context2.sent = context2._sent = context2.arg;
|
|
22616
|
-
else if ("throw" === context2.method) {
|
|
22617
|
-
if ("suspendedStart" === state)
|
|
22618
|
-
throw state = "completed", context2.arg;
|
|
22619
|
-
context2.dispatchException(context2.arg);
|
|
22620
|
-
} else
|
|
22621
|
-
"return" === context2.method && context2.abrupt("return", context2.arg);
|
|
22622
|
-
state = "executing";
|
|
22623
|
-
var record = tryCatch(innerFn2, self3, context2);
|
|
22624
|
-
if ("normal" === record.type) {
|
|
22625
|
-
if (state = context2.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
22626
|
-
continue;
|
|
22627
|
-
return {
|
|
22628
|
-
value: record.arg,
|
|
22629
|
-
done: context2.done
|
|
22630
|
-
};
|
|
22631
|
-
}
|
|
22632
|
-
"throw" === record.type && (state = "completed", context2.method = "throw", context2.arg = record.arg);
|
|
22633
|
-
}
|
|
22634
|
-
};
|
|
22635
|
-
}(innerFn, self2, context), generator;
|
|
22447
|
+
return defineProperty(generator, "_invoke", {
|
|
22448
|
+
value: makeInvokeMethod(innerFn, self2, context)
|
|
22449
|
+
}), generator;
|
|
22636
22450
|
}
|
|
22637
22451
|
function tryCatch(fn, obj, arg) {
|
|
22638
22452
|
try {
|
|
@@ -22687,25 +22501,63 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
22687
22501
|
reject3(record.arg);
|
|
22688
22502
|
}
|
|
22689
22503
|
var previousPromise;
|
|
22690
|
-
this
|
|
22691
|
-
function
|
|
22692
|
-
|
|
22693
|
-
|
|
22694
|
-
|
|
22504
|
+
defineProperty(this, "_invoke", {
|
|
22505
|
+
value: function value(method, arg) {
|
|
22506
|
+
function callInvokeWithMethodAndArg() {
|
|
22507
|
+
return new PromiseImpl(function(resolve, reject3) {
|
|
22508
|
+
invoke(method, arg, resolve, reject3);
|
|
22509
|
+
});
|
|
22510
|
+
}
|
|
22511
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
22512
|
+
}
|
|
22513
|
+
});
|
|
22514
|
+
}
|
|
22515
|
+
function makeInvokeMethod(innerFn, self2, context) {
|
|
22516
|
+
var state = "suspendedStart";
|
|
22517
|
+
return function(method, arg) {
|
|
22518
|
+
if ("executing" === state)
|
|
22519
|
+
throw new Error("Generator is already running");
|
|
22520
|
+
if ("completed" === state) {
|
|
22521
|
+
if ("throw" === method)
|
|
22522
|
+
throw arg;
|
|
22523
|
+
return doneResult();
|
|
22524
|
+
}
|
|
22525
|
+
for (context.method = method, context.arg = arg; ; ) {
|
|
22526
|
+
var delegate = context.delegate;
|
|
22527
|
+
if (delegate) {
|
|
22528
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
22529
|
+
if (delegateResult) {
|
|
22530
|
+
if (delegateResult === ContinueSentinel)
|
|
22531
|
+
continue;
|
|
22532
|
+
return delegateResult;
|
|
22533
|
+
}
|
|
22534
|
+
}
|
|
22535
|
+
if ("next" === context.method)
|
|
22536
|
+
context.sent = context._sent = context.arg;
|
|
22537
|
+
else if ("throw" === context.method) {
|
|
22538
|
+
if ("suspendedStart" === state)
|
|
22539
|
+
throw state = "completed", context.arg;
|
|
22540
|
+
context.dispatchException(context.arg);
|
|
22541
|
+
} else
|
|
22542
|
+
"return" === context.method && context.abrupt("return", context.arg);
|
|
22543
|
+
state = "executing";
|
|
22544
|
+
var record = tryCatch(innerFn, self2, context);
|
|
22545
|
+
if ("normal" === record.type) {
|
|
22546
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
22547
|
+
continue;
|
|
22548
|
+
return {
|
|
22549
|
+
value: record.arg,
|
|
22550
|
+
done: context.done
|
|
22551
|
+
};
|
|
22552
|
+
}
|
|
22553
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
22695
22554
|
}
|
|
22696
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
22697
22555
|
};
|
|
22698
22556
|
}
|
|
22699
22557
|
function maybeInvokeDelegate(delegate, context) {
|
|
22700
|
-
var method = delegate.iterator[
|
|
22701
|
-
if (void 0 === method)
|
|
22702
|
-
|
|
22703
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
|
|
22704
|
-
return ContinueSentinel;
|
|
22705
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
22706
|
-
}
|
|
22707
|
-
return ContinueSentinel;
|
|
22708
|
-
}
|
|
22558
|
+
var methodName = context.method, method = delegate.iterator[methodName];
|
|
22559
|
+
if (void 0 === method)
|
|
22560
|
+
return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
22709
22561
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
22710
22562
|
if ("throw" === record.type)
|
|
22711
22563
|
return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
@@ -22755,7 +22607,13 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
22755
22607
|
done: true
|
|
22756
22608
|
};
|
|
22757
22609
|
}
|
|
22758
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
22610
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
22611
|
+
value: GeneratorFunctionPrototype,
|
|
22612
|
+
configurable: true
|
|
22613
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
22614
|
+
value: GeneratorFunction,
|
|
22615
|
+
configurable: true
|
|
22616
|
+
}), GeneratorFunction.displayName = define2(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
|
|
22759
22617
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
22760
22618
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
22761
22619
|
}, exports2.mark = function(genFun) {
|
|
@@ -22776,8 +22634,8 @@ var require_regeneratorRuntime = __commonJS({
|
|
|
22776
22634
|
return this;
|
|
22777
22635
|
}), define2(Gp, "toString", function() {
|
|
22778
22636
|
return "[object Generator]";
|
|
22779
|
-
}), exports2.keys = function(
|
|
22780
|
-
var keys = [];
|
|
22637
|
+
}), exports2.keys = function(val) {
|
|
22638
|
+
var object = Object(val), keys = [];
|
|
22781
22639
|
for (var key in object) {
|
|
22782
22640
|
keys.push(key);
|
|
22783
22641
|
}
|
|
@@ -23205,7 +23063,7 @@ var require_dom = __commonJS({
|
|
|
23205
23063
|
function DOMImplementation() {
|
|
23206
23064
|
}
|
|
23207
23065
|
DOMImplementation.prototype = {
|
|
23208
|
-
hasFeature: function(feature,
|
|
23066
|
+
hasFeature: function(feature, version) {
|
|
23209
23067
|
return true;
|
|
23210
23068
|
},
|
|
23211
23069
|
createDocument: function(namespaceURI, qualifiedName, doctype) {
|
|
@@ -23280,8 +23138,8 @@ var require_dom = __commonJS({
|
|
|
23280
23138
|
}
|
|
23281
23139
|
}
|
|
23282
23140
|
},
|
|
23283
|
-
isSupported: function(feature,
|
|
23284
|
-
return this.ownerDocument.implementation.hasFeature(feature,
|
|
23141
|
+
isSupported: function(feature, version) {
|
|
23142
|
+
return this.ownerDocument.implementation.hasFeature(feature, version);
|
|
23285
23143
|
},
|
|
23286
23144
|
hasAttributes: function() {
|
|
23287
23145
|
return this.attributes.length > 0;
|
|
@@ -24506,7 +24364,7 @@ var require_sax = __commonJS({
|
|
|
24506
24364
|
var domBuilder = this.domBuilder;
|
|
24507
24365
|
domBuilder.startDocument();
|
|
24508
24366
|
_copy(defaultNSMap, defaultNSMap = {});
|
|
24509
|
-
|
|
24367
|
+
parse3(
|
|
24510
24368
|
source,
|
|
24511
24369
|
defaultNSMap,
|
|
24512
24370
|
entityMap,
|
|
@@ -24516,7 +24374,7 @@ var require_sax = __commonJS({
|
|
|
24516
24374
|
domBuilder.endDocument();
|
|
24517
24375
|
}
|
|
24518
24376
|
};
|
|
24519
|
-
function
|
|
24377
|
+
function parse3(source, defaultNSMapCopy, entityMap, domBuilder, errorHandler) {
|
|
24520
24378
|
function fixedFromCharCode(code) {
|
|
24521
24379
|
if (code > 65535) {
|
|
24522
24380
|
code -= 65536;
|
|
@@ -24666,9 +24524,9 @@ var require_sax = __commonJS({
|
|
|
24666
24524
|
}
|
|
24667
24525
|
}
|
|
24668
24526
|
}
|
|
24669
|
-
function copyLocator(
|
|
24670
|
-
t.lineNumber =
|
|
24671
|
-
t.columnNumber =
|
|
24527
|
+
function copyLocator(f, t) {
|
|
24528
|
+
t.lineNumber = f.lineNumber;
|
|
24529
|
+
t.columnNumber = f.columnNumber;
|
|
24672
24530
|
return t;
|
|
24673
24531
|
}
|
|
24674
24532
|
function parseElementStartPart(source, start, el, currentNSMap, entityReplacer, errorHandler) {
|
|
@@ -25423,6 +25281,36 @@ var FileFetcher = class {
|
|
|
25423
25281
|
}
|
|
25424
25282
|
};
|
|
25425
25283
|
|
|
25284
|
+
// ../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
25285
|
+
function _typeof(obj) {
|
|
25286
|
+
"@babel/helpers - typeof";
|
|
25287
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
25288
|
+
return typeof obj2;
|
|
25289
|
+
} : function(obj2) {
|
|
25290
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
25291
|
+
}, _typeof(obj);
|
|
25292
|
+
}
|
|
25293
|
+
|
|
25294
|
+
// ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
25295
|
+
function _toPrimitive(input, hint) {
|
|
25296
|
+
if (_typeof(input) !== "object" || input === null)
|
|
25297
|
+
return input;
|
|
25298
|
+
var prim = input[Symbol.toPrimitive];
|
|
25299
|
+
if (prim !== void 0) {
|
|
25300
|
+
var res = prim.call(input, hint || "default");
|
|
25301
|
+
if (_typeof(res) !== "object")
|
|
25302
|
+
return res;
|
|
25303
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25304
|
+
}
|
|
25305
|
+
return (hint === "string" ? String : Number)(input);
|
|
25306
|
+
}
|
|
25307
|
+
|
|
25308
|
+
// ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
25309
|
+
function _toPropertyKey(arg) {
|
|
25310
|
+
var key = _toPrimitive(arg, "string");
|
|
25311
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
25312
|
+
}
|
|
25313
|
+
|
|
25426
25314
|
// ../node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
25427
25315
|
function _defineProperties(target, props) {
|
|
25428
25316
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -25431,7 +25319,7 @@ function _defineProperties(target, props) {
|
|
|
25431
25319
|
descriptor.configurable = true;
|
|
25432
25320
|
if ("value" in descriptor)
|
|
25433
25321
|
descriptor.writable = true;
|
|
25434
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25322
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
25435
25323
|
}
|
|
25436
25324
|
}
|
|
25437
25325
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -25488,16 +25376,6 @@ function _inherits(subClass, superClass) {
|
|
|
25488
25376
|
_setPrototypeOf(subClass, superClass);
|
|
25489
25377
|
}
|
|
25490
25378
|
|
|
25491
|
-
// ../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
25492
|
-
function _typeof(obj) {
|
|
25493
|
-
"@babel/helpers - typeof";
|
|
25494
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
25495
|
-
return typeof obj2;
|
|
25496
|
-
} : function(obj2) {
|
|
25497
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
25498
|
-
}, _typeof(obj);
|
|
25499
|
-
}
|
|
25500
|
-
|
|
25501
25379
|
// ../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
25502
25380
|
function _possibleConstructorReturn(self2, call) {
|
|
25503
25381
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
@@ -25518,6 +25396,7 @@ function _getPrototypeOf(o) {
|
|
|
25518
25396
|
|
|
25519
25397
|
// ../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
25520
25398
|
function _defineProperty(obj, key, value) {
|
|
25399
|
+
key = _toPropertyKey(key);
|
|
25521
25400
|
if (key in obj) {
|
|
25522
25401
|
Object.defineProperty(obj, key, {
|
|
25523
25402
|
value,
|
|
@@ -25768,6 +25647,12 @@ function isCollection(obj) {
|
|
|
25768
25647
|
function isRDFlibObject(obj) {
|
|
25769
25648
|
return obj && Object.prototype.hasOwnProperty.call(obj, "termType") && (obj.termType === NamedNodeTermType || obj.termType === VariableTermType || obj.termType === BlankNodeTermType || obj.termType === CollectionTermType || obj.termType === LiteralTermType || obj.termType === GraphTermType);
|
|
25770
25649
|
}
|
|
25650
|
+
function isRDFlibSubject(obj) {
|
|
25651
|
+
return obj && Object.prototype.hasOwnProperty.call(obj, "termType") && (obj.termType === NamedNodeTermType || obj.termType === VariableTermType || obj.termType === BlankNodeTermType || obj.termType === CollectionTermType || obj.termType === LiteralTermType || obj.termType === GraphTermType);
|
|
25652
|
+
}
|
|
25653
|
+
function isRDFlibPredicate(obj) {
|
|
25654
|
+
return isTerm(obj) && (obj.termType === NamedNodeTermType || obj.termType === BlankNodeTermType || obj.termType === VariableTermType);
|
|
25655
|
+
}
|
|
25771
25656
|
function isVariable(obj) {
|
|
25772
25657
|
return isTerm(obj) && obj.termType === VariableTermType;
|
|
25773
25658
|
}
|
|
@@ -25786,12 +25671,6 @@ function isNamedNode(obj) {
|
|
|
25786
25671
|
function isBlankNode(obj) {
|
|
25787
25672
|
return isTerm(obj) && "termType" in obj && obj.termType === "BlankNode";
|
|
25788
25673
|
}
|
|
25789
|
-
function isSubject(obj) {
|
|
25790
|
-
return isTerm(obj) && (obj.termType === NamedNodeTermType || obj.termType === VariableTermType || obj.termType === BlankNodeTermType);
|
|
25791
|
-
}
|
|
25792
|
-
function isPredicate(obj) {
|
|
25793
|
-
return isTerm(obj) && (obj.termType === NamedNodeTermType || obj.termType === VariableTermType);
|
|
25794
|
-
}
|
|
25795
25674
|
function isGraph(obj) {
|
|
25796
25675
|
return isTerm(obj) && (obj.termType === NamedNodeTermType || obj.termType === VariableTermType || obj.termType === BlankNodeTermType || obj.termType === DefaultGraphTermType);
|
|
25797
25676
|
}
|
|
@@ -29660,7 +29539,7 @@ var N3Writer = class {
|
|
|
29660
29539
|
prefixList += (prefixList ? "|" : "") + this._prefixIRIs[prefixIRI];
|
|
29661
29540
|
}
|
|
29662
29541
|
IRIlist = escapeRegex(IRIlist, /[\]\/\(\)\*\+\?\.\\\$]/g, "\\$&");
|
|
29663
|
-
this._prefixRegex = new RegExp(`^(?:${prefixList})[^/]*$|^(${IRIlist})([
|
|
29542
|
+
this._prefixRegex = new RegExp(`^(?:${prefixList})[^/]*$|^(${IRIlist})([_a-zA-Z][\\-_a-zA-Z0-9]*)$`);
|
|
29664
29543
|
}
|
|
29665
29544
|
this._write(hasPrefixes ? "\n" : "", done);
|
|
29666
29545
|
}
|
|
@@ -30761,8 +30640,8 @@ var Serializer = /* @__PURE__ */ function() {
|
|
|
30761
30640
|
}
|
|
30762
30641
|
}, {
|
|
30763
30642
|
key: "toN3",
|
|
30764
|
-
value: function toN3(
|
|
30765
|
-
return this.statementsToN3(
|
|
30643
|
+
value: function toN3(f) {
|
|
30644
|
+
return this.statementsToN3(f.statements);
|
|
30766
30645
|
}
|
|
30767
30646
|
}, {
|
|
30768
30647
|
key: "explicitURI",
|
|
@@ -31548,7 +31427,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
31548
31427
|
}, e: function e(_e2) {
|
|
31549
31428
|
didErr = true;
|
|
31550
31429
|
err = _e2;
|
|
31551
|
-
}, f: function
|
|
31430
|
+
}, f: function f() {
|
|
31552
31431
|
try {
|
|
31553
31432
|
if (!normalCompletion && it.return != null)
|
|
31554
31433
|
it.return();
|
|
@@ -32386,12 +32265,12 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32386
32265
|
this.done = true;
|
|
32387
32266
|
this.junction.checkAllDone();
|
|
32388
32267
|
};
|
|
32389
|
-
function prepare(
|
|
32268
|
+
function prepare(f2, item, bindings) {
|
|
32390
32269
|
var terms, termIndex, i, ind;
|
|
32391
32270
|
item.nvars = 0;
|
|
32392
32271
|
item.index = null;
|
|
32393
32272
|
terms = [item.subject, item.predicate, item.object, item.why];
|
|
32394
|
-
ind = [
|
|
32273
|
+
ind = [f2.subjectIndex, f2.predicateIndex, f2.objectIndex, f2.whyIndex];
|
|
32395
32274
|
for (i = 0; i < 4; i++) {
|
|
32396
32275
|
var t = terms[i];
|
|
32397
32276
|
if (t.uri && t.uri === defaultGraphURI) {
|
|
@@ -32399,10 +32278,10 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32399
32278
|
item.nvars++;
|
|
32400
32279
|
} else {
|
|
32401
32280
|
t = bind(terms[i], bindings);
|
|
32402
|
-
if (
|
|
32403
|
-
t =
|
|
32281
|
+
if (f2.redirections[f2.id(t)]) {
|
|
32282
|
+
t = f2.redirections[f2.id(t)];
|
|
32404
32283
|
}
|
|
32405
|
-
termIndex = ind[i][
|
|
32284
|
+
termIndex = ind[i][f2.id(t)];
|
|
32406
32285
|
if (!termIndex) {
|
|
32407
32286
|
item.index = [];
|
|
32408
32287
|
return false;
|
|
@@ -32413,7 +32292,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32413
32292
|
}
|
|
32414
32293
|
}
|
|
32415
32294
|
if (item.index === null) {
|
|
32416
|
-
item.index =
|
|
32295
|
+
item.index = f2.statements;
|
|
32417
32296
|
}
|
|
32418
32297
|
return true;
|
|
32419
32298
|
}
|
|
@@ -32424,7 +32303,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32424
32303
|
return self2.index.length - other.index.length;
|
|
32425
32304
|
}
|
|
32426
32305
|
var matchIndex = 0;
|
|
32427
|
-
var match = function match3(
|
|
32306
|
+
var match = function match3(f2, g, bindingsSoFar, level, fetcher4, localCallback, branch) {
|
|
32428
32307
|
log_default.debug("Match begins, Branch count now: " + branch.count + " for " + branch.pattern_debug);
|
|
32429
32308
|
var pattern = g.statements;
|
|
32430
32309
|
if (pattern.length === 0) {
|
|
@@ -32442,7 +32321,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32442
32321
|
}
|
|
32443
32322
|
for (b = 0; b < g.optional.length; b++) {
|
|
32444
32323
|
br[b].count = br[b].count + 1;
|
|
32445
|
-
match3(
|
|
32324
|
+
match3(f2, g.optional[b], bindingsSoFar, "", fetcher4, callback, br[b]);
|
|
32446
32325
|
}
|
|
32447
32326
|
}
|
|
32448
32327
|
branch.count--;
|
|
@@ -32461,7 +32340,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32461
32340
|
console.log("Error following link to <" + requestedTerm.uri + "> in query: " + body);
|
|
32462
32341
|
}
|
|
32463
32342
|
match3(
|
|
32464
|
-
|
|
32343
|
+
f2,
|
|
32465
32344
|
g,
|
|
32466
32345
|
bindingsSoFar,
|
|
32467
32346
|
level,
|
|
@@ -32483,7 +32362,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32483
32362
|
}
|
|
32484
32363
|
}
|
|
32485
32364
|
}
|
|
32486
|
-
match2(
|
|
32365
|
+
match2(f2, g, bindingsSoFar, level, fetcher4, localCallback, branch);
|
|
32487
32366
|
};
|
|
32488
32367
|
var constraintsSatisfied = function constraintsSatisfied2(bindings, constraints) {
|
|
32489
32368
|
var res = true;
|
|
@@ -32501,7 +32380,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32501
32380
|
}
|
|
32502
32381
|
return res;
|
|
32503
32382
|
};
|
|
32504
|
-
var match2 = function match22(
|
|
32383
|
+
var match2 = function match22(f2, g, bindingsSoFar, level, fetcher4, callback2, branch) {
|
|
32505
32384
|
var pattern = g.statements;
|
|
32506
32385
|
var n = pattern.length;
|
|
32507
32386
|
var i;
|
|
@@ -32513,11 +32392,11 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32513
32392
|
var item;
|
|
32514
32393
|
for (i = 0; i < n; i++) {
|
|
32515
32394
|
item = pattern[i];
|
|
32516
|
-
prepare(
|
|
32395
|
+
prepare(f2, item, bindingsSoFar);
|
|
32517
32396
|
}
|
|
32518
32397
|
pattern.sort(easiestQuery);
|
|
32519
32398
|
item = pattern[0];
|
|
32520
|
-
var rest =
|
|
32399
|
+
var rest = f2.formula();
|
|
32521
32400
|
rest.optional = g.optional;
|
|
32522
32401
|
rest.constraints = g.constraints;
|
|
32523
32402
|
rest.statements = pattern.slice(1);
|
|
@@ -32529,7 +32408,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32529
32408
|
var onward = 0;
|
|
32530
32409
|
for (c = 0; c < nc; c++) {
|
|
32531
32410
|
st3 = item.index[c];
|
|
32532
|
-
nbs1 = unifyContents([item.subject, item.predicate, item.object, item.why], [st3.subject, st3.predicate, st3.object, st3.why], bindingsSoFar,
|
|
32411
|
+
nbs1 = unifyContents([item.subject, item.predicate, item.object, item.why], [st3.subject, st3.predicate, st3.object, st3.why], bindingsSoFar, f2);
|
|
32533
32412
|
log_default.info(level + " From first: " + nbs1.length + ": " + bindingsDebug(nbs1));
|
|
32534
32413
|
nk = nbs1.length;
|
|
32535
32414
|
for (k = 0; k < nk; k++) {
|
|
@@ -32550,7 +32429,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32550
32429
|
}
|
|
32551
32430
|
branch.count++;
|
|
32552
32431
|
onward++;
|
|
32553
|
-
match(
|
|
32432
|
+
match(f2, rest, bindings2, level + " ", fetcher4, callback2, branch);
|
|
32554
32433
|
}
|
|
32555
32434
|
}
|
|
32556
32435
|
}
|
|
@@ -32564,15 +32443,15 @@ function indexedFormulaQuery(myQuery, callback, fetcher3, onDone) {
|
|
|
32564
32443
|
branch.reportDone();
|
|
32565
32444
|
}
|
|
32566
32445
|
};
|
|
32567
|
-
var
|
|
32446
|
+
var f = this;
|
|
32568
32447
|
log_default.debug("Query on " + this.statements.length);
|
|
32569
32448
|
var trunck = new MandatoryBranch(callback, onDone);
|
|
32570
32449
|
trunck.count++;
|
|
32571
32450
|
if (myQuery.sync) {
|
|
32572
|
-
match(
|
|
32451
|
+
match(f, myQuery.pat, myQuery.pat.initBindings, "", fetcher3, callback, trunck);
|
|
32573
32452
|
} else {
|
|
32574
32453
|
setTimeout(function() {
|
|
32575
|
-
match(
|
|
32454
|
+
match(f, myQuery.pat, myQuery.pat.initBindings, "", fetcher3, callback, trunck);
|
|
32576
32455
|
}, 0);
|
|
32577
32456
|
}
|
|
32578
32457
|
}
|
|
@@ -32628,7 +32507,7 @@ function _createForOfIteratorHelper2(o, allowArrayLike) {
|
|
|
32628
32507
|
}, e: function e(_e2) {
|
|
32629
32508
|
didErr = true;
|
|
32630
32509
|
err = _e2;
|
|
32631
|
-
}, f: function
|
|
32510
|
+
}, f: function f() {
|
|
32632
32511
|
try {
|
|
32633
32512
|
if (!normalCompletion && it.return != null)
|
|
32634
32513
|
it.return();
|
|
@@ -32906,10 +32785,10 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
|
|
|
32906
32785
|
pred = node_default.fromValue(pred);
|
|
32907
32786
|
var objNode = node_default.fromValue(obj);
|
|
32908
32787
|
why = node_default.fromValue(why);
|
|
32909
|
-
if (!
|
|
32788
|
+
if (!isRDFlibSubject(subj)) {
|
|
32910
32789
|
throw new Error("Subject is not a subject type");
|
|
32911
32790
|
}
|
|
32912
|
-
if (!
|
|
32791
|
+
if (!isRDFlibPredicate(pred)) {
|
|
32913
32792
|
throw new Error("Predicate ".concat(pred, " is not a predicate type"));
|
|
32914
32793
|
}
|
|
32915
32794
|
if (!isRDFlibObject(objNode)) {
|
|
@@ -33235,7 +33114,7 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
|
|
|
33235
33114
|
}, {
|
|
33236
33115
|
key: "removeMatches",
|
|
33237
33116
|
value: function removeMatches(subject, predicate, object, graph3) {
|
|
33238
|
-
this.
|
|
33117
|
+
this.removeMany(subject, predicate, object, graph3);
|
|
33239
33118
|
return this;
|
|
33240
33119
|
}
|
|
33241
33120
|
}, {
|
|
@@ -36024,7 +35903,7 @@ var RDFParser = /* @__PURE__ */ function() {
|
|
|
36024
35903
|
}
|
|
36025
35904
|
}, {
|
|
36026
35905
|
key: "parse",
|
|
36027
|
-
value: function
|
|
35906
|
+
value: function parse3(document3, base, why) {
|
|
36028
35907
|
var children = document3.childNodes;
|
|
36029
35908
|
this.cleanParser();
|
|
36030
35909
|
var root;
|
|
@@ -36041,11 +35920,11 @@ var RDFParser = /* @__PURE__ */ function() {
|
|
|
36041
35920
|
throw new Error("RDFParser: can't find root in " + base + ". Halting. ");
|
|
36042
35921
|
}
|
|
36043
35922
|
this.why = why;
|
|
36044
|
-
var
|
|
35923
|
+
var f = this.frameFactory(this);
|
|
36045
35924
|
this.base = base;
|
|
36046
|
-
|
|
36047
|
-
|
|
36048
|
-
this.parseDOM(this.buildFrame(
|
|
35925
|
+
f.base = base;
|
|
35926
|
+
f.lang = null;
|
|
35927
|
+
this.parseDOM(this.buildFrame(f, root));
|
|
36049
35928
|
return true;
|
|
36050
35929
|
}
|
|
36051
35930
|
}, {
|
|
@@ -36171,12 +36050,12 @@ var RDFParser = /* @__PURE__ */ function() {
|
|
|
36171
36050
|
}
|
|
36172
36051
|
}
|
|
36173
36052
|
for (var x1 = attrs.length - 1; x1 >= 0; x1--) {
|
|
36174
|
-
var
|
|
36175
|
-
|
|
36053
|
+
var f = this.buildFrame(frame);
|
|
36054
|
+
f.addArc(elementURI(attrs[x1]));
|
|
36176
36055
|
if (elementURI(attrs[x1]) === RDFParser2.ns.RDF + "type") {
|
|
36177
|
-
this.buildFrame(
|
|
36056
|
+
this.buildFrame(f).addNode(attrs[x1].nodeValue);
|
|
36178
36057
|
} else {
|
|
36179
|
-
this.buildFrame(
|
|
36058
|
+
this.buildFrame(f).addLiteral(attrs[x1].nodeValue);
|
|
36180
36059
|
}
|
|
36181
36060
|
}
|
|
36182
36061
|
} else if (dom.childNodes.length === 0) {
|
|
@@ -36338,7 +36217,7 @@ function sparqlUpdateParser(str, kb, base) {
|
|
|
36338
36217
|
}
|
|
36339
36218
|
|
|
36340
36219
|
// ../node_modules/rdflib/esm/parse.js
|
|
36341
|
-
function
|
|
36220
|
+
function parse2(str, kb, base) {
|
|
36342
36221
|
var contentType = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "text/turtle";
|
|
36343
36222
|
var callback = arguments.length > 4 ? arguments[4] : void 0;
|
|
36344
36223
|
contentType = contentType || TurtleContentType;
|
|
@@ -36380,7 +36259,7 @@ function parse3(str, kb, base) {
|
|
|
36380
36259
|
} catch (e) {
|
|
36381
36260
|
executeErrorCallback(e);
|
|
36382
36261
|
}
|
|
36383
|
-
|
|
36262
|
+
parse2.handled = {
|
|
36384
36263
|
"text/n3": true,
|
|
36385
36264
|
"text/turtle": true,
|
|
36386
36265
|
"application/rdf+xml": true,
|
|
@@ -36508,7 +36387,7 @@ var RDFXMLHandler = /* @__PURE__ */ function(_Handler) {
|
|
|
36508
36387
|
}
|
|
36509
36388
|
_createClass(RDFXMLHandler2, [{
|
|
36510
36389
|
key: "parse",
|
|
36511
|
-
value: function
|
|
36390
|
+
value: function parse3(fetcher3, responseText, options) {
|
|
36512
36391
|
var kb = fetcher3.store;
|
|
36513
36392
|
if (!this.dom) {
|
|
36514
36393
|
this.dom = parseXML(responseText);
|
|
@@ -36553,7 +36432,7 @@ var XHTMLHandler = /* @__PURE__ */ function(_Handler2) {
|
|
|
36553
36432
|
}
|
|
36554
36433
|
_createClass(XHTMLHandler2, [{
|
|
36555
36434
|
key: "parse",
|
|
36556
|
-
value: function
|
|
36435
|
+
value: function parse3(fetcher3, responseText, options) {
|
|
36557
36436
|
var relation, reverse;
|
|
36558
36437
|
if (!this.dom) {
|
|
36559
36438
|
this.dom = parseXML(responseText);
|
|
@@ -36579,8 +36458,8 @@ var XHTMLHandler = /* @__PURE__ */ function(_Handler2) {
|
|
|
36579
36458
|
for (var i = 0; i < scripts.length; i++) {
|
|
36580
36459
|
var contentType = scripts[i].getAttribute("type");
|
|
36581
36460
|
if (Parsable[contentType]) {
|
|
36582
|
-
|
|
36583
|
-
|
|
36461
|
+
parse2(scripts[i].textContent, kb, options.original.value, contentType);
|
|
36462
|
+
parse2(scripts[i].textContent, kb, options.original.value, contentType);
|
|
36584
36463
|
}
|
|
36585
36464
|
}
|
|
36586
36465
|
if (!options.noMeta) {
|
|
@@ -36619,7 +36498,7 @@ var XMLHandler = /* @__PURE__ */ function(_Handler3) {
|
|
|
36619
36498
|
}
|
|
36620
36499
|
_createClass(XMLHandler2, [{
|
|
36621
36500
|
key: "parse",
|
|
36622
|
-
value: function
|
|
36501
|
+
value: function parse3(fetcher3, responseText, options) {
|
|
36623
36502
|
var dom = parseXML(responseText);
|
|
36624
36503
|
for (var c = 0; c < dom.childNodes.length; c++) {
|
|
36625
36504
|
var node = dom.childNodes[c];
|
|
@@ -36684,7 +36563,7 @@ var HTMLHandler = /* @__PURE__ */ function(_Handler4) {
|
|
|
36684
36563
|
}
|
|
36685
36564
|
_createClass(HTMLHandler2, [{
|
|
36686
36565
|
key: "parse",
|
|
36687
|
-
value: function
|
|
36566
|
+
value: function parse3(fetcher3, responseText, options) {
|
|
36688
36567
|
var kb = fetcher3.store;
|
|
36689
36568
|
if (isXML(responseText)) {
|
|
36690
36569
|
fetcher3.addStatus(options.req, "Has an XML declaration. We'll assume it's XHTML as the content-type was text/html.\n");
|
|
@@ -36734,7 +36613,7 @@ var JsonLdHandler = /* @__PURE__ */ function(_Handler5) {
|
|
|
36734
36613
|
}
|
|
36735
36614
|
_createClass(JsonLdHandler2, [{
|
|
36736
36615
|
key: "parse",
|
|
36737
|
-
value: function
|
|
36616
|
+
value: function parse3(fetcher3, responseText, options, response) {
|
|
36738
36617
|
var kb = fetcher3.store;
|
|
36739
36618
|
return new Promise(function(resolve, reject3) {
|
|
36740
36619
|
try {
|
|
@@ -36772,7 +36651,7 @@ var TextHandler = /* @__PURE__ */ function(_Handler6) {
|
|
|
36772
36651
|
}
|
|
36773
36652
|
_createClass(TextHandler2, [{
|
|
36774
36653
|
key: "parse",
|
|
36775
|
-
value: function
|
|
36654
|
+
value: function parse3(fetcher3, responseText, options) {
|
|
36776
36655
|
if (isXML(responseText)) {
|
|
36777
36656
|
fetcher3.addStatus(options.req, "Warning: " + options.resource + " has an XML declaration. We'll assume it's XML but its content-type wasn't XML.\n");
|
|
36778
36657
|
var xmlHandler = new XMLHandler(this.response);
|
|
@@ -36811,7 +36690,7 @@ var N3Handler = /* @__PURE__ */ function(_Handler7) {
|
|
|
36811
36690
|
}
|
|
36812
36691
|
_createClass(N3Handler2, [{
|
|
36813
36692
|
key: "parse",
|
|
36814
|
-
value: function
|
|
36693
|
+
value: function parse3(fetcher3, responseText, options, response) {
|
|
36815
36694
|
var kb = fetcher3.store;
|
|
36816
36695
|
var p = n3parser_default(kb, kb, options.original.value, options.original.value, null, null, "", null);
|
|
36817
36696
|
try {
|
|
@@ -38186,68 +38065,3 @@ export {
|
|
|
38186
38065
|
RdfDocument,
|
|
38187
38066
|
Thing
|
|
38188
38067
|
};
|
|
38189
|
-
/*!
|
|
38190
|
-
* Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
|
|
38191
|
-
*/
|
|
38192
|
-
/*!
|
|
38193
|
-
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
38194
|
-
*/
|
|
38195
|
-
/*!
|
|
38196
|
-
* The buffer module from node.js, for the browser.
|
|
38197
|
-
*
|
|
38198
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
38199
|
-
* @license MIT
|
|
38200
|
-
*/
|
|
38201
|
-
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
|
38202
|
-
*/
|
|
38203
|
-
/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
|
|
38204
|
-
*/
|
|
38205
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
38206
|
-
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
38207
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
38208
|
-
/**
|
|
38209
|
-
* A JavaScript implementation of the JSON-LD API.
|
|
38210
|
-
*
|
|
38211
|
-
* @author Dave Longley
|
|
38212
|
-
*
|
|
38213
|
-
* @license BSD 3-Clause License
|
|
38214
|
-
* Copyright (c) 2011-2019 Digital Bazaar, Inc.
|
|
38215
|
-
* All rights reserved.
|
|
38216
|
-
*
|
|
38217
|
-
* Redistribution and use in source and binary forms, with or without
|
|
38218
|
-
* modification, are permitted provided that the following conditions are met:
|
|
38219
|
-
*
|
|
38220
|
-
* Redistributions of source code must retain the above copyright notice,
|
|
38221
|
-
* this list of conditions and the following disclaimer.
|
|
38222
|
-
*
|
|
38223
|
-
* Redistributions in binary form must reproduce the above copyright
|
|
38224
|
-
* notice, this list of conditions and the following disclaimer in the
|
|
38225
|
-
* documentation and/or other materials provided with the distribution.
|
|
38226
|
-
*
|
|
38227
|
-
* Neither the name of the Digital Bazaar, Inc. nor the names of its
|
|
38228
|
-
* contributors may be used to endorse or promote products derived from
|
|
38229
|
-
* this software without specific prior written permission.
|
|
38230
|
-
*
|
|
38231
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
38232
|
-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
38233
|
-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
38234
|
-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
38235
|
-
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
38236
|
-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
38237
|
-
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
38238
|
-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
38239
|
-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
38240
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
38241
|
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38242
|
-
*/
|
|
38243
|
-
/**
|
|
38244
|
-
* Removes the @preserve keywords from expanded result of framing.
|
|
38245
|
-
*
|
|
38246
|
-
* @param input the framed, framed output.
|
|
38247
|
-
* @param options the framing options used.
|
|
38248
|
-
*
|
|
38249
|
-
* @return the resulting output.
|
|
38250
|
-
*/
|
|
38251
|
-
// disallow aliasing @context and @preserve
|
|
38252
|
-
// remove @preserve
|
|
38253
|
-
// remove @preserve from results
|