dbxlite-ui 0.2.0 → 0.3.1

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 (40) hide show
  1. package/assets/assets/argon2-Ds2nOx5S.js +548 -0
  2. package/assets/assets/{argon2-VsC-m8hX.js → argon2-gAk7W4yq.js} +2 -2
  3. package/assets/assets/{cssMode-BwlhJ7iR.js → cssMode-DjCAhvCq.js} +1 -1
  4. package/assets/assets/{duckdb-browser-BSQM4t65.js → duckdb-browser-BX0LtQQW.js} +1 -1
  5. package/assets/assets/{freemarker2-BkjRLolx.js → freemarker2-CowYmQxk.js} +1 -1
  6. package/assets/assets/{handlebars-CBMLM90w.js → handlebars-CT3UT-Rw.js} +1 -1
  7. package/assets/assets/{html-CHZal9Bq.js → html-DiYJ0pIZ.js} +1 -1
  8. package/assets/assets/{htmlMode-C9GZl6CA.js → htmlMode-eiLVFLp-.js} +1 -1
  9. package/assets/assets/{javascript-3HFHugwg.js → javascript-CJ2lg7Wg.js} +1 -1
  10. package/assets/assets/{jsonMode-uH9DvT2S.js → jsonMode-CDh3j4hY.js} +1 -1
  11. package/assets/assets/{liquid-Ynp44jOk.js → liquid-SJpu3XRo.js} +1 -1
  12. package/assets/assets/main-CiZpADZR.css +1 -0
  13. package/assets/assets/{index-BZdWDIbu.js → main-D7VyIWiO.js} +28185 -20952
  14. package/assets/assets/{mdx-B0LCS-Lw.js → mdx-DAZ43DF4.js} +1 -1
  15. package/assets/assets/{monaco-editor-DbSHhIAW.js → monaco-editor-CbzSR0rd.js} +34 -49
  16. package/assets/assets/oauth-callback-BSauVj6P.js +1 -0
  17. package/assets/assets/oauth-constants-m7PlKcMR.js +1 -0
  18. package/assets/assets/{python-BLbP2FhE.js → python-Dp4JNWW2.js} +1 -1
  19. package/assets/assets/{razor-CrzRfK-c.js → razor-C5KN2PrG.js} +1 -1
  20. package/assets/assets/{react-vendor-CJNQXC79.js → react-vendor-B2Ij4Vfr.js} +2 -2
  21. package/assets/assets/{tsMode-B-o6MNSg.js → tsMode-C29B5Qai.js} +1 -1
  22. package/assets/assets/{typescript-nABxf5PW.js → typescript-OZh8Ppiv.js} +1 -1
  23. package/assets/assets/{worker-D4TW6ZaR.js → worker-D76K9Q9Q.js} +1 -1
  24. package/assets/assets/{xml-BOnVlNcs.js → xml-BevTyp2m.js} +1 -1
  25. package/assets/assets/{yaml-Yl61aKaY.js → yaml-DXNKOJL7.js} +1 -1
  26. package/assets/duckdb/duckdb-browser-blocking.mjs +14 -0
  27. package/assets/duckdb/duckdb-browser-coi.pthread.worker.js +14 -0
  28. package/assets/duckdb/duckdb-browser-coi.worker.js +14 -0
  29. package/assets/duckdb/duckdb-browser-eh.worker.js +14 -0
  30. package/assets/duckdb/duckdb-browser-mvp.worker.js +14 -0
  31. package/assets/duckdb/duckdb-browser.mjs +2 -0
  32. package/assets/duckdb/duckdb-coi.wasm +0 -0
  33. package/assets/duckdb/duckdb-eh.wasm +0 -0
  34. package/assets/duckdb/duckdb-mvp.wasm +0 -0
  35. package/assets/index.html +5 -4
  36. package/assets/oauth-callback.html +57 -0
  37. package/package.json +4 -2
  38. package/assets/assets/argon2-CtQQN5by.js +0 -531
  39. package/assets/assets/index-Bls2JT31.css +0 -1
  40. package/assets/duckdb/.gitignore +0 -8
@@ -0,0 +1,548 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./argon2-gAk7W4yq.js","./react-vendor-B2Ij4Vfr.js"])))=>i.map(i=>d[i]);
2
+ import { b as ge, g as Pe } from "./react-vendor-B2Ij4Vfr.js";
3
+ import { _ as Be, __tla as __tla_0 } from "./monaco-editor-CbzSR0rd.js";
4
+ import * as pe from "a";
5
+ let nn, Ue;
6
+ let __tla = Promise.all([
7
+ (()=>{
8
+ try {
9
+ return __tla_0;
10
+ } catch {}
11
+ })()
12
+ ]).then(async ()=>{
13
+ function xe(m, e) {
14
+ for(var c = 0; c < e.length; c++){
15
+ const s = e[c];
16
+ if (typeof s != "string" && !Array.isArray(s)) {
17
+ for(const l in s)if (l !== "default" && !(l in m)) {
18
+ const u = Object.getOwnPropertyDescriptor(s, l);
19
+ u && Object.defineProperty(m, l, u.get ? u : {
20
+ enumerable: !0,
21
+ get: ()=>s[l]
22
+ });
23
+ }
24
+ }
25
+ }
26
+ return Object.freeze(Object.defineProperty(m, Symbol.toStringTag, {
27
+ value: "Module"
28
+ }));
29
+ }
30
+ function ye(m) {
31
+ throw new Error('Could not dynamically require "' + m + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
32
+ }
33
+ var ne = {
34
+ exports: {}
35
+ }, ie = {
36
+ exports: {}
37
+ };
38
+ const Ie = {}, Oe = Object.freeze(Object.defineProperty({
39
+ __proto__: null,
40
+ default: Ie
41
+ }, Symbol.toStringTag, {
42
+ value: "Module"
43
+ })), ae = ge(Oe);
44
+ var me;
45
+ Ue = function() {
46
+ return me || (me = 1, (function(m) {
47
+ var e = typeof self < "u" && typeof self.Module < "u" ? self.Module : {}, c = {}, s;
48
+ for(s in e)e.hasOwnProperty(s) && (c[s] = e[s]);
49
+ var l = !1, u = !1, b = !1, Y = !1;
50
+ l = typeof window == "object", u = typeof importScripts == "function", b = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string", Y = !l && !b && !u;
51
+ var g = "";
52
+ function W(n) {
53
+ return e.locateFile ? e.locateFile(n, g) : g + n;
54
+ }
55
+ var E, S, C, G, V;
56
+ b ? (u ? g = ae.dirname(g) + "/" : g = __dirname + "/", E = function(t, a) {
57
+ return G || (G = ae), V || (V = ae), t = V.normalize(t), G.readFileSync(t, a ? null : "utf8");
58
+ }, C = function(t) {
59
+ var a = E(t, !0);
60
+ return a.buffer || (a = new Uint8Array(a)), P(a.buffer), a;
61
+ }, process.argv.length > 1 && process.argv[1].replace(/\\/g, "/"), process.argv.slice(2), m.exports = e, process.on("uncaughtException", function(n) {
62
+ if (!(n instanceof Se)) throw n;
63
+ }), process.on("unhandledRejection", Z), e.inspect = function() {
64
+ return "[Emscripten Module object]";
65
+ }) : Y ? (typeof read < "u" && (E = function(t) {
66
+ return read(t);
67
+ }), C = function(t) {
68
+ var a;
69
+ return typeof readbuffer == "function" ? new Uint8Array(readbuffer(t)) : (a = read(t, "binary"), P(typeof a == "object"), a);
70
+ }, typeof scriptArgs < "u" && scriptArgs, typeof print < "u" && (typeof console > "u" && (console = {}), console.log = print, console.warn = console.error = typeof printErr < "u" ? printErr : print)) : (l || u) && (u ? g = self.location.href : typeof document < "u" && document.currentScript && (g = document.currentScript.src), g.indexOf("blob:") !== 0 ? g = g.substr(0, g.lastIndexOf("/") + 1) : g = "", E = function(n) {
71
+ var t = new XMLHttpRequest;
72
+ return t.open("GET", n, !1), t.send(null), t.responseText;
73
+ }, u && (C = function(n) {
74
+ var t = new XMLHttpRequest;
75
+ return t.open("GET", n, !1), t.responseType = "arraybuffer", t.send(null), new Uint8Array(t.response);
76
+ }), S = function(n, t, a) {
77
+ var p = new XMLHttpRequest;
78
+ p.open("GET", n, !0), p.responseType = "arraybuffer", p.onload = function() {
79
+ if (p.status == 200 || p.status == 0 && p.response) {
80
+ t(p.response);
81
+ return;
82
+ }
83
+ a();
84
+ }, p.onerror = a, p.send(null);
85
+ }), e.print || console.log.bind(console);
86
+ var r = e.printErr || console.warn.bind(console);
87
+ for(s in c)c.hasOwnProperty(s) && (e[s] = c[s]);
88
+ c = null, e.arguments && e.arguments, e.thisProgram && e.thisProgram, e.quit && e.quit;
89
+ var i;
90
+ e.wasmBinary && (i = e.wasmBinary), e.noExitRuntime, typeof WebAssembly != "object" && Z("no native wasm support detected");
91
+ var o, d = !1;
92
+ function P(n, t) {
93
+ n || Z("Assertion failed: " + t);
94
+ }
95
+ var N = 0, B = 1;
96
+ function k(n, t) {
97
+ var a;
98
+ return t == B ? a = le(n.length) : a = ue(n.length), n.subarray || n.slice ? _.set(n, a) : _.set(new Uint8Array(n), a), a;
99
+ }
100
+ var F = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
101
+ function H(n, t, a) {
102
+ for(var p = t + a, v = t; n[v] && !(v >= p);)++v;
103
+ if (v - t > 16 && n.subarray && F) return F.decode(n.subarray(t, v));
104
+ for(var T = ""; t < v;){
105
+ var f = n[t++];
106
+ if (!(f & 128)) {
107
+ T += String.fromCharCode(f);
108
+ continue;
109
+ }
110
+ var w = n[t++] & 63;
111
+ if ((f & 224) == 192) {
112
+ T += String.fromCharCode((f & 31) << 6 | w);
113
+ continue;
114
+ }
115
+ var L = n[t++] & 63;
116
+ if ((f & 240) == 224 ? f = (f & 15) << 12 | w << 6 | L : f = (f & 7) << 18 | w << 12 | L << 6 | n[t++] & 63, f < 65536) T += String.fromCharCode(f);
117
+ else {
118
+ var de = f - 65536;
119
+ T += String.fromCharCode(55296 | de >> 10, 56320 | de & 1023);
120
+ }
121
+ }
122
+ return T;
123
+ }
124
+ function j(n, t) {
125
+ return n ? H(_, n, t) : "";
126
+ }
127
+ function x(n, t) {
128
+ return n % t > 0 && (n += t - n % t), n;
129
+ }
130
+ var h, _;
131
+ function I(n) {
132
+ h = n, e.HEAP8 = new Int8Array(n), e.HEAP16 = new Int16Array(n), e.HEAP32 = new Int32Array(n), e.HEAPU8 = _ = new Uint8Array(n), e.HEAPU16 = new Uint16Array(n), e.HEAPU32 = new Uint32Array(n), e.HEAPF32 = new Float32Array(n), e.HEAPF64 = new Float64Array(n);
133
+ }
134
+ e.INITIAL_MEMORY;
135
+ var y, J = [], M = [], z = [];
136
+ function X() {
137
+ if (e.preRun) for(typeof e.preRun == "function" && (e.preRun = [
138
+ e.preRun
139
+ ]); e.preRun.length;)$(e.preRun.shift());
140
+ re(J);
141
+ }
142
+ function te() {
143
+ re(M);
144
+ }
145
+ function O() {
146
+ if (e.postRun) for(typeof e.postRun == "function" && (e.postRun = [
147
+ e.postRun
148
+ ]); e.postRun.length;)U(e.postRun.shift());
149
+ re(z);
150
+ }
151
+ function $(n) {
152
+ J.unshift(n);
153
+ }
154
+ function q(n) {
155
+ M.unshift(n);
156
+ }
157
+ function U(n) {
158
+ z.unshift(n);
159
+ }
160
+ var R = 0, D = null;
161
+ function K(n) {
162
+ R++, e.monitorRunDependencies && e.monitorRunDependencies(R);
163
+ }
164
+ function Q(n) {
165
+ if (R--, e.monitorRunDependencies && e.monitorRunDependencies(R), R == 0 && D) {
166
+ var t = D;
167
+ D = null, t();
168
+ }
169
+ }
170
+ e.preloadedImages = {}, e.preloadedAudios = {};
171
+ function Z(n) {
172
+ e.onAbort && e.onAbort(n), n += "", r(n), d = !0, n = "abort(" + n + "). Build with -s ASSERTIONS=1 for more info.";
173
+ var t = new WebAssembly.RuntimeError(n);
174
+ throw t;
175
+ }
176
+ var Ae = "data:application/octet-stream;base64,";
177
+ function se(n) {
178
+ return n.startsWith(Ae);
179
+ }
180
+ function fe(n) {
181
+ return n.startsWith("file://");
182
+ }
183
+ var A = "argon2.wasm";
184
+ se(A) || (A = W(A));
185
+ function ce(n) {
186
+ try {
187
+ if (n == A && i) return new Uint8Array(i);
188
+ if (C) return C(n);
189
+ throw "both async and sync fetching of the wasm failed";
190
+ } catch (t) {
191
+ Z(t);
192
+ }
193
+ }
194
+ function ve() {
195
+ if (!i && (l || u)) {
196
+ if (typeof fetch == "function" && !fe(A)) return fetch(A, {
197
+ credentials: "same-origin"
198
+ }).then(function(n) {
199
+ if (!n.ok) throw "failed to load wasm binary file at '" + A + "'";
200
+ return n.arrayBuffer();
201
+ }).catch(function() {
202
+ return ce(A);
203
+ });
204
+ if (S) return new Promise(function(n, t) {
205
+ S(A, function(a) {
206
+ n(new Uint8Array(a));
207
+ }, t);
208
+ });
209
+ }
210
+ return Promise.resolve().then(function() {
211
+ return ce(A);
212
+ });
213
+ }
214
+ function we() {
215
+ var n = {
216
+ a: Te
217
+ };
218
+ function t(f, w) {
219
+ var L = f.exports;
220
+ e.asm = L, o = e.asm.c, I(o.buffer), y = e.asm.k, q(e.asm.d), Q();
221
+ }
222
+ K();
223
+ function a(f) {
224
+ t(f.instance);
225
+ }
226
+ function p(f) {
227
+ return ve().then(function(w) {
228
+ var L = WebAssembly.instantiate(w, n);
229
+ return L;
230
+ }).then(f, function(w) {
231
+ r("failed to asynchronously prepare wasm: " + w), Z(w);
232
+ });
233
+ }
234
+ function v() {
235
+ return !i && typeof WebAssembly.instantiateStreaming == "function" && !se(A) && !fe(A) && typeof fetch == "function" ? fetch(A, {
236
+ credentials: "same-origin"
237
+ }).then(function(f) {
238
+ var w = WebAssembly.instantiateStreaming(f, n);
239
+ return w.then(a, function(L) {
240
+ return r("wasm streaming compile failed: " + L), r("falling back to ArrayBuffer instantiation"), p(a);
241
+ });
242
+ }) : p(a);
243
+ }
244
+ if (e.instantiateWasm) try {
245
+ var T = e.instantiateWasm(n, t);
246
+ return T;
247
+ } catch (f) {
248
+ return r("Module.instantiateWasm callback failed with error: " + f), !1;
249
+ }
250
+ return v(), {};
251
+ }
252
+ function re(n) {
253
+ for(; n.length > 0;){
254
+ var t = n.shift();
255
+ if (typeof t == "function") {
256
+ t(e);
257
+ continue;
258
+ }
259
+ var a = t.func;
260
+ typeof a == "number" ? t.arg === void 0 ? y.get(a)() : y.get(a)(t.arg) : a(t.arg === void 0 ? null : t.arg);
261
+ }
262
+ }
263
+ function be(n, t, a) {
264
+ _.copyWithin(n, t, t + a);
265
+ }
266
+ function Re(n) {
267
+ try {
268
+ return o.grow(n - h.byteLength + 65535 >>> 16), I(o.buffer), 1;
269
+ } catch {}
270
+ }
271
+ function Ee(n) {
272
+ var t = _.length;
273
+ n = n >>> 0;
274
+ var a = 2147418112;
275
+ if (n > a) return !1;
276
+ for(var p = 1; p <= 4; p *= 2){
277
+ var v = t * (1 + .2 / p);
278
+ v = Math.min(v, n + 100663296);
279
+ var T = Math.min(a, x(Math.max(n, v), 65536)), f = Re(T);
280
+ if (f) return !0;
281
+ }
282
+ return !1;
283
+ }
284
+ var Te = {
285
+ a: be,
286
+ b: Ee
287
+ };
288
+ we(), e.___wasm_call_ctors = function() {
289
+ return (e.___wasm_call_ctors = e.asm.d).apply(null, arguments);
290
+ }, e._argon2_hash = function() {
291
+ return (e._argon2_hash = e.asm.e).apply(null, arguments);
292
+ };
293
+ var ue = e._malloc = function() {
294
+ return (ue = e._malloc = e.asm.f).apply(null, arguments);
295
+ };
296
+ e._free = function() {
297
+ return (e._free = e.asm.g).apply(null, arguments);
298
+ }, e._argon2_verify = function() {
299
+ return (e._argon2_verify = e.asm.h).apply(null, arguments);
300
+ }, e._argon2_error_message = function() {
301
+ return (e._argon2_error_message = e.asm.i).apply(null, arguments);
302
+ }, e._argon2_encodedlen = function() {
303
+ return (e._argon2_encodedlen = e.asm.j).apply(null, arguments);
304
+ }, e._argon2_hash_ext = function() {
305
+ return (e._argon2_hash_ext = e.asm.l).apply(null, arguments);
306
+ }, e._argon2_verify_ext = function() {
307
+ return (e._argon2_verify_ext = e.asm.m).apply(null, arguments);
308
+ };
309
+ var le = e.stackAlloc = function() {
310
+ return (le = e.stackAlloc = e.asm.n).apply(null, arguments);
311
+ };
312
+ e.allocate = k, e.UTF8ToString = j, e.ALLOC_NORMAL = N;
313
+ var ee;
314
+ function Se(n) {
315
+ this.name = "ExitStatus", this.message = "Program terminated with exit(" + n + ")", this.status = n;
316
+ }
317
+ D = function n() {
318
+ ee || oe(), ee || (D = n);
319
+ };
320
+ function oe(n) {
321
+ if (R > 0 || (X(), R > 0)) return;
322
+ function t() {
323
+ ee || (ee = !0, e.calledRun = !0, !d && (te(), e.onRuntimeInitialized && e.onRuntimeInitialized(), O()));
324
+ }
325
+ e.setStatus ? (e.setStatus("Running..."), setTimeout(function() {
326
+ setTimeout(function() {
327
+ e.setStatus("");
328
+ }, 1), t();
329
+ }, 1)) : t();
330
+ }
331
+ if (e.run = oe, e.preInit) for(typeof e.preInit == "function" && (e.preInit = [
332
+ e.preInit
333
+ ]); e.preInit.length > 0;)e.preInit.pop()();
334
+ oe(), m.exports = e, e.unloadRuntime = function() {
335
+ typeof self < "u" && delete self.Module, e = o = y = h = _ = void 0, delete m.exports;
336
+ };
337
+ })(ie)), ie.exports;
338
+ };
339
+ const Le = "" + new URL("argon2-BUCifEKR.wasm", import.meta.url).href, We = async (m = {}, e)=>{
340
+ let c;
341
+ if (e.startsWith("data:")) {
342
+ const s = e.replace(/^data:.*?base64,/, "");
343
+ let l;
344
+ if (typeof Buffer == "function" && typeof Buffer.from == "function") l = Buffer.from(s, "base64");
345
+ else if (typeof atob == "function") {
346
+ const u = atob(s);
347
+ l = new Uint8Array(u.length);
348
+ for(let b = 0; b < u.length; b++)l[b] = u.charCodeAt(b);
349
+ } else throw new Error("Cannot decode base64-encoded data URL");
350
+ c = await WebAssembly.instantiate(l, m);
351
+ } else {
352
+ const s = await fetch(e), l = s.headers.get("Content-Type") || "";
353
+ if ("instantiateStreaming" in WebAssembly && l.startsWith("application/wasm")) c = await WebAssembly.instantiateStreaming(s, m);
354
+ else {
355
+ const u = await s.arrayBuffer();
356
+ c = await WebAssembly.instantiate(u, m);
357
+ }
358
+ }
359
+ return c.instance.exports;
360
+ };
361
+ URL = globalThis.URL;
362
+ const Ce = await We({
363
+ a: {
364
+ a: pe.a,
365
+ b: pe.b
366
+ }
367
+ }, Le), { c: Ne, d: Fe, e: je, f: Me, g: De, h: He, i: $e, j: qe, k: Ke, l: Ge, m: Ve, n: ke } = Ce, ze = Object.freeze(Object.defineProperty({
368
+ __proto__: null,
369
+ c: Ne,
370
+ d: Fe,
371
+ e: je,
372
+ f: Me,
373
+ g: De,
374
+ h: He,
375
+ i: $e,
376
+ j: qe,
377
+ k: Ke,
378
+ l: Ge,
379
+ m: Ve,
380
+ n: ke
381
+ }, Symbol.toStringTag, {
382
+ value: "Module"
383
+ })), Xe = ge(ze);
384
+ var Ze = ne.exports, _e;
385
+ function Ye() {
386
+ return _e || (_e = 1, (function(m) {
387
+ (function(e, c) {
388
+ m.exports ? m.exports = c() : e.argon2 = c();
389
+ })(typeof self < "u" ? self : Ze, function() {
390
+ const e = typeof self < "u" ? self : this, c = {
391
+ Argon2d: 0,
392
+ Argon2i: 1,
393
+ Argon2id: 2
394
+ };
395
+ function s(r) {
396
+ if (s._promise) return s._promise;
397
+ if (s._module) return Promise.resolve(s._module);
398
+ let i;
399
+ return e.process && e.process.versions && e.process.versions.node ? i = u().then((o)=>new Promise((d)=>{
400
+ o.postRun = ()=>d(o);
401
+ })) : i = b().then((o)=>{
402
+ const d = r ? g(r) : void 0;
403
+ return l(o, d);
404
+ }), s._promise = i, i.then((o)=>(s._module = o, delete s._promise, o));
405
+ }
406
+ function l(r, i) {
407
+ return new Promise((o)=>(e.Module = {
408
+ wasmBinary: r,
409
+ wasmMemory: i,
410
+ postRun () {
411
+ o(Module);
412
+ }
413
+ }, u()));
414
+ }
415
+ function u() {
416
+ return e.loadArgon2WasmModule ? e.loadArgon2WasmModule() : typeof ye == "function" ? Promise.resolve(Ue()) : Be(()=>import("./argon2-gAk7W4yq.js").then(async (m)=>{
417
+ await m.__tla;
418
+ return m;
419
+ }).then((r)=>r.a), __vite__mapDeps([0,1]), import.meta.url);
420
+ }
421
+ function b() {
422
+ if (e.loadArgon2WasmBinary) return e.loadArgon2WasmBinary();
423
+ if (typeof ye == "function") return Promise.resolve(Xe).then((i)=>Y(i));
424
+ const r = e.argon2WasmPath || "node_modules/argon2-browser/dist/argon2.wasm";
425
+ return fetch(r).then((i)=>i.arrayBuffer()).then((i)=>new Uint8Array(i));
426
+ }
427
+ function Y(r) {
428
+ const i = atob(r), o = new Uint8Array(new ArrayBuffer(i.length));
429
+ for(let d = 0; d < i.length; d++)o[d] = i.charCodeAt(d);
430
+ return o;
431
+ }
432
+ function g(r) {
433
+ const B = Math.min(Math.max(Math.ceil(r * 1024 / 65536), 256) + 256, 32767);
434
+ return new WebAssembly.Memory({
435
+ initial: B,
436
+ maximum: 32767
437
+ });
438
+ }
439
+ function W(r, i) {
440
+ return r.allocate(i, "i8", r.ALLOC_NORMAL);
441
+ }
442
+ function E(r, i) {
443
+ const o = new Uint8Array([
444
+ ...i,
445
+ 0
446
+ ]);
447
+ return W(r, o);
448
+ }
449
+ function S(r) {
450
+ if (typeof r != "string") return r;
451
+ if (typeof TextEncoder == "function") return new TextEncoder().encode(r);
452
+ if (typeof Buffer == "function") return Buffer.from(r);
453
+ throw new Error("Don't know how to encode UTF8");
454
+ }
455
+ function C(r) {
456
+ const i = r.mem || 1024;
457
+ return s(i).then((o)=>{
458
+ const d = r.time || 1, P = r.parallelism || 1, N = S(r.pass), B = E(o, N), k = N.length, F = S(r.salt), H = E(o, F), j = F.length, x = r.type || c.Argon2d, h = o.allocate(new Array(r.hashLen || 24), "i8", o.ALLOC_NORMAL), _ = r.secret ? W(o, r.secret) : 0, I = r.secret ? r.secret.byteLength : 0, y = r.ad ? W(o, r.ad) : 0, J = r.ad ? r.ad.byteLength : 0, M = r.hashLen || 24, z = o._argon2_encodedlen(d, i, P, j, M, x), X = o.allocate(new Array(z + 1), "i8", o.ALLOC_NORMAL), te = 19;
459
+ let O, $;
460
+ try {
461
+ $ = o._argon2_hash_ext(d, i, P, B, k, H, j, h, M, X, z, x, _, I, y, J, te);
462
+ } catch (U) {
463
+ O = U;
464
+ }
465
+ let q;
466
+ if ($ === 0 && !O) {
467
+ let U = "";
468
+ const R = new Uint8Array(M);
469
+ for(let K = 0; K < M; K++){
470
+ const Q = o.HEAP8[h + K];
471
+ R[K] = Q, U += ("0" + (255 & Q).toString(16)).slice(-2);
472
+ }
473
+ const D = o.UTF8ToString(X);
474
+ q = {
475
+ hash: R,
476
+ hashHex: U,
477
+ encoded: D
478
+ };
479
+ } else {
480
+ try {
481
+ O || (O = o.UTF8ToString(o._argon2_error_message($)));
482
+ } catch {}
483
+ q = {
484
+ message: O,
485
+ code: $
486
+ };
487
+ }
488
+ try {
489
+ o._free(B), o._free(H), o._free(h), o._free(X), y && o._free(y), _ && o._free(_);
490
+ } catch {}
491
+ if (O) throw q;
492
+ return q;
493
+ });
494
+ }
495
+ function G(r) {
496
+ return s().then((i)=>{
497
+ const o = S(r.pass), d = E(i, o), P = o.length, N = r.secret ? W(i, r.secret) : 0, B = r.secret ? r.secret.byteLength : 0, k = r.ad ? W(i, r.ad) : 0, F = r.ad ? r.ad.byteLength : 0, H = S(r.encoded), j = E(i, H);
498
+ let x = r.type;
499
+ if (x === void 0) {
500
+ let y = r.encoded.split("$")[1];
501
+ y && (y = y.replace("a", "A"), x = c[y] || c.Argon2d);
502
+ }
503
+ let h, _;
504
+ try {
505
+ _ = i._argon2_verify_ext(j, d, P, N, B, k, F, x);
506
+ } catch (y) {
507
+ h = y;
508
+ }
509
+ let I;
510
+ if (_ || h) {
511
+ try {
512
+ h || (h = i.UTF8ToString(i._argon2_error_message(_)));
513
+ } catch {}
514
+ I = {
515
+ message: h,
516
+ code: _
517
+ };
518
+ }
519
+ try {
520
+ i._free(d), i._free(j);
521
+ } catch {}
522
+ if (h) throw I;
523
+ return I;
524
+ });
525
+ }
526
+ function V() {
527
+ s._module && (s._module.unloadRuntime(), delete s._promise, delete s._module);
528
+ }
529
+ return {
530
+ ArgonType: c,
531
+ hash: C,
532
+ verify: G,
533
+ unloadRuntime: V
534
+ };
535
+ });
536
+ })(ne)), ne.exports;
537
+ }
538
+ var he = Ye();
539
+ let Je;
540
+ Je = Pe(he);
541
+ nn = xe({
542
+ __proto__: null,
543
+ default: Je
544
+ }, [
545
+ he
546
+ ]);
547
+ });
548
+ export { nn as a, Ue as r, __tla };
@@ -1,5 +1,5 @@
1
- import { g as s } from "./react-vendor-CJNQXC79.js";
2
- import { r as g, __tla as __tla_0 } from "./argon2-CtQQN5by.js";
1
+ import { g as s } from "./react-vendor-B2Ij4Vfr.js";
2
+ import { r as g, __tla as __tla_0 } from "./argon2-Ds2nOx5S.js";
3
3
  let l;
4
4
  let __tla = Promise.all([
5
5
  (()=>{