function currentAssetVersion() {
try {
const search = self.location && self.location.search;
const match = search && /[?&]v=([^&]+)/.exec(search);
return match ? decodeURIComponent(match[1].replace(/\+/g, " ")) : "";
} catch (_error) {
return "";
}
}
function withAssetVersion(url) {
const version = currentAssetVersion();
if (!version) return url;
return `${url}${url.includes("?") ? "&" : "?"}v=${encodeURIComponent(
version,
)}`;
}
try {
importScripts(withAssetVersion("seed_loader.js"));
} catch (_error) {
}
const FORMAL_AI_WORKER_MODULES = [
"worker/formal_ai_worker_00.js",
"worker/formal_ai_worker_01.js",
"worker/formal_ai_worker_02.js",
"worker/formal_ai_worker_03.js",
"worker/formal_ai_worker_04.js",
"worker/formal_ai_worker_05.js",
"worker/formal_ai_worker_06.js",
"worker/formal_ai_worker_07.js",
"worker/formal_ai_worker_08.js",
"worker/formal_ai_worker_09.js",
"worker/formal_ai_worker_10.js",
"worker/formal_ai_worker_11.js",
"worker/formal_ai_worker_12.js",
"worker/formal_ai_worker_13.js",
"worker/formal_ai_worker_14.js",
"worker/formal_ai_worker_15.js",
"worker/formal_ai_worker_16.js",
"worker/formal_ai_worker_17.js",
"worker/formal_ai_worker_18.js",
"worker/formal_ai_worker_19.js",
"worker/formal_ai_worker_20.js",
];
for (const modulePath of FORMAL_AI_WORKER_MODULES) {
importScripts(withAssetVersion(modulePath));
}