@expofp/loader 1.0.78 → 1.0.79
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 +442 -529
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/bundle/fetch-retry.umd-g1itNdNw.js +115 -0
- package/dist/bundle/fetch-retry.umd-g1itNdNw.js.map +1 -0
- package/dist/esm/fetch.d.ts +1 -0
- package/dist/esm/fetch.js +14 -0
- package/dist/esm/importJson.js +2 -0
- package/dist/esm/loadScript.js +2 -3
- package/package.json +1 -1
package/dist/bundle/bundle.js
CHANGED
|
@@ -1,192 +1,192 @@
|
|
|
1
|
-
window.__efpLoaderBuildInfo = ["1.0.
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
window.__efpLoaderBuildInfo = ["1.0.79", "2025-12-16T22:40:09.987Z"];
|
|
2
|
+
var We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
+
function re(r) {
|
|
4
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
5
5
|
}
|
|
6
|
-
var _ = { exports: {} },
|
|
6
|
+
var _ = { exports: {} }, B, P;
|
|
7
7
|
function te() {
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
return
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
8
|
+
if (P) return B;
|
|
9
|
+
P = 1;
|
|
10
|
+
var r = 1e3, e = r * 60, t = e * 60, n = t * 24, o = n * 7, l = n * 365.25;
|
|
11
|
+
B = function(f, s) {
|
|
12
|
+
s = s || {};
|
|
13
|
+
var i = typeof f;
|
|
14
|
+
if (i === "string" && f.length > 0)
|
|
15
|
+
return a(f);
|
|
16
|
+
if (i === "number" && isFinite(f))
|
|
17
|
+
return s.long ? c(f) : h(f);
|
|
18
18
|
throw new Error(
|
|
19
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(
|
|
19
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(f)
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
var
|
|
25
|
-
|
|
22
|
+
function a(f) {
|
|
23
|
+
if (f = String(f), !(f.length > 100)) {
|
|
24
|
+
var s = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
25
|
+
f
|
|
26
26
|
);
|
|
27
|
-
if (
|
|
28
|
-
var
|
|
27
|
+
if (s) {
|
|
28
|
+
var i = parseFloat(s[1]), u = (s[2] || "ms").toLowerCase();
|
|
29
29
|
switch (u) {
|
|
30
30
|
case "years":
|
|
31
31
|
case "year":
|
|
32
32
|
case "yrs":
|
|
33
33
|
case "yr":
|
|
34
34
|
case "y":
|
|
35
|
-
return
|
|
35
|
+
return i * l;
|
|
36
36
|
case "weeks":
|
|
37
37
|
case "week":
|
|
38
38
|
case "w":
|
|
39
|
-
return
|
|
39
|
+
return i * o;
|
|
40
40
|
case "days":
|
|
41
41
|
case "day":
|
|
42
42
|
case "d":
|
|
43
|
-
return
|
|
43
|
+
return i * n;
|
|
44
44
|
case "hours":
|
|
45
45
|
case "hour":
|
|
46
46
|
case "hrs":
|
|
47
47
|
case "hr":
|
|
48
48
|
case "h":
|
|
49
|
-
return
|
|
49
|
+
return i * t;
|
|
50
50
|
case "minutes":
|
|
51
51
|
case "minute":
|
|
52
52
|
case "mins":
|
|
53
53
|
case "min":
|
|
54
54
|
case "m":
|
|
55
|
-
return
|
|
55
|
+
return i * e;
|
|
56
56
|
case "seconds":
|
|
57
57
|
case "second":
|
|
58
58
|
case "secs":
|
|
59
59
|
case "sec":
|
|
60
60
|
case "s":
|
|
61
|
-
return
|
|
61
|
+
return i * r;
|
|
62
62
|
case "milliseconds":
|
|
63
63
|
case "millisecond":
|
|
64
64
|
case "msecs":
|
|
65
65
|
case "msec":
|
|
66
66
|
case "ms":
|
|
67
|
-
return
|
|
67
|
+
return i;
|
|
68
68
|
default:
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
return
|
|
74
|
+
function h(f) {
|
|
75
|
+
var s = Math.abs(f);
|
|
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
|
-
function
|
|
79
|
-
var
|
|
80
|
-
return
|
|
78
|
+
function c(f) {
|
|
79
|
+
var s = Math.abs(f);
|
|
80
|
+
return s >= n ? d(f, s, n, "day") : s >= t ? d(f, s, t, "hour") : s >= e ? d(f, s, e, "minute") : s >= r ? d(f, s, r, "second") : f + " ms";
|
|
81
81
|
}
|
|
82
|
-
function d(
|
|
83
|
-
var
|
|
84
|
-
return Math.round(
|
|
82
|
+
function d(f, s, i, u) {
|
|
83
|
+
var w = s >= i * 1.5;
|
|
84
|
+
return Math.round(f / i) + " " + u + (w ? "s" : "");
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return B;
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var D, z;
|
|
89
89
|
function ne() {
|
|
90
|
-
if (z) return
|
|
90
|
+
if (z) return D;
|
|
91
91
|
z = 1;
|
|
92
|
-
function e
|
|
93
|
-
n.debug = n, n.default = n, n.coerce = d, n.disable =
|
|
94
|
-
n[
|
|
92
|
+
function r(e) {
|
|
93
|
+
n.debug = n, n.default = n, n.coerce = d, n.disable = h, n.enable = l, n.enabled = c, n.humanize = te(), n.destroy = f, Object.keys(e).forEach((s) => {
|
|
94
|
+
n[s] = e[s];
|
|
95
95
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
96
|
-
function t(
|
|
97
|
-
let
|
|
98
|
-
for (let u = 0; u <
|
|
99
|
-
|
|
100
|
-
return n.colors[Math.abs(
|
|
96
|
+
function t(s) {
|
|
97
|
+
let i = 0;
|
|
98
|
+
for (let u = 0; u < s.length; u++)
|
|
99
|
+
i = (i << 5) - i + s.charCodeAt(u), i |= 0;
|
|
100
|
+
return n.colors[Math.abs(i) % n.colors.length];
|
|
101
101
|
}
|
|
102
102
|
n.selectColor = t;
|
|
103
|
-
function n(
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
103
|
+
function n(s) {
|
|
104
|
+
let i, u = null, w, F;
|
|
105
|
+
function m(...y) {
|
|
106
|
+
if (!m.enabled)
|
|
107
107
|
return;
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
let
|
|
111
|
-
|
|
112
|
-
if (
|
|
108
|
+
const v = m, R = Number(/* @__PURE__ */ new Date()), O = R - (i || R);
|
|
109
|
+
v.diff = O, v.prev = i, v.curr = R, i = R, y[0] = n.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
|
|
110
|
+
let $ = 0;
|
|
111
|
+
y[0] = y[0].replace(/%([a-zA-Z%])/g, (g, x) => {
|
|
112
|
+
if (g === "%%")
|
|
113
113
|
return "%";
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
if (typeof
|
|
117
|
-
const
|
|
118
|
-
|
|
114
|
+
$++;
|
|
115
|
+
const N = n.formatters[x];
|
|
116
|
+
if (typeof N == "function") {
|
|
117
|
+
const ee = y[$];
|
|
118
|
+
g = N.call(v, ee), y.splice($, 1), $--;
|
|
119
119
|
}
|
|
120
|
-
return
|
|
121
|
-
}), n.formatArgs.call(
|
|
120
|
+
return g;
|
|
121
|
+
}), n.formatArgs.call(v, y), (v.log || n.log).apply(v, y);
|
|
122
122
|
}
|
|
123
|
-
return
|
|
123
|
+
return m.namespace = s, m.useColors = n.useColors(), m.color = n.selectColor(s), m.extend = o, m.destroy = n.destroy, Object.defineProperty(m, "enabled", {
|
|
124
124
|
enumerable: !0,
|
|
125
125
|
configurable: !1,
|
|
126
|
-
get: () => u !== null ? u : (
|
|
127
|
-
set: (
|
|
128
|
-
u =
|
|
126
|
+
get: () => u !== null ? u : (w !== n.namespaces && (w = n.namespaces, F = n.enabled(s)), F),
|
|
127
|
+
set: (y) => {
|
|
128
|
+
u = y;
|
|
129
129
|
}
|
|
130
|
-
}), typeof n.init == "function" && n.init(
|
|
130
|
+
}), typeof n.init == "function" && n.init(m), m;
|
|
131
131
|
}
|
|
132
|
-
function o(
|
|
133
|
-
const u = n(this.namespace + (typeof
|
|
132
|
+
function o(s, i) {
|
|
133
|
+
const u = n(this.namespace + (typeof i > "u" ? ":" : i) + s);
|
|
134
134
|
return u.log = this.log, u;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
n.save(
|
|
138
|
-
const
|
|
139
|
-
for (const u of
|
|
136
|
+
function l(s) {
|
|
137
|
+
n.save(s), n.namespaces = s, n.names = [], n.skips = [];
|
|
138
|
+
const i = (typeof s == "string" ? s : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
139
|
+
for (const u of i)
|
|
140
140
|
u[0] === "-" ? n.skips.push(u.slice(1)) : n.names.push(u);
|
|
141
141
|
}
|
|
142
|
-
function s
|
|
143
|
-
let u = 0,
|
|
144
|
-
for (; u <
|
|
145
|
-
if (
|
|
146
|
-
|
|
147
|
-
else if (
|
|
148
|
-
|
|
142
|
+
function a(s, i) {
|
|
143
|
+
let u = 0, w = 0, F = -1, m = 0;
|
|
144
|
+
for (; u < s.length; )
|
|
145
|
+
if (w < i.length && (i[w] === s[u] || i[w] === "*"))
|
|
146
|
+
i[w] === "*" ? (F = w, m = u, w++) : (u++, w++);
|
|
147
|
+
else if (F !== -1)
|
|
148
|
+
w = F + 1, m++, u = m;
|
|
149
149
|
else
|
|
150
150
|
return !1;
|
|
151
|
-
for (;
|
|
152
|
-
|
|
153
|
-
return
|
|
151
|
+
for (; w < i.length && i[w] === "*"; )
|
|
152
|
+
w++;
|
|
153
|
+
return w === i.length;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
const
|
|
155
|
+
function h() {
|
|
156
|
+
const s = [
|
|
157
157
|
...n.names,
|
|
158
|
-
...n.skips.map((
|
|
158
|
+
...n.skips.map((i) => "-" + i)
|
|
159
159
|
].join(",");
|
|
160
|
-
return n.enable(""),
|
|
160
|
+
return n.enable(""), s;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
for (const
|
|
164
|
-
if (s
|
|
162
|
+
function c(s) {
|
|
163
|
+
for (const i of n.skips)
|
|
164
|
+
if (a(s, i))
|
|
165
165
|
return !1;
|
|
166
|
-
for (const
|
|
167
|
-
if (s
|
|
166
|
+
for (const i of n.names)
|
|
167
|
+
if (a(s, i))
|
|
168
168
|
return !0;
|
|
169
169
|
return !1;
|
|
170
170
|
}
|
|
171
|
-
function d(
|
|
172
|
-
return
|
|
171
|
+
function d(s) {
|
|
172
|
+
return s instanceof Error ? s.stack || s.message : s;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function f() {
|
|
175
175
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
176
176
|
}
|
|
177
177
|
return n.enable(n.load()), n;
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return D = r, D;
|
|
180
180
|
}
|
|
181
|
-
var
|
|
181
|
+
var Z;
|
|
182
182
|
function oe() {
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
let
|
|
183
|
+
return Z || (Z = 1, (function(r, e) {
|
|
184
|
+
e.formatArgs = n, e.save = o, e.load = l, e.useColors = t, e.storage = a(), e.destroy = /* @__PURE__ */ (() => {
|
|
185
|
+
let c = !1;
|
|
186
186
|
return () => {
|
|
187
|
-
|
|
187
|
+
c || (c = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
188
188
|
};
|
|
189
|
-
})(),
|
|
189
|
+
})(), e.colors = [
|
|
190
190
|
"#0000CC",
|
|
191
191
|
"#0000FF",
|
|
192
192
|
"#0033CC",
|
|
@@ -269,50 +269,50 @@ function oe() {
|
|
|
269
269
|
return !0;
|
|
270
270
|
if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
|
|
271
271
|
return !1;
|
|
272
|
-
let
|
|
272
|
+
let c;
|
|
273
273
|
return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
274
274
|
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
275
275
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
276
|
-
typeof navigator < "u" && navigator.userAgent && (
|
|
276
|
+
typeof navigator < "u" && navigator.userAgent && (c = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(c[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
277
277
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
278
278
|
}
|
|
279
|
-
function n(
|
|
280
|
-
if (
|
|
279
|
+
function n(c) {
|
|
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
282
|
const d = "color: " + this.color;
|
|
283
|
-
|
|
284
|
-
let
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}),
|
|
283
|
+
c.splice(1, 0, d, "color: inherit");
|
|
284
|
+
let f = 0, s = 0;
|
|
285
|
+
c[0].replace(/%[a-zA-Z%]/g, (i) => {
|
|
286
|
+
i !== "%%" && (f++, i === "%c" && (s = f));
|
|
287
|
+
}), c.splice(s, 0, d);
|
|
288
288
|
}
|
|
289
|
-
|
|
289
|
+
e.log = console.debug || console.log || (() => {
|
|
290
290
|
});
|
|
291
|
-
function o(
|
|
291
|
+
function o(c) {
|
|
292
292
|
try {
|
|
293
|
-
|
|
293
|
+
c ? e.storage.setItem("debug", c) : e.storage.removeItem("debug");
|
|
294
294
|
} catch {
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
let
|
|
297
|
+
function l() {
|
|
298
|
+
let c;
|
|
299
299
|
try {
|
|
300
|
-
|
|
300
|
+
c = e.storage.getItem("debug") || e.storage.getItem("DEBUG");
|
|
301
301
|
} catch {
|
|
302
302
|
}
|
|
303
|
-
return !
|
|
303
|
+
return !c && typeof process < "u" && "env" in process && (c = process.env.DEBUG), c;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function a() {
|
|
306
306
|
try {
|
|
307
307
|
return localStorage;
|
|
308
308
|
} catch {
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
const { formatters:
|
|
313
|
-
|
|
311
|
+
r.exports = ne()(e);
|
|
312
|
+
const { formatters: h } = r.exports;
|
|
313
|
+
h.j = function(c) {
|
|
314
314
|
try {
|
|
315
|
-
return JSON.stringify(
|
|
315
|
+
return JSON.stringify(c);
|
|
316
316
|
} catch (d) {
|
|
317
317
|
return "[UnexpectedJSONParseError]: " + d.message;
|
|
318
318
|
}
|
|
@@ -320,92 +320,96 @@ function oe() {
|
|
|
320
320
|
})(_, _.exports)), _.exports;
|
|
321
321
|
}
|
|
322
322
|
var se = oe();
|
|
323
|
-
const I = /* @__PURE__ */
|
|
324
|
-
function
|
|
325
|
-
ae(...
|
|
323
|
+
const I = /* @__PURE__ */ re(se), ae = I("efp:loader");
|
|
324
|
+
function p(...r) {
|
|
325
|
+
ae(...r);
|
|
326
326
|
}
|
|
327
|
-
function ie(
|
|
328
|
-
return
|
|
327
|
+
function ie(r) {
|
|
328
|
+
return p("assetResolver resolveRef:", r), b(r);
|
|
329
329
|
}
|
|
330
|
-
const
|
|
330
|
+
const le = {
|
|
331
331
|
schema: "asset",
|
|
332
|
-
resolveRef: async (
|
|
332
|
+
resolveRef: async (r) => ie(r),
|
|
333
333
|
offlineFunc: "localizeRef"
|
|
334
334
|
};
|
|
335
335
|
let A;
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
336
|
+
const G = async function(...e) {
|
|
337
|
+
return A || (typeof window < "u" && typeof document < "u" ? A = window.fetch.bind(window) : A = (await import("./fetch-retry.umd-g1itNdNw.js").then((o) => o.f)).default(globalThis.fetch)), A.apply(null, e);
|
|
338
|
+
};
|
|
339
|
+
let k;
|
|
340
|
+
const ce = /* @__PURE__ */ new WeakSet(), S = new Function("url", 'return import(url, { with: { type: "json" } });');
|
|
341
|
+
async function M(r, e) {
|
|
342
|
+
var n, o, l;
|
|
343
|
+
if ((n = e.preResolvedRefs) != null && n.has(r))
|
|
344
|
+
return p("importJson: using preResolvedRefs for", r), e.preResolvedRefs.get(r);
|
|
345
|
+
if (k === void 0 && !e.forceFetch)
|
|
342
346
|
try {
|
|
343
|
-
await
|
|
347
|
+
await S(r), k = !1;
|
|
344
348
|
} catch {
|
|
345
|
-
|
|
349
|
+
p("importJson: dynamic import not available, falling back to fetch"), k = !0;
|
|
346
350
|
}
|
|
347
351
|
let t;
|
|
348
|
-
return !
|
|
352
|
+
return !k && !e.forceFetch ? (t = (await S(r)).default, (o = e.importCallback) == null || o.call(e, r, "json")) : (p("importJson: fetch", r), t = await fe(r, e.refCache, e.signal || null), (l = e.importCallback) == null || l.call(e, r, "json")), ce.has(t) || E(t), t;
|
|
349
353
|
}
|
|
350
|
-
async function
|
|
351
|
-
const n = "__loadJson__" +
|
|
352
|
-
if (
|
|
353
|
-
return
|
|
354
|
+
async function fe(r, e, t) {
|
|
355
|
+
const n = "__loadJson__" + r;
|
|
356
|
+
if (e.has(n))
|
|
357
|
+
return e.get(n);
|
|
354
358
|
const o = (async function() {
|
|
355
|
-
const
|
|
356
|
-
if (!
|
|
357
|
-
throw new Error(`Failed to fetch JSON from ${
|
|
358
|
-
return await
|
|
359
|
+
const a = await G(r, { signal: t });
|
|
360
|
+
if (!a.ok)
|
|
361
|
+
throw new Error(`Failed to fetch JSON from ${r}`);
|
|
362
|
+
return await a.json();
|
|
359
363
|
})();
|
|
360
|
-
return
|
|
364
|
+
return e.set(n, o), o;
|
|
361
365
|
}
|
|
362
|
-
async function
|
|
363
|
-
if (
|
|
364
|
-
return
|
|
365
|
-
const n = t().then((o) => (
|
|
366
|
-
return
|
|
366
|
+
async function L(r, e, t) {
|
|
367
|
+
if (e.has(r))
|
|
368
|
+
return e.get(r);
|
|
369
|
+
const n = t().then((o) => (E(o), o));
|
|
370
|
+
return e.set(r, n), n;
|
|
367
371
|
}
|
|
368
372
|
const ue = {
|
|
369
373
|
schema: "bundle-assets",
|
|
370
|
-
async resolveRef(
|
|
371
|
-
|
|
372
|
-
const t =
|
|
373
|
-
return
|
|
374
|
-
const n = await
|
|
375
|
-
return n.map((
|
|
376
|
-
$ref: `asset+${o}${
|
|
374
|
+
async resolveRef(r, e) {
|
|
375
|
+
p("bundleAssetsResolver resolveRef:", r);
|
|
376
|
+
const t = b(r);
|
|
377
|
+
return L(r, e.refCache, async () => {
|
|
378
|
+
const n = await M(t, e), o = t.substring(0, t.lastIndexOf("/") + 1);
|
|
379
|
+
return n.map((a) => ({
|
|
380
|
+
$ref: `asset+${o}${a}`
|
|
377
381
|
}));
|
|
378
382
|
});
|
|
379
383
|
},
|
|
380
384
|
offlineFunc: "localizeRef"
|
|
381
|
-
}, de = I("efp:loader:resolver:cssTextAsset"),
|
|
382
|
-
schema:
|
|
383
|
-
resolveRef(
|
|
384
|
-
return de("cssTextAssetResolver resolveRef:",
|
|
385
|
+
}, de = I("efp:loader:resolver:cssTextAsset"), we = "css-text-asset", he = {
|
|
386
|
+
schema: we,
|
|
387
|
+
resolveRef(r) {
|
|
388
|
+
return de("cssTextAssetResolver resolveRef:", r), Promise.resolve(b(r));
|
|
385
389
|
},
|
|
386
|
-
offlineFunc: async function* (
|
|
390
|
+
offlineFunc: async function* (r, e) {
|
|
387
391
|
const { offlineFunc: t } = await import("./cssTextAssetResolver.offlineFunc-CWvHnYni.js");
|
|
388
|
-
return yield* t(
|
|
392
|
+
return yield* t(r, e);
|
|
389
393
|
}
|
|
390
|
-
},
|
|
394
|
+
}, pe = "https://efp-runtime.expofp.com/", me = {
|
|
391
395
|
schema: "expo-runtime-branch",
|
|
392
|
-
async resolveRef(
|
|
393
|
-
|
|
394
|
-
const t =
|
|
395
|
-
return
|
|
396
|
-
const { release: o } = await
|
|
396
|
+
async resolveRef(r, e) {
|
|
397
|
+
p("expoRuntimeBranchResolver resolveRef:", r);
|
|
398
|
+
const t = b(r), n = `${pe}branches/${t}.json`;
|
|
399
|
+
return L(r, e.refCache, async () => {
|
|
400
|
+
const { release: o } = await M(n, e);
|
|
397
401
|
return {
|
|
398
402
|
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${o}/`
|
|
399
403
|
};
|
|
400
404
|
});
|
|
401
405
|
},
|
|
402
406
|
offlineFunc: "resolveRef"
|
|
403
|
-
},
|
|
407
|
+
}, ye = {
|
|
404
408
|
schema: "expo-runtime-get-branch",
|
|
405
|
-
async resolveRef(
|
|
406
|
-
|
|
407
|
-
const n = `https://${
|
|
408
|
-
return
|
|
409
|
+
async resolveRef(r, e) {
|
|
410
|
+
p("expoRuntimeGetBranchResolver resolveRef:", r);
|
|
411
|
+
const n = `https://${b(r)}.expofp.com/get-branch`;
|
|
412
|
+
return M(n, e);
|
|
409
413
|
},
|
|
410
414
|
offlineFunc: "resolveRef"
|
|
411
415
|
}, ve = {
|
|
@@ -413,13 +417,13 @@ const ue = {
|
|
|
413
417
|
// canResolve(ref: string) {
|
|
414
418
|
// return canResolveRefSchema(ref, SCHEMA);
|
|
415
419
|
// },
|
|
416
|
-
async resolveRef(
|
|
417
|
-
|
|
418
|
-
const
|
|
419
|
-
entry: { $ref: `asset+${
|
|
420
|
-
assets: { $ref: `bundle-assets+${
|
|
420
|
+
async resolveRef(r) {
|
|
421
|
+
p("expoRuntimeResolver resolveRef:", r);
|
|
422
|
+
const e = b(r), t = {
|
|
423
|
+
entry: { $ref: `asset+${e}expofp.js` },
|
|
424
|
+
assets: { $ref: `bundle-assets+${e}bundle.json` }
|
|
421
425
|
};
|
|
422
|
-
return
|
|
426
|
+
return E(t), t;
|
|
423
427
|
},
|
|
424
428
|
// async *makeOfflineRef(ref: string) {
|
|
425
429
|
// log('expoRuntimeResolver makeOfflineRef:', ref);
|
|
@@ -440,278 +444,187 @@ const ue = {
|
|
|
440
444
|
// },
|
|
441
445
|
offlineFunc: "resolveRef"
|
|
442
446
|
}, Ce = {
|
|
443
|
-
canResolve(
|
|
444
|
-
return
|
|
447
|
+
canResolve(r) {
|
|
448
|
+
return r.startsWith("http://") || r.startsWith("https://") || r.startsWith("./");
|
|
445
449
|
},
|
|
446
|
-
resolveRef(
|
|
447
|
-
if (
|
|
448
|
-
return
|
|
450
|
+
resolveRef(r, e) {
|
|
451
|
+
if (p("httpResolver resolveRef:", r), !this.canResolve(r)) throw new Error(`Unexpected ref in httpResolver: ${r}`);
|
|
452
|
+
return M(r, e);
|
|
449
453
|
},
|
|
450
454
|
offlineFunc: "resolveRef"
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
(function(t, n) {
|
|
456
|
-
e.exports = n();
|
|
457
|
-
})(be, (function() {
|
|
458
|
-
var t = function(f, s) {
|
|
459
|
-
if (s = s || {}, typeof f != "function")
|
|
460
|
-
throw new o("fetch must be a function");
|
|
461
|
-
if (typeof s != "object")
|
|
462
|
-
throw new o("defaults must be an object");
|
|
463
|
-
if (s.retries !== void 0 && !n(s.retries))
|
|
464
|
-
throw new o("retries must be a positive integer");
|
|
465
|
-
if (s.retryDelay !== void 0 && !n(s.retryDelay) && typeof s.retryDelay != "function")
|
|
466
|
-
throw new o("retryDelay must be a positive integer or a function returning a positive integer");
|
|
467
|
-
if (s.retryOn !== void 0 && !Array.isArray(s.retryOn) && typeof s.retryOn != "function")
|
|
468
|
-
throw new o("retryOn property expects an array or function");
|
|
469
|
-
var y = {
|
|
470
|
-
retries: 3,
|
|
471
|
-
retryDelay: 1e3,
|
|
472
|
-
retryOn: []
|
|
473
|
-
};
|
|
474
|
-
return s = Object.assign(y, s), function(d, i) {
|
|
475
|
-
var a = s.retries, c = s.retryDelay, u = s.retryOn;
|
|
476
|
-
if (i && i.retries !== void 0)
|
|
477
|
-
if (n(i.retries))
|
|
478
|
-
a = i.retries;
|
|
479
|
-
else
|
|
480
|
-
throw new o("retries must be a positive integer");
|
|
481
|
-
if (i && i.retryDelay !== void 0)
|
|
482
|
-
if (n(i.retryDelay) || typeof i.retryDelay == "function")
|
|
483
|
-
c = i.retryDelay;
|
|
484
|
-
else
|
|
485
|
-
throw new o("retryDelay must be a positive integer or a function returning a positive integer");
|
|
486
|
-
if (i && i.retryOn)
|
|
487
|
-
if (Array.isArray(i.retryOn) || typeof i.retryOn == "function")
|
|
488
|
-
u = i.retryOn;
|
|
489
|
-
else
|
|
490
|
-
throw new o("retryOn property expects an array or function");
|
|
491
|
-
return new Promise(function(h, g) {
|
|
492
|
-
var C = function(w) {
|
|
493
|
-
var F = typeof Request < "u" && d instanceof Request ? d.clone() : d;
|
|
494
|
-
f(F, i).then(function(m) {
|
|
495
|
-
if (Array.isArray(u) && u.indexOf(m.status) === -1)
|
|
496
|
-
h(m);
|
|
497
|
-
else if (typeof u == "function")
|
|
498
|
-
try {
|
|
499
|
-
return Promise.resolve(u(w, null, m)).then(function(v) {
|
|
500
|
-
v ? p(w, null, m) : h(m);
|
|
501
|
-
}).catch(g);
|
|
502
|
-
} catch (v) {
|
|
503
|
-
g(v);
|
|
504
|
-
}
|
|
505
|
-
else
|
|
506
|
-
w < a ? p(w, null, m) : h(m);
|
|
507
|
-
}).catch(function(m) {
|
|
508
|
-
if (typeof u == "function")
|
|
509
|
-
try {
|
|
510
|
-
Promise.resolve(u(w, m, null)).then(function(v) {
|
|
511
|
-
v ? p(w, m, null) : g(m);
|
|
512
|
-
}).catch(function(v) {
|
|
513
|
-
g(v);
|
|
514
|
-
});
|
|
515
|
-
} catch (v) {
|
|
516
|
-
g(v);
|
|
517
|
-
}
|
|
518
|
-
else w < a ? p(w, m, null) : g(m);
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
function p(w, F, m) {
|
|
522
|
-
var v = typeof c == "function" ? c(w, F, m) : c;
|
|
523
|
-
setTimeout(function() {
|
|
524
|
-
C(++w);
|
|
525
|
-
}, v);
|
|
526
|
-
}
|
|
527
|
-
C(0);
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
|
-
};
|
|
531
|
-
function n(f) {
|
|
532
|
-
return Number.isInteger(f) && f >= 0;
|
|
533
|
-
}
|
|
534
|
-
function o(f) {
|
|
535
|
-
this.name = "ArgumentError", this.message = f;
|
|
536
|
-
}
|
|
537
|
-
return t;
|
|
538
|
-
}));
|
|
539
|
-
})(D)), D.exports;
|
|
540
|
-
}
|
|
541
|
-
var Fe = ge();
|
|
542
|
-
const Re = /* @__PURE__ */ x(Fe), $e = Re(fetch), Ee = I("efp:loader:loadScript");
|
|
543
|
-
async function k(e, r) {
|
|
544
|
-
const { globalVar: t, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = r;
|
|
545
|
-
G() ? (t && window[t] !== void 0 && delete window[t], await H(e, r.signal), t && await V(
|
|
455
|
+
}, be = I("efp:loader:loadScript");
|
|
456
|
+
async function j(r, e) {
|
|
457
|
+
const { globalVar: t, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = e;
|
|
458
|
+
q() ? (t && window[t] !== void 0 && delete window[t], await H(r, e.signal), t && await V(
|
|
546
459
|
() => window[t],
|
|
547
460
|
t,
|
|
548
461
|
n,
|
|
549
462
|
o,
|
|
550
|
-
|
|
551
|
-
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await K(
|
|
463
|
+
e.signal
|
|
464
|
+
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await K(r, e.signal), t && await V(
|
|
552
465
|
() => globalThis[t],
|
|
553
466
|
t,
|
|
554
467
|
n,
|
|
555
468
|
o,
|
|
556
|
-
|
|
469
|
+
e.signal
|
|
557
470
|
));
|
|
558
471
|
}
|
|
559
|
-
function
|
|
472
|
+
function q() {
|
|
560
473
|
return typeof window < "u" && typeof document < "u";
|
|
561
474
|
}
|
|
562
|
-
async function
|
|
563
|
-
|
|
475
|
+
async function Ne(r, e) {
|
|
476
|
+
be("Loading", r), q() ? await H(r, e) : await K(r, e);
|
|
564
477
|
}
|
|
565
|
-
function H(
|
|
478
|
+
function H(r, e) {
|
|
566
479
|
return new Promise((t, n) => {
|
|
567
480
|
const o = document.createElement("script");
|
|
568
|
-
o.src =
|
|
569
|
-
const
|
|
481
|
+
o.src = r, o.async = !0;
|
|
482
|
+
const l = () => {
|
|
570
483
|
o.onload = null, o.onerror = null, o.remove();
|
|
571
|
-
},
|
|
572
|
-
|
|
484
|
+
}, a = () => {
|
|
485
|
+
l(), n(new Error("Script load aborted"));
|
|
573
486
|
};
|
|
574
|
-
if (
|
|
575
|
-
|
|
487
|
+
if (e != null && e.aborted) {
|
|
488
|
+
l(), n(new Error("Script load aborted"));
|
|
576
489
|
return;
|
|
577
490
|
}
|
|
578
|
-
|
|
579
|
-
|
|
491
|
+
e == null || e.addEventListener("abort", a, { once: !0 }), o.onload = () => {
|
|
492
|
+
e == null || e.removeEventListener("abort", a), l(), t();
|
|
580
493
|
}, o.onerror = () => {
|
|
581
|
-
|
|
494
|
+
e == null || e.removeEventListener("abort", a), l(), n(new Error(`Failed to load script: ${r}`));
|
|
582
495
|
}, document.head.appendChild(o);
|
|
583
496
|
});
|
|
584
497
|
}
|
|
585
|
-
async function K(
|
|
586
|
-
if (
|
|
498
|
+
async function K(r, e) {
|
|
499
|
+
if (e != null && e.aborted)
|
|
587
500
|
throw new Error("Script load aborted");
|
|
588
501
|
let t;
|
|
589
502
|
try {
|
|
590
|
-
t = await
|
|
591
|
-
} catch (
|
|
592
|
-
throw
|
|
503
|
+
t = await G(r, { signal: e });
|
|
504
|
+
} catch (a) {
|
|
505
|
+
throw a && a.name === "AbortError" ? new Error("Script load aborted") : a;
|
|
593
506
|
}
|
|
594
507
|
if (!t.ok)
|
|
595
|
-
throw new Error(`Failed to load script in Node (HTTP ${t.status}): ${
|
|
596
|
-
if (
|
|
508
|
+
throw new Error(`Failed to load script in Node (HTTP ${t.status}): ${r}`);
|
|
509
|
+
if (e != null && e.aborted)
|
|
597
510
|
throw new Error("Script load aborted");
|
|
598
511
|
let n;
|
|
599
512
|
try {
|
|
600
513
|
n = await t.text();
|
|
601
|
-
} catch (
|
|
602
|
-
throw
|
|
514
|
+
} catch (a) {
|
|
515
|
+
throw a && a.name === "AbortError" ? new Error("Script load aborted") : a;
|
|
603
516
|
}
|
|
604
|
-
if (
|
|
517
|
+
if (e != null && e.aborted)
|
|
605
518
|
throw new Error("Script load aborted");
|
|
606
|
-
const o = globalThis,
|
|
519
|
+
const o = globalThis, l = o.window;
|
|
607
520
|
o.window = o;
|
|
608
521
|
try {
|
|
609
522
|
(0, eval)(n);
|
|
610
523
|
} finally {
|
|
611
|
-
|
|
524
|
+
l === void 0 ? delete o.window : o.window = l;
|
|
612
525
|
}
|
|
613
526
|
}
|
|
614
|
-
function V(
|
|
615
|
-
return new Promise((
|
|
616
|
-
const
|
|
617
|
-
|
|
527
|
+
function V(r, e, t, n, o) {
|
|
528
|
+
return new Promise((l, a) => {
|
|
529
|
+
const h = Date.now(), c = () => {
|
|
530
|
+
a(new Error("Wait for global aborted"));
|
|
618
531
|
};
|
|
619
532
|
if (o != null && o.aborted) {
|
|
620
|
-
|
|
533
|
+
a(new Error("Wait for global aborted"));
|
|
621
534
|
return;
|
|
622
535
|
}
|
|
623
|
-
o == null || o.addEventListener("abort",
|
|
536
|
+
o == null || o.addEventListener("abort", c, { once: !0 });
|
|
624
537
|
const d = () => {
|
|
625
538
|
if (o != null && o.aborted)
|
|
626
|
-
return
|
|
539
|
+
return a(new Error("Wait for global aborted"));
|
|
627
540
|
try {
|
|
628
|
-
if (
|
|
629
|
-
return o == null || o.removeEventListener("abort",
|
|
541
|
+
if (r() !== void 0)
|
|
542
|
+
return o == null || o.removeEventListener("abort", c), l();
|
|
630
543
|
} catch {
|
|
631
544
|
}
|
|
632
|
-
if (Date.now() -
|
|
633
|
-
return o == null || o.removeEventListener("abort",
|
|
545
|
+
if (Date.now() - h >= t)
|
|
546
|
+
return o == null || o.removeEventListener("abort", c), a(new Error(`Timed out after ${t} ms waiting for global "${e}"`));
|
|
634
547
|
setTimeout(d, n);
|
|
635
548
|
};
|
|
636
549
|
d();
|
|
637
550
|
});
|
|
638
551
|
}
|
|
639
|
-
const
|
|
552
|
+
const ge = {
|
|
640
553
|
schema: "legacy-asset-urls",
|
|
641
|
-
resolveRef(
|
|
642
|
-
|
|
643
|
-
const t =
|
|
644
|
-
return
|
|
645
|
-
var
|
|
646
|
-
const n =
|
|
554
|
+
resolveRef(r, e) {
|
|
555
|
+
p("legacyAssetUrlsResolver resolveRef:", r);
|
|
556
|
+
const t = e.signal;
|
|
557
|
+
return L(r, e.refCache, async () => {
|
|
558
|
+
var y, v, R, O, $;
|
|
559
|
+
const n = b(r), o = `${n}version.js`;
|
|
647
560
|
try {
|
|
648
|
-
await
|
|
561
|
+
await j(o, {
|
|
649
562
|
globalVar: "__fpDataVersion",
|
|
650
563
|
timeoutMs: 3e4,
|
|
651
564
|
signal: t
|
|
652
|
-
}), (
|
|
565
|
+
}), (y = e.importCallback) == null || y.call(e, o, "script");
|
|
653
566
|
} catch {
|
|
654
567
|
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
655
568
|
}
|
|
656
|
-
const
|
|
569
|
+
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`, h = j(a, {
|
|
657
570
|
globalVar: "__data",
|
|
658
571
|
signal: t
|
|
659
572
|
});
|
|
660
|
-
(
|
|
661
|
-
const
|
|
573
|
+
(v = e.importCallback) == null || v.call(e, a, "script");
|
|
574
|
+
const c = `${n}wf.data.js?v=${l}`, d = j(c, {
|
|
662
575
|
globalVar: "__wfData",
|
|
663
576
|
signal: t
|
|
664
577
|
}).then(() => {
|
|
665
|
-
var
|
|
666
|
-
(
|
|
578
|
+
var C;
|
|
579
|
+
(C = e.importCallback) == null || C.call(e, c, "script");
|
|
667
580
|
}).catch(() => {
|
|
668
|
-
console.warn(`Could not load wf.data.js at ${
|
|
581
|
+
console.warn(`Could not load wf.data.js at ${c}, proceeding without it`);
|
|
669
582
|
});
|
|
670
583
|
delete globalThis.__fpLayers;
|
|
671
|
-
const
|
|
584
|
+
const f = `${n}fp.svg.js?v=${l}`, s = j(f, {
|
|
672
585
|
globalVar: "__fp",
|
|
673
586
|
signal: t
|
|
674
587
|
});
|
|
675
|
-
(
|
|
676
|
-
const u = ((
|
|
677
|
-
for (const
|
|
678
|
-
const
|
|
679
|
-
(
|
|
588
|
+
(R = e.importCallback) == null || R.call(e, f, "script"), await Promise.all([h, d, s]);
|
|
589
|
+
const u = ((O = globalThis.__fpLayers) != null ? O : []).map((C) => `fp.svg.${C.name}.js`);
|
|
590
|
+
for (const C of u) {
|
|
591
|
+
const g = `${n}${C}?v=${l}`;
|
|
592
|
+
($ = e.importCallback) == null || $.call(e, g, "script");
|
|
680
593
|
}
|
|
681
|
-
const
|
|
682
|
-
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((
|
|
594
|
+
const w = globalThis.__data || {};
|
|
595
|
+
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((C, g) => (C[g] = { $ref: `asset+${n}${g}?v=${l}` }, C), {}), ...Fe(n, w) };
|
|
683
596
|
});
|
|
684
597
|
},
|
|
685
598
|
offlineFunc: "resolveRef"
|
|
686
599
|
};
|
|
687
|
-
function
|
|
688
|
-
var o,
|
|
600
|
+
function Fe(r, e) {
|
|
601
|
+
var o, l;
|
|
689
602
|
const t = /* @__PURE__ */ new Set();
|
|
690
|
-
function n(
|
|
691
|
-
typeof
|
|
603
|
+
function n(a) {
|
|
604
|
+
typeof a == "string" && a.length > 0 && t.add(a);
|
|
692
605
|
}
|
|
693
|
-
return n(
|
|
694
|
-
var
|
|
695
|
-
if (n(
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
698
|
-
const d =
|
|
699
|
-
n(`${d}__small${
|
|
606
|
+
return n(e.logo), (o = e.exhibitors) == null || o.forEach((a) => {
|
|
607
|
+
var h;
|
|
608
|
+
if (n(a.logo), a.logo) {
|
|
609
|
+
const c = a.logo.lastIndexOf(".");
|
|
610
|
+
if (c !== -1) {
|
|
611
|
+
const d = a.logo.substring(0, c), f = a.logo.substring(c);
|
|
612
|
+
n(`${d}__small${f}`), n(`${d}__tiny${f}`);
|
|
700
613
|
}
|
|
701
614
|
}
|
|
702
|
-
(
|
|
703
|
-
}), (
|
|
704
|
-
var
|
|
705
|
-
n(
|
|
706
|
-
n(
|
|
615
|
+
(h = a.gallery) == null || h.forEach((c) => n(c));
|
|
616
|
+
}), (l = e.events) == null || l.forEach((a) => {
|
|
617
|
+
var h;
|
|
618
|
+
n(a.logoFile), (h = a.speakers) == null || h.forEach((c) => {
|
|
619
|
+
n(c.photoFile);
|
|
707
620
|
});
|
|
708
|
-
}), Array.from(t).reduce((
|
|
621
|
+
}), Array.from(t).reduce((a, h) => (a[h] = { $ref: `asset+${r}${h}` }, a), {});
|
|
709
622
|
}
|
|
710
|
-
const
|
|
623
|
+
const Re = {
|
|
711
624
|
schema: "legacy-data",
|
|
712
|
-
resolveRef(
|
|
713
|
-
return
|
|
714
|
-
const t =
|
|
625
|
+
resolveRef(r, e) {
|
|
626
|
+
return p("legacyDataResolver resolveRef:", r), L(r, e.refCache, async () => {
|
|
627
|
+
const t = b(r);
|
|
715
628
|
return {
|
|
716
629
|
_to_remove_for_offline_to_work_dataUrlBase: t,
|
|
717
630
|
legacyAssetUrls: { $ref: `legacy-asset-urls+${t}` }
|
|
@@ -719,255 +632,255 @@ const Ae = {
|
|
|
719
632
|
});
|
|
720
633
|
},
|
|
721
634
|
offlineFunc: "resolveRef"
|
|
722
|
-
},
|
|
723
|
-
schema:
|
|
724
|
-
resolveRef(
|
|
725
|
-
return
|
|
635
|
+
}, $e = I("efp:loader:resolver:legacyDataUrlBase"), Ee = "legacy-data-url-base", Oe = {
|
|
636
|
+
schema: Ee,
|
|
637
|
+
resolveRef(r) {
|
|
638
|
+
return $e("legacyDataResolver resolveRef:", r), Promise.resolve(b(r));
|
|
726
639
|
},
|
|
727
|
-
offlineFunc: async function* (
|
|
640
|
+
offlineFunc: async function* (r, e) {
|
|
728
641
|
const { offlineFunc: t } = await import("./legacyDataUrlBaseResolver.offlineFunc-DPaSp_zV.js");
|
|
729
|
-
return yield* t(
|
|
642
|
+
return yield* t(r, e);
|
|
730
643
|
}
|
|
731
|
-
},
|
|
644
|
+
}, _e = [
|
|
732
645
|
Ce,
|
|
733
646
|
ue,
|
|
734
|
-
|
|
647
|
+
le,
|
|
735
648
|
ve,
|
|
736
|
-
pe,
|
|
737
649
|
me,
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
650
|
+
ye,
|
|
651
|
+
he,
|
|
652
|
+
Re,
|
|
653
|
+
ge,
|
|
654
|
+
Oe
|
|
655
|
+
], Ae = /* @__PURE__ */ new Map();
|
|
656
|
+
async function W(r, e, t) {
|
|
657
|
+
p("Resolving:", e, "of", r, t);
|
|
745
658
|
const n = {
|
|
746
659
|
importCallback: t == null ? void 0 : t.importCallback,
|
|
747
|
-
refCache: (t == null ? void 0 : t.refCache) ||
|
|
660
|
+
refCache: (t == null ? void 0 : t.refCache) || Ae,
|
|
748
661
|
forceFetch: !!(t != null && t.forceFetch),
|
|
749
662
|
signal: (t == null ? void 0 : t.signal) || null,
|
|
750
663
|
preResolvedRefs: t == null ? void 0 : t.preResolvedRefs
|
|
751
664
|
};
|
|
752
|
-
if (typeof
|
|
753
|
-
throw new Error(`Invalid JSON Pointer (not a string): ${
|
|
754
|
-
if (!
|
|
755
|
-
throw new Error(`Invalid JSON Pointer: ${
|
|
756
|
-
if (
|
|
757
|
-
throw new Error(`Invalid JSON Pointer: ${
|
|
665
|
+
if (typeof e != "string")
|
|
666
|
+
throw new Error(`Invalid JSON Pointer (not a string): ${e}`);
|
|
667
|
+
if (!e.startsWith("/"))
|
|
668
|
+
throw new Error(`Invalid JSON Pointer: ${e}`);
|
|
669
|
+
if (e.length > 1 && e.endsWith("/"))
|
|
670
|
+
throw new Error(`Invalid JSON Pointer: ${e}`);
|
|
758
671
|
let o;
|
|
759
|
-
if (
|
|
760
|
-
throw new Error(`Invalid JSON Pointer (empty part): ${
|
|
672
|
+
if (e === "/" ? o = [] : o = e.substring(1).split("/"), o.some((l) => l.length === 0))
|
|
673
|
+
throw new Error(`Invalid JSON Pointer (empty part): ${e}`);
|
|
761
674
|
if (t != null && t.mutate) {
|
|
762
675
|
o.unshift("root");
|
|
763
|
-
const
|
|
764
|
-
await Q(
|
|
676
|
+
const l = { root: r };
|
|
677
|
+
await Q(l, o, 0, n), Te(r, l.root);
|
|
765
678
|
} else
|
|
766
|
-
return await X(
|
|
679
|
+
return await X(r, o, 0, n);
|
|
767
680
|
}
|
|
768
|
-
async function Q(
|
|
769
|
-
const o =
|
|
770
|
-
if (await
|
|
771
|
-
if (
|
|
681
|
+
async function Q(r, e, t, n) {
|
|
682
|
+
const o = e[t];
|
|
683
|
+
if (await ke(r, o, n), t != e.length - 1) {
|
|
684
|
+
if (r[o] === null || typeof r[o] != "object")
|
|
772
685
|
throw new Error(
|
|
773
|
-
`Cannot resolve path, encountered non-object at part '${
|
|
686
|
+
`Cannot resolve path, encountered non-object at part '${e.slice(1).join("/")}', index ${t - 1}'`
|
|
774
687
|
);
|
|
775
|
-
return await Q(
|
|
688
|
+
return await Q(r[o], e, t + 1, n);
|
|
776
689
|
}
|
|
777
690
|
}
|
|
778
|
-
async function
|
|
779
|
-
|
|
780
|
-
let n = e
|
|
781
|
-
const o = await
|
|
782
|
-
o !== void 0 && (e
|
|
691
|
+
async function ke(r, e, t) {
|
|
692
|
+
p("resolveObjectMutate:", r, e);
|
|
693
|
+
let n = r[e];
|
|
694
|
+
const o = await U(n, t);
|
|
695
|
+
o !== void 0 && (r[e] = o);
|
|
783
696
|
}
|
|
784
|
-
async function X(
|
|
785
|
-
if (t ===
|
|
786
|
-
return await
|
|
787
|
-
if (
|
|
697
|
+
async function X(r, e, t, n) {
|
|
698
|
+
if (t === e.length)
|
|
699
|
+
return await U(r, n);
|
|
700
|
+
if (r === null || typeof r != "object")
|
|
788
701
|
throw new Error(
|
|
789
|
-
`Cannot resolve path, encountered non-object at part '${
|
|
702
|
+
`Cannot resolve path, encountered non-object at part '${e.join("/")}', index ${t}'`
|
|
790
703
|
);
|
|
791
|
-
const o =
|
|
792
|
-
let
|
|
793
|
-
return
|
|
704
|
+
const o = e[t];
|
|
705
|
+
let l = r[o];
|
|
706
|
+
return l === void 0 && (l = (await U(r, n))[o]), await X(l, e, t + 1, n);
|
|
794
707
|
}
|
|
795
|
-
async function
|
|
796
|
-
|
|
797
|
-
let t =
|
|
708
|
+
async function U(r, e) {
|
|
709
|
+
p("resolveObject:", r);
|
|
710
|
+
let t = r;
|
|
798
711
|
do {
|
|
799
712
|
if (typeof t != "object" || t === null || !("$ref" in t))
|
|
800
713
|
return t;
|
|
801
|
-
const n =
|
|
714
|
+
const n = _e.filter((l) => Y(l, t.$ref));
|
|
802
715
|
if (n.length === 0) {
|
|
803
716
|
if (t.$ref)
|
|
804
717
|
throw new Error(`No resolver found for ref: ${t.$ref}`);
|
|
805
|
-
return
|
|
718
|
+
return E(t), t;
|
|
806
719
|
}
|
|
807
720
|
if (n.length > 1)
|
|
808
721
|
throw new Error(`Multiple resolvers can resolve ref: ${t.$ref}`);
|
|
809
|
-
const o = await
|
|
810
|
-
t =
|
|
722
|
+
const o = await je(n[0], t.$ref, e);
|
|
723
|
+
t = Le(o, t);
|
|
811
724
|
} while (!0);
|
|
812
725
|
}
|
|
813
|
-
async function
|
|
814
|
-
if (!Y(
|
|
815
|
-
throw new Error(`Unexpected ref: ${
|
|
816
|
-
return
|
|
726
|
+
async function je(r, e, t) {
|
|
727
|
+
if (!Y(r, e))
|
|
728
|
+
throw new Error(`Unexpected ref: ${e}`);
|
|
729
|
+
return r.resolveRef(e, t);
|
|
817
730
|
}
|
|
818
|
-
function Y(
|
|
819
|
-
if (
|
|
820
|
-
return
|
|
821
|
-
if (
|
|
822
|
-
return
|
|
731
|
+
function Y(r, e) {
|
|
732
|
+
if (r.canResolve)
|
|
733
|
+
return r.canResolve(e);
|
|
734
|
+
if (r.schema)
|
|
735
|
+
return Ie(e, r.schema);
|
|
823
736
|
throw new Error("Resolver is missing canResolve method and schema property");
|
|
824
737
|
}
|
|
825
|
-
function
|
|
826
|
-
const t = [`${
|
|
738
|
+
function Ie(r, e) {
|
|
739
|
+
const t = [`${e}+`, `${e}:`];
|
|
827
740
|
for (const n of t)
|
|
828
|
-
if (
|
|
741
|
+
if (r.startsWith(n))
|
|
829
742
|
return !0;
|
|
830
743
|
return !1;
|
|
831
744
|
}
|
|
832
|
-
function
|
|
833
|
-
if (
|
|
834
|
-
return
|
|
835
|
-
const
|
|
836
|
-
if (
|
|
837
|
-
return
|
|
745
|
+
function b(r) {
|
|
746
|
+
if (r.startsWith("http://") || r.startsWith("https://"))
|
|
747
|
+
return r;
|
|
748
|
+
const e = r.indexOf("+http://"), t = r.indexOf("+https://");
|
|
749
|
+
if (e !== -1)
|
|
750
|
+
return r.substring(e + 1);
|
|
838
751
|
if (t !== -1)
|
|
839
|
-
return
|
|
840
|
-
const n =
|
|
752
|
+
return r.substring(t + 1);
|
|
753
|
+
const n = r.indexOf(":");
|
|
841
754
|
if (n !== -1)
|
|
842
|
-
return
|
|
843
|
-
throw new Error(`Error getting URL from: ${
|
|
755
|
+
return r.substring(n + 1);
|
|
756
|
+
throw new Error(`Error getting URL from: ${r}, no valid prefix found`);
|
|
844
757
|
}
|
|
845
|
-
typeof window < "u" && (window.__debugResolve = async function(
|
|
846
|
-
return await
|
|
758
|
+
typeof window < "u" && (window.__debugResolve = async function(e, t, n) {
|
|
759
|
+
return await W(e, t, n);
|
|
847
760
|
});
|
|
848
|
-
function
|
|
849
|
-
return async (
|
|
761
|
+
function T(r) {
|
|
762
|
+
return async (e, ...t) => {
|
|
850
763
|
try {
|
|
851
|
-
const
|
|
852
|
-
return
|
|
764
|
+
const l = (await import(await W(e, "/runtime/entry")))[r];
|
|
765
|
+
return l(e, ...t);
|
|
853
766
|
} catch (n) {
|
|
854
|
-
throw console.error("efp-loader", `Error when trying to import and call "${
|
|
767
|
+
throw console.error("efp-loader", `Error when trying to import and call "${r}":`, n), n;
|
|
855
768
|
}
|
|
856
769
|
};
|
|
857
770
|
}
|
|
858
|
-
function
|
|
859
|
-
if (
|
|
860
|
-
Object.freeze(
|
|
861
|
-
for (const
|
|
862
|
-
const t = e
|
|
863
|
-
typeof t == "object" && t !== null && !Object.isFrozen(t) &&
|
|
771
|
+
function E(r) {
|
|
772
|
+
if (r === null || typeof r != "object") return r;
|
|
773
|
+
Object.freeze(r);
|
|
774
|
+
for (const e of Object.keys(r)) {
|
|
775
|
+
const t = r[e];
|
|
776
|
+
typeof t == "object" && t !== null && !Object.isFrozen(t) && E(t);
|
|
864
777
|
}
|
|
865
|
-
return
|
|
778
|
+
return r;
|
|
866
779
|
}
|
|
867
|
-
function
|
|
868
|
-
return "structuredClone" in globalThis ? globalThis.structuredClone(
|
|
780
|
+
function Pe(r) {
|
|
781
|
+
return "structuredClone" in globalThis ? globalThis.structuredClone(r) : JSON.parse(JSON.stringify(r));
|
|
869
782
|
}
|
|
870
|
-
function
|
|
871
|
-
return
|
|
783
|
+
function Me(r) {
|
|
784
|
+
return r === null || typeof r != "object" ? r : Array.isArray(r) ? r.slice() : { ...r };
|
|
872
785
|
}
|
|
873
|
-
function
|
|
874
|
-
if (
|
|
875
|
-
if (
|
|
786
|
+
function Le(r, e) {
|
|
787
|
+
if (r === e) return;
|
|
788
|
+
if (e === null || typeof e != "object")
|
|
876
789
|
throw new Error("Cannot merge non-object source");
|
|
877
|
-
if (Array.isArray(r))
|
|
878
|
-
throw new Error("Cannot merge arrays");
|
|
879
|
-
const t = Object.keys(r).filter((o) => o !== "$ref");
|
|
880
|
-
if (t.length === 0) return Je(e);
|
|
881
790
|
if (Array.isArray(e))
|
|
791
|
+
throw new Error("Cannot merge arrays");
|
|
792
|
+
const t = Object.keys(e).filter((o) => o !== "$ref");
|
|
793
|
+
if (t.length === 0) return Me(r);
|
|
794
|
+
if (Array.isArray(r))
|
|
882
795
|
throw new Error("Cannot merge into arrays");
|
|
883
|
-
if (
|
|
796
|
+
if (r === null || typeof r != "object")
|
|
884
797
|
throw new Error("Cannot merge into non-object target");
|
|
885
|
-
const n = { ...
|
|
798
|
+
const n = { ...r };
|
|
886
799
|
for (const o of t)
|
|
887
|
-
n[o] =
|
|
800
|
+
n[o] = e[o];
|
|
888
801
|
return n;
|
|
889
802
|
}
|
|
890
|
-
function
|
|
891
|
-
if (
|
|
892
|
-
if (r === null || typeof r != "object")
|
|
893
|
-
throw new Error("Cannot replace with non-object source");
|
|
803
|
+
function Te(r, e) {
|
|
804
|
+
if (r !== e) {
|
|
894
805
|
if (e === null || typeof e != "object")
|
|
806
|
+
throw new Error("Cannot replace with non-object source");
|
|
807
|
+
if (r === null || typeof r != "object")
|
|
895
808
|
throw new Error("Cannot replace non-object target");
|
|
896
|
-
if (Array.isArray(
|
|
897
|
-
if (!Array.isArray(
|
|
809
|
+
if (Array.isArray(r)) {
|
|
810
|
+
if (!Array.isArray(e))
|
|
898
811
|
throw new Error("replaceObjectFields does not support mixing arrays and objects");
|
|
899
|
-
|
|
900
|
-
for (const t of
|
|
901
|
-
|
|
812
|
+
r.length = 0;
|
|
813
|
+
for (const t of e)
|
|
814
|
+
r.push(t);
|
|
902
815
|
return;
|
|
903
816
|
}
|
|
904
|
-
for (const t of Object.keys(e))
|
|
905
|
-
t in r || delete e[t];
|
|
906
817
|
for (const t of Object.keys(r))
|
|
907
|
-
|
|
818
|
+
t in e || delete r[t];
|
|
819
|
+
for (const t of Object.keys(e))
|
|
820
|
+
r[t] = e[t];
|
|
908
821
|
}
|
|
909
822
|
}
|
|
910
|
-
async function
|
|
823
|
+
async function Be(r, e, t) {
|
|
911
824
|
t = t || {};
|
|
912
|
-
for (const n of
|
|
913
|
-
await
|
|
825
|
+
for (const n of e)
|
|
826
|
+
await W(r, n, { ...t, mutate: !0 });
|
|
914
827
|
}
|
|
915
|
-
typeof window < "u" && (window.__debugMutateManifest =
|
|
916
|
-
async function
|
|
917
|
-
const { makeOffline:
|
|
918
|
-
return await r
|
|
828
|
+
typeof window < "u" && (window.__debugMutateManifest = Be);
|
|
829
|
+
async function ze(r) {
|
|
830
|
+
const { makeOffline: e } = await import("./makeOffline-Dj-0o5_7.js");
|
|
831
|
+
return await e(r);
|
|
919
832
|
}
|
|
920
|
-
async function
|
|
921
|
-
const { makeOfflineBundle:
|
|
922
|
-
return await r
|
|
833
|
+
async function De(r) {
|
|
834
|
+
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-D8tePWGI.js");
|
|
835
|
+
return await e(r);
|
|
923
836
|
}
|
|
924
|
-
async function
|
|
837
|
+
async function Je(r, e) {
|
|
925
838
|
const { downloadOfflineZip: t } = await import("./downloadOfflineZip-CNz_lUGZ.js");
|
|
926
|
-
return await t(
|
|
839
|
+
return await t(r, e);
|
|
927
840
|
}
|
|
928
|
-
async function
|
|
841
|
+
async function Ze(r, e) {
|
|
929
842
|
const { saveOfflineZip: t } = await import("./saveOfflineZip.browser-BTQeRUY_.js");
|
|
930
|
-
return await t(
|
|
843
|
+
return await t(r, e);
|
|
931
844
|
}
|
|
932
|
-
async function
|
|
933
|
-
const { makeOffline:
|
|
845
|
+
async function Ue(r) {
|
|
846
|
+
const { makeOffline: e } = await import("./makeOffline-Dj-0o5_7.js"), t = await e(r);
|
|
934
847
|
for await (const n of (await t).files)
|
|
935
848
|
"data" in n ? console.info(`🗳️ Put ${n.targetFilePath} <=`, n.data) : "url" in n && console.info(`🗳️ Download ${n.targetFilePath} <= ${n.url}`);
|
|
936
849
|
console.info("Offline data: ", t.manifest);
|
|
937
850
|
}
|
|
938
|
-
typeof window < "u" && (window.__debugDownloadOfflineZip =
|
|
851
|
+
typeof window < "u" && (window.__debugDownloadOfflineZip = Je, window.__debugMakeOfflineBundle = De, window.__debugLogOfflineManifestFiles = Ue);
|
|
939
852
|
const J = globalThis.__efpLoaderBuildInfo;
|
|
940
|
-
J ?
|
|
941
|
-
const
|
|
942
|
-
async function
|
|
943
|
-
return await
|
|
853
|
+
J ? p("Initialized", { version: J[0], builtAt: J[1] }) : p("Initialized");
|
|
854
|
+
const Se = T("mount"), Ve = T("load"), Ge = T("initialize");
|
|
855
|
+
async function qe(r, e, ...t) {
|
|
856
|
+
return await T(r)(e, ...t);
|
|
944
857
|
}
|
|
945
858
|
export {
|
|
946
|
-
|
|
947
|
-
|
|
859
|
+
we as S,
|
|
860
|
+
E as a,
|
|
948
861
|
Y as b,
|
|
949
|
-
|
|
950
|
-
|
|
862
|
+
We as c,
|
|
863
|
+
qe as callFunction_Experimental,
|
|
951
864
|
I as d,
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
865
|
+
Je as downloadOfflineZip,
|
|
866
|
+
Le as e,
|
|
867
|
+
Pe as f,
|
|
868
|
+
re as g,
|
|
869
|
+
je as h,
|
|
870
|
+
$e as i,
|
|
871
|
+
Ge as initialize,
|
|
872
|
+
Ne as j,
|
|
873
|
+
Ee as k,
|
|
961
874
|
de as l,
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
875
|
+
Ve as load,
|
|
876
|
+
ze as makeOffline,
|
|
877
|
+
De as makeOfflineBundle,
|
|
878
|
+
Se as mount,
|
|
879
|
+
Be as mutateManifest,
|
|
880
|
+
b as p,
|
|
881
|
+
_e as r,
|
|
882
|
+
W as resolve,
|
|
883
|
+
Me as s,
|
|
884
|
+
Ze as saveOfflineZip
|
|
972
885
|
};
|
|
973
886
|
//# sourceMappingURL=bundle.js.map
|