@pod-os/elements 0.37.0-rc.c8b54d1.0 → 0.37.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.
Files changed (144) hide show
  1. package/dist/cjs/{chunk.URTPIBTY-DdK9pL5v.js → chunk.URTPIBTY-DcQsb_nW.js} +2 -2
  2. package/dist/cjs/{chunk.XQ2OKYYA-DEkhm1i7.js → chunk.XQ2OKYYA-D224sdKt.js} +3 -3
  3. package/dist/cjs/{chunk.ZGGPD2XJ-uKZZdqOH.js → chunk.ZGGPD2XJ-Cj6xUx2M.js} +1 -1
  4. package/dist/cjs/{class-map-DAZXfKKA.js → class-map-Nx8L8ElN.js} +1 -1
  5. package/dist/cjs/elements.cjs.js +3 -3
  6. package/dist/cjs/{index-DCpu_nnH.js → index-Be_lnf0w.js} +547 -2001
  7. package/dist/cjs/{index-FUnpyb19.js → index-OR1wNkjG.js} +1052 -489
  8. package/dist/cjs/{jsonld-V2RB47OZ-BerQ9IRa.js → jsonld-V2RB47OZ-B82QNsYZ.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +6 -6
  11. package/dist/cjs/{pos-add-new-thing_31.cjs.entry.js → pos-add-new-thing_32.cjs.entry.js} +411 -227
  12. package/dist/cjs/pos-app-document-viewer.cjs.entry.js +1 -1
  13. package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
  14. package/dist/cjs/pos-app-image-viewer.cjs.entry.js +1 -1
  15. package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
  16. package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
  17. package/dist/cjs/pos-attachments.cjs.entry.js +2 -2
  18. package/dist/cjs/pos-case.cjs.entry.js +24 -0
  19. package/dist/cjs/pos-container-contents.cjs.entry.js +13 -4
  20. package/dist/cjs/pos-container-item_3.cjs.entry.js +4 -4
  21. package/dist/cjs/pos-document.cjs.entry.js +4 -4
  22. package/dist/cjs/pos-list.cjs.entry.js +1 -1
  23. package/dist/cjs/pos-markdown-document.cjs.entry.js +442 -2327
  24. package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
  25. package/dist/cjs/pos-subjects.cjs.entry.js +2 -2
  26. package/dist/cjs/pos-switch.cjs.entry.js +64 -0
  27. package/dist/cjs/pos-tool-attachments.cjs.entry.js +2 -2
  28. package/dist/cjs/pos-value.cjs.entry.js +1 -1
  29. package/dist/collection/collection-manifest.json +5 -1
  30. package/dist/collection/components/pos-app/pos-app.js +2 -1
  31. package/dist/collection/components/pos-attachments/pos-attachments.js +2 -1
  32. package/dist/collection/components/pos-container-contents/pos-container-contents.js +10 -1
  33. package/dist/collection/components/pos-container-contents/pos-create-new-container-item/pos-create-new-container-item.js +4 -2
  34. package/dist/collection/components/pos-markdown-document/pos-markdown-document.js +2 -1
  35. package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.css +42 -22
  36. package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js +3 -2
  37. package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +1 -1
  38. package/dist/collection/components/pos-router/pos-router.js +1 -1
  39. package/dist/collection/components/pos-select-term/pos-select-term.js +1 -1
  40. package/dist/collection/components/pos-share/openNewTab.js +3 -0
  41. package/dist/collection/components/pos-share/pos-share.css +36 -0
  42. package/dist/collection/components/pos-share/pos-share.js +111 -0
  43. package/dist/collection/components/pos-switch/pos-case/pos-case.js +88 -0
  44. package/dist/collection/components/pos-switch/pos-switch.js +89 -0
  45. package/dist/collection/components/pos-tool-select/pos-tool-select.js +6 -3
  46. package/dist/collection/components/pos-upload/pos-upload.js +7 -4
  47. package/dist/collection/components/pos-user-menu/pos-user-menu.js +1 -1
  48. package/dist/collection/tools/pos-tool-attachments/pos-tool-attachments.js +1 -1
  49. package/dist/components/chunk.IVVHNXMC.js +20 -0
  50. package/dist/components/index.js +1 -1
  51. package/dist/components/index2.js +2 -2
  52. package/dist/components/pos-add-literal-value2.js +1 -1
  53. package/dist/components/pos-app-browser.js +1 -1
  54. package/dist/components/pos-attachments2.js +1 -1
  55. package/dist/components/pos-case.d.ts +11 -0
  56. package/dist/components/pos-case.js +1 -0
  57. package/dist/components/pos-container-contents2.js +1 -1
  58. package/dist/components/pos-make-findable2.js +1 -1
  59. package/dist/components/pos-markdown-document2.js +1 -1
  60. package/dist/components/pos-navigation-bar2.js +1 -1
  61. package/dist/components/pos-navigation2.js +1 -1
  62. package/dist/components/pos-new-thing-form2.js +1 -1
  63. package/dist/components/pos-router2.js +1 -1
  64. package/dist/components/pos-select-term2.js +1 -1
  65. package/dist/components/pos-share.d.ts +11 -0
  66. package/dist/components/pos-share.js +1 -0
  67. package/dist/components/pos-share2.js +1 -0
  68. package/dist/components/pos-switch.d.ts +11 -0
  69. package/dist/components/pos-switch.js +1 -0
  70. package/dist/components/pos-tool-attachments.js +1 -1
  71. package/dist/components/pos-tool-select2.js +1 -1
  72. package/dist/components/pos-type-index-entries2.js +1 -1
  73. package/dist/components/pos-upload2.js +12 -3
  74. package/dist/components/pos-user-menu2.js +6 -25
  75. package/dist/elements/elements.esm.js +1 -1
  76. package/dist/elements/{p-6561f1b7.entry.js → p-03464a71.entry.js} +1 -1
  77. package/dist/elements/{p-52a612ed.entry.js → p-272209e3.entry.js} +1 -1
  78. package/dist/elements/{p-a9a18aa8.entry.js → p-38aa17bc.entry.js} +1 -1
  79. package/dist/elements/p-3a890f5f.entry.js +1 -0
  80. package/dist/elements/{p-9ad80b52.entry.js → p-4cd2f9da.entry.js} +1 -1
  81. package/dist/elements/{p-0e7413e6.entry.js → p-5126fb6e.entry.js} +1 -1
  82. package/dist/elements/p-53610ccd.entry.js +1 -0
  83. package/dist/elements/{p-b5d64c6f.entry.js → p-631976a8.entry.js} +1 -1
  84. package/dist/elements/{p-fe628201.entry.js → p-6d628d74.entry.js} +1 -1
  85. package/dist/elements/{p-b363349c.entry.js → p-7c3785d8.entry.js} +1 -1
  86. package/dist/elements/p-8934c5ea.entry.js +1 -0
  87. package/dist/elements/p-8e76e9dc.entry.js +1 -0
  88. package/dist/elements/{p-3e18b5dd.entry.js → p-9bf6c310.entry.js} +1 -1
  89. package/dist/elements/{p-Doy_38_j.js → p-BLUiM5OK.js} +1 -1
  90. package/dist/elements/{p-BkAnMOpW.js → p-CSTMd_cW.js} +2 -2
  91. package/dist/elements/{p-CrxYqX8r.js → p-CVwgVrbO.js} +7 -7
  92. package/dist/elements/{p-8ggjG2YF.js → p-CnIOZlf7.js} +1 -1
  93. package/dist/elements/p-DHl0QGLf.js +67 -0
  94. package/dist/elements/p-DzbCx-pP.js +2 -0
  95. package/dist/elements/{p-c8ee910c.entry.js → p-a1dd6b42.entry.js} +1 -1
  96. package/dist/elements/p-ab4eba43.entry.js +859 -0
  97. package/dist/elements/{p-dff14248.entry.js → p-c7032012.entry.js} +1 -1
  98. package/dist/elements/{p-a20b72d8.entry.js → p-d396cc56.entry.js} +1 -1
  99. package/dist/elements/p-dc4c38c8.entry.js +1 -0
  100. package/dist/elements/{p-0a087865.entry.js → p-e0660718.entry.js} +1 -1
  101. package/dist/elements/{p-8q-RA2Uq.js → p-mIPOXLnA.js} +3 -3
  102. package/dist/esm/{chunk.URTPIBTY-CNA3-SLq.js → chunk.URTPIBTY-yxgfEQ1K.js} +2 -2
  103. package/dist/esm/{chunk.XQ2OKYYA-CXNlpYUG.js → chunk.XQ2OKYYA-Cr3bMzqn.js} +3 -3
  104. package/dist/esm/{chunk.ZGGPD2XJ-BjT6fS1o.js → chunk.ZGGPD2XJ-SJISSXOc.js} +1 -1
  105. package/dist/esm/{class-map-CUYFUkXU.js → class-map-DEweE_Cr.js} +1 -1
  106. package/dist/esm/elements.js +4 -4
  107. package/dist/esm/{index-DFqG64hG.js → index-CXK32bJz.js} +1052 -489
  108. package/dist/esm/{index-VMHzF3uY.js → index-DzbCx-pP.js} +547 -2001
  109. package/dist/esm/{jsonld-V2RB47OZ-CaIJ08AA.js → jsonld-V2RB47OZ-BbN7F0s8.js} +1 -1
  110. package/dist/esm/loader.js +3 -3
  111. package/dist/esm/pos-add-literal-value_3.entry.js +6 -6
  112. package/dist/esm/{pos-add-new-thing_31.entry.js → pos-add-new-thing_32.entry.js} +411 -228
  113. package/dist/esm/pos-app-document-viewer.entry.js +1 -1
  114. package/dist/esm/pos-app-generic.entry.js +1 -1
  115. package/dist/esm/pos-app-image-viewer.entry.js +1 -1
  116. package/dist/esm/pos-app-ldp-container.entry.js +1 -1
  117. package/dist/esm/pos-app-rdf-document.entry.js +1 -1
  118. package/dist/esm/pos-attachments.entry.js +2 -2
  119. package/dist/esm/pos-case.entry.js +22 -0
  120. package/dist/esm/pos-container-contents.entry.js +12 -3
  121. package/dist/esm/pos-container-item_3.entry.js +4 -4
  122. package/dist/esm/pos-document.entry.js +4 -4
  123. package/dist/esm/pos-list.entry.js +1 -1
  124. package/dist/esm/pos-markdown-document.entry.js +442 -2327
  125. package/dist/esm/pos-relations_2.entry.js +1 -1
  126. package/dist/esm/pos-subjects.entry.js +2 -2
  127. package/dist/esm/pos-switch.entry.js +62 -0
  128. package/dist/esm/pos-tool-attachments.entry.js +2 -2
  129. package/dist/esm/pos-value.entry.js +1 -1
  130. package/dist/jest-setup.js +4 -0
  131. package/dist/types/components/pos-container-contents/pos-container-contents.d.ts +2 -0
  132. package/dist/types/components/pos-share/openNewTab.d.ts +1 -0
  133. package/dist/types/components/pos-share/pos-share.d.ts +28 -0
  134. package/dist/types/components/pos-switch/pos-case/pos-case.d.ts +22 -0
  135. package/dist/types/components/pos-switch/pos-switch.d.ts +19 -0
  136. package/dist/types/components.d.ts +300 -74
  137. package/dist/types/stencil-public-runtime.d.ts +52 -2
  138. package/package.json +13 -12
  139. package/dist/elements/p-637a38d9.entry.js +0 -1
  140. package/dist/elements/p-701f2c84.entry.js +0 -850
  141. package/dist/elements/p-9b74c400.entry.js +0 -1
  142. package/dist/elements/p-LoCE14bN.js +0 -67
  143. package/dist/elements/p-VMHzF3uY.js +0 -2
  144. package/dist/elements/p-ac17ed6a.entry.js +0 -1
@@ -11599,346 +11599,6 @@ var require_browser_ponyfill = __commonJS({
11599
11599
  }
11600
11600
  });
11601
11601
 
11602
- // ../node_modules/short-unique-id/dist/short-unique-id.js
11603
- var require_short_unique_id = __commonJS({
11604
- "../node_modules/short-unique-id/dist/short-unique-id.js"(exports, module3) {
11605
- var ShortUniqueId2 = (() => {
11606
- var __defProp = Object.defineProperty;
11607
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11608
- var __getOwnPropNames = Object.getOwnPropertyNames;
11609
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
11610
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11611
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11612
- var __defNormalProp = (obj, key3, value7) => key3 in obj ? __defProp(obj, key3, { enumerable: true, configurable: true, writable: true, value: value7 }) : obj[key3] = value7;
11613
- var __spreadValues = (a, b) => {
11614
- for (var prop in b || (b = {}))
11615
- if (__hasOwnProp.call(b, prop))
11616
- __defNormalProp(a, prop, b[prop]);
11617
- if (__getOwnPropSymbols)
11618
- for (var prop of __getOwnPropSymbols(b)) {
11619
- if (__propIsEnum.call(b, prop))
11620
- __defNormalProp(a, prop, b[prop]);
11621
- }
11622
- return a;
11623
- };
11624
- var __export2 = (target6, all) => {
11625
- for (var name9 in all)
11626
- __defProp(target6, name9, { get: all[name9], enumerable: true });
11627
- };
11628
- var __copyProps = (to2, from2, except, desc) => {
11629
- if (from2 && typeof from2 === "object" || typeof from2 === "function") {
11630
- for (let key3 of __getOwnPropNames(from2))
11631
- if (!__hasOwnProp.call(to2, key3) && key3 !== except)
11632
- __defProp(to2, key3, { get: () => from2[key3], enumerable: !(desc = __getOwnPropDesc(from2, key3)) || desc.enumerable });
11633
- }
11634
- return to2;
11635
- };
11636
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
11637
- var __publicField = (obj, key3, value7) => {
11638
- __defNormalProp(obj, typeof key3 !== "symbol" ? key3 + "" : key3, value7);
11639
- return value7;
11640
- };
11641
- var src_exports = {};
11642
- __export2(src_exports, {
11643
- DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
11644
- DEFAULT_UUID_LENGTH: () => DEFAULT_UUID_LENGTH,
11645
- default: () => ShortUniqueId3
11646
- });
11647
- var version6 = "5.2.0";
11648
- var DEFAULT_UUID_LENGTH = 6;
11649
- var DEFAULT_OPTIONS = {
11650
- dictionary: "alphanum",
11651
- shuffle: true,
11652
- debug: false,
11653
- length: DEFAULT_UUID_LENGTH,
11654
- counter: 0
11655
- };
11656
- var _ShortUniqueId = class _ShortUniqueId {
11657
- constructor(argOptions = {}) {
11658
- __publicField(this, "counter");
11659
- __publicField(this, "debug");
11660
- __publicField(this, "dict");
11661
- __publicField(this, "version");
11662
- __publicField(this, "dictIndex", 0);
11663
- __publicField(this, "dictRange", []);
11664
- __publicField(this, "lowerBound", 0);
11665
- __publicField(this, "upperBound", 0);
11666
- __publicField(this, "dictLength", 0);
11667
- __publicField(this, "uuidLength");
11668
- __publicField(this, "_digit_first_ascii", 48);
11669
- __publicField(this, "_digit_last_ascii", 58);
11670
- __publicField(this, "_alpha_lower_first_ascii", 97);
11671
- __publicField(this, "_alpha_lower_last_ascii", 123);
11672
- __publicField(this, "_hex_last_ascii", 103);
11673
- __publicField(this, "_alpha_upper_first_ascii", 65);
11674
- __publicField(this, "_alpha_upper_last_ascii", 91);
11675
- __publicField(this, "_number_dict_ranges", {
11676
- digits: [this._digit_first_ascii, this._digit_last_ascii]
11677
- });
11678
- __publicField(this, "_alpha_dict_ranges", {
11679
- lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
11680
- upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
11681
- });
11682
- __publicField(this, "_alpha_lower_dict_ranges", {
11683
- lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
11684
- });
11685
- __publicField(this, "_alpha_upper_dict_ranges", {
11686
- upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
11687
- });
11688
- __publicField(this, "_alphanum_dict_ranges", {
11689
- digits: [this._digit_first_ascii, this._digit_last_ascii],
11690
- lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
11691
- upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
11692
- });
11693
- __publicField(this, "_alphanum_lower_dict_ranges", {
11694
- digits: [this._digit_first_ascii, this._digit_last_ascii],
11695
- lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
11696
- });
11697
- __publicField(this, "_alphanum_upper_dict_ranges", {
11698
- digits: [this._digit_first_ascii, this._digit_last_ascii],
11699
- upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
11700
- });
11701
- __publicField(this, "_hex_dict_ranges", {
11702
- decDigits: [this._digit_first_ascii, this._digit_last_ascii],
11703
- alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
11704
- });
11705
- __publicField(this, "_dict_ranges", {
11706
- _number_dict_ranges: this._number_dict_ranges,
11707
- _alpha_dict_ranges: this._alpha_dict_ranges,
11708
- _alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
11709
- _alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
11710
- _alphanum_dict_ranges: this._alphanum_dict_ranges,
11711
- _alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
11712
- _alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
11713
- _hex_dict_ranges: this._hex_dict_ranges
11714
- });
11715
- __publicField(this, "log", (...args) => {
11716
- const finalArgs = [...args];
11717
- finalArgs[0] = `[short-unique-id] ${args[0]}`;
11718
- if (this.debug === true) {
11719
- if (typeof console !== "undefined" && console !== null) {
11720
- return console.log(...finalArgs);
11721
- }
11722
- }
11723
- });
11724
- __publicField(this, "_normalizeDictionary", (dictionary2, shuffle2) => {
11725
- let finalDict;
11726
- if (dictionary2 && Array.isArray(dictionary2) && dictionary2.length > 1) {
11727
- finalDict = dictionary2;
11728
- } else {
11729
- finalDict = [];
11730
- let i;
11731
- this.dictIndex = i = 0;
11732
- const rangesName = `_${dictionary2}_dict_ranges`;
11733
- const ranges = this._dict_ranges[rangesName];
11734
- Object.keys(ranges).forEach((rangeType) => {
11735
- const rangeTypeKey = rangeType;
11736
- this.dictRange = ranges[rangeTypeKey];
11737
- this.lowerBound = this.dictRange[0];
11738
- this.upperBound = this.dictRange[1];
11739
- for (this.dictIndex = i = this.lowerBound; this.lowerBound <= this.upperBound ? i < this.upperBound : i > this.upperBound; this.dictIndex = this.lowerBound <= this.upperBound ? i += 1 : i -= 1) {
11740
- finalDict.push(String.fromCharCode(this.dictIndex));
11741
- }
11742
- });
11743
- }
11744
- if (shuffle2) {
11745
- const PROBABILITY = 0.5;
11746
- finalDict = finalDict.sort(() => Math.random() - PROBABILITY);
11747
- }
11748
- return finalDict;
11749
- });
11750
- __publicField(this, "setDictionary", (dictionary2, shuffle2) => {
11751
- this.dict = this._normalizeDictionary(dictionary2, shuffle2);
11752
- this.dictLength = this.dict.length;
11753
- this.setCounter(0);
11754
- });
11755
- __publicField(this, "seq", () => {
11756
- return this.sequentialUUID();
11757
- });
11758
- __publicField(this, "sequentialUUID", () => {
11759
- let counterDiv;
11760
- let counterRem;
11761
- let id4 = "";
11762
- counterDiv = this.counter;
11763
- do {
11764
- counterRem = counterDiv % this.dictLength;
11765
- counterDiv = Math.trunc(counterDiv / this.dictLength);
11766
- id4 += this.dict[counterRem];
11767
- } while (counterDiv !== 0);
11768
- this.counter += 1;
11769
- return id4;
11770
- });
11771
- __publicField(this, "rnd", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
11772
- return this.randomUUID(uuidLength);
11773
- });
11774
- __publicField(this, "randomUUID", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
11775
- let id4;
11776
- let randomPartIdx;
11777
- let j;
11778
- if (uuidLength === null || typeof uuidLength === "undefined" || uuidLength < 1) {
11779
- throw new Error("Invalid UUID Length Provided");
11780
- }
11781
- id4 = "";
11782
- for (j = 0; j < uuidLength; j += 1) {
11783
- randomPartIdx = parseInt(
11784
- (Math.random() * this.dictLength).toFixed(0),
11785
- 10
11786
- ) % this.dictLength;
11787
- id4 += this.dict[randomPartIdx];
11788
- }
11789
- return id4;
11790
- });
11791
- __publicField(this, "fmt", (format4, date6) => {
11792
- return this.formattedUUID(format4, date6);
11793
- });
11794
- __publicField(this, "formattedUUID", (format4, date6) => {
11795
- const fnMap = {
11796
- "$r": this.randomUUID,
11797
- "$s": this.sequentialUUID,
11798
- "$t": this.stamp
11799
- };
11800
- const result6 = format4.replace(
11801
- /\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
11802
- (m) => {
11803
- const fn2 = m.slice(0, 2);
11804
- const len = parseInt(m.slice(2), 10);
11805
- if (fn2 === "$s") {
11806
- return fnMap[fn2]().padStart(len, "0");
11807
- }
11808
- if (fn2 === "$t" && date6) {
11809
- return fnMap[fn2](len, date6);
11810
- }
11811
- return fnMap[fn2](len);
11812
- }
11813
- );
11814
- return result6;
11815
- });
11816
- __publicField(this, "availableUUIDs", (uuidLength = this.uuidLength) => {
11817
- return parseFloat(
11818
- Math.pow([...new Set(this.dict)].length, uuidLength).toFixed(0)
11819
- );
11820
- });
11821
- __publicField(this, "approxMaxBeforeCollision", (rounds = this.availableUUIDs(this.uuidLength)) => {
11822
- return parseFloat(
11823
- Math.sqrt(Math.PI / 2 * rounds).toFixed(20)
11824
- );
11825
- });
11826
- __publicField(this, "collisionProbability", (rounds = this.availableUUIDs(this.uuidLength), uuidLength = this.uuidLength) => {
11827
- return parseFloat(
11828
- (this.approxMaxBeforeCollision(rounds) / this.availableUUIDs(uuidLength)).toFixed(20)
11829
- );
11830
- });
11831
- __publicField(this, "uniqueness", (rounds = this.availableUUIDs(this.uuidLength)) => {
11832
- const score2 = parseFloat(
11833
- (1 - this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20)
11834
- );
11835
- return score2 > 1 ? 1 : score2 < 0 ? 0 : score2;
11836
- });
11837
- __publicField(this, "getVersion", () => {
11838
- return this.version;
11839
- });
11840
- __publicField(this, "stamp", (finalLength, date6) => {
11841
- const hexStamp = Math.floor(+(date6 || /* @__PURE__ */ new Date()) / 1e3).toString(16);
11842
- if (typeof finalLength === "number" && finalLength === 0) {
11843
- return hexStamp;
11844
- }
11845
- if (typeof finalLength !== "number" || finalLength < 10) {
11846
- throw new Error(
11847
- [
11848
- "Param finalLength must be a number greater than or equal to 10,",
11849
- "or 0 if you want the raw hexadecimal timestamp"
11850
- ].join("\n")
11851
- );
11852
- }
11853
- const idLength = finalLength - 9;
11854
- const rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
11855
- const id4 = this.randomUUID(idLength);
11856
- return `${id4.substring(0, rndIdx)}${hexStamp}${id4.substring(rndIdx)}${rndIdx.toString(16)}`;
11857
- });
11858
- __publicField(this, "parseStamp", (suid, format4) => {
11859
- if (format4 && !/t0|t[1-9]\d{1,}/.test(format4)) {
11860
- throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");
11861
- }
11862
- const stamp = format4 ? format4.replace(
11863
- /\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
11864
- (m) => {
11865
- const fnMap = {
11866
- "$r": (len2) => [...Array(len2)].map(() => "r").join(""),
11867
- "$s": (len2) => [...Array(len2)].map(() => "s").join(""),
11868
- "$t": (len2) => [...Array(len2)].map(() => "t").join("")
11869
- };
11870
- const fn2 = m.slice(0, 2);
11871
- const len = parseInt(m.slice(2), 10);
11872
- return fnMap[fn2](len);
11873
- }
11874
- ).replace(
11875
- /^(.*?)(t{8,})(.*)$/g,
11876
- (_m, p1, p2) => {
11877
- return suid.substring(p1.length, p1.length + p2.length);
11878
- }
11879
- ) : suid;
11880
- if (stamp.length === 8) {
11881
- return new Date(parseInt(stamp, 16) * 1e3);
11882
- }
11883
- if (stamp.length < 10) {
11884
- throw new Error("Stamp length invalid");
11885
- }
11886
- const rndIdx = parseInt(stamp.substring(stamp.length - 1), 16);
11887
- return new Date(parseInt(stamp.substring(rndIdx, rndIdx + 8), 16) * 1e3);
11888
- });
11889
- __publicField(this, "setCounter", (counter2) => {
11890
- this.counter = counter2;
11891
- });
11892
- __publicField(this, "validate", (uid4, dictionary2) => {
11893
- const finalDictionary = dictionary2 ? this._normalizeDictionary(dictionary2) : this.dict;
11894
- return uid4.split("").every((c) => finalDictionary.includes(c));
11895
- });
11896
- const options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
11897
- this.counter = 0;
11898
- this.debug = false;
11899
- this.dict = [];
11900
- this.version = version6;
11901
- const {
11902
- dictionary,
11903
- shuffle,
11904
- length: length3,
11905
- counter
11906
- } = options;
11907
- this.uuidLength = length3;
11908
- this.setDictionary(dictionary, shuffle);
11909
- this.setCounter(counter);
11910
- this.debug = options.debug;
11911
- this.log(this.dict);
11912
- this.log(
11913
- `Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
11914
- );
11915
- this.log = this.log.bind(this);
11916
- this.setDictionary = this.setDictionary.bind(this);
11917
- this.setCounter = this.setCounter.bind(this);
11918
- this.seq = this.seq.bind(this);
11919
- this.sequentialUUID = this.sequentialUUID.bind(this);
11920
- this.rnd = this.rnd.bind(this);
11921
- this.randomUUID = this.randomUUID.bind(this);
11922
- this.fmt = this.fmt.bind(this);
11923
- this.formattedUUID = this.formattedUUID.bind(this);
11924
- this.availableUUIDs = this.availableUUIDs.bind(this);
11925
- this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this);
11926
- this.collisionProbability = this.collisionProbability.bind(this);
11927
- this.uniqueness = this.uniqueness.bind(this);
11928
- this.getVersion = this.getVersion.bind(this);
11929
- this.stamp = this.stamp.bind(this);
11930
- this.parseStamp = this.parseStamp.bind(this);
11931
- return this;
11932
- }
11933
- };
11934
- __publicField(_ShortUniqueId, "default", _ShortUniqueId);
11935
- var ShortUniqueId3 = _ShortUniqueId;
11936
- return __toCommonJS(src_exports);
11937
- })();
11938
- "undefined" != typeof module3 && (module3.exports = ShortUniqueId2.default), "undefined" != typeof window && (ShortUniqueId2 = ShortUniqueId2.default);
11939
- }
11940
- });
11941
-
11942
11602
  // ../node_modules/lunr/lunr.js
11943
11603
  var require_lunr = __commonJS({
11944
11604
  "../node_modules/lunr/lunr.js"(exports, module3) {
@@ -13670,6 +13330,346 @@ var require_lunr = __commonJS({
13670
13330
  }
13671
13331
  });
13672
13332
 
13333
+ // ../node_modules/short-unique-id/dist/short-unique-id.js
13334
+ var require_short_unique_id = __commonJS({
13335
+ "../node_modules/short-unique-id/dist/short-unique-id.js"(exports, module3) {
13336
+ var ShortUniqueId2 = (() => {
13337
+ var __defProp = Object.defineProperty;
13338
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13339
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13340
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
13341
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
13342
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
13343
+ var __defNormalProp = (obj, key3, value7) => key3 in obj ? __defProp(obj, key3, { enumerable: true, configurable: true, writable: true, value: value7 }) : obj[key3] = value7;
13344
+ var __spreadValues = (a, b) => {
13345
+ for (var prop in b || (b = {}))
13346
+ if (__hasOwnProp.call(b, prop))
13347
+ __defNormalProp(a, prop, b[prop]);
13348
+ if (__getOwnPropSymbols)
13349
+ for (var prop of __getOwnPropSymbols(b)) {
13350
+ if (__propIsEnum.call(b, prop))
13351
+ __defNormalProp(a, prop, b[prop]);
13352
+ }
13353
+ return a;
13354
+ };
13355
+ var __export2 = (target6, all) => {
13356
+ for (var name9 in all)
13357
+ __defProp(target6, name9, { get: all[name9], enumerable: true });
13358
+ };
13359
+ var __copyProps = (to2, from2, except, desc) => {
13360
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
13361
+ for (let key3 of __getOwnPropNames(from2))
13362
+ if (!__hasOwnProp.call(to2, key3) && key3 !== except)
13363
+ __defProp(to2, key3, { get: () => from2[key3], enumerable: !(desc = __getOwnPropDesc(from2, key3)) || desc.enumerable });
13364
+ }
13365
+ return to2;
13366
+ };
13367
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
13368
+ var __publicField = (obj, key3, value7) => {
13369
+ __defNormalProp(obj, typeof key3 !== "symbol" ? key3 + "" : key3, value7);
13370
+ return value7;
13371
+ };
13372
+ var src_exports = {};
13373
+ __export2(src_exports, {
13374
+ DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
13375
+ DEFAULT_UUID_LENGTH: () => DEFAULT_UUID_LENGTH,
13376
+ default: () => ShortUniqueId3
13377
+ });
13378
+ var version6 = "5.2.0";
13379
+ var DEFAULT_UUID_LENGTH = 6;
13380
+ var DEFAULT_OPTIONS = {
13381
+ dictionary: "alphanum",
13382
+ shuffle: true,
13383
+ debug: false,
13384
+ length: DEFAULT_UUID_LENGTH,
13385
+ counter: 0
13386
+ };
13387
+ var _ShortUniqueId = class _ShortUniqueId {
13388
+ constructor(argOptions = {}) {
13389
+ __publicField(this, "counter");
13390
+ __publicField(this, "debug");
13391
+ __publicField(this, "dict");
13392
+ __publicField(this, "version");
13393
+ __publicField(this, "dictIndex", 0);
13394
+ __publicField(this, "dictRange", []);
13395
+ __publicField(this, "lowerBound", 0);
13396
+ __publicField(this, "upperBound", 0);
13397
+ __publicField(this, "dictLength", 0);
13398
+ __publicField(this, "uuidLength");
13399
+ __publicField(this, "_digit_first_ascii", 48);
13400
+ __publicField(this, "_digit_last_ascii", 58);
13401
+ __publicField(this, "_alpha_lower_first_ascii", 97);
13402
+ __publicField(this, "_alpha_lower_last_ascii", 123);
13403
+ __publicField(this, "_hex_last_ascii", 103);
13404
+ __publicField(this, "_alpha_upper_first_ascii", 65);
13405
+ __publicField(this, "_alpha_upper_last_ascii", 91);
13406
+ __publicField(this, "_number_dict_ranges", {
13407
+ digits: [this._digit_first_ascii, this._digit_last_ascii]
13408
+ });
13409
+ __publicField(this, "_alpha_dict_ranges", {
13410
+ lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
13411
+ upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
13412
+ });
13413
+ __publicField(this, "_alpha_lower_dict_ranges", {
13414
+ lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
13415
+ });
13416
+ __publicField(this, "_alpha_upper_dict_ranges", {
13417
+ upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
13418
+ });
13419
+ __publicField(this, "_alphanum_dict_ranges", {
13420
+ digits: [this._digit_first_ascii, this._digit_last_ascii],
13421
+ lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
13422
+ upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
13423
+ });
13424
+ __publicField(this, "_alphanum_lower_dict_ranges", {
13425
+ digits: [this._digit_first_ascii, this._digit_last_ascii],
13426
+ lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
13427
+ });
13428
+ __publicField(this, "_alphanum_upper_dict_ranges", {
13429
+ digits: [this._digit_first_ascii, this._digit_last_ascii],
13430
+ upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
13431
+ });
13432
+ __publicField(this, "_hex_dict_ranges", {
13433
+ decDigits: [this._digit_first_ascii, this._digit_last_ascii],
13434
+ alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
13435
+ });
13436
+ __publicField(this, "_dict_ranges", {
13437
+ _number_dict_ranges: this._number_dict_ranges,
13438
+ _alpha_dict_ranges: this._alpha_dict_ranges,
13439
+ _alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
13440
+ _alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
13441
+ _alphanum_dict_ranges: this._alphanum_dict_ranges,
13442
+ _alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
13443
+ _alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
13444
+ _hex_dict_ranges: this._hex_dict_ranges
13445
+ });
13446
+ __publicField(this, "log", (...args) => {
13447
+ const finalArgs = [...args];
13448
+ finalArgs[0] = `[short-unique-id] ${args[0]}`;
13449
+ if (this.debug === true) {
13450
+ if (typeof console !== "undefined" && console !== null) {
13451
+ return console.log(...finalArgs);
13452
+ }
13453
+ }
13454
+ });
13455
+ __publicField(this, "_normalizeDictionary", (dictionary2, shuffle2) => {
13456
+ let finalDict;
13457
+ if (dictionary2 && Array.isArray(dictionary2) && dictionary2.length > 1) {
13458
+ finalDict = dictionary2;
13459
+ } else {
13460
+ finalDict = [];
13461
+ let i;
13462
+ this.dictIndex = i = 0;
13463
+ const rangesName = `_${dictionary2}_dict_ranges`;
13464
+ const ranges = this._dict_ranges[rangesName];
13465
+ Object.keys(ranges).forEach((rangeType) => {
13466
+ const rangeTypeKey = rangeType;
13467
+ this.dictRange = ranges[rangeTypeKey];
13468
+ this.lowerBound = this.dictRange[0];
13469
+ this.upperBound = this.dictRange[1];
13470
+ for (this.dictIndex = i = this.lowerBound; this.lowerBound <= this.upperBound ? i < this.upperBound : i > this.upperBound; this.dictIndex = this.lowerBound <= this.upperBound ? i += 1 : i -= 1) {
13471
+ finalDict.push(String.fromCharCode(this.dictIndex));
13472
+ }
13473
+ });
13474
+ }
13475
+ if (shuffle2) {
13476
+ const PROBABILITY = 0.5;
13477
+ finalDict = finalDict.sort(() => Math.random() - PROBABILITY);
13478
+ }
13479
+ return finalDict;
13480
+ });
13481
+ __publicField(this, "setDictionary", (dictionary2, shuffle2) => {
13482
+ this.dict = this._normalizeDictionary(dictionary2, shuffle2);
13483
+ this.dictLength = this.dict.length;
13484
+ this.setCounter(0);
13485
+ });
13486
+ __publicField(this, "seq", () => {
13487
+ return this.sequentialUUID();
13488
+ });
13489
+ __publicField(this, "sequentialUUID", () => {
13490
+ let counterDiv;
13491
+ let counterRem;
13492
+ let id4 = "";
13493
+ counterDiv = this.counter;
13494
+ do {
13495
+ counterRem = counterDiv % this.dictLength;
13496
+ counterDiv = Math.trunc(counterDiv / this.dictLength);
13497
+ id4 += this.dict[counterRem];
13498
+ } while (counterDiv !== 0);
13499
+ this.counter += 1;
13500
+ return id4;
13501
+ });
13502
+ __publicField(this, "rnd", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
13503
+ return this.randomUUID(uuidLength);
13504
+ });
13505
+ __publicField(this, "randomUUID", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
13506
+ let id4;
13507
+ let randomPartIdx;
13508
+ let j;
13509
+ if (uuidLength === null || typeof uuidLength === "undefined" || uuidLength < 1) {
13510
+ throw new Error("Invalid UUID Length Provided");
13511
+ }
13512
+ id4 = "";
13513
+ for (j = 0; j < uuidLength; j += 1) {
13514
+ randomPartIdx = parseInt(
13515
+ (Math.random() * this.dictLength).toFixed(0),
13516
+ 10
13517
+ ) % this.dictLength;
13518
+ id4 += this.dict[randomPartIdx];
13519
+ }
13520
+ return id4;
13521
+ });
13522
+ __publicField(this, "fmt", (format4, date6) => {
13523
+ return this.formattedUUID(format4, date6);
13524
+ });
13525
+ __publicField(this, "formattedUUID", (format4, date6) => {
13526
+ const fnMap = {
13527
+ "$r": this.randomUUID,
13528
+ "$s": this.sequentialUUID,
13529
+ "$t": this.stamp
13530
+ };
13531
+ const result6 = format4.replace(
13532
+ /\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
13533
+ (m) => {
13534
+ const fn2 = m.slice(0, 2);
13535
+ const len = parseInt(m.slice(2), 10);
13536
+ if (fn2 === "$s") {
13537
+ return fnMap[fn2]().padStart(len, "0");
13538
+ }
13539
+ if (fn2 === "$t" && date6) {
13540
+ return fnMap[fn2](len, date6);
13541
+ }
13542
+ return fnMap[fn2](len);
13543
+ }
13544
+ );
13545
+ return result6;
13546
+ });
13547
+ __publicField(this, "availableUUIDs", (uuidLength = this.uuidLength) => {
13548
+ return parseFloat(
13549
+ Math.pow([...new Set(this.dict)].length, uuidLength).toFixed(0)
13550
+ );
13551
+ });
13552
+ __publicField(this, "approxMaxBeforeCollision", (rounds = this.availableUUIDs(this.uuidLength)) => {
13553
+ return parseFloat(
13554
+ Math.sqrt(Math.PI / 2 * rounds).toFixed(20)
13555
+ );
13556
+ });
13557
+ __publicField(this, "collisionProbability", (rounds = this.availableUUIDs(this.uuidLength), uuidLength = this.uuidLength) => {
13558
+ return parseFloat(
13559
+ (this.approxMaxBeforeCollision(rounds) / this.availableUUIDs(uuidLength)).toFixed(20)
13560
+ );
13561
+ });
13562
+ __publicField(this, "uniqueness", (rounds = this.availableUUIDs(this.uuidLength)) => {
13563
+ const score2 = parseFloat(
13564
+ (1 - this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20)
13565
+ );
13566
+ return score2 > 1 ? 1 : score2 < 0 ? 0 : score2;
13567
+ });
13568
+ __publicField(this, "getVersion", () => {
13569
+ return this.version;
13570
+ });
13571
+ __publicField(this, "stamp", (finalLength, date6) => {
13572
+ const hexStamp = Math.floor(+(date6 || /* @__PURE__ */ new Date()) / 1e3).toString(16);
13573
+ if (typeof finalLength === "number" && finalLength === 0) {
13574
+ return hexStamp;
13575
+ }
13576
+ if (typeof finalLength !== "number" || finalLength < 10) {
13577
+ throw new Error(
13578
+ [
13579
+ "Param finalLength must be a number greater than or equal to 10,",
13580
+ "or 0 if you want the raw hexadecimal timestamp"
13581
+ ].join("\n")
13582
+ );
13583
+ }
13584
+ const idLength = finalLength - 9;
13585
+ const rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
13586
+ const id4 = this.randomUUID(idLength);
13587
+ return `${id4.substring(0, rndIdx)}${hexStamp}${id4.substring(rndIdx)}${rndIdx.toString(16)}`;
13588
+ });
13589
+ __publicField(this, "parseStamp", (suid, format4) => {
13590
+ if (format4 && !/t0|t[1-9]\d{1,}/.test(format4)) {
13591
+ throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");
13592
+ }
13593
+ const stamp = format4 ? format4.replace(
13594
+ /\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
13595
+ (m) => {
13596
+ const fnMap = {
13597
+ "$r": (len2) => [...Array(len2)].map(() => "r").join(""),
13598
+ "$s": (len2) => [...Array(len2)].map(() => "s").join(""),
13599
+ "$t": (len2) => [...Array(len2)].map(() => "t").join("")
13600
+ };
13601
+ const fn2 = m.slice(0, 2);
13602
+ const len = parseInt(m.slice(2), 10);
13603
+ return fnMap[fn2](len);
13604
+ }
13605
+ ).replace(
13606
+ /^(.*?)(t{8,})(.*)$/g,
13607
+ (_m, p1, p2) => {
13608
+ return suid.substring(p1.length, p1.length + p2.length);
13609
+ }
13610
+ ) : suid;
13611
+ if (stamp.length === 8) {
13612
+ return new Date(parseInt(stamp, 16) * 1e3);
13613
+ }
13614
+ if (stamp.length < 10) {
13615
+ throw new Error("Stamp length invalid");
13616
+ }
13617
+ const rndIdx = parseInt(stamp.substring(stamp.length - 1), 16);
13618
+ return new Date(parseInt(stamp.substring(rndIdx, rndIdx + 8), 16) * 1e3);
13619
+ });
13620
+ __publicField(this, "setCounter", (counter2) => {
13621
+ this.counter = counter2;
13622
+ });
13623
+ __publicField(this, "validate", (uid4, dictionary2) => {
13624
+ const finalDictionary = dictionary2 ? this._normalizeDictionary(dictionary2) : this.dict;
13625
+ return uid4.split("").every((c) => finalDictionary.includes(c));
13626
+ });
13627
+ const options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
13628
+ this.counter = 0;
13629
+ this.debug = false;
13630
+ this.dict = [];
13631
+ this.version = version6;
13632
+ const {
13633
+ dictionary,
13634
+ shuffle,
13635
+ length: length3,
13636
+ counter
13637
+ } = options;
13638
+ this.uuidLength = length3;
13639
+ this.setDictionary(dictionary, shuffle);
13640
+ this.setCounter(counter);
13641
+ this.debug = options.debug;
13642
+ this.log(this.dict);
13643
+ this.log(
13644
+ `Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
13645
+ );
13646
+ this.log = this.log.bind(this);
13647
+ this.setDictionary = this.setDictionary.bind(this);
13648
+ this.setCounter = this.setCounter.bind(this);
13649
+ this.seq = this.seq.bind(this);
13650
+ this.sequentialUUID = this.sequentialUUID.bind(this);
13651
+ this.rnd = this.rnd.bind(this);
13652
+ this.randomUUID = this.randomUUID.bind(this);
13653
+ this.fmt = this.fmt.bind(this);
13654
+ this.formattedUUID = this.formattedUUID.bind(this);
13655
+ this.availableUUIDs = this.availableUUIDs.bind(this);
13656
+ this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this);
13657
+ this.collisionProbability = this.collisionProbability.bind(this);
13658
+ this.uniqueness = this.uniqueness.bind(this);
13659
+ this.getVersion = this.getVersion.bind(this);
13660
+ this.stamp = this.stamp.bind(this);
13661
+ this.parseStamp = this.parseStamp.bind(this);
13662
+ return this;
13663
+ }
13664
+ };
13665
+ __publicField(_ShortUniqueId, "default", _ShortUniqueId);
13666
+ var ShortUniqueId3 = _ShortUniqueId;
13667
+ return __toCommonJS(src_exports);
13668
+ })();
13669
+ "undefined" != typeof module3 && (module3.exports = ShortUniqueId2.default), "undefined" != typeof window && (ShortUniqueId2 = ShortUniqueId2.default);
13670
+ }
13671
+ });
13672
+
13673
13673
  // ../node_modules/slugify/slugify.js
13674
13674
  var require_slugify = __commonJS({
13675
13675
  "../node_modules/slugify/slugify.js"(exports, module3) {
@@ -14297,18 +14297,18 @@ function pipeFromArray(fns) {
14297
14297
 
14298
14298
  // ../node_modules/rxjs/dist/esm5/internal/Observable.js
14299
14299
  var Observable = (function() {
14300
- function Observable3(subscribe) {
14300
+ function Observable4(subscribe) {
14301
14301
  if (subscribe) {
14302
14302
  this._subscribe = subscribe;
14303
14303
  }
14304
14304
  }
14305
- Observable3.prototype.lift = function(operator2) {
14306
- var observable2 = new Observable3();
14305
+ Observable4.prototype.lift = function(operator2) {
14306
+ var observable2 = new Observable4();
14307
14307
  observable2.source = this;
14308
14308
  observable2.operator = operator2;
14309
14309
  return observable2;
14310
14310
  };
14311
- Observable3.prototype.subscribe = function(observerOrNext, error4, complete2) {
14311
+ Observable4.prototype.subscribe = function(observerOrNext, error4, complete2) {
14312
14312
  var _this = this;
14313
14313
  var subscriber3 = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error4, complete2);
14314
14314
  errorContext(function() {
@@ -14317,14 +14317,14 @@ var Observable = (function() {
14317
14317
  });
14318
14318
  return subscriber3;
14319
14319
  };
14320
- Observable3.prototype._trySubscribe = function(sink) {
14320
+ Observable4.prototype._trySubscribe = function(sink) {
14321
14321
  try {
14322
14322
  return this._subscribe(sink);
14323
14323
  } catch (err2) {
14324
14324
  sink.error(err2);
14325
14325
  }
14326
14326
  };
14327
- Observable3.prototype.forEach = function(next4, promiseCtor) {
14327
+ Observable4.prototype.forEach = function(next4, promiseCtor) {
14328
14328
  var _this = this;
14329
14329
  promiseCtor = getPromiseCtor(promiseCtor);
14330
14330
  return new promiseCtor(function(resolve, reject) {
@@ -14343,21 +14343,21 @@ var Observable = (function() {
14343
14343
  _this.subscribe(subscriber3);
14344
14344
  });
14345
14345
  };
14346
- Observable3.prototype._subscribe = function(subscriber3) {
14346
+ Observable4.prototype._subscribe = function(subscriber3) {
14347
14347
  var _a;
14348
14348
  return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber3);
14349
14349
  };
14350
- Observable3.prototype[observable] = function() {
14350
+ Observable4.prototype[observable] = function() {
14351
14351
  return this;
14352
14352
  };
14353
- Observable3.prototype.pipe = function() {
14353
+ Observable4.prototype.pipe = function() {
14354
14354
  var operations = [];
14355
14355
  for (var _i = 0; _i < arguments.length; _i++) {
14356
14356
  operations[_i] = arguments[_i];
14357
14357
  }
14358
14358
  return pipeFromArray(operations)(this);
14359
14359
  };
14360
- Observable3.prototype.toPromise = function(promiseCtor) {
14360
+ Observable4.prototype.toPromise = function(promiseCtor) {
14361
14361
  var _this = this;
14362
14362
  promiseCtor = getPromiseCtor(promiseCtor);
14363
14363
  return new promiseCtor(function(resolve, reject) {
@@ -14371,10 +14371,10 @@ var Observable = (function() {
14371
14371
  });
14372
14372
  });
14373
14373
  };
14374
- Observable3.create = function(subscribe) {
14375
- return new Observable3(subscribe);
14374
+ Observable4.create = function(subscribe) {
14375
+ return new Observable4(subscribe);
14376
14376
  };
14377
- return Observable3;
14377
+ return Observable4;
14378
14378
  })();
14379
14379
  function getPromiseCtor(promiseCtor) {
14380
14380
  var _a;
@@ -14652,6 +14652,187 @@ var AnonymousSubject = (function(_super) {
14652
14652
  return BehaviorSubject3;
14653
14653
  }))(Subject);
14654
14654
 
14655
+ // ../node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js
14656
+ var dateTimestampProvider = {
14657
+ now: function() {
14658
+ return (Date).now();
14659
+ }};
14660
+
14661
+ // ../node_modules/rxjs/dist/esm5/internal/scheduler/Action.js
14662
+ var Action = (function(_super) {
14663
+ __extends(Action5, _super);
14664
+ function Action5(scheduler, work) {
14665
+ return _super.call(this) || this;
14666
+ }
14667
+ Action5.prototype.schedule = function(state2, delay) {
14668
+ return this;
14669
+ };
14670
+ return Action5;
14671
+ })(Subscription);
14672
+
14673
+ // ../node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js
14674
+ var intervalProvider = {
14675
+ setInterval: function(handler, timeout2) {
14676
+ var args = [];
14677
+ for (var _i = 2; _i < arguments.length; _i++) {
14678
+ args[_i - 2] = arguments[_i];
14679
+ }
14680
+ return setInterval.apply(void 0, __spreadArray([handler, timeout2], __read(args)));
14681
+ },
14682
+ clearInterval: function(handle) {
14683
+ return (clearInterval)(handle);
14684
+ },
14685
+ delegate: void 0
14686
+ };
14687
+
14688
+ // ../node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js
14689
+ var AsyncAction = (function(_super) {
14690
+ __extends(AsyncAction2, _super);
14691
+ function AsyncAction2(scheduler, work) {
14692
+ var _this = _super.call(this, scheduler, work) || this;
14693
+ _this.scheduler = scheduler;
14694
+ _this.work = work;
14695
+ _this.pending = false;
14696
+ return _this;
14697
+ }
14698
+ AsyncAction2.prototype.schedule = function(state2, delay) {
14699
+ var _a;
14700
+ if (delay === void 0) {
14701
+ delay = 0;
14702
+ }
14703
+ if (this.closed) {
14704
+ return this;
14705
+ }
14706
+ this.state = state2;
14707
+ var id4 = this.id;
14708
+ var scheduler = this.scheduler;
14709
+ if (id4 != null) {
14710
+ this.id = this.recycleAsyncId(scheduler, id4, delay);
14711
+ }
14712
+ this.pending = true;
14713
+ this.delay = delay;
14714
+ this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
14715
+ return this;
14716
+ };
14717
+ AsyncAction2.prototype.requestAsyncId = function(scheduler, _id2, delay) {
14718
+ if (delay === void 0) {
14719
+ delay = 0;
14720
+ }
14721
+ return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
14722
+ };
14723
+ AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id4, delay) {
14724
+ if (delay === void 0) {
14725
+ delay = 0;
14726
+ }
14727
+ if (delay != null && this.delay === delay && this.pending === false) {
14728
+ return id4;
14729
+ }
14730
+ if (id4 != null) {
14731
+ intervalProvider.clearInterval(id4);
14732
+ }
14733
+ return void 0;
14734
+ };
14735
+ AsyncAction2.prototype.execute = function(state2, delay) {
14736
+ if (this.closed) {
14737
+ return new Error("executing a cancelled action");
14738
+ }
14739
+ this.pending = false;
14740
+ var error4 = this._execute(state2, delay);
14741
+ if (error4) {
14742
+ return error4;
14743
+ } else if (this.pending === false && this.id != null) {
14744
+ this.id = this.recycleAsyncId(this.scheduler, this.id, null);
14745
+ }
14746
+ };
14747
+ AsyncAction2.prototype._execute = function(state2, _delay) {
14748
+ var errored = false;
14749
+ var errorValue;
14750
+ try {
14751
+ this.work(state2);
14752
+ } catch (e) {
14753
+ errored = true;
14754
+ errorValue = e ? e : new Error("Scheduled action threw falsy error");
14755
+ }
14756
+ if (errored) {
14757
+ this.unsubscribe();
14758
+ return errorValue;
14759
+ }
14760
+ };
14761
+ AsyncAction2.prototype.unsubscribe = function() {
14762
+ if (!this.closed) {
14763
+ var _a = this, id4 = _a.id, scheduler = _a.scheduler;
14764
+ var actions = scheduler.actions;
14765
+ this.work = this.state = this.scheduler = null;
14766
+ this.pending = false;
14767
+ arrRemove(actions, this);
14768
+ if (id4 != null) {
14769
+ this.id = this.recycleAsyncId(scheduler, id4, null);
14770
+ }
14771
+ this.delay = null;
14772
+ _super.prototype.unsubscribe.call(this);
14773
+ }
14774
+ };
14775
+ return AsyncAction2;
14776
+ })(Action);
14777
+
14778
+ // ../node_modules/rxjs/dist/esm5/internal/Scheduler.js
14779
+ var Scheduler = (function() {
14780
+ function Scheduler2(schedulerActionCtor, now) {
14781
+ if (now === void 0) {
14782
+ now = Scheduler2.now;
14783
+ }
14784
+ this.schedulerActionCtor = schedulerActionCtor;
14785
+ this.now = now;
14786
+ }
14787
+ Scheduler2.prototype.schedule = function(work, delay, state2) {
14788
+ if (delay === void 0) {
14789
+ delay = 0;
14790
+ }
14791
+ return new this.schedulerActionCtor(this, work).schedule(state2, delay);
14792
+ };
14793
+ Scheduler2.now = dateTimestampProvider.now;
14794
+ return Scheduler2;
14795
+ })();
14796
+
14797
+ // ../node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js
14798
+ var AsyncScheduler = (function(_super) {
14799
+ __extends(AsyncScheduler2, _super);
14800
+ function AsyncScheduler2(SchedulerAction, now) {
14801
+ if (now === void 0) {
14802
+ now = Scheduler.now;
14803
+ }
14804
+ var _this = _super.call(this, SchedulerAction, now) || this;
14805
+ _this.actions = [];
14806
+ _this._active = false;
14807
+ return _this;
14808
+ }
14809
+ AsyncScheduler2.prototype.flush = function(action3) {
14810
+ var actions = this.actions;
14811
+ if (this._active) {
14812
+ actions.push(action3);
14813
+ return;
14814
+ }
14815
+ var error4;
14816
+ this._active = true;
14817
+ do {
14818
+ if (error4 = action3.execute(action3.state, action3.delay)) {
14819
+ break;
14820
+ }
14821
+ } while (action3 = actions.shift());
14822
+ this._active = false;
14823
+ if (error4) {
14824
+ while (action3 = actions.shift()) {
14825
+ action3.unsubscribe();
14826
+ }
14827
+ throw error4;
14828
+ }
14829
+ };
14830
+ return AsyncScheduler2;
14831
+ })(Scheduler);
14832
+
14833
+ // ../node_modules/rxjs/dist/esm5/internal/scheduler/async.js
14834
+ var asyncScheduler = new AsyncScheduler(AsyncAction);
14835
+
14655
14836
  // ../node_modules/rxjs/dist/esm5/internal/observable/empty.js
14656
14837
  var EMPTY = new Observable(function(subscriber3) {
14657
14838
  return subscriber3.complete();
@@ -15186,6 +15367,50 @@ function filter(predicate4, thisArg) {
15186
15367
  });
15187
15368
  }
15188
15369
 
15370
+ // ../node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js
15371
+ function debounceTime(dueTime, scheduler) {
15372
+ if (scheduler === void 0) {
15373
+ scheduler = asyncScheduler;
15374
+ }
15375
+ return operate(function(source8, subscriber3) {
15376
+ var activeTask = null;
15377
+ var lastValue = null;
15378
+ var lastTime = null;
15379
+ var emit = function() {
15380
+ if (activeTask) {
15381
+ activeTask.unsubscribe();
15382
+ activeTask = null;
15383
+ var value7 = lastValue;
15384
+ lastValue = null;
15385
+ subscriber3.next(value7);
15386
+ }
15387
+ };
15388
+ function emitWhenIdle() {
15389
+ var targetTime = lastTime + dueTime;
15390
+ var now = scheduler.now();
15391
+ if (now < targetTime) {
15392
+ activeTask = this.schedule(void 0, targetTime - now);
15393
+ subscriber3.add(activeTask);
15394
+ return;
15395
+ }
15396
+ emit();
15397
+ }
15398
+ source8.subscribe(createOperatorSubscriber(subscriber3, function(value7) {
15399
+ lastValue = value7;
15400
+ lastTime = scheduler.now();
15401
+ if (!activeTask) {
15402
+ activeTask = scheduler.schedule(emitWhenIdle, dueTime);
15403
+ subscriber3.add(activeTask);
15404
+ }
15405
+ }, function() {
15406
+ emit();
15407
+ subscriber3.complete();
15408
+ }, void 0, function() {
15409
+ lastValue = activeTask = null;
15410
+ }));
15411
+ });
15412
+ }
15413
+
15189
15414
  // ../node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js
15190
15415
  function distinctUntilChanged(comparator2, keySelector) {
15191
15416
  if (keySelector === void 0) {
@@ -16147,7 +16372,7 @@ var standard_default = types;
16147
16372
 
16148
16373
  // ../node_modules/mime/dist/src/Mime.js
16149
16374
  var __classPrivateFieldGet = function(receiver2, state2, kind2, f) {
16150
- if (typeof state2 === "function" ? receiver2 !== state2 || true : !state2.has(receiver2)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16375
+ if (typeof state2 === "function" ? receiver2 !== state2 || !f : !state2.has(receiver2)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16151
16376
  return kind2 === "m" ? f : kind2 === "a" ? f.call(receiver2) : f ? f.value : state2.get(receiver2);
16152
16377
  };
16153
16378
  var _Mime_extensionToType;
@@ -16352,7 +16577,7 @@ function _defineProperty(e, r, t) {
16352
16577
  }) : e[r] = t, e;
16353
16578
  }
16354
16579
 
16355
- // ../node_modules/rdflib/esm/class-order.js
16580
+ // node_modules/rdflib/esm/class-order.js
16356
16581
  var ClassOrder = {
16357
16582
  "Literal": 1,
16358
16583
  "Collection": 3,
@@ -16363,7 +16588,7 @@ var ClassOrder = {
16363
16588
  };
16364
16589
  var class_order_default = ClassOrder;
16365
16590
 
16366
- // ../node_modules/rdflib/esm/node-internal.js
16591
+ // node_modules/rdflib/esm/node-internal.js
16367
16592
  var Node2 = class {
16368
16593
  constructor(value7) {
16369
16594
  _defineProperty(this, "termType", void 0);
@@ -16450,7 +16675,7 @@ var Node2 = class {
16450
16675
  _defineProperty(Node2, "fromValue", void 0);
16451
16676
  _defineProperty(Node2, "toJS", void 0);
16452
16677
 
16453
- // ../node_modules/rdflib/esm/types.js
16678
+ // node_modules/rdflib/esm/types.js
16454
16679
  var NamedNodeTermType = "NamedNode";
16455
16680
  var BlankNodeTermType = "BlankNode";
16456
16681
  var LiteralTermType = "Literal";
@@ -16473,7 +16698,7 @@ var TurtleContentType = "text/turtle";
16473
16698
  var TurtleLegacyContentType = "application/x-turtle";
16474
16699
  var XHTMLContentType = "application/xhtml+xml";
16475
16700
 
16476
- // ../node_modules/rdflib/esm/blank-node.js
16701
+ // node_modules/rdflib/esm/blank-node.js
16477
16702
  var BlankNode = class _BlankNode extends Node2 {
16478
16703
  static getId(id4) {
16479
16704
  if (id4) {
@@ -16542,7 +16767,7 @@ var BlankNode = class _BlankNode extends Node2 {
16542
16767
  _defineProperty(BlankNode, "nextId", 0);
16543
16768
  _defineProperty(BlankNode, "NTAnonymousNodePrefix", "_:");
16544
16769
 
16545
- // ../node_modules/rdflib/esm/utils/termValue.js
16770
+ // node_modules/rdflib/esm/utils/termValue.js
16546
16771
  function termValue(node3) {
16547
16772
  if (typeof node3 === "string") {
16548
16773
  return node3;
@@ -16550,7 +16775,7 @@ function termValue(node3) {
16550
16775
  return node3.value;
16551
16776
  }
16552
16777
 
16553
- // ../node_modules/rdflib/esm/utils/terms.js
16778
+ // node_modules/rdflib/esm/utils/terms.js
16554
16779
  function isStatement(obj) {
16555
16780
  return typeof obj === "object" && obj !== null && "subject" in obj;
16556
16781
  }
@@ -16591,7 +16816,7 @@ function isGraph(obj) {
16591
16816
  return isTerm(obj) && (obj.termType === NamedNodeTermType || obj.termType === VariableTermType || obj.termType === BlankNodeTermType || obj.termType === DefaultGraphTermType);
16592
16817
  }
16593
16818
 
16594
- // ../node_modules/rdflib/esm/named-node.js
16819
+ // node_modules/rdflib/esm/named-node.js
16595
16820
  var NamedNode = class _NamedNode extends Node2 {
16596
16821
  /**
16597
16822
  * Create a named (IRI) RDF Node
@@ -16681,7 +16906,7 @@ var NamedNode = class _NamedNode extends Node2 {
16681
16906
  }
16682
16907
  };
16683
16908
 
16684
- // ../node_modules/rdflib/esm/xsd-internal.js
16909
+ // node_modules/rdflib/esm/xsd-internal.js
16685
16910
  var xsd_internal_default = {
16686
16911
  boolean: new NamedNode("http://www.w3.org/2001/XMLSchema#boolean"),
16687
16912
  dateTime: new NamedNode("http://www.w3.org/2001/XMLSchema#dateTime"),
@@ -16692,7 +16917,7 @@ var xsd_internal_default = {
16692
16917
  string: new NamedNode("http://www.w3.org/2001/XMLSchema#string")
16693
16918
  };
16694
16919
 
16695
- // ../node_modules/rdflib/esm/literal.js
16920
+ // node_modules/rdflib/esm/literal.js
16696
16921
  var Literal = class _Literal extends Node2 {
16697
16922
  /**
16698
16923
  * Initializes a literal
@@ -16831,7 +17056,7 @@ var Literal = class _Literal extends Node2 {
16831
17056
  }
16832
17057
  };
16833
17058
 
16834
- // ../node_modules/rdflib/esm/collection.js
17059
+ // node_modules/rdflib/esm/collection.js
16835
17060
  function fromValue(value7) {
16836
17061
  if (typeof value7 === "undefined" || value7 === null) {
16837
17062
  return value7;
@@ -16916,11 +17141,11 @@ var Collection = class _Collection extends Node2 {
16916
17141
  };
16917
17142
  _defineProperty(Collection, "termType", CollectionTermType);
16918
17143
 
16919
- // ../node_modules/rdflib/esm/utils/default-graph-uri.js
17144
+ // node_modules/rdflib/esm/utils/default-graph-uri.js
16920
17145
  var defaultGraphURI = "chrome:theSession";
16921
17146
  new NamedNode(defaultGraphURI);
16922
17147
 
16923
- // ../node_modules/rdflib/esm/default-graph.js
17148
+ // node_modules/rdflib/esm/default-graph.js
16924
17149
  var DefaultGraph = class extends Node2 {
16925
17150
  constructor() {
16926
17151
  super("");
@@ -16939,7 +17164,7 @@ function isDefaultGraph(object8) {
16939
17164
  return !!object8 && object8.termType === DefaultGraphTermType;
16940
17165
  }
16941
17166
 
16942
- // ../node_modules/rdflib/esm/statement.js
17167
+ // node_modules/rdflib/esm/statement.js
16943
17168
  var defaultGraph = new DefaultGraph();
16944
17169
  var Statement = class _Statement {
16945
17170
  /**
@@ -17013,7 +17238,7 @@ var Statement = class _Statement {
17013
17238
  }
17014
17239
  };
17015
17240
 
17016
- // ../node_modules/rdflib/esm/uri.js
17241
+ // node_modules/rdflib/esm/uri.js
17017
17242
  var uri_exports = {};
17018
17243
  __export(uri_exports, {
17019
17244
  docpart: () => docpart,
@@ -17182,7 +17407,7 @@ function refTo(base2, uri6) {
17182
17407
  return s + uri6.slice(i);
17183
17408
  }
17184
17409
 
17185
- // ../node_modules/rdflib/esm/variable.js
17410
+ // node_modules/rdflib/esm/variable.js
17186
17411
  var Variable = class _Variable extends Node2 {
17187
17412
  /**
17188
17413
  * Initializes this variable
@@ -17222,7 +17447,7 @@ var Variable = class _Variable extends Node2 {
17222
17447
  }
17223
17448
  };
17224
17449
 
17225
- // ../node_modules/rdflib/esm/factories/factory-types.js
17450
+ // node_modules/rdflib/esm/factories/factory-types.js
17226
17451
  var Feature = /* @__PURE__ */ (function(Feature2) {
17227
17452
  Feature2["collections"] = "COLLECTIONS";
17228
17453
  Feature2["defaultGraphType"] = "DEFAULT_GRAPH_TYPE";
@@ -17234,7 +17459,7 @@ var Feature = /* @__PURE__ */ (function(Feature2) {
17234
17459
  return Feature2;
17235
17460
  })({});
17236
17461
 
17237
- // ../node_modules/rdflib/esm/factories/canonical-data-factory.js
17462
+ // node_modules/rdflib/esm/factories/canonical-data-factory.js
17238
17463
  var defaultGraph2 = new DefaultGraph();
17239
17464
  var CanonicalDataFactory = {
17240
17465
  supports: {
@@ -17390,7 +17615,7 @@ var CanonicalDataFactory = {
17390
17615
  };
17391
17616
  var canonical_data_factory_default = CanonicalDataFactory;
17392
17617
 
17393
- // ../node_modules/rdflib/esm/log.js
17618
+ // node_modules/rdflib/esm/log.js
17394
17619
  var log = {
17395
17620
  debug(x) {
17396
17621
  },
@@ -17407,7 +17632,7 @@ var log = {
17407
17632
  };
17408
17633
  var log_default = log;
17409
17634
 
17410
- // ../node_modules/rdflib/esm/namespace.js
17635
+ // node_modules/rdflib/esm/namespace.js
17411
17636
  function Namespace(nsuri, factory) {
17412
17637
  const dataFactory = factory || {
17413
17638
  namedNode: (value7) => new NamedNode(value7)
@@ -17417,11 +17642,11 @@ function Namespace(nsuri, factory) {
17417
17642
  };
17418
17643
  }
17419
17644
 
17420
- // ../node_modules/rdflib/esm/serializer.js
17645
+ // node_modules/rdflib/esm/serializer.js
17421
17646
  var ttl2jsonld = __toESM(require_ttl2jsonld());
17422
17647
  var import_solid_namespace = __toESM(require_solid_namespace());
17423
17648
 
17424
- // ../node_modules/rdflib/esm/utils-js.js
17649
+ // node_modules/rdflib/esm/utils-js.js
17425
17650
  var import_xmldom = __toESM(require_lib());
17426
17651
  function mediaTypeClass(mediaType2) {
17427
17652
  mediaType2 = mediaType2.split(";")[0].trim();
@@ -17620,7 +17845,7 @@ function stackString(e) {
17620
17845
  return str;
17621
17846
  }
17622
17847
 
17623
- // ../node_modules/rdflib/esm/xsd.js
17848
+ // node_modules/rdflib/esm/xsd.js
17624
17849
  function createXSD(localFactory = canonical_data_factory_default) {
17625
17850
  return {
17626
17851
  boolean: localFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),
@@ -17634,7 +17859,7 @@ function createXSD(localFactory = canonical_data_factory_default) {
17634
17859
  }
17635
17860
  createXSD(canonical_data_factory_default);
17636
17861
 
17637
- // ../node_modules/rdflib/esm/serializer.js
17862
+ // node_modules/rdflib/esm/serializer.js
17638
17863
  function createSerializer(store) {
17639
17864
  return new Serializer(store);
17640
17865
  }
@@ -18483,7 +18708,7 @@ function backslashUify(str) {
18483
18708
  return res;
18484
18709
  }
18485
18710
 
18486
- // ../node_modules/rdflib/esm/serialize.js
18711
+ // node_modules/rdflib/esm/serialize.js
18487
18712
  function serialize(target6, kb, base2, contentType4, callback, options) {
18488
18713
  base2 = base2 || target6?.value;
18489
18714
  const opts = options || {};
@@ -18545,7 +18770,7 @@ function serialize(target6, kb, base2, contentType4, callback, options) {
18545
18770
  }
18546
18771
  }
18547
18772
 
18548
- // ../node_modules/rdflib/esm/utils.js
18773
+ // node_modules/rdflib/esm/utils.js
18549
18774
  var appliedFactoryMethods = ["blankNode", "defaultGraph", "literal", "namedNode", "quad", "variable", "supports"];
18550
18775
  var rdf = {
18551
18776
  first: "http://www.w3.org/1999/02/22-rdf-syntax-ns#first",
@@ -18578,7 +18803,7 @@ function ArrayIndexOf(arr, item4, i = 0) {
18578
18803
  return -1;
18579
18804
  }
18580
18805
 
18581
- // ../node_modules/rdflib/esm/formula.js
18806
+ // node_modules/rdflib/esm/formula.js
18582
18807
  var Formula = class _Formula extends Node2 {
18583
18808
  /**
18584
18809
  * Initializes this formula
@@ -19253,7 +19478,7 @@ var Formula = class _Formula extends Node2 {
19253
19478
  }
19254
19479
  };
19255
19480
 
19256
- // ../node_modules/rdflib/esm/node.js
19481
+ // node_modules/rdflib/esm/node.js
19257
19482
  Node2.fromValue = fromValue;
19258
19483
  var node_default = Node2;
19259
19484
  var ns = {
@@ -19276,7 +19501,7 @@ Node2.toJS = function(term3) {
19276
19501
  return term3.value;
19277
19502
  };
19278
19503
 
19279
- // ../node_modules/rdflib/esm/query.js
19504
+ // node_modules/rdflib/esm/query.js
19280
19505
  var Query = class {
19281
19506
  constructor(name9, id4) {
19282
19507
  this.pat = new IndexedFormula();
@@ -19643,7 +19868,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher2, onDone) {
19643
19868
  }
19644
19869
  }
19645
19870
 
19646
- // ../node_modules/rdflib/esm/store.js
19871
+ // node_modules/rdflib/esm/store.js
19647
19872
  var owlNamespaceURI = "http://www.w3.org/2002/07/owl#";
19648
19873
  function handleFP(formula2, subj, pred, obj) {
19649
19874
  var o1 = formula2.any(subj, pred, void 0);
@@ -20530,7 +20755,7 @@ var IndexedFormula = class _IndexedFormula extends Formula {
20530
20755
  _defineProperty(IndexedFormula, "handleRDFType", void 0);
20531
20756
  IndexedFormula.handleRDFType = handleRDFType;
20532
20757
 
20533
- // ../node_modules/rdflib/esm/lists.js
20758
+ // node_modules/rdflib/esm/lists.js
20534
20759
  var RDF = Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");
20535
20760
  function substituteInDoc(store, x, y, doc) {
20536
20761
  for (const quad3 of store.statementsMatching(y, null, null, doc)) {
@@ -20592,7 +20817,7 @@ function convertFirstRestNil(store, doc) {
20592
20817
  });
20593
20818
  }
20594
20819
 
20595
- // ../node_modules/rdflib/esm/n3parser.js
20820
+ // node_modules/rdflib/esm/n3parser.js
20596
20821
  function hexify2(str) {
20597
20822
  return encodeURI(str);
20598
20823
  }
@@ -21057,8 +21282,7 @@ var SinkParser = class {
21057
21282
  while ("!^.".indexOf(str.slice(j, j + 1)) >= 0) {
21058
21283
  var ch = str.slice(j, j + 1);
21059
21284
  if (ch == ".") {
21060
- var ahead = str.slice(j + 1, j + 2);
21061
- if (!ahead || _notNameChars.indexOf(ahead) >= 0 && ":?<[{(".indexOf(ahead) < 0) {
21285
+ if (dotTerminatesName(str, j)) {
21062
21286
  break;
21063
21287
  }
21064
21288
  }
@@ -21835,7 +22059,7 @@ function BadSyntax(uri6, lines, str, i, why) {
21835
22059
  return e;
21836
22060
  }
21837
22061
 
21838
- // ../node_modules/rdflib/esm/factories/extended-term-factory.js
22062
+ // node_modules/rdflib/esm/factories/extended-term-factory.js
21839
22063
  var ExtendedTermFactory = {
21840
22064
  ...canonical_data_factory_default,
21841
22065
  supports: {
@@ -21874,7 +22098,7 @@ var ExtendedTermFactory = {
21874
22098
  };
21875
22099
  var extended_term_factory_default = ExtendedTermFactory;
21876
22100
 
21877
- // ../node_modules/rdflib/esm/jsonldparser.js
22101
+ // node_modules/rdflib/esm/jsonldparser.js
21878
22102
  function jsonldObjectToTerm(kb, obj) {
21879
22103
  if (typeof obj === "string") {
21880
22104
  return kb.rdfFactory.literal(obj);
@@ -21914,7 +22138,7 @@ function listToCollection(kb, obj) {
21914
22138
  }
21915
22139
  async function jsonldParser(str, kb, base2) {
21916
22140
  const baseString = base2 && Object.prototype.hasOwnProperty.call(base2, "termType") ? base2.value : base2;
21917
- const jsonld = await import('./jsonld-V2RB47OZ-CaIJ08AA.js');
22141
+ const jsonld = await import('./jsonld-V2RB47OZ-BbN7F0s8.js');
21918
22142
  const flattened = await jsonld.default.flatten(JSON.parse(str), null, {
21919
22143
  base: baseString
21920
22144
  });
@@ -23583,7 +23807,7 @@ function initDataFactory(parser, factory) {
23583
23807
  }
23584
23808
  initDataFactory(N3Parser.prototype, N3DataFactory_default);
23585
23809
 
23586
- // ../node_modules/rdflib/esm/rdfaparser.js
23810
+ // node_modules/rdflib/esm/rdfaparser.js
23587
23811
  if (typeof Node3 === "undefined") {
23588
23812
  Node3 = {
23589
23813
  ELEMENT_NODE: 1,
@@ -24472,7 +24696,7 @@ RDFaProcessor.dateTimeTypes = [{
24472
24696
  }];
24473
24697
  var parseRDFaDOM = RDFaProcessor.parseRDFaDOM;
24474
24698
 
24475
- // ../node_modules/rdflib/esm/rdfxmlparser.js
24699
+ // node_modules/rdflib/esm/rdfxmlparser.js
24476
24700
  var RDFParser = class _RDFParser {
24477
24701
  /*
24478
24702
  * @constructor
@@ -24872,7 +25096,7 @@ _defineProperty(RDFParser, "nodeType", {
24872
25096
  "NOTATION": 12
24873
25097
  });
24874
25098
 
24875
- // ../node_modules/rdflib/esm/patch-parser.js
25099
+ // node_modules/rdflib/esm/patch-parser.js
24876
25100
  function sparqlUpdateParser(str, kb, base2) {
24877
25101
  var i, j, k;
24878
25102
  var keywords3 = ["INSERT", "DELETE", "WHERE"];
@@ -24937,7 +25161,7 @@ function sparqlUpdateParser(str, kb, base2) {
24937
25161
  }
24938
25162
  }
24939
25163
 
24940
- // ../node_modules/rdflib/esm/parse.js
25164
+ // node_modules/rdflib/esm/parse.js
24941
25165
  function parse2(str, kb, base2, contentType4 = "text/turtle", callback) {
24942
25166
  contentType4 = contentType4 || TurtleContentType;
24943
25167
  contentType4 = contentType4.split(";")[0];
@@ -25029,7 +25253,7 @@ function parse2(str, kb, base2, contentType4 = "text/turtle", callback) {
25029
25253
  }
25030
25254
  }
25031
25255
 
25032
- // ../node_modules/rdflib/esm/fetcher.js
25256
+ // node_modules/rdflib/esm/fetcher.js
25033
25257
  var import_cross_fetch = __toESM(require_browser_ponyfill());
25034
25258
  var Parsable = {
25035
25259
  "text/n3": true,
@@ -25086,7 +25310,7 @@ var RDFXMLHandler = class extends Handler {
25086
25310
  this.dom = parseXML(responseText);
25087
25311
  }
25088
25312
  let root = this.dom.documentElement;
25089
- if (root.nodeName === "parsererror") {
25313
+ if (root && root.nodeName === "parsererror") {
25090
25314
  return fetcher2.failFetch(options, "Badly formed XML in " + options.resource.value, "parse_error");
25091
25315
  }
25092
25316
  let parser = new RDFParser(kb);
@@ -25356,10 +25580,17 @@ var Fetcher = class _Fetcher {
25356
25580
  this.store = store || new IndexedFormula();
25357
25581
  this.ns = getNS(this.store.rdfFactory);
25358
25582
  this.timeout = options.timeout || 3e4;
25359
- this._fetch = options.fetch || typeof global !== "undefined" && (global.solidFetcher || global.solidFetch) || typeof window !== "undefined" && (window.solidFetcher || window.solidFetch) || import_cross_fetch.default;
25360
- if (!this._fetch) {
25583
+ let fetchFunc = options.fetch || typeof global !== "undefined" && (global.solidFetcher || global.solidFetch) || typeof window !== "undefined" && (window.solidFetcher || window.solidFetch) || import_cross_fetch.default;
25584
+ if (!fetchFunc) {
25361
25585
  throw new Error("No _fetch function available for Fetcher");
25362
25586
  }
25587
+ if (typeof window !== "undefined" && fetchFunc === window.fetch) {
25588
+ this._fetch = fetchFunc.bind(window);
25589
+ } else if (typeof global !== "undefined" && fetchFunc === global.fetch) {
25590
+ this._fetch = fetchFunc.bind(global);
25591
+ } else {
25592
+ this._fetch = fetchFunc;
25593
+ }
25363
25594
  this.appNode = this.store.sym("chrome://TheCurrentSession");
25364
25595
  this.store.fetcher = this;
25365
25596
  this.requested = {};
@@ -26379,7 +26610,7 @@ _defineProperty(Fetcher, "crossSiteProxyTemplate", void 0);
26379
26610
  Fetcher.HANDLERS = defaultHandlers;
26380
26611
  Fetcher.CONTENT_TYPE_BY_EXT = CONTENT_TYPE_BY_EXT;
26381
26612
 
26382
- // ../node_modules/rdflib/esm/update-manager.js
26613
+ // node_modules/rdflib/esm/update-manager.js
26383
26614
  var UpdateManager = class {
26384
26615
  /**
26385
26616
  * @param store - The quadstore to store data and metadata. Created if not passed.
@@ -27341,7 +27572,7 @@ _:patch
27341
27572
  }
27342
27573
  };
27343
27574
 
27344
- // ../node_modules/rdflib/esm/factories/rdflib-data-factory.js
27575
+ // node_modules/rdflib/esm/factories/rdflib-data-factory.js
27345
27576
  var RDFlibDataFactory = {
27346
27577
  ...extended_term_factory_default,
27347
27578
  /**
@@ -27382,7 +27613,7 @@ var RDFlibDataFactory = {
27382
27613
  };
27383
27614
  var rdflib_data_factory_default = RDFlibDataFactory;
27384
27615
 
27385
- // ../node_modules/rdflib/esm/index.js
27616
+ // node_modules/rdflib/esm/index.js
27386
27617
  var boundDataFactory = {};
27387
27618
  for (const name9 in rdflib_data_factory_default) {
27388
27619
  if (typeof rdflib_data_factory_default[name9] === "function") boundDataFactory[name9] = rdflib_data_factory_default[name9].bind(rdflib_data_factory_default);
@@ -27614,8 +27845,8 @@ var Thing = class {
27614
27845
  * Retrieves a list of RDF types for this thing.
27615
27846
  */
27616
27847
  types() {
27617
- const uriMap = this.store.findTypeURIs(namedNode(this.uri));
27618
- return Object.keys(uriMap).map((uri6) => ({
27848
+ const uris = this.store.findTypes(this.uri);
27849
+ return uris.map((uri6) => ({
27619
27850
  uri: uri6,
27620
27851
  label: labelForType(uri6)
27621
27852
  }));
@@ -27661,6 +27892,11 @@ var LdpContainer = class extends Thing {
27661
27892
  this.store = store;
27662
27893
  this.editable = editable;
27663
27894
  }
27895
+ /**
27896
+ * Resources that the LDP Container contains
27897
+ *
27898
+ * @returns Array of objects with uri and name
27899
+ */
27664
27900
  contains() {
27665
27901
  const contains3 = this.store.statementsMatching(
27666
27902
  namedNode(this.uri),
@@ -27673,6 +27909,21 @@ var LdpContainer = class extends Thing {
27673
27909
  name: labelFromUri(content5.object.value)
27674
27910
  }));
27675
27911
  }
27912
+ /**
27913
+ * Observe changes to the resources that the LDP Container contains
27914
+ *
27915
+ * @returns RxJS Observable that pushes a new contains() array when it changes
27916
+ */
27917
+ observeContains() {
27918
+ return merge(this.store.additions$, this.store.removals$).pipe(
27919
+ filter(
27920
+ (quad3) => quad3.graph.value == this.uri && quad3.predicate.value == "http://www.w3.org/ns/ldp#contains"
27921
+ ),
27922
+ debounceTime(250),
27923
+ map(() => this.contains()),
27924
+ startWith(this.contains())
27925
+ );
27926
+ }
27676
27927
  };
27677
27928
 
27678
27929
  // src/files/createFileLinkOperation.ts
@@ -27772,73 +28023,6 @@ var PictureGateway = class {
27772
28023
  }
27773
28024
  };
27774
28025
 
27775
- // node_modules/@solid-data-modules/rdflib-utils/dist/web-operations/executeUpdate.js
27776
- async function executeUpdate(fetcher2, updater, operation3) {
27777
- await updater.updateMany(operation3.deletions, operation3.insertions);
27778
- operation3.filesToCreate.map((file2) => {
27779
- createEmptyTurtleFile(fetcher2, file2.url);
27780
- });
27781
- }
27782
- function createEmptyTurtleFile(fetcher2, url7) {
27783
- return fetcher2.webOperation("PUT", url7, {
27784
- contentType: "text/turtle"
27785
- });
27786
- }
27787
- var solid = Namespace("http://www.w3.org/ns/solid/terms#");
27788
- var pim2 = Namespace("http://www.w3.org/ns/pim/space#");
27789
-
27790
- // node_modules/@solid-data-modules/rdflib-utils/dist/queries/PreferencesQuery.js
27791
- var PreferencesQuery = class {
27792
- constructor(store, webIdNode, preferencesDoc) {
27793
- this.store = store;
27794
- this.webIdNode = webIdNode;
27795
- this.preferencesDoc = preferencesDoc;
27796
- }
27797
- /**
27798
- * Look up the private type index. Returns null if none is found or if the predicated does not link to a proper named node
27799
- */
27800
- queryPrivateTypeIndex() {
27801
- const node3 = this.store.any(this.webIdNode, solid("privateTypeIndex"), null, this.preferencesDoc);
27802
- if (isNamedNode(node3)) {
27803
- return node3;
27804
- }
27805
- return null;
27806
- }
27807
- };
27808
-
27809
- // node_modules/@solid-data-modules/rdflib-utils/dist/queries/ProfileQuery.js
27810
- var ProfileQuery = class {
27811
- constructor(webIdNode, store) {
27812
- this.webIdNode = webIdNode;
27813
- this.store = store;
27814
- }
27815
- /**
27816
- * Look up the public type index. Returns null if none is found or if the predicated does not link to a proper named node
27817
- */
27818
- queryPublicTypeIndex() {
27819
- const predicate4 = solid("publicTypeIndex");
27820
- return this.queryNamedNode(predicate4);
27821
- }
27822
- /**
27823
- * Look up the preferences file. Returns null if none is found or if the predicated does not link to a proper named node
27824
- */
27825
- queryPreferencesFile() {
27826
- const predicate4 = pim2("preferencesFile");
27827
- return this.queryNamedNode(predicate4);
27828
- }
27829
- queryNamedNode(predicate4) {
27830
- const node3 = this.store.any(this.webIdNode, predicate4, null, this.webIdNode.doc());
27831
- if (isNamedNode(node3)) {
27832
- return node3;
27833
- }
27834
- return null;
27835
- }
27836
- };
27837
-
27838
- // node_modules/@solid-data-modules/rdflib-utils/dist/identifier/generate-id.js
27839
- var import_short_unique_id = __toESM(require_short_unique_id(), 1);
27840
- new import_short_unique_id.default({ length: 10 });
27841
-
27842
28026
  // src/profile/WebIdProfile.ts
27843
28027
  var WebIdProfile = class extends Thing {
27844
28028
  constructor(webId, store, editable = false) {
@@ -27846,7 +28030,7 @@ var WebIdProfile = class extends Thing {
27846
28030
  this.webId = webId;
27847
28031
  this.store = store;
27848
28032
  this.editable = editable;
27849
- this.profileQuery = new ProfileQuery(namedNode(this.webId), this.store);
28033
+ this.profileQuery = this.store.profileQuery(this.webId);
27850
28034
  }
27851
28035
  /**
27852
28036
  * Returns the URI of the preferences document
@@ -27868,11 +28052,7 @@ var WebIdProfile = class extends Thing {
27868
28052
  getPrivateTypeIndex() {
27869
28053
  const preferences = this.profileQuery.queryPreferencesFile();
27870
28054
  if (!preferences) return void 0;
27871
- const query4 = new PreferencesQuery(
27872
- this.store,
27873
- namedNode(this.webId),
27874
- preferences
27875
- );
28055
+ const query4 = this.store.preferencesQuery(this.webId, preferences);
27876
28056
  return query4.queryPrivateTypeIndex()?.value;
27877
28057
  }
27878
28058
  /**
@@ -28040,6 +28220,73 @@ var LabelIndex = class extends RdfDocument {
28040
28220
  }
28041
28221
  };
28042
28222
 
28223
+ // node_modules/@solid-data-modules/rdflib-utils/dist/web-operations/executeUpdate.js
28224
+ async function executeUpdate(fetcher2, updater, operation3) {
28225
+ await updater.updateMany(operation3.deletions, operation3.insertions);
28226
+ operation3.filesToCreate.map((file2) => {
28227
+ createEmptyTurtleFile(fetcher2, file2.url);
28228
+ });
28229
+ }
28230
+ function createEmptyTurtleFile(fetcher2, url7) {
28231
+ return fetcher2.webOperation("PUT", url7, {
28232
+ contentType: "text/turtle"
28233
+ });
28234
+ }
28235
+ var solid = Namespace("http://www.w3.org/ns/solid/terms#");
28236
+ var pim2 = Namespace("http://www.w3.org/ns/pim/space#");
28237
+
28238
+ // node_modules/@solid-data-modules/rdflib-utils/dist/queries/PreferencesQuery.js
28239
+ var PreferencesQuery = class {
28240
+ constructor(store, webIdNode, preferencesDoc) {
28241
+ this.store = store;
28242
+ this.webIdNode = webIdNode;
28243
+ this.preferencesDoc = preferencesDoc;
28244
+ }
28245
+ /**
28246
+ * Look up the private type index. Returns null if none is found or if the predicated does not link to a proper named node
28247
+ */
28248
+ queryPrivateTypeIndex() {
28249
+ const node3 = this.store.any(this.webIdNode, solid("privateTypeIndex"), null, this.preferencesDoc);
28250
+ if (isNamedNode(node3)) {
28251
+ return node3;
28252
+ }
28253
+ return null;
28254
+ }
28255
+ };
28256
+
28257
+ // node_modules/@solid-data-modules/rdflib-utils/dist/queries/ProfileQuery.js
28258
+ var ProfileQuery = class {
28259
+ constructor(webIdNode, store) {
28260
+ this.webIdNode = webIdNode;
28261
+ this.store = store;
28262
+ }
28263
+ /**
28264
+ * Look up the public type index. Returns null if none is found or if the predicated does not link to a proper named node
28265
+ */
28266
+ queryPublicTypeIndex() {
28267
+ const predicate4 = solid("publicTypeIndex");
28268
+ return this.queryNamedNode(predicate4);
28269
+ }
28270
+ /**
28271
+ * Look up the preferences file. Returns null if none is found or if the predicated does not link to a proper named node
28272
+ */
28273
+ queryPreferencesFile() {
28274
+ const predicate4 = pim2("preferencesFile");
28275
+ return this.queryNamedNode(predicate4);
28276
+ }
28277
+ queryNamedNode(predicate4) {
28278
+ const node3 = this.store.any(this.webIdNode, predicate4, null, this.webIdNode.doc());
28279
+ if (isNamedNode(node3)) {
28280
+ return node3;
28281
+ }
28282
+ return null;
28283
+ }
28284
+ };
28285
+
28286
+ // node_modules/@solid-data-modules/rdflib-utils/dist/identifier/generate-id.js
28287
+ var import_short_unique_id = __toESM(require_short_unique_id(), 1);
28288
+ new import_short_unique_id.default({ length: 10 });
28289
+
28043
28290
  // src/search/createDefaultLabelIndex.ts
28044
28291
  function createDefaultLabelIndex(profile2) {
28045
28292
  const webId = namedNode(profile2.webId);
@@ -28240,7 +28487,7 @@ var Store = class {
28240
28487
  */
28241
28488
  get(uri6) {
28242
28489
  const editable = !!this.updater.editable(uri6);
28243
- return new Thing(uri6, this.internalStore, editable);
28490
+ return new Thing(uri6, this, editable);
28244
28491
  }
28245
28492
  /**
28246
28493
  * Adds a new value to the property of the given thing
@@ -28323,6 +28570,139 @@ var Store = class {
28323
28570
  distinctUntilChanged((prev2, curr) => prev2.length == curr.length)
28324
28571
  );
28325
28572
  }
28573
+ /**
28574
+ * Finds types of the given resource
28575
+ *
28576
+ * @param {string|NamedNode|BlankNode} uri String or RDF/JS object
28577
+ * @returns {string[]} An array of URIs of types
28578
+ */
28579
+ findTypes(uri6) {
28580
+ if (typeof uri6 === "string") uri6 = namedNode(uri6);
28581
+ return Object.keys(this.internalStore.findTypeURIs(uri6));
28582
+ }
28583
+ /**
28584
+ * Determines whether the store includes a certain quad pattern, returning true or false as appropriate.
28585
+ *
28586
+ * @param {Quad_Subject|null|undefined} subject
28587
+ * @param {Quad_Predicate|null|undefined} predicate
28588
+ * @param {Quad_Object|null|undefined} object
28589
+ * @param {Quad_Graph|null|undefined} graph
28590
+ * @returns {boolean} Whether the store includes the quad pattern
28591
+ */
28592
+ holds(subject8, predicate4, object8, graph3) {
28593
+ return this.internalStore.holds(subject8, predicate4, object8, graph3);
28594
+ }
28595
+ /**
28596
+ * Statements matching the provided quad pattern
28597
+ *
28598
+ * @param {Quad_Subject|null|undefined} subject
28599
+ * @param {Quad_Predicate|null|undefined} predicate
28600
+ * @param {Quad_Object|null|undefined} object
28601
+ * @param {Quad_Graph|null|undefined} graph
28602
+ * @returns {Quad[]} Array of statements
28603
+ */
28604
+ statementsMatching(subject8, predicate4, object8, graph3) {
28605
+ return this.internalStore.statementsMatching(
28606
+ subject8,
28607
+ predicate4,
28608
+ object8,
28609
+ graph3
28610
+ );
28611
+ }
28612
+ /**
28613
+ * RDF/JS terms matching the first wildcard in the provided quad pattern
28614
+ *
28615
+ * @param {Quad_Subject|null|undefined} subject
28616
+ * @param {Quad_Predicate|null|undefined} predicate
28617
+ * @param {Quad_Object|null|undefined} object
28618
+ * @param {Quad_Graph|null|undefined} graph
28619
+ * @returns {Term[]} Array of terms
28620
+ */
28621
+ each(subject8, predicate4, object8, graph3) {
28622
+ const statements = this.statementsMatching(
28623
+ subject8,
28624
+ predicate4,
28625
+ object8,
28626
+ graph3
28627
+ );
28628
+ if (!subject8) {
28629
+ return statements.map((statement2) => statement2.subject);
28630
+ } else if (!predicate4) {
28631
+ return statements.map((statement2) => statement2.predicate);
28632
+ } else if (!object8) {
28633
+ return statements.map((statement2) => statement2.object);
28634
+ } else if (!graph3) {
28635
+ return statements.map((statement2) => statement2.graph);
28636
+ }
28637
+ throw new Error("No wildcard specified");
28638
+ }
28639
+ /**
28640
+ * Any one RDF/JS term matching the first wildcard in the provided quad pattern
28641
+ *
28642
+ * @param {Quad_Subject|null|undefined} subject
28643
+ * @param {Quad_Predicate|null|undefined} predicate
28644
+ * @param {Quad_Object|null|undefined} object
28645
+ * @param {Quad_Graph|null|undefined} graph
28646
+ * @returns {Term | null} RDF/JS term
28647
+ */
28648
+ any(subject8, predicate4, object8, graph3) {
28649
+ const justOne = true;
28650
+ const statements = this.internalStore.statementsMatching(
28651
+ subject8,
28652
+ predicate4,
28653
+ object8,
28654
+ graph3,
28655
+ justOne
28656
+ );
28657
+ if (statements.length == 0) return null;
28658
+ if (!subject8) {
28659
+ return statements[0].subject;
28660
+ } else if (!predicate4) {
28661
+ return statements[0].predicate;
28662
+ } else if (!object8) {
28663
+ return statements[0].object;
28664
+ } else if (!graph3) {
28665
+ return statements[0].graph;
28666
+ }
28667
+ throw new Error("No wildcard specified");
28668
+ }
28669
+ /**
28670
+ * Value of any one RDF/JS term matching the first wildcard in the provided quad pattern
28671
+ *
28672
+ * @param {Quad_Subject|null|undefined} subject
28673
+ * @param {Quad_Predicate|null|undefined} predicate
28674
+ * @param {Quad_Object|null|undefined} object
28675
+ * @param {Quad_Graph|null|undefined} graph
28676
+ * @returns {string | undefined} value of RDF/JS term
28677
+ */
28678
+ anyValue(subject8, predicate4, object8, graph3) {
28679
+ return this.any(subject8, predicate4, object8, graph3)?.value;
28680
+ }
28681
+ /**
28682
+ * Create a query to fetch information from a user's preferences file
28683
+ *
28684
+ * @param webId
28685
+ * @param preferencesDoc
28686
+ * @returns {PreferencesQuery} PreferencesQuery instance. See [@solid-data-modules/rdflib-utils
28687
+ ](https://solid-contrib.github.io/data-modules/rdflib-utils/classes/index.PreferencesQuery.html)
28688
+ */
28689
+ preferencesQuery(webId, preferencesDoc) {
28690
+ if (typeof webId === "string") webId = namedNode(webId);
28691
+ if (typeof preferencesDoc === "string")
28692
+ preferencesDoc = namedNode(preferencesDoc);
28693
+ return new PreferencesQuery(this.internalStore, webId, preferencesDoc);
28694
+ }
28695
+ /**
28696
+ * Create a query to fetch information from a user's profile document
28697
+ *
28698
+ * @param webId
28699
+ * @returns {ProfileQuery} ProfileQuery instance. See [@solid-data-modules/rdflib-utils
28700
+ ](https://solid-contrib.github.io/data-modules/rdflib-utils/classes/index.ProfileQuery.html)
28701
+ */
28702
+ profileQuery(webId) {
28703
+ if (typeof webId === "string") webId = namedNode(webId);
28704
+ return new ProfileQuery(webId, this.internalStore);
28705
+ }
28326
28706
  };
28327
28707
 
28328
28708
  // ../node_modules/rdf-namespaces/dist/index.es.js
@@ -29568,7 +29948,7 @@ var entry = "http://hl7.org/fhir/entry";
29568
29948
  var _weeklyTemplate = "http://hl7.org/fhir/_weeklyTemplate";
29569
29949
  var what = "http://hl7.org/fhir/what";
29570
29950
  var whenPrepared = "http://hl7.org/fhir/whenPrepared";
29571
- var Action = "http://hl7.org/fhir/Action";
29951
+ var Action2 = "http://hl7.org/fhir/Action";
29572
29952
  var _observationRequirement = "http://hl7.org/fhir/_observationRequirement";
29573
29953
  var focal = "http://hl7.org/fhir/focal";
29574
29954
  var verification = "http://hl7.org/fhir/verification";
@@ -33803,7 +34183,7 @@ var fhirImport = /* @__PURE__ */ Object.freeze({
33803
34183
  _weeklyTemplate,
33804
34184
  what,
33805
34185
  whenPrepared,
33806
- Action,
34186
+ Action: Action2,
33807
34187
  _observationRequirement,
33808
34188
  focal,
33809
34189
  verification,
@@ -38262,7 +38642,7 @@ var langString = "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString";
38262
38642
  var PlainLiteral = "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral";
38263
38643
  var type4 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
38264
38644
  var Property2 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property";
38265
- var Statement2 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement";
38645
+ var Statement3 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement";
38266
38646
  var subject5 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#subject";
38267
38647
  var predicate = "http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate";
38268
38648
  var object3 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#object";
@@ -38284,7 +38664,7 @@ var rdfImport = /* @__PURE__ */ Object.freeze({
38284
38664
  PlainLiteral,
38285
38665
  type: type4,
38286
38666
  Property: Property2,
38287
- Statement: Statement2,
38667
+ Statement: Statement3,
38288
38668
  subject: subject5,
38289
38669
  predicate,
38290
38670
  object: object3,
@@ -38372,7 +38752,7 @@ var AcceptAction = "http://schema.org/AcceptAction";
38372
38752
  var Accommodation = "http://schema.org/Accommodation";
38373
38753
  var AccountingService = "http://schema.org/AccountingService";
38374
38754
  var AchieveAction = "http://schema.org/AchieveAction";
38375
- var Action2 = "http://schema.org/Action";
38755
+ var Action3 = "http://schema.org/Action";
38376
38756
  var ActionAccessSpecification = "http://schema.org/ActionAccessSpecification";
38377
38757
  var ActionStatusType = "http://schema.org/ActionStatusType";
38378
38758
  var ActivateAction = "http://schema.org/ActivateAction";
@@ -39161,7 +39541,7 @@ var SportsTeam = "http://schema.org/SportsTeam";
39161
39541
  var SpreadsheetDigitalDocument = "http://schema.org/SpreadsheetDigitalDocument";
39162
39542
  var StadiumOrArena = "http://schema.org/StadiumOrArena";
39163
39543
  var State = "http://schema.org/State";
39164
- var Statement3 = "http://schema.org/Statement";
39544
+ var Statement4 = "http://schema.org/Statement";
39165
39545
  var StatisticalPopulation = "http://schema.org/StatisticalPopulation";
39166
39546
  var StatisticalVariable = "http://schema.org/StatisticalVariable";
39167
39547
  var StatusEnumeration = "http://schema.org/StatusEnumeration";
@@ -40811,7 +41191,7 @@ var schemaImport = /* @__PURE__ */ Object.freeze({
40811
41191
  Accommodation,
40812
41192
  AccountingService,
40813
41193
  AchieveAction,
40814
- Action: Action2,
41194
+ Action: Action3,
40815
41195
  ActionAccessSpecification,
40816
41196
  ActionStatusType,
40817
41197
  ActivateAction,
@@ -41600,7 +41980,7 @@ var schemaImport = /* @__PURE__ */ Object.freeze({
41600
41980
  SpreadsheetDigitalDocument,
41601
41981
  StadiumOrArena,
41602
41982
  State,
41603
- Statement: Statement3,
41983
+ Statement: Statement4,
41604
41984
  StatisticalPopulation,
41605
41985
  StatisticalVariable,
41606
41986
  StatusEnumeration,
@@ -43252,7 +43632,7 @@ var AcceptAction2 = "https://schema.org/AcceptAction";
43252
43632
  var Accommodation2 = "https://schema.org/Accommodation";
43253
43633
  var AccountingService2 = "https://schema.org/AccountingService";
43254
43634
  var AchieveAction2 = "https://schema.org/AchieveAction";
43255
- var Action3 = "https://schema.org/Action";
43635
+ var Action4 = "https://schema.org/Action";
43256
43636
  var ActionAccessSpecification2 = "https://schema.org/ActionAccessSpecification";
43257
43637
  var ActionStatusType2 = "https://schema.org/ActionStatusType";
43258
43638
  var ActivateAction2 = "https://schema.org/ActivateAction";
@@ -44041,7 +44421,7 @@ var SportsTeam2 = "https://schema.org/SportsTeam";
44041
44421
  var SpreadsheetDigitalDocument2 = "https://schema.org/SpreadsheetDigitalDocument";
44042
44422
  var StadiumOrArena2 = "https://schema.org/StadiumOrArena";
44043
44423
  var State2 = "https://schema.org/State";
44044
- var Statement4 = "https://schema.org/Statement";
44424
+ var Statement5 = "https://schema.org/Statement";
44045
44425
  var StatisticalPopulation2 = "https://schema.org/StatisticalPopulation";
44046
44426
  var StatisticalVariable2 = "https://schema.org/StatisticalVariable";
44047
44427
  var StatusEnumeration2 = "https://schema.org/StatusEnumeration";
@@ -45691,7 +46071,7 @@ var schema_httpsImport = /* @__PURE__ */ Object.freeze({
45691
46071
  Accommodation: Accommodation2,
45692
46072
  AccountingService: AccountingService2,
45693
46073
  AchieveAction: AchieveAction2,
45694
- Action: Action3,
46074
+ Action: Action4,
45695
46075
  ActionAccessSpecification: ActionAccessSpecification2,
45696
46076
  ActionStatusType: ActionStatusType2,
45697
46077
  ActivateAction: ActivateAction2,
@@ -46480,7 +46860,7 @@ var schema_httpsImport = /* @__PURE__ */ Object.freeze({
46480
46860
  SpreadsheetDigitalDocument: SpreadsheetDigitalDocument2,
46481
46861
  StadiumOrArena: StadiumOrArena2,
46482
46862
  State: State2,
46483
- Statement: Statement4,
46863
+ Statement: Statement5,
46484
46864
  StatisticalPopulation: StatisticalPopulation2,
46485
46865
  StatisticalVariable: StatisticalVariable2,
46486
46866
  StatusEnumeration: StatusEnumeration2,
@@ -49659,6 +50039,181 @@ async function loadModule(moduleName, store) {
49659
50039
  return store.loadModule(module3);
49660
50040
  }
49661
50041
 
50042
+ // ../node_modules/url-template/lib/url-template.js
50043
+ function encodeReserved(str) {
50044
+ return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part3) {
50045
+ if (!/%[0-9A-Fa-f]/.test(part3)) {
50046
+ part3 = encodeURI(part3).replace(/%5B/g, "[").replace(/%5D/g, "]");
50047
+ }
50048
+ return part3;
50049
+ }).join("");
50050
+ }
50051
+ function encodeUnreserved(str) {
50052
+ return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
50053
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
50054
+ });
50055
+ }
50056
+ function encodeValue(operator2, value7, key3) {
50057
+ value7 = operator2 === "+" || operator2 === "#" ? encodeReserved(value7) : encodeUnreserved(value7);
50058
+ if (key3) {
50059
+ return encodeUnreserved(key3) + "=" + value7;
50060
+ } else {
50061
+ return value7;
50062
+ }
50063
+ }
50064
+ function isDefined(value7) {
50065
+ return value7 !== void 0 && value7 !== null;
50066
+ }
50067
+ function isKeyOperator(operator2) {
50068
+ return operator2 === ";" || operator2 === "&" || operator2 === "?";
50069
+ }
50070
+ function getValues(context4, operator2, key3, modifier2) {
50071
+ var value7 = context4[key3], result6 = [];
50072
+ if (isDefined(value7) && value7 !== "") {
50073
+ if (typeof value7 === "string" || typeof value7 === "number" || typeof value7 === "boolean") {
50074
+ value7 = value7.toString();
50075
+ if (modifier2 && modifier2 !== "*") {
50076
+ value7 = value7.substring(0, parseInt(modifier2, 10));
50077
+ }
50078
+ result6.push(encodeValue(operator2, value7, isKeyOperator(operator2) ? key3 : null));
50079
+ } else {
50080
+ if (modifier2 === "*") {
50081
+ if (Array.isArray(value7)) {
50082
+ value7.filter(isDefined).forEach(function(value8) {
50083
+ result6.push(encodeValue(operator2, value8, isKeyOperator(operator2) ? key3 : null));
50084
+ });
50085
+ } else {
50086
+ Object.keys(value7).forEach(function(k) {
50087
+ if (isDefined(value7[k])) {
50088
+ result6.push(encodeValue(operator2, value7[k], k));
50089
+ }
50090
+ });
50091
+ }
50092
+ } else {
50093
+ var tmp = [];
50094
+ if (Array.isArray(value7)) {
50095
+ value7.filter(isDefined).forEach(function(value8) {
50096
+ tmp.push(encodeValue(operator2, value8));
50097
+ });
50098
+ } else {
50099
+ Object.keys(value7).forEach(function(k) {
50100
+ if (isDefined(value7[k])) {
50101
+ tmp.push(encodeUnreserved(k));
50102
+ tmp.push(encodeValue(operator2, value7[k].toString()));
50103
+ }
50104
+ });
50105
+ }
50106
+ if (isKeyOperator(operator2)) {
50107
+ result6.push(encodeUnreserved(key3) + "=" + tmp.join(","));
50108
+ } else if (tmp.length !== 0) {
50109
+ result6.push(tmp.join(","));
50110
+ }
50111
+ }
50112
+ }
50113
+ } else {
50114
+ if (operator2 === ";") {
50115
+ if (isDefined(value7)) {
50116
+ result6.push(encodeUnreserved(key3));
50117
+ }
50118
+ } else if (value7 === "" && (operator2 === "&" || operator2 === "?")) {
50119
+ result6.push(encodeUnreserved(key3) + "=");
50120
+ } else if (value7 === "") {
50121
+ result6.push("");
50122
+ }
50123
+ }
50124
+ return result6;
50125
+ }
50126
+ function parseTemplate(template3) {
50127
+ var operators = ["+", "#", ".", "/", ";", "?", "&"];
50128
+ return {
50129
+ expand: function(context4) {
50130
+ return template3.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function(_, expression4, literal4) {
50131
+ if (expression4) {
50132
+ var operator2 = null, values2 = [];
50133
+ if (operators.indexOf(expression4.charAt(0)) !== -1) {
50134
+ operator2 = expression4.charAt(0);
50135
+ expression4 = expression4.substr(1);
50136
+ }
50137
+ expression4.split(/,/g).forEach(function(variable5) {
50138
+ var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable5);
50139
+ values2.push.apply(values2, getValues(context4, operator2, tmp[1], tmp[2] || tmp[3]));
50140
+ });
50141
+ if (operator2 && operator2 !== "+") {
50142
+ var separator = ",";
50143
+ if (operator2 === "?") {
50144
+ separator = "&";
50145
+ } else if (operator2 !== "#") {
50146
+ separator = operator2;
50147
+ }
50148
+ return (values2.length !== 0 ? operator2 : "") + values2.join(separator);
50149
+ } else {
50150
+ return values2.join(",");
50151
+ }
50152
+ } else {
50153
+ return encodeReserved(literal4);
50154
+ }
50155
+ });
50156
+ }
50157
+ };
50158
+ }
50159
+
50160
+ // src/open-with/apps.ts
50161
+ var APPS = {
50162
+ DATA_BROWSER: {
50163
+ name: "Data Browser (SolidOS)",
50164
+ urlTemplate: parseTemplate(
50165
+ "https://solidos.github.io/mashlib/dist/browse.html{?uri}"
50166
+ )
50167
+ },
50168
+ PENNY: {
50169
+ name: "Penny",
50170
+ urlTemplate: parseTemplate(
50171
+ "https://penny.vincenttunru.com/explore/?url={uri}"
50172
+ )
50173
+ },
50174
+ SOLID_FILE_MANAGER: {
50175
+ name: "Solid File Manager",
50176
+ urlTemplate: parseTemplate(
50177
+ "https://otto-aa.github.io/solid-filemanager/?url={uri}"
50178
+ )
50179
+ },
50180
+ UMAI: {
50181
+ name: "Umai",
50182
+ urlTemplate: parseTemplate(
50183
+ "https://umai.noeldemartin.com/viewer?url={uri}"
50184
+ )
50185
+ },
50186
+ DOKIELI: {
50187
+ name: "dokieli",
50188
+ urlTemplate: parseTemplate("https://dokie.li/#open={uri}")
50189
+ },
50190
+ DOKIELI_GRAPH: {
50191
+ name: "dokieli Graph",
50192
+ urlTemplate: parseTemplate("https://dokie.li/#graph={uri}")
50193
+ },
50194
+ POD_OS_CONTACTS: {
50195
+ name: "PodOS Contacts",
50196
+ urlTemplate: parseTemplate(
50197
+ "https://contacts.pod-os.org/address-book{?uri}"
50198
+ )
50199
+ }
50200
+ };
50201
+
50202
+ // src/open-with/proposeAppsFor.ts
50203
+ var appRegistrations = {
50204
+ "http://www.w3.org/ns/ldp#Container": [APPS.SOLID_FILE_MANAGER],
50205
+ "http://schema.org/Recipe": [APPS.UMAI],
50206
+ "https://schema.org/Recipe": [APPS.UMAI],
50207
+ "http://www.w3.org/2007/ont/link#RDFDocument": [APPS.DOKIELI_GRAPH],
50208
+ "http://www.w3.org/ns/iana/media-types/text/html#Resource": [APPS.DOKIELI],
50209
+ "http://www.w3.org/2006/vcard/ns#AddressBook": [APPS.POD_OS_CONTACTS]
50210
+ };
50211
+ function proposeAppsFor(thing) {
50212
+ const apps = [APPS.DATA_BROWSER, APPS.PENNY];
50213
+ const appsForType = thing.types().flatMap((it) => appRegistrations[it.uri]).filter((it) => it !== void 0);
50214
+ return [...apps, ...appsForType];
50215
+ }
50216
+
49662
50217
  // src/type-index/TypeIndex.ts
49663
50218
  var TypeIndex2 = class extends Thing {
49664
50219
  constructor(uri6, store, editable = false) {
@@ -49847,6 +50402,14 @@ var PodOS = class {
49847
50402
  attachments() {
49848
50403
  return this.attachmentGateway;
49849
50404
  }
50405
+ /**
50406
+ * Propose matching apps to open a thing
50407
+ * @param thing - The thing to open
50408
+ * @returns An array of apps that can open the thing. The array is empty if no apps are found.
50409
+ */
50410
+ proposeAppsFor(thing) {
50411
+ return proposeAppsFor(thing);
50412
+ }
49850
50413
  };
49851
50414
  /*! Bundled license information:
49852
50415