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