@@ -3,6 +3,15 @@ import { watchEffect, defineComponent, useTemplateRef, shallowRef, inject, compu
import { d as debounce } from './chunks/utils-BJf_b1Uq.js';
import { a as injectKeyProps } from './chunks/types-XqLqBVey.js';
+function getWorkerURL(url){
+ if (typeof document !== 'undefined' && document.location && document.location.origin !== url.origin) {
+ return URL.createObjectURL(new Blob([`import '${url.href}'`], {
+ type: 'application/javascript'
+ }))
+ }
+ return url.href;
+}
+
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
@@ -73583,12 +73592,6 @@ function fuzzyScoreGracefulAggressive(pattern, lowPattern, patternPos, word, low
}
function fuzzyScoreWithPermutations(pattern, lowPattern, patternPos, word, lowWord, wordPos, aggressive, options) {
let top = fuzzyScore(pattern, lowPattern, patternPos, word, lowWord, wordPos, options);
- if (top && false) {
- // when using the original pattern yield a result we`
- // return it unless we are aggressive and try to find
- // a better alignment, e.g. `cno` -> `^co^ns^ole` or `^c^o^nsole`.
- return top;
- }
if (pattern.length >= 3) {
// When the pattern is long enough then try a few (max 7)
// permutations of the pattern to find a better match. The
@@ -178015,7 +178018,7 @@ async function registerProviders(worker, language, getSyncUris, languages) {
function WorkerWrapper$1(options) {
return new Worker(
- ""+new URL('assets/editor.worker-KaUq7_iC.js', import.meta.url).href+"",
+ ""+getWorkerURL(new URL('assets/editor.worker-KaUq7_iC.js', import.meta.url))+"",
{
type: "module",
name: options?.name
@@ -178034,7 +178037,7 @@ function getOrCreateModel(uri, lang, value) {
function WorkerWrapper(options) {
return new Worker(
- ""+new URL('assets/vue.worker-Dc6PZdLj.js', import.meta.url).href+"",
+ ""+getWorkerURL(new URL('assets/vue.worker-Dc6PZdLj.js', import.meta.url))+"",
{
type: "module",
name: options?.name
@@ -551,7 +551,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
"allow-popups",
"allow-same-origin",
"allow-scripts",
- "allow-top-navigation-by-user-activation"
+ "allow-top-navigation-by-user-activation",
+ "allow-downloads"
].join(" ")
);
const importMap = store.value.getImportMap();