@pod-os/core 0.11.2-639ae3c.0 → 0.11.2-b41ffeb.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.
@@ -120,7 +120,7 @@ var require_regeneratorRuntime = __commonJS({
120
120
  var o2 = h;
121
121
  return function(i2, a2) {
122
122
  if (o2 === f)
123
- throw Error("Generator is already running");
123
+ throw new Error("Generator is already running");
124
124
  if (o2 === s) {
125
125
  if ("throw" === i2)
126
126
  throw a2;
@@ -281,7 +281,7 @@ var require_regeneratorRuntime = __commonJS({
281
281
  return handle(i2.catchLoc, true);
282
282
  } else {
283
283
  if (!u2)
284
- throw Error("try statement without catch or finally");
284
+ throw new Error("try statement without catch or finally");
285
285
  if (this.prev < i2.finallyLoc)
286
286
  return handle(i2.finallyLoc);
287
287
  }
@@ -324,7 +324,7 @@ var require_regeneratorRuntime = __commonJS({
324
324
  return o2;
325
325
  }
326
326
  }
327
- throw Error("illegal catch attempt");
327
+ throw new Error("illegal catch attempt");
328
328
  },
329
329
  delegateYield: function delegateYield(e2, r2, n2) {
330
330
  return this.delegate = {
@@ -6700,7 +6700,6 @@ var require_utils = __commonJS({
6700
6700
  return strWithoutPlus;
6701
6701
  }
6702
6702
  };
6703
- var limit = 1024;
6704
6703
  var encode2 = function encode3(str, defaultEncoder, charset, kind, format) {
6705
6704
  if (str.length === 0) {
6706
6705
  return str;
@@ -6717,32 +6716,27 @@ var require_utils = __commonJS({
6717
6716
  });
6718
6717
  }
6719
6718
  var out = "";
6720
- for (var j = 0; j < string.length; j += limit) {
6721
- var segment = string.length >= limit ? string.slice(j, j + limit) : string;
6722
- var arr = [];
6723
- for (var i = 0; i < segment.length; ++i) {
6724
- var c = segment.charCodeAt(i);
6725
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
6726
- arr[arr.length] = segment.charAt(i);
6727
- continue;
6728
- }
6729
- if (c < 128) {
6730
- arr[arr.length] = hexTable[c];
6731
- continue;
6732
- }
6733
- if (c < 2048) {
6734
- arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
6735
- continue;
6736
- }
6737
- if (c < 55296 || c >= 57344) {
6738
- arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
6739
- continue;
6740
- }
6741
- i += 1;
6742
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
6743
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
6719
+ for (var i = 0; i < string.length; ++i) {
6720
+ var c = string.charCodeAt(i);
6721
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
6722
+ out += string.charAt(i);
6723
+ continue;
6724
+ }
6725
+ if (c < 128) {
6726
+ out = out + hexTable[c];
6727
+ continue;
6728
+ }
6729
+ if (c < 2048) {
6730
+ out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
6731
+ continue;
6732
+ }
6733
+ if (c < 55296 || c >= 57344) {
6734
+ out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
6735
+ continue;
6744
6736
  }
6745
- out += arr.join("");
6737
+ i += 1;
6738
+ c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
6739
+ out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
6746
6740
  }
6747
6741
  return out;
6748
6742
  };
@@ -6832,13 +6826,10 @@ var require_stringify = __commonJS({
6832
6826
  var defaults = {
6833
6827
  addQueryPrefix: false,
6834
6828
  allowDots: false,
6835
- allowEmptyArrays: false,
6836
- arrayFormat: "indices",
6837
6829
  charset: "utf-8",
6838
6830
  charsetSentinel: false,
6839
6831
  delimiter: "&",
6840
6832
  encode: true,
6841
- encodeDotInKeys: false,
6842
6833
  encoder: utils.encode,
6843
6834
  encodeValuesOnly: false,
6844
6835
  format: defaultFormat,
@@ -6855,7 +6846,7 @@ var require_stringify = __commonJS({
6855
6846
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
6856
6847
  };
6857
6848
  var sentinel = {};
6858
- var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
6849
+ var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
6859
6850
  var obj = object;
6860
6851
  var tmpSc = sideChannel;
6861
6852
  var step = 0;
@@ -6915,19 +6906,14 @@ var require_stringify = __commonJS({
6915
6906
  var keys = Object.keys(obj);
6916
6907
  objKeys = sort ? keys.sort(sort) : keys;
6917
6908
  }
6918
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
6919
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
6920
- if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
6921
- return adjustedPrefix + "[]";
6922
- }
6909
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + "[]" : prefix;
6923
6910
  for (var j = 0; j < objKeys.length; ++j) {
6924
6911
  var key = objKeys[j];
6925
6912
  var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
6926
6913
  if (skipNulls && value === null) {
6927
6914
  continue;
6928
6915
  }
6929
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
6930
- var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
6916
+ var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
6931
6917
  sideChannel.set(object, step);
6932
6918
  var valueSideChannel = getSideChannel();
6933
6919
  valueSideChannel.set(sentinel, sideChannel);
@@ -6936,10 +6922,8 @@ var require_stringify = __commonJS({
6936
6922
  keyPrefix,
6937
6923
  generateArrayPrefix,
6938
6924
  commaRoundTrip,
6939
- allowEmptyArrays,
6940
6925
  strictNullHandling,
6941
6926
  skipNulls,
6942
- encodeDotInKeys,
6943
6927
  generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
6944
6928
  filter,
6945
6929
  sort,
@@ -6958,12 +6942,6 @@ var require_stringify = __commonJS({
6958
6942
  if (!opts) {
6959
6943
  return defaults;
6960
6944
  }
6961
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
6962
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
6963
- }
6964
- if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
6965
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
6966
- }
6967
6945
  if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
6968
6946
  throw new TypeError("Encoder has to be a function.");
6969
6947
  }
@@ -6983,29 +6961,13 @@ var require_stringify = __commonJS({
6983
6961
  if (typeof opts.filter === "function" || isArray(opts.filter)) {
6984
6962
  filter = opts.filter;
6985
6963
  }
6986
- var arrayFormat;
6987
- if (opts.arrayFormat in arrayPrefixGenerators) {
6988
- arrayFormat = opts.arrayFormat;
6989
- } else if ("indices" in opts) {
6990
- arrayFormat = opts.indices ? "indices" : "repeat";
6991
- } else {
6992
- arrayFormat = defaults.arrayFormat;
6993
- }
6994
- if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
6995
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
6996
- }
6997
- var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
6998
6964
  return {
6999
6965
  addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
7000
- allowDots,
7001
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
7002
- arrayFormat,
6966
+ allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
7003
6967
  charset,
7004
6968
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
7005
- commaRoundTrip: opts.commaRoundTrip,
7006
6969
  delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
7007
6970
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
7008
- encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
7009
6971
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
7010
6972
  encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
7011
6973
  filter,
@@ -7033,8 +6995,19 @@ var require_stringify = __commonJS({
7033
6995
  if (typeof obj !== "object" || obj === null) {
7034
6996
  return "";
7035
6997
  }
7036
- var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
7037
- var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
6998
+ var arrayFormat;
6999
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
7000
+ arrayFormat = opts.arrayFormat;
7001
+ } else if (opts && "indices" in opts) {
7002
+ arrayFormat = opts.indices ? "indices" : "repeat";
7003
+ } else {
7004
+ arrayFormat = "indices";
7005
+ }
7006
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
7007
+ if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
7008
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
7009
+ }
7010
+ var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
7038
7011
  if (!objKeys) {
7039
7012
  objKeys = Object.keys(obj);
7040
7013
  }
@@ -7052,10 +7025,8 @@ var require_stringify = __commonJS({
7052
7025
  key,
7053
7026
  generateArrayPrefix,
7054
7027
  commaRoundTrip,
7055
- options.allowEmptyArrays,
7056
7028
  options.strictNullHandling,
7057
7029
  options.skipNulls,
7058
- options.encodeDotInKeys,
7059
7030
  options.encode ? options.encoder : null,
7060
7031
  options.filter,
7061
7032
  options.sort,
@@ -7091,18 +7062,15 @@ var require_parse = __commonJS({
7091
7062
  var isArray = Array.isArray;
7092
7063
  var defaults = {
7093
7064
  allowDots: false,
7094
- allowEmptyArrays: false,
7095
7065
  allowPrototypes: false,
7096
7066
  allowSparse: false,
7097
7067
  arrayLimit: 20,
7098
7068
  charset: "utf-8",
7099
7069
  charsetSentinel: false,
7100
7070
  comma: false,
7101
- decodeDotInKeys: false,
7102
7071
  decoder: utils.decode,
7103
7072
  delimiter: "&",
7104
7073
  depth: 5,
7105
- duplicates: "combine",
7106
7074
  ignoreQueryPrefix: false,
7107
7075
  interpretNumericEntities: false,
7108
7076
  parameterLimit: 1e3,
@@ -7170,10 +7138,9 @@ var require_parse = __commonJS({
7170
7138
  if (part.indexOf("[]=") > -1) {
7171
7139
  val = isArray(val) ? [val] : val;
7172
7140
  }
7173
- var existing = has.call(obj, key);
7174
- if (existing && options.duplicates === "combine") {
7141
+ if (has.call(obj, key)) {
7175
7142
  obj[key] = utils.combine(obj[key], val);
7176
- } else if (!existing || options.duplicates === "last") {
7143
+ } else {
7177
7144
  obj[key] = val;
7178
7145
  }
7179
7146
  }
@@ -7185,19 +7152,18 @@ var require_parse = __commonJS({
7185
7152
  var obj;
7186
7153
  var root = chain[i];
7187
7154
  if (root === "[]" && options.parseArrays) {
7188
- obj = options.allowEmptyArrays && leaf === "" ? [] : [].concat(leaf);
7155
+ obj = [].concat(leaf);
7189
7156
  } else {
7190
7157
  obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
7191
7158
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
7192
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
7193
- var index = parseInt(decodedRoot, 10);
7194
- if (!options.parseArrays && decodedRoot === "") {
7159
+ var index = parseInt(cleanRoot, 10);
7160
+ if (!options.parseArrays && cleanRoot === "") {
7195
7161
  obj = { 0: leaf };
7196
- } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
7162
+ } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
7197
7163
  obj = [];
7198
7164
  obj[index] = leaf;
7199
- } else if (decodedRoot !== "__proto__") {
7200
- obj[decodedRoot] = leaf;
7165
+ } else if (cleanRoot !== "__proto__") {
7166
+ obj[cleanRoot] = leaf;
7201
7167
  }
7202
7168
  }
7203
7169
  leaf = obj;
@@ -7241,39 +7207,25 @@ var require_parse = __commonJS({
7241
7207
  if (!opts) {
7242
7208
  return defaults;
7243
7209
  }
7244
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
7245
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
7246
- }
7247
- if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
7248
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
7249
- }
7250
- if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
7210
+ if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
7251
7211
  throw new TypeError("Decoder has to be a function.");
7252
7212
  }
7253
7213
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
7254
7214
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
7255
7215
  }
7256
7216
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
7257
- var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
7258
- if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
7259
- throw new TypeError("The duplicates option must be either combine, first, or last");
7260
- }
7261
- var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
7262
7217
  return {
7263
- allowDots,
7264
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
7218
+ allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
7265
7219
  allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
7266
7220
  allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
7267
7221
  arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
7268
7222
  charset,
7269
7223
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
7270
7224
  comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
7271
- decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
7272
7225
  decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
7273
7226
  delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
7274
7227
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
7275
7228
  depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
7276
- duplicates,
7277
7229
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
7278
7230
  interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
7279
7231
  parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
@@ -13155,7 +13107,7 @@ function toPrimitive(t, r) {
13155
13107
  // ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
13156
13108
  function toPropertyKey(t) {
13157
13109
  var i = toPrimitive(t, "string");
13158
- return "symbol" == _typeof(i) ? i : i + "";
13110
+ return "symbol" == _typeof(i) ? i : String(i);
13159
13111
  }
13160
13112
 
13161
13113
  // ../node_modules/@babel/runtime/helpers/esm/createClass.js
@@ -13207,24 +13159,6 @@ function _assertThisInitialized(self2) {
13207
13159
  return self2;
13208
13160
  }
13209
13161
 
13210
- // ../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
13211
- function _possibleConstructorReturn(self2, call) {
13212
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
13213
- return call;
13214
- } else if (call !== void 0) {
13215
- throw new TypeError("Derived constructors may only return object or undefined");
13216
- }
13217
- return _assertThisInitialized(self2);
13218
- }
13219
-
13220
- // ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
13221
- function _getPrototypeOf(o) {
13222
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
13223
- return o2.__proto__ || Object.getPrototypeOf(o2);
13224
- };
13225
- return _getPrototypeOf(o);
13226
- }
13227
-
13228
13162
  // ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
13229
13163
  function _setPrototypeOf(o, p) {
13230
13164
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
@@ -13253,6 +13187,24 @@ function _inherits(subClass, superClass) {
13253
13187
  _setPrototypeOf(subClass, superClass);
13254
13188
  }
13255
13189
 
13190
+ // ../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
13191
+ function _possibleConstructorReturn(self2, call) {
13192
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
13193
+ return call;
13194
+ } else if (call !== void 0) {
13195
+ throw new TypeError("Derived constructors may only return object or undefined");
13196
+ }
13197
+ return _assertThisInitialized(self2);
13198
+ }
13199
+
13200
+ // ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
13201
+ function _getPrototypeOf(o) {
13202
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
13203
+ return o2.__proto__ || Object.getPrototypeOf(o2);
13204
+ };
13205
+ return _getPrototypeOf(o);
13206
+ }
13207
+
13256
13208
  // ../node_modules/rdflib/esm/class-order.js
13257
13209
  var ClassOrder = {
13258
13210
  "Literal": 1,
@@ -13273,7 +13225,7 @@ var Node2 = /* @__PURE__ */ function() {
13273
13225
  _defineProperty(this, "value", void 0);
13274
13226
  this.value = value;
13275
13227
  }
13276
- return _createClass(Node3, [{
13228
+ _createClass(Node3, [{
13277
13229
  key: "substitute",
13278
13230
  value: function substitute(bindings) {
13279
13231
  return this;
@@ -13363,37 +13315,54 @@ var Node2 = /* @__PURE__ */ function() {
13363
13315
  throw new Error("Node.toString() is abstract - see the subclasses instead");
13364
13316
  }
13365
13317
  }]);
13318
+ return Node3;
13366
13319
  }();
13367
13320
  _defineProperty(Node2, "fromValue", void 0);
13368
13321
  _defineProperty(Node2, "toJS", void 0);
13369
13322
 
13370
13323
  // ../node_modules/rdflib/esm/blank-node.js
13371
- function _callSuper(t, o, e) {
13372
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13324
+ function _createSuper(Derived) {
13325
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
13326
+ return function _createSuperInternal() {
13327
+ var Super = _getPrototypeOf(Derived), result;
13328
+ if (hasNativeReflectConstruct) {
13329
+ var NewTarget = _getPrototypeOf(this).constructor;
13330
+ result = Reflect.construct(Super, arguments, NewTarget);
13331
+ } else {
13332
+ result = Super.apply(this, arguments);
13333
+ }
13334
+ return _possibleConstructorReturn(this, result);
13335
+ };
13373
13336
  }
13374
13337
  function _isNativeReflectConstruct() {
13338
+ if (typeof Reflect === "undefined" || !Reflect.construct)
13339
+ return false;
13340
+ if (Reflect.construct.sham)
13341
+ return false;
13342
+ if (typeof Proxy === "function")
13343
+ return true;
13375
13344
  try {
13376
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13345
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13377
13346
  }));
13378
- } catch (t2) {
13347
+ return true;
13348
+ } catch (e) {
13349
+ return false;
13379
13350
  }
13380
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct10() {
13381
- return !!t;
13382
- })();
13383
13351
  }
13384
13352
  var BlankNode = /* @__PURE__ */ function(_Node) {
13353
+ _inherits(BlankNode3, _Node);
13354
+ var _super = _createSuper(BlankNode3);
13385
13355
  function BlankNode3(id3) {
13386
13356
  var _this;
13387
13357
  _classCallCheck(this, BlankNode3);
13388
- _this = _callSuper(this, BlankNode3, [BlankNode3.getId(id3)]);
13389
- _defineProperty(_this, "termType", BlankNodeTermType);
13390
- _defineProperty(_this, "classOrder", class_order_default.BlankNode);
13391
- _defineProperty(_this, "isBlank", 1);
13392
- _defineProperty(_this, "isVar", 1);
13358
+ _this = _super.call(this, BlankNode3.getId(id3));
13359
+ _defineProperty(_assertThisInitialized(_this), "termType", BlankNodeTermType);
13360
+ _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.BlankNode);
13361
+ _defineProperty(_assertThisInitialized(_this), "isBlank", 1);
13362
+ _defineProperty(_assertThisInitialized(_this), "isVar", 1);
13393
13363
  return _this;
13394
13364
  }
13395
- _inherits(BlankNode3, _Node);
13396
- return _createClass(BlankNode3, [{
13365
+ _createClass(BlankNode3, [{
13397
13366
  key: "id",
13398
13367
  get: function get() {
13399
13368
  return this.value;
@@ -13455,6 +13424,7 @@ var BlankNode = /* @__PURE__ */ function(_Node) {
13455
13424
  return "n" + BlankNode3.nextId++;
13456
13425
  }
13457
13426
  }]);
13427
+ return BlankNode3;
13458
13428
  }(Node2);
13459
13429
  _defineProperty(BlankNode, "nextId", 0);
13460
13430
  _defineProperty(BlankNode, "NTAnonymousNodePrefix", "_:");
@@ -13468,26 +13438,43 @@ function termValue(node) {
13468
13438
  }
13469
13439
 
13470
13440
  // ../node_modules/rdflib/esm/named-node.js
13471
- function _callSuper2(t, o, e) {
13472
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13441
+ function _createSuper2(Derived) {
13442
+ var hasNativeReflectConstruct = _isNativeReflectConstruct2();
13443
+ return function _createSuperInternal() {
13444
+ var Super = _getPrototypeOf(Derived), result;
13445
+ if (hasNativeReflectConstruct) {
13446
+ var NewTarget = _getPrototypeOf(this).constructor;
13447
+ result = Reflect.construct(Super, arguments, NewTarget);
13448
+ } else {
13449
+ result = Super.apply(this, arguments);
13450
+ }
13451
+ return _possibleConstructorReturn(this, result);
13452
+ };
13473
13453
  }
13474
13454
  function _isNativeReflectConstruct2() {
13455
+ if (typeof Reflect === "undefined" || !Reflect.construct)
13456
+ return false;
13457
+ if (Reflect.construct.sham)
13458
+ return false;
13459
+ if (typeof Proxy === "function")
13460
+ return true;
13475
13461
  try {
13476
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13462
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13477
13463
  }));
13478
- } catch (t2) {
13464
+ return true;
13465
+ } catch (e) {
13466
+ return false;
13479
13467
  }
13480
- return (_isNativeReflectConstruct2 = function _isNativeReflectConstruct10() {
13481
- return !!t;
13482
- })();
13483
13468
  }
13484
13469
  var NamedNode = /* @__PURE__ */ function(_Node) {
13470
+ _inherits(NamedNode3, _Node);
13471
+ var _super = _createSuper2(NamedNode3);
13485
13472
  function NamedNode3(iri) {
13486
13473
  var _this;
13487
13474
  _classCallCheck(this, NamedNode3);
13488
- _this = _callSuper2(this, NamedNode3, [termValue(iri)]);
13489
- _defineProperty(_this, "termType", NamedNodeTermType);
13490
- _defineProperty(_this, "classOrder", class_order_default.NamedNode);
13475
+ _this = _super.call(this, termValue(iri));
13476
+ _defineProperty(_assertThisInitialized(_this), "termType", NamedNodeTermType);
13477
+ _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.NamedNode);
13491
13478
  if (!_this.value) {
13492
13479
  throw new Error("Missing IRI for NamedNode");
13493
13480
  }
@@ -13500,8 +13487,7 @@ var NamedNode = /* @__PURE__ */ function(_Node) {
13500
13487
  }
13501
13488
  return _this;
13502
13489
  }
13503
- _inherits(NamedNode3, _Node);
13504
- return _createClass(NamedNode3, [{
13490
+ _createClass(NamedNode3, [{
13505
13491
  key: "dir",
13506
13492
  value: function dir() {
13507
13493
  var str = this.value.split("#")[0];
@@ -13581,6 +13567,7 @@ var NamedNode = /* @__PURE__ */ function(_Node) {
13581
13567
  return new NamedNode3(value);
13582
13568
  }
13583
13569
  }]);
13570
+ return NamedNode3;
13584
13571
  }(Node2);
13585
13572
 
13586
13573
  // ../node_modules/rdflib/esm/xsd-internal.js
@@ -13595,29 +13582,46 @@ var xsd_internal_default = {
13595
13582
  };
13596
13583
 
13597
13584
  // ../node_modules/rdflib/esm/literal.js
13598
- function _callSuper3(t, o, e) {
13599
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13585
+ function _createSuper3(Derived) {
13586
+ var hasNativeReflectConstruct = _isNativeReflectConstruct3();
13587
+ return function _createSuperInternal() {
13588
+ var Super = _getPrototypeOf(Derived), result;
13589
+ if (hasNativeReflectConstruct) {
13590
+ var NewTarget = _getPrototypeOf(this).constructor;
13591
+ result = Reflect.construct(Super, arguments, NewTarget);
13592
+ } else {
13593
+ result = Super.apply(this, arguments);
13594
+ }
13595
+ return _possibleConstructorReturn(this, result);
13596
+ };
13600
13597
  }
13601
13598
  function _isNativeReflectConstruct3() {
13599
+ if (typeof Reflect === "undefined" || !Reflect.construct)
13600
+ return false;
13601
+ if (Reflect.construct.sham)
13602
+ return false;
13603
+ if (typeof Proxy === "function")
13604
+ return true;
13602
13605
  try {
13603
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13606
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13604
13607
  }));
13605
- } catch (t2) {
13608
+ return true;
13609
+ } catch (e) {
13610
+ return false;
13606
13611
  }
13607
- return (_isNativeReflectConstruct3 = function _isNativeReflectConstruct10() {
13608
- return !!t;
13609
- })();
13610
13612
  }
13611
13613
  var Literal = /* @__PURE__ */ function(_Node) {
13614
+ _inherits(Literal3, _Node);
13615
+ var _super = _createSuper3(Literal3);
13612
13616
  function Literal3(value, language, datatype) {
13613
13617
  var _this;
13614
13618
  _classCallCheck(this, Literal3);
13615
- _this = _callSuper3(this, Literal3, [value]);
13616
- _defineProperty(_this, "termType", LiteralTermType);
13617
- _defineProperty(_this, "classOrder", class_order_default.Literal);
13618
- _defineProperty(_this, "datatype", xsd_internal_default.string);
13619
- _defineProperty(_this, "isVar", 0);
13620
- _defineProperty(_this, "language", "");
13619
+ _this = _super.call(this, value);
13620
+ _defineProperty(_assertThisInitialized(_this), "termType", LiteralTermType);
13621
+ _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Literal);
13622
+ _defineProperty(_assertThisInitialized(_this), "datatype", xsd_internal_default.string);
13623
+ _defineProperty(_assertThisInitialized(_this), "isVar", 0);
13624
+ _defineProperty(_assertThisInitialized(_this), "language", "");
13621
13625
  if (language) {
13622
13626
  _this.language = language;
13623
13627
  _this.datatype = xsd_internal_default.langString;
@@ -13628,8 +13632,7 @@ var Literal = /* @__PURE__ */ function(_Node) {
13628
13632
  }
13629
13633
  return _this;
13630
13634
  }
13631
- _inherits(Literal3, _Node);
13632
- return _createClass(Literal3, [{
13635
+ _createClass(Literal3, [{
13633
13636
  key: "copy",
13634
13637
  value: function copy() {
13635
13638
  return new Literal3(this.value, this.lang, this.datatype);
@@ -13760,6 +13763,7 @@ var Literal = /* @__PURE__ */ function(_Node) {
13760
13763
  throw new Error("Can't make literal from " + value + " of type " + _typeof(value));
13761
13764
  }
13762
13765
  }]);
13766
+ return Literal3;
13763
13767
  }(Node2);
13764
13768
 
13765
13769
  // ../node_modules/rdflib/esm/utils/default-graph-uri.js
@@ -13767,31 +13771,47 @@ var defaultGraphURI = "chrome:theSession";
13767
13771
  var defaultGraphNode = new NamedNode(defaultGraphURI);
13768
13772
 
13769
13773
  // ../node_modules/rdflib/esm/default-graph.js
13770
- function _callSuper4(t, o, e) {
13771
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13774
+ function _createSuper4(Derived) {
13775
+ var hasNativeReflectConstruct = _isNativeReflectConstruct4();
13776
+ return function _createSuperInternal() {
13777
+ var Super = _getPrototypeOf(Derived), result;
13778
+ if (hasNativeReflectConstruct) {
13779
+ var NewTarget = _getPrototypeOf(this).constructor;
13780
+ result = Reflect.construct(Super, arguments, NewTarget);
13781
+ } else {
13782
+ result = Super.apply(this, arguments);
13783
+ }
13784
+ return _possibleConstructorReturn(this, result);
13785
+ };
13772
13786
  }
13773
13787
  function _isNativeReflectConstruct4() {
13788
+ if (typeof Reflect === "undefined" || !Reflect.construct)
13789
+ return false;
13790
+ if (Reflect.construct.sham)
13791
+ return false;
13792
+ if (typeof Proxy === "function")
13793
+ return true;
13774
13794
  try {
13775
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13795
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13776
13796
  }));
13777
- } catch (t2) {
13797
+ return true;
13798
+ } catch (e) {
13799
+ return false;
13778
13800
  }
13779
- return (_isNativeReflectConstruct4 = function _isNativeReflectConstruct10() {
13780
- return !!t;
13781
- })();
13782
13801
  }
13783
13802
  var DefaultGraph = /* @__PURE__ */ function(_Node) {
13803
+ _inherits(DefaultGraph3, _Node);
13804
+ var _super = _createSuper4(DefaultGraph3);
13784
13805
  function DefaultGraph3() {
13785
13806
  var _this;
13786
13807
  _classCallCheck(this, DefaultGraph3);
13787
- _this = _callSuper4(this, DefaultGraph3, [""]);
13788
- _defineProperty(_this, "value", "");
13789
- _defineProperty(_this, "termType", DefaultGraphTermType);
13790
- _defineProperty(_this, "uri", defaultGraphURI);
13808
+ _this = _super.call(this, "");
13809
+ _defineProperty(_assertThisInitialized(_this), "value", "");
13810
+ _defineProperty(_assertThisInitialized(_this), "termType", DefaultGraphTermType);
13811
+ _defineProperty(_assertThisInitialized(_this), "uri", defaultGraphURI);
13791
13812
  return _this;
13792
13813
  }
13793
- _inherits(DefaultGraph3, _Node);
13794
- return _createClass(DefaultGraph3, [{
13814
+ _createClass(DefaultGraph3, [{
13795
13815
  key: "toCanonical",
13796
13816
  value: function toCanonical() {
13797
13817
  return this.value;
@@ -13802,6 +13822,7 @@ var DefaultGraph = /* @__PURE__ */ function(_Node) {
13802
13822
  return "DefaultGraph";
13803
13823
  }
13804
13824
  }]);
13825
+ return DefaultGraph3;
13805
13826
  }(Node2);
13806
13827
  function isDefaultGraph(object) {
13807
13828
  return !!object && object.termType === DefaultGraphTermType;
@@ -13821,7 +13842,7 @@ var Statement = /* @__PURE__ */ function() {
13821
13842
  this.object = Node2.fromValue(object);
13822
13843
  this.graph = graph3 == void 0 ? defaultGraph : Node2.fromValue(graph3);
13823
13844
  }
13824
- return _createClass(Statement2, [{
13845
+ _createClass(Statement2, [{
13825
13846
  key: "why",
13826
13847
  get: function get() {
13827
13848
  return this.graph;
@@ -13877,6 +13898,7 @@ var Statement = /* @__PURE__ */ function() {
13877
13898
  return this.toNT();
13878
13899
  }
13879
13900
  }]);
13901
+ return Statement2;
13880
13902
  }();
13881
13903
 
13882
13904
  // ../node_modules/rdflib/esm/uri.js
@@ -14049,36 +14071,52 @@ function refTo(base, uri) {
14049
14071
  }
14050
14072
 
14051
14073
  // ../node_modules/rdflib/esm/variable.js
14052
- function _callSuper5(t, o, e) {
14053
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
14074
+ function _createSuper5(Derived) {
14075
+ var hasNativeReflectConstruct = _isNativeReflectConstruct5();
14076
+ return function _createSuperInternal() {
14077
+ var Super = _getPrototypeOf(Derived), result;
14078
+ if (hasNativeReflectConstruct) {
14079
+ var NewTarget = _getPrototypeOf(this).constructor;
14080
+ result = Reflect.construct(Super, arguments, NewTarget);
14081
+ } else {
14082
+ result = Super.apply(this, arguments);
14083
+ }
14084
+ return _possibleConstructorReturn(this, result);
14085
+ };
14054
14086
  }
14055
14087
  function _isNativeReflectConstruct5() {
14088
+ if (typeof Reflect === "undefined" || !Reflect.construct)
14089
+ return false;
14090
+ if (Reflect.construct.sham)
14091
+ return false;
14092
+ if (typeof Proxy === "function")
14093
+ return true;
14056
14094
  try {
14057
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14095
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14058
14096
  }));
14059
- } catch (t2) {
14097
+ return true;
14098
+ } catch (e) {
14099
+ return false;
14060
14100
  }
14061
- return (_isNativeReflectConstruct5 = function _isNativeReflectConstruct10() {
14062
- return !!t;
14063
- })();
14064
14101
  }
14065
14102
  var Variable = /* @__PURE__ */ function(_Node) {
14103
+ _inherits(Variable3, _Node);
14104
+ var _super = _createSuper5(Variable3);
14066
14105
  function Variable3() {
14067
14106
  var _this;
14068
14107
  var name = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
14069
14108
  _classCallCheck(this, Variable3);
14070
- _this = _callSuper5(this, Variable3, [name]);
14071
- _defineProperty(_this, "termType", VariableTermType);
14072
- _defineProperty(_this, "base", "varid:");
14073
- _defineProperty(_this, "classOrder", class_order_default.Variable);
14074
- _defineProperty(_this, "isVar", 1);
14075
- _defineProperty(_this, "uri", void 0);
14109
+ _this = _super.call(this, name);
14110
+ _defineProperty(_assertThisInitialized(_this), "termType", VariableTermType);
14111
+ _defineProperty(_assertThisInitialized(_this), "base", "varid:");
14112
+ _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Variable);
14113
+ _defineProperty(_assertThisInitialized(_this), "isVar", 1);
14114
+ _defineProperty(_assertThisInitialized(_this), "uri", void 0);
14076
14115
  _this.base = "varid:";
14077
14116
  _this.uri = join(name, _this.base);
14078
14117
  return _this;
14079
14118
  }
14080
- _inherits(Variable3, _Node);
14081
- return _createClass(Variable3, [{
14119
+ _createClass(Variable3, [{
14082
14120
  key: "equals",
14083
14121
  value: function equals2(other) {
14084
14122
  if (!other) {
@@ -14111,6 +14149,7 @@ var Variable = /* @__PURE__ */ function(_Node) {
14111
14149
  return "?".concat(variable4.uri);
14112
14150
  }
14113
14151
  }]);
14152
+ return Variable3;
14114
14153
  }(Node2);
14115
14154
 
14116
14155
  // ../node_modules/rdflib/esm/factories/factory-types.js
@@ -14126,9 +14165,10 @@ var Feature = /* @__PURE__ */ function(Feature2) {
14126
14165
  }({});
14127
14166
 
14128
14167
  // ../node_modules/rdflib/esm/factories/canonical-data-factory.js
14168
+ var _supports;
14129
14169
  var _defaultGraph = new DefaultGraph();
14130
14170
  var CanonicalDataFactory = {
14131
- supports: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Feature.collections, false), Feature.defaultGraphType, false), Feature.equalsMethod, true), Feature.identity, false), Feature.id, true), Feature.reversibleId, false), Feature.variableType, true),
14171
+ supports: (_supports = {}, _defineProperty(_supports, Feature.collections, false), _defineProperty(_supports, Feature.defaultGraphType, false), _defineProperty(_supports, Feature.equalsMethod, true), _defineProperty(_supports, Feature.identity, false), _defineProperty(_supports, Feature.id, true), _defineProperty(_supports, Feature.reversibleId, false), _defineProperty(_supports, Feature.variableType, true), _supports),
14132
14172
  /**
14133
14173
  * Creates a new blank node
14134
14174
  * @param value - The blank node's identifier
@@ -14279,18 +14319,33 @@ var CanonicalDataFactory = {
14279
14319
  var canonical_data_factory_default = CanonicalDataFactory;
14280
14320
 
14281
14321
  // ../node_modules/rdflib/esm/collection.js
14282
- function _callSuper6(t, o, e) {
14283
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
14322
+ function _createSuper6(Derived) {
14323
+ var hasNativeReflectConstruct = _isNativeReflectConstruct6();
14324
+ return function _createSuperInternal() {
14325
+ var Super = _getPrototypeOf(Derived), result;
14326
+ if (hasNativeReflectConstruct) {
14327
+ var NewTarget = _getPrototypeOf(this).constructor;
14328
+ result = Reflect.construct(Super, arguments, NewTarget);
14329
+ } else {
14330
+ result = Super.apply(this, arguments);
14331
+ }
14332
+ return _possibleConstructorReturn(this, result);
14333
+ };
14284
14334
  }
14285
14335
  function _isNativeReflectConstruct6() {
14336
+ if (typeof Reflect === "undefined" || !Reflect.construct)
14337
+ return false;
14338
+ if (Reflect.construct.sham)
14339
+ return false;
14340
+ if (typeof Proxy === "function")
14341
+ return true;
14286
14342
  try {
14287
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14343
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14288
14344
  }));
14289
- } catch (t2) {
14345
+ return true;
14346
+ } catch (e) {
14347
+ return false;
14290
14348
  }
14291
- return (_isNativeReflectConstruct6 = function _isNativeReflectConstruct10() {
14292
- return !!t;
14293
- })();
14294
14349
  }
14295
14350
  function fromValue(value) {
14296
14351
  if (typeof value === "undefined" || value === null) {
@@ -14305,16 +14360,18 @@ function fromValue(value) {
14305
14360
  return Literal.fromValue(value);
14306
14361
  }
14307
14362
  var Collection = /* @__PURE__ */ function(_Node) {
14363
+ _inherits(Collection2, _Node);
14364
+ var _super = _createSuper6(Collection2);
14308
14365
  function Collection2(initial) {
14309
14366
  var _this;
14310
14367
  _classCallCheck(this, Collection2);
14311
- _this = _callSuper6(this, Collection2, [(BlankNode.nextId++).toString()]);
14312
- _defineProperty(_this, "termType", CollectionTermType);
14313
- _defineProperty(_this, "classOrder", class_order_default.Collection);
14314
- _defineProperty(_this, "closed", false);
14315
- _defineProperty(_this, "compareTerm", BlankNode.prototype.compareTerm);
14316
- _defineProperty(_this, "elements", []);
14317
- _defineProperty(_this, "isVar", 0);
14368
+ _this = _super.call(this, (BlankNode.nextId++).toString());
14369
+ _defineProperty(_assertThisInitialized(_this), "termType", CollectionTermType);
14370
+ _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Collection);
14371
+ _defineProperty(_assertThisInitialized(_this), "closed", false);
14372
+ _defineProperty(_assertThisInitialized(_this), "compareTerm", BlankNode.prototype.compareTerm);
14373
+ _defineProperty(_assertThisInitialized(_this), "elements", []);
14374
+ _defineProperty(_assertThisInitialized(_this), "isVar", 0);
14318
14375
  if (initial && initial.length > 0) {
14319
14376
  initial.forEach(function(element) {
14320
14377
  _this.elements.push(fromValue(element));
@@ -14322,8 +14379,7 @@ var Collection = /* @__PURE__ */ function(_Node) {
14322
14379
  }
14323
14380
  return _this;
14324
14381
  }
14325
- _inherits(Collection2, _Node);
14326
- return _createClass(Collection2, [{
14382
+ _createClass(Collection2, [{
14327
14383
  key: "id",
14328
14384
  get: function get() {
14329
14385
  return this.value;
@@ -14400,6 +14456,7 @@ var Collection = /* @__PURE__ */ function(_Node) {
14400
14456
  return BlankNode.NTAnonymousNodePrefix + collection2.id;
14401
14457
  }
14402
14458
  }]);
14459
+ return Collection2;
14403
14460
  }(Node2);
14404
14461
  _defineProperty(Collection, "termType", CollectionTermType);
14405
14462
 
@@ -14689,7 +14746,7 @@ var Serializer = /* @__PURE__ */ function() {
14689
14746
  this.rdfFactory = store.rdfFactory || canonical_data_factory_default;
14690
14747
  this.xsd = createXSD(this.rdfFactory);
14691
14748
  }
14692
- return _createClass(Serializer2, [{
14749
+ _createClass(Serializer2, [{
14693
14750
  key: "setBase",
14694
14751
  value: function setBase(base) {
14695
14752
  this.base = base;
@@ -15558,6 +15615,7 @@ var Serializer = /* @__PURE__ */ function() {
15558
15615
  return JSON.stringify(jsonldObj, null, 2);
15559
15616
  }
15560
15617
  }]);
15618
+ return Serializer2;
15561
15619
  }();
15562
15620
  function hexify(str) {
15563
15621
  return encodeURI(str);
@@ -15736,20 +15794,37 @@ function _arrayLikeToArray(arr, len) {
15736
15794
  arr2[i] = arr[i];
15737
15795
  return arr2;
15738
15796
  }
15739
- function _callSuper7(t, o, e) {
15740
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
15797
+ function _createSuper7(Derived) {
15798
+ var hasNativeReflectConstruct = _isNativeReflectConstruct7();
15799
+ return function _createSuperInternal() {
15800
+ var Super = _getPrototypeOf(Derived), result;
15801
+ if (hasNativeReflectConstruct) {
15802
+ var NewTarget = _getPrototypeOf(this).constructor;
15803
+ result = Reflect.construct(Super, arguments, NewTarget);
15804
+ } else {
15805
+ result = Super.apply(this, arguments);
15806
+ }
15807
+ return _possibleConstructorReturn(this, result);
15808
+ };
15741
15809
  }
15742
15810
  function _isNativeReflectConstruct7() {
15811
+ if (typeof Reflect === "undefined" || !Reflect.construct)
15812
+ return false;
15813
+ if (Reflect.construct.sham)
15814
+ return false;
15815
+ if (typeof Proxy === "function")
15816
+ return true;
15743
15817
  try {
15744
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
15818
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
15745
15819
  }));
15746
- } catch (t2) {
15820
+ return true;
15821
+ } catch (e) {
15822
+ return false;
15747
15823
  }
15748
- return (_isNativeReflectConstruct7 = function _isNativeReflectConstruct10() {
15749
- return !!t;
15750
- })();
15751
15824
  }
15752
15825
  var Formula = /* @__PURE__ */ function(_Node) {
15826
+ _inherits(Formula2, _Node);
15827
+ var _super = _createSuper7(Formula2);
15753
15828
  function Formula2() {
15754
15829
  var _this;
15755
15830
  var statements = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
@@ -15758,17 +15833,17 @@ var Formula = /* @__PURE__ */ function(_Node) {
15758
15833
  var optional = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : [];
15759
15834
  var opts = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {};
15760
15835
  _classCallCheck(this, Formula2);
15761
- _this = _callSuper7(this, Formula2, [""]);
15836
+ _this = _super.call(this, "");
15762
15837
  _this.statements = statements;
15763
15838
  _this.constraints = constraints;
15764
15839
  _this.initBindings = initBindings;
15765
15840
  _this.optional = optional;
15766
- _defineProperty(_this, "termType", GraphTermType);
15767
- _defineProperty(_this, "classOrder", class_order_default.Graph);
15768
- _defineProperty(_this, "fetcher", void 0);
15769
- _defineProperty(_this, "isVar", 0);
15770
- _defineProperty(_this, "ns", Namespace);
15771
- _defineProperty(_this, "rdfFactory", void 0);
15841
+ _defineProperty(_assertThisInitialized(_this), "termType", GraphTermType);
15842
+ _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Graph);
15843
+ _defineProperty(_assertThisInitialized(_this), "fetcher", void 0);
15844
+ _defineProperty(_assertThisInitialized(_this), "isVar", 0);
15845
+ _defineProperty(_assertThisInitialized(_this), "ns", Namespace);
15846
+ _defineProperty(_assertThisInitialized(_this), "rdfFactory", void 0);
15772
15847
  _this.rdfFactory = opts && opts.rdfFactory || canonical_data_factory_default;
15773
15848
  var _iterator = _createForOfIteratorHelper(appliedFactoryMethods), _step;
15774
15849
  try {
@@ -15789,8 +15864,7 @@ var Formula = /* @__PURE__ */ function(_Node) {
15789
15864
  }
15790
15865
  return _this;
15791
15866
  }
15792
- _inherits(Formula2, _Node);
15793
- return _createClass(Formula2, [{
15867
+ _createClass(Formula2, [{
15794
15868
  key: "add",
15795
15869
  value: function add(subject, predicate, object, graph3) {
15796
15870
  var _this2 = this;
@@ -16517,6 +16591,7 @@ var Formula = /* @__PURE__ */ function(_Node) {
16517
16591
  return this.statementsMatching(s, p, o, g, false).length;
16518
16592
  }
16519
16593
  }]);
16594
+ return Formula2;
16520
16595
  }(Node2);
16521
16596
 
16522
16597
  // ../node_modules/rdflib/esm/node.js
@@ -17302,7 +17377,7 @@ var SinkParser = /* @__PURE__ */ function() {
17302
17377
  this._context = this._formula;
17303
17378
  this._parentContext = null;
17304
17379
  }
17305
- return _createClass(SinkParser2, [{
17380
+ _createClass(SinkParser2, [{
17306
17381
  key: "here",
17307
17382
  value: function here(i) {
17308
17383
  return this._genPrefix + "_L" + this.lines + "C" + (i - this.startOfLine + 1);
@@ -18428,6 +18503,7 @@ var SinkParser = /* @__PURE__ */ function() {
18428
18503
  return new pyjslib_Tuple([j, uch]);
18429
18504
  }
18430
18505
  }]);
18506
+ return SinkParser2;
18431
18507
  }();
18432
18508
  function __OLD_BadSyntax(uri, lines, str, i, why) {
18433
18509
  this._str = str.encode("utf-8");
@@ -18465,29 +18541,30 @@ function BadSyntax(uri, lines, str, i, why) {
18465
18541
  }
18466
18542
 
18467
18543
  // ../node_modules/rdflib/esm/factories/extended-term-factory.js
18468
- function ownKeys(e, r) {
18469
- var t = Object.keys(e);
18544
+ var _supports2;
18545
+ function ownKeys(object, enumerableOnly) {
18546
+ var keys = Object.keys(object);
18470
18547
  if (Object.getOwnPropertySymbols) {
18471
- var o = Object.getOwnPropertySymbols(e);
18472
- r && (o = o.filter(function(r2) {
18473
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
18474
- })), t.push.apply(t, o);
18548
+ var symbols = Object.getOwnPropertySymbols(object);
18549
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
18550
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
18551
+ })), keys.push.apply(keys, symbols);
18475
18552
  }
18476
- return t;
18553
+ return keys;
18477
18554
  }
18478
- function _objectSpread(e) {
18479
- for (var r = 1; r < arguments.length; r++) {
18480
- var t = null != arguments[r] ? arguments[r] : {};
18481
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
18482
- _defineProperty(e, r2, t[r2]);
18483
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
18484
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
18555
+ function _objectSpread(target) {
18556
+ for (var i = 1; i < arguments.length; i++) {
18557
+ var source = null != arguments[i] ? arguments[i] : {};
18558
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
18559
+ _defineProperty(target, key, source[key]);
18560
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
18561
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18485
18562
  });
18486
18563
  }
18487
- return e;
18564
+ return target;
18488
18565
  }
18489
18566
  var ExtendedTermFactory = _objectSpread(_objectSpread({}, canonical_data_factory_default), {}, {
18490
- supports: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Feature.collections, true), Feature.defaultGraphType, false), Feature.equalsMethod, true), Feature.identity, false), Feature.id, true), Feature.reversibleId, false), Feature.variableType, true),
18567
+ supports: (_supports2 = {}, _defineProperty(_supports2, Feature.collections, true), _defineProperty(_supports2, Feature.defaultGraphType, false), _defineProperty(_supports2, Feature.equalsMethod, true), _defineProperty(_supports2, Feature.identity, false), _defineProperty(_supports2, Feature.id, true), _defineProperty(_supports2, Feature.reversibleId, false), _defineProperty(_supports2, Feature.variableType, true), _supports2),
18491
18568
  /**
18492
18569
  * Creates a new collection
18493
18570
  * @param elements - The initial element
@@ -18614,9 +18691,6 @@ function createStatement(kb, id3, property, value, base) {
18614
18691
  return kb.rdfFactory.quad(id3, predicate, object, kb.rdfFactory.namedNode(base));
18615
18692
  }
18616
18693
 
18617
- // ../node_modules/n3/src/N3Lexer.js
18618
- var import_queue_microtask = __toESM(require_queue_microtask());
18619
-
18620
18694
  // ../node_modules/n3/src/IRIs.js
18621
18695
  var RDF2 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
18622
18696
  var XSD = "http://www.w3.org/2001/XMLSchema#";
@@ -18649,6 +18723,7 @@ var IRIs_default = {
18649
18723
  };
18650
18724
 
18651
18725
  // ../node_modules/n3/src/N3Lexer.js
18726
+ var import_queue_microtask = __toESM(require_queue_microtask());
18652
18727
  var { xsd } = IRIs_default;
18653
18728
  var escapeSequence = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g;
18654
18729
  var escapeReplacements = {
@@ -20197,7 +20272,7 @@ var RDFaProcessor = /* @__PURE__ */ function() {
20197
20272
  this.finishedHandlers = [];
20198
20273
  this.init();
20199
20274
  }
20200
- return _createClass(RDFaProcessor2, [{
20275
+ _createClass(RDFaProcessor2, [{
20201
20276
  key: "addTriple",
20202
20277
  value: function addTriple(origin, subject, predicate, object) {
20203
20278
  var su, ob, pr, or;
@@ -21073,6 +21148,7 @@ var RDFaProcessor = /* @__PURE__ */ function() {
21073
21148
  return str.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
21074
21149
  }
21075
21150
  }]);
21151
+ return RDFaProcessor2;
21076
21152
  }();
21077
21153
  RDFaProcessor.XMLLiteralURI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral";
21078
21154
  RDFaProcessor.HTMLLiteralURI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML";
@@ -21112,7 +21188,7 @@ var RDFParser = /* @__PURE__ */ function() {
21112
21188
  this.why = null;
21113
21189
  this.reify = false;
21114
21190
  }
21115
- return _createClass(RDFParser2, [{
21191
+ _createClass(RDFParser2, [{
21116
21192
  key: "frameFactory",
21117
21193
  value: (
21118
21194
  /**
@@ -21378,7 +21454,7 @@ var RDFParser = /* @__PURE__ */ function() {
21378
21454
  if (nv === "Literal") {
21379
21455
  frame.datatype = RDFParser2.ns.RDF + "XMLLiteral";
21380
21456
  frame = this.buildFrame(frame);
21381
- frame.addLiteral(dom.innerHTML || dom.childNodes);
21457
+ frame.addLiteral(dom.childNodes);
21382
21458
  dig = false;
21383
21459
  } else if (nv === "Resource") {
21384
21460
  frame = this.buildFrame(frame, frame.element);
@@ -21495,6 +21571,7 @@ var RDFParser = /* @__PURE__ */ function() {
21495
21571
  return frame;
21496
21572
  }
21497
21573
  }]);
21574
+ return RDFParser2;
21498
21575
  }();
21499
21576
  _defineProperty(RDFParser, "ns", {
21500
21577
  "RDF": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
@@ -21738,18 +21815,33 @@ function _arrayLikeToArray3(arr, len) {
21738
21815
  arr2[i] = arr[i];
21739
21816
  return arr2;
21740
21817
  }
21741
- function _callSuper8(t, o, e) {
21742
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct8() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
21818
+ function _createSuper8(Derived) {
21819
+ var hasNativeReflectConstruct = _isNativeReflectConstruct8();
21820
+ return function _createSuperInternal() {
21821
+ var Super = _getPrototypeOf(Derived), result;
21822
+ if (hasNativeReflectConstruct) {
21823
+ var NewTarget = _getPrototypeOf(this).constructor;
21824
+ result = Reflect.construct(Super, arguments, NewTarget);
21825
+ } else {
21826
+ result = Super.apply(this, arguments);
21827
+ }
21828
+ return _possibleConstructorReturn(this, result);
21829
+ };
21743
21830
  }
21744
21831
  function _isNativeReflectConstruct8() {
21832
+ if (typeof Reflect === "undefined" || !Reflect.construct)
21833
+ return false;
21834
+ if (Reflect.construct.sham)
21835
+ return false;
21836
+ if (typeof Proxy === "function")
21837
+ return true;
21745
21838
  try {
21746
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
21839
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
21747
21840
  }));
21748
- } catch (t2) {
21841
+ return true;
21842
+ } catch (e) {
21843
+ return false;
21749
21844
  }
21750
- return (_isNativeReflectConstruct8 = function _isNativeReflectConstruct10() {
21751
- return !!t;
21752
- })();
21753
21845
  }
21754
21846
  var Parsable = {
21755
21847
  "text/n3": true,
@@ -21790,13 +21882,14 @@ var Handler = /* @__PURE__ */ _createClass(function Handler2(response, dom) {
21790
21882
  this.dom = dom;
21791
21883
  });
21792
21884
  _defineProperty(Handler, "pattern", void 0);
21793
- var RDFXMLHandler = /* @__PURE__ */ function(_Handler2) {
21885
+ var RDFXMLHandler = /* @__PURE__ */ function(_Handler) {
21886
+ _inherits(RDFXMLHandler2, _Handler);
21887
+ var _super = _createSuper8(RDFXMLHandler2);
21794
21888
  function RDFXMLHandler2() {
21795
21889
  _classCallCheck(this, RDFXMLHandler2);
21796
- return _callSuper8(this, RDFXMLHandler2, arguments);
21890
+ return _super.apply(this, arguments);
21797
21891
  }
21798
- _inherits(RDFXMLHandler2, _Handler2);
21799
- return _createClass(RDFXMLHandler2, [{
21892
+ _createClass(RDFXMLHandler2, [{
21800
21893
  key: "parse",
21801
21894
  value: function parse3(fetcher3, responseText, options) {
21802
21895
  var kb = fetcher3.store;
@@ -21831,15 +21924,17 @@ var RDFXMLHandler = /* @__PURE__ */ function(_Handler2) {
21831
21924
  };
21832
21925
  }
21833
21926
  }]);
21927
+ return RDFXMLHandler2;
21834
21928
  }(Handler);
21835
21929
  RDFXMLHandler.pattern = new RegExp("application/rdf\\+xml");
21836
- var XHTMLHandler = /* @__PURE__ */ function(_Handler3) {
21930
+ var XHTMLHandler = /* @__PURE__ */ function(_Handler2) {
21931
+ _inherits(XHTMLHandler2, _Handler2);
21932
+ var _super2 = _createSuper8(XHTMLHandler2);
21837
21933
  function XHTMLHandler2() {
21838
21934
  _classCallCheck(this, XHTMLHandler2);
21839
- return _callSuper8(this, XHTMLHandler2, arguments);
21935
+ return _super2.apply(this, arguments);
21840
21936
  }
21841
- _inherits(XHTMLHandler2, _Handler3);
21842
- return _createClass(XHTMLHandler2, [{
21937
+ _createClass(XHTMLHandler2, [{
21843
21938
  key: "parse",
21844
21939
  value: function parse3(fetcher3, responseText, options) {
21845
21940
  var relation, reverse;
@@ -21895,15 +21990,17 @@ var XHTMLHandler = /* @__PURE__ */ function(_Handler3) {
21895
21990
  fetcher3.mediatypes[XHTMLContentType] = {};
21896
21991
  }
21897
21992
  }]);
21993
+ return XHTMLHandler2;
21898
21994
  }(Handler);
21899
21995
  XHTMLHandler.pattern = new RegExp("application/xhtml");
21900
- var XMLHandler = /* @__PURE__ */ function(_Handler4) {
21996
+ var XMLHandler = /* @__PURE__ */ function(_Handler3) {
21997
+ _inherits(XMLHandler2, _Handler3);
21998
+ var _super3 = _createSuper8(XMLHandler2);
21901
21999
  function XMLHandler2() {
21902
22000
  _classCallCheck(this, XMLHandler2);
21903
- return _callSuper8(this, XMLHandler2, arguments);
22001
+ return _super3.apply(this, arguments);
21904
22002
  }
21905
- _inherits(XMLHandler2, _Handler4);
21906
- return _createClass(XMLHandler2, [{
22003
+ _createClass(XMLHandler2, [{
21907
22004
  key: "parse",
21908
22005
  value: function parse3(fetcher3, responseText, options) {
21909
22006
  var dom = parseXML(responseText);
@@ -21958,15 +22055,17 @@ var XMLHandler = /* @__PURE__ */ function(_Handler4) {
21958
22055
  return node.nodeType === Node.ELEMENT_NODE;
21959
22056
  }
21960
22057
  }]);
22058
+ return XMLHandler2;
21961
22059
  }(Handler);
21962
22060
  XMLHandler.pattern = new RegExp("(text|application)/(.*)xml");
21963
- var HTMLHandler = /* @__PURE__ */ function(_Handler5) {
22061
+ var HTMLHandler = /* @__PURE__ */ function(_Handler4) {
22062
+ _inherits(HTMLHandler2, _Handler4);
22063
+ var _super4 = _createSuper8(HTMLHandler2);
21964
22064
  function HTMLHandler2() {
21965
22065
  _classCallCheck(this, HTMLHandler2);
21966
- return _callSuper8(this, HTMLHandler2, arguments);
22066
+ return _super4.apply(this, arguments);
21967
22067
  }
21968
- _inherits(HTMLHandler2, _Handler5);
21969
- return _createClass(HTMLHandler2, [{
22068
+ _createClass(HTMLHandler2, [{
21970
22069
  key: "parse",
21971
22070
  value: function parse3(fetcher3, responseText, options) {
21972
22071
  var kb = fetcher3.store;
@@ -22006,15 +22105,17 @@ var HTMLHandler = /* @__PURE__ */ function(_Handler5) {
22006
22105
  };
22007
22106
  }
22008
22107
  }]);
22108
+ return HTMLHandler2;
22009
22109
  }(Handler);
22010
22110
  HTMLHandler.pattern = new RegExp("text/html");
22011
- var JsonLdHandler = /* @__PURE__ */ function(_Handler6) {
22111
+ var JsonLdHandler = /* @__PURE__ */ function(_Handler5) {
22112
+ _inherits(JsonLdHandler2, _Handler5);
22113
+ var _super5 = _createSuper8(JsonLdHandler2);
22012
22114
  function JsonLdHandler2() {
22013
22115
  _classCallCheck(this, JsonLdHandler2);
22014
- return _callSuper8(this, JsonLdHandler2, arguments);
22116
+ return _super5.apply(this, arguments);
22015
22117
  }
22016
- _inherits(JsonLdHandler2, _Handler6);
22017
- return _createClass(JsonLdHandler2, [{
22118
+ _createClass(JsonLdHandler2, [{
22018
22119
  key: "parse",
22019
22120
  value: function parse3(fetcher3, responseText, options, response) {
22020
22121
  var kb = fetcher3.store;
@@ -22042,15 +22143,17 @@ var JsonLdHandler = /* @__PURE__ */ function(_Handler6) {
22042
22143
  };
22043
22144
  }
22044
22145
  }]);
22146
+ return JsonLdHandler2;
22045
22147
  }(Handler);
22046
22148
  JsonLdHandler.pattern = /application\/ld\+json/;
22047
- var TextHandler = /* @__PURE__ */ function(_Handler7) {
22149
+ var TextHandler = /* @__PURE__ */ function(_Handler6) {
22150
+ _inherits(TextHandler2, _Handler6);
22151
+ var _super6 = _createSuper8(TextHandler2);
22048
22152
  function TextHandler2() {
22049
22153
  _classCallCheck(this, TextHandler2);
22050
- return _callSuper8(this, TextHandler2, arguments);
22154
+ return _super6.apply(this, arguments);
22051
22155
  }
22052
- _inherits(TextHandler2, _Handler7);
22053
- return _createClass(TextHandler2, [{
22156
+ _createClass(TextHandler2, [{
22054
22157
  key: "parse",
22055
22158
  value: function parse3(fetcher3, responseText, options) {
22056
22159
  if (isXML(responseText)) {
@@ -22079,15 +22182,17 @@ var TextHandler = /* @__PURE__ */ function(_Handler7) {
22079
22182
  };
22080
22183
  }
22081
22184
  }]);
22185
+ return TextHandler2;
22082
22186
  }(Handler);
22083
22187
  TextHandler.pattern = new RegExp("text/plain");
22084
- var N3Handler = /* @__PURE__ */ function(_Handler8) {
22188
+ var N3Handler = /* @__PURE__ */ function(_Handler7) {
22189
+ _inherits(N3Handler2, _Handler7);
22190
+ var _super7 = _createSuper8(N3Handler2);
22085
22191
  function N3Handler2() {
22086
22192
  _classCallCheck(this, N3Handler2);
22087
- return _callSuper8(this, N3Handler2, arguments);
22193
+ return _super7.apply(this, arguments);
22088
22194
  }
22089
- _inherits(N3Handler2, _Handler8);
22090
- return _createClass(N3Handler2, [{
22195
+ _createClass(N3Handler2, [{
22091
22196
  key: "parse",
22092
22197
  value: function parse3(fetcher3, responseText, options, response) {
22093
22198
  var kb = fetcher3.store;
@@ -22118,6 +22223,7 @@ var N3Handler = /* @__PURE__ */ function(_Handler8) {
22118
22223
  };
22119
22224
  }
22120
22225
  }]);
22226
+ return N3Handler2;
22121
22227
  }(Handler);
22122
22228
  N3Handler.pattern = new RegExp("(application|text)/(x-)?(rdf\\+)?(n3|turtle)");
22123
22229
  var defaultHandlers = {
@@ -22196,7 +22302,7 @@ var Fetcher = /* @__PURE__ */ function() {
22196
22302
  return _this.addHandler(defaultHandlers[key]);
22197
22303
  });
22198
22304
  }
22199
- return _createClass(Fetcher2, [{
22305
+ _createClass(Fetcher2, [{
22200
22306
  key: "load",
22201
22307
  value: (
22202
22308
  /**
@@ -22267,7 +22373,7 @@ var Fetcher = /* @__PURE__ */ function() {
22267
22373
  for (_iterator.s(); !(_step = _iterator.n()).done; ) {
22268
22374
  var request = _step.value;
22269
22375
  var _response = kb.any(request, this.ns.link("response"), null, meta);
22270
- if (_response != void 0) {
22376
+ if (_response !== void 0) {
22271
22377
  var quad4 = kb.statementsMatching(_response, this.ns.link("outOfDate"), true, meta);
22272
22378
  kb.remove(quad4);
22273
22379
  options.force = true;
@@ -22770,6 +22876,11 @@ var Fetcher = /* @__PURE__ */ function() {
22770
22876
  }
22771
22877
  return createIfNotExists;
22772
22878
  }()
22879
+ /**
22880
+ * @param parentURI URI of parent container
22881
+ * @param folderName - Optional folder name (slug)
22882
+ * @param data - Optional folder metadata
22883
+ */
22773
22884
  }, {
22774
22885
  key: "createContainer",
22775
22886
  value: function createContainer(parentURI, folderName, data) {
@@ -23168,10 +23279,7 @@ var Fetcher = /* @__PURE__ */ function() {
23168
23279
  this.addType(this.ns.link("Document"), reqNode, kb, diffLocation);
23169
23280
  }
23170
23281
  if (options.clearPreviousData) {
23171
- var sts = kb.statementsMatching(void 0, void 0, void 0, options.resource).slice();
23172
- for (var i = 0; i < sts.length; i++) {
23173
- kb.removeStatement(sts[i]);
23174
- }
23282
+ kb.removeDocument(options.resource);
23175
23283
  }
23176
23284
  var isImage = contentType.includes("image/") || contentType.includes("application/pdf");
23177
23285
  if (contentType && isImage) {
@@ -23393,6 +23501,7 @@ var Fetcher = /* @__PURE__ */ function() {
23393
23501
  }
23394
23502
  }
23395
23503
  }]);
23504
+ return Fetcher2;
23396
23505
  }();
23397
23506
  _defineProperty(Fetcher, "HANDLERS", void 0);
23398
23507
  _defineProperty(Fetcher, "CONTENT_TYPE_BY_EXT", void 0);
@@ -23401,26 +23510,26 @@ Fetcher.HANDLERS = defaultHandlers;
23401
23510
  Fetcher.CONTENT_TYPE_BY_EXT = CONTENT_TYPE_BY_EXT;
23402
23511
 
23403
23512
  // ../node_modules/rdflib/esm/factories/rdflib-data-factory.js
23404
- function ownKeys2(e, r) {
23405
- var t = Object.keys(e);
23513
+ function ownKeys2(object, enumerableOnly) {
23514
+ var keys = Object.keys(object);
23406
23515
  if (Object.getOwnPropertySymbols) {
23407
- var o = Object.getOwnPropertySymbols(e);
23408
- r && (o = o.filter(function(r2) {
23409
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
23410
- })), t.push.apply(t, o);
23516
+ var symbols = Object.getOwnPropertySymbols(object);
23517
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
23518
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23519
+ })), keys.push.apply(keys, symbols);
23411
23520
  }
23412
- return t;
23521
+ return keys;
23413
23522
  }
23414
- function _objectSpread2(e) {
23415
- for (var r = 1; r < arguments.length; r++) {
23416
- var t = null != arguments[r] ? arguments[r] : {};
23417
- r % 2 ? ownKeys2(Object(t), true).forEach(function(r2) {
23418
- _defineProperty(e, r2, t[r2]);
23419
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r2) {
23420
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
23523
+ function _objectSpread2(target) {
23524
+ for (var i = 1; i < arguments.length; i++) {
23525
+ var source = null != arguments[i] ? arguments[i] : {};
23526
+ i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
23527
+ _defineProperty(target, key, source[key]);
23528
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
23529
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
23421
23530
  });
23422
23531
  }
23423
- return e;
23532
+ return target;
23424
23533
  }
23425
23534
  var RDFlibDataFactory = _objectSpread2(_objectSpread2({}, extended_term_factory_default), {}, {
23426
23535
  /**
@@ -23486,26 +23595,26 @@ var term = node_default.fromValue;
23486
23595
  var NextId = BlankNode.nextId;
23487
23596
 
23488
23597
  // ../node_modules/rdflib/esm/store.js
23489
- function ownKeys3(e, r) {
23490
- var t = Object.keys(e);
23598
+ function ownKeys3(object, enumerableOnly) {
23599
+ var keys = Object.keys(object);
23491
23600
  if (Object.getOwnPropertySymbols) {
23492
- var o = Object.getOwnPropertySymbols(e);
23493
- r && (o = o.filter(function(r2) {
23494
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
23495
- })), t.push.apply(t, o);
23601
+ var symbols = Object.getOwnPropertySymbols(object);
23602
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
23603
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23604
+ })), keys.push.apply(keys, symbols);
23496
23605
  }
23497
- return t;
23606
+ return keys;
23498
23607
  }
23499
- function _objectSpread3(e) {
23500
- for (var r = 1; r < arguments.length; r++) {
23501
- var t = null != arguments[r] ? arguments[r] : {};
23502
- r % 2 ? ownKeys3(Object(t), true).forEach(function(r2) {
23503
- _defineProperty(e, r2, t[r2]);
23504
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys3(Object(t)).forEach(function(r2) {
23505
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
23608
+ function _objectSpread3(target) {
23609
+ for (var i = 1; i < arguments.length; i++) {
23610
+ var source = null != arguments[i] ? arguments[i] : {};
23611
+ i % 2 ? ownKeys3(Object(source), true).forEach(function(key) {
23612
+ _defineProperty(target, key, source[key]);
23613
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys3(Object(source)).forEach(function(key) {
23614
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
23506
23615
  });
23507
23616
  }
23508
- return e;
23617
+ return target;
23509
23618
  }
23510
23619
  function _createForOfIteratorHelper4(o, allowArrayLike) {
23511
23620
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -23566,18 +23675,33 @@ function _arrayLikeToArray4(arr, len) {
23566
23675
  arr2[i] = arr[i];
23567
23676
  return arr2;
23568
23677
  }
23569
- function _callSuper9(t, o, e) {
23570
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct9() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
23678
+ function _createSuper9(Derived) {
23679
+ var hasNativeReflectConstruct = _isNativeReflectConstruct9();
23680
+ return function _createSuperInternal() {
23681
+ var Super = _getPrototypeOf(Derived), result;
23682
+ if (hasNativeReflectConstruct) {
23683
+ var NewTarget = _getPrototypeOf(this).constructor;
23684
+ result = Reflect.construct(Super, arguments, NewTarget);
23685
+ } else {
23686
+ result = Super.apply(this, arguments);
23687
+ }
23688
+ return _possibleConstructorReturn(this, result);
23689
+ };
23571
23690
  }
23572
23691
  function _isNativeReflectConstruct9() {
23692
+ if (typeof Reflect === "undefined" || !Reflect.construct)
23693
+ return false;
23694
+ if (Reflect.construct.sham)
23695
+ return false;
23696
+ if (typeof Proxy === "function")
23697
+ return true;
23573
23698
  try {
23574
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
23699
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
23575
23700
  }));
23576
- } catch (t2) {
23701
+ return true;
23702
+ } catch (e) {
23703
+ return false;
23577
23704
  }
23578
- return (_isNativeReflectConstruct9 = function _isNativeReflectConstruct10() {
23579
- return !!t;
23580
- })();
23581
23705
  }
23582
23706
  var owlNamespaceURI = "http://www.w3.org/2002/07/owl#";
23583
23707
  function handleFP(formula2, subj, pred, obj) {
@@ -23610,28 +23734,30 @@ function handleRDFType(formula2, subj, pred, obj, why) {
23610
23734
  return done;
23611
23735
  }
23612
23736
  var IndexedFormula = /* @__PURE__ */ function(_Formula) {
23737
+ _inherits(IndexedFormula2, _Formula);
23738
+ var _super = _createSuper9(IndexedFormula2);
23613
23739
  function IndexedFormula2(features) {
23614
23740
  var _this;
23615
23741
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
23616
23742
  _classCallCheck(this, IndexedFormula2);
23617
- _this = _callSuper9(this, IndexedFormula2, [void 0, void 0, void 0, void 0, opts]);
23618
- _defineProperty(_this, "updater", void 0);
23619
- _defineProperty(_this, "namespaces", void 0);
23620
- _defineProperty(_this, "classActions", void 0);
23621
- _defineProperty(_this, "propertyActions", void 0);
23622
- _defineProperty(_this, "redirections", void 0);
23623
- _defineProperty(_this, "aliases", void 0);
23624
- _defineProperty(_this, "HTTPRedirects", void 0);
23625
- _defineProperty(_this, "subjectIndex", void 0);
23626
- _defineProperty(_this, "predicateIndex", void 0);
23627
- _defineProperty(_this, "objectIndex", void 0);
23628
- _defineProperty(_this, "whyIndex", void 0);
23629
- _defineProperty(_this, "index", void 0);
23630
- _defineProperty(_this, "features", void 0);
23631
- _defineProperty(_this, "_universalVariables", void 0);
23632
- _defineProperty(_this, "_existentialVariables", void 0);
23633
- _defineProperty(_this, "rdfArrayRemove", void 0);
23634
- _defineProperty(_this, "dataCallbacks", void 0);
23743
+ _this = _super.call(this, void 0, void 0, void 0, void 0, opts);
23744
+ _defineProperty(_assertThisInitialized(_this), "updater", void 0);
23745
+ _defineProperty(_assertThisInitialized(_this), "namespaces", void 0);
23746
+ _defineProperty(_assertThisInitialized(_this), "classActions", void 0);
23747
+ _defineProperty(_assertThisInitialized(_this), "propertyActions", void 0);
23748
+ _defineProperty(_assertThisInitialized(_this), "redirections", void 0);
23749
+ _defineProperty(_assertThisInitialized(_this), "aliases", void 0);
23750
+ _defineProperty(_assertThisInitialized(_this), "HTTPRedirects", void 0);
23751
+ _defineProperty(_assertThisInitialized(_this), "subjectIndex", void 0);
23752
+ _defineProperty(_assertThisInitialized(_this), "predicateIndex", void 0);
23753
+ _defineProperty(_assertThisInitialized(_this), "objectIndex", void 0);
23754
+ _defineProperty(_assertThisInitialized(_this), "whyIndex", void 0);
23755
+ _defineProperty(_assertThisInitialized(_this), "index", void 0);
23756
+ _defineProperty(_assertThisInitialized(_this), "features", void 0);
23757
+ _defineProperty(_assertThisInitialized(_this), "_universalVariables", void 0);
23758
+ _defineProperty(_assertThisInitialized(_this), "_existentialVariables", void 0);
23759
+ _defineProperty(_assertThisInitialized(_this), "rdfArrayRemove", void 0);
23760
+ _defineProperty(_assertThisInitialized(_this), "dataCallbacks", void 0);
23635
23761
  _this.propertyActions = {};
23636
23762
  _this.classActions = {};
23637
23763
  _this.redirections = [];
@@ -23657,8 +23783,7 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
23657
23783
  _this.initPropertyActions(_this.features);
23658
23784
  return _this;
23659
23785
  }
23660
- _inherits(IndexedFormula2, _Formula);
23661
- return _createClass(IndexedFormula2, [{
23786
+ _createClass(IndexedFormula2, [{
23662
23787
  key: "substitute",
23663
23788
  value: (
23664
23789
  /**
@@ -24236,23 +24361,12 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
24236
24361
  return this;
24237
24362
  }
24238
24363
  /**
24239
- * Removes all statements in a doc, along with the related metadata including request/response/status
24364
+ * Removes all statements in a doc, along with the related metadata including request/response
24240
24365
  * @param doc - The document / graph
24241
24366
  */
24242
24367
  }, {
24243
24368
  key: "removeDocument",
24244
24369
  value: function removeDocument(doc) {
24245
- this.removeMetadata(doc);
24246
- var sts = this.statementsMatching(void 0, void 0, void 0, doc).slice();
24247
- for (var i = 0; i < sts.length; i++) {
24248
- this.removeStatement(sts[i]);
24249
- }
24250
- this.removeMatches(doc, null, null);
24251
- return this;
24252
- }
24253
- }, {
24254
- key: "removeMetadata",
24255
- value: function removeMetadata(doc) {
24256
24370
  var meta = this.sym("chrome://TheCurrentSession");
24257
24371
  var linkNamespaceURI = "http://www.w3.org/2007/ont/link#";
24258
24372
  var requests = this.statementsMatching(void 0, this.sym("".concat(linkNamespaceURI, "requestedURI")), this.rdfFactory.literal(doc.value), meta).map(function(st3) {
@@ -24260,29 +24374,19 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
24260
24374
  });
24261
24375
  for (var r = 0; r < requests.length; r++) {
24262
24376
  var request = requests[r];
24263
- if (request != void 0) {
24264
- var sts = void 0;
24265
- var status = this.any(request, this.sym("".concat(linkNamespaceURI, "status")), null, meta);
24266
- if (status != void 0) {
24267
- sts = this.statementsMatching(status, this.sym("".concat(linkNamespaceURI, "status")), null, meta).slice();
24268
- for (var i = 0; i < sts.length; i++) {
24269
- this.removeStatement(sts[i]);
24270
- }
24271
- }
24377
+ if (request !== void 0) {
24378
+ this.removeMatches(request, null, null, meta);
24272
24379
  var response = this.any(request, this.sym("".concat(linkNamespaceURI, "response")), null, meta);
24273
- if (response != void 0) {
24274
- sts = this.statementsMatching(response, null, null, meta).slice();
24275
- for (var i = 0; i < sts.length; i++) {
24276
- this.removeStatement(sts[i]);
24277
- }
24278
- }
24279
- sts = this.statementsMatching(request, null, null, meta).slice();
24280
- for (var i = 0; i < sts.length; i++) {
24281
- this.removeStatement(sts[i]);
24380
+ if (response !== void 0) {
24381
+ this.removeMatches(response, null, null, meta);
24282
24382
  }
24283
24383
  }
24284
24384
  }
24285
24385
  this.removeMatches(this.sym(doc.value), null, null, meta);
24386
+ var sts = this.statementsMatching(void 0, void 0, void 0, doc).slice();
24387
+ for (var i = 0; i < sts.length; i++) {
24388
+ this.removeStatement(sts[i]);
24389
+ }
24286
24390
  return this;
24287
24391
  }
24288
24392
  /**
@@ -24556,6 +24660,7 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
24556
24660
  return defaultGraphURI;
24557
24661
  }
24558
24662
  }]);
24663
+ return IndexedFormula2;
24559
24664
  }(Formula);
24560
24665
  _defineProperty(IndexedFormula, "handleRDFType", void 0);
24561
24666
  IndexedFormula.handleRDFType = handleRDFType;
@@ -24650,7 +24755,7 @@ var UpdateManager = /* @__PURE__ */ function() {
24650
24755
  this.ns.owl = Namespace("http://www.w3.org/2002/07/owl#");
24651
24756
  this.patchControl = [];
24652
24757
  }
24653
- return _createClass(UpdateManager2, [{
24758
+ _createClass(UpdateManager2, [{
24654
24759
  key: "patchControlFor",
24655
24760
  value: function patchControlFor(doc) {
24656
24761
  if (!this.patchControl[doc.value]) {
@@ -24685,7 +24790,7 @@ var UpdateManager = /* @__PURE__ */ function() {
24685
24790
  for (_iterator.s(); !(_step = _iterator.n()).done; ) {
24686
24791
  var request = _step.value;
24687
24792
  var _response = kb.any(request, this.ns.link("response"), null, meta);
24688
- if (_response != void 0) {
24793
+ if (_response !== void 0) {
24689
24794
  kb.add(_response, this.ns.link("outOfDate"), true, meta);
24690
24795
  }
24691
24796
  }
@@ -24748,6 +24853,17 @@ var UpdateManager = /* @__PURE__ */ function() {
24748
24853
  }
24749
24854
  return checkEditable;
24750
24855
  }()
24856
+ /**
24857
+ * Tests whether a file is editable.
24858
+ * If the file has a specific annotation that it is machine written,
24859
+ * for safety, it is editable (this doesn't actually check for write access)
24860
+ * If the file has wac-allow and accept patch headers, those are respected.
24861
+ * and local write access is determined by those headers.
24862
+ * This synchronous version only looks at past HTTP requests, does not make new ones.
24863
+ *
24864
+ * @returns The method string SPARQL or DAV or
24865
+ * LOCALFILE or false if known, undefined if not known.
24866
+ */
24751
24867
  }, {
24752
24868
  key: "editable",
24753
24869
  value: function editable(uri, kb) {
@@ -25181,7 +25297,7 @@ var UpdateManager = /* @__PURE__ */ function() {
25181
25297
  }
25182
25298
  } else {
25183
25299
  control.reloading = false;
25184
- if (response && response.status === 0) {
25300
+ if (response.status === 0) {
25185
25301
  control.reloading = true;
25186
25302
  retryTimeout = retryTimeout * 2;
25187
25303
  setTimeout(tryReload2, retryTimeout);
@@ -25718,6 +25834,7 @@ var UpdateManager = /* @__PURE__ */ function() {
25718
25834
  });
25719
25835
  }
25720
25836
  }]);
25837
+ return UpdateManager2;
25721
25838
  }();
25722
25839
 
25723
25840
  export {