@wovin/core 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/applog/applog-helpers.d.ts +5 -6
  2. package/dist/applog/applog-helpers.d.ts.map +1 -1
  3. package/dist/applog/applog-utils.d.ts +2 -1
  4. package/dist/applog/applog-utils.d.ts.map +1 -1
  5. package/dist/applog/datom-types.d.ts +34 -2
  6. package/dist/applog/datom-types.d.ts.map +1 -1
  7. package/dist/applog.min.js +90 -1
  8. package/dist/chunk-2J7BWXZ3.min.js +4373 -0
  9. package/dist/{chunk-G3GOAFHU.min.js.map → chunk-2J7BWXZ3.min.js.map} +1 -1
  10. package/dist/chunk-5MMGBK2U.min.js +1 -0
  11. package/dist/chunk-5MMGBK2U.min.js.map +1 -0
  12. package/dist/chunk-6BFNER6K.min.js +120 -0
  13. package/dist/chunk-6BFNER6K.min.js.map +1 -0
  14. package/dist/chunk-KRQZ6V4Y.min.js +36 -0
  15. package/dist/chunk-KRQZ6V4Y.min.js.map +1 -0
  16. package/dist/chunk-N4QMZPZF.min.js +10844 -0
  17. package/dist/chunk-N4QMZPZF.min.js.map +1 -0
  18. package/dist/chunk-ORHJN4G2.min.js +1425 -0
  19. package/dist/chunk-ORHJN4G2.min.js.map +1 -0
  20. package/dist/chunk-PTGUFZ3Q.min.js +1555 -0
  21. package/dist/chunk-PTGUFZ3Q.min.js.map +1 -0
  22. package/dist/chunk-YOCP7FGE.min.js +66 -0
  23. package/dist/chunk-YOCP7FGE.min.js.map +1 -0
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.min.js +252 -1
  27. package/dist/index.min.js.map +1 -1
  28. package/dist/ipfs/car.d.ts +2 -0
  29. package/dist/ipfs/car.d.ts.map +1 -1
  30. package/dist/ipfs.min.js +32 -1
  31. package/dist/mobx/mobx-utils.d.ts +19 -11
  32. package/dist/mobx/mobx-utils.d.ts.map +1 -1
  33. package/dist/pubsub.min.js +21 -1
  34. package/dist/query/basic.d.ts +16 -31
  35. package/dist/query/basic.d.ts.map +1 -1
  36. package/dist/query/divergences.d.ts +2 -2
  37. package/dist/query/divergences.d.ts.map +1 -1
  38. package/dist/query/query-steps.d.ts +4 -0
  39. package/dist/query/query-steps.d.ts.map +1 -0
  40. package/dist/query/types.d.ts +29 -0
  41. package/dist/query/types.d.ts.map +1 -0
  42. package/dist/query.d.ts +1 -0
  43. package/dist/query.d.ts.map +1 -1
  44. package/dist/query.min.js +71 -1
  45. package/dist/thread/basic.d.ts +12 -6
  46. package/dist/thread/basic.d.ts.map +1 -1
  47. package/dist/thread/filters.d.ts +10 -6
  48. package/dist/thread/filters.d.ts.map +1 -1
  49. package/dist/thread/mapped.d.ts +3 -4
  50. package/dist/thread/mapped.d.ts.map +1 -1
  51. package/dist/thread/writeable.d.ts +3 -2
  52. package/dist/thread/writeable.d.ts.map +1 -1
  53. package/dist/thread.min.js +37 -1
  54. package/dist/types/typescript-utils.d.ts +6 -2
  55. package/dist/types/typescript-utils.d.ts.map +1 -1
  56. package/dist/types.min.js +30 -1
  57. package/package.json +83 -83
  58. package/dist/chunk-5Q6PAAMY.min.js +0 -2
  59. package/dist/chunk-5Q6PAAMY.min.js.map +0 -1
  60. package/dist/chunk-BR5DELY4.min.js +0 -2
  61. package/dist/chunk-BR5DELY4.min.js.map +0 -1
  62. package/dist/chunk-D6REGRIL.min.js +0 -2
  63. package/dist/chunk-D6REGRIL.min.js.map +0 -1
  64. package/dist/chunk-G3GOAFHU.min.js +0 -8
  65. package/dist/chunk-IVEP7DZW.min.js +0 -45
  66. package/dist/chunk-IVEP7DZW.min.js.map +0 -1
  67. package/dist/chunk-J5PGGKKW.min.js +0 -2
  68. package/dist/chunk-J5PGGKKW.min.js.map +0 -1
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-5MMGBK2U.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,120 @@
1
+ import {
2
+ makeCarBlob
3
+ } from "./chunk-ORHJN4G2.min.js";
4
+ import {
5
+ cyrb53hash,
6
+ getLogsFromThread,
7
+ lastWriteWins,
8
+ rollingFilter
9
+ } from "./chunk-N4QMZPZF.min.js";
10
+ import {
11
+ Logger,
12
+ encodeBlockOriginal,
13
+ prepareForPub
14
+ } from "./chunk-2J7BWXZ3.min.js";
15
+
16
+ // src/pubsub/publication.ts
17
+ var { WARN, LOG, DEBUG, VERBOSE, ERROR } = Logger.setup(Logger.DEBUG);
18
+ async function preparePubForPush(agent, appThread, threadToPublish, publication) {
19
+ const logsToPublish = getLogsFromThread(threadToPublish);
20
+ const { sharedAgents, sharedKeyMap, sharedKey } = publication ?? {};
21
+ const agentLogs = rollingFilter(lastWriteWins(appThread), {
22
+ en: agent.ag,
23
+ at: ["agent/ecdh", "agent/jwkd", "agent/appAgent"]
24
+ }).applogs;
25
+ DEBUG(`[preparePubForPush] agent logs:`, agentLogs);
26
+ if (!agentLogs.find(({ at }) => at === "agent/appAgent"))
27
+ throw ERROR(`[preparePubForPush] appThread missing agent/appAgent log`);
28
+ let encPayload;
29
+ const encryptAndTestDecrypt = async (applog, keyToUse) => {
30
+ throw new Error(`todo: enc`);
31
+ };
32
+ DEBUG("[preparePubForPush] applogs ", logsToPublish);
33
+ let maybeEncryptedApplogs;
34
+ if (sharedAgents) {
35
+ if (!sharedKey || !sharedKeyMap) {
36
+ throw ERROR("sharedAgents but no Keys/Map", { sharedAgents, sharedKeyMap, sharedKey });
37
+ }
38
+ const encryptedApplogs = [];
39
+ const agentSharedKeyLogs = [];
40
+ for (const [eachAgent, eachEncKey] of Array.from(sharedKeyMap.entries())) {
41
+ agentSharedKeyLogs.push({
42
+ ag: agent.ag,
43
+ en: eachAgent,
44
+ at: "pub/sharedKey",
45
+ vl: eachEncKey
46
+ // these are encrypted with the derived key from the local agent private and remote agent public keys
47
+ });
48
+ }
49
+ for (const eachLog of logsToPublish) {
50
+ VERBOSE("[crypto] encrypting ", eachLog);
51
+ try {
52
+ encPayload = await encryptAndTestDecrypt(eachLog, sharedKey);
53
+ } catch (err) {
54
+ }
55
+ encryptedApplogs.push(encPayload);
56
+ }
57
+ maybeEncryptedApplogs = encryptedApplogs;
58
+ } else {
59
+ maybeEncryptedApplogs = logsToPublish;
60
+ }
61
+ return encodePubAsCar(agent, maybeEncryptedApplogs, agentLogs);
62
+ }
63
+ async function encodePubAsCar(agent, applogs, infoLogs) {
64
+ DEBUG(`[encodePubAsCar] encoding`, { agent, applogs, infoLogs });
65
+ const { cids: infoLogCids, encodedApplogs: encodedInfoLogs } = await encodeApplogsAsIPLD(infoLogs);
66
+ const { cids: logCids, encodedApplogs } = await encodeApplogsAsIPLD(applogs);
67
+ const infoLogsWrap = await encodeBlockOriginal({ logs: infoLogCids });
68
+ const applogsWrap = await encodeBlockOriginal({ logs: logCids });
69
+ const infoSignature = await agent.sign(infoLogsWrap.bytes);
70
+ const applogsSignature = await agent.sign(applogsWrap.bytes);
71
+ const root = {
72
+ info: infoLogsWrap.cid,
73
+ applogs: applogsWrap.cid,
74
+ infoSignature,
75
+ applogsSignature
76
+ };
77
+ DEBUG("[encodePubAsCar] encoding root", { root, logCids, infoLogCids });
78
+ const encodedRoot = await encodeBlockOriginal(root);
79
+ DEBUG("[encodePubAsCar] => root", { encodedRoot });
80
+ return await makeCarBlob(encodedRoot.cid, [encodedRoot, infoLogsWrap, applogsWrap, ...encodedInfoLogs, ...encodedApplogs]);
81
+ }
82
+ async function encodeApplogsAsCar(applogs) {
83
+ const { cids, encodedApplogs } = await encodeApplogsAsIPLD(applogs);
84
+ const root = { applogs: cids };
85
+ const encodedRoot = await encodeBlockOriginal(root);
86
+ DEBUG("[encodeApplogsAsCar] encoded root", { cids, encodedRoot });
87
+ return await makeCarBlob(encodedRoot.cid, [encodedRoot, ...encodedApplogs]);
88
+ }
89
+ async function encodeApplogsAsIPLD(applogs) {
90
+ const preppedLogs = applogs.map((log) => log instanceof Uint8Array ? log : prepareForPub(log));
91
+ const encodedApplogs = await Promise.all(preppedLogs.map(encodeBlockOriginal));
92
+ DEBUG("[encodeApplogsAsIpld] encoded applogs", { encodedApplogs });
93
+ const cids = encodedApplogs.map((b) => {
94
+ if (!b.cid)
95
+ throw new ERROR(`[publish] no cid for encoded log:`, b);
96
+ return b.cid;
97
+ });
98
+ return { cids, encodedApplogs };
99
+ }
100
+
101
+ // src/pubsub/pubsub-types.ts
102
+ function isPublication(obj) {
103
+ return obj?.pk !== void 0 && obj?.lastPush !== void 0;
104
+ }
105
+ function isSubscription(obj) {
106
+ return obj?.lastPull !== void 0;
107
+ }
108
+ function agentToShortHash(agentString) {
109
+ return cyrb53hash(agentString, 31, 7);
110
+ }
111
+
112
+ export {
113
+ preparePubForPush,
114
+ encodePubAsCar,
115
+ encodeApplogsAsCar,
116
+ isPublication,
117
+ isSubscription,
118
+ agentToShortHash
119
+ };
120
+ //# sourceMappingURL=chunk-6BFNER6K.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/pubsub/publication.ts","../src/pubsub/pubsub-types.ts"],"sourcesContent":["import { Logger } from 'besonders-logger'\nimport { stringify } from 'safe-stable-stringify'\nimport { cyrb53hash } from '../applog/applog-utils'\nimport { Applog, ApplogForInsert, EntityID } from '../applog/datom-types'\nimport { makeCarBlob } from '../ipfs/car'\nimport { encodeBlockOriginal, prepareForPub } from '../ipfs/ipfs-utils'\nimport { lastWriteWins } from './../query/basic'\nimport { ApplogsOrThread, getLogsFromThread, Thread } from '../thread'\nimport { rollingFilter } from '../thread/filters'\nimport { AppAgent, IPublication } from './pubsub-types'\n\nconst { WARN, LOG, DEBUG, VERBOSE, ERROR } = Logger.setup(Logger.DEBUG) // eslint-disable-line no-unused-vars\n\n// export const neverEncryptAttrs = [\n// \t'agent/jwkd',\n// \t'agent/appAgent',\n// \t'pub/encryptedFor',\n// \t'pub/sharedKey',\n// ]\n\nexport async function preparePubForPush(\n\tagent: AppAgent,\n\tappThread: Thread,\n\tthreadToPublish: ApplogsOrThread,\n\tpublication: IPublication,\n) {\n\t// await initWasm()\n\t// const car_data = Wasm.make_car(applogs)\n\t// DEBUG('Car data:', car_data)\n\t// TODO prevent publish if there is no new info\n\tconst logsToPublish = getLogsFromThread(threadToPublish)\n\n\tconst { sharedAgents, sharedKeyMap, sharedKey } = publication ?? {}\n\t// TODO: publish all agents' info related to the logs we want to publish\n\tconst agentLogs = rollingFilter(lastWriteWins(appThread), {\n\t\ten: agent.ag,\n\t\tat: ['agent/ecdh', 'agent/jwkd', 'agent/appAgent'],\n\t}).applogs\n\tDEBUG(`[preparePubForPush] agent logs:`, agentLogs)\n\tif (!agentLogs.find(({ at }) => at === 'agent/appAgent')) throw ERROR(`[preparePubForPush] appThread missing agent/appAgent log`)\n\tlet encPayload\n\tconst encryptAndTestDecrypt = async (applog: Applog, keyToUse: CryptoKey): Promise<Uint8Array> => {\n\t\tthrow new Error(`todo: enc`) // TODO: ENC\n\t\t// const eachLog = prepareForPub(applog) // without cid\n\t\t// const enc = new TextEncoder()\n\t\t// const stringified = stringify(eachLog)\n\t\t// const stringifiedEncodedAppLogPayload = enc.encode(stringified) // TODO: consider encodeToDagJson instead\n\t\t// VERBOSE('[odd]', { eachLog, stringified, stringifiedEncodedAppLogPayload })\n\n\t\t// try {\n\t\t// \tencPayload = await agent.crypto?.aes.encrypt(stringifiedEncodedAppLogPayload, keyToUse, SymmAlg.AES_GCM)\n\t\t// } catch (err) {\n\t\t// \tthrow ERROR('FAILED TO ENC payload length:', stringifiedEncodedAppLogPayload.length, { err })\n\t\t// }\n\n\t\t// const decrypted = await decryptWithAesSharedKey(encPayload, keyToUse, 'string')\n\n\t\t// VERBOSE('[odd] encrypted length:', stringifiedEncodedAppLogPayload.length, { encPayload, decrypted })\n\t\t// return encPayload\n\t}\n\tDEBUG('[preparePubForPush] applogs ', logsToPublish)\n\n\tlet maybeEncryptedApplogs: Uint8Array[] | readonly Applog[]\n\tif (sharedAgents) { // encrypt all Applogs\n\t\tif (!sharedKey || !sharedKeyMap) {\n\t\t\tthrow ERROR('sharedAgents but no Keys/Map', { sharedAgents, sharedKeyMap, sharedKey })\n\t\t}\n\t\tconst encryptedApplogs = [] as Uint8Array[]\n\t\tconst agentSharedKeyLogs = []\n\t\tfor (const [eachAgent, eachEncKey] of Array.from(sharedKeyMap.entries())) {\n\t\t\tagentSharedKeyLogs.push({\n\t\t\t\tag: agent.ag,\n\t\t\t\ten: eachAgent,\n\t\t\t\tat: 'pub/sharedKey',\n\t\t\t\tvl: eachEncKey, // these are encrypted with the derived key from the local agent private and remote agent public keys\n\t\t\t})\n\t\t}\n\t\t// const encryptedForLogs = await insertApplogsInAppDB(agentSharedKeyLogs)\n\t\t// DEBUG(`[publish] adding agentSharedKeyLogs:`, encryptedForLogs)\n\n\t\t// TODO ensure that all needed keys are in\n\t\tfor (const eachLog of logsToPublish) {\n\t\t\tVERBOSE('[crypto] encrypting ', eachLog)\n\t\t\t// if (neverEncryptAttrs.includes(eachLog.at)) {\n\t\t\t// \tencryptedApplogs.push(/* prepareForPub( */ eachLog /* ) */) // ? this seemed to double the below one - @gotjoshua?\n\t\t\t// \t// continue\n\t\t\t// }\n\t\t\ttry {\n\t\t\t\tencPayload = await encryptAndTestDecrypt(eachLog, sharedKey)\n\t\t\t} catch (err) {\n\t\t\t\t// its already traced in encryptAndTestDecrypt\n\t\t\t\t// continue\n\t\t\t}\n\t\t\tencryptedApplogs.push(encPayload)\n\t\t}\n\t\tmaybeEncryptedApplogs = encryptedApplogs\n\t} else {\n\t\tmaybeEncryptedApplogs = logsToPublish // publish nonEncrypted\n\t}\n\treturn encodePubAsCar(agent, maybeEncryptedApplogs, agentLogs)\n}\n\n/**\n * @param applogs Encrypted or plain applogs\n * @returns Car file\n */\nexport async function encodePubAsCar(\n\tagent: AppAgent,\n\tapplogs: readonly Uint8Array[] | readonly Applog[],\n\tinfoLogs: readonly Applog[],\n) {\n\tDEBUG(`[encodePubAsCar] encoding`, { agent, applogs, infoLogs })\n\tconst { cids: infoLogCids, encodedApplogs: encodedInfoLogs } = await encodeApplogsAsIPLD(infoLogs)\n\tconst { cids: logCids, encodedApplogs } = await encodeApplogsAsIPLD(applogs)\n\t// We need to wrap the array to get a CID\n\tconst infoLogsWrap = await encodeBlockOriginal({ logs: infoLogCids })\n\tconst applogsWrap = await encodeBlockOriginal({ logs: logCids })\n\tconst infoSignature = await agent.sign(infoLogsWrap.bytes)\n\tconst applogsSignature = await agent.sign(applogsWrap.bytes)\n\tconst root = {\n\t\tinfo: infoLogsWrap.cid,\n\t\tapplogs: applogsWrap.cid,\n\t\tinfoSignature,\n\t\tapplogsSignature,\n\t}\n\tDEBUG('[encodePubAsCar] encoding root', { root, logCids, infoLogCids })\n\tconst encodedRoot = await encodeBlockOriginal(root)\n\tDEBUG('[encodePubAsCar] => root', { encodedRoot })\n\n\treturn await makeCarBlob(encodedRoot.cid, [encodedRoot, infoLogsWrap, applogsWrap, ...encodedInfoLogs, ...encodedApplogs]) // TODO: create CarBuilder\n}\n\n/**\n * @param applogs Encrypted or plain applogs\n * @returns Car file\n */\nexport async function encodeApplogsAsCar(\n\tapplogs: readonly Uint8Array[] | readonly Applog[],\n) {\n\tconst { cids, encodedApplogs } = await encodeApplogsAsIPLD(applogs)\n\tconst root = { applogs: cids }\n\tconst encodedRoot = await encodeBlockOriginal(root)\n\tDEBUG('[encodeApplogsAsCar] encoded root', { cids, encodedRoot })\n\n\treturn await makeCarBlob(encodedRoot.cid, [encodedRoot, ...encodedApplogs])\n}\n\nasync function encodeApplogsAsIPLD(applogs: readonly Applog[] | readonly Uint8Array[]) {\n\tconst preppedLogs = applogs.map(log => log instanceof Uint8Array ? log : prepareForPub(log as Applog))\n\tconst encodedApplogs = await Promise.all(preppedLogs.map(encodeBlockOriginal))\n\tDEBUG('[encodeApplogsAsIpld] encoded applogs', { encodedApplogs })\n\n\tconst cids = encodedApplogs.map(b => {\n\t\tif (!b.cid) throw new ERROR(`[publish] no cid for encoded log:`, b)\n\t\treturn b.cid\n\t})\n\treturn { cids, encodedApplogs }\n}\n","import { cyrb53hash } from './../applog/applog-utils'\nimport { AgentHash, AgentID } from '../applog/datom-types'\nimport { Tagged } from '../types'\n\ntype AgentString = Tagged<string, 'AgentString'>\ntype DIDString = Tagged<string, 'DID'>\nexport type { AgentHash, AgentString, DIDString }\n\nexport interface AppAgent {\n\tag: AgentHash\n\tagentString: AgentString\n\tdid: DIDString\n\n\tsign(data: Uint8Array): Promise<Uint8Array>\n}\n\nexport interface IPublication {\n\tid?: string // string hash of pub (used as unique id in IDB) `W3Name.create().toString()` starts with k51qzi5uqu5d\n\tcreatedAt: string // ISO timestamp of creation\n\tname: string // nick name for the pub\n\tisDeleted?: boolean\n\n\tpk: Uint8Array // exported privatekey - needed to create WritableName for publishing //TODO: store as non-extractable / encrypted?\n\n\tautopush: boolean\n\tlastPush: string | null\n\tlastCID?: string\n\tlatestLogTs?: string\n\n\tpublishedBy: string // local user appAgent\n\tselectors?: string[] // to be used as a filter for which applogs to pub\n\tencryptedFor?: string | null // short agentHash\n\tencryptedWith?: CryptoKey | null // AES-GCM derived key from ECDH keys (local private and remote public)\n\n\t// HACK WIP #39 - shared encryption\n\tsharedKey?: CryptoKey | null // AES-GCM derived key from ECDH keys (local private and ipns public)\n\tsharedAgents?: AgentID[] | null // array of string EntityIDs for the chosen agents (we need public jwkd atoms for each of them)\n\tsharedKeyMap?: Map<AgentID, string> | null // uses public key from each agent to derive an aes key that is used to encrypt and btoa the sharedKey that is actually used to encrypt and decrypt the applogs\n}\nexport interface ISubscription {\n\tid: string // string hash of pub (used as unique id in IDB) `W3Name.create().toString()` starts with k51qzi5uqu5d\n\tcreatedAt: string // ISO timestamp of creation\n\tname: string // nick name for the pub\n\tisDeleted: boolean\n\n\tlastPull?: string | null\n\tlastPullAttempt?: string | null\n\tautopull: boolean\n\tlastCID?: string\n\tpublishedBy?: string // remote publisher short agentHash\n\tencryptedFor?: string | undefined // short agentHash\n\tencryptedWith?: CryptoKey | undefined // AES-GCM derived key from ECDH keys (local private and remote public)\n}\nexport function isPublication(obj: any): obj is IPublication {\n\treturn obj?.pk !== undefined && obj?.lastPush !== undefined\n}\nexport function isSubscription(obj: any): obj is ISubscription {\n\treturn obj?.lastPull !== undefined\n}\n\nexport type TSubPub = IPublication | ISubscription\n\nexport function agentToShortHash(agentString: string) {\n\treturn cyrb53hash(agentString, 31, 7) as string\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,36 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+
31
+ export {
32
+ __commonJS,
33
+ __export,
34
+ __toESM
35
+ };
36
+ //# sourceMappingURL=chunk-KRQZ6V4Y.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}