@expofp/loader 1.0.59 → 1.0.61
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/bundle/bundle.js +158 -155
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/bundle/{downloadZip-BbVnryS9.js → downloadZip-CohB2rQN.js} +326 -324
- package/dist/bundle/downloadZip-CohB2rQN.js.map +1 -0
- package/dist/bundle/makeOffline-DuRXI_Dd.js.map +1 -1
- package/dist/bundle/makeOfflineBundle-XjvmvDQE.js.map +1 -1
- package/dist/esm/importJson.js +2 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/loadAndWaitGlobal.js +1 -1
- package/dist/esm/logger.d.ts +1 -2
- package/dist/esm/logger.js +4 -1
- package/dist/esm/offline/downloadZip.js +2 -0
- package/dist/esm/offline/makeOffline.js +2 -1
- package/dist/esm/offline/makeOfflineBundle.js +1 -1
- package/dist/esm/resolve.js +2 -1
- package/dist/esm/resolvers/_OLD_expoResolver.js +1 -1
- package/dist/esm/resolvers/assetResolver.js +1 -1
- package/dist/esm/resolvers/bundleAssetsResolver.js +1 -1
- package/dist/esm/resolvers/expoRuntimeBranchResolver.js +2 -2
- package/dist/esm/resolvers/expoRuntimeGetBranchResolver.js +1 -1
- package/dist/esm/resolvers/expoRuntimeResolver.js +2 -1
- package/dist/esm/resolvers/httpResolver.js +1 -1
- package/dist/esm/resolvers/legacyAssetUrlsResolver.js +9 -10
- package/dist/esm/resolvers/legacyDataResolver.js +1 -1
- package/dist/esm/shared.d.ts +0 -1
- package/dist/esm/shared.js +0 -6
- package/package.json +1 -1
- package/dist/bundle/downloadZip-BbVnryS9.js.map +0 -1
- package/dist/esm/offline/downloadZip copy.d.ts +0 -1
- package/dist/esm/offline/downloadZip copy.js +0 -89
- package/dist/esm/offline/makeOfflineBundle copy.d.ts +0 -1
- package/dist/esm/offline/makeOfflineBundle copy.js +0 -92
package/dist/bundle/bundle.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
window.__efpLoaderBuildInfo = ["1.0.
|
|
2
|
-
var
|
|
3
|
-
function
|
|
1
|
+
window.__efpLoaderBuildInfo = ["1.0.61", "2025-12-15T10:22:44.962Z"];
|
|
2
|
+
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
+
function Q(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (
|
|
9
|
-
|
|
6
|
+
var O = { exports: {} }, L, U;
|
|
7
|
+
function X() {
|
|
8
|
+
if (U) return L;
|
|
9
|
+
U = 1;
|
|
10
10
|
var r = 1e3, e = r * 60, t = e * 60, n = t * 24, o = n * 7, l = n * 365.25;
|
|
11
|
-
|
|
11
|
+
L = function(f, s) {
|
|
12
12
|
s = s || {};
|
|
13
13
|
var i = typeof f;
|
|
14
14
|
if (i === "string" && f.length > 0)
|
|
15
15
|
return a(f);
|
|
16
16
|
if (i === "number" && isFinite(f))
|
|
17
|
-
return s.long ? c(f) :
|
|
17
|
+
return s.long ? c(f) : w(f);
|
|
18
18
|
throw new Error(
|
|
19
19
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(f)
|
|
20
20
|
);
|
|
@@ -71,26 +71,26 @@ function Y() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function w(f) {
|
|
75
75
|
var s = Math.abs(f);
|
|
76
76
|
return s >= n ? Math.round(f / n) + "d" : s >= t ? Math.round(f / t) + "h" : s >= e ? Math.round(f / e) + "m" : s >= r ? Math.round(f / r) + "s" : f + "ms";
|
|
77
77
|
}
|
|
78
78
|
function c(f) {
|
|
79
79
|
var s = Math.abs(f);
|
|
80
|
-
return s >= n ?
|
|
80
|
+
return s >= n ? h(f, s, n, "day") : s >= t ? h(f, s, t, "hour") : s >= e ? h(f, s, e, "minute") : s >= r ? h(f, s, r, "second") : f + " ms";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
return Math.round(f / i) + " " + u + (
|
|
82
|
+
function h(f, s, i, u) {
|
|
83
|
+
var d = s >= i * 1.5;
|
|
84
|
+
return Math.round(f / i) + " " + u + (d ? "s" : "");
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return L;
|
|
87
87
|
}
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
91
|
-
|
|
88
|
+
var T, W;
|
|
89
|
+
function Y() {
|
|
90
|
+
if (W) return T;
|
|
91
|
+
W = 1;
|
|
92
92
|
function r(e) {
|
|
93
|
-
n.debug = n, n.default = n, n.coerce =
|
|
93
|
+
n.debug = n, n.default = n, n.coerce = h, n.disable = w, n.enable = l, n.enabled = c, n.humanize = X(), n.destroy = f, Object.keys(e).forEach((s) => {
|
|
94
94
|
n[s] = e[s];
|
|
95
95
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
96
96
|
function t(s) {
|
|
@@ -101,29 +101,29 @@ function x() {
|
|
|
101
101
|
}
|
|
102
102
|
n.selectColor = t;
|
|
103
103
|
function n(s) {
|
|
104
|
-
let i, u = null,
|
|
104
|
+
let i, u = null, d, g;
|
|
105
105
|
function p(...m) {
|
|
106
106
|
if (!p.enabled)
|
|
107
107
|
return;
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
let
|
|
111
|
-
m[0] = m[0].replace(/%([a-zA-Z%])/g, (
|
|
112
|
-
if (
|
|
108
|
+
const C = p, F = Number(/* @__PURE__ */ new Date()), _ = F - (i || F);
|
|
109
|
+
C.diff = _, C.prev = i, C.curr = F, i = F, m[0] = n.coerce(m[0]), typeof m[0] != "string" && m.unshift("%O");
|
|
110
|
+
let R = 0;
|
|
111
|
+
m[0] = m[0].replace(/%([a-zA-Z%])/g, (b, H) => {
|
|
112
|
+
if (b === "%%")
|
|
113
113
|
return "%";
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
if (typeof
|
|
117
|
-
const
|
|
118
|
-
|
|
114
|
+
R++;
|
|
115
|
+
const N = n.formatters[H];
|
|
116
|
+
if (typeof N == "function") {
|
|
117
|
+
const K = m[R];
|
|
118
|
+
b = N.call(C, K), m.splice(R, 1), R--;
|
|
119
119
|
}
|
|
120
|
-
return
|
|
121
|
-
}), n.formatArgs.call(
|
|
120
|
+
return b;
|
|
121
|
+
}), n.formatArgs.call(C, m), (C.log || n.log).apply(C, m);
|
|
122
122
|
}
|
|
123
123
|
return p.namespace = s, p.useColors = n.useColors(), p.color = n.selectColor(s), p.extend = o, p.destroy = n.destroy, Object.defineProperty(p, "enabled", {
|
|
124
124
|
enumerable: !0,
|
|
125
125
|
configurable: !1,
|
|
126
|
-
get: () => u !== null ? u : (
|
|
126
|
+
get: () => u !== null ? u : (d !== n.namespaces && (d = n.namespaces, g = n.enabled(s)), g),
|
|
127
127
|
set: (m) => {
|
|
128
128
|
u = m;
|
|
129
129
|
}
|
|
@@ -140,19 +140,19 @@ function x() {
|
|
|
140
140
|
u[0] === "-" ? n.skips.push(u.slice(1)) : n.names.push(u);
|
|
141
141
|
}
|
|
142
142
|
function a(s, i) {
|
|
143
|
-
let u = 0,
|
|
143
|
+
let u = 0, d = 0, g = -1, p = 0;
|
|
144
144
|
for (; u < s.length; )
|
|
145
|
-
if (
|
|
146
|
-
i[
|
|
147
|
-
else if (
|
|
148
|
-
|
|
145
|
+
if (d < i.length && (i[d] === s[u] || i[d] === "*"))
|
|
146
|
+
i[d] === "*" ? (g = d, p = u, d++) : (u++, d++);
|
|
147
|
+
else if (g !== -1)
|
|
148
|
+
d = g + 1, p++, u = p;
|
|
149
149
|
else
|
|
150
150
|
return !1;
|
|
151
|
-
for (;
|
|
152
|
-
|
|
153
|
-
return
|
|
151
|
+
for (; d < i.length && i[d] === "*"; )
|
|
152
|
+
d++;
|
|
153
|
+
return d === i.length;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function w() {
|
|
156
156
|
const s = [
|
|
157
157
|
...n.names,
|
|
158
158
|
...n.skips.map((i) => "-" + i)
|
|
@@ -168,7 +168,7 @@ function x() {
|
|
|
168
168
|
return !0;
|
|
169
169
|
return !1;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function h(s) {
|
|
172
172
|
return s instanceof Error ? s.stack || s.message : s;
|
|
173
173
|
}
|
|
174
174
|
function f() {
|
|
@@ -176,11 +176,11 @@ function x() {
|
|
|
176
176
|
}
|
|
177
177
|
return n.enable(n.load()), n;
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return T = r, T;
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
function
|
|
183
|
-
return
|
|
181
|
+
var z;
|
|
182
|
+
function x() {
|
|
183
|
+
return z || (z = 1, (function(r, e) {
|
|
184
184
|
e.formatArgs = n, e.save = o, e.load = l, e.useColors = t, e.storage = a(), e.destroy = /* @__PURE__ */ (() => {
|
|
185
185
|
let c = !1;
|
|
186
186
|
return () => {
|
|
@@ -279,12 +279,12 @@ function ee() {
|
|
|
279
279
|
function n(c) {
|
|
280
280
|
if (c[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + c[0] + (this.useColors ? "%c " : " ") + "+" + r.exports.humanize(this.diff), !this.useColors)
|
|
281
281
|
return;
|
|
282
|
-
const
|
|
283
|
-
c.splice(1, 0,
|
|
282
|
+
const h = "color: " + this.color;
|
|
283
|
+
c.splice(1, 0, h, "color: inherit");
|
|
284
284
|
let f = 0, s = 0;
|
|
285
285
|
c[0].replace(/%[a-zA-Z%]/g, (i) => {
|
|
286
286
|
i !== "%%" && (f++, i === "%c" && (s = f));
|
|
287
|
-
}), c.splice(s, 0,
|
|
287
|
+
}), c.splice(s, 0, h);
|
|
288
288
|
}
|
|
289
289
|
e.log = console.debug || console.log || (() => {
|
|
290
290
|
});
|
|
@@ -308,39 +308,42 @@ function ee() {
|
|
|
308
308
|
} catch {
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
r.exports =
|
|
312
|
-
const { formatters:
|
|
313
|
-
|
|
311
|
+
r.exports = Y()(e);
|
|
312
|
+
const { formatters: w } = r.exports;
|
|
313
|
+
w.j = function(c) {
|
|
314
314
|
try {
|
|
315
315
|
return JSON.stringify(c);
|
|
316
|
-
} catch (
|
|
317
|
-
return "[UnexpectedJSONParseError]: " +
|
|
316
|
+
} catch (h) {
|
|
317
|
+
return "[UnexpectedJSONParseError]: " + h.message;
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
|
-
})(
|
|
320
|
+
})(O, O.exports)), O.exports;
|
|
321
|
+
}
|
|
322
|
+
var ee = x();
|
|
323
|
+
const re = /* @__PURE__ */ Q(ee), te = re("efp:loader");
|
|
324
|
+
function y(...r) {
|
|
325
|
+
te(...r);
|
|
321
326
|
}
|
|
322
|
-
var re = ee();
|
|
323
|
-
const te = /* @__PURE__ */ X(re), N = te("efp:loader");
|
|
324
327
|
function ne(r) {
|
|
325
|
-
return y("assetResolver resolveRef:", r),
|
|
328
|
+
return y("assetResolver resolveRef:", r), $(r);
|
|
326
329
|
}
|
|
327
330
|
const oe = {
|
|
328
331
|
schema: "asset",
|
|
329
332
|
resolveRef: async (r) => ne(r),
|
|
330
333
|
offlineMethod: "localizeRef"
|
|
331
334
|
};
|
|
332
|
-
let
|
|
333
|
-
const se = /* @__PURE__ */ new WeakSet(),
|
|
334
|
-
async function
|
|
335
|
+
let A;
|
|
336
|
+
const se = /* @__PURE__ */ new WeakSet(), P = new Function("url", 'return import(url, { with: { type: "json" } });');
|
|
337
|
+
async function M(r, e) {
|
|
335
338
|
var n, o;
|
|
336
|
-
if (
|
|
339
|
+
if (A === void 0 && !e.forceFetch)
|
|
337
340
|
try {
|
|
338
|
-
await
|
|
341
|
+
await P(r), A = !1;
|
|
339
342
|
} catch {
|
|
340
|
-
y("importJson: dynamic import not available, falling back to fetch"),
|
|
343
|
+
y("importJson: dynamic import not available, falling back to fetch"), A = !0;
|
|
341
344
|
}
|
|
342
345
|
let t;
|
|
343
|
-
return !
|
|
346
|
+
return !A && !e.forceFetch ? (t = (await P(r)).default, (n = e.importCallback) == null || n.call(e, r, "json")) : (y("importJson: fetch", r), t = await ae(r, e.refCache, e.signal || null), (o = e.importCallback) == null || o.call(e, r, "json")), se.has(t) || E(t), t;
|
|
344
347
|
}
|
|
345
348
|
async function ae(r, e, t) {
|
|
346
349
|
const n = "__loadJson__" + r;
|
|
@@ -354,19 +357,19 @@ async function ae(r, e, t) {
|
|
|
354
357
|
})();
|
|
355
358
|
return e.set(n, o), o;
|
|
356
359
|
}
|
|
357
|
-
async function
|
|
360
|
+
async function j(r, e, t) {
|
|
358
361
|
if (e.has(r))
|
|
359
362
|
return e.get(r);
|
|
360
|
-
const n = t().then((o) => (
|
|
363
|
+
const n = t().then((o) => (E(o), o));
|
|
361
364
|
return e.set(r, n), n;
|
|
362
365
|
}
|
|
363
366
|
const ie = {
|
|
364
367
|
schema: "bundle-assets",
|
|
365
368
|
async resolveRef(r, e) {
|
|
366
369
|
y("bundleAssetsResolver resolveRef:", r);
|
|
367
|
-
const t =
|
|
368
|
-
return
|
|
369
|
-
const n = await
|
|
370
|
+
const t = $(r);
|
|
371
|
+
return j(r, e.refCache, async () => {
|
|
372
|
+
const n = await M(t, e), o = t.substring(0, t.lastIndexOf("/") + 1);
|
|
370
373
|
return n.map((a) => ({
|
|
371
374
|
$ref: `asset+${o}${a}`
|
|
372
375
|
}));
|
|
@@ -377,18 +380,21 @@ const ie = {
|
|
|
377
380
|
schema: "expo-runtime-branch",
|
|
378
381
|
async resolveRef(r, e) {
|
|
379
382
|
y("expoRuntimeBranchResolver resolveRef:", r);
|
|
380
|
-
const t =
|
|
381
|
-
return
|
|
382
|
-
|
|
383
|
-
|
|
383
|
+
const t = $(r), n = `${le}branches/${t}.json`;
|
|
384
|
+
return j(r, e.refCache, async () => {
|
|
385
|
+
const { release: o } = await M(n, e);
|
|
386
|
+
return {
|
|
387
|
+
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${o}/`
|
|
388
|
+
};
|
|
389
|
+
});
|
|
384
390
|
},
|
|
385
391
|
offlineMethod: "resolveRef"
|
|
386
392
|
}, fe = {
|
|
387
393
|
schema: "expo-runtime-get-branch",
|
|
388
394
|
async resolveRef(r, e) {
|
|
389
395
|
y("expoRuntimeGetBranchResolver resolveRef:", r);
|
|
390
|
-
const n = `https://${
|
|
391
|
-
return
|
|
396
|
+
const n = `https://${$(r)}.expofp.com/get-branch`;
|
|
397
|
+
return M(n, e);
|
|
392
398
|
},
|
|
393
399
|
offlineMethod: "resolveRef"
|
|
394
400
|
}, ue = {
|
|
@@ -398,11 +404,11 @@ const ie = {
|
|
|
398
404
|
// },
|
|
399
405
|
async resolveRef(r) {
|
|
400
406
|
y("expoRuntimeResolver resolveRef:", r);
|
|
401
|
-
const e =
|
|
407
|
+
const e = $(r), t = {
|
|
402
408
|
entry: { $ref: `asset+${e}expofp.js` },
|
|
403
409
|
assets: { $ref: `bundle-assets+${e}bundle.json` }
|
|
404
410
|
};
|
|
405
|
-
return
|
|
411
|
+
return E(t), t;
|
|
406
412
|
},
|
|
407
413
|
// async *makeOfflineRef(ref: string) {
|
|
408
414
|
// log('expoRuntimeResolver makeOfflineRef:', ref);
|
|
@@ -428,19 +434,19 @@ const ie = {
|
|
|
428
434
|
},
|
|
429
435
|
resolveRef(r, e) {
|
|
430
436
|
if (y("httpResolver resolveRef:", r), !this.canResolve(r)) throw new Error(`Unexpected ref in httpResolver: ${r}`);
|
|
431
|
-
return
|
|
437
|
+
return M(r, e);
|
|
432
438
|
},
|
|
433
439
|
offlineMethod: "resolveRef"
|
|
434
440
|
};
|
|
435
|
-
async function
|
|
441
|
+
async function k(r, e) {
|
|
436
442
|
const { globalVar: t, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = e;
|
|
437
|
-
we() ? (t && window[t] !== void 0 && delete window[t], await he(r, e.signal), t && await
|
|
443
|
+
we() ? (t && window[t] !== void 0 && delete window[t], await he(r, e.signal), t && await V(
|
|
438
444
|
() => window[t],
|
|
439
445
|
t,
|
|
440
446
|
n,
|
|
441
447
|
o,
|
|
442
448
|
e.signal
|
|
443
|
-
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await
|
|
449
|
+
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await V(
|
|
444
450
|
() => globalThis[t],
|
|
445
451
|
t,
|
|
446
452
|
n,
|
|
@@ -502,9 +508,9 @@ async function pe(r, e) {
|
|
|
502
508
|
l === void 0 ? delete o.window : o.window = l;
|
|
503
509
|
}
|
|
504
510
|
}
|
|
505
|
-
function
|
|
511
|
+
function V(r, e, t, n, o) {
|
|
506
512
|
return new Promise((l, a) => {
|
|
507
|
-
const
|
|
513
|
+
const w = Date.now(), c = () => {
|
|
508
514
|
a(new Error("Wait for global aborted"));
|
|
509
515
|
};
|
|
510
516
|
if (o != null && o.aborted) {
|
|
@@ -512,7 +518,7 @@ function q(r, e, t, n, o) {
|
|
|
512
518
|
return;
|
|
513
519
|
}
|
|
514
520
|
o == null || o.addEventListener("abort", c, { once: !0 });
|
|
515
|
-
const
|
|
521
|
+
const h = () => {
|
|
516
522
|
if (o != null && o.aborted)
|
|
517
523
|
return a(new Error("Wait for global aborted"));
|
|
518
524
|
try {
|
|
@@ -520,11 +526,11 @@ function q(r, e, t, n, o) {
|
|
|
520
526
|
return o == null || o.removeEventListener("abort", c), l();
|
|
521
527
|
} catch {
|
|
522
528
|
}
|
|
523
|
-
if (Date.now() -
|
|
529
|
+
if (Date.now() - w >= t)
|
|
524
530
|
return o == null || o.removeEventListener("abort", c), a(new Error(`Timed out after ${t} ms waiting for global "${e}"`));
|
|
525
|
-
setTimeout(
|
|
531
|
+
setTimeout(h, n);
|
|
526
532
|
};
|
|
527
|
-
|
|
533
|
+
h();
|
|
528
534
|
});
|
|
529
535
|
}
|
|
530
536
|
const me = {
|
|
@@ -532,45 +538,45 @@ const me = {
|
|
|
532
538
|
resolveRef(r, e) {
|
|
533
539
|
y("legacyAssetUrlsResolver resolveRef:", r);
|
|
534
540
|
const t = e.signal;
|
|
535
|
-
return
|
|
536
|
-
var
|
|
537
|
-
const n =
|
|
541
|
+
return j(r, e.refCache, async () => {
|
|
542
|
+
var m, C, F, _, R;
|
|
543
|
+
const n = $(r), o = `${n}version.js`;
|
|
538
544
|
try {
|
|
539
|
-
await
|
|
545
|
+
await k(o, {
|
|
540
546
|
globalVar: "__fpDataVersion",
|
|
541
547
|
timeoutMs: 3e4,
|
|
542
548
|
signal: t
|
|
543
|
-
}), (
|
|
549
|
+
}), (m = e.importCallback) == null || m.call(e, o, "script");
|
|
544
550
|
} catch {
|
|
545
551
|
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
546
552
|
}
|
|
547
|
-
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}
|
|
553
|
+
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`, w = k(a, {
|
|
548
554
|
globalVar: "__data",
|
|
549
555
|
signal: t
|
|
550
556
|
});
|
|
551
|
-
(
|
|
552
|
-
const
|
|
557
|
+
(C = e.importCallback) == null || C.call(e, a, "script");
|
|
558
|
+
const c = `${n}wf.data.js?v=${l}`, h = k(c, {
|
|
553
559
|
globalVar: "__wfData",
|
|
554
560
|
signal: t
|
|
555
561
|
}).then(() => {
|
|
556
|
-
var
|
|
557
|
-
(
|
|
562
|
+
var v;
|
|
563
|
+
(v = e.importCallback) == null || v.call(e, c, "script");
|
|
558
564
|
}).catch(() => {
|
|
559
|
-
console.warn(`Could not load wf.data.js at ${
|
|
565
|
+
console.warn(`Could not load wf.data.js at ${c}, proceeding without it`);
|
|
560
566
|
});
|
|
561
567
|
delete globalThis.__fpLayers;
|
|
562
|
-
const
|
|
568
|
+
const f = `${n}fp.svg.js?v=${l}`, s = k(f, {
|
|
563
569
|
globalVar: "__fp",
|
|
564
570
|
signal: t
|
|
565
571
|
});
|
|
566
|
-
(
|
|
567
|
-
const
|
|
568
|
-
for (const
|
|
569
|
-
const
|
|
570
|
-
(
|
|
572
|
+
(F = e.importCallback) == null || F.call(e, f, "script"), await Promise.all([w, h, s]);
|
|
573
|
+
const u = ((_ = globalThis.__fpLayers) != null ? _ : []).map((v) => `fp.svg.${v.name}.js`);
|
|
574
|
+
for (const v of u) {
|
|
575
|
+
const b = `${n}${v}?v=${l}`;
|
|
576
|
+
(R = e.importCallback) == null || R.call(e, b, "script");
|
|
571
577
|
}
|
|
572
|
-
const
|
|
573
|
-
return { ...[
|
|
578
|
+
const d = globalThis.__data || {};
|
|
579
|
+
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((v, b) => (v[b] = { $ref: `asset+${n}${b}?v=${l}` }, v), {}), ...ye(n, d) };
|
|
574
580
|
});
|
|
575
581
|
},
|
|
576
582
|
offlineMethod: "resolveRef"
|
|
@@ -582,20 +588,20 @@ function ye(r, e) {
|
|
|
582
588
|
typeof a == "string" && a.length > 0 && t.add(a);
|
|
583
589
|
}
|
|
584
590
|
return n(e.logo), (o = e.exhibitors) == null || o.forEach((a) => {
|
|
585
|
-
var
|
|
586
|
-
n(a.logo), (
|
|
591
|
+
var w;
|
|
592
|
+
n(a.logo), (w = a.gallery) == null || w.forEach((c) => n(c));
|
|
587
593
|
}), (l = e.events) == null || l.forEach((a) => {
|
|
588
|
-
var
|
|
589
|
-
n(a.logoFile), (
|
|
594
|
+
var w;
|
|
595
|
+
n(a.logoFile), (w = a.speakers) == null || w.forEach((c) => {
|
|
590
596
|
n(c.photoFile);
|
|
591
597
|
});
|
|
592
|
-
}), Array.from(t).reduce((a,
|
|
598
|
+
}), Array.from(t).reduce((a, w) => (a[w] = { $ref: `asset+${r}${w}` }, a), {});
|
|
593
599
|
}
|
|
594
600
|
const Ce = {
|
|
595
601
|
schema: "legacy-data",
|
|
596
602
|
resolveRef(r, e) {
|
|
597
|
-
return y("legacyDataResolver resolveRef:", r),
|
|
598
|
-
const t =
|
|
603
|
+
return y("legacyDataResolver resolveRef:", r), j(r, e.refCache, async () => {
|
|
604
|
+
const t = $(r);
|
|
599
605
|
return {
|
|
600
606
|
_to_remove_for_offline_to_work_dataUrlBase: t,
|
|
601
607
|
legacyAssetUrls: { $ref: `legacy-asset-urls+${t}` }
|
|
@@ -613,7 +619,7 @@ const Ce = {
|
|
|
613
619
|
Ce,
|
|
614
620
|
me
|
|
615
621
|
], be = /* @__PURE__ */ new Map();
|
|
616
|
-
async function
|
|
622
|
+
async function J(r, e, t) {
|
|
617
623
|
y("Resolving:", e, "of", r, t), typeof window < "u" && (window.__lastResolveObject = r);
|
|
618
624
|
const n = {
|
|
619
625
|
importCallback: t == null ? void 0 : t.importCallback,
|
|
@@ -633,48 +639,48 @@ async function P(r, e, t) {
|
|
|
633
639
|
if (t != null && t.mutate) {
|
|
634
640
|
o.unshift("root");
|
|
635
641
|
const l = { root: r };
|
|
636
|
-
await
|
|
642
|
+
await Z(l, o, 0, n), Ee(r, l.root);
|
|
637
643
|
} else
|
|
638
|
-
return await
|
|
644
|
+
return await q(r, o, 0, n);
|
|
639
645
|
}
|
|
640
|
-
async function
|
|
646
|
+
async function Z(r, e, t, n) {
|
|
641
647
|
const o = e[t];
|
|
642
648
|
if (await ge(r, o, n), t != e.length - 1) {
|
|
643
649
|
if (r[o] === null || typeof r[o] != "object")
|
|
644
650
|
throw new Error(
|
|
645
651
|
`Cannot resolve path, encountered non-object at part '${e.slice(1).join("/")}', index ${t - 1}'`
|
|
646
652
|
);
|
|
647
|
-
return await
|
|
653
|
+
return await Z(r[o], e, t + 1, n);
|
|
648
654
|
}
|
|
649
655
|
}
|
|
650
656
|
async function ge(r, e, t) {
|
|
651
657
|
y("resolveObjectMutate:", r, e);
|
|
652
658
|
let n = r[e];
|
|
653
|
-
const o = await
|
|
659
|
+
const o = await D(n, t);
|
|
654
660
|
o !== void 0 && (r[e] = o);
|
|
655
661
|
}
|
|
656
|
-
async function
|
|
662
|
+
async function q(r, e, t, n) {
|
|
657
663
|
if (t === e.length)
|
|
658
|
-
return await
|
|
664
|
+
return await D(r, n);
|
|
659
665
|
if (r === null || typeof r != "object")
|
|
660
666
|
throw new Error(
|
|
661
667
|
`Cannot resolve path, encountered non-object at part '${e.join("/")}', index ${t}'`
|
|
662
668
|
);
|
|
663
669
|
const o = e[t];
|
|
664
670
|
let l = r[o];
|
|
665
|
-
return l === void 0 && (l = (await
|
|
671
|
+
return l === void 0 && (l = (await D(r, n))[o]), await q(l, e, t + 1, n);
|
|
666
672
|
}
|
|
667
|
-
async function
|
|
673
|
+
async function D(r, e) {
|
|
668
674
|
y("resolveObject:", r);
|
|
669
675
|
let t = r;
|
|
670
676
|
do {
|
|
671
677
|
if (typeof t != "object" || t === null || !("$ref" in t))
|
|
672
678
|
return t;
|
|
673
|
-
const n = ve.filter((l) =>
|
|
679
|
+
const n = ve.filter((l) => S(l, t.$ref));
|
|
674
680
|
if (n.length === 0) {
|
|
675
681
|
if (t.$ref)
|
|
676
682
|
throw new Error(`No resolver found for ref: ${t.$ref}`);
|
|
677
|
-
return
|
|
683
|
+
return E(t), t;
|
|
678
684
|
}
|
|
679
685
|
if (n.length > 1)
|
|
680
686
|
throw new Error(`Multiple resolvers can resolve ref: ${t.$ref}`);
|
|
@@ -683,11 +689,11 @@ async function W(r, e) {
|
|
|
683
689
|
} while (!0);
|
|
684
690
|
}
|
|
685
691
|
async function Fe(r, e, t) {
|
|
686
|
-
if (!
|
|
692
|
+
if (!S(r, e))
|
|
687
693
|
throw new Error(`Unexpected ref: ${e}`);
|
|
688
694
|
return r.resolveRef(e, t);
|
|
689
695
|
}
|
|
690
|
-
function
|
|
696
|
+
function S(r, e) {
|
|
691
697
|
if (r.canResolve)
|
|
692
698
|
return r.canResolve(e);
|
|
693
699
|
if (r.schema)
|
|
@@ -701,7 +707,7 @@ function Re(r, e) {
|
|
|
701
707
|
return !0;
|
|
702
708
|
return !1;
|
|
703
709
|
}
|
|
704
|
-
function
|
|
710
|
+
function $(r) {
|
|
705
711
|
if (r.startsWith("http://") || r.startsWith("https://"))
|
|
706
712
|
return r;
|
|
707
713
|
const e = r.indexOf("+http://"), t = r.indexOf("+https://");
|
|
@@ -716,31 +722,28 @@ function F(r) {
|
|
|
716
722
|
}
|
|
717
723
|
typeof window < "u" && (window.__debugResolve = async function(e, t, n) {
|
|
718
724
|
let o, l, a;
|
|
719
|
-
return typeof e == "string" ? (o = window.__lastResolveObject, l = e, a = t) : (o = e, l = t, a = n), await
|
|
725
|
+
return typeof e == "string" ? (o = window.__lastResolveObject, l = e, a = t) : (o = e, l = t, a = n), await J(o, l, a);
|
|
720
726
|
});
|
|
721
|
-
function
|
|
727
|
+
function I(r) {
|
|
722
728
|
return async (e, ...t) => {
|
|
723
729
|
try {
|
|
724
|
-
const l = (await import(await
|
|
730
|
+
const l = (await import(await J(e, "/runtime/entry")))[r];
|
|
725
731
|
return l(e, ...t);
|
|
726
732
|
} catch (n) {
|
|
727
733
|
throw console.error("efp-loader", `Error when trying to import and call "${r}":`, n), n;
|
|
728
734
|
}
|
|
729
735
|
};
|
|
730
736
|
}
|
|
731
|
-
function
|
|
732
|
-
N(...r);
|
|
733
|
-
}
|
|
734
|
-
function O(r) {
|
|
737
|
+
function E(r) {
|
|
735
738
|
if (r === null || typeof r != "object") return r;
|
|
736
739
|
Object.freeze(r);
|
|
737
740
|
for (const e of Object.keys(r)) {
|
|
738
741
|
const t = r[e];
|
|
739
|
-
typeof t == "object" && t !== null && !Object.isFrozen(t) &&
|
|
742
|
+
typeof t == "object" && t !== null && !Object.isFrozen(t) && E(t);
|
|
740
743
|
}
|
|
741
744
|
return r;
|
|
742
745
|
}
|
|
743
|
-
function
|
|
746
|
+
function G(r) {
|
|
744
747
|
return "structuredClone" in globalThis ? globalThis.structuredClone(r) : JSON.parse(JSON.stringify(r));
|
|
745
748
|
}
|
|
746
749
|
function $e(r, e) {
|
|
@@ -750,12 +753,12 @@ function $e(r, e) {
|
|
|
750
753
|
if (Array.isArray(e))
|
|
751
754
|
throw new Error("Cannot merge arrays");
|
|
752
755
|
const t = Object.keys(e).filter((o) => o !== "$ref");
|
|
753
|
-
if (t.length === 0) return
|
|
756
|
+
if (t.length === 0) return G(r);
|
|
754
757
|
if (Array.isArray(r))
|
|
755
758
|
throw new Error("Cannot merge into arrays");
|
|
756
759
|
if (r === null || typeof r != "object")
|
|
757
760
|
throw new Error("Cannot merge into non-object target");
|
|
758
|
-
const n =
|
|
761
|
+
const n = G({ ...r });
|
|
759
762
|
for (const o of t)
|
|
760
763
|
n[o] = e[o];
|
|
761
764
|
return n;
|
|
@@ -783,7 +786,7 @@ function Ee(r, e) {
|
|
|
783
786
|
async function _e(r, e, t) {
|
|
784
787
|
t = t || {};
|
|
785
788
|
for (const n of e)
|
|
786
|
-
await
|
|
789
|
+
await J(r, n, { ...t, mutate: !0 });
|
|
787
790
|
}
|
|
788
791
|
typeof window < "u" && (window.__debugMutateManifest = _e);
|
|
789
792
|
async function Oe(r) {
|
|
@@ -791,7 +794,7 @@ async function Oe(r) {
|
|
|
791
794
|
return await e(r);
|
|
792
795
|
}
|
|
793
796
|
async function Ae(r) {
|
|
794
|
-
const { downloadZip: e } = await import("./downloadZip-
|
|
797
|
+
const { downloadZip: e } = await import("./downloadZip-CohB2rQN.js");
|
|
795
798
|
return await e(r);
|
|
796
799
|
}
|
|
797
800
|
async function ke(r) {
|
|
@@ -801,29 +804,29 @@ async function ke(r) {
|
|
|
801
804
|
console.info("Offline data: ", t.manifest);
|
|
802
805
|
}
|
|
803
806
|
typeof window < "u" && (window.__debugDownloadZip = Ae, window.__debugMakeOfflineBundle = Oe, window.__debugLogOfflineManifestFiles = ke);
|
|
804
|
-
const
|
|
805
|
-
|
|
806
|
-
const
|
|
807
|
+
const B = globalThis.__efpLoaderBuildInfo;
|
|
808
|
+
B ? y("Initialized", { version: B[0], builtAt: B[1] }) : y("Initialized");
|
|
809
|
+
const je = I("mount"), Ie = I("load"), Le = I("initialize");
|
|
807
810
|
async function Te(r, e, ...t) {
|
|
808
|
-
return await
|
|
811
|
+
return await I(r)(e, ...t);
|
|
809
812
|
}
|
|
810
813
|
export {
|
|
811
|
-
|
|
814
|
+
S as a,
|
|
812
815
|
$e as b,
|
|
813
|
-
|
|
816
|
+
Me as c,
|
|
814
817
|
Te as callFunction_Experimental,
|
|
815
|
-
|
|
818
|
+
G as d,
|
|
816
819
|
Ae as downloadZip,
|
|
817
820
|
Fe as e,
|
|
818
|
-
|
|
821
|
+
Q as g,
|
|
819
822
|
Le as initialize,
|
|
820
823
|
y as l,
|
|
821
824
|
Ie as load,
|
|
822
825
|
Oe as makeOfflineBundle,
|
|
823
|
-
|
|
826
|
+
je as mount,
|
|
824
827
|
_e as mutateManifest,
|
|
825
|
-
|
|
828
|
+
$ as p,
|
|
826
829
|
ve as r,
|
|
827
|
-
|
|
830
|
+
J as resolve
|
|
828
831
|
};
|
|
829
832
|
//# sourceMappingURL=bundle.js.map
|