diff --git a/audio-worklet/basic/audio-worklet-node-options/index.html b/audio-worklet/basic/audio-worklet-node-options/index.html index 62b989115..e7f630207 100644 --- a/audio-worklet/basic/audio-worklet-node-options/index.html +++ b/audio-worklet/basic/audio-worklet-node-options/index.html @@ -134,7 +134,7 @@

Using Options for AudioWorkletNode

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/basic/bit-crusher/index.html b/audio-worklet/basic/bit-crusher/index.html index d88bed8b9..91bfcbed5 100644 --- a/audio-worklet/basic/bit-crusher/index.html +++ b/audio-worklet/basic/bit-crusher/index.html @@ -118,7 +118,7 @@

BitCrusher with AudioParam

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/basic/handling-errors/index.html b/audio-worklet/basic/handling-errors/index.html index b7eb424dc..abe4c3c62 100644 --- a/audio-worklet/basic/handling-errors/index.html +++ b/audio-worklet/basic/handling-errors/index.html @@ -118,7 +118,7 @@

Handling Errors

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/basic/hello-audio-worklet/index.html b/audio-worklet/basic/hello-audio-worklet/index.html index a8cff492b..c11821acc 100644 --- a/audio-worklet/basic/hello-audio-worklet/index.html +++ b/audio-worklet/basic/hello-audio-worklet/index.html @@ -117,7 +117,7 @@

Hello Audio Worklet!

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/basic/message-port/index.html b/audio-worklet/basic/message-port/index.html index 74a0600b3..3e31310d6 100644 --- a/audio-worklet/basic/message-port/index.html +++ b/audio-worklet/basic/message-port/index.html @@ -117,7 +117,7 @@

MessagePort

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/basic/noise-generator/index.html b/audio-worklet/basic/noise-generator/index.html index 7d715e7c9..aa57a5509 100644 --- a/audio-worklet/basic/noise-generator/index.html +++ b/audio-worklet/basic/noise-generator/index.html @@ -118,7 +118,7 @@

Noise generator with modulation

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/basic/one-pole-filter/index.html b/audio-worklet/basic/one-pole-filter/index.html index 209369af7..7496110e3 100644 --- a/audio-worklet/basic/one-pole-filter/index.html +++ b/audio-worklet/basic/one-pole-filter/index.html @@ -118,7 +118,7 @@

One Pole Filter

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/basic/volume-meter/index.html b/audio-worklet/basic/volume-meter/index.html index 41aad7b00..6f5bf3045 100644 --- a/audio-worklet/basic/volume-meter/index.html +++ b/audio-worklet/basic/volume-meter/index.html @@ -120,7 +120,7 @@

Volume Meter

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/design-pattern/shared-buffer/index.html b/audio-worklet/design-pattern/shared-buffer/index.html index 30ca66e7e..c63f99943 100644 --- a/audio-worklet/design-pattern/shared-buffer/index.html +++ b/audio-worklet/design-pattern/shared-buffer/index.html @@ -122,7 +122,7 @@

AudioWorklet, SharedArrayBuffer, and Worker

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/design-pattern/wasm-ring-buffer/index.html b/audio-worklet/design-pattern/wasm-ring-buffer/index.html index b45f963b7..977fb1e85 100644 --- a/audio-worklet/design-pattern/wasm-ring-buffer/index.html +++ b/audio-worklet/design-pattern/wasm-ring-buffer/index.html @@ -119,7 +119,7 @@

Ring Buffer in AudioWorkletProcessor

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/design-pattern/wasm-supersaw/index.html b/audio-worklet/design-pattern/wasm-supersaw/index.html index 54fabcd8c..0dd6dae20 100644 --- a/audio-worklet/design-pattern/wasm-supersaw/index.html +++ b/audio-worklet/design-pattern/wasm-supersaw/index.html @@ -130,7 +130,7 @@

WebAssembly Supersaw

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/design-pattern/wasm/index.html b/audio-worklet/design-pattern/wasm/index.html index 689bef7b3..8d21fa348 100644 --- a/audio-worklet/design-pattern/wasm/index.html +++ b/audio-worklet/design-pattern/wasm/index.html @@ -119,7 +119,7 @@

Audio Worklet and WebAssembly

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/free-queue/examples/simple-passthrough/index.html b/audio-worklet/free-queue/examples/simple-passthrough/index.html index a5519cfe7..41bcc04b1 100644 --- a/audio-worklet/free-queue/examples/simple-passthrough/index.html +++ b/audio-worklet/free-queue/examples/simple-passthrough/index.html @@ -122,7 +122,7 @@

Simple Passthrough Example

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/index.html b/audio-worklet/index.html index aaf6cae2e..d14e2b98c 100644 --- a/audio-worklet/index.html +++ b/audio-worklet/index.html @@ -270,7 +270,7 @@

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/migration/spn-recorder/index.html b/audio-worklet/migration/spn-recorder/index.html index 049060c86..cdb5a7d07 100644 --- a/audio-worklet/migration/spn-recorder/index.html +++ b/audio-worklet/migration/spn-recorder/index.html @@ -158,7 +158,7 @@

ScriptProcessorNode Audio Recorder

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/audio-worklet/migration/worklet-recorder/index.html b/audio-worklet/migration/worklet-recorder/index.html index 01d17d7a9..9d83147f9 100644 --- a/audio-worklet/migration/worklet-recorder/index.html +++ b/audio-worklet/migration/worklet-recorder/index.html @@ -158,7 +158,7 @@

AudioWorklet Recorder

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/demos/mld-drum-sampler/index.html b/demos/mld-drum-sampler/index.html index c4d831f18..e2b0dcd51 100644 --- a/demos/mld-drum-sampler/index.html +++ b/demos/mld-drum-sampler/index.html @@ -116,7 +116,7 @@

Web Audio API 드럼머신 만들기

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/experiments/index.html b/experiments/index.html index c1213d777..562904845 100644 --- a/experiments/index.html +++ b/experiments/index.html @@ -113,7 +113,7 @@

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/experiments/webgpuaudio/index.html b/experiments/webgpuaudio/index.html index 63b8fad8a..431f583f2 100644 --- a/experiments/webgpuaudio/index.html +++ b/experiments/webgpuaudio/index.html @@ -115,7 +115,7 @@

WebGPUAudio Experiment

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/index.html b/index.html index 046acdb60..3c6fde136 100644 --- a/index.html +++ b/index.html @@ -272,7 +272,7 @@

2010-2024 Chromium authors - (ee77b11) + (f15ab25)
diff --git a/rainfly/app/immutable/assets/0.3-12XX06.css b/rainfly/app/immutable/assets/0.Cg2pgm4m.css similarity index 100% rename from rainfly/app/immutable/assets/0.3-12XX06.css rename to rainfly/app/immutable/assets/0.Cg2pgm4m.css diff --git a/rainfly/app/immutable/assets/2.DvT9FAmw.css b/rainfly/app/immutable/assets/2.f83BqAMJ.css similarity index 100% rename from rainfly/app/immutable/assets/2.DvT9FAmw.css rename to rainfly/app/immutable/assets/2.f83BqAMJ.css diff --git a/rainfly/app/immutable/assets/_layout.3-12XX06.css b/rainfly/app/immutable/assets/_layout.Cg2pgm4m.css similarity index 100% rename from rainfly/app/immutable/assets/_layout.3-12XX06.css rename to rainfly/app/immutable/assets/_layout.Cg2pgm4m.css diff --git a/rainfly/app/immutable/assets/_page.DvT9FAmw.css b/rainfly/app/immutable/assets/_page.f83BqAMJ.css similarity index 100% rename from rainfly/app/immutable/assets/_page.DvT9FAmw.css rename to rainfly/app/immutable/assets/_page.f83BqAMJ.css diff --git a/rainfly/app/immutable/assets/editor.mWdEp5Nj.css b/rainfly/app/immutable/assets/editor.6bg1ayCN.css similarity index 100% rename from rainfly/app/immutable/assets/editor.mWdEp5Nj.css rename to rainfly/app/immutable/assets/editor.6bg1ayCN.css diff --git a/rainfly/app/immutable/assets/monaco.BnEVz9Wd.css b/rainfly/app/immutable/assets/monaco.CaV9jKTX.css similarity index 100% rename from rainfly/app/immutable/assets/monaco.BnEVz9Wd.css rename to rainfly/app/immutable/assets/monaco.CaV9jKTX.css diff --git a/rainfly/app/immutable/chunks/2.DvjlXEyI.js b/rainfly/app/immutable/chunks/2.cEacWIcT.js similarity index 99% rename from rainfly/app/immutable/chunks/2.DvjlXEyI.js rename to rainfly/app/immutable/chunks/2.cEacWIcT.js index b12dbdc7d..026a66f70 100644 --- a/rainfly/app/immutable/chunks/2.DvjlXEyI.js +++ b/rainfly/app/immutable/chunks/2.cEacWIcT.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./monaco.Ce4eSfmS.js","./editor.api.CvkiD53Q.js","../assets/editor.mWdEp5Nj.css","./preload-helper.C1FmrZbK.js","../assets/monaco.BnEVz9Wd.css","./index.DSQMO0PN.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./monaco.ByAmqjHr.js","./editor.api.DqIkMm5-.js","../assets/editor.6bg1ayCN.css","./preload-helper.C1FmrZbK.js","../assets/monaco.CaV9jKTX.css","./index.DpyOq8Qx.js"])))=>i.map(i=>d[i]); import{s as It,d as Vt,x as ye,u as Gt,g as Kt,e as Yt,r as ae,b as At,y as tr,o as ke,t as He,z as Mt,n as qt,A as Ae,c as se,B as er,C as Wt}from"./scheduler.C0ao50Yb.js";import{S as Ot,i as $t,e as at,t as Lt,s as bt,c as ot,a as ht,b as Ft,f as wt,d as X,o as rt,z as mt,g as ut,h as nt,A as Rt,j as oe,n as ft,l as dt,u as yt,v as kt,w as Et,x as Ct,k as ge,q as Ve,m as Ge,B as rr,C as Ut,D as le,E as nr,p as ce}from"./index.DZ_LNZJ9.js";import{w as Ke}from"./index.zclZ7hQ-.js";import{_ as De}from"./preload-helper.C1FmrZbK.js";const ir=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Le(g){return(g==null?void 0:g.length)!==void 0?g:Array.from(g)}const Te=new Map,sr=(g,f)=>(Te.set(g,f),{destroy:()=>Te.delete(g)});function ar(g){let f,t,u,a,e,s,n;const r=g[6].default,o=Vt(r,g,g[5],null);return{c(){f=at("div"),t=Lt(g[0]),u=bt(),a=at("dialog"),o&&o.c(),this.h()},l(p){f=ot(p,"DIV",{class:!0,role:!0,tabindex:!0});var h=ht(f);t=Ft(h,g[0]),u=wt(h),a=ot(h,"DIALOG",{class:!0});var b=ht(a);o&&o.l(b),b.forEach(X),h.forEach(X),this.h()},h(){rt(a,"class","bg-secondary m-0 py-1 rounded-b shadow-md w-max z-50 svelte-vgxygr"),mt(a,"fold",!g[2]),mt(a,"unfold",g[2]),rt(f,"class","flex hover:text-accent items-center relative select-none"),rt(f,"role","button"),rt(f,"tabindex","0"),mt(f,"text-accent",g[2])},m(p,h){ut(p,f,h),nt(f,t),nt(f,u),nt(f,a),o&&o.m(a,null),g[7](a),e=!0,s||(n=[Rt(f,"click",g[3]),Rt(f,"keydown",g[3]),ye(sr.call(null,f,g[4]))],s=!0)},p(p,[h]){(!e||h&1)&&oe(t,p[0]),o&&o.p&&(!e||h&32)&&Gt(o,r,p,p[5],e?Yt(r,p[5],h,null):Kt(p[5]),null),(!e||h&4)&&mt(a,"fold",!p[2]),(!e||h&4)&&mt(a,"unfold",p[2]),(!e||h&4)&&mt(f,"text-accent",p[2])},i(p){e||(ft(o,p),e=!0)},o(p){dt(o,p),e=!1},d(p){p&&X(f),o&&o.d(p),g[7](null),s=!1,ae(n)}}}function or(g,f,t){let{$$slots:u={},$$scope:a}=f,{name:e}=f,s,n=!1;const r=()=>{n?setTimeout(()=>s.close(),200):s.show(),t(2,n=!n)},o=()=>{setTimeout(()=>s.close(),200),t(2,n=!1)};function p(h){At[h?"unshift":"push"](()=>{s=h,t(1,s)})}return g.$$set=h=>{"name"in h&&t(0,e=h.name),"$$scope"in h&&t(5,a=h.$$scope)},[e,s,n,r,o,a,u,p]}class Oe extends Ot{constructor(f){super(),$t(this,f,or,ar,It,{name:0})}}const lr=g=>({}),Fe=g=>({});function ur(g){let f,t,u,a,e;const s=g[1].icon,n=Vt(s,g,g[0],Fe),r=g[1].default,o=Vt(r,g,g[0],null);return{c(){f=at("button"),n&&n.c(),t=bt(),o&&o.c(),this.h()},l(p){f=ot(p,"BUTTON",{class:!0});var h=ht(f);n&&n.l(h),t=wt(h),o&&o.l(h),h.forEach(X),this.h()},h(){rt(f,"class","flex gap-2 hover:border-l-blue-600 hover:text-accent items-center px-4 py-2 transition min-w-32")},m(p,h){ut(p,f,h),n&&n.m(f,null),nt(f,t),o&&o.m(f,null),u=!0,a||(e=Rt(f,"click",g[2]),a=!0)},p(p,[h]){n&&n.p&&(!u||h&1)&&Gt(n,s,p,p[0],u?Yt(s,p[0],h,lr):Kt(p[0]),Fe),o&&o.p&&(!u||h&1)&&Gt(o,r,p,p[0],u?Yt(r,p[0],h,null):Kt(p[0]),null)},i(p){u||(ft(n,p),ft(o,p),u=!0)},o(p){dt(n,p),dt(o,p),u=!1},d(p){p&&X(f),n&&n.d(p),o&&o.d(p),a=!1,e()}}}function fr(g,f,t){let{$$slots:u={},$$scope:a}=f;function e(s){tr.call(this,g,s)}return g.$$set=s=>{"$$scope"in s&&t(0,a=s.$$scope)},[a,u,e]}class ve extends Ot{constructor(f){super(),$t(this,f,fr,ur,It,{})}}var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cr(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}function In(g){if(g.__esModule)return g;var f=g.default;if(typeof f=="function"){var t=function u(){return this instanceof u?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};t.prototype=f.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(g).forEach(function(u){var a=Object.getOwnPropertyDescriptor(g,u);Object.defineProperty(t,u,a.get?a:{enumerable:!0,get:function(){return g[u]}})}),t}function he(g){throw new Error('Could not dynamically require "'+g+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ye={exports:{}};/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files @@ -13,4 +13,4 @@ https://github.com/nodeca/pako/blob/main/LICENSE \0`,K+=e(R,2),K+=F.magic,K+=e(C,2),K+=e(x,2),K+=e(et.crc32,4),K+=e(et.compressedSize,4),K+=e(et.uncompressedSize,4),K+=e(B.length,2),K+=e(z.length,2),{fileRecord:h.LOCAL_FILE_HEADER+K+B+z,dirRecord:h.CENTRAL_FILE_HEADER+e(tt,2)+K+e(q.length,2)+"\0\0\0\0"+e($,4)+e(_,4)+B+z+q}}var n=t("../utils"),r=t("../stream/GenericWorker"),o=t("../utf8"),p=t("../crc32"),h=t("../signature");function b(d,w,c,_){r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=w,this.zipPlatform=c,this.encodeFileName=_,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,r),b.prototype.push=function(d){var w=d.meta.percent||0,c=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,r.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:c?(w+100*(c-_-1))/c:100}}))},b.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var w=this.streamFiles&&!d.file.dir;if(w){var c=s(d,w,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(d){this.accumulate=!1;var w=this.streamFiles&&!d.file.dir,c=s(d,w,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),w)this.push({data:function(_){return h.DATA_DESCRIPTOR+e(_.crc32,4)+e(_.compressedSize,4)+e(_.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var d=this.bytesWritten,w=0;w=this.index;r--)o=(o<<8)+this.byteAt(r);return this.index+=n,o},readString:function(n){return e.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},u.exports=s},{"../utils":32}],19:[function(t,u,a){var e=t("./Uint8ArrayReader");function s(n){e.call(this,n)}t("../utils").inherits(s,e),s.prototype.readData=function(n){this.checkOffset(n);var r=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,r},u.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,u,a){var e=t("./DataReader");function s(n){e.call(this,n)}t("../utils").inherits(s,e),s.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},s.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},s.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},s.prototype.readData=function(n){this.checkOffset(n);var r=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,r},u.exports=s},{"../utils":32,"./DataReader":18}],21:[function(t,u,a){var e=t("./ArrayReader");function s(n){e.call(this,n)}t("../utils").inherits(s,e),s.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var r=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,r},u.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(t,u,a){var e=t("../utils"),s=t("../support"),n=t("./ArrayReader"),r=t("./StringReader"),o=t("./NodeBufferReader"),p=t("./Uint8ArrayReader");u.exports=function(h){var b=e.getTypeOf(h);return e.checkSupport(b),b!=="string"||s.uint8array?b==="nodebuffer"?new o(h):s.uint8array?new p(e.transformTo("uint8array",h)):new n(e.transformTo("array",h)):new r(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,u,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,u,a){var e=t("./GenericWorker"),s=t("../utils");function n(r){e.call(this,"ConvertWorker to "+r),this.destType=r}s.inherits(n,e),n.prototype.processChunk=function(r){this.push({data:s.transformTo(this.destType,r.data),meta:r.meta})},u.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(t,u,a){var e=t("./GenericWorker"),s=t("../crc32");function n(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(n,e),n.prototype.processChunk=function(r){this.streamInfo.crc32=s(r.data,this.streamInfo.crc32||0),this.push(r)},u.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,u,a){var e=t("../utils"),s=t("./GenericWorker");function n(r){s.call(this,"DataLengthProbe for "+r),this.propName=r,this.withStreamInfo(r,0)}e.inherits(n,s),n.prototype.processChunk=function(r){if(r){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+r.data.length}s.prototype.processChunk.call(this,r)},u.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(t,u,a){var e=t("../utils"),s=t("./GenericWorker");function n(r){s.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,r.then(function(p){o.dataIsReady=!0,o.data=p,o.max=p&&p.length||0,o.type=e.getTypeOf(p),o.isPaused||o._tickAndRepeat()},function(p){o.error(p)})}e.inherits(n,s),n.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,e.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(e.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var r=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":r=this.data.substring(this.index,o);break;case"uint8array":r=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":r=this.data.slice(this.index,o)}return this.index=o,this.push({data:r,meta:{percent:this.max?this.index/this.max*100:0}})},u.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(t,u,a){function e(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}e.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,n){return this._listeners[s].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,n){if(this._listeners[s])for(var r=0;r "+s:s}},u.exports=e},{}],29:[function(t,u,a){var e=t("../utils"),s=t("./ConvertWorker"),n=t("./GenericWorker"),r=t("../base64"),o=t("../support"),p=t("../external"),h=null;if(o.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(w,c){return new p.Promise(function(_,m){var k=[],C=w._internalType,x=w._outputType,A=w._mimeType;w.on("data",function(F,O){k.push(F),c&&c(O)}).on("error",function(F){k=[],m(F)}).on("end",function(){try{var F=function(O,B,T){switch(O){case"blob":return e.newBlob(e.transformTo("arraybuffer",B),T);case"base64":return r.encode(B);default:return e.transformTo(O,B)}}(x,function(O,B){var T,j=0,q=null,E=0;for(T=0;T"u")a.blob=!1;else{var e=new ArrayBuffer(0);try{a.blob=new Blob([e],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(e),a.blob=s.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!t("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(t,u,a){for(var e=t("./utils"),s=t("./support"),n=t("./nodejsUtils"),r=t("./stream/GenericWorker"),o=new Array(256),p=0;p<256;p++)o[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;o[254]=o[254]=1;function h(){r.call(this,"utf-8 decode"),this.leftOver=null}function b(){r.call(this,"utf-8 encode")}a.utf8encode=function(d){return s.nodebuffer?n.newBufferFrom(d,"utf-8"):function(w){var c,_,m,k,C,x=w.length,A=0;for(k=0;k>>6:(_<65536?c[C++]=224|_>>>12:(c[C++]=240|_>>>18,c[C++]=128|_>>>12&63),c[C++]=128|_>>>6&63),c[C++]=128|63&_);return c}(d)},a.utf8decode=function(d){return s.nodebuffer?e.transformTo("nodebuffer",d).toString("utf-8"):function(w){var c,_,m,k,C=w.length,x=new Array(2*C);for(c=_=0;c>10&1023,x[_++]=56320|1023&m)}return x.length!==_&&(x.subarray?x=x.subarray(0,_):x.length=_),e.applyFromCharCode(x)}(d=e.transformTo(s.uint8array?"uint8array":"array",d))},e.inherits(h,r),h.prototype.processChunk=function(d){var w=e.transformTo(s.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var c=w;(w=new Uint8Array(c.length+this.leftOver.length)).set(this.leftOver,0),w.set(c,this.leftOver.length)}else w=this.leftOver.concat(w);this.leftOver=null}var _=function(k,C){var x;for((C=C||k.length)>k.length&&(C=k.length),x=C-1;0<=x&&(192&k[x])==128;)x--;return x<0||x===0?C:x+o[k[x]]>C?x:C}(w),m=w;_!==w.length&&(s.uint8array?(m=w.subarray(0,_),this.leftOver=w.subarray(_,w.length)):(m=w.slice(0,_),this.leftOver=w.slice(_,w.length))),this.push({data:a.utf8decode(m),meta:d.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=h,e.inherits(b,r),b.prototype.processChunk=function(d){this.push({data:a.utf8encode(d.data),meta:d.meta})},a.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,u,a){var e=t("./support"),s=t("./base64"),n=t("./nodejsUtils"),r=t("./external");function o(c){return c}function p(c,_){for(var m=0;m>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=e(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var w,c,_,m=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4>>6:(d<65536?b[_++]=224|d>>>12:(b[_++]=240|d>>>18,b[_++]=128|d>>>12&63),b[_++]=128|d>>>6&63),b[_++]=128|63&d);return b},a.buf2binstring=function(h){return p(h,h.length)},a.binstring2buf=function(h){for(var b=new e.Buf8(h.length),d=0,w=b.length;d>10&1023,k[w++]=56320|1023&c)}return p(k,w)},a.utf8border=function(h,b){var d;for((b=b||h.length)>h.length&&(b=h.length),d=b-1;0<=d&&(192&h[d])==128;)d--;return d<0||d===0?b:d+r[h[d]]>b?d:b}},{"./common":41}],43:[function(t,u,a){u.exports=function(e,s,n,r){for(var o=65535&e|0,p=e>>>16&65535|0,h=0;n!==0;){for(n-=h=2e3>>1:s>>>1;n[r]=s}return n}();u.exports=function(s,n,r,o){var p=e,h=o+r;s^=-1;for(var b=o;b>>8^p[255&(s^n[b])];return-1^s}},{}],46:[function(t,u,a){var e,s=t("../utils/common"),n=t("./trees"),r=t("./adler32"),o=t("./crc32"),p=t("./messages"),h=0,b=4,d=0,w=-2,c=-1,_=4,m=2,k=8,C=9,x=286,A=30,F=19,O=2*x+1,B=15,T=3,j=258,q=j+T+1,E=42,L=113,l=1,z=2,G=3,N=4;function Q(i,P){return i.msg=p[P],P}function W(i){return(i<<1)-(4i.avail_out&&(D=i.avail_out),D!==0&&(s.arraySet(i.output,P.pending_buf,P.pending_out,D,i.next_out),i.next_out+=D,P.pending_out+=D,i.total_out+=D,i.avail_out-=D,P.pending-=D,P.pending===0&&(P.pending_out=0))}function $(i,P){n._tr_flush_block(i,0<=i.block_start?i.block_start:-1,i.strstart-i.block_start,P),i.block_start=i.strstart,R(i.strm)}function tt(i,P){i.pending_buf[i.pending++]=P}function K(i,P){i.pending_buf[i.pending++]=P>>>8&255,i.pending_buf[i.pending++]=255&P}function V(i,P){var D,y,v=i.max_chain_length,S=i.strstart,M=i.prev_length,U=i.nice_match,I=i.strstart>i.w_size-q?i.strstart-(i.w_size-q):0,Z=i.window,Y=i.w_mask,H=i.prev,J=i.strstart+j,pt=Z[S+M-1],st=Z[S+M];i.prev_length>=i.good_match&&(v>>=2),U>i.lookahead&&(U=i.lookahead);do if(Z[(D=P)+M]===st&&Z[D+M-1]===pt&&Z[D]===Z[S]&&Z[++D]===Z[S+1]){S+=2,D++;do;while(Z[++S]===Z[++D]&&Z[++S]===Z[++D]&&Z[++S]===Z[++D]&&Z[++S]===Z[++D]&&Z[++S]===Z[++D]&&Z[++S]===Z[++D]&&Z[++S]===Z[++D]&&Z[++S]===Z[++D]&&SI&&--v!=0);return M<=i.lookahead?M:i.lookahead}function _t(i){var P,D,y,v,S,M,U,I,Z,Y,H=i.w_size;do{if(v=i.window_size-i.lookahead-i.strstart,i.strstart>=H+(H-q)){for(s.arraySet(i.window,i.window,H,H,0),i.match_start-=H,i.strstart-=H,i.block_start-=H,P=D=i.hash_size;y=i.head[--P],i.head[P]=H<=y?y-H:0,--D;);for(P=D=H;y=i.prev[--P],i.prev[P]=H<=y?y-H:0,--D;);v+=H}if(i.strm.avail_in===0)break;if(M=i.strm,U=i.window,I=i.strstart+i.lookahead,Z=v,Y=void 0,Y=M.avail_in,Z=T)for(S=i.strstart-i.insert,i.ins_h=i.window[S],i.ins_h=(i.ins_h<=T&&(i.ins_h=(i.ins_h<=T)if(y=n._tr_tally(i,i.strstart-i.match_start,i.match_length-T),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=T){for(i.match_length--;i.strstart++,i.ins_h=(i.ins_h<=T&&(i.ins_h=(i.ins_h<=T&&i.match_length<=i.prev_length){for(v=i.strstart+i.lookahead-T,y=n._tr_tally(i,i.strstart-1-i.prev_match,i.prev_length-T),i.lookahead-=i.prev_length-1,i.prev_length-=2;++i.strstart<=v&&(i.ins_h=(i.ins_h<i.pending_buf_size-5&&(D=i.pending_buf_size-5);;){if(i.lookahead<=1){if(_t(i),i.lookahead===0&&P===h)return l;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var y=i.block_start+D;if((i.strstart===0||i.strstart>=y)&&(i.lookahead=i.strstart-y,i.strstart=y,$(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-q&&($(i,!1),i.strm.avail_out===0))return l}return i.insert=0,P===b?($(i,!0),i.strm.avail_out===0?G:N):(i.strstart>i.block_start&&($(i,!1),i.strm.avail_out),l)}),new ct(4,4,8,4,zt),new ct(4,5,16,8,zt),new ct(4,6,32,32,zt),new ct(4,4,16,16,it),new ct(8,16,32,32,it),new ct(8,16,128,128,it),new ct(8,32,128,256,it),new ct(32,128,258,1024,it),new ct(32,258,258,4096,it)],a.deflateInit=function(i,P){return Dt(i,P,k,15,8,0)},a.deflateInit2=Dt,a.deflateReset=Pt,a.deflateResetKeep=gt,a.deflateSetHeader=function(i,P){return i&&i.state?i.state.wrap!==2?w:(i.state.gzhead=P,d):w},a.deflate=function(i,P){var D,y,v,S;if(!i||!i.state||5>8&255),tt(y,y.gzhead.time>>16&255),tt(y,y.gzhead.time>>24&255),tt(y,y.level===9?2:2<=y.strategy||y.level<2?4:0),tt(y,255&y.gzhead.os),y.gzhead.extra&&y.gzhead.extra.length&&(tt(y,255&y.gzhead.extra.length),tt(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(i.adler=o(i.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(tt(y,0),tt(y,0),tt(y,0),tt(y,0),tt(y,0),tt(y,y.level===9?2:2<=y.strategy||y.level<2?4:0),tt(y,3),y.status=L);else{var M=k+(y.w_bits-8<<4)<<8;M|=(2<=y.strategy||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6,y.strstart!==0&&(M|=32),M+=31-M%31,y.status=L,K(y,M),y.strstart!==0&&(K(y,i.adler>>>16),K(y,65535&i.adler)),i.adler=1}if(y.status===69)if(y.gzhead.extra){for(v=y.pending;y.gzindex<(65535&y.gzhead.extra.length)&&(y.pending!==y.pending_buf_size||(y.gzhead.hcrc&&y.pending>v&&(i.adler=o(i.adler,y.pending_buf,y.pending-v,v)),R(i),v=y.pending,y.pending!==y.pending_buf_size));)tt(y,255&y.gzhead.extra[y.gzindex]),y.gzindex++;y.gzhead.hcrc&&y.pending>v&&(i.adler=o(i.adler,y.pending_buf,y.pending-v,v)),y.gzindex===y.gzhead.extra.length&&(y.gzindex=0,y.status=73)}else y.status=73;if(y.status===73)if(y.gzhead.name){v=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>v&&(i.adler=o(i.adler,y.pending_buf,y.pending-v,v)),R(i),v=y.pending,y.pending===y.pending_buf_size)){S=1;break}S=y.gzindexv&&(i.adler=o(i.adler,y.pending_buf,y.pending-v,v)),S===0&&(y.gzindex=0,y.status=91)}else y.status=91;if(y.status===91)if(y.gzhead.comment){v=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>v&&(i.adler=o(i.adler,y.pending_buf,y.pending-v,v)),R(i),v=y.pending,y.pending===y.pending_buf_size)){S=1;break}S=y.gzindexv&&(i.adler=o(i.adler,y.pending_buf,y.pending-v,v)),S===0&&(y.status=103)}else y.status=103;if(y.status===103&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&R(i),y.pending+2<=y.pending_buf_size&&(tt(y,255&i.adler),tt(y,i.adler>>8&255),i.adler=0,y.status=L)):y.status=L),y.pending!==0){if(R(i),i.avail_out===0)return y.last_flush=-1,d}else if(i.avail_in===0&&W(P)<=W(D)&&P!==b)return Q(i,-5);if(y.status===666&&i.avail_in!==0)return Q(i,-5);if(i.avail_in!==0||y.lookahead!==0||P!==h&&y.status!==666){var U=y.strategy===2?function(I,Z){for(var Y;;){if(I.lookahead===0&&(_t(I),I.lookahead===0)){if(Z===h)return l;break}if(I.match_length=0,Y=n._tr_tally(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++,Y&&($(I,!1),I.strm.avail_out===0))return l}return I.insert=0,Z===b?($(I,!0),I.strm.avail_out===0?G:N):I.last_lit&&($(I,!1),I.strm.avail_out===0)?l:z}(y,P):y.strategy===3?function(I,Z){for(var Y,H,J,pt,st=I.window;;){if(I.lookahead<=j){if(_t(I),I.lookahead<=j&&Z===h)return l;if(I.lookahead===0)break}if(I.match_length=0,I.lookahead>=T&&0I.lookahead&&(I.match_length=I.lookahead)}if(I.match_length>=T?(Y=n._tr_tally(I,1,I.match_length-T),I.lookahead-=I.match_length,I.strstart+=I.match_length,I.match_length=0):(Y=n._tr_tally(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++),Y&&($(I,!1),I.strm.avail_out===0))return l}return I.insert=0,Z===b?($(I,!0),I.strm.avail_out===0?G:N):I.last_lit&&($(I,!1),I.strm.avail_out===0)?l:z}(y,P):e[y.level].func(y,P);if(U!==G&&U!==N||(y.status=666),U===l||U===G)return i.avail_out===0&&(y.last_flush=-1),d;if(U===z&&(P===1?n._tr_align(y):P!==5&&(n._tr_stored_block(y,0,0,!1),P===3&&(et(y.head),y.lookahead===0&&(y.strstart=0,y.block_start=0,y.insert=0))),R(i),i.avail_out===0))return y.last_flush=-1,d}return P!==b?d:y.wrap<=0?1:(y.wrap===2?(tt(y,255&i.adler),tt(y,i.adler>>8&255),tt(y,i.adler>>16&255),tt(y,i.adler>>24&255),tt(y,255&i.total_in),tt(y,i.total_in>>8&255),tt(y,i.total_in>>16&255),tt(y,i.total_in>>24&255)):(K(y,i.adler>>>16),K(y,65535&i.adler)),R(i),0=D.w_size&&(S===0&&(et(D.head),D.strstart=0,D.block_start=0,D.insert=0),Z=new s.Buf8(D.w_size),s.arraySet(Z,P,Y-D.w_size,D.w_size,0),P=Z,Y=D.w_size),M=i.avail_in,U=i.next_in,I=i.input,i.avail_in=Y,i.next_in=0,i.input=P,_t(D);D.lookahead>=T;){for(y=D.strstart,v=D.lookahead-(T-1);D.ins_h=(D.ins_h<>>=T=B>>>24,C-=T,(T=B>>>16&255)===0)z[p++]=65535&B;else{if(!(16&T)){if(!(64&T)){B=x[(65535&B)+(k&(1<>>=T,C-=T),C<15&&(k+=l[r++]<>>=T=B>>>24,C-=T,!(16&(T=B>>>16&255))){if(!(64&T)){B=A[(65535&B)+(k&(1<>>=T,C-=T,(T=p-h)>3,k&=(1<<(C-=j<<3))-1,e.next_in=r,e.next_out=p,e.avail_in=r>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function k(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(E){var L;return E&&E.state?(L=E.state,E.total_in=E.total_out=L.total=0,E.msg="",L.wrap&&(E.adler=1&L.wrap),L.mode=w,L.last=0,L.havedict=0,L.dmax=32768,L.head=null,L.hold=0,L.bits=0,L.lencode=L.lendyn=new e.Buf32(c),L.distcode=L.distdyn=new e.Buf32(_),L.sane=1,L.back=-1,b):d}function x(E){var L;return E&&E.state?((L=E.state).wsize=0,L.whave=0,L.wnext=0,C(E)):d}function A(E,L){var l,z;return E&&E.state?(z=E.state,L<0?(l=0,L=-L):(l=1+(L>>4),L<48&&(L&=15)),L&&(L<8||15=N.wsize?(e.arraySet(N.window,L,l-N.wsize,N.wsize,0),N.wnext=0,N.whave=N.wsize):(z<(G=N.wsize-N.wnext)&&(G=z),e.arraySet(N.window,L,l-z,G,N.wnext),(z-=G)?(e.arraySet(N.window,L,l-z,z,0),N.wnext=z,N.whave=N.wsize):(N.wnext+=G,N.wnext===N.wsize&&(N.wnext=0),N.whave>>8&255,l.check=n(l.check,S,2,0),$=R=0,l.mode=2;break}if(l.flags=0,l.head&&(l.head.done=!1),!(1&l.wrap)||(((255&R)<<8)+(R>>8))%31){E.msg="incorrect header check",l.mode=30;break}if((15&R)!=8){E.msg="unknown compression method",l.mode=30;break}if($-=4,i=8+(15&(R>>>=4)),l.wbits===0)l.wbits=i;else if(i>l.wbits){E.msg="invalid window size",l.mode=30;break}l.dmax=1<>8&1),512&l.flags&&(S[0]=255&R,S[1]=R>>>8&255,l.check=n(l.check,S,2,0)),$=R=0,l.mode=3;case 3:for(;$<32;){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}l.head&&(l.head.time=R),512&l.flags&&(S[0]=255&R,S[1]=R>>>8&255,S[2]=R>>>16&255,S[3]=R>>>24&255,l.check=n(l.check,S,4,0)),$=R=0,l.mode=4;case 4:for(;$<16;){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}l.head&&(l.head.xflags=255&R,l.head.os=R>>8),512&l.flags&&(S[0]=255&R,S[1]=R>>>8&255,l.check=n(l.check,S,2,0)),$=R=0,l.mode=5;case 5:if(1024&l.flags){for(;$<16;){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}l.length=R,l.head&&(l.head.extra_len=R),512&l.flags&&(S[0]=255&R,S[1]=R>>>8&255,l.check=n(l.check,S,2,0)),$=R=0}else l.head&&(l.head.extra=null);l.mode=6;case 6:if(1024&l.flags&&(W<(V=l.length)&&(V=W),V&&(l.head&&(i=l.head.extra_len-l.length,l.head.extra||(l.head.extra=new Array(l.head.extra_len)),e.arraySet(l.head.extra,z,N,V,i)),512&l.flags&&(l.check=n(l.check,z,V,N)),W-=V,N+=V,l.length-=V),l.length))break t;l.length=0,l.mode=7;case 7:if(2048&l.flags){if(W===0)break t;for(V=0;i=z[N+V++],l.head&&i&&l.length<65536&&(l.head.name+=String.fromCharCode(i)),i&&V>9&1,l.head.done=!0),E.adler=l.check=0,l.mode=12;break;case 10:for(;$<32;){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}E.adler=l.check=m(R),$=R=0,l.mode=11;case 11:if(l.havedict===0)return E.next_out=Q,E.avail_out=et,E.next_in=N,E.avail_in=W,l.hold=R,l.bits=$,2;E.adler=l.check=1,l.mode=12;case 12:if(L===5||L===6)break t;case 13:if(l.last){R>>>=7&$,$-=7&$,l.mode=27;break}for(;$<3;){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}switch(l.last=1&R,$-=1,3&(R>>>=1)){case 0:l.mode=14;break;case 1:if(j(l),l.mode=20,L!==6)break;R>>>=2,$-=2;break t;case 2:l.mode=17;break;case 3:E.msg="invalid block type",l.mode=30}R>>>=2,$-=2;break;case 14:for(R>>>=7&$,$-=7&$;$<32;){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}if((65535&R)!=(R>>>16^65535)){E.msg="invalid stored block lengths",l.mode=30;break}if(l.length=65535&R,$=R=0,l.mode=15,L===6)break t;case 15:l.mode=16;case 16:if(V=l.length){if(W>>=5,$-=5,l.ndist=1+(31&R),R>>>=5,$-=5,l.ncode=4+(15&R),R>>>=4,$-=4,286>>=3,$-=3}for(;l.have<19;)l.lens[M[l.have++]]=0;if(l.lencode=l.lendyn,l.lenbits=7,D={bits:l.lenbits},P=o(0,l.lens,0,19,l.lencode,0,l.work,D),l.lenbits=D.bits,P){E.msg="invalid code lengths set",l.mode=30;break}l.have=0,l.mode=19;case 19:for(;l.have>>16&255,xt=65535&v,!((it=v>>>24)<=$);){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}if(xt<16)R>>>=it,$-=it,l.lens[l.have++]=xt;else{if(xt===16){for(y=it+2;$>>=it,$-=it,l.have===0){E.msg="invalid bit length repeat",l.mode=30;break}i=l.lens[l.have-1],V=3+(3&R),R>>>=2,$-=2}else if(xt===17){for(y=it+3;$>>=it)),R>>>=3,$-=3}else{for(y=it+7;$>>=it)),R>>>=7,$-=7}if(l.have+V>l.nlen+l.ndist){E.msg="invalid bit length repeat",l.mode=30;break}for(;V--;)l.lens[l.have++]=i}}if(l.mode===30)break;if(l.lens[256]===0){E.msg="invalid code -- missing end-of-block",l.mode=30;break}if(l.lenbits=9,D={bits:l.lenbits},P=o(p,l.lens,0,l.nlen,l.lencode,0,l.work,D),l.lenbits=D.bits,P){E.msg="invalid literal/lengths set",l.mode=30;break}if(l.distbits=6,l.distcode=l.distdyn,D={bits:l.distbits},P=o(h,l.lens,l.nlen,l.ndist,l.distcode,0,l.work,D),l.distbits=D.bits,P){E.msg="invalid distances set",l.mode=30;break}if(l.mode=20,L===6)break t;case 20:l.mode=21;case 21:if(6<=W&&258<=et){E.next_out=Q,E.avail_out=et,E.next_in=N,E.avail_in=W,l.hold=R,l.bits=$,r(E,K),Q=E.next_out,G=E.output,et=E.avail_out,N=E.next_in,z=E.input,W=E.avail_in,R=l.hold,$=l.bits,l.mode===12&&(l.back=-1);break}for(l.back=0;ct=(v=l.lencode[R&(1<>>16&255,xt=65535&v,!((it=v>>>24)<=$);){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}if(ct&&!(240&ct)){for(gt=it,Pt=ct,Dt=xt;ct=(v=l.lencode[Dt+((R&(1<>gt)])>>>16&255,xt=65535&v,!(gt+(it=v>>>24)<=$);){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}R>>>=gt,$-=gt,l.back+=gt}if(R>>>=it,$-=it,l.back+=it,l.length=xt,ct===0){l.mode=26;break}if(32&ct){l.back=-1,l.mode=12;break}if(64&ct){E.msg="invalid literal/length code",l.mode=30;break}l.extra=15&ct,l.mode=22;case 22:if(l.extra){for(y=l.extra;$>>=l.extra,$-=l.extra,l.back+=l.extra}l.was=l.length,l.mode=23;case 23:for(;ct=(v=l.distcode[R&(1<>>16&255,xt=65535&v,!((it=v>>>24)<=$);){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}if(!(240&ct)){for(gt=it,Pt=ct,Dt=xt;ct=(v=l.distcode[Dt+((R&(1<>gt)])>>>16&255,xt=65535&v,!(gt+(it=v>>>24)<=$);){if(W===0)break t;W--,R+=z[N++]<<$,$+=8}R>>>=gt,$-=gt,l.back+=gt}if(R>>>=it,$-=it,l.back+=it,64&ct){E.msg="invalid distance code",l.mode=30;break}l.offset=xt,l.extra=15&ct,l.mode=24;case 24:if(l.extra){for(y=l.extra;$>>=l.extra,$-=l.extra,l.back+=l.extra}if(l.offset>l.dmax){E.msg="invalid distance too far back",l.mode=30;break}l.mode=25;case 25:if(et===0)break t;if(V=K-et,l.offset>V){if((V=l.offset-V)>l.whave&&l.sane){E.msg="invalid distance too far back",l.mode=30;break}_t=V>l.wnext?(V-=l.wnext,l.wsize-V):l.wnext-V,V>l.length&&(V=l.length),zt=l.window}else zt=G,_t=Q-l.offset,V=l.length;for(etO?(T=_t[zt+_[L]],$[tt+_[L]]):(T=96,0),k=1<>Q)+(C-=k)]=B<<24|T<<16|j|0,C!==0;);for(k=1<>=1;if(k!==0?(R&=k-1,R+=k):R=0,L++,--K[E]==0){if(E===z)break;E=h[b+_[L]]}if(G>>7)]}function tt(v,S){v.pending_buf[v.pending++]=255&S,v.pending_buf[v.pending++]=S>>>8&255}function K(v,S,M){v.bi_valid>m-M?(v.bi_buf|=S<>m-v.bi_valid,v.bi_valid+=M-m):(v.bi_buf|=S<>>=1,M<<=1,0<--S;);return M>>>1}function zt(v,S,M){var U,I,Z=new Array(_+1),Y=0;for(U=1;U<=_;U++)Z[U]=Y=Y+M[U-1]<<1;for(I=0;I<=S;I++){var H=v[2*I+1];H!==0&&(v[2*I]=_t(Z[H]++,H))}}function it(v){var S;for(S=0;S>1;1<=M;M--)gt(v,Z,M);for(I=J;M=v.heap[1],v.heap[1]=v.heap[v.heap_len--],gt(v,Z,1),U=v.heap[1],v.heap[--v.heap_max]=M,v.heap[--v.heap_max]=U,Z[2*I]=Z[2*M]+Z[2*U],v.depth[I]=(v.depth[M]>=v.depth[U]?v.depth[M]:v.depth[U])+1,Z[2*M+1]=Z[2*U+1]=I,v.heap[1]=I++,gt(v,Z,1),2<=v.heap_len;);v.heap[--v.heap_max]=v.heap[1],function(st,Bt){var Xt,jt,Jt,vt,ue,Ee,Nt=Bt.dyn_tree,Be=Bt.max_code,Xe=Bt.stat_desc.static_tree,Je=Bt.stat_desc.has_stree,Qe=Bt.stat_desc.extra_bits,Re=Bt.stat_desc.extra_base,Qt=Bt.stat_desc.max_length,fe=0;for(vt=0;vt<=_;vt++)st.bl_count[vt]=0;for(Nt[2*st.heap[st.heap_max]+1]=0,Xt=st.heap_max+1;Xt>=7;I>>=1)if(1&pt&&H.dyn_ltree[2*J]!==0)return s;if(H.dyn_ltree[18]!==0||H.dyn_ltree[20]!==0||H.dyn_ltree[26]!==0)return n;for(J=32;J>>3,(Z=v.static_len+3+7>>>3)<=I&&(I=Z)):I=Z=M+5,M+4<=I&&S!==-1?y(v,S,M,U):v.strategy===4||Z===I?(K(v,2+(U?1:0),3),Pt(v,q,E)):(K(v,4+(U?1:0),3),function(H,J,pt,st){var Bt;for(K(H,J-257,5),K(H,pt-1,5),K(H,st-4,4),Bt=0;Bt>>8&255,v.pending_buf[v.d_buf+2*v.last_lit+1]=255&S,v.pending_buf[v.l_buf+v.last_lit]=255&M,v.last_lit++,S===0?v.dyn_ltree[2*M]++:(v.matches++,S--,v.dyn_ltree[2*(l[M]+h+1)]++,v.dyn_dtree[2*$(S)]++),v.last_lit===v.lit_bufsize-1},a._tr_align=function(v){K(v,2,3),V(v,C,q),function(S){S.bi_valid===16?(tt(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):8<=S.bi_valid&&(S.pending_buf[S.pending++]=255&S.bi_buf,S.bi_buf>>=8,S.bi_valid-=8)}(v)}},{"../utils/common":41}],53:[function(t,u,a){u.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,u,a){(function(e){(function(s,n){if(!s.setImmediate){var r,o,p,h,b=1,d={},w=!1,c=s.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(s);_=_&&_.setTimeout?_:s,r={}.toString.call(s.process)==="[object process]"?function(x){process.nextTick(function(){k(x)})}:function(){if(s.postMessage&&!s.importScripts){var x=!0,A=s.onmessage;return s.onmessage=function(){x=!1},s.postMessage("","*"),s.onmessage=A,x}}()?(h="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",C,!1):s.attachEvent("onmessage",C),function(x){s.postMessage(h+x,"*")}):s.MessageChannel?((p=new MessageChannel).port1.onmessage=function(x){k(x.data)},function(x){p.port2.postMessage(x)}):c&&"onreadystatechange"in c.createElement("script")?(o=c.documentElement,function(x){var A=c.createElement("script");A.onreadystatechange=function(){k(x),A.onreadystatechange=null,o.removeChild(A),A=null},o.appendChild(A)}):function(x){setTimeout(k,0,x)},_.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var A=new Array(arguments.length-1),F=0;F"u"?e===void 0?this:e:self)}).call(this,typeof de<"u"?de:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ye);var dr=Ye.exports;const hr=cr(dr);async function be(g){let f=g.split("/").pop();(f===void 0||f==="")&&(f=g);try{const t=await fetch(g);if(!t.ok)throw new Error(`Failed to fetch ${g}`);const u=await t.text();return{name:f,data:u}}catch(t){return{name:f,data:"error: "+t.message}}}async function pr(g){const f=new hr;for(const[t,u]of Object.entries(g))f.file(t,u);return f.generateAsync({type:"blob"})}function Pe(g,f,t){const u=g.slice();return u[4]=f[t],u}function mr(g){let f=g[4].name+"",t,u;return{c(){t=Lt(f),u=bt()},l(a){t=Ft(a,f),u=wt(a)},m(a,e){ut(a,t,e),ut(a,u,e)},p(a,e){e&1&&f!==(f=a[4].name+"")&&oe(t,f)},d(a){a&&(X(t),X(u))}}}function je(g){let f,t;function u(){return g[2](g[4])}return f=new ve({props:{$$slots:{default:[mr]},$$scope:{ctx:g}}}),f.$on("click",u),{c(){yt(f.$$.fragment)},l(a){kt(f.$$.fragment,a)},m(a,e){Et(f,a,e),t=!0},p(a,e){g=a;const s={};e&129&&(s.$$scope={dirty:e,ctx:g}),f.$set(s)},i(a){t||(ft(f.$$.fragment,a),t=!0)},o(a){dt(f.$$.fragment,a),t=!1},d(a){Ct(f,a)}}}function _r(g){let f,t,u=Le(g[0]),a=[];for(let s=0;sdt(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s{e()});async function a(n,r){try{re((await be(n)).data,"main"),Ht((await be(r)).data,"processor")}catch(o){Ht(`${o.message}`,"processor")}}async function e(){const r=await(await fetch("examples/examples.json")).json();t(0,u=r.examples)}return[u,a,n=>{a(n.mainCodeUrl,n.processorCodeUrl)}]}class br extends Ot{constructor(f){super(),$t(this,f,vr,gr,It,{})}}const $e=(g,f="div")=>{let t;const u=async e=>{if(f=e,typeof f=="string"){if(t=document.querySelector(f),t===null&&(await He(),t=document.querySelector(f)),t===null)throw new Error(`No element found matching css selector: "${f}"`)}else if(f instanceof HTMLElement)t=f;else throw new TypeError(`Unknown portal target type: ${f===null?"null":typeof f}. Allowed types: string (CSS selector) or HTMLElement.`);t.appendChild(g),g.hidden=!1},a=()=>g.parentNode&&g.parentNode.removeChild(g);return u(f),{update:u,destroy:a}};function wr(g){let f,t,u,a,e;const s=g[3].default,n=Vt(s,g,g[2],null);return{c(){f=at("dialog"),t=at("button"),n&&n.c(),this.h()},l(r){f=ot(r,"DIALOG",{class:!0});var o=ht(f);t=ot(o,"BUTTON",{class:!0});var p=ht(t);n&&n.l(p),p.forEach(X),o.forEach(X),this.h()},h(){rt(t,"class","h-full px-4 py-2 w-full"),rt(f,"class","font-mono text-sm absolute bg-accent bottom-12 cursor-pointer m-0 ml-auto right-0 rounded shadow-md"),f.open=!0,mt(f,"toast-in",g[0]),mt(f,"toast-out",!g[0])},m(r,o){ut(r,f,o),nt(f,t),n&&n.m(t,null),u=!0,a||(e=[Rt(t,"click",g[4]),ye($e.call(null,f))],a=!0)},p(r,[o]){n&&n.p&&(!u||o&4)&&Gt(n,s,r,r[2],u?Yt(s,r[2],o,null):Kt(r[2]),null),(!u||o&1)&&mt(f,"toast-in",r[0]),(!u||o&1)&&mt(f,"toast-out",!r[0])},i(r){u||(ft(n,r),u=!0)},o(r){dt(n,r),u=!1},d(r){r&&X(f),n&&n.d(r),a=!1,ae(e)}}}function yr(g,f,t){let{$$slots:u={},$$scope:a}=f,{show:e=!1}=f;const s=r=>t(0,e=r),n=()=>s(!1);return g.$$set=r=>{"show"in r&&t(0,e=r.show),"$$scope"in r&&t(2,a=r.$$scope)},[e,s,a,u,n]}class qe extends Ot{constructor(f){super(),$t(this,f,yr,wr,It,{show:0,handleToggle:1})}get handleToggle(){return this.$$.ctx[1]}}const kr=Object.getPrototypeOf(async function(){}).constructor;let te=[[]],St,we,ee=48e3,Ie="";function Er(g){return Ie===""?g:g.replace(/addModule\(["'].*?["']\)/,`addModule('${Ie}')`)}function Cr(g,f,t){return g.replace(new RegExp(f,"g"),t)}function xr(g,f){const t=new RegExp(`@${f}\\s*=\\s*(\\d+)`),u=g.match(t);return u?parseInt(u[1],10):null}function Sr(g){Ie=window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))}async function zr(g){await(St==null?void 0:St.close());const f=xr(g,"sampleRate");ee=f||ee,await Ar();let t=Er(g);t=Cr(t,"context.destination","recorder).connect(context.destination"),await new kr("context","sampleRate","recorder",t)(St,ee,we)}async function Ar(){St=new AudioContext({sampleRate:ee}),await St.audioWorklet.addModule("processor/recorder-processor.js"),we=new AudioWorkletNode(St,"recorder-processor"),we.port.onmessage=g=>{g.data.channel in te||(te[g.data.channel]=[]),te[g.data.channel].push(...g.data.data)}}function Tr(){St==null||St.resume()}function Ir(){St==null||St.suspend()}function Or(){St==null||St.close(),St=void 0,we=void 0,te=[[]]}function _e(){return te}function $r(){return ee}const pe=(g,f,t)=>{for(let u=0;u{g=Math.floor(g),f[t]=g&255,f[t+1]=g>>8&255},Zt=(g,f,t)=>{g=Math.floor(g),f[t]=g&255,f[t+1]=g>>8&255,f[t+2]=g>>16&255,f[t+3]=g>>24&255},Br=g=>{const f=new ArrayBuffer(4);return new Float32Array(f)[0]=g,new Uint32Array(f)[0]|0},Rr=(g,f,t,u)=>{let a,e=0;const s=g.length,n=g.numberOfChannels;let r,o;for(a=0;a{const t=g.length,u=g.numberOfChannels,a=g.sampleRate,e=32,s=e/8,n=a*u*e/8,r=u*e/8,o=t*u*s,h=44+o,b=new Uint8Array(h),d=16,w=o,c=4+(8+d)+(8+w);return pe("RIFF",b,0),Zt(c,b,4),pe("WAVE",b,8),pe("fmt ",b,12),Zt(d,b,16),Ce(3,b,20),Ce(u,b,22),Zt(a,b,24),Zt(n,b,28),Ce(r,b,32),Zt(e,b,34),pe("data",b,36),Zt(w,b,40),Rr(g,b,44),new Blob([b],{type:"audio/wav"})};function Lr(g){let f;return{c(){f=Lt("Save code")},l(t){f=Ft(t,"Save code")},m(t,u){ut(t,f,u)},d(t){t&&X(f)}}}function Fr(g){let f,t,u=".wav";return{c(){f=Lt("Export to "),t=at("code"),t.textContent=u},l(a){f=Ft(a,"Export to "),t=ot(a,"CODE",{"data-svelte-h":!0}),le(t)!=="svelte-1bldscw"&&(t.textContent=u)},m(a,e){ut(a,f,e),ut(a,t,e)},p:qt,d(a){a&&(X(f),X(t))}}}function Pr(g){let f,t,u,a;return f=new ve({props:{$$slots:{default:[Lr]},$$scope:{ctx:g}}}),f.$on("click",g[2]),u=new ve({props:{$$slots:{default:[Fr]},$$scope:{ctx:g}}}),u.$on("click",g[3]),{c(){yt(f.$$.fragment),t=bt(),yt(u.$$.fragment)},l(e){kt(f.$$.fragment,e),t=wt(e),kt(u.$$.fragment,e)},m(e,s){Et(f,e,s),ut(e,t,s),Et(u,e,s),a=!0},p(e,s){const n={};s&32&&(n.$$scope={dirty:s,ctx:e}),f.$set(n);const r={};s&32&&(r.$$scope={dirty:s,ctx:e}),u.$set(r)},i(e){a||(ft(f.$$.fragment,e),ft(u.$$.fragment,e),a=!0)},o(e){dt(f.$$.fragment,e),dt(u.$$.fragment,e),a=!1},d(e){e&&X(t),Ct(f,e),Ct(u,e)}}}function jr(g){let f;return{c(){f=Lt(g[1])},l(t){f=Ft(t,g[1])},m(t,u){ut(t,f,u)},p(t,u){u&2&&oe(f,t[1])},d(t){t&&X(f)}}}function Nr(g){let f,t,u,a,e;f=new Oe({props:{name:"File",$$slots:{default:[Pr]},$$scope:{ctx:g}}});function s(r){g[4](r)}let n={$$slots:{default:[jr]},$$scope:{ctx:g}};return g[0]!==void 0&&(n.handleToggle=g[0]),u=new qe({props:n}),At.push(()=>Ut(u,"handleToggle",s)),{c(){yt(f.$$.fragment),t=bt(),yt(u.$$.fragment)},l(r){kt(f.$$.fragment,r),t=wt(r),kt(u.$$.fragment,r)},m(r,o){Et(f,r,o),ut(r,t,o),Et(u,r,o),e=!0},p(r,[o]){const p={};o&32&&(p.$$scope={dirty:o,ctx:r}),f.$set(p);const h={};o&34&&(h.$$scope={dirty:o,ctx:r}),!a&&o&1&&(a=!0,h.handleToggle=r[0],Mt(()=>a=!1)),u.$set(h)},i(r){e||(ft(f.$$.fragment,r),ft(u.$$.fragment,r),e=!0)},o(r){dt(f.$$.fragment,r),dt(u.$$.fragment,r),e=!1},d(r){r&&X(t),Ct(f,r),Ct(u,r)}}}function Mr(g,f,t){let u,a="";async function e(){const r=ne(),o=ie(),p={};if(r.length==0&&o.length==0){t(1,a="No code to save"),console.error(a),u(!0);return}else u(!1);r.length>0&&(p["processor.js"]=r),o.length>0&&(p["main.js"]=o);const h=await pr(p),b=URL.createObjectURL(h),d=document.createElement("a");d.href=b,d.download="code.zip",d.click(),URL.revokeObjectURL(b)}function s(){const r=_e(),o=$r();if(r.length===0||r[0].length===0){t(1,a="Recording buffer is empty"),console.error(a),u(!0);return}else u(!1);const p=r[0],h=new AudioBuffer({length:p.length,numberOfChannels:1,sampleRate:o});h.copyToChannel(new Float32Array(p),0);const b=Dr(h);console.log("exporting to wav (mono)",h);const d=URL.createObjectURL(b),w=document.createElement("a");w.href=d,w.download="recording.wav",w.click(),URL.revokeObjectURL(d)}function n(r){u=r,t(0,u)}return[u,a,e,s,n]}class Ur extends Ot{constructor(f){super(),$t(this,f,Mr,Nr,It,{})}}const Wr="data:image/svg+xml,%3csvg%20width='100'%20height='170'%20viewBox='0%200%20100%20170'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.9312%20120.074H68.186L41.2548%20163.864H3.99999L30.9312%20120.074Z'%20fill='%2394E170'%20stroke='%23355027'%20stroke-width='8'%20stroke-linejoin='round'/%3e%3cpath%20d='M41%20107L41%20109'%20stroke='%23FD9494'%20stroke-width='8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M69.0688%20120.074H31.814L58.7452%20166H96L69.0688%20120.074Z'%20fill='%2394E170'%20stroke='%23355027'%20stroke-width='8'%20stroke-linejoin='round'/%3e%3cpath%20d='M64%204L64%20143'%20stroke='%23FD9494'%20stroke-width='8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M53%2010L53%2094'%20stroke='%23FD9494'%20stroke-width='8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function Zr(g){let f,t,u,a,e;const s=g[3].default,n=Vt(s,g,g[2],null);return{c(){f=at("dialog"),t=at("button"),n&&n.c(),this.h()},l(r){f=ot(r,"DIALOG",{class:!0});var o=ht(f);t=ot(o,"BUTTON",{class:!0});var p=ht(t);n&&n.l(p),p.forEach(X),o.forEach(X),this.h()},h(){rt(t,"class","h-full px-4 py-2 w-full"),rt(f,"class","absolute bg-white w-full max-w-2xl max-h-[75vh] cursor-pointer rounded-3xl shadow-md svelte-cb2ltm")},m(r,o){ut(r,f,o),nt(f,t),n&&n.m(t,null),g[5](f),u=!0,a||(e=[Rt(t,"click",g[4]),ye($e.call(null,f))],a=!0)},p(r,[o]){n&&n.p&&(!u||o&4)&&Gt(n,s,r,r[2],u?Yt(s,r[2],o,null):Kt(r[2]),null)},i(r){u||(ft(n,r),u=!0)},o(r){dt(n,r),u=!1},d(r){r&&X(f),n&&n.d(r),g[5](null),a=!1,ae(e)}}}function Hr(g,f,t){let{$$slots:u={},$$scope:a}=f,e;function s(o){o?e.showModal():e.close()}const n=()=>s(!1);function r(o){At[o?"unshift":"push"](()=>{e=o,t(1,e)})}return g.$$set=o=>{"$$scope"in o&&t(2,a=o.$$scope)},[s,e,a,u,n,r]}class Vr extends Ot{constructor(f){super(),$t(this,f,Hr,Zr,It,{showModal:0})}get showModal(){return this.$$.ctx[0]}}var Gr={version:"1.0.0-beta"};function Kr(g){let f;return{c(){f=Lt("About")},l(t){f=Ft(t,"About")},m(t,u){ut(t,f,u)},d(t){t&&X(f)}}}function Yr(g){let f,t;return f=new ve({props:{$$slots:{default:[Kr]},$$scope:{ctx:g}}}),f.$on("click",g[1]),{c(){yt(f.$$.fragment)},l(u){kt(f.$$.fragment,u)},m(u,a){Et(f,u,a),t=!0},p(u,a){const e={};a&8&&(e.$$scope={dirty:a,ctx:u}),f.$set(e)},i(u){t||(ft(f.$$.fragment,u),t=!0)},o(u){dt(f.$$.fragment,u),t=!1},d(u){Ct(f,u)}}}function qr(g){let f,t,u=`

Rainfly

An AudioWorklet DSP Playground for Chromium Web Audio API Project (2024)


Created by @terryzfeng and @kizjkre


See GitHub - for more information or to submit an issue

Rainfly logo
`,a,e,s,n,r=Gr.version+"",o;return{c(){f=at("div"),t=at("div"),t.innerHTML=u,a=bt(),e=at("div"),s=at("p"),n=Lt("ver "),o=Lt(r),this.h()},l(p){f=ot(p,"DIV",{class:!0});var h=ht(f);t=ot(h,"DIV",{class:!0,"data-svelte-h":!0}),le(t)!=="svelte-13ij1ld"&&(t.innerHTML=u),a=wt(h),e=ot(h,"DIV",{class:!0});var b=ht(e);s=ot(b,"P",{});var d=ht(s);n=Ft(d,"ver "),o=Ft(d,r),d.forEach(X),b.forEach(X),h.forEach(X),this.h()},h(){rt(t,"class","w-full flex justify-between pb-4"),rt(e,"class","text-center text-sm"),rt(f,"class","w-full h-full p-4 text-left text-sm text-gray-600")},m(p,h){ut(p,f,h),nt(f,t),nt(f,a),nt(f,e),nt(e,s),nt(s,n),nt(s,o)},p:qt,d(p){p&&X(f)}}}function Xr(g){let f,t,u,a,e;f=new Oe({props:{name:"Help",$$slots:{default:[Yr]},$$scope:{ctx:g}}});function s(r){g[2](r)}let n={$$slots:{default:[qr]},$$scope:{ctx:g}};return g[0]!==void 0&&(n.showModal=g[0]),u=new Vr({props:n}),At.push(()=>Ut(u,"showModal",s)),{c(){yt(f.$$.fragment),t=bt(),yt(u.$$.fragment)},l(r){kt(f.$$.fragment,r),t=wt(r),kt(u.$$.fragment,r)},m(r,o){Et(f,r,o),ut(r,t,o),Et(u,r,o),e=!0},p(r,[o]){const p={};o&9&&(p.$$scope={dirty:o,ctx:r}),f.$set(p);const h={};o&8&&(h.$$scope={dirty:o,ctx:r}),!a&&o&1&&(a=!0,h.showModal=r[0],Mt(()=>a=!1)),u.$set(h)},i(r){e||(ft(f.$$.fragment,r),ft(u.$$.fragment,r),e=!0)},o(r){dt(f.$$.fragment,r),dt(u.$$.fragment,r),e=!1},d(r){r&&X(t),Ct(f,r),Ct(u,r)}}}function Jr(g,f,t){let u;const a=()=>u(!0);function e(s){u=s,t(0,u)}return[u,a,e]}class Qr extends Ot{constructor(f){super(),$t(this,f,Jr,Xr,It,{})}}function tn(g){let f,t,u,a,e,s,n,r,o,p;return t=new Ur({}),a=new br({}),s=new Qr({}),{c(){f=at("nav"),yt(t.$$.fragment),u=bt(),yt(a.$$.fragment),e=bt(),yt(s.$$.fragment),n=bt(),r=at("img"),this.h()},l(h){f=ot(h,"NAV",{class:!0});var b=ht(f);kt(t.$$.fragment,b),u=wt(b),kt(a.$$.fragment,b),e=wt(b),kt(s.$$.fragment,b),b.forEach(X),n=wt(h),r=ot(h,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){rt(f,"class","w-full h-full pl-16 pr-4 py-1 mt-1 bg-secondary flex gap-6 items-center border border-x-8 border-b-4 border-white box-border rounded-full"),rt(r,"alt","rainfly logo"),rt(r,"class","absolute left-4 top-1 w-11 z-40"),Ae(r.src,o=Wr)||rt(r,"src",o)},m(h,b){ut(h,f,b),Et(t,f,null),nt(f,u),Et(a,f,null),nt(f,e),Et(s,f,null),ut(h,n,b),ut(h,r,b),p=!0},p:qt,i(h){p||(ft(t.$$.fragment,h),ft(a.$$.fragment,h),ft(s.$$.fragment,h),p=!0)},o(h){dt(t.$$.fragment,h),dt(a.$$.fragment,h),dt(s.$$.fragment,h),p=!1},d(h){h&&(X(f),X(n),X(r)),Ct(t),Ct(a),Ct(s)}}}class en extends Ot{constructor(f){super(),$t(this,f,null,tn,It,{})}}const lt=Object.freeze({stop:0,play:1,running:2,pause:3}),Tt=Ke(lt.stop),Ne="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-play'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M7%204v16l13%20-8z'%20/%3e%3c/svg%3e",rn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-stop'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M5%205m0%202a2%202%200%200%201%202%20-2h10a2%202%200%200%201%202%202v10a2%202%200%200%201%20-2%202h-10a2%202%200%200%201%20-2%20-2z'%20/%3e%3c/svg%3e",nn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-pause'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M6%205m0%201a1%201%200%200%201%201%20-1h2a1%201%200%200%201%201%201v12a1%201%200%200%201%20-1%201h-2a1%201%200%200%201%20-1%20-1z'%20/%3e%3cpath%20d='M14%205m0%201a1%201%200%200%201%201%20-1h2a1%201%200%200%201%201%201v12a1%201%200%200%201%20-1%201h-2a1%201%200%200%201%20-1%20-1z'%20/%3e%3c/svg%3e",sn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-play'%20version='1.1'%20id='svg6'%20sodipodi:docname='player-run-play.svg'%20inkscape:version='1.2.2%20(b0a84865,%202022-12-01)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs10'%20/%3e%3csodipodi:namedview%20id='namedview8'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20showgrid='false'%20inkscape:zoom='9.8333333'%20inkscape:cx='-5.9491526'%20inkscape:cy='13.728814'%20inkscape:window-width='1309'%20inkscape:window-height='456'%20inkscape:window-x='0'%20inkscape:window-y='38'%20inkscape:window-maximized='0'%20inkscape:current-layer='svg6'%20/%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'%20id='path2'%20/%3e%3cpath%20d='M%207,4%20V%2020%20L%2020,12%20C%2012.687818,7.1488442%2010.512361,6.06462%207,4%20Z'%20id='path4'%20sodipodi:nodetypes='cccc'%20/%3e%3cpath%20d='m%2019.936068,21.488133%201.990171,-1.75932%20-1.990171,-1.759321'%20id='path243'%20style='stroke-width:1.87119'%20/%3e%3cpath%20d='m%2016.95081,17.969492%20-1.990172,1.759321%201.990172,1.75932'%20id='path245'%20style='stroke-width:1.87119'%20/%3e%3c/svg%3e";function an(g){let f,t,u,a,e,s,n=`Stop`,r,o;return{c(){f=at("div"),t=at("button"),u=at("img"),e=bt(),s=at("button"),s.innerHTML=n,this.h()},l(p){f=ot(p,"DIV",{class:!0});var h=ht(f);t=ot(h,"BUTTON",{class:!0});var b=ht(t);u=ot(b,"IMG",{src:!0,alt:!0}),b.forEach(X),e=wt(h),s=ot(h,"BUTTON",{class:!0,id:!0,"data-svelte-h":!0}),le(s)!=="svelte-t4jfce"&&(s.innerHTML=n),h.forEach(X),this.h()},h(){Ae(u.src,a=g[2])||rt(u,"src",a),rt(u,"alt",g[1]),rt(t,"class","z-50 svelte-o053be"),rt(s,"class","z-40 svelte-o053be"),rt(s,"id","stopButton"),mt(s,"fab-in",g[0]),mt(s,"fab-out",!g[0]),rt(f,"class","flex")},m(p,h){ut(p,f,h),nt(f,t),nt(t,u),nt(f,e),nt(f,s),r||(o=[Rt(t,"click",g[3]),Rt(s,"click",g[4])],r=!0)},p(p,[h]){h&4&&!Ae(u.src,a=p[2])&&rt(u,"src",a),h&2&&rt(u,"alt",p[1]),h&1&&mt(s,"fab-in",p[0]),h&1&&mt(s,"fab-out",!p[0])},i:qt,o:qt,d(p){p&&X(f),r=!1,ae(o)}}}function on(g,f,t){let u;se(g,Tt,o=>t(5,u=o));let a=!1,e="Play",s=Ne;function n(){u===lt.stop?Tt.set(lt.play):u===lt.play||u===lt.running?Tt.set(lt.pause):u===lt.pause&&Tt.set(lt.running)}function r(){u!==lt.stop&&Tt.set(lt.stop)}return g.$$.update=()=>{if(g.$$.dirty&32)switch(u){case lt.play:case lt.running:t(0,a=!0),t(1,e="Pause"),t(2,s=nn);break;case lt.pause:t(0,a=!0),t(1,e="Play"),t(2,s=Ne);break;default:case lt.stop:t(0,a=!1),t(1,e="Run"),t(2,s=sn)}},[a,e,s,n,r,u]}class ln extends Ot{constructor(f){super(),$t(this,f,on,an,It,{})}}const{window:un}=ir;function fn(g){let f,t,u="",a,e,s,n,r,o;return s=new ln({}),{c(){f=at("section"),t=at("canvas"),t.innerHTML=u,a=bt(),e=at("div"),yt(s.$$.fragment),this.h()},l(p){f=ot(p,"SECTION",{class:!0});var h=ht(f);t=ot(h,"CANVAS",{id:!0,class:!0,"data-svelte-h":!0}),le(t)!=="svelte-1pmpqjr"&&(t.innerHTML=u),a=wt(h),e=ot(h,"DIV",{id:!0,class:!0});var b=ht(e);kt(s.$$.fragment,b),b.forEach(X),h.forEach(X),this.h()},h(){rt(t,"id","visualizer"),rt(t,"class","svelte-hdkek4"),rt(e,"id","action-buttons"),rt(e,"class","svelte-hdkek4"),rt(f,"class","svelte-hdkek4")},m(p,h){ut(p,f,h),nt(f,t),g[4](t),nt(f,a),nt(f,e),Et(s,e,null),n=!0,r||(o=[Rt(un,"resize",g[1]),Rt(t,"wheel",nr(g[2]))],r=!0)},p:qt,i(p){n||(ft(s.$$.fragment,p),n=!0)},o(p){dt(s.$$.fragment,p),n=!1},d(p){p&&X(f),g[4](null),Ct(s),r=!1,ae(o)}}}const cn=250,xe="#FD9494",Se="#76B359",ze=1e3,Me=25;function dn(g,f,t){let u;se(g,Tt,c=>t(3,u=c));let a,e,s,n=0;const r={start:0,end:1/0,full:!0};ke(()=>{s=window.devicePixelRatio||1,e=a.getContext("2d"),b()});function o(){var x,A;if(e===null)return;e.clearRect(0,0,a.width,a.height);const c=a.width,_=a.height,m=.8;p(c,_,m);const k=_e();r.full&&(r.end=((x=k[0])==null?void 0:x.length)||1/0);const C=((A=k[0])==null?void 0:A.slice(r.start,r.end))||[];if(C.length>cn){const F=C.length,O=1,B=c/(F/O);e.beginPath(),e.moveTo(0,_/2);let T=0;for(let j=0;j{const _=_e();if(_&&_[0].length===0)return;let m=c.deltaY;Math.abs(m)>40&&(m/=40),n=Math.max(0,Math.min(n+m,ze)),r.full=n===0;const k=_e()[0].length,C=c.clientX/window.innerWidth*(r.end-r.start)+r.start,x=(k-Me)/ze*(ze-n)+Me;r.start=Math.max(0,C-x),r.end=Math.min(k,C+x),o()};function w(c){At[c?"unshift":"push"](()=>{a=c,t(0,a)})}return g.$$.update=()=>{g.$$.dirty&8&&(u===lt.play||u===lt.running?o():u===lt.stop&&h())},[a,b,d,u,w]}class hn extends Ot{constructor(f){super(),$t(this,f,dn,fn,It,{})}}function pn(g){let f,t=`${g[2].left}px`,u=`${g[2].top}px`,a,e,s;const n=g[5].default,r=Vt(n,g,g[4],null);return{c(){f=at("div"),r&&r.c(),this.h()},l(o){f=ot(o,"DIV",{class:!0,popover:!0});var p=ht(f);r&&r.l(p),p.forEach(X),this.h()},h(){rt(f,"class","absolute bg-accent m-0 px-2 py-1 rounded shadow-md text-sm"),rt(f,"popover","manual"),mt(f,"tooltip-in",g[1]),mt(f,"tooltip-out",!g[1]),ce(f,"left",t),ce(f,"top",u)},m(o,p){ut(o,f,p),r&&r.m(f,null),g[6](f),a=!0,e||(s=ye($e.call(null,f)),e=!0)},p(o,[p]){r&&r.p&&(!a||p&16)&&Gt(r,n,o,o[4],a?Yt(n,o[4],p,null):Kt(o[4]),null),(!a||p&2)&&mt(f,"tooltip-in",o[1]),(!a||p&2)&&mt(f,"tooltip-out",!o[1]),p&4&&t!==(t=`${o[2].left}px`)&&ce(f,"left",t),p&4&&u!==(u=`${o[2].top}px`)&&ce(f,"top",u)},i(o){a||(ft(r,o),a=!0)},o(o){dt(r,o),a=!1},d(o){o&&X(f),r&&r.d(o),g[6](null),e=!1,s()}}}function mn(g,f,t){let{$$slots:u={},$$scope:a}=f,{anchor:e}=f,s,n,r=!1,o,p;const h={left:-1,top:-1},b=()=>{if(r)return;t(1,r=!0),s.showPopover(),n=s.getBoundingClientRect();const c={top:e.offsetTop-n.height-.5*o<0,right:e.offsetLeft+n.width+.5*o>p.width,bottom:e.offsetTop+n.height+.5*o>p.height,left:e.offsetLeft-n.width-.5*o<0};t(2,h.top=e.offsetTop-.5*o,h),t(2,h.left=e.offsetLeft-.5*o,h),c.top&&t(2,h.top=e.offsetTop+n.height+.5*o,h),c.right&&t(2,h.left=e.offsetLeft-n.width-.5*o,h),c.bottom&&t(2,h.top=e.offsetTop-n.height-.5*o,h),c.left&&t(2,h.left=e.offsetLeft+n.width+.5*o,h)},d=()=>{t(1,r=!1),setTimeout(()=>s.hidePopover(),50)};ke(()=>(o=parseFloat(getComputedStyle(document.documentElement).fontSize),p={width:window.innerWidth,height:window.innerHeight},(async()=>(await He(),e.addEventListener("mouseover",b),e.addEventListener("mouseleave",d)))(),()=>{e.removeEventListener("mouseover",b),e.removeEventListener("mouseleave",d)}));function w(c){At[c?"unshift":"push"](()=>{s=c,t(0,s)})}return g.$$set=c=>{"anchor"in c&&t(3,e=c.anchor),"$$scope"in c&&t(4,a=c.$$scope)},[s,r,h,e,a,u,w]}class _n extends Ot{constructor(f){super(),$t(this,f,mn,pn,It,{anchor:3})}}const gn=!1,me=Ke(gn),vn="data:image/svg+xml,%3csvg%20fill='%23000000'%20width='20'%20viewBox='0%200%2032%2032'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eVIm%3c/title%3e%3cpath%20d='M26.445%2022.095l0.592-0.649h1.667l0.386%200.519-1.581%205.132h0.616l-0.1%200.261h-2.228l1.405-4.454h-2.518l-1.346%204.238h0.53l-0.091%200.217h-2.006l1.383-4.434h-2.619l-1.327%204.172h0.545l-0.090%200.261h-2.076l1.892-5.573h-0.732l0.114-0.339h2.062l0.649%200.671h1.132l0.614-0.692h1.326l0.611%200.669zM7.99%2027.033h-2.141l-0.327-0.187v-21.979h-1.545l-0.125-0.125v-1.47l0.179-0.192h9.211l0.266%200.267v1.385l-0.177%200.216h-1.348v10.857l11.006-10.857h-2.607l-0.219-0.235v-1.453l0.151-0.139h9.36l0.165%200.166v1.337l-12.615%2012.937h-0.466c-0.005-0-0.011-0-0.018-0-0.012%200-0.024%200.001-0.036%200.002l0.002-0-0.025%200.004c-0.058%200.012-0.108%200.039-0.149%200.075l0-0-0.429%200.369-0.005%200.004c-0.040%200.037-0.072%200.084-0.090%200.136l-0.001%200.002-0.37%201.037zM17.916%2018.028l0.187%200.189-0.336%201.152-0.281%200.282h-1.211l-0.226-0.226%200.389-1.088%200.36-0.309zM13.298%2027.42l1.973-5.635h-0.626l0.371-0.38h2.073l-1.953%205.692h0.779l-0.099%200.322zM30.996%2015.982h-0.034l-5.396-5.396%205.377-5.516v-2.24l-0.811-0.81h-10.245l-0.825%200.756v1.306l-3.044-3.044v-0.034l-0.019%200.018-0.018-0.018v0.034l-1.612%201.613-0.672-0.673h-10.151l-0.797%200.865v2.356l0.77%200.77h0.9v6.636l-3.382%203.38h-0.034l0.018%200.016-0.018%200.017h0.034l3.382%203.382v8.081l1.133%200.654h2.902l2.321-2.379%205.206%205.206v0.035l0.019-0.017%200.017%200.017v-0.035l3.136-3.135h0.606c0.144-0.001%200.266-0.093%200.312-0.221l0.001-0.002%200.182-0.532c0.011-0.031%200.017-0.067%200.017-0.105%200-0.073-0.024-0.14-0.064-0.195l0.001%200.001%201.827-1.827-0.765%202.452c-0.009%200.029-0.015%200.063-0.015%200.097%200%200.149%200.098%200.275%200.233%200.317l0.002%200.001c0.029%200.009%200.063%200.015%200.097%200.015%200%200%200%200%200%200h2.279c0.136-0.001%200.252-0.084%200.303-0.201l0.001-0.002%200.206-0.492c0.014-0.036%200.022-0.077%200.022-0.121%200-0.048-0.010-0.094-0.028-0.135l0.001%200.002c-0.035-0.082-0.1-0.145-0.18-0.177l-0.002-0.001c-0.036-0.015-0.077-0.024-0.121-0.025h-0.094l1.050-3.304h1.54l-1.27%204.025c-0.009%200.029-0.015%200.063-0.015%200.097%200%200.149%200.098%200.274%200.232%200.317l0.002%200.001c0.029%200.009%200.063%200.015%200.098%200.015%200%200%200.001%200%200.001%200h2.502c0%200%200.001%200%200.001%200%200.14%200%200.26-0.087%200.308-0.21l0.001-0.002%200.205-0.535c0.013-0.034%200.020-0.073%200.020-0.114%200-0.142-0.090-0.264-0.215-0.311l-0.002-0.001c-0.034-0.013-0.073-0.021-0.114-0.021h-0.181l1.413-4.59c0.011-0.031%200.017-0.066%200.017-0.103%200-0.074-0.025-0.143-0.066-0.198l0.001%200.001-0.469-0.63-0.004-0.006c-0.061-0.078-0.156-0.127-0.261-0.127h-1.795c-0.093%200-0.177%200.039-0.237%200.101l-0%200-0.5%200.549h-0.78l-0.052-0.057%205.555-5.555h0.035l-0.017-0.014z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";function Ue(g){let f,t=`Vim`,u,a;return{c(){f=at("button"),f.innerHTML=t,this.h()},l(e){f=ot(e,"BUTTON",{class:!0,"data-svelte-h":!0}),le(f)!=="svelte-ts8tlz"&&(f.innerHTML=t),this.h()},h(){rt(f,"class","p-1 transition hover:bg-accent/75"),mt(f,"bg-accent",g[1])},m(e,s){ut(e,f,s),g[15](f),u||(a=Rt(f,"click",g[9]),u=!0)},p(e,s){s&2&&mt(f,"bg-accent",e[1])},d(e){e&&X(f),g[15](null),u=!1,a()}}}function bn(g){let f;return{c(){f=Lt(g[5])},l(t){f=Ft(t,g[5])},m(t,u){ut(t,f,u)},p(t,u){u&32&&oe(f,t[5])},d(t){t&&X(f)}}}function We(g){let f,t;return f=new _n({props:{anchor:g[4],$$slots:{default:[wn]},$$scope:{ctx:g}}}),{c(){yt(f.$$.fragment)},l(u){kt(f.$$.fragment,u)},m(u,a){Et(f,u,a),t=!0},p(u,a){const e={};a&16&&(e.anchor=u[4]),a&268435456&&(e.$$scope={dirty:a,ctx:u}),f.$set(e)},i(u){t||(ft(f.$$.fragment,u),t=!0)},o(u){dt(f.$$.fragment,u),t=!1},d(u){Ct(f,u)}}}function wn(g){let f;return{c(){f=Lt("Toggle Vim mode")},l(t){f=Ft(t,"Toggle Vim mode")},m(t,u){ut(t,f,u)},d(t){t&&X(f)}}}function yn(g){let f,t,u,a=g[2]===g[7].processor?"AudioWorkletProcessor":"Main",e,s,n,r,o,p,h,b,d,w,c,_,m,k,C,x=g[2]===g[7].main&&Ue(g);function A(B){g[18](B)}let F={$$slots:{default:[bn]},$$scope:{ctx:g}};g[6]!==void 0&&(F.handleToggle=g[6]),d=new qe({props:F}),At.push(()=>Ut(d,"handleToggle",A));let O=g[2]===g[7].main&&We(g);return{c(){f=at("div"),t=at("div"),u=at("div"),e=Lt(a),s=bt(),x&&x.c(),n=bt(),r=at("div"),o=bt(),p=at("section"),h=at("div"),b=bt(),yt(d.$$.fragment),c=bt(),O&&O.c(),_=ge(),this.h()},l(B){f=ot(B,"DIV",{class:!0});var T=ht(f);t=ot(T,"DIV",{class:!0});var j=ht(t);u=ot(j,"DIV",{class:!0});var q=ht(u);e=Ft(q,a),q.forEach(X),s=wt(j),x&&x.l(j),j.forEach(X),n=wt(T),r=ot(T,"DIV",{class:!0}),ht(r).forEach(X),o=wt(T),p=ot(T,"SECTION",{});var E=ht(p);h=ot(E,"DIV",{class:!0}),ht(h).forEach(X),E.forEach(X),T.forEach(X),b=wt(B),kt(d.$$.fragment,B),c=wt(B),O&&O.l(B),_=ge(),this.h()},h(){rt(u,"class","inline-block font-semibold"),rt(t,"class","header svelte-1dpjgz1"),rt(r,"class","editor-container svelte-1dpjgz1"),rt(h,"class","vimBar"),mt(p,"hidden",!g[1]),rt(f,"class","container svelte-1dpjgz1")},m(B,T){ut(B,f,T),nt(f,t),nt(t,u),nt(u,e),nt(t,s),x&&x.m(t,null),nt(f,n),nt(f,r),g[16](r),nt(f,o),nt(f,p),nt(p,h),g[17](h),ut(B,b,T),Et(d,B,T),ut(B,c,T),O&&O.m(B,T),ut(B,_,T),m=!0,k||(C=Rt(window,"resize",g[8]),k=!0)},p(B,[T]){(!m||T&4)&&a!==(a=B[2]===B[7].processor?"AudioWorkletProcessor":"Main")&&oe(e,a),B[2]===B[7].main?x?x.p(B,T):(x=Ue(B),x.c(),x.m(t,null)):x&&(x.d(1),x=null),(!m||T&2)&&mt(p,"hidden",!B[1]);const j={};T&268435488&&(j.$$scope={dirty:T,ctx:B}),!w&&T&64&&(w=!0,j.handleToggle=B[6],Mt(()=>w=!1)),d.$set(j),B[2]===B[7].main?O?(O.p(B,T),T&4&&ft(O,1)):(O=We(B),O.c(),ft(O,1),O.m(_.parentNode,_)):O&&(Ve(),dt(O,1,1,()=>{O=null}),Ge())},i(B){m||(ft(d.$$.fragment,B),ft(O),m=!0)},o(B){dt(d.$$.fragment,B),dt(O),m=!1},d(B){B&&(X(f),X(b),X(c),X(_)),x&&x.d(),g[16](null),g[17](null),Ct(d,B),O&&O.d(B),k=!1,C()}}}function kn(g,f,t){let u,a;se(g,me,z=>t(1,u=z)),se(g,Tt,z=>t(23,a=z));let{id:e="main"}=f,s;const n=Object.freeze({processor:0,main:1});let r,o,p,h,b,d,w,c="",_,m=!1;ke(async()=>{r=(await De(async()=>{const{default:N}=await import("./monaco.Ce4eSfmS.js").then(Q=>Q.m);return{default:N}},__vite__mapDeps([0,1,2,3,4]),import.meta.url)).default,h=(await De(async()=>{const{initVimMode:N}=await import("./index.DSQMO0PN.js").then(Q=>Q.i);return{initVimMode:N}},__vite__mapDeps([5,1,2]),import.meta.url)).initVimMode;const z=s===n.processor?(await be("examples/bypass/processor.js")).data:(await be("examples/bypass/main.js")).data;o=r.editor.create(p,{minimap:{enabled:!1},fontSize:14,scrollBeyondLastLine:!1});const G=r.editor.createModel(z||'console.log("Hello World!")',"javascript");o.setModel(G),o.onDidChangeModelContent(()=>{}),O(),t(14,m=!0)}),er(()=>{r==null||r.editor.getModels().forEach(z=>z.dispose()),o==null||o.dispose()});function k(){o==null||o.layout()}function C(){return(o==null?void 0:o.getValue())||""}function x(z){o==null||o.setValue(z)}function A(z,G){const N=G==="main"?n.main:n.processor;s===N&&x(z)}async function F(){const z=C();if(z!=="")if(s===n.processor)Sr(z);else try{await zr(z),_(!1)}catch(G){throw t(5,c=G.message),_(!0),G}}function O(){o.addAction({id:"play",label:"play",keybindings:[r.KeyMod.CtrlCmd|r.KeyCode.Enter],run:()=>{a===lt.stop?Wt(Tt,a=lt.play,a):a===lt.play||a===lt.running?Wt(Tt,a=lt.pause,a):a===lt.pause&&Wt(Tt,a=lt.play,a)}}),o.addAction({id:"stop",label:"stop",keybindings:[r.KeyMod.CtrlCmd|r.KeyCode.Backspace],run:()=>{stop(),a!==lt.stop&&Wt(Tt,a=lt.stop,a)}})}function B(){b=h(o,d),Wt(me,u=!0,u),t(3,p.style.height="calc(100% - 1.75rem - 1.5rem)",p),k()}function T(){b==null||b.dispose(),Wt(me,u=!1,u),t(3,p.style.height="calc(100% - 1.75rem)",p),k()}function j(){Wt(me,u=!u,u)}function q(z){At[z?"unshift":"push"](()=>{w=z,t(4,w)})}function E(z){At[z?"unshift":"push"](()=>{p=z,t(3,p)})}function L(z){At[z?"unshift":"push"](()=>{d=z,t(0,d)})}function l(z){_=z,t(6,_)}return g.$$set=z=>{"id"in z&&t(10,e=z.id)},g.$$.update=()=>{g.$$.dirty&17411&&(t(2,s=e==="processor"?n.processor:n.main),d&&m&&(u?B():T()))},[d,u,s,p,w,c,_,n,k,j,e,C,A,F,m,q,E,L,l]}class Ze extends Ot{constructor(f){super(),$t(this,f,kn,yn,It,{id:10,getEditorCode:11,loadEditorCode:12,runEditorCode:13})}get getEditorCode(){return this.$$.ctx[11]}get loadEditorCode(){return this.$$.ctx[12]}get runEditorCode(){return this.$$.ctx[13]}}const En=g=>[...Te.entries()].forEach(([f,t])=>f!==g.target&&t({...g,currentTarget:f}));function Cn(g){let f,t,u,a,e,s,n,r,o,p,h,b,d,w,c,_,m,k,C,x,A,F;a=new en({}),n=new hn({});function O(z){g[3](z)}function B(z){g[4](z)}function T(z){g[5](z)}let j={id:"processor"};g[0]!==void 0&&(j.runEditorCode=g[0]),Ht!==void 0&&(j.loadEditorCode=Ht),ne!==void 0&&(j.getEditorCode=ne),p=new Ze({props:j}),At.push(()=>Ut(p,"runEditorCode",O)),At.push(()=>Ut(p,"loadEditorCode",B)),At.push(()=>Ut(p,"getEditorCode",T));function q(z){g[6](z)}function E(z){g[7](z)}function L(z){g[8](z)}let l={id:"main"};return g[1]!==void 0&&(l.runEditorCode=g[1]),re!==void 0&&(l.loadEditorCode=re),ie!==void 0&&(l.getEditorCode=ie),_=new Ze({props:l}),At.push(()=>Ut(_,"runEditorCode",q)),At.push(()=>Ut(_,"loadEditorCode",E)),At.push(()=>Ut(_,"getEditorCode",L)),{c(){f=bt(),t=at("main"),u=at("nav"),yt(a.$$.fragment),e=bt(),s=at("header"),yt(n.$$.fragment),r=bt(),o=at("section"),yt(p.$$.fragment),w=bt(),c=at("section"),yt(_.$$.fragment),this.h()},l(z){f=wt(z),t=ot(z,"MAIN",{class:!0});var G=ht(t);u=ot(G,"NAV",{class:!0});var N=ht(u);kt(a.$$.fragment,N),N.forEach(X),e=wt(G),s=ot(G,"HEADER",{class:!0});var Q=ht(s);kt(n.$$.fragment,Q),Q.forEach(X),r=wt(G),o=ot(G,"SECTION",{class:!0});var W=ht(o);kt(p.$$.fragment,W),W.forEach(X),w=wt(G),c=ot(G,"SECTION",{class:!0});var et=ht(c);kt(_.$$.fragment,et),et.forEach(X),G.forEach(X),this.h()},h(){rt(u,"class","col-span-2"),rt(s,"class","col-span-2"),rt(o,"class","border-r border-black"),rt(c,"class","border-l border-black"),rt(t,"class","grid grid-cols-2 grid-rows-main h-full w-full")},m(z,G){ut(z,f,G),ut(z,t,G),nt(t,u),Et(a,u,null),nt(t,e),nt(t,s),Et(n,s,null),nt(t,r),nt(t,o),Et(p,o,null),nt(t,w),nt(t,c),Et(_,c,null),x=!0,A||(F=Rt(document,"click",En),A=!0)},p(z,[G]){const N={};!h&&G&1&&(h=!0,N.runEditorCode=z[0],Mt(()=>h=!1)),!b&&G&0&&(b=!0,N.loadEditorCode=Ht,Mt(()=>b=!1)),!d&&G&0&&(d=!0,N.getEditorCode=ne,Mt(()=>d=!1)),p.$set(N);const Q={};!m&&G&2&&(m=!0,Q.runEditorCode=z[1],Mt(()=>m=!1)),!k&&G&0&&(k=!0,Q.loadEditorCode=re,Mt(()=>k=!1)),!C&&G&0&&(C=!0,Q.getEditorCode=ie,Mt(()=>C=!1)),_.$set(Q)},i(z){x||(ft(a.$$.fragment,z),ft(n.$$.fragment,z),ft(p.$$.fragment,z),ft(_.$$.fragment,z),x=!0)},o(z){dt(a.$$.fragment,z),dt(n.$$.fragment,z),dt(p.$$.fragment,z),dt(_.$$.fragment,z),x=!1},d(z){z&&(X(f),X(t)),Ct(a),Ct(n),Ct(p),Ct(_),A=!1,F()}}}let Ht,re,ne,ie;function xn(g,f,t){let u;se(g,Tt,d=>t(2,u=d));let a,e;async function s(){a();try{await e()}catch(d){throw Wt(Tt,u=lt.stop,u),d}}function n(d){a=d,t(0,a)}function r(d){Ht=d}function o(d){ne=d}function p(d){e=d,t(1,e)}function h(d){re=d}function b(d){ie=d}return g.$$.update=()=>{if(g.$$.dirty&4)switch(u){case lt.play:s();break;case lt.running:Tr();break;case lt.pause:Ir();break;default:case lt.stop:Or()}},[a,e,u,n,r,o,p,h,b]}class On extends Ot{constructor(f){super(),$t(this,f,xn,Cn,It,{})}}export{On as P,In as g}; + for more information or to submit an issue

Rainfly logo
`,a,e,s,n,r=Gr.version+"",o;return{c(){f=at("div"),t=at("div"),t.innerHTML=u,a=bt(),e=at("div"),s=at("p"),n=Lt("ver "),o=Lt(r),this.h()},l(p){f=ot(p,"DIV",{class:!0});var h=ht(f);t=ot(h,"DIV",{class:!0,"data-svelte-h":!0}),le(t)!=="svelte-13ij1ld"&&(t.innerHTML=u),a=wt(h),e=ot(h,"DIV",{class:!0});var b=ht(e);s=ot(b,"P",{});var d=ht(s);n=Ft(d,"ver "),o=Ft(d,r),d.forEach(X),b.forEach(X),h.forEach(X),this.h()},h(){rt(t,"class","w-full flex justify-between pb-4"),rt(e,"class","text-center text-sm"),rt(f,"class","w-full h-full p-4 text-left text-sm text-gray-600")},m(p,h){ut(p,f,h),nt(f,t),nt(f,a),nt(f,e),nt(e,s),nt(s,n),nt(s,o)},p:qt,d(p){p&&X(f)}}}function Xr(g){let f,t,u,a,e;f=new Oe({props:{name:"Help",$$slots:{default:[Yr]},$$scope:{ctx:g}}});function s(r){g[2](r)}let n={$$slots:{default:[qr]},$$scope:{ctx:g}};return g[0]!==void 0&&(n.showModal=g[0]),u=new Vr({props:n}),At.push(()=>Ut(u,"showModal",s)),{c(){yt(f.$$.fragment),t=bt(),yt(u.$$.fragment)},l(r){kt(f.$$.fragment,r),t=wt(r),kt(u.$$.fragment,r)},m(r,o){Et(f,r,o),ut(r,t,o),Et(u,r,o),e=!0},p(r,[o]){const p={};o&9&&(p.$$scope={dirty:o,ctx:r}),f.$set(p);const h={};o&8&&(h.$$scope={dirty:o,ctx:r}),!a&&o&1&&(a=!0,h.showModal=r[0],Mt(()=>a=!1)),u.$set(h)},i(r){e||(ft(f.$$.fragment,r),ft(u.$$.fragment,r),e=!0)},o(r){dt(f.$$.fragment,r),dt(u.$$.fragment,r),e=!1},d(r){r&&X(t),Ct(f,r),Ct(u,r)}}}function Jr(g,f,t){let u;const a=()=>u(!0);function e(s){u=s,t(0,u)}return[u,a,e]}class Qr extends Ot{constructor(f){super(),$t(this,f,Jr,Xr,It,{})}}function tn(g){let f,t,u,a,e,s,n,r,o,p;return t=new Ur({}),a=new br({}),s=new Qr({}),{c(){f=at("nav"),yt(t.$$.fragment),u=bt(),yt(a.$$.fragment),e=bt(),yt(s.$$.fragment),n=bt(),r=at("img"),this.h()},l(h){f=ot(h,"NAV",{class:!0});var b=ht(f);kt(t.$$.fragment,b),u=wt(b),kt(a.$$.fragment,b),e=wt(b),kt(s.$$.fragment,b),b.forEach(X),n=wt(h),r=ot(h,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){rt(f,"class","w-full h-full pl-16 pr-4 py-1 mt-1 bg-secondary flex gap-6 items-center border border-x-8 border-b-4 border-white box-border rounded-full"),rt(r,"alt","rainfly logo"),rt(r,"class","absolute left-4 top-1 w-11 z-40"),Ae(r.src,o=Wr)||rt(r,"src",o)},m(h,b){ut(h,f,b),Et(t,f,null),nt(f,u),Et(a,f,null),nt(f,e),Et(s,f,null),ut(h,n,b),ut(h,r,b),p=!0},p:qt,i(h){p||(ft(t.$$.fragment,h),ft(a.$$.fragment,h),ft(s.$$.fragment,h),p=!0)},o(h){dt(t.$$.fragment,h),dt(a.$$.fragment,h),dt(s.$$.fragment,h),p=!1},d(h){h&&(X(f),X(n),X(r)),Ct(t),Ct(a),Ct(s)}}}class en extends Ot{constructor(f){super(),$t(this,f,null,tn,It,{})}}const lt=Object.freeze({stop:0,play:1,running:2,pause:3}),Tt=Ke(lt.stop),Ne="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-play'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M7%204v16l13%20-8z'%20/%3e%3c/svg%3e",rn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-stop'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M5%205m0%202a2%202%200%200%201%202%20-2h10a2%202%200%200%201%202%202v10a2%202%200%200%201%20-2%202h-10a2%202%200%200%201%20-2%20-2z'%20/%3e%3c/svg%3e",nn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-pause'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M6%205m0%201a1%201%200%200%201%201%20-1h2a1%201%200%200%201%201%201v12a1%201%200%200%201%20-1%201h-2a1%201%200%200%201%20-1%20-1z'%20/%3e%3cpath%20d='M14%205m0%201a1%201%200%200%201%201%20-1h2a1%201%200%200%201%201%201v12a1%201%200%200%201%20-1%201h-2a1%201%200%200%201%20-1%20-1z'%20/%3e%3c/svg%3e",sn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-player-play'%20version='1.1'%20id='svg6'%20sodipodi:docname='player-run-play.svg'%20inkscape:version='1.2.2%20(b0a84865,%202022-12-01)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs10'%20/%3e%3csodipodi:namedview%20id='namedview8'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20showgrid='false'%20inkscape:zoom='9.8333333'%20inkscape:cx='-5.9491526'%20inkscape:cy='13.728814'%20inkscape:window-width='1309'%20inkscape:window-height='456'%20inkscape:window-x='0'%20inkscape:window-y='38'%20inkscape:window-maximized='0'%20inkscape:current-layer='svg6'%20/%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'%20id='path2'%20/%3e%3cpath%20d='M%207,4%20V%2020%20L%2020,12%20C%2012.687818,7.1488442%2010.512361,6.06462%207,4%20Z'%20id='path4'%20sodipodi:nodetypes='cccc'%20/%3e%3cpath%20d='m%2019.936068,21.488133%201.990171,-1.75932%20-1.990171,-1.759321'%20id='path243'%20style='stroke-width:1.87119'%20/%3e%3cpath%20d='m%2016.95081,17.969492%20-1.990172,1.759321%201.990172,1.75932'%20id='path245'%20style='stroke-width:1.87119'%20/%3e%3c/svg%3e";function an(g){let f,t,u,a,e,s,n=`Stop`,r,o;return{c(){f=at("div"),t=at("button"),u=at("img"),e=bt(),s=at("button"),s.innerHTML=n,this.h()},l(p){f=ot(p,"DIV",{class:!0});var h=ht(f);t=ot(h,"BUTTON",{class:!0});var b=ht(t);u=ot(b,"IMG",{src:!0,alt:!0}),b.forEach(X),e=wt(h),s=ot(h,"BUTTON",{class:!0,id:!0,"data-svelte-h":!0}),le(s)!=="svelte-t4jfce"&&(s.innerHTML=n),h.forEach(X),this.h()},h(){Ae(u.src,a=g[2])||rt(u,"src",a),rt(u,"alt",g[1]),rt(t,"class","z-50 svelte-o053be"),rt(s,"class","z-40 svelte-o053be"),rt(s,"id","stopButton"),mt(s,"fab-in",g[0]),mt(s,"fab-out",!g[0]),rt(f,"class","flex")},m(p,h){ut(p,f,h),nt(f,t),nt(t,u),nt(f,e),nt(f,s),r||(o=[Rt(t,"click",g[3]),Rt(s,"click",g[4])],r=!0)},p(p,[h]){h&4&&!Ae(u.src,a=p[2])&&rt(u,"src",a),h&2&&rt(u,"alt",p[1]),h&1&&mt(s,"fab-in",p[0]),h&1&&mt(s,"fab-out",!p[0])},i:qt,o:qt,d(p){p&&X(f),r=!1,ae(o)}}}function on(g,f,t){let u;se(g,Tt,o=>t(5,u=o));let a=!1,e="Play",s=Ne;function n(){u===lt.stop?Tt.set(lt.play):u===lt.play||u===lt.running?Tt.set(lt.pause):u===lt.pause&&Tt.set(lt.running)}function r(){u!==lt.stop&&Tt.set(lt.stop)}return g.$$.update=()=>{if(g.$$.dirty&32)switch(u){case lt.play:case lt.running:t(0,a=!0),t(1,e="Pause"),t(2,s=nn);break;case lt.pause:t(0,a=!0),t(1,e="Play"),t(2,s=Ne);break;default:case lt.stop:t(0,a=!1),t(1,e="Run"),t(2,s=sn)}},[a,e,s,n,r,u]}class ln extends Ot{constructor(f){super(),$t(this,f,on,an,It,{})}}const{window:un}=ir;function fn(g){let f,t,u="",a,e,s,n,r,o;return s=new ln({}),{c(){f=at("section"),t=at("canvas"),t.innerHTML=u,a=bt(),e=at("div"),yt(s.$$.fragment),this.h()},l(p){f=ot(p,"SECTION",{class:!0});var h=ht(f);t=ot(h,"CANVAS",{id:!0,class:!0,"data-svelte-h":!0}),le(t)!=="svelte-1pmpqjr"&&(t.innerHTML=u),a=wt(h),e=ot(h,"DIV",{id:!0,class:!0});var b=ht(e);kt(s.$$.fragment,b),b.forEach(X),h.forEach(X),this.h()},h(){rt(t,"id","visualizer"),rt(t,"class","svelte-hdkek4"),rt(e,"id","action-buttons"),rt(e,"class","svelte-hdkek4"),rt(f,"class","svelte-hdkek4")},m(p,h){ut(p,f,h),nt(f,t),g[4](t),nt(f,a),nt(f,e),Et(s,e,null),n=!0,r||(o=[Rt(un,"resize",g[1]),Rt(t,"wheel",nr(g[2]))],r=!0)},p:qt,i(p){n||(ft(s.$$.fragment,p),n=!0)},o(p){dt(s.$$.fragment,p),n=!1},d(p){p&&X(f),g[4](null),Ct(s),r=!1,ae(o)}}}const cn=250,xe="#FD9494",Se="#76B359",ze=1e3,Me=25;function dn(g,f,t){let u;se(g,Tt,c=>t(3,u=c));let a,e,s,n=0;const r={start:0,end:1/0,full:!0};ke(()=>{s=window.devicePixelRatio||1,e=a.getContext("2d"),b()});function o(){var x,A;if(e===null)return;e.clearRect(0,0,a.width,a.height);const c=a.width,_=a.height,m=.8;p(c,_,m);const k=_e();r.full&&(r.end=((x=k[0])==null?void 0:x.length)||1/0);const C=((A=k[0])==null?void 0:A.slice(r.start,r.end))||[];if(C.length>cn){const F=C.length,O=1,B=c/(F/O);e.beginPath(),e.moveTo(0,_/2);let T=0;for(let j=0;j{const _=_e();if(_&&_[0].length===0)return;let m=c.deltaY;Math.abs(m)>40&&(m/=40),n=Math.max(0,Math.min(n+m,ze)),r.full=n===0;const k=_e()[0].length,C=c.clientX/window.innerWidth*(r.end-r.start)+r.start,x=(k-Me)/ze*(ze-n)+Me;r.start=Math.max(0,C-x),r.end=Math.min(k,C+x),o()};function w(c){At[c?"unshift":"push"](()=>{a=c,t(0,a)})}return g.$$.update=()=>{g.$$.dirty&8&&(u===lt.play||u===lt.running?o():u===lt.stop&&h())},[a,b,d,u,w]}class hn extends Ot{constructor(f){super(),$t(this,f,dn,fn,It,{})}}function pn(g){let f,t=`${g[2].left}px`,u=`${g[2].top}px`,a,e,s;const n=g[5].default,r=Vt(n,g,g[4],null);return{c(){f=at("div"),r&&r.c(),this.h()},l(o){f=ot(o,"DIV",{class:!0,popover:!0});var p=ht(f);r&&r.l(p),p.forEach(X),this.h()},h(){rt(f,"class","absolute bg-accent m-0 px-2 py-1 rounded shadow-md text-sm"),rt(f,"popover","manual"),mt(f,"tooltip-in",g[1]),mt(f,"tooltip-out",!g[1]),ce(f,"left",t),ce(f,"top",u)},m(o,p){ut(o,f,p),r&&r.m(f,null),g[6](f),a=!0,e||(s=ye($e.call(null,f)),e=!0)},p(o,[p]){r&&r.p&&(!a||p&16)&&Gt(r,n,o,o[4],a?Yt(n,o[4],p,null):Kt(o[4]),null),(!a||p&2)&&mt(f,"tooltip-in",o[1]),(!a||p&2)&&mt(f,"tooltip-out",!o[1]),p&4&&t!==(t=`${o[2].left}px`)&&ce(f,"left",t),p&4&&u!==(u=`${o[2].top}px`)&&ce(f,"top",u)},i(o){a||(ft(r,o),a=!0)},o(o){dt(r,o),a=!1},d(o){o&&X(f),r&&r.d(o),g[6](null),e=!1,s()}}}function mn(g,f,t){let{$$slots:u={},$$scope:a}=f,{anchor:e}=f,s,n,r=!1,o,p;const h={left:-1,top:-1},b=()=>{if(r)return;t(1,r=!0),s.showPopover(),n=s.getBoundingClientRect();const c={top:e.offsetTop-n.height-.5*o<0,right:e.offsetLeft+n.width+.5*o>p.width,bottom:e.offsetTop+n.height+.5*o>p.height,left:e.offsetLeft-n.width-.5*o<0};t(2,h.top=e.offsetTop-.5*o,h),t(2,h.left=e.offsetLeft-.5*o,h),c.top&&t(2,h.top=e.offsetTop+n.height+.5*o,h),c.right&&t(2,h.left=e.offsetLeft-n.width-.5*o,h),c.bottom&&t(2,h.top=e.offsetTop-n.height-.5*o,h),c.left&&t(2,h.left=e.offsetLeft+n.width+.5*o,h)},d=()=>{t(1,r=!1),setTimeout(()=>s.hidePopover(),50)};ke(()=>(o=parseFloat(getComputedStyle(document.documentElement).fontSize),p={width:window.innerWidth,height:window.innerHeight},(async()=>(await He(),e.addEventListener("mouseover",b),e.addEventListener("mouseleave",d)))(),()=>{e.removeEventListener("mouseover",b),e.removeEventListener("mouseleave",d)}));function w(c){At[c?"unshift":"push"](()=>{s=c,t(0,s)})}return g.$$set=c=>{"anchor"in c&&t(3,e=c.anchor),"$$scope"in c&&t(4,a=c.$$scope)},[s,r,h,e,a,u,w]}class _n extends Ot{constructor(f){super(),$t(this,f,mn,pn,It,{anchor:3})}}const gn=!1,me=Ke(gn),vn="data:image/svg+xml,%3csvg%20fill='%23000000'%20width='20'%20viewBox='0%200%2032%2032'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eVIm%3c/title%3e%3cpath%20d='M26.445%2022.095l0.592-0.649h1.667l0.386%200.519-1.581%205.132h0.616l-0.1%200.261h-2.228l1.405-4.454h-2.518l-1.346%204.238h0.53l-0.091%200.217h-2.006l1.383-4.434h-2.619l-1.327%204.172h0.545l-0.090%200.261h-2.076l1.892-5.573h-0.732l0.114-0.339h2.062l0.649%200.671h1.132l0.614-0.692h1.326l0.611%200.669zM7.99%2027.033h-2.141l-0.327-0.187v-21.979h-1.545l-0.125-0.125v-1.47l0.179-0.192h9.211l0.266%200.267v1.385l-0.177%200.216h-1.348v10.857l11.006-10.857h-2.607l-0.219-0.235v-1.453l0.151-0.139h9.36l0.165%200.166v1.337l-12.615%2012.937h-0.466c-0.005-0-0.011-0-0.018-0-0.012%200-0.024%200.001-0.036%200.002l0.002-0-0.025%200.004c-0.058%200.012-0.108%200.039-0.149%200.075l0-0-0.429%200.369-0.005%200.004c-0.040%200.037-0.072%200.084-0.090%200.136l-0.001%200.002-0.37%201.037zM17.916%2018.028l0.187%200.189-0.336%201.152-0.281%200.282h-1.211l-0.226-0.226%200.389-1.088%200.36-0.309zM13.298%2027.42l1.973-5.635h-0.626l0.371-0.38h2.073l-1.953%205.692h0.779l-0.099%200.322zM30.996%2015.982h-0.034l-5.396-5.396%205.377-5.516v-2.24l-0.811-0.81h-10.245l-0.825%200.756v1.306l-3.044-3.044v-0.034l-0.019%200.018-0.018-0.018v0.034l-1.612%201.613-0.672-0.673h-10.151l-0.797%200.865v2.356l0.77%200.77h0.9v6.636l-3.382%203.38h-0.034l0.018%200.016-0.018%200.017h0.034l3.382%203.382v8.081l1.133%200.654h2.902l2.321-2.379%205.206%205.206v0.035l0.019-0.017%200.017%200.017v-0.035l3.136-3.135h0.606c0.144-0.001%200.266-0.093%200.312-0.221l0.001-0.002%200.182-0.532c0.011-0.031%200.017-0.067%200.017-0.105%200-0.073-0.024-0.14-0.064-0.195l0.001%200.001%201.827-1.827-0.765%202.452c-0.009%200.029-0.015%200.063-0.015%200.097%200%200.149%200.098%200.275%200.233%200.317l0.002%200.001c0.029%200.009%200.063%200.015%200.097%200.015%200%200%200%200%200%200h2.279c0.136-0.001%200.252-0.084%200.303-0.201l0.001-0.002%200.206-0.492c0.014-0.036%200.022-0.077%200.022-0.121%200-0.048-0.010-0.094-0.028-0.135l0.001%200.002c-0.035-0.082-0.1-0.145-0.18-0.177l-0.002-0.001c-0.036-0.015-0.077-0.024-0.121-0.025h-0.094l1.050-3.304h1.54l-1.27%204.025c-0.009%200.029-0.015%200.063-0.015%200.097%200%200.149%200.098%200.274%200.232%200.317l0.002%200.001c0.029%200.009%200.063%200.015%200.098%200.015%200%200%200.001%200%200.001%200h2.502c0%200%200.001%200%200.001%200%200.14%200%200.26-0.087%200.308-0.21l0.001-0.002%200.205-0.535c0.013-0.034%200.020-0.073%200.020-0.114%200-0.142-0.090-0.264-0.215-0.311l-0.002-0.001c-0.034-0.013-0.073-0.021-0.114-0.021h-0.181l1.413-4.59c0.011-0.031%200.017-0.066%200.017-0.103%200-0.074-0.025-0.143-0.066-0.198l0.001%200.001-0.469-0.63-0.004-0.006c-0.061-0.078-0.156-0.127-0.261-0.127h-1.795c-0.093%200-0.177%200.039-0.237%200.101l-0%200-0.5%200.549h-0.78l-0.052-0.057%205.555-5.555h0.035l-0.017-0.014z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";function Ue(g){let f,t=`Vim`,u,a;return{c(){f=at("button"),f.innerHTML=t,this.h()},l(e){f=ot(e,"BUTTON",{class:!0,"data-svelte-h":!0}),le(f)!=="svelte-ts8tlz"&&(f.innerHTML=t),this.h()},h(){rt(f,"class","p-1 transition hover:bg-accent/75"),mt(f,"bg-accent",g[1])},m(e,s){ut(e,f,s),g[15](f),u||(a=Rt(f,"click",g[9]),u=!0)},p(e,s){s&2&&mt(f,"bg-accent",e[1])},d(e){e&&X(f),g[15](null),u=!1,a()}}}function bn(g){let f;return{c(){f=Lt(g[5])},l(t){f=Ft(t,g[5])},m(t,u){ut(t,f,u)},p(t,u){u&32&&oe(f,t[5])},d(t){t&&X(f)}}}function We(g){let f,t;return f=new _n({props:{anchor:g[4],$$slots:{default:[wn]},$$scope:{ctx:g}}}),{c(){yt(f.$$.fragment)},l(u){kt(f.$$.fragment,u)},m(u,a){Et(f,u,a),t=!0},p(u,a){const e={};a&16&&(e.anchor=u[4]),a&268435456&&(e.$$scope={dirty:a,ctx:u}),f.$set(e)},i(u){t||(ft(f.$$.fragment,u),t=!0)},o(u){dt(f.$$.fragment,u),t=!1},d(u){Ct(f,u)}}}function wn(g){let f;return{c(){f=Lt("Toggle Vim mode")},l(t){f=Ft(t,"Toggle Vim mode")},m(t,u){ut(t,f,u)},d(t){t&&X(f)}}}function yn(g){let f,t,u,a=g[2]===g[7].processor?"AudioWorkletProcessor":"Main",e,s,n,r,o,p,h,b,d,w,c,_,m,k,C,x=g[2]===g[7].main&&Ue(g);function A(B){g[18](B)}let F={$$slots:{default:[bn]},$$scope:{ctx:g}};g[6]!==void 0&&(F.handleToggle=g[6]),d=new qe({props:F}),At.push(()=>Ut(d,"handleToggle",A));let O=g[2]===g[7].main&&We(g);return{c(){f=at("div"),t=at("div"),u=at("div"),e=Lt(a),s=bt(),x&&x.c(),n=bt(),r=at("div"),o=bt(),p=at("section"),h=at("div"),b=bt(),yt(d.$$.fragment),c=bt(),O&&O.c(),_=ge(),this.h()},l(B){f=ot(B,"DIV",{class:!0});var T=ht(f);t=ot(T,"DIV",{class:!0});var j=ht(t);u=ot(j,"DIV",{class:!0});var q=ht(u);e=Ft(q,a),q.forEach(X),s=wt(j),x&&x.l(j),j.forEach(X),n=wt(T),r=ot(T,"DIV",{class:!0}),ht(r).forEach(X),o=wt(T),p=ot(T,"SECTION",{});var E=ht(p);h=ot(E,"DIV",{class:!0}),ht(h).forEach(X),E.forEach(X),T.forEach(X),b=wt(B),kt(d.$$.fragment,B),c=wt(B),O&&O.l(B),_=ge(),this.h()},h(){rt(u,"class","inline-block font-semibold"),rt(t,"class","header svelte-1dpjgz1"),rt(r,"class","editor-container svelte-1dpjgz1"),rt(h,"class","vimBar"),mt(p,"hidden",!g[1]),rt(f,"class","container svelte-1dpjgz1")},m(B,T){ut(B,f,T),nt(f,t),nt(t,u),nt(u,e),nt(t,s),x&&x.m(t,null),nt(f,n),nt(f,r),g[16](r),nt(f,o),nt(f,p),nt(p,h),g[17](h),ut(B,b,T),Et(d,B,T),ut(B,c,T),O&&O.m(B,T),ut(B,_,T),m=!0,k||(C=Rt(window,"resize",g[8]),k=!0)},p(B,[T]){(!m||T&4)&&a!==(a=B[2]===B[7].processor?"AudioWorkletProcessor":"Main")&&oe(e,a),B[2]===B[7].main?x?x.p(B,T):(x=Ue(B),x.c(),x.m(t,null)):x&&(x.d(1),x=null),(!m||T&2)&&mt(p,"hidden",!B[1]);const j={};T&268435488&&(j.$$scope={dirty:T,ctx:B}),!w&&T&64&&(w=!0,j.handleToggle=B[6],Mt(()=>w=!1)),d.$set(j),B[2]===B[7].main?O?(O.p(B,T),T&4&&ft(O,1)):(O=We(B),O.c(),ft(O,1),O.m(_.parentNode,_)):O&&(Ve(),dt(O,1,1,()=>{O=null}),Ge())},i(B){m||(ft(d.$$.fragment,B),ft(O),m=!0)},o(B){dt(d.$$.fragment,B),dt(O),m=!1},d(B){B&&(X(f),X(b),X(c),X(_)),x&&x.d(),g[16](null),g[17](null),Ct(d,B),O&&O.d(B),k=!1,C()}}}function kn(g,f,t){let u,a;se(g,me,z=>t(1,u=z)),se(g,Tt,z=>t(23,a=z));let{id:e="main"}=f,s;const n=Object.freeze({processor:0,main:1});let r,o,p,h,b,d,w,c="",_,m=!1;ke(async()=>{r=(await De(async()=>{const{default:N}=await import("./monaco.ByAmqjHr.js").then(Q=>Q.m);return{default:N}},__vite__mapDeps([0,1,2,3,4]),import.meta.url)).default,h=(await De(async()=>{const{initVimMode:N}=await import("./index.DpyOq8Qx.js").then(Q=>Q.i);return{initVimMode:N}},__vite__mapDeps([5,1,2]),import.meta.url)).initVimMode;const z=s===n.processor?(await be("examples/bypass/processor.js")).data:(await be("examples/bypass/main.js")).data;o=r.editor.create(p,{minimap:{enabled:!1},fontSize:14,scrollBeyondLastLine:!1});const G=r.editor.createModel(z||'console.log("Hello World!")',"javascript");o.setModel(G),o.onDidChangeModelContent(()=>{}),O(),t(14,m=!0)}),er(()=>{r==null||r.editor.getModels().forEach(z=>z.dispose()),o==null||o.dispose()});function k(){o==null||o.layout()}function C(){return(o==null?void 0:o.getValue())||""}function x(z){o==null||o.setValue(z)}function A(z,G){const N=G==="main"?n.main:n.processor;s===N&&x(z)}async function F(){const z=C();if(z!=="")if(s===n.processor)Sr(z);else try{await zr(z),_(!1)}catch(G){throw t(5,c=G.message),_(!0),G}}function O(){o.addAction({id:"play",label:"play",keybindings:[r.KeyMod.CtrlCmd|r.KeyCode.Enter],run:()=>{a===lt.stop?Wt(Tt,a=lt.play,a):a===lt.play||a===lt.running?Wt(Tt,a=lt.pause,a):a===lt.pause&&Wt(Tt,a=lt.play,a)}}),o.addAction({id:"stop",label:"stop",keybindings:[r.KeyMod.CtrlCmd|r.KeyCode.Backspace],run:()=>{stop(),a!==lt.stop&&Wt(Tt,a=lt.stop,a)}})}function B(){b=h(o,d),Wt(me,u=!0,u),t(3,p.style.height="calc(100% - 1.75rem - 1.5rem)",p),k()}function T(){b==null||b.dispose(),Wt(me,u=!1,u),t(3,p.style.height="calc(100% - 1.75rem)",p),k()}function j(){Wt(me,u=!u,u)}function q(z){At[z?"unshift":"push"](()=>{w=z,t(4,w)})}function E(z){At[z?"unshift":"push"](()=>{p=z,t(3,p)})}function L(z){At[z?"unshift":"push"](()=>{d=z,t(0,d)})}function l(z){_=z,t(6,_)}return g.$$set=z=>{"id"in z&&t(10,e=z.id)},g.$$.update=()=>{g.$$.dirty&17411&&(t(2,s=e==="processor"?n.processor:n.main),d&&m&&(u?B():T()))},[d,u,s,p,w,c,_,n,k,j,e,C,A,F,m,q,E,L,l]}class Ze extends Ot{constructor(f){super(),$t(this,f,kn,yn,It,{id:10,getEditorCode:11,loadEditorCode:12,runEditorCode:13})}get getEditorCode(){return this.$$.ctx[11]}get loadEditorCode(){return this.$$.ctx[12]}get runEditorCode(){return this.$$.ctx[13]}}const En=g=>[...Te.entries()].forEach(([f,t])=>f!==g.target&&t({...g,currentTarget:f}));function Cn(g){let f,t,u,a,e,s,n,r,o,p,h,b,d,w,c,_,m,k,C,x,A,F;a=new en({}),n=new hn({});function O(z){g[3](z)}function B(z){g[4](z)}function T(z){g[5](z)}let j={id:"processor"};g[0]!==void 0&&(j.runEditorCode=g[0]),Ht!==void 0&&(j.loadEditorCode=Ht),ne!==void 0&&(j.getEditorCode=ne),p=new Ze({props:j}),At.push(()=>Ut(p,"runEditorCode",O)),At.push(()=>Ut(p,"loadEditorCode",B)),At.push(()=>Ut(p,"getEditorCode",T));function q(z){g[6](z)}function E(z){g[7](z)}function L(z){g[8](z)}let l={id:"main"};return g[1]!==void 0&&(l.runEditorCode=g[1]),re!==void 0&&(l.loadEditorCode=re),ie!==void 0&&(l.getEditorCode=ie),_=new Ze({props:l}),At.push(()=>Ut(_,"runEditorCode",q)),At.push(()=>Ut(_,"loadEditorCode",E)),At.push(()=>Ut(_,"getEditorCode",L)),{c(){f=bt(),t=at("main"),u=at("nav"),yt(a.$$.fragment),e=bt(),s=at("header"),yt(n.$$.fragment),r=bt(),o=at("section"),yt(p.$$.fragment),w=bt(),c=at("section"),yt(_.$$.fragment),this.h()},l(z){f=wt(z),t=ot(z,"MAIN",{class:!0});var G=ht(t);u=ot(G,"NAV",{class:!0});var N=ht(u);kt(a.$$.fragment,N),N.forEach(X),e=wt(G),s=ot(G,"HEADER",{class:!0});var Q=ht(s);kt(n.$$.fragment,Q),Q.forEach(X),r=wt(G),o=ot(G,"SECTION",{class:!0});var W=ht(o);kt(p.$$.fragment,W),W.forEach(X),w=wt(G),c=ot(G,"SECTION",{class:!0});var et=ht(c);kt(_.$$.fragment,et),et.forEach(X),G.forEach(X),this.h()},h(){rt(u,"class","col-span-2"),rt(s,"class","col-span-2"),rt(o,"class","border-r border-black"),rt(c,"class","border-l border-black"),rt(t,"class","grid grid-cols-2 grid-rows-main h-full w-full")},m(z,G){ut(z,f,G),ut(z,t,G),nt(t,u),Et(a,u,null),nt(t,e),nt(t,s),Et(n,s,null),nt(t,r),nt(t,o),Et(p,o,null),nt(t,w),nt(t,c),Et(_,c,null),x=!0,A||(F=Rt(document,"click",En),A=!0)},p(z,[G]){const N={};!h&&G&1&&(h=!0,N.runEditorCode=z[0],Mt(()=>h=!1)),!b&&G&0&&(b=!0,N.loadEditorCode=Ht,Mt(()=>b=!1)),!d&&G&0&&(d=!0,N.getEditorCode=ne,Mt(()=>d=!1)),p.$set(N);const Q={};!m&&G&2&&(m=!0,Q.runEditorCode=z[1],Mt(()=>m=!1)),!k&&G&0&&(k=!0,Q.loadEditorCode=re,Mt(()=>k=!1)),!C&&G&0&&(C=!0,Q.getEditorCode=ie,Mt(()=>C=!1)),_.$set(Q)},i(z){x||(ft(a.$$.fragment,z),ft(n.$$.fragment,z),ft(p.$$.fragment,z),ft(_.$$.fragment,z),x=!0)},o(z){dt(a.$$.fragment,z),dt(n.$$.fragment,z),dt(p.$$.fragment,z),dt(_.$$.fragment,z),x=!1},d(z){z&&(X(f),X(t)),Ct(a),Ct(n),Ct(p),Ct(_),A=!1,F()}}}let Ht,re,ne,ie;function xn(g,f,t){let u;se(g,Tt,d=>t(2,u=d));let a,e;async function s(){a();try{await e()}catch(d){throw Wt(Tt,u=lt.stop,u),d}}function n(d){a=d,t(0,a)}function r(d){Ht=d}function o(d){ne=d}function p(d){e=d,t(1,e)}function h(d){re=d}function b(d){ie=d}return g.$$.update=()=>{if(g.$$.dirty&4)switch(u){case lt.play:s();break;case lt.running:Tr();break;case lt.pause:Ir();break;default:case lt.stop:Or()}},[a,e,u,n,r,o,p,h,b]}class On extends Ot{constructor(f){super(),$t(this,f,xn,Cn,It,{})}}export{On as P,In as g}; diff --git a/rainfly/app/immutable/chunks/cssMode.CXs3sltp.js b/rainfly/app/immutable/chunks/cssMode.Otrjh-E1.js similarity index 99% rename from rainfly/app/immutable/chunks/cssMode.CXs3sltp.js rename to rainfly/app/immutable/chunks/cssMode.Otrjh-E1.js index 8a69787f3..e1bb9789b 100644 --- a/rainfly/app/immutable/chunks/cssMode.CXs3sltp.js +++ b/rainfly/app/immutable/chunks/cssMode.Otrjh-E1.js @@ -1,4 +1,4 @@ -import{m as et}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as et}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/editor.api.CvkiD53Q.js b/rainfly/app/immutable/chunks/editor.api.DqIkMm5-.js similarity index 100% rename from rainfly/app/immutable/chunks/editor.api.CvkiD53Q.js rename to rainfly/app/immutable/chunks/editor.api.DqIkMm5-.js diff --git a/rainfly/app/immutable/chunks/entry.c20owTvV.js b/rainfly/app/immutable/chunks/entry.CQAeFyMr.js similarity index 67% rename from rainfly/app/immutable/chunks/entry.c20owTvV.js rename to rainfly/app/immutable/chunks/entry.CQAeFyMr.js index 32e0cecf5..b72d23f14 100644 --- a/rainfly/app/immutable/chunks/entry.c20owTvV.js +++ b/rainfly/app/immutable/chunks/entry.CQAeFyMr.js @@ -1,3 +1,3 @@ -import{t as lt}from"./scheduler.C0ao50Yb.js";import{w as pe}from"./index.zclZ7hQ-.js";new URL("sveltekit-internal://");function ft(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ut(e){return e.split("%25").map(decodeURI).join("%25")}function dt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ht=["href","pathname","search","toString","toJSON"];function pt(e,n,t){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),a[o](s));n();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ht)Object.defineProperty(r,a,{get(){return n(),e[a]},enumerable:!0,configurable:!0});return r}const gt="/__data.json",mt=".html__data.json";function yt(e){return e.endsWith(".html")?e.replace(/\.html$/,mt):e.replace(/\/$/,"")+gt}function _t(...e){let n=5381;for(const t of e)if(typeof t=="string"){let r=t.length;for(;r;)n=n*33^t.charCodeAt(--r)}else if(ArrayBuffer.isView(t)){const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function wt(e){const n=atob(e),t=new Uint8Array(n.length);for(let r=0;r((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&B.delete(ge(e)),$e(e,n));const B=new Map;function vt(e,n){const t=ge(e,n),r=document.querySelector(t);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&B.set(t,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=wt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,n)}function bt(e,n,t){if(B.size>0){const r=ge(e,t),a=B.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const d=At.exec(c),[,h,y,u,g]=d;return n.push({name:u,matcher:g,optional:!!h,rest:!!y,chained:y?f===1&&i[0]==="":!1}),y?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function Et(e){return!/^\([^)]+\)$/.test(e)}function St(e){return e.slice(1).split("/").filter(Et)}function Rt(e,n,t){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){r[c.name]=f;const d=n[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:n,dictionary:t,matchers:r}){const a=new Set(n);return Object.entries(t).map(([s,[c,f,d]])=>{const{pattern:h,params:y}=kt(s),u={id:s,exec:g=>{const l=h.exec(g);if(l)return Rt(l,y,r)},errors:[1,...d||[]].map(g=>e[g]),layouts:[0,...f||[]].map(i),leaf:o(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function Fe(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const r=t(n);try{sessionStorage[e]=r}catch{}}var je;const U=((je=globalThis.__sveltekit_1edrils)==null?void 0:je.base)??"/rainfly";var De;const Tt=((De=globalThis.__sveltekit_1edrils)==null?void 0:De.assets)??U,Ut="1729465522802",Ve="sveltekit:snapshot",Be="sveltekit:scroll",Ge="sveltekit:states",Lt="sveltekit:pageurl",j="sveltekit:history",q="sveltekit:navigation",Y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function qe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function N(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Te={...Y,"":Y.hover};function Me(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function He(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Me(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!t||!!r||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:a,target:r,download:o}}function J(e){let n=null,t=null,r=null,a=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=N(s,"preload-code")),a===null&&(a=N(s,"preload-data")),n===null&&(n=N(s,"keepfocus")),t===null&&(t=N(s,"noscroll")),o===null&&(o=N(s,"reload")),i===null&&(i=N(s,"replacestate")),s=Me(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Te[r??"off"],preload_data:Te[a??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Ue(e){const n=pe(e);let t=!0;function r(){t=!0,n.update(i=>i)}function a(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Pt(){const{set:e,subscribe:n}=pe(!1);let t;async function r(){clearTimeout(t);try{const a=await fetch(`${Tt}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Ut;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:r}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}function Le(e){const n=Ct(e),t=new ArrayBuffer(n.length),r=new DataView(t);for(let a=0;a>16),n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255),t=r=0);return r===12?(t>>=4,n+=String.fromCharCode(t)):r===18&&(t>>=2,n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255)),n}const Nt=-1,Ot=-2,jt=-3,Dt=-4,$t=-5,Ft=-6;function Vt(e,n){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,r=Array(t.length);function a(o,i=!1){if(o===Nt)return;if(o===jt)return NaN;if(o===Dt)return 1/0;if(o===$t)return-1/0;if(o===Ft)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=t[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return r[o]=f(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let u=1;un!=null)}class re{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class We{constructor(n,t){this.status=n,this.location=t}}class ye extends Error{constructor(n,t,r){super(r),this.status=n,this.text=t}}const qt="x-sveltekit-invalidated",Mt="x-sveltekit-trailing-slash";function z(e){return e instanceof re||e instanceof ye?e.status:500}function Ht(e){return e instanceof ye?e.text:"Internal Error"}const C=Fe(Be)??{},M=Fe(Ve)??{},P={url:Ue({}),page:Ue({}),navigating:pe(null),updated:Pt()};function _e(e){C[e]=me()}function Kt(e,n){let t=e+1;for(;C[t];)delete C[t],t+=1;for(t=n+1;M[t];)delete M[t],t+=1}function $(e){return location.href=e.href,new Promise(()=>{})}async function Ye(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function Pe(){}let ae,de,X,L,he,F;const Je=[],Z=[];let R=null;const ze=[],Wt=[];let O=[],_={branch:[],error:null,url:null},we=!1,Q=!1,xe=!0,H=!1,V=!1,Xe=!1,ve=!1,be,E,T,I,ee;const G=new Set;async function on(e,n,t){var a,o;document.URL!==location.href&&(location.href=location.href),F=e,ae=It(e),L=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),E=(a=history.state)==null?void 0:a[j],T=(o=history.state)==null?void 0:o[q],E||(E=T=Date.now(),history.replaceState({...history.state,[j]:E,[q]:T},""));const r=C[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),t?await tn(he,t):Qt(location.href,{replaceState:!0}),en()}function Yt(){Je.length=0,ve=!1}function Ze(e){Z.some(n=>n==null?void 0:n.snapshot)&&(M[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function Qe(e){var n;(n=M[e])==null||n.forEach((t,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(t)})}function Ce(){_e(E),Ie(Be,C),Ze(T),Ie(Ve,M)}async function et(e,n,t,r){return W({type:"goto",url:qe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:r,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Jt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:nt({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=ae.find(t=>t.exec(rt(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function tt(e,n,t){var o;_=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),I=e.props.page,be=new F.root({target:n,props:{...e.props,stores:P,components:Z},hydrate:t,sync:!1}),Qe(T);const a={from:null,to:{params:_.params,route:{id:((o=_.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};O.forEach(i=>i(a)),Q=!0}function te({url:e,params:n,branch:t,status:r,error:a,route:o,form:i}){let s="never";if(U&&(e.pathname===U||e.pathname===U+"/"))s="always";else for(const u of t)(u==null?void 0:u.slash)!==void 0&&(s=u.slash);e.pathname=ft(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:a,route:o},props:{constructors:Gt(t).map(u=>u.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},d=!I,h=0;for(let u=0;u(s&&(c.route=!0),l[m])}),params:new Proxy(r,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:pt(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const S=new URL(b,t);return s&&u(S.href),S.origin===t.origin&&(b=S.href.slice(t.origin.length)),Q?bt(b,S.href,m):vt(b,m)},setHeaders:()=>{},depends:u,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,g)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((y=f.universal)==null?void 0:y.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,r,a,o){if(ve)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&t)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==_.params[i])return!0;for(const i of a.dependencies)if(Je.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function zt(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const r of t){const a=e.searchParams.getAll(r),o=n.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&t.delete(r)}return t}function Oe({error:e,url:n,route:t,params:r}){return{type:"loaded",state:{error:e,url:n,route:t,params:r,branch:[]},props:{page:I,constructors:[]}}}async function nt({id:e,invalidating:n,url:t,params:r,route:a,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=a,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let d=null;const h=_.url?e!==_.url.pathname+_.url.search:!1,y=_.route?a.id!==_.route.id:!1,u=zt(_.url,t);let g=!1;const l=f.map((p,v)=>{var x;const A=_.branch[v],k=!!(p!=null&&p[0])&&((A==null?void 0:A.loader)!==p[1]||Ne(g,y,h,u,(x=A.server)==null?void 0:x.uses,r));return k&&(g=!0),k});if(l.some(Boolean)){try{d=await st(t,l)}catch(p){const v=await D(p,{url:t,params:r,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:r,route:a}):oe({status:z(p),error:v,url:t,route:a})}if(d.type==="redirect")return d}const m=d==null?void 0:d.nodes;let b=!1;const S=f.map(async(p,v)=>{var se;if(!p)return;const A=_.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(A==null?void 0:A.loader)&&!Ne(b,y,h,u,(se=A.universal)==null?void 0:se.uses,r))return A;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ae({loader:p[1],url:t,params:r,route:a,parent:async()=>{var Re;const Se={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:a,branch:[s,c],status:e,error:n,route:null})}function Ee(e,n){if(!e||ne(e,U))return;let t;try{t=F.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=rt(t);for(const a of ae){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:n,route:a,params:dt(o),url:e}}}function rt(e){return ut(e.slice(U.length)||"/")}function at({url:e,type:n,intent:t,delta:r}){let a=!1;const o=ct(_,t,e,n);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||ze.forEach(s=>s(i)),a?null:o}async function W({type:e,url:n,popped:t,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Pe,block:d=Pe}){const h=Ee(n,!1),y=at({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!y){d();return}const u=E,g=T;f(),H=!0,Q&&P.navigating.set(y.navigation),ee=c;let l=h&&await nt(h);if(!l){if(ne(n,U))return await $(n);l=await ot(n,{id:null},await D(new ye(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return y.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await D(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return et(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await P.updated.check()&&(await Ye(),await $(n));if(Yt(),_e(u),Ze(g),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[j]:E+=w,[q]:T+=w,[Ge]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Kt(E,T)}if(R=null,l.props.page.state=i,Q){_=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(Wt.map(p=>p(y.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){O=O.filter(v=>!w.includes(v))};w.push(p),O.push(...w)}be.$set(l.props),Xe=!0}else tt(l,he,!1);const{activeElement:m}=document;await lt();const b=t?t.scroll:a?me():null;if(xe){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==m&&document.activeElement!==document.body;!r&&!S&&nn(),xe=!0,l.props.page&&(I=l.props.page),H=!1,e==="popstate"&&Qe(T),y.fulfil(void 0),O.forEach(w=>w(y.navigation)),P.navigating.set(null)}async function ot(e,n,t,r){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:r,error:t,url:e,route:n}):await $(e)}function Zt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function n(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",n),L.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function r(o,i){const s=He(o,L);if(!s)return;const{url:c,external:f,download:d}=ue(s,U);if(f||d)return;const h=J(s),y=c&&_.url.pathname+_.url.search===c.pathname+c.search;if(!h.reload&&!y)if(i<=h.preload_data){const u=Ee(c,!1);u&&Jt(u)}else i<=h.preload_code&&fe(c.pathname)}function a(){t.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,U);if(s||c)continue;const f=J(o);f.reload||(f.preload_code===Y.viewport&&t.observe(o),f.preload_code===Y.eager&&fe(i.pathname))}}O.push(a),a()}function D(e,n){if(e instanceof re)return e.body;const t=z(e),r=Ht(e);return F.hooks.handleError({error:e,event:n,status:t,message:r})??{message:r}}function Qt(e,n={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):et(e,n,0)}function en(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ce(),!H){const a=ct(_,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};ze.forEach(i=>i(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ce()}),(n=navigator.connection)!=null&&n.saveData||Zt(),L.addEventListener("click",async t=>{var y;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=He(t.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=ue(r,U);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=J(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){at({url:a,type:"link"})?H=!0:t.preventDefault();return}const[d,h]=a.href.split("#");if(h!==void 0&&d===ce(location)){const[,u]=_.url.href.split("#");if(u===h){t.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(y=r.ownerDocument.getElementById(decodeURIComponent(h)))==null||y.scrollIntoView();return}if(V=!0,_e(E),e(a),!c.replace_state)return;V=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),W({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const s=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ne(s,U))return;const c=t.target,f=J(c);if(f.reload)return;t.preventDefault(),t.stopPropagation();const d=new FormData(c),h=a==null?void 0:a.getAttribute("name");h&&d.append(h,(a==null?void 0:a.getAttribute("value"))??""),s.search=new URLSearchParams(d).toString(),W({type:"form",url:s,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??s.href===location.href})}),addEventListener("popstate",async t=>{var r;if((r=t.state)!=null&&r[j]){const a=t.state[j];if(ee={},a===E)return;const o=C[a],i=t.state[Ge]??{},s=new URL(t.state[Lt]??location.href),c=t.state[q],f=ce(location)===ce(_.url);if(c===T&&(Xe||f)){e(s),C[E]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),E=a;return}const h=a-E;await W({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{E=a,T=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[j]:++E,[q]:T},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&P.navigating.set(null)});function e(t){_.url=t,P.page.set({...I,url:t}),P.page.notify()}}async function tn(e,{status:n=200,error:t,node_ids:r,params:a,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ee(c,!1)||{});let f;try{const d=r.map(async(u,g)=>{const l=i[g];return l!=null&&l.uses&&(l.uses=it(l.uses)),Ae({loader:F.nodes[u],url:c,params:a,route:o,parent:async()=>{const m={};for(let b=0;bu===o.id);if(y){const u=y.layouts;for(let g=0;go?"1":"0").join(""));const r=await $e(t.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new re(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function f(y){return Vt(y,{Promise:u=>new Promise((g,l)=>{i.set(u,{fulfil:g,reject:l})})})}let d="";for(;;){const{done:y,value:u}=await s.read();if(y&&!d)break;for(d+=!u&&d?` -`:c.decode(u,{stream:!0});;){const g=d.indexOf(` -`);if(g===-1)break;const l=JSON.parse(d.slice(0,g));if(d=d.slice(g+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=it(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:S}=l,w=i.get(m);i.delete(m),S?w.reject(f(S)):w.fulfil(f(b))}}}})}function it(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function nn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=d,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:r,complete:i},fulfil:a,reject:o}}export{on as a,P as s}; +import{t as lt}from"./scheduler.C0ao50Yb.js";import{w as pe}from"./index.zclZ7hQ-.js";new URL("sveltekit-internal://");function ft(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ut(e){return e.split("%25").map(decodeURI).join("%25")}function dt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ht=["href","pathname","search","toString","toJSON"];function pt(e,n,t){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),a[o](s));n();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ht)Object.defineProperty(r,a,{get(){return n(),e[a]},enumerable:!0,configurable:!0});return r}const gt="/__data.json",mt=".html__data.json";function yt(e){return e.endsWith(".html")?e.replace(/\.html$/,mt):e.replace(/\/$/,"")+gt}function _t(...e){let n=5381;for(const t of e)if(typeof t=="string"){let r=t.length;for(;r;)n=n*33^t.charCodeAt(--r)}else if(ArrayBuffer.isView(t)){const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function wt(e){const n=atob(e),t=new Uint8Array(n.length);for(let r=0;r((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&B.delete(ge(e)),$e(e,n));const B=new Map;function vt(e,n){const t=ge(e,n),r=document.querySelector(t);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&B.set(t,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=wt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,n)}function bt(e,n,t){if(B.size>0){const r=ge(e,t),a=B.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const d=kt.exec(c),[,h,y,u,p]=d;return n.push({name:u,matcher:p,optional:!!h,rest:!!y,chained:y?f===1&&i[0]==="":!1}),y?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function Et(e){return!/^\([^)]+\)$/.test(e)}function St(e){return e.slice(1).split("/").filter(Et)}function Rt(e,n,t){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){r[c.name]=f;const d=n[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:n,dictionary:t,matchers:r}){const a=new Set(n);return Object.entries(t).map(([s,[c,f,d]])=>{const{pattern:h,params:y}=At(s),u={id:s,exec:p=>{const l=h.exec(p);if(l)return Rt(l,y,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...f||[]].map(i),leaf:o(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function Fe(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const r=t(n);try{sessionStorage[e]=r}catch{}}var je;const U=((je=globalThis.__sveltekit_1kmtmfw)==null?void 0:je.base)??"/rainfly";var De;const Tt=((De=globalThis.__sveltekit_1kmtmfw)==null?void 0:De.assets)??U,Ut="1730500717495",Ve="sveltekit:snapshot",Be="sveltekit:scroll",Ge="sveltekit:states",Lt="sveltekit:pageurl",j="sveltekit:history",q="sveltekit:navigation",Y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function qe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function N(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Te={...Y,"":Y.hover};function Me(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function He(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Me(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!t||!!r||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:a,target:r,download:o}}function J(e){let n=null,t=null,r=null,a=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=N(s,"preload-code")),a===null&&(a=N(s,"preload-data")),n===null&&(n=N(s,"keepfocus")),t===null&&(t=N(s,"noscroll")),o===null&&(o=N(s,"reload")),i===null&&(i=N(s,"replacestate")),s=Me(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Te[r??"off"],preload_data:Te[a??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Ue(e){const n=pe(e);let t=!0;function r(){t=!0,n.update(i=>i)}function a(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Pt(){const{set:e,subscribe:n}=pe(!1);let t;async function r(){clearTimeout(t);try{const a=await fetch(`${Tt}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Ut;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:r}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}function Le(e){const n=Ct(e),t=new ArrayBuffer(n.length),r=new DataView(t);for(let a=0;a>16),n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255),t=r=0);return r===12?(t>>=4,n+=String.fromCharCode(t)):r===18&&(t>>=2,n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255)),n}const Nt=-1,Ot=-2,jt=-3,Dt=-4,$t=-5,Ft=-6;function Vt(e,n){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,r=Array(t.length);function a(o,i=!1){if(o===Nt)return;if(o===jt)return NaN;if(o===Dt)return 1/0;if(o===$t)return-1/0;if(o===Ft)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=t[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return r[o]=f(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let u=1;un!=null)}class re{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class We{constructor(n,t){this.status=n,this.location=t}}class ye extends Error{constructor(n,t,r){super(r),this.status=n,this.text=t}}const qt="x-sveltekit-invalidated",Mt="x-sveltekit-trailing-slash";function z(e){return e instanceof re||e instanceof ye?e.status:500}function Ht(e){return e instanceof ye?e.text:"Internal Error"}const C=Fe(Be)??{},M=Fe(Ve)??{},P={url:Ue({}),page:Ue({}),navigating:pe(null),updated:Pt()};function _e(e){C[e]=me()}function Kt(e,n){let t=e+1;for(;C[t];)delete C[t],t+=1;for(t=n+1;M[t];)delete M[t],t+=1}function $(e){return location.href=e.href,new Promise(()=>{})}async function Ye(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function Pe(){}let ae,de,X,L,he,F;const Je=[],Z=[];let R=null;const ze=[],Wt=[];let O=[],_={branch:[],error:null,url:null},we=!1,Q=!1,xe=!0,H=!1,V=!1,Xe=!1,ve=!1,be,E,T,I,ee;const G=new Set;async function on(e,n,t){var a,o;document.URL!==location.href&&(location.href=location.href),F=e,ae=It(e),L=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),E=(a=history.state)==null?void 0:a[j],T=(o=history.state)==null?void 0:o[q],E||(E=T=Date.now(),history.replaceState({...history.state,[j]:E,[q]:T},""));const r=C[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),t?await tn(he,t):Qt(location.href,{replaceState:!0}),en()}function Yt(){Je.length=0,ve=!1}function Ze(e){Z.some(n=>n==null?void 0:n.snapshot)&&(M[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function Qe(e){var n;(n=M[e])==null||n.forEach((t,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(t)})}function Ce(){_e(E),Ie(Be,C),Ze(T),Ie(Ve,M)}async function et(e,n,t,r){return W({type:"goto",url:qe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:r,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Jt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:nt({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=ae.find(t=>t.exec(rt(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function tt(e,n,t){var o;_=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),I=e.props.page,be=new F.root({target:n,props:{...e.props,stores:P,components:Z},hydrate:t,sync:!1}),Qe(T);const a={from:null,to:{params:_.params,route:{id:((o=_.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};O.forEach(i=>i(a)),Q=!0}function te({url:e,params:n,branch:t,status:r,error:a,route:o,form:i}){let s="never";if(U&&(e.pathname===U||e.pathname===U+"/"))s="always";else for(const u of t)(u==null?void 0:u.slash)!==void 0&&(s=u.slash);e.pathname=ft(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:a,route:o},props:{constructors:Gt(t).map(u=>u.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},d=!I,h=0;for(let u=0;u(s&&(c.route=!0),l[m])}),params:new Proxy(r,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:pt(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const S=new URL(b,t);return s&&u(S.href),S.origin===t.origin&&(b=S.href.slice(t.origin.length)),Q?bt(b,S.href,m):vt(b,m)},setHeaders:()=>{},depends:u,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,p)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((y=f.universal)==null?void 0:y.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,r,a,o){if(ve)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&t)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==_.params[i])return!0;for(const i of a.dependencies)if(Je.some(s=>s(new URL(i))))return!0;return!1}function Ae(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function zt(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const r of t){const a=e.searchParams.getAll(r),o=n.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&t.delete(r)}return t}function Oe({error:e,url:n,route:t,params:r}){return{type:"loaded",state:{error:e,url:n,route:t,params:r,branch:[]},props:{page:I,constructors:[]}}}async function nt({id:e,invalidating:n,url:t,params:r,route:a,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=a,f=[...s,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),f.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let d=null;const h=_.url?e!==_.url.pathname+_.url.search:!1,y=_.route?a.id!==_.route.id:!1,u=zt(_.url,t);let p=!1;const l=f.map((g,v)=>{var x;const k=_.branch[v],A=!!(g!=null&&g[0])&&((k==null?void 0:k.loader)!==g[1]||Ne(p,y,h,u,(x=k.server)==null?void 0:x.uses,r));return A&&(p=!0),A});if(l.some(Boolean)){try{d=await st(t,l)}catch(g){const v=await D(g,{url:t,params:r,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:r,route:a}):oe({status:z(g),error:v,url:t,route:a})}if(d.type==="redirect")return d}const m=d==null?void 0:d.nodes;let b=!1;const S=f.map(async(g,v)=>{var se;if(!g)return;const k=_.branch[v],A=m==null?void 0:m[v];if((!A||A.type==="skip")&&g[1]===(k==null?void 0:k.loader)&&!Ne(b,y,h,u,(se=k.universal)==null?void 0:se.uses,r))return k;if(b=!0,(A==null?void 0:A.type)==="error")throw A;return ke({loader:g[1],url:t,params:r,route:a,parent:async()=>{var Re;const Se={};for(let ie=0;ie{});const w=[];for(let g=0;gPromise.resolve({}),server_data_node:Ae(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:a,branch:[s,c],status:e,error:n,route:null})}function Ee(e,n){if(!e||ne(e,U))return;let t;try{t=F.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=rt(t);for(const a of ae){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:n,route:a,params:dt(o),url:e}}}function rt(e){return ut(e.slice(U.length)||"/")}function at({url:e,type:n,intent:t,delta:r}){let a=!1;const o=ct(_,t,e,n);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||ze.forEach(s=>s(i)),a?null:o}async function W({type:e,url:n,popped:t,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Pe,block:d=Pe}){const h=Ee(n,!1),y=at({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!y){d();return}const u=E,p=T;f(),H=!0,Q&&P.navigating.set(y.navigation),ee=c;let l=h&&await nt(h);if(!l){if(ne(n,U))return await $(n);l=await ot(n,{id:null},await D(new ye(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return y.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await D(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return et(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await P.updated.check()&&(await Ye(),await $(n));if(Yt(),_e(u),Ze(p),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,g={[j]:E+=w,[q]:T+=w,[Ge]:i};(o?history.replaceState:history.pushState).call(history,g,"",n),o||Kt(E,T)}if(R=null,l.props.page.state=i,Q){_=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(Wt.map(g=>g(y.navigation)))).filter(g=>typeof g=="function");if(w.length>0){let g=function(){O=O.filter(v=>!w.includes(v))};w.push(g),O.push(...w)}be.$set(l.props),Xe=!0}else tt(l,he,!1);const{activeElement:m}=document;await lt();const b=t?t.scroll:a?me():null;if(xe){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==m&&document.activeElement!==document.body;!r&&!S&&nn(),xe=!0,l.props.page&&(I=l.props.page),H=!1,e==="popstate"&&Qe(T),y.fulfil(void 0),O.forEach(w=>w(y.navigation)),P.navigating.set(null)}async function ot(e,n,t,r){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:r,error:t,url:e,route:n}):await $(e)}function Zt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function n(o){o.defaultPrevented||r(o.composedPath()[0],1)}L.addEventListener("mousedown",n),L.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function r(o,i){const s=He(o,L);if(!s)return;const{url:c,external:f,download:d}=ue(s,U);if(f||d)return;const h=J(s),y=c&&_.url.pathname+_.url.search===c.pathname+c.search;if(!h.reload&&!y)if(i<=h.preload_data){const u=Ee(c,!1);u&&Jt(u)}else i<=h.preload_code&&fe(c.pathname)}function a(){t.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,U);if(s||c)continue;const f=J(o);f.reload||(f.preload_code===Y.viewport&&t.observe(o),f.preload_code===Y.eager&&fe(i.pathname))}}O.push(a),a()}function D(e,n){if(e instanceof re)return e.body;const t=z(e),r=Ht(e);return F.hooks.handleError({error:e,event:n,status:t,message:r})??{message:r}}function Qt(e,n={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):et(e,n,0)}function en(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ce(),!H){const a=ct(_,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};ze.forEach(i=>i(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ce()}),(n=navigator.connection)!=null&&n.saveData||Zt(),L.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=He(t.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=ue(r,U);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=J(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;const[d,h]=a.href.split("#"),y=d===ce(location);if(o||c.reload&&(!y||!h)){at({url:a,type:"link"})?H=!0:t.preventDefault();return}if(h!==void 0&&y){const[,u]=_.url.href.split("#");if(u===h){if(t.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const p=r.ownerDocument.getElementById(decodeURIComponent(h));p&&(p.scrollIntoView(),p.focus())}return}if(V=!0,_e(E),e(a),!c.replace_state)return;V=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),W({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const s=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ne(s,U))return;const c=t.target,f=J(c);if(f.reload)return;t.preventDefault(),t.stopPropagation();const d=new FormData(c),h=a==null?void 0:a.getAttribute("name");h&&d.append(h,(a==null?void 0:a.getAttribute("value"))??""),s.search=new URLSearchParams(d).toString(),W({type:"form",url:s,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??s.href===location.href})}),addEventListener("popstate",async t=>{var r;if((r=t.state)!=null&&r[j]){const a=t.state[j];if(ee={},a===E)return;const o=C[a],i=t.state[Ge]??{},s=new URL(t.state[Lt]??location.href),c=t.state[q],f=ce(location)===ce(_.url);if(c===T&&(Xe||f)){e(s),C[E]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),E=a;return}const h=a-E;await W({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{E=a,T=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[j]:++E,[q]:T},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&P.navigating.set(null)});function e(t){_.url=t,P.page.set({...I,url:t}),P.page.notify()}}async function tn(e,{status:n=200,error:t,node_ids:r,params:a,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ee(c,!1)||{});let f;try{const d=r.map(async(u,p)=>{const l=i[p];return l!=null&&l.uses&&(l.uses=it(l.uses)),ke({loader:F.nodes[u],url:c,params:a,route:o,parent:async()=>{const m={};for(let b=0;bu===o.id);if(y){const u=y.layouts;for(let p=0;po?"1":"0").join(""));const r=await $e(t.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new re(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function f(y){return Vt(y,{Promise:u=>new Promise((p,l)=>{i.set(u,{fulfil:p,reject:l})})})}let d="";for(;;){const{done:y,value:u}=await s.read();if(y&&!d)break;for(d+=!u&&d?` +`:c.decode(u,{stream:!0});;){const p=d.indexOf(` +`);if(p===-1)break;const l=JSON.parse(d.slice(0,p));if(d=d.slice(p+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=it(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:S}=l,w=i.get(m);i.delete(m),S?w.reject(f(S)):w.fulfil(f(b))}}}})}function it(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function nn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=d,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:r,complete:i},fulfil:a,reject:o}}export{on as a,P as s}; diff --git a/rainfly/app/immutable/chunks/freemarker2.HweAod2y.js b/rainfly/app/immutable/chunks/freemarker2.DHERNAh3.js similarity index 99% rename from rainfly/app/immutable/chunks/freemarker2.HweAod2y.js rename to rainfly/app/immutable/chunks/freemarker2.DHERNAh3.js index 2d4271199..d02e4832a 100644 --- a/rainfly/app/immutable/chunks/freemarker2.HweAod2y.js +++ b/rainfly/app/immutable/chunks/freemarker2.DHERNAh3.js @@ -1,4 +1,4 @@ -import{m as f}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as f}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/handlebars.uSlvbZoE.js b/rainfly/app/immutable/chunks/handlebars.D9MpuGlF.js similarity index 99% rename from rainfly/app/immutable/chunks/handlebars.uSlvbZoE.js rename to rainfly/app/immutable/chunks/handlebars.D9MpuGlF.js index 79577f4d9..dc0075088 100644 --- a/rainfly/app/immutable/chunks/handlebars.uSlvbZoE.js +++ b/rainfly/app/immutable/chunks/handlebars.D9MpuGlF.js @@ -1,4 +1,4 @@ -import{m as l}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as l}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/html.BoysNiqV.js b/rainfly/app/immutable/chunks/html.3IUhgcOl.js similarity index 98% rename from rainfly/app/immutable/chunks/html.BoysNiqV.js rename to rainfly/app/immutable/chunks/html.3IUhgcOl.js index 1f660d7bd..bc975d102 100644 --- a/rainfly/app/immutable/chunks/html.BoysNiqV.js +++ b/rainfly/app/immutable/chunks/html.3IUhgcOl.js @@ -1,4 +1,4 @@ -import{m as s}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/htmlMode.DPL15mys.js b/rainfly/app/immutable/chunks/htmlMode.Br3uCQKJ.js similarity index 99% rename from rainfly/app/immutable/chunks/htmlMode.DPL15mys.js rename to rainfly/app/immutable/chunks/htmlMode.Br3uCQKJ.js index 8e1bbc44d..1910445c5 100644 --- a/rainfly/app/immutable/chunks/htmlMode.DPL15mys.js +++ b/rainfly/app/immutable/chunks/htmlMode.Br3uCQKJ.js @@ -1,4 +1,4 @@ -import{m as lt}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as lt}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/index.DSQMO0PN.js b/rainfly/app/immutable/chunks/index.DpyOq8Qx.js similarity index 99% rename from rainfly/app/immutable/chunks/index.DSQMO0PN.js rename to rainfly/app/immutable/chunks/index.DpyOq8Qx.js index debabac32..afc7d60de 100644 --- a/rainfly/app/immutable/chunks/index.DSQMO0PN.js +++ b/rainfly/app/immutable/chunks/index.DpyOq8Qx.js @@ -1,4 +1,4 @@ -import{g as Vt}from"./2.DvjlXEyI.js";import{m as Pr,s as Br}from"./editor.api.CvkiD53Q.js";function _r(G,w){for(var pe=0;pere[S]})}}}return Object.freeze(Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}))}var Ht={},Wt={},Ft={};const Nr=Vt(Pr),Kr=Vt(Br);(function(G){Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var w=Nr,pe=Kr;function re(y,h){return P(y)||R(y,h)||H(y,h)||S()}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +import{g as Vt}from"./2.cEacWIcT.js";import{m as Pr,s as Br}from"./editor.api.DqIkMm5-.js";function _r(G,w){for(var pe=0;pere[S]})}}}return Object.freeze(Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}))}var Ht={},Wt={},Ft={};const Nr=Vt(Pr),Kr=Vt(Br);(function(G){Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var w=Nr,pe=Kr;function re(y,h){return P(y)||R(y,h)||H(y,h)||S()}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(y,h){if(y){if(typeof y=="string")return O(y,h);var f=Object.prototype.toString.call(y).slice(8,-1);if(f==="Object"&&y.constructor&&(f=y.constructor.name),f==="Map"||f==="Set")return Array.from(y);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return O(y,h)}}function O(y,h){(h==null||h>y.length)&&(h=y.length);for(var f=0,d=new Array(h);f"€"&&(y.toUpperCase()!=y.toLowerCase()||Re.test(y))}function Ee(y,h){if(!(this instanceof Ee))return new Ee(y,h);this.line=y,this.ch=h}function $e(y,h,f){y.dispatch(h,f)}function Oe(y){return function(){}}var Qe=function(h,f){this.pos=this.start=0,this.string=h,this.tabSize=f||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Qe.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.posf},eatSpace:function(){for(var h=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>h},skipToEnd:function(){this.pos=this.string.length},skipTo:function(h){var f=this.string.indexOf(h,this.pos);if(f>-1)return this.pos=f,!0},backUp:function(h){this.pos-=h},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(h,f,d){if(typeof h=="string"){var v=function(V){return d?V.toLowerCase():V},m=this.string.substr(this.pos,h.length);if(v(m)==v(h))return f!==!1&&(this.pos+=h.length),!0}else{var A=this.string.slice(this.pos).match(h);return A&&A.index>0?null:(A&&f!==!1&&(this.pos+=A[0].length),A)}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(h,f){this.lineStart+=h;try{return f()}finally{this.lineStart-=h}}};function ne(y){return new Ee(y.lineNumber-1,y.column-1)}function J(y){return new w.Position(y.line+1,y.ch+1)}var De=function(){function y(h,f,d,v){_(this,y),this.cm=h,this.id=f,this.lineNumber=d+1,this.column=v+1,h.marks[this.id]=this}return D(y,[{key:"clear",value:function(){delete this.cm.marks[this.id]}},{key:"find",value:function(){return ne(this)}}]),y}();function Ve(y){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=!0,d=w.KeyCode[y.keyCode];y.key&&(d=y.key,f=!1);var v=d,m=h;switch(y.keyCode){case w.KeyCode.Shift:case w.KeyCode.Meta:case w.KeyCode.Alt:case w.KeyCode.Ctrl:return v;case w.KeyCode.Escape:m=!0,v="Esc";break;case w.KeyCode.Space:m=!0;break}return d.startsWith("Key")||d.startsWith("KEY_")?v=d[d.length-1].toLowerCase():d.startsWith("Digit")?v=d.slice(5,6):d.startsWith("Numpad")?v=d.slice(6,7):d.endsWith("Arrow")?(m=!0,v=d.substring(0,d.length-5)):(d.startsWith("US_")||d.startsWith("Bracket")||!v)&&(v=y.browserEvent.key),!m&&!y.altKey&&!y.ctrlKey&&!y.metaKey?v=y.key||y.browserEvent.key:(y.altKey&&(v="Alt-".concat(v)),y.ctrlKey&&(v="Ctrl-".concat(v)),y.metaKey&&(v="Meta-".concat(v)),y.shiftKey&&(v="Shift-".concat(v))),v.length===1&&f&&(v="'".concat(v,"'")),v}var j=function(){function y(h){_(this,y),Je.call(this),this.editor=h,this.state={keyMap:"vim"},this.marks={},this.$uid=0,this.disposables=[],this.listeners={},this.curOp={},this.attached=!1,this.statusBar=null,this.options={},this.addLocalListeners(),this.ctxInsert=this.editor.createContextKey("insertMode",!0)}return D(y,[{key:"attach",value:function(){y.keyMap.vim.attach(this)}},{key:"addLocalListeners",value:function(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange),this.editor.onDidChangeModelContent(this.handleChange),this.editor.onKeyDown(this.handleKeyDown))}},{key:"handleReplaceMode",value:function(f,d){var v=!1,m=f,A=this.editor.getPosition(),K=new w.Range(A.lineNumber,A.column,A.lineNumber,A.column+1),V=!0;if(f.startsWith("'"))m=f[1];else if(m==="Enter")m=` `;else if(m==="Backspace"){var B=this.replaceStack.pop();if(!B)return;v=!0,m=B,K=new w.Range(A.lineNumber,A.column,A.lineNumber,A.column-1)}else return;d.preventDefault(),d.stopPropagation(),this.replaceStack||(this.replaceStack=[]),v||this.replaceStack.push(this.editor.getModel().getValueInRange(K)),this.editor.executeEdits("vim",[{text:m,range:K,forceMoveMarkers:V}]),v&&this.editor.setPosition(K.getStartPosition())}},{key:"setOption",value:function(f,d){this.state[f]=d,f==="theme"&&w.editor.setTheme(d)}},{key:"getConfiguration",value:function(){var f=this.editor,d=Ce;return typeof f.getConfiguration=="function"?f.getConfiguration():("EditorOption"in w.editor&&(d=w.editor.EditorOption),{readOnly:f.getOption(d.readOnly),viewInfo:{cursorWidth:f.getOption(d.cursorWidth)},fontInfo:f.getOption(d.fontInfo)})}},{key:"getOption",value:function(f){return f==="readOnly"?this.getConfiguration().readOnly:f==="firstLineNumber"?this.firstLine()+1:f==="indentWithTabs"?!this.editor.getModel().getOptions().insertSpaces:typeof this.editor.getConfiguration=="function"?this.editor.getRawConfiguration()[f]:this.editor.getRawOptions()[f]}},{key:"dispatch",value:function(f){for(var d=arguments.length,v=new Array(d>1?d-1:0),m=1;mv&&(f=v-1),this.editor.getModel().getLineContent(f+1)}},{key:"getAnchorForSelection",value:function(f){if(f.isEmpty())return f.getPosition();var d=f.getDirection();return d===w.SelectionDirection.LTR?f.getStartPosition():f.getEndPosition()}},{key:"getHeadForSelection",value:function(f){if(f.isEmpty())return f.getPosition();var d=f.getDirection();return d===w.SelectionDirection.LTR?f.getEndPosition():f.getStartPosition()}},{key:"getCursor",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!f)return ne(this.editor.getPosition());var d=this.editor.getSelection(),v;return d.isEmpty()?v=d.getPosition():f==="anchor"?v=this.getAnchorForSelection(d):v=this.getHeadForSelection(d),ne(v)}},{key:"getRange",value:function(f,d){var v=J(f),m=J(d);return this.editor.getModel().getValueInRange(w.Range.fromPositions(v,m))}},{key:"getSelection",value:function(){var f=[],d=this.editor;return d.getSelections().map(function(v){f.push(d.getModel().getValueInRange(v))}),f.join(` `)}},{key:"replaceRange",value:function(f,d,v){var m=J(d),A=v?J(v):m;this.editor.executeEdits("vim",[{text:f,range:w.Range.fromPositions(m,A)}]),this.pushUndoStop()}},{key:"pushUndoStop",value:function(){this.editor.pushUndoStop()}},{key:"setCursor",value:function(f,d){var v=f;U(f)!=="object"&&(v={},v.line=f,v.ch=d);var m=this.editor.getModel().validatePosition(J(v));this.editor.setPosition(J(v)),this.editor.revealPosition(m)}},{key:"somethingSelected",value:function(){return!this.editor.getSelection().isEmpty()}},{key:"operation",value:function(f,d){return f()}},{key:"listSelections",value:function(){var f=this,d=this.editor.getSelections();return!d.length||this.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:d.map(function(v){return v.getPosition(),v.getStartPosition(),v.getEndPosition(),{anchor:f.clipPos(ne(f.getAnchorForSelection(v))),head:f.clipPos(ne(f.getHeadForSelection(v)))}})}},{key:"focus",value:function(){this.editor.focus()}},{key:"setSelections",value:function(f,d){var v=!!this.editor.getSelections().length,m=f.map(function(V,B){var Z=V.anchor,te=V.head;return v?w.Selection.fromPositions(J(Z),J(te)):w.Selection.fromPositions(J(te),J(Z))});if(d&&m[d]&&m.push(m.splice(d,1)[0]),!!m.length){var A=m[0],K;A.getDirection()===w.SelectionDirection.LTR?K=A.getEndPosition():K=A.getStartPosition(),this.editor.setSelections(m),this.editor.revealPosition(K)}}},{key:"setSelection",value:function(f,d){var v=w.Range.fromPositions(J(f),J(d));this.editor.setSelection(v)}},{key:"getSelections",value:function(){var f=this.editor;return f.getSelections().map(function(d){return f.getModel().getValueInRange(d)})}},{key:"replaceSelections",value:function(f){var d=this.editor;d.getSelections().forEach(function(v,m){d.executeEdits("vim",[{range:v,text:f[m],forceMoveMarkers:!1}])})}},{key:"toggleOverwrite",value:function(f){f?(this.enterVimMode(),this.replaceMode=!0):(this.leaveVimMode(),this.replaceMode=!1,this.replaceStack=[])}},{key:"charCoords",value:function(f,d){return{top:f.line,left:f.ch}}},{key:"coordsChar",value:function(f,d){}},{key:"clipPos",value:function(f){var d=this.editor.getModel().validatePosition(J(f));return ne(d)}},{key:"setBookmark",value:function(f,d){var v=new De(this,this.$uid++,f.line,f.ch);return(!d||!d.insertLeft)&&(v.$insertRight=!0),this.marks[v.id]=v,v}},{key:"getScrollInfo",value:function(){var f=this.editor,d=f.getVisibleRanges(),v=re(d,1),m=v[0];return{left:0,top:m.startLineNumber-1,height:f.getModel().getLineCount(),clientHeight:m.endLineNumber-m.startLineNumber+1}}},{key:"triggerEditorAction",value:function(f){this.editor.trigger("vim",f)}},{key:"dispose",value:function(){this.dispatch("dispose"),this.removeOverlay(),y.keyMap.vim&&y.keyMap.vim.detach(this),this.disposables.forEach(function(f){return f.dispose()})}},{key:"getInputField",value:function(){}},{key:"getWrapperElement",value:function(){}},{key:"enterVimMode",value:function(){this.ctxInsert.set(!1);var f=this.getConfiguration();this.initialCursorWidth=f.viewInfo.cursorWidth||0,this.editor.updateOptions({cursorWidth:f.fontInfo.typicalFullwidthCharacterWidth,cursorBlinking:"solid"})}},{key:"leaveVimMode",value:function(){this.ctxInsert.set(!0),this.editor.updateOptions({cursorWidth:this.initialCursorWidth||0,cursorBlinking:"blink"})}},{key:"virtualSelectionMode",value:function(){return this.inVirtualSelectionMode}},{key:"markText",value:function(){return{clear:function(){},find:function(){}}}},{key:"getUserVisibleLines",value:function(){var f=this.editor.getVisibleRanges();if(!f.length)return{top:0,bottom:0};var d={top:1/0,bottom:0};return f.reduce(function(v,m){return m.startLineNumberv.bottom&&(v.bottom=m.endLineNumber),v},d),d.top-=1,d.bottom-=1,d}},{key:"findPosV",value:function(f,d,v){var m=this.editor,A=d,K=v,V=J(f);if(v==="page"){var B=m.getLayoutInfo().height,Z=this.getConfiguration().fontInfo.lineHeight;A=A*Math.floor(B/Z),K="line"}return K==="line"&&(V.lineNumber+=A),ne(V)}},{key:"findMatchingBracket",value:function(f){var d=J(f),v=this.editor.getModel(),m;if(v.bracketPairs)m=v.bracketPairs.matchBracket(d);else{var A;m=(A=v.matchBracket)===null||A===void 0?void 0:A.call(v,d)}return!m||m.length!==2?{to:null}:{to:ne(m[1].getStartPosition())}}},{key:"findFirstNonWhiteSpaceCharacter",value:function(f){return this.editor.getModel().getLineFirstNonWhitespaceColumn(f+1)-1}},{key:"scrollTo",value:function(f,d){!f&&!d||f||(d<0&&(d=this.editor.getPosition().lineNumber-d),this.editor.setScrollTop(this.editor.getTopForLineNumber(d+1)))}},{key:"moveCurrentLineTo",value:function(f){var d,v=this.editor,m=v.getPosition(),A=w.Range.fromPositions(m,m);switch(f){case"top":v.revealRangeAtTop(A);return;case"center":v.revealRangeInCenter(A);return;case"bottom":(d=v._revealRange)===null||d===void 0||d.call(v,A,ye.Bottom);return}}},{key:"getSearchCursor",value:function(f,d){var v=!1,m=!1;f instanceof RegExp&&!f.global&&(v=!f.ignoreCase,f=f.source,m=!0),d.ch==null&&(d.ch=Number.MAX_VALUE);var A=J(d),K=this,V=this.editor,B=null,Z=V.getModel(),te=Z.findMatches(f,!1,m,v)||[];return{getMatches:function(){return te},findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},jumpTo:function(ke){if(!te||!te.length)return!1;var ie=te[ke];return B=ie.range,K.highlightRanges([B],"currentFindMatch"),K.highlightRanges(te.map(function(le){return le.range}).filter(function(le){return!le.equalsRange(B)})),B},find:function(ke){if(!te||!te.length)return!1;var ie;if(ke){var le=B?B.getStartPosition():A;if(ie=Z.findPreviousMatch(f,le,m,v),!ie||!ie.range.getStartPosition().isBeforeOrEqual(le))return!1}else{var xe=B?Z.getPositionAt(Z.getOffsetAt(B.getEndPosition())+1):A;if(ie=Z.findNextMatch(f,xe,m,v),!ie||!xe.isBeforeOrEqual(ie.range.getStartPosition()))return!1}return B=ie.range,K.highlightRanges([B],"currentFindMatch"),K.highlightRanges(te.map(function(L){return L.range}).filter(function(L){return!L.equalsRange(B)})),B},from:function(){return B&&ne(B.getStartPosition())},to:function(){return B&&ne(B.getEndPosition())},replace:function(ke){B&&(V.executeEdits("vim",[{range:B,text:ke,forceMoveMarkers:!0}],function(ie){var le=ie[0].range,xe=le.endLineNumber,L=le.endColumn;B=B.setEndPosition(xe,L)}),V.setPosition(B.getStartPosition()))}}}},{key:"highlightRanges",value:function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"findMatch",v="decoration".concat(d);return this[v]=this.editor.deltaDecorations(this[v]||[],f.map(function(m){return{range:m,options:{stickiness:w.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,zIndex:13,className:d,showIfCollapsed:!0}}})),this[v]}},{key:"addOverlay",value:function(f,d,v){var m=f.query,A=!1,K=!1;m&&m instanceof RegExp&&!m.global&&(K=!0,A=!m.ignoreCase,m=m.source);var V=this.editor.getModel().findNextMatch(m,this.editor.getPosition(),K,A);!V||!V.range||this.highlightRanges([V.range])}},{key:"removeOverlay",value:function(){var f=this;["currentFindMatch","findMatch"].forEach(function(d){f.editor.deltaDecorations(f["decoration".concat(d)]||[],[])})}},{key:"scrollIntoView",value:function(f){f&&this.editor.revealPosition(J(f))}},{key:"moveH",value:function(f,d){if(d==="char"){var v=this.editor.getPosition();this.editor.setPosition(new w.Position(v.lineNumber,v.column+f))}}},{key:"scanForBracket",value:function(f,d,v,m){for(var A=m.bracketRegex,K=J(f),V=this.editor.getModel(),B=(d===-1?V.findPreviousMatch:V.findNextMatch).bind(V),Z=[],te=0;;){if(te>10)return;var Y=B(A.source,K,!0,!0,null,!0),ke=Y.matches[0];if(Y===void 0)return;var ie=y.matchingBrackets[ke];if(ie&&ie.charAt(1)===">"==d>0)Z.push(ke);else if(Z.length===0){var le=Y.range.getStartPosition();return{pos:ne(le)}}else Z.pop();K=V.getPositionAt(V.getOffsetAt(Y.range.getStartPosition())+d),te+=1}}},{key:"indexFromPos",value:function(f){return this.editor.getModel().getOffsetAt(J(f))}},{key:"posFromIndex",value:function(f){return ne(this.editor.getModel().getPositionAt(f))}},{key:"indentLine",value:function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,v=this.editor,m;v._getViewModel?m=v._getViewModel().cursorConfig:m=v._getCursors().context.config;var A=new w.Position(f+1,1),K=w.Selection.fromPositions(A,A);v.executeCommand("vim",new pe.ShiftCommand(K,{isUnshift:!d,tabSize:m.tabSize,indentSize:m.indentSize,insertSpaces:m.insertSpaces,useTabStops:m.useTabStops,autoIndent:m.autoIndent}))}},{key:"setStatusBar",value:function(f){this.statusBar=f}},{key:"openDialog",value:function(f,d,v){if(this.statusBar)return this.statusBar.setSec(f,d,v)}},{key:"openNotification",value:function(f){this.statusBar&&this.statusBar.showNotification(f)}},{key:"smartIndent",value:function(){this.editor.getAction("editor.action.formatSelection").run()}},{key:"moveCursorTo",value:function(f){var d=this.editor.getPosition();f==="start"?d.column=1:f==="end"&&(d.column=this.editor.getModel().getLineMaxColumn(d.lineNumber)),this.editor.setPosition(d)}},{key:"execCommand",value:function(f){switch(f){case"goLineLeft":this.moveCursorTo("start");break;case"goLineRight":this.moveCursorTo("end");break;case"indentAuto":this.smartIndent();break}}}]),y}();j.Pos=Ee,j.signal=$e,j.on=Oe(),j.off=Oe(),j.addClass=Oe(),j.rmClass=Oe(),j.defineOption=Oe(),j.keyMap={default:function(h){return function(f){return!0}}},j.matchingBrackets={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"},j.isWordChar=Ke,j.keyName=Ve,j.StringStream=Qe,j.e_stop=function(y){return y.stopPropagation?y.stopPropagation():y.cancelBubble=!0,j.e_preventDefault(y),!1},j.e_preventDefault=function(y){return y.preventDefault?(y.preventDefault(),y.browserEvent&&y.browserEvent.preventDefault()):y.returnValue=!1,!1},j.commands={redo:function(h){h.editor.getModel().redo()},undo:function(h){h.editor.getModel().undo()},newlineAndIndent:function(h){h.triggerEditorAction("editor.action.insertLineAfter")}},j.lookupKey=function y(h,f,d){typeof f=="string"&&(f=j.keyMap[f]);var v=typeof f=="function"?f(h):f[h];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&d(v))return"handled";if(f.fallthrough){if(!Array.isArray(f.fallthrough))return y(h,f.fallthrough,d);for(var m=0;m",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"g",type:"keyToKey",toKeys:"gk"},{keys:"g",type:"keyToKey",toKeys:"gj"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],R=O.length,P=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}],U=function(){function D(n){n.setOption("disableInput",!0),n.setOption("showCursorWhenSelecting",!1),w.default.signal(n,"vim-mode-change",{mode:"normal"}),n.on("cursorActivity",_t),xe(n),n.enterVimMode()}function ye(n){n.setOption("disableInput",!1),n.off("cursorActivity",_t),n.state.vim=null,qe&&clearTimeout(qe),n.leaveVimMode()}function Ce(n,e){n.attached=!1,this==w.default.keyMap.vim&&(n.options.$customCursor=null),(!e||e.attach!=Re)&&ye(n)}function Re(n,e){this==w.default.keyMap.vim&&(n.attached=!0,n.curOp&&(n.curOp.selectionChanged=!0),n.options.$customCursor=H),(!e||e.attach!=Re)&&D(n)}w.default.defineOption("vimMode",!1,function(n,e,t){e&&n.getOption("keyMap")!="vim"?n.setOption("keyMap","vim"):!e&&t!=w.default.Init&&/^vim/.test(n.getOption("keyMap"))&&n.setOption("keyMap","default")});function Ke(n,e){if(e){if(this[n])return this[n];var t=Oe(n);if(!t)return!1;var r=_e.findKey(e,t);return typeof r=="function"&&w.default.signal(e,"vim-keypress",t),r}}var Ee={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},$e={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function Oe(n){if(n.charAt(0)=="'")return n.charAt(1);if(n==="AltGraph")return!1;var e=n.split(/-(?!$)/),t=e[e.length-1];if(e.length==1&&e[0].length==1)return!1;if(e.length==2&&e[0]=="Shift"&&t.length==1)return!1;for(var r=!1,i=0;i"):!1}var Qe=/[\d]/,ne=[w.default.isWordChar,function(n){return n&&!w.default.isWordChar(n)&&!/\s/.test(n)}],J=[function(n){return/\S/.test(n)}];function De(n,e){for(var t=[],r=n;r"]),y=[].concat(Ve,j,Je,["-",'"',".",":","_","/"]),h;try{h=new RegExp("^[\\p{Lu}]$","u")}catch{h=/^[A-Z]$/}function f(n,e){return e>=n.firstLine()&&e<=n.lastLine()}function d(n){return/^[a-z]$/.test(n)}function v(n){return Qe.test(n)}function m(n){return h.test(n)}function A(n){return/^\s*$/.test(n)}function K(n){return".?!".indexOf(n)!=-1}function V(n,e){for(var t=0;tr?t=r:t0?1:-1,C,g=u.getCursor();do if(t+=k,p=o[(e+t)%e],p&&(C=p.find())&&!ve(g,C))break;while(ti)}return p}function l(u,c){var p=t,k=s(u,c);return t=p,k&&k.find()}return{cachedCursor:void 0,add:a,find:l,move:s}},ie=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function le(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=ie()}le.prototype={exitMacroRecordMode:function(){var e=L.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var r=L.registerController.getRegister(t);r&&(r.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog(document.createTextNode("(recording)["+t+"]"),null,{bottom:!0})),this.isRecording=!0)}};function xe(n){return n.state.vim||(n.state.vim={inputState:new ze,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),n.state.vim}var L;function lt(){L={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:ke(),macroModeState:new le,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new ut({}),searchHistoryController:new et,exCommandHistoryController:new et};for(var n in B){var e=B[n];e.value=e.defaultValue}}var He,_e={buildKeyMap:function(){},getRegisterController:function(){return L.registerController},resetVimGlobalState_:lt,getVimGlobalState_:function(){return L},maybeInitVimState_:xe,suppressErrorLogging:!1,InsertModeKey:st,map:function(e,t,r){be.map(e,t,r)},unmap:function(e,t){return be.unmap(e,t)},noremap:function(e,t,r){function i(C){return C?[C]:["normal","insert","visual"]}for(var o=i(r),a=O.length,s=R,l=a-s;l=0;o--){var a=i[o];if(e!==a.context)if(a.context)this._mapCommand(a);else{var s=["normal","insert","visual"];for(var l in s)if(s[l]!==e){var u={};for(var c in a)u[c]=a[c];u.context=s[l],this._mapCommand(u)}}}},setOption:te,getOption:Y,defineOption:Z,defineEx:function(e,t,r){if(!t)t=e;else if(e.indexOf(t)!==0)throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered');Ot[e]=r,be.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,r){var i=this.findKey(e,t,r);if(typeof i=="function")return i()},findKey:function(e,t,r){var i=xe(e);function o(){var p=L.macroModeState;if(p.isRecording){if(t=="q")return p.exitMacroRecordMode(),he(e),!0;r!="mapping"&&Ir(p,t)}}function a(){if(t==""){if(i.visualMode)we(e);else if(i.insertMode)Fe(e);else return;return he(e),!0}}function s(p){for(var k;p;)k=/<\w+-.+?>|<\w+>|./.exec(p),t=k[0],p=p.substring(k.index+t.length),_e.handleKey(e,t,"mapping")}function l(){if(a())return!0;for(var p=i.inputState.keyBuffer=i.inputState.keyBuffer+t,k=t.length==1,C=Te.matchCommand(p,O,i.inputState,"insert");p.length>1&&C.type!="full";){var p=i.inputState.keyBuffer=p.slice(1),g=Te.matchCommand(p,O,i.inputState,"insert");g.type!="none"&&(C=g)}if(C.type=="none")return he(e),!1;if(C.type=="partial")return He&&window.clearTimeout(He),He=window.setTimeout(function(){i.insertMode&&i.inputState.keyBuffer&&he(e)},Y("insertModeEscKeysTimeout")),!k;if(He&&window.clearTimeout(He),k){for(var b=e.listSelections(),x=0;x0||this.motionRepeat.length>0)&&(n=1,this.prefixRepeat.length>0&&(n*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(n*=parseInt(this.motionRepeat.join(""),10))),n};function he(n,e){n.state.vim.inputState=new ze,w.default.signal(n,"vim-command-done",e)}function me(n,e,t){this.clear(),this.keyBuffer=[n||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!e,this.blockwise=!!t}me.prototype={setText:function(e,t,r){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!r},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push(` diff --git a/rainfly/app/immutable/chunks/javascript.BWvIKIZb.js b/rainfly/app/immutable/chunks/javascript.deHjZ_33.js similarity index 94% rename from rainfly/app/immutable/chunks/javascript.BWvIKIZb.js rename to rainfly/app/immutable/chunks/javascript.deHjZ_33.js index 7137ec65e..83258a248 100644 --- a/rainfly/app/immutable/chunks/javascript.BWvIKIZb.js +++ b/rainfly/app/immutable/chunks/javascript.deHjZ_33.js @@ -1,4 +1,4 @@ -import{conf as t,language as e}from"./typescript.B4tdj9DG.js";/*!----------------------------------------------------------------------------- +import{conf as t,language as e}from"./typescript.rPYxmar7.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/jsonMode.DnUsI8Dp.js b/rainfly/app/immutable/chunks/jsonMode.CWIdcv3Q.js similarity index 99% rename from rainfly/app/immutable/chunks/jsonMode.DnUsI8Dp.js rename to rainfly/app/immutable/chunks/jsonMode.CWIdcv3Q.js index 87422ee4f..6573afdbe 100644 --- a/rainfly/app/immutable/chunks/jsonMode.DnUsI8Dp.js +++ b/rainfly/app/immutable/chunks/jsonMode.CWIdcv3Q.js @@ -1,4 +1,4 @@ -import{m as Et}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as Et}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/liquid.B3brSHOb.js b/rainfly/app/immutable/chunks/liquid.Dr1Xaxrz.js similarity index 98% rename from rainfly/app/immutable/chunks/liquid.B3brSHOb.js rename to rainfly/app/immutable/chunks/liquid.Dr1Xaxrz.js index 58fa2b4a1..659d4cb44 100644 --- a/rainfly/app/immutable/chunks/liquid.B3brSHOb.js +++ b/rainfly/app/immutable/chunks/liquid.Dr1Xaxrz.js @@ -1,4 +1,4 @@ -import{m as l}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as l}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/mdx.Dj8N1MWa.js b/rainfly/app/immutable/chunks/mdx.nIiBJW8Q.js similarity index 98% rename from rainfly/app/immutable/chunks/mdx.Dj8N1MWa.js rename to rainfly/app/immutable/chunks/mdx.nIiBJW8Q.js index d4f03b3d3..282bd61e2 100644 --- a/rainfly/app/immutable/chunks/mdx.Dj8N1MWa.js +++ b/rainfly/app/immutable/chunks/mdx.nIiBJW8Q.js @@ -1,4 +1,4 @@ -import{m as s}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/monaco.Ce4eSfmS.js b/rainfly/app/immutable/chunks/monaco.ByAmqjHr.js similarity index 99% rename from rainfly/app/immutable/chunks/monaco.Ce4eSfmS.js rename to rainfly/app/immutable/chunks/monaco.ByAmqjHr.js index d19c44a5a..5818af9a8 100644 --- a/rainfly/app/immutable/chunks/monaco.Ce4eSfmS.js +++ b/rainfly/app/immutable/chunks/monaco.ByAmqjHr.js @@ -1,30 +1,30 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2.HweAod2y.js","./editor.api.CvkiD53Q.js","../assets/editor.mWdEp5Nj.css","./handlebars.uSlvbZoE.js","./html.BoysNiqV.js","./javascript.BWvIKIZb.js","./typescript.B4tdj9DG.js","./liquid.B3brSHOb.js","./mdx.Dj8N1MWa.js","./python.B6de1cgt.js","./razor.DzdVA6ry.js","./xml.C8ZVWCyM.js","./yaml.fDepBCvY.js","./cssMode.CXs3sltp.js","./htmlMode.DPL15mys.js","./jsonMode.DnUsI8Dp.js","./tsMode.DSMuZELl.js"])))=>i.map(i=>d[i]); -import{m as la,l as B,A as nt,C as I,I as ge,D as da,a as Ce,g as o_,b as q,M as A,E as Xt,c as b,r as re,d as Ft,e as g,f as vS,h as ue,R as ee,i as oe,j as X,k as x,S as z,n as qe,o as Dt,p as D,K as De,q as W,t as Y,u as Ie,O as _i,v as k,w as Ee,x as S,P as H,y as Oc,z as ca,B as Di,F as s_,G as vi,U as he,H as bh,J as Oe,L as ts,N as U,Q as Pi,T as bS,V as Ge,W as Ch,X as CS,Y as r_,Z as G,$ as F,_ as se,a0 as te,a1 as pe,a2 as vt,a3 as wr,a4 as bi,a5 as ot,a6 as V,a7 as N,a8 as wl,a9 as SS,aa as wS,ab as Ne,ac as yS,ad as a_,ae as ys,af as Se,ag as vd,ah as Je,ai as fe,aj as xS,ak as bt,al as IS,am as po,an as vg,ao as l_,ap as bd,aq as Me,ar as is,as as LS,at as ha,au as xs,av as Vi,aw as DS,ax as Is,ay as kS,az as bg,aA as NS,aB as jp,aC as be,aD as ki,aE as et,aF as J,aG as sn,aH as RS,aI as ci,aJ as dt,aK as Ae,aL as Wt,aM as Cg,aN as E,aO as K,aP as d_,aQ as ES,aR as Sg,aS as Cd,aT as wg,aU as yg,aV as Vn,aW as PS,aX as Fe,aY as xg,aZ as MS,a_ as Vo,a$ as Bi,b0 as Ui,b1 as ns,b2 as yr,b3 as ua,b4 as c_,b5 as Fc,b6 as Ig,b7 as ga,b8 as Sd,b9 as le,ba as TS,bb as h_,bc as xr,bd as os,be as Ir,bf as wd,bg as Lg,bh as ie,bi as xn,bj as pa,bk as AS,bl as Dg,bm as OS,bn as FS,bo as Wl,bp as Ht,bq as u_,br as ss,bs as we,bt as WS,bu as Z,bv as rs,bw as fa,bx as g_,by as Ct,bz as ma,bA as HS,bB as Bn,bC as O,bD as qp,bE as Pe,bF as yl,bG as p_,bH as Vt,bI as Gt,bJ as ce,bK as fo,bL as je,bM as lt,bN as kg,bO as as,bP as ls,bQ as ds,bR as ke,bS as Lr,bT as Sh,bU as Ng,bV as f_,bW as m_,bX as Rg,bY as VS,bZ as Un,b_ as BS,b$ as Bo,c0 as Kp,c1 as _a,c2 as yd,c3 as __,c4 as Uo,c5 as US,c6 as Rt,c7 as zS,c8 as Ci,c9 as Qt,ca as va,cb as Dr,cc as v_,cd as xd,ce as Pt,cf as $S,cg as jS,ch as qS,ci as Ls,cj as Id,ck as hi,cl as Eg,cm as KS,cn as Pg,co as GS,cp as Gp,cq as ZS,cr as XS,cs as Yi,ct as wh,cu as Mi,cv as Gn,cw as Zn,cx as QS,cy as li,cz as Tt,cA as ft,cB as YS,cC as ui,cD as gi,cE as Ze,cF as Zp,cG as ba,cH as Yt,cI as kr,cJ as b_,cK as JS,cL as ew,cM as Mg,cN as Ld,cO as tw,cP as Nr,cQ as iw,cR as Xp,cS as C_,cT as Qp,cU as nw,cV as ow,cW as sw,cX as Si,cY as rw,cZ as S_,c_ as w_,c$ as y_,d0 as Tg,d1 as x_,d2 as aw,d3 as I_,d4 as L_,d5 as lw,d6 as dw,d7 as Ag,d8 as cw,d9 as hw,da as _e,db as uw,dc as Og,dd as gw,de as zo,df as Yp,dg as pw,dh as fw,di as mw,dj as _w,dk as vw,dl as bw,dm as Cw,dn as Dd,dp as Jp,dq as yh,dr as Sw,ds as ww,dt as ef,du as xh,dv as yw,dw as Fg,dx as D_,dy as xw,dz as k_,dA as Iw,dB as N_,dC as Ih,dD as Lw,dE as Dw,dF as kw,dG as R_,dH as E_,dI as Nw,dJ as Hl,dK as P_,dL as kd,dM as Rw,dN as Ew,dO as Xn,dP as Wg,dQ as Pw,dR as tf,dS as nf,dT as Mw,dU as $o,dV as M_,dW as Tw,dX as Aw,dY as Ow,dZ as Fw,d_ as T_,d$ as A_,e0 as O_,e1 as F_,e2 as Ww,e3 as Lt,e4 as Va,e5 as of,e6 as Hw,e7 as Ca,e8 as Qs,e9 as W_,ea as sf,eb as Rr,ec as Ds,ed as H_,ee as Vl,ef as Vw,eg as V_,eh as Bw,ei as B_,ej as Uw,ek as zw,el as U_,em as hn,en as Nd,eo as $w,ep as Bl,eq as z_,er as pi,es as Xo,et as jw,eu as qw,ev as $_,ew as j_,ex as Kw,ey as q_,ez as K_,eA as G_,eB as Er,eC as Gw,eD as Zw,eE as Xw,eF as Vs,eG as rf,eH as Qw,eI as Yw,eJ as Jw,eK as ey,eL as Hg,eM as Ul,eN as We,eO as ty,eP as zl,eQ as at,eR as iy,eS as To,eT as ny,eU as Z_,eV as X_,eW as oy,eX as cr,eY as sy,eZ as ry,e_ as ay,e$ as ly,f0 as af,f1 as lf,f2 as df,f3 as mo,f4 as Q_,f5 as dy,f6 as cy,f7 as cf,f8 as xl,f9 as hy,fa as uy,fb as gy,fc as Lh,fd as Vg,fe as py,ff as Y_,fg as fy,fh as $l,fi as J_,fj as ev,fk as my,fl as _y,fm as vy,fn as by,fo as Cy,fp as Sy,fq as wy,fr as tv,fs as yy,ft as jl,fu as Ys,fv as Ba,fw as Js,fx as Ua,fy as er,fz as Ji,fA as za,fB as hf,fC as iv,fD as uf,fE as xy,fF as Wc,fG as gf,fH as Iy,fI as Ly,fJ as Dy,fK as ky,fL as Ny,fM as nv,fN as Il,fO as Ry,fP as Fn,fQ as Rd,fR as pf,fS as Ey,fT as Py,fU as ov,fV as Xe,fW as ff,fX as $a,fY as ja,fZ as Bg,f_ as My,f$ as Ty,g0 as Ay,g1 as Oy,g2 as Fy,g3 as Wy,g4 as Hy,g5 as mf,g6 as Vy,g7 as By,g8 as Uy,g9 as cs,ga as hr,gb as sv,gc as zy,gd as Ug,ge as Ll,gf as qa,gg as Hc,gh as $y,gi as zg,gj as jy,gk as $g,gl as qy,gm as Ky,gn as tr,go as Ed,gp as Gy,gq as Dh,gr as _f,gs as rn,gt as Zy,gu as Xy,gv as Qy,gw as Yy,gx as vf,gy as jg,gz as kh,gA as Jy,gB as Nh,gC as e0,gD as t0,gE as i0,gF as n0,gG as qg,gH as rv,gI as bf,gJ as Cf,gK as o0,gL as s0,gM as r0,gN as Sf,gO as Vc,gP as a0,gQ as l0,gR as d0,gS as Bc,gT as av,gU as lv,gV as dv,gW as cv,gX as hv,gY as Ti,gZ as Kg,g_ as uv,g$ as c0,h0,h1 as Pd,h2 as Md,h3 as _o,h4 as Td,h5 as Sa,h6 as u0,h7 as Ad,h8 as g0,h9 as p0,ha as f0,hb as gv,hc as m0,hd as _0,he as v0,hf as b0,hg as Bs,hh as wa,hi as C0,hj as pv,hk as fv,hl as mv,hm as Rh,hn as S0,ho as w0,hp as y0,hq as x0,hr as I0,hs as Eh,ht as L0,hu as D0,hv as k0,hw as N0,hx as R0,hy as E0,hz as P0,hA as M0,hB as _v,hC as T0,hD as wf,hE as A0,hF as O0,hG as F0,hH as W0,hI as H0,hJ as V0,hK as B0,hL as U0,hM as z0,hN as $0,hO as j0,hP as q0,hQ as K0,hR as G0,hS as Z0,hT as X0,hU as Q0,hV as Y0}from"./editor.api.CvkiD53Q.js";import{_ as R}from"./preload-helper.C1FmrZbK.js";/*!----------------------------------------------------------------------------- +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2.DHERNAh3.js","./editor.api.DqIkMm5-.js","../assets/editor.6bg1ayCN.css","./handlebars.D9MpuGlF.js","./html.3IUhgcOl.js","./javascript.deHjZ_33.js","./typescript.rPYxmar7.js","./liquid.Dr1Xaxrz.js","./mdx.nIiBJW8Q.js","./python.BxOrJB9r.js","./razor.DrhwzuJY.js","./xml.BM4BjKqS.js","./yaml.CsuVtWba.js","./cssMode.Otrjh-E1.js","./htmlMode.Br3uCQKJ.js","./jsonMode.CWIdcv3Q.js","./tsMode.Csofw3zb.js"])))=>i.map(i=>d[i]); +import{m as la,l as B,A as nt,C as I,I as ge,D as da,a as Ce,g as o_,b as q,M as A,E as Xt,c as b,r as re,d as Ft,e as g,f as vS,h as ue,R as ee,i as oe,j as X,k as x,S as z,n as qe,o as Dt,p as D,K as De,q as W,t as Y,u as Ie,O as _i,v as k,w as Ee,x as S,P as H,y as Oc,z as ca,B as Di,F as s_,G as vi,U as he,H as bh,J as Oe,L as ts,N as U,Q as Pi,T as bS,V as Ge,W as Ch,X as CS,Y as r_,Z as G,$ as F,_ as se,a0 as te,a1 as pe,a2 as vt,a3 as wr,a4 as bi,a5 as ot,a6 as V,a7 as N,a8 as wl,a9 as SS,aa as wS,ab as Ne,ac as yS,ad as a_,ae as ys,af as Se,ag as vd,ah as Je,ai as fe,aj as xS,ak as bt,al as IS,am as po,an as vg,ao as l_,ap as bd,aq as Me,ar as is,as as LS,at as ha,au as xs,av as Vi,aw as DS,ax as Is,ay as kS,az as bg,aA as NS,aB as jp,aC as be,aD as ki,aE as et,aF as J,aG as sn,aH as RS,aI as ci,aJ as dt,aK as Ae,aL as Wt,aM as Cg,aN as E,aO as K,aP as d_,aQ as ES,aR as Sg,aS as Cd,aT as wg,aU as yg,aV as Vn,aW as PS,aX as Fe,aY as xg,aZ as MS,a_ as Vo,a$ as Bi,b0 as Ui,b1 as ns,b2 as yr,b3 as ua,b4 as c_,b5 as Fc,b6 as Ig,b7 as ga,b8 as Sd,b9 as le,ba as TS,bb as h_,bc as xr,bd as os,be as Ir,bf as wd,bg as Lg,bh as ie,bi as xn,bj as pa,bk as AS,bl as Dg,bm as OS,bn as FS,bo as Wl,bp as Ht,bq as u_,br as ss,bs as we,bt as WS,bu as Z,bv as rs,bw as fa,bx as g_,by as Ct,bz as ma,bA as HS,bB as Bn,bC as O,bD as qp,bE as Pe,bF as yl,bG as p_,bH as Vt,bI as Gt,bJ as ce,bK as fo,bL as je,bM as lt,bN as kg,bO as as,bP as ls,bQ as ds,bR as ke,bS as Lr,bT as Sh,bU as Ng,bV as f_,bW as m_,bX as Rg,bY as VS,bZ as Un,b_ as BS,b$ as Bo,c0 as Kp,c1 as _a,c2 as yd,c3 as __,c4 as Uo,c5 as US,c6 as Rt,c7 as zS,c8 as Ci,c9 as Qt,ca as va,cb as Dr,cc as v_,cd as xd,ce as Pt,cf as $S,cg as jS,ch as qS,ci as Ls,cj as Id,ck as hi,cl as Eg,cm as KS,cn as Pg,co as GS,cp as Gp,cq as ZS,cr as XS,cs as Yi,ct as wh,cu as Mi,cv as Gn,cw as Zn,cx as QS,cy as li,cz as Tt,cA as ft,cB as YS,cC as ui,cD as gi,cE as Ze,cF as Zp,cG as ba,cH as Yt,cI as kr,cJ as b_,cK as JS,cL as ew,cM as Mg,cN as Ld,cO as tw,cP as Nr,cQ as iw,cR as Xp,cS as C_,cT as Qp,cU as nw,cV as ow,cW as sw,cX as Si,cY as rw,cZ as S_,c_ as w_,c$ as y_,d0 as Tg,d1 as x_,d2 as aw,d3 as I_,d4 as L_,d5 as lw,d6 as dw,d7 as Ag,d8 as cw,d9 as hw,da as _e,db as uw,dc as Og,dd as gw,de as zo,df as Yp,dg as pw,dh as fw,di as mw,dj as _w,dk as vw,dl as bw,dm as Cw,dn as Dd,dp as Jp,dq as yh,dr as Sw,ds as ww,dt as ef,du as xh,dv as yw,dw as Fg,dx as D_,dy as xw,dz as k_,dA as Iw,dB as N_,dC as Ih,dD as Lw,dE as Dw,dF as kw,dG as R_,dH as E_,dI as Nw,dJ as Hl,dK as P_,dL as kd,dM as Rw,dN as Ew,dO as Xn,dP as Wg,dQ as Pw,dR as tf,dS as nf,dT as Mw,dU as $o,dV as M_,dW as Tw,dX as Aw,dY as Ow,dZ as Fw,d_ as T_,d$ as A_,e0 as O_,e1 as F_,e2 as Ww,e3 as Lt,e4 as Va,e5 as of,e6 as Hw,e7 as Ca,e8 as Qs,e9 as W_,ea as sf,eb as Rr,ec as Ds,ed as H_,ee as Vl,ef as Vw,eg as V_,eh as Bw,ei as B_,ej as Uw,ek as zw,el as U_,em as hn,en as Nd,eo as $w,ep as Bl,eq as z_,er as pi,es as Xo,et as jw,eu as qw,ev as $_,ew as j_,ex as Kw,ey as q_,ez as K_,eA as G_,eB as Er,eC as Gw,eD as Zw,eE as Xw,eF as Vs,eG as rf,eH as Qw,eI as Yw,eJ as Jw,eK as ey,eL as Hg,eM as Ul,eN as We,eO as ty,eP as zl,eQ as at,eR as iy,eS as To,eT as ny,eU as Z_,eV as X_,eW as oy,eX as cr,eY as sy,eZ as ry,e_ as ay,e$ as ly,f0 as af,f1 as lf,f2 as df,f3 as mo,f4 as Q_,f5 as dy,f6 as cy,f7 as cf,f8 as xl,f9 as hy,fa as uy,fb as gy,fc as Lh,fd as Vg,fe as py,ff as Y_,fg as fy,fh as $l,fi as J_,fj as ev,fk as my,fl as _y,fm as vy,fn as by,fo as Cy,fp as Sy,fq as wy,fr as tv,fs as yy,ft as jl,fu as Ys,fv as Ba,fw as Js,fx as Ua,fy as er,fz as Ji,fA as za,fB as hf,fC as iv,fD as uf,fE as xy,fF as Wc,fG as gf,fH as Iy,fI as Ly,fJ as Dy,fK as ky,fL as Ny,fM as nv,fN as Il,fO as Ry,fP as Fn,fQ as Rd,fR as pf,fS as Ey,fT as Py,fU as ov,fV as Xe,fW as ff,fX as $a,fY as ja,fZ as Bg,f_ as My,f$ as Ty,g0 as Ay,g1 as Oy,g2 as Fy,g3 as Wy,g4 as Hy,g5 as mf,g6 as Vy,g7 as By,g8 as Uy,g9 as cs,ga as hr,gb as sv,gc as zy,gd as Ug,ge as Ll,gf as qa,gg as Hc,gh as $y,gi as zg,gj as jy,gk as $g,gl as qy,gm as Ky,gn as tr,go as Ed,gp as Gy,gq as Dh,gr as _f,gs as rn,gt as Zy,gu as Xy,gv as Qy,gw as Yy,gx as vf,gy as jg,gz as kh,gA as Jy,gB as Nh,gC as e0,gD as t0,gE as i0,gF as n0,gG as qg,gH as rv,gI as bf,gJ as Cf,gK as o0,gL as s0,gM as r0,gN as Sf,gO as Vc,gP as a0,gQ as l0,gR as d0,gS as Bc,gT as av,gU as lv,gV as dv,gW as cv,gX as hv,gY as Ti,gZ as Kg,g_ as uv,g$ as c0,h0,h1 as Pd,h2 as Md,h3 as _o,h4 as Td,h5 as Sa,h6 as u0,h7 as Ad,h8 as g0,h9 as p0,ha as f0,hb as gv,hc as m0,hd as _0,he as v0,hf as b0,hg as Bs,hh as wa,hi as C0,hj as pv,hk as fv,hl as mv,hm as Rh,hn as S0,ho as w0,hp as y0,hq as x0,hr as I0,hs as Eh,ht as L0,hu as D0,hv as k0,hw as N0,hx as R0,hy as E0,hz as P0,hA as M0,hB as _v,hC as T0,hD as wf,hE as A0,hF as O0,hG as F0,hH as W0,hI as H0,hJ as V0,hK as B0,hL as U0,hM as z0,hN as $0,hO as j0,hP as q0,hQ as K0,hR as G0,hS as Z0,hT as X0,hU as Q0,hV as Y0}from"./editor.api.DqIkMm5-.js";import{_ as R}from"./preload-helper.C1FmrZbK.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var J0=Object.defineProperty,ex=Object.getOwnPropertyDescriptor,tx=Object.getOwnPropertyNames,ix=Object.prototype.hasOwnProperty,nx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tx(e))!ix.call(r,n)&&n!==t&&J0(r,n,{get:()=>e[n],enumerable:!(i=ex(e,n))||i.enumerable});return r},ox=(r,e,t)=>(nx(r,e,"default"),t),ir={};ox(ir,la);var vv={},Uc={},sx=class bv{static getOrCreate(e){return Uc[e]||(Uc[e]=new bv(e)),Uc[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,vv[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function T(r){const e=r.id;vv[e]=r,ir.languages.register(r);const t=sx.getOrCreate(e);ir.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),ir.languages.onLanguageEncountered(e,async()=>{const i=await t.load();ir.languages.setLanguageConfiguration(e,i.conf)})}T({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>R(()=>import("./abap.DRC6TkPh.js"),[],import.meta.url)});T({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>R(()=>import("./apex.BuapDI9Y.js"),[],import.meta.url)});T({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>R(()=>import("./azcli.BypH-vXm.js"),[],import.meta.url)});T({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>R(()=>import("./bat.BY6pwuIY.js"),[],import.meta.url)});T({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>R(()=>import("./bicep.gRuQeaLk.js"),[],import.meta.url)});T({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>R(()=>import("./cameligo.ul-Lp4lw.js"),[],import.meta.url)});T({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>R(()=>import("./clojure.DeYg-96x.js"),[],import.meta.url)});T({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>R(()=>import("./coffee.CfnpWUYo.js"),[],import.meta.url)});T({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>R(()=>import("./cpp.C9L3yaDO.js"),[],import.meta.url)});T({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>R(()=>import("./cpp.C9L3yaDO.js"),[],import.meta.url)});T({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>R(()=>import("./csharp.DWGz5Zuj.js"),[],import.meta.url)});T({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>R(()=>import("./csp.DrRCxMg5.js"),[],import.meta.url)});T({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>R(()=>import("./css.BfLuTCmN.js"),[],import.meta.url)});T({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>R(()=>import("./cypher.DoFvH58O.js"),[],import.meta.url)});T({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>R(()=>import("./dart.DIovg4uR.js"),[],import.meta.url)});T({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>R(()=>import("./dockerfile.D2PfwrvU.js"),[],import.meta.url)});T({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>R(()=>import("./ecl.C_scCXcs.js"),[],import.meta.url)});T({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>R(()=>import("./elixir.BRk-K-rg.js"),[],import.meta.url)});T({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>R(()=>import("./flow9.DLs3tTet.js"),[],import.meta.url)});T({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>R(()=>import("./fsharp.D0UiDa5C.js"),[],import.meta.url)});T({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>R(()=>import("./freemarker2.HweAod2y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAutoInterpolationDollar)});T({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>R(()=>import("./freemarker2.HweAod2y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAngleInterpolationDollar)});T({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>R(()=>import("./freemarker2.HweAod2y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagBracketInterpolationDollar)});T({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>R(()=>import("./freemarker2.HweAod2y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAngleInterpolationBracket)});T({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>R(()=>import("./freemarker2.HweAod2y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagBracketInterpolationBracket)});T({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>R(()=>import("./freemarker2.HweAod2y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAutoInterpolationDollar)});T({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>R(()=>import("./freemarker2.HweAod2y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAutoInterpolationBracket)});T({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>R(()=>import("./go.CyVeKkvQ.js"),[],import.meta.url)});T({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>R(()=>import("./graphql.BygKL3ZF.js"),[],import.meta.url)});T({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>R(()=>import("./handlebars.uSlvbZoE.js"),__vite__mapDeps([3,1,2]),import.meta.url)});T({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>R(()=>import("./hcl.D_OY6ada.js"),[],import.meta.url)});T({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>R(()=>import("./html.BoysNiqV.js"),__vite__mapDeps([4,1,2]),import.meta.url)});T({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>R(()=>import("./ini.BTpWsGps.js"),[],import.meta.url)});T({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>R(()=>import("./java.3TATJI7h.js"),[],import.meta.url)});T({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>R(()=>import("./javascript.BWvIKIZb.js"),__vite__mapDeps([5,6,1,2]),import.meta.url)});T({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>R(()=>import("./julia.DDpSJMW6.js"),[],import.meta.url)});T({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>R(()=>import("./kotlin.DVYH6Lj_.js"),[],import.meta.url)});T({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>R(()=>import("./less.CuFlys0T.js"),[],import.meta.url)});T({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>R(()=>import("./lexon.m09vb5r-.js"),[],import.meta.url)});T({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>R(()=>import("./lua.D2Z7JJdl.js"),[],import.meta.url)});T({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>R(()=>import("./liquid.B3brSHOb.js"),__vite__mapDeps([7,1,2]),import.meta.url)});T({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>R(()=>import("./m3.B2Cf9XSq.js"),[],import.meta.url)});T({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>R(()=>import("./markdown.BXYnMxBe.js"),[],import.meta.url)});T({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>R(()=>import("./mdx.Dj8N1MWa.js"),__vite__mapDeps([8,1,2]),import.meta.url)});T({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>R(()=>import("./mips.Ckkbw-AO.js"),[],import.meta.url)});T({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>R(()=>import("./msdax.B5uW3Zvf.js"),[],import.meta.url)});T({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>R(()=>import("./mysql.B8ssZoUh.js"),[],import.meta.url)});T({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>R(()=>import("./objective-c.CrrKwR0a.js"),[],import.meta.url)});T({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>R(()=>import("./pascal.BWBTHuhh.js"),[],import.meta.url)});T({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>R(()=>import("./pascaligo.BGLI1Hdo.js"),[],import.meta.url)});T({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>R(()=>import("./perl.DDrv2Hr-.js"),[],import.meta.url)});T({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>R(()=>import("./pgsql.DLPipH_Q.js"),[],import.meta.url)});T({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>R(()=>import("./php.CTNlIIiR.js"),[],import.meta.url)});T({id:"pla",extensions:[".pla"],loader:()=>R(()=>import("./pla.2oJWbEOo.js"),[],import.meta.url)});T({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>R(()=>import("./postiats.DOk3G3cc.js"),[],import.meta.url)});T({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>R(()=>import("./powerquery.Dgyr3wWZ.js"),[],import.meta.url)});T({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>R(()=>import("./powershell.B_i9asfM.js"),[],import.meta.url)});T({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>R(()=>import("./protobuf.CV9EbfTh.js"),[],import.meta.url)});T({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>R(()=>import("./pug.CCBS_C5_.js"),[],import.meta.url)});T({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>R(()=>import("./python.B6de1cgt.js"),__vite__mapDeps([9,1,2]),import.meta.url)});T({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>R(()=>import("./qsharp.BLuZWbUW.js"),[],import.meta.url)});T({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>R(()=>import("./r.CzF1MCbP.js"),[],import.meta.url)});T({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>R(()=>import("./razor.DzdVA6ry.js"),__vite__mapDeps([10,1,2]),import.meta.url)});T({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>R(()=>import("./redis.C75U4IDy.js"),[],import.meta.url)});T({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>R(()=>import("./redshift.Bc5xkKR1.js"),[],import.meta.url)});T({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>R(()=>import("./restructuredtext.DmdQbaLT.js"),[],import.meta.url)});T({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>R(()=>import("./ruby.DB0RB20n.js"),[],import.meta.url)});T({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>R(()=>import("./rust.UMmp-gVE.js"),[],import.meta.url)});T({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>R(()=>import("./sb.DVG02705.js"),[],import.meta.url)});T({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>R(()=>import("./scala.DvSxYeG4.js"),[],import.meta.url)});T({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>R(()=>import("./scheme.yf5bffbF.js"),[],import.meta.url)});T({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>R(()=>import("./scss.Bzb7OGdO.js"),[],import.meta.url)});T({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>R(()=>import("./shell.FNqbgIOG.js"),[],import.meta.url)});T({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>R(()=>import("./solidity.DyKutqhl.js"),[],import.meta.url)});T({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>R(()=>import("./sophia.B4VqtPa2.js"),[],import.meta.url)});T({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>R(()=>import("./sparql.B7alP455.js"),[],import.meta.url)});T({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>R(()=>import("./sql.D7lU1fdU.js"),[],import.meta.url)});T({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>R(()=>import("./st.VuadG5SK.js"),[],import.meta.url)});T({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>R(()=>import("./swift.BYtUz8ZP.js"),[],import.meta.url)});T({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>R(()=>import("./systemverilog.DOAuugfS.js"),[],import.meta.url)});T({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>R(()=>import("./systemverilog.DOAuugfS.js"),[],import.meta.url)});T({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>R(()=>import("./tcl.CXKOl_mN.js"),[],import.meta.url)});T({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>R(()=>import("./twig.D9yiNO04.js"),[],import.meta.url)});T({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>R(()=>import("./typescript.B4tdj9DG.js"),__vite__mapDeps([6,1,2]),import.meta.url)});T({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>R(()=>import("./typespec.BupSXVCO.js"),[],import.meta.url)});T({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>R(()=>import("./vb.ZlaFEk-P.js"),[],import.meta.url)});T({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>R(()=>import("./wgsl.B-lZjTdr.js"),[],import.meta.url)});T({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\R(()=>import("./xml.C8ZVWCyM.js"),__vite__mapDeps([11,1,2]),import.meta.url)});T({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>R(()=>import("./yaml.fDepBCvY.js"),__vite__mapDeps([12,1,2]),import.meta.url)});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var J0=Object.defineProperty,ex=Object.getOwnPropertyDescriptor,tx=Object.getOwnPropertyNames,ix=Object.prototype.hasOwnProperty,nx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tx(e))!ix.call(r,n)&&n!==t&&J0(r,n,{get:()=>e[n],enumerable:!(i=ex(e,n))||i.enumerable});return r},ox=(r,e,t)=>(nx(r,e,"default"),t),ir={};ox(ir,la);var vv={},Uc={},sx=class bv{static getOrCreate(e){return Uc[e]||(Uc[e]=new bv(e)),Uc[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,vv[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function T(r){const e=r.id;vv[e]=r,ir.languages.register(r);const t=sx.getOrCreate(e);ir.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),ir.languages.onLanguageEncountered(e,async()=>{const i=await t.load();ir.languages.setLanguageConfiguration(e,i.conf)})}T({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>R(()=>import("./abap.DRC6TkPh.js"),[],import.meta.url)});T({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>R(()=>import("./apex.BuapDI9Y.js"),[],import.meta.url)});T({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>R(()=>import("./azcli.BypH-vXm.js"),[],import.meta.url)});T({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>R(()=>import("./bat.BY6pwuIY.js"),[],import.meta.url)});T({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>R(()=>import("./bicep.gRuQeaLk.js"),[],import.meta.url)});T({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>R(()=>import("./cameligo.ul-Lp4lw.js"),[],import.meta.url)});T({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>R(()=>import("./clojure.DeYg-96x.js"),[],import.meta.url)});T({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>R(()=>import("./coffee.CfnpWUYo.js"),[],import.meta.url)});T({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>R(()=>import("./cpp.C9L3yaDO.js"),[],import.meta.url)});T({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>R(()=>import("./cpp.C9L3yaDO.js"),[],import.meta.url)});T({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>R(()=>import("./csharp.DWGz5Zuj.js"),[],import.meta.url)});T({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>R(()=>import("./csp.DrRCxMg5.js"),[],import.meta.url)});T({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>R(()=>import("./css.BfLuTCmN.js"),[],import.meta.url)});T({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>R(()=>import("./cypher.DoFvH58O.js"),[],import.meta.url)});T({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>R(()=>import("./dart.DIovg4uR.js"),[],import.meta.url)});T({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>R(()=>import("./dockerfile.D2PfwrvU.js"),[],import.meta.url)});T({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>R(()=>import("./ecl.C_scCXcs.js"),[],import.meta.url)});T({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>R(()=>import("./elixir.BRk-K-rg.js"),[],import.meta.url)});T({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>R(()=>import("./flow9.DLs3tTet.js"),[],import.meta.url)});T({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>R(()=>import("./fsharp.D0UiDa5C.js"),[],import.meta.url)});T({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>R(()=>import("./freemarker2.DHERNAh3.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAutoInterpolationDollar)});T({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>R(()=>import("./freemarker2.DHERNAh3.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAngleInterpolationDollar)});T({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>R(()=>import("./freemarker2.DHERNAh3.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagBracketInterpolationDollar)});T({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>R(()=>import("./freemarker2.DHERNAh3.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAngleInterpolationBracket)});T({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>R(()=>import("./freemarker2.DHERNAh3.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagBracketInterpolationBracket)});T({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>R(()=>import("./freemarker2.DHERNAh3.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAutoInterpolationDollar)});T({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>R(()=>import("./freemarker2.DHERNAh3.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>r.TagAutoInterpolationBracket)});T({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>R(()=>import("./go.CyVeKkvQ.js"),[],import.meta.url)});T({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>R(()=>import("./graphql.BygKL3ZF.js"),[],import.meta.url)});T({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>R(()=>import("./handlebars.D9MpuGlF.js"),__vite__mapDeps([3,1,2]),import.meta.url)});T({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>R(()=>import("./hcl.D_OY6ada.js"),[],import.meta.url)});T({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>R(()=>import("./html.3IUhgcOl.js"),__vite__mapDeps([4,1,2]),import.meta.url)});T({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>R(()=>import("./ini.BTpWsGps.js"),[],import.meta.url)});T({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>R(()=>import("./java.3TATJI7h.js"),[],import.meta.url)});T({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>R(()=>import("./javascript.deHjZ_33.js"),__vite__mapDeps([5,6,1,2]),import.meta.url)});T({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>R(()=>import("./julia.DDpSJMW6.js"),[],import.meta.url)});T({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>R(()=>import("./kotlin.DVYH6Lj_.js"),[],import.meta.url)});T({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>R(()=>import("./less.CuFlys0T.js"),[],import.meta.url)});T({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>R(()=>import("./lexon.m09vb5r-.js"),[],import.meta.url)});T({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>R(()=>import("./lua.D2Z7JJdl.js"),[],import.meta.url)});T({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>R(()=>import("./liquid.Dr1Xaxrz.js"),__vite__mapDeps([7,1,2]),import.meta.url)});T({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>R(()=>import("./m3.B2Cf9XSq.js"),[],import.meta.url)});T({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>R(()=>import("./markdown.BXYnMxBe.js"),[],import.meta.url)});T({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>R(()=>import("./mdx.nIiBJW8Q.js"),__vite__mapDeps([8,1,2]),import.meta.url)});T({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>R(()=>import("./mips.Ckkbw-AO.js"),[],import.meta.url)});T({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>R(()=>import("./msdax.B5uW3Zvf.js"),[],import.meta.url)});T({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>R(()=>import("./mysql.B8ssZoUh.js"),[],import.meta.url)});T({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>R(()=>import("./objective-c.CrrKwR0a.js"),[],import.meta.url)});T({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>R(()=>import("./pascal.BWBTHuhh.js"),[],import.meta.url)});T({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>R(()=>import("./pascaligo.BGLI1Hdo.js"),[],import.meta.url)});T({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>R(()=>import("./perl.DDrv2Hr-.js"),[],import.meta.url)});T({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>R(()=>import("./pgsql.DLPipH_Q.js"),[],import.meta.url)});T({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>R(()=>import("./php.CTNlIIiR.js"),[],import.meta.url)});T({id:"pla",extensions:[".pla"],loader:()=>R(()=>import("./pla.2oJWbEOo.js"),[],import.meta.url)});T({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>R(()=>import("./postiats.DOk3G3cc.js"),[],import.meta.url)});T({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>R(()=>import("./powerquery.Dgyr3wWZ.js"),[],import.meta.url)});T({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>R(()=>import("./powershell.B_i9asfM.js"),[],import.meta.url)});T({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>R(()=>import("./protobuf.CV9EbfTh.js"),[],import.meta.url)});T({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>R(()=>import("./pug.CCBS_C5_.js"),[],import.meta.url)});T({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>R(()=>import("./python.BxOrJB9r.js"),__vite__mapDeps([9,1,2]),import.meta.url)});T({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>R(()=>import("./qsharp.BLuZWbUW.js"),[],import.meta.url)});T({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>R(()=>import("./r.CzF1MCbP.js"),[],import.meta.url)});T({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>R(()=>import("./razor.DrhwzuJY.js"),__vite__mapDeps([10,1,2]),import.meta.url)});T({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>R(()=>import("./redis.C75U4IDy.js"),[],import.meta.url)});T({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>R(()=>import("./redshift.Bc5xkKR1.js"),[],import.meta.url)});T({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>R(()=>import("./restructuredtext.DmdQbaLT.js"),[],import.meta.url)});T({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>R(()=>import("./ruby.DB0RB20n.js"),[],import.meta.url)});T({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>R(()=>import("./rust.UMmp-gVE.js"),[],import.meta.url)});T({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>R(()=>import("./sb.DVG02705.js"),[],import.meta.url)});T({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>R(()=>import("./scala.DvSxYeG4.js"),[],import.meta.url)});T({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>R(()=>import("./scheme.yf5bffbF.js"),[],import.meta.url)});T({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>R(()=>import("./scss.Bzb7OGdO.js"),[],import.meta.url)});T({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>R(()=>import("./shell.FNqbgIOG.js"),[],import.meta.url)});T({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>R(()=>import("./solidity.DyKutqhl.js"),[],import.meta.url)});T({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>R(()=>import("./sophia.B4VqtPa2.js"),[],import.meta.url)});T({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>R(()=>import("./sparql.B7alP455.js"),[],import.meta.url)});T({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>R(()=>import("./sql.D7lU1fdU.js"),[],import.meta.url)});T({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>R(()=>import("./st.VuadG5SK.js"),[],import.meta.url)});T({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>R(()=>import("./swift.BYtUz8ZP.js"),[],import.meta.url)});T({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>R(()=>import("./systemverilog.DOAuugfS.js"),[],import.meta.url)});T({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>R(()=>import("./systemverilog.DOAuugfS.js"),[],import.meta.url)});T({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>R(()=>import("./tcl.CXKOl_mN.js"),[],import.meta.url)});T({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>R(()=>import("./twig.D9yiNO04.js"),[],import.meta.url)});T({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>R(()=>import("./typescript.rPYxmar7.js"),__vite__mapDeps([6,1,2]),import.meta.url)});T({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>R(()=>import("./typespec.BupSXVCO.js"),[],import.meta.url)});T({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>R(()=>import("./vb.ZlaFEk-P.js"),[],import.meta.url)});T({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>R(()=>import("./wgsl.B-lZjTdr.js"),[],import.meta.url)});T({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\R(()=>import("./xml.BM4BjKqS.js"),__vite__mapDeps([11,1,2]),import.meta.url)});T({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>R(()=>import("./yaml.CsuVtWba.js"),__vite__mapDeps([12,1,2]),import.meta.url)});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var rx=Object.defineProperty,ax=Object.getOwnPropertyDescriptor,lx=Object.getOwnPropertyNames,dx=Object.prototype.hasOwnProperty,cx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of lx(e))!dx.call(r,n)&&n!==t&&rx(r,n,{get:()=>e[n],enumerable:!(i=ax(e,n))||i.enumerable});return r},hx=(r,e,t)=>(cx(r,e,"default"),t),ks={};hx(ks,la);var Gg=class{constructor(e,t,i){this._onDidChange=new ks.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Zg={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},Xg={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Cv=new Gg("css",Zg,Xg),Sv=new Gg("scss",Zg,Xg),wv=new Gg("less",Zg,Xg);ks.languages.css={cssDefaults:Cv,lessDefaults:wv,scssDefaults:Sv};function Qg(){return R(()=>import("./cssMode.CXs3sltp.js"),__vite__mapDeps([13,1,2]),import.meta.url)}ks.languages.onLanguage("less",()=>{Qg().then(r=>r.setupMode(wv))});ks.languages.onLanguage("scss",()=>{Qg().then(r=>r.setupMode(Sv))});ks.languages.onLanguage("css",()=>{Qg().then(r=>r.setupMode(Cv))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var rx=Object.defineProperty,ax=Object.getOwnPropertyDescriptor,lx=Object.getOwnPropertyNames,dx=Object.prototype.hasOwnProperty,cx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of lx(e))!dx.call(r,n)&&n!==t&&rx(r,n,{get:()=>e[n],enumerable:!(i=ax(e,n))||i.enumerable});return r},hx=(r,e,t)=>(cx(r,e,"default"),t),ks={};hx(ks,la);var Gg=class{constructor(e,t,i){this._onDidChange=new ks.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Zg={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},Xg={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Cv=new Gg("css",Zg,Xg),Sv=new Gg("scss",Zg,Xg),wv=new Gg("less",Zg,Xg);ks.languages.css={cssDefaults:Cv,lessDefaults:wv,scssDefaults:Sv};function Qg(){return R(()=>import("./cssMode.Otrjh-E1.js"),__vite__mapDeps([13,1,2]),import.meta.url)}ks.languages.onLanguage("less",()=>{Qg().then(r=>r.setupMode(wv))});ks.languages.onLanguage("scss",()=>{Qg().then(r=>r.setupMode(Sv))});ks.languages.onLanguage("css",()=>{Qg().then(r=>r.setupMode(Cv))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var ux=Object.defineProperty,gx=Object.getOwnPropertyDescriptor,px=Object.getOwnPropertyNames,fx=Object.prototype.hasOwnProperty,mx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of px(e))!fx.call(r,n)&&n!==t&&ux(r,n,{get:()=>e[n],enumerable:!(i=gx(e,n))||i.enumerable});return r},_x=(r,e,t)=>(mx(r,e,"default"),t),Od={};_x(Od,la);var vx=class{constructor(e,t,i){this._onDidChange=new Od.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},bx={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Fd={format:bx,suggest:{},data:{useDefaultDataProvider:!0}};function Wd(r){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:r===ur,documentFormattingEdits:r===ur,documentRangeFormattingEdits:r===ur}}var ur="html",yf="handlebars",xf="razor",yv=Hd(ur,Fd,Wd(ur)),Cx=yv.defaults,xv=Hd(yf,Fd,Wd(yf)),Sx=xv.defaults,Iv=Hd(xf,Fd,Wd(xf)),wx=Iv.defaults;Od.languages.html={htmlDefaults:Cx,razorDefaults:wx,handlebarDefaults:Sx,htmlLanguageService:yv,handlebarLanguageService:xv,razorLanguageService:Iv,registerHTMLLanguageService:Hd};function yx(){return R(()=>import("./htmlMode.DPL15mys.js"),__vite__mapDeps([14,1,2]),import.meta.url)}function Hd(r,e=Fd,t=Wd(r)){const i=new vx(r,e,t);let n;const o=Od.languages.onLanguage(r,async()=>{n=(await yx()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var ux=Object.defineProperty,gx=Object.getOwnPropertyDescriptor,px=Object.getOwnPropertyNames,fx=Object.prototype.hasOwnProperty,mx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of px(e))!fx.call(r,n)&&n!==t&&ux(r,n,{get:()=>e[n],enumerable:!(i=gx(e,n))||i.enumerable});return r},_x=(r,e,t)=>(mx(r,e,"default"),t),Od={};_x(Od,la);var vx=class{constructor(e,t,i){this._onDidChange=new Od.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},bx={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Fd={format:bx,suggest:{},data:{useDefaultDataProvider:!0}};function Wd(r){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:r===ur,documentFormattingEdits:r===ur,documentRangeFormattingEdits:r===ur}}var ur="html",yf="handlebars",xf="razor",yv=Hd(ur,Fd,Wd(ur)),Cx=yv.defaults,xv=Hd(yf,Fd,Wd(yf)),Sx=xv.defaults,Iv=Hd(xf,Fd,Wd(xf)),wx=Iv.defaults;Od.languages.html={htmlDefaults:Cx,razorDefaults:wx,handlebarDefaults:Sx,htmlLanguageService:yv,handlebarLanguageService:xv,razorLanguageService:Iv,registerHTMLLanguageService:Hd};function yx(){return R(()=>import("./htmlMode.Br3uCQKJ.js"),__vite__mapDeps([14,1,2]),import.meta.url)}function Hd(r,e=Fd,t=Wd(r)){const i=new vx(r,e,t);let n;const o=Od.languages.onLanguage(r,async()=>{n=(await yx()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var xx=Object.defineProperty,Ix=Object.getOwnPropertyDescriptor,Lx=Object.getOwnPropertyNames,Dx=Object.prototype.hasOwnProperty,kx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lx(e))!Dx.call(r,n)&&n!==t&&xx(r,n,{get:()=>e[n],enumerable:!(i=Ix(e,n))||i.enumerable});return r},Nx=(r,e,t)=>(kx(r,e,"default"),t),ya={};Nx(ya,la);var Rx=class{constructor(e,t,i){this._onDidChange=new ya.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Ex={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Px={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Lv=new Rx("json",Ex,Px),Mx=()=>Dv().then(r=>r.getWorker());ya.languages.json={jsonDefaults:Lv,getWorker:Mx};function Dv(){return R(()=>import("./jsonMode.DnUsI8Dp.js"),__vite__mapDeps([15,1,2]),import.meta.url)}ya.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});ya.languages.onLanguage("json",()=>{Dv().then(r=>r.setupMode(Lv))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var xx=Object.defineProperty,Ix=Object.getOwnPropertyDescriptor,Lx=Object.getOwnPropertyNames,Dx=Object.prototype.hasOwnProperty,kx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lx(e))!Dx.call(r,n)&&n!==t&&xx(r,n,{get:()=>e[n],enumerable:!(i=Ix(e,n))||i.enumerable});return r},Nx=(r,e,t)=>(kx(r,e,"default"),t),ya={};Nx(ya,la);var Rx=class{constructor(e,t,i){this._onDidChange=new ya.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Ex={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Px={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Lv=new Rx("json",Ex,Px),Mx=()=>Dv().then(r=>r.getWorker());ya.languages.json={jsonDefaults:Lv,getWorker:Mx};function Dv(){return R(()=>import("./jsonMode.CWIdcv3Q.js"),__vite__mapDeps([15,1,2]),import.meta.url)}ya.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});ya.languages.onLanguage("json",()=>{Dv().then(r=>r.setupMode(Lv))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Tx=Object.defineProperty,Ax=Object.getOwnPropertyDescriptor,Ox=Object.getOwnPropertyNames,Fx=Object.prototype.hasOwnProperty,Wx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ox(e))!Fx.call(r,n)&&n!==t&&Tx(r,n,{get:()=>e[n],enumerable:!(i=Ax(e,n))||i.enumerable});return r},Hx=(r,e,t)=>(Wx(r,e,"default"),t),Vx="5.4.5",hs={};Hx(hs,la);var kv=(r=>(r[r.None=0]="None",r[r.CommonJS=1]="CommonJS",r[r.AMD=2]="AMD",r[r.UMD=3]="UMD",r[r.System=4]="System",r[r.ES2015=5]="ES2015",r[r.ESNext=99]="ESNext",r))(kv||{}),Nv=(r=>(r[r.None=0]="None",r[r.Preserve=1]="Preserve",r[r.React=2]="React",r[r.ReactNative=3]="ReactNative",r[r.ReactJSX=4]="ReactJSX",r[r.ReactJSXDev=5]="ReactJSXDev",r))(Nv||{}),Rv=(r=>(r[r.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",r[r.LineFeed=1]="LineFeed",r))(Rv||{}),Ev=(r=>(r[r.ES3=0]="ES3",r[r.ES5=1]="ES5",r[r.ES2015=2]="ES2015",r[r.ES2016=3]="ES2016",r[r.ES2017=4]="ES2017",r[r.ES2018=5]="ES2018",r[r.ES2019=6]="ES2019",r[r.ES2020=7]="ES2020",r[r.ESNext=99]="ESNext",r[r.JSON=100]="JSON",r[r.Latest=99]="Latest",r))(Ev||{}),Pv=(r=>(r[r.Classic=1]="Classic",r[r.NodeJs=2]="NodeJs",r))(Pv||{}),Mv=class{constructor(r,e,t,i,n){this._onDidChange=new hs.Emitter,this._onDidExtraLibsChange=new hs.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(r),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(r,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===r)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:r,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(r){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),r&&r.length>0)for(const e of r){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(r){this._compilerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(r){this._diagnosticsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(r){this._workerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(r){this._inlayHintsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(r){}setEagerModelSync(r){this._eagerModelSync=r}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(r){this._modeConfiguration=r||Object.create(null),this._onDidChange.fire(void 0)}},Bx=Vx,Tv={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},Av=new Mv({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},Tv),Ov=new Mv({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},Tv),Ux=()=>Vd().then(r=>r.getTypeScriptWorker()),zx=()=>Vd().then(r=>r.getJavaScriptWorker());hs.languages.typescript={ModuleKind:kv,JsxEmit:Nv,NewLineKind:Rv,ScriptTarget:Ev,ModuleResolutionKind:Pv,typescriptVersion:Bx,typescriptDefaults:Av,javascriptDefaults:Ov,getTypeScriptWorker:Ux,getJavaScriptWorker:zx};function Vd(){return R(()=>import("./tsMode.DSMuZELl.js"),__vite__mapDeps([16,1,2]),import.meta.url)}hs.languages.onLanguage("typescript",()=>Vd().then(r=>r.setupTypeScript(Av)));hs.languages.onLanguage("javascript",()=>Vd().then(r=>r.setupJavaScript(Ov)));class $x extends nt{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:B("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:q.map,toggled:I.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:I.has("isInDiffEditor"),menu:{when:I.has("isInDiffEditor"),id:A.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ge),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class Fv extends nt{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:B("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:I.has("isInDiffEditor")})}run(e,...t){const i=e.get(ge),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class Wv extends nt{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:B("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:I.has("isInDiffEditor")})}run(e,...t){const i=e.get(ge),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const xa=B("diffEditor","Diff Editor");class jx extends Xt{constructor(){super({id:"diffEditor.switchSide",title:B("switchSide","Switch Side"),icon:q.arrowSwap,precondition:I.has("isInDiffEditor"),f1:!0,category:xa})}runEditorCommand(e,t,i){const n=Rs(e);if(n instanceof da){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class qx extends Xt{constructor(){super({id:"diffEditor.exitCompareMove",title:B("exitCompareMove","Exit Compare Move"),icon:q.close,precondition:b.comparingMovedCode,f1:!1,category:xa,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Rs(e);n instanceof da&&n.exitCompareMove()}}class Kx extends Xt{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:B("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:q.fold,precondition:I.has("isInDiffEditor"),f1:!0,category:xa})}runEditorCommand(e,t,...i){const n=Rs(e);n instanceof da&&n.collapseAllUnchangedRegions()}}class Gx extends Xt{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:B("showAllUnchangedRegions","Show All Unchanged Regions"),icon:q.unfold,precondition:I.has("isInDiffEditor"),f1:!0,category:xa})}runEditorCommand(e,t,...i){const n=Rs(e);n instanceof da&&n.showAllUnchangedRegions()}}class Ph extends nt{constructor(){super({id:"diffEditor.revert",title:B("revert","Revert"),f1:!1,category:xa})}run(e,t){var i;const n=Zx(e,t.originalUri,t.modifiedUri);n instanceof da&&n.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const Hv=B("accessibleDiffViewer","Accessible Diff Viewer");class Ns extends nt{constructor(){super({id:Ns.id,title:B("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:Hv,precondition:I.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Rs(e);t==null||t.accessibleDiffViewerNext()}}Ns.id="editor.action.accessibleDiffViewer.next";class Ia extends nt{constructor(){super({id:Ia.id,title:B("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:Hv,precondition:I.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Rs(e);t==null||t.accessibleDiffViewerPrev()}}Ia.id="editor.action.accessibleDiffViewer.prev";function Zx(r,e,t){return r.get(Ce).listDiffEditors().find(o=>{var s,a;const l=o.getModifiedEditor(),d=o.getOriginalEditor();return l&&((s=l.getModel())===null||s===void 0?void 0:s.uri.toString())===t.toString()&&d&&((a=d.getModel())===null||a===void 0?void 0:a.uri.toString())===e.toString()})||null}function Rs(r){const t=r.get(Ce).listDiffEditors(),i=o_();if(i)for(const n of t){const o=n.getContainerDomNode();if(Xx(o,i))return n}return null}function Xx(r,e){let t=e;for(;t;){if(t===r)return!0;t=t.parentElement}return!1}re($x);re(Fv);re(Wv);Ft.appendMenuItem(A.EditorTitle,{command:{id:new Wv().desc.id,title:g("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:I.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:I.has("isInDiffEditor")},order:11,group:"1_diff",when:I.and(b.diffEditorRenderSideBySideInlineBreakpointReached,I.has("isInDiffEditor"))});Ft.appendMenuItem(A.EditorTitle,{command:{id:new Fv().desc.id,title:g("showMoves","Show Moved Code Blocks"),icon:q.move,toggled:vS.create("config.diffEditor.experimental.showMoves",!0),precondition:I.has("isInDiffEditor")},order:10,group:"1_diff",when:I.has("isInDiffEditor")});re(Ph);for(const r of[{icon:q.arrowRight,key:b.diffEditorInlineMode.toNegated()},{icon:q.discard,key:b.diffEditorInlineMode}])Ft.appendMenuItem(A.DiffEditorHunkToolbar,{command:{id:new Ph().desc.id,title:g("revertHunk","Revert Block"),icon:r.icon},when:I.and(b.diffEditorModifiedWritable,r.key),order:5,group:"primary"}),Ft.appendMenuItem(A.DiffEditorSelectionToolbar,{command:{id:new Ph().desc.id,title:g("revertSelection","Revert Selection"),icon:r.icon},when:I.and(b.diffEditorModifiedWritable,r.key),order:5,group:"primary"});re(jx);re(qx);re(Kx);re(Gx);Ft.appendMenuItem(A.EditorTitle,{command:{id:Ns.id,title:g("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:I.has("isInDiffEditor")},order:10,group:"2_diff",when:I.and(b.accessibleDiffViewerVisible.negate(),I.has("isInDiffEditor"))});ue.registerCommandAlias("editor.action.diffReview.next",Ns.id);re(Ns);ue.registerCommandAlias("editor.action.diffReview.prev",Ia.id);re(Ia);var Qx=function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yx=function(r,e){return function(t,i){e(t,i,r)}},Mh;const Bd=new ee("selectionAnchorSet",!1);let Ai=Mh=class{static get(e){return e.getContribution(Mh.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Bd.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(z.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new qe().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Dt(g("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(z.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Ai.ID="editor.contrib.selectionAnchorController";Ai=Mh=Qx([Yx(1,oe)],Ai);class Jx extends D{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:b.editorTextFocus,primary:De(2089,2080),weight:100}})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.setSelectionAnchor()}}class eI extends D{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Bd})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.goToSelectionAnchor()}}class tI extends D{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Bd,kbOpts:{kbExpr:b.editorTextFocus,primary:De(2089,2089),weight:100}})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.selectFromAnchorToCursor()}}class iI extends D{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Bd,kbOpts:{kbExpr:b.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.cancelSelectionAnchor()}}X(Ai.ID,Ai,4);x(Jx);x(eI);x(tI);x(iI);const nI=W("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class oI extends D{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:b.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Ot.get(t))===null||i===void 0||i.jumpToBracket()}}class sI extends D{constructor(){super({id:"editor.action.selectToBracket",label:g("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:B("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&i.selectBrackets===!1&&(o=!1),(n=Ot.get(t))===null||n===void 0||n.selectToBracket(o)}}class rI extends D{constructor(){super({id:"editor.action.removeBrackets",label:g("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:b.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Ot.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class aI{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Ot extends k{static get(e){return e.getContribution(Ot.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Ee(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let s=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?s=o[1].getStartPosition():o[1].containsPosition(n)&&(s=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)s=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(s=l.range.getStartPosition())}}return s?new z(s.lineNumber,s.column,s.lineNumber,s.column):new z(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){const d=t.bracketPairs.findNextBracket(o);d&&d.range&&(s=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(S.compareRangesUsingStarts);const[d,c]=s;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new z(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let s=0;for(let h=0,u=e.length;h1&&o.sort(H.compare);const a=[];let l=0,d=0;const c=n.length;for(let h=0,u=o.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}x(hI);const Ud=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let r;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?r=crypto.getRandomValues.bind(crypto):r=function(i){for(let n=0;nr,asFile:()=>{},value:typeof r=="string"?r:void 0}}function uI(r,e,t){const i={id:Ud(),name:r,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class Bv{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return Di.some(this,([i,n])=>n.asFile())&&t.push("files"),zv(ql(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return ql(e)}}function ql(r){return r.toLowerCase()}function Uv(r,e){return zv(ql(r),e.map(ql))}function zv(r,e){if(r==="*/*")return e.length>0;if(e.includes(r))return!0;const t=r.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,o]=t;return o==="*"?e.some(s=>s.startsWith(n+"/")):!1}const zd=Object.freeze({create:r=>s_(r.map(e=>e.toString())).join(`\r + *-----------------------------------------------------------------------------*/var Tx=Object.defineProperty,Ax=Object.getOwnPropertyDescriptor,Ox=Object.getOwnPropertyNames,Fx=Object.prototype.hasOwnProperty,Wx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ox(e))!Fx.call(r,n)&&n!==t&&Tx(r,n,{get:()=>e[n],enumerable:!(i=Ax(e,n))||i.enumerable});return r},Hx=(r,e,t)=>(Wx(r,e,"default"),t),Vx="5.4.5",hs={};Hx(hs,la);var kv=(r=>(r[r.None=0]="None",r[r.CommonJS=1]="CommonJS",r[r.AMD=2]="AMD",r[r.UMD=3]="UMD",r[r.System=4]="System",r[r.ES2015=5]="ES2015",r[r.ESNext=99]="ESNext",r))(kv||{}),Nv=(r=>(r[r.None=0]="None",r[r.Preserve=1]="Preserve",r[r.React=2]="React",r[r.ReactNative=3]="ReactNative",r[r.ReactJSX=4]="ReactJSX",r[r.ReactJSXDev=5]="ReactJSXDev",r))(Nv||{}),Rv=(r=>(r[r.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",r[r.LineFeed=1]="LineFeed",r))(Rv||{}),Ev=(r=>(r[r.ES3=0]="ES3",r[r.ES5=1]="ES5",r[r.ES2015=2]="ES2015",r[r.ES2016=3]="ES2016",r[r.ES2017=4]="ES2017",r[r.ES2018=5]="ES2018",r[r.ES2019=6]="ES2019",r[r.ES2020=7]="ES2020",r[r.ESNext=99]="ESNext",r[r.JSON=100]="JSON",r[r.Latest=99]="Latest",r))(Ev||{}),Pv=(r=>(r[r.Classic=1]="Classic",r[r.NodeJs=2]="NodeJs",r))(Pv||{}),Mv=class{constructor(r,e,t,i,n){this._onDidChange=new hs.Emitter,this._onDidExtraLibsChange=new hs.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(r),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(r,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===r)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:r,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(r){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),r&&r.length>0)for(const e of r){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(r){this._compilerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(r){this._diagnosticsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(r){this._workerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(r){this._inlayHintsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(r){}setEagerModelSync(r){this._eagerModelSync=r}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(r){this._modeConfiguration=r||Object.create(null),this._onDidChange.fire(void 0)}},Bx=Vx,Tv={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},Av=new Mv({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},Tv),Ov=new Mv({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},Tv),Ux=()=>Vd().then(r=>r.getTypeScriptWorker()),zx=()=>Vd().then(r=>r.getJavaScriptWorker());hs.languages.typescript={ModuleKind:kv,JsxEmit:Nv,NewLineKind:Rv,ScriptTarget:Ev,ModuleResolutionKind:Pv,typescriptVersion:Bx,typescriptDefaults:Av,javascriptDefaults:Ov,getTypeScriptWorker:Ux,getJavaScriptWorker:zx};function Vd(){return R(()=>import("./tsMode.Csofw3zb.js"),__vite__mapDeps([16,1,2]),import.meta.url)}hs.languages.onLanguage("typescript",()=>Vd().then(r=>r.setupTypeScript(Av)));hs.languages.onLanguage("javascript",()=>Vd().then(r=>r.setupJavaScript(Ov)));class $x extends nt{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:B("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:q.map,toggled:I.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:I.has("isInDiffEditor"),menu:{when:I.has("isInDiffEditor"),id:A.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ge),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class Fv extends nt{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:B("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:I.has("isInDiffEditor")})}run(e,...t){const i=e.get(ge),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class Wv extends nt{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:B("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:I.has("isInDiffEditor")})}run(e,...t){const i=e.get(ge),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const xa=B("diffEditor","Diff Editor");class jx extends Xt{constructor(){super({id:"diffEditor.switchSide",title:B("switchSide","Switch Side"),icon:q.arrowSwap,precondition:I.has("isInDiffEditor"),f1:!0,category:xa})}runEditorCommand(e,t,i){const n=Rs(e);if(n instanceof da){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class qx extends Xt{constructor(){super({id:"diffEditor.exitCompareMove",title:B("exitCompareMove","Exit Compare Move"),icon:q.close,precondition:b.comparingMovedCode,f1:!1,category:xa,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Rs(e);n instanceof da&&n.exitCompareMove()}}class Kx extends Xt{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:B("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:q.fold,precondition:I.has("isInDiffEditor"),f1:!0,category:xa})}runEditorCommand(e,t,...i){const n=Rs(e);n instanceof da&&n.collapseAllUnchangedRegions()}}class Gx extends Xt{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:B("showAllUnchangedRegions","Show All Unchanged Regions"),icon:q.unfold,precondition:I.has("isInDiffEditor"),f1:!0,category:xa})}runEditorCommand(e,t,...i){const n=Rs(e);n instanceof da&&n.showAllUnchangedRegions()}}class Ph extends nt{constructor(){super({id:"diffEditor.revert",title:B("revert","Revert"),f1:!1,category:xa})}run(e,t){var i;const n=Zx(e,t.originalUri,t.modifiedUri);n instanceof da&&n.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const Hv=B("accessibleDiffViewer","Accessible Diff Viewer");class Ns extends nt{constructor(){super({id:Ns.id,title:B("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:Hv,precondition:I.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Rs(e);t==null||t.accessibleDiffViewerNext()}}Ns.id="editor.action.accessibleDiffViewer.next";class Ia extends nt{constructor(){super({id:Ia.id,title:B("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:Hv,precondition:I.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Rs(e);t==null||t.accessibleDiffViewerPrev()}}Ia.id="editor.action.accessibleDiffViewer.prev";function Zx(r,e,t){return r.get(Ce).listDiffEditors().find(o=>{var s,a;const l=o.getModifiedEditor(),d=o.getOriginalEditor();return l&&((s=l.getModel())===null||s===void 0?void 0:s.uri.toString())===t.toString()&&d&&((a=d.getModel())===null||a===void 0?void 0:a.uri.toString())===e.toString()})||null}function Rs(r){const t=r.get(Ce).listDiffEditors(),i=o_();if(i)for(const n of t){const o=n.getContainerDomNode();if(Xx(o,i))return n}return null}function Xx(r,e){let t=e;for(;t;){if(t===r)return!0;t=t.parentElement}return!1}re($x);re(Fv);re(Wv);Ft.appendMenuItem(A.EditorTitle,{command:{id:new Wv().desc.id,title:g("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:I.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:I.has("isInDiffEditor")},order:11,group:"1_diff",when:I.and(b.diffEditorRenderSideBySideInlineBreakpointReached,I.has("isInDiffEditor"))});Ft.appendMenuItem(A.EditorTitle,{command:{id:new Fv().desc.id,title:g("showMoves","Show Moved Code Blocks"),icon:q.move,toggled:vS.create("config.diffEditor.experimental.showMoves",!0),precondition:I.has("isInDiffEditor")},order:10,group:"1_diff",when:I.has("isInDiffEditor")});re(Ph);for(const r of[{icon:q.arrowRight,key:b.diffEditorInlineMode.toNegated()},{icon:q.discard,key:b.diffEditorInlineMode}])Ft.appendMenuItem(A.DiffEditorHunkToolbar,{command:{id:new Ph().desc.id,title:g("revertHunk","Revert Block"),icon:r.icon},when:I.and(b.diffEditorModifiedWritable,r.key),order:5,group:"primary"}),Ft.appendMenuItem(A.DiffEditorSelectionToolbar,{command:{id:new Ph().desc.id,title:g("revertSelection","Revert Selection"),icon:r.icon},when:I.and(b.diffEditorModifiedWritable,r.key),order:5,group:"primary"});re(jx);re(qx);re(Kx);re(Gx);Ft.appendMenuItem(A.EditorTitle,{command:{id:Ns.id,title:g("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:I.has("isInDiffEditor")},order:10,group:"2_diff",when:I.and(b.accessibleDiffViewerVisible.negate(),I.has("isInDiffEditor"))});ue.registerCommandAlias("editor.action.diffReview.next",Ns.id);re(Ns);ue.registerCommandAlias("editor.action.diffReview.prev",Ia.id);re(Ia);var Qx=function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yx=function(r,e){return function(t,i){e(t,i,r)}},Mh;const Bd=new ee("selectionAnchorSet",!1);let Ai=Mh=class{static get(e){return e.getContribution(Mh.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Bd.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(z.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new qe().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Dt(g("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(z.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Ai.ID="editor.contrib.selectionAnchorController";Ai=Mh=Qx([Yx(1,oe)],Ai);class Jx extends D{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:b.editorTextFocus,primary:De(2089,2080),weight:100}})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.setSelectionAnchor()}}class eI extends D{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Bd})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.goToSelectionAnchor()}}class tI extends D{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Bd,kbOpts:{kbExpr:b.editorTextFocus,primary:De(2089,2089),weight:100}})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.selectFromAnchorToCursor()}}class iI extends D{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Bd,kbOpts:{kbExpr:b.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Ai.get(t))===null||i===void 0||i.cancelSelectionAnchor()}}X(Ai.ID,Ai,4);x(Jx);x(eI);x(tI);x(iI);const nI=W("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class oI extends D{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:b.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Ot.get(t))===null||i===void 0||i.jumpToBracket()}}class sI extends D{constructor(){super({id:"editor.action.selectToBracket",label:g("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:B("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&i.selectBrackets===!1&&(o=!1),(n=Ot.get(t))===null||n===void 0||n.selectToBracket(o)}}class rI extends D{constructor(){super({id:"editor.action.removeBrackets",label:g("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:b.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Ot.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class aI{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Ot extends k{static get(e){return e.getContribution(Ot.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Ee(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let s=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?s=o[1].getStartPosition():o[1].containsPosition(n)&&(s=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)s=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(s=l.range.getStartPosition())}}return s?new z(s.lineNumber,s.column,s.lineNumber,s.column):new z(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){const d=t.bracketPairs.findNextBracket(o);d&&d.range&&(s=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(S.compareRangesUsingStarts);const[d,c]=s;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new z(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let s=0;for(let h=0,u=e.length;h1&&o.sort(H.compare);const a=[];let l=0,d=0;const c=n.length;for(let h=0,u=o.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}x(hI);const Ud=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let r;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?r=crypto.getRandomValues.bind(crypto):r=function(i){for(let n=0;nr,asFile:()=>{},value:typeof r=="string"?r:void 0}}function uI(r,e,t){const i={id:Ud(),name:r,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class Bv{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return Di.some(this,([i,n])=>n.asFile())&&t.push("files"),zv(ql(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return ql(e)}}function ql(r){return r.toLowerCase()}function Uv(r,e){return zv(ql(r),e.map(ql))}function zv(r,e){if(r==="*/*")return e.length>0;if(e.includes(r))return!0;const t=r.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,o]=t;return o==="*"?e.some(s=>s.startsWith(n+"/")):!1}const zd=Object.freeze({create:r=>s_(r.map(e=>e.toString())).join(`\r `),split:r=>r.split(`\r `),parse:r=>zd.split(r).filter(e=>!e.startsWith("#"))});class ne{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+ne.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new ne((this.value?[this.value,...e]:e).join(ne.sep))}}ne.sep=".";ne.None=new ne("@@none@@");ne.Empty=new ne("");const If={EDITORS:"CodeEditors",FILES:"CodeFiles"};class gI{}const pI={DragAndDropContribution:"workbench.contributions.dragAndDrop"};vi.add(pI.DragAndDropContribution,new gI);class Pr{constructor(){}static getInstance(){return Pr.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}Pr.INSTANCE=new Pr;function $v(r){const e=new Bv;for(const t of r.items){const i=t.type;if(t.kind==="string"){const n=new Promise(o=>t.getAsString(o));e.append(i,Yg(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,fI(n))}}return e}function fI(r){const e=r.path?he.parse(r.path):void 0;return uI(r.name,e,async()=>new Uint8Array(await r.arrayBuffer()))}const mI=Object.freeze([If.EDITORS,If.FILES,bh.RESOURCES,bh.INTERNAL_URI_LIST]);function jv(r,e=!1){const t=$v(r),i=t.get(bh.INTERNAL_URI_LIST);if(i)t.replace(Oe.uriList,i);else if(e||!t.has(Oe.uriList)){const n=[];for(const o of r.items){const s=o.getAsFile();if(s){const a=s.path;try{a?n.push(he.file(a).toString()):n.push(he.parse(s.name,!0).toString())}catch{}}}n.length&&t.replace(Oe.uriList,Yg(zd.create(n)))}for(const n of mI)t.delete(n);return t}var Jg=function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Mr=function(r,e){return function(t,i){e(t,i,r)}};class ep{async provideDocumentPasteEdits(e,t,i,n,o){const s=await this.getEdit(i,o);if(s)return{dispose(){},edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]}}async provideDocumentDropEdits(e,t,i,n){const o=await this.getEdit(i,n);return o?[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}]:void 0}}class Oi extends ep{constructor(){super(...arguments),this.kind=Oi.kind,this.dropMimeTypes=[Oe.text],this.pasteMimeTypes=[Oe.text]}async getEdit(e,t){const i=e.get(Oe.text);if(!i||e.has(Oe.uriList))return;const n=await i.asString();return{handledMimeType:Oe.text,title:g("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}Oi.id="text";Oi.kind=new ne("text.plain");class qv extends ep{constructor(){super(...arguments),this.kind=new ne("uri.absolute"),this.dropMimeTypes=[Oe.uriList],this.pasteMimeTypes=[Oe.uriList]}async getEdit(e,t){const i=await Kv(e);if(!i.length||t.isCancellationRequested)return;let n=0;const o=i.map(({uri:a,originalText:l})=>a.scheme===Ge.file?a.fsPath:(n++,l)).join(" ");let s;return n>0?s=i.length>1?g("defaultDropProvider.uriList.uris","Insert Uris"):g("defaultDropProvider.uriList.uri","Insert Uri"):s=i.length>1?g("defaultDropProvider.uriList.paths","Insert Paths"):g("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Oe.uriList,insertText:o,title:s,kind:this.kind}}}let Kl=class extends ep{constructor(e){super(),this._workspaceContextService=e,this.kind=new ne("uri.relative"),this.dropMimeTypes=[Oe.uriList],this.pasteMimeTypes=[Oe.uriList]}async getEdit(e,t){const i=await Kv(e);if(!i.length||t.isCancellationRequested)return;const n=Pi(i.map(({uri:o})=>{const s=this._workspaceContextService.getWorkspaceFolder(o);return s?bS(s.uri,o):void 0}));if(n.length)return{handledMimeType:Oe.uriList,insertText:n.join(" "),title:i.length>1?g("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):g("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};Kl=Jg([Mr(0,ts)],Kl);class _I{constructor(){this.kind=new ne("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Oe.text}]}async provideDocumentPasteEdits(e,t,i,n,o){var s;if(n.triggerKind!==Ch.PasteAs&&!(!((s=n.only)===null||s===void 0)&&s.contains(this.kind)))return;const a=i.get("text/html"),l=await(a==null?void 0:a.asString());if(!(!l||o.isCancellationRequested))return{dispose(){},edits:[{insertText:l,yieldTo:this._yieldTo,title:g("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function Kv(r){const e=r.get(Oe.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of zd.parse(t))try{i.push({uri:he.parse(n),originalText:n})}catch{}return i}let Th=class extends k{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new Oi)),this._register(e.documentDropEditProvider.register("*",new qv)),this._register(e.documentDropEditProvider.register("*",new Kl(t)))}};Th=Jg([Mr(0,U),Mr(1,ts)],Th);let Ah=class extends k{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Oi)),this._register(e.documentPasteEditProvider.register("*",new qv)),this._register(e.documentPasteEditProvider.register("*",new Kl(t))),this._register(e.documentPasteEditProvider.register("*",new _I))}};Ah=Jg([Mr(0,U),Mr(1,ts)],Ah);class Et{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=Et._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(Et.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(Et.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(Et.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(Et.isVariableCharacter(i)||Et.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof Et._table[i]>"u"&&!Et.isDigitCharacter(i)&&!Et.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}Et._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Es{constructor(){this._children=[]}appendChild(e){return e instanceof Ke&&this._children[this._children.length-1]instanceof Ke?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,function s(a,l){for(const d of a)d.parent=l,s(d.children,d)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof La)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Ke extends Es{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Ke(this.value)}}class Gv extends Es{}class It extends Gv{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Ps?this._children[0]:void 0}clone(){const e=new It(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Ps extends Es{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Ke&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Ps;return this.options.forEach(e.appendChild,e),e}}class tp extends Es{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(o=>o instanceof zt&&!!o.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof zt){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new tp;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class zt extends Es{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new zt(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Tr extends Gv{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Ke(t)],!0):!1}clone(){const e=new Tr(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function Lf(r,e){const t=[...r];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class La extends Es{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof It&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return Lf([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof It&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Tr&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new La;return this._children=this.children.map(t=>t.clone()),e}walk(e){Lf(this.children,e)}}class Qn{constructor(){this._scanner=new Et,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new La;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,o=[];t.walk(l=>(l instanceof It&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):o.push(l)),!0));const s=(l,d)=>{const c=n.get(l.index);if(!c)return;const h=new It(l.index);h.transform=l.transform;for(const u of c){const p=u.clone();h.appendChild(p),p instanceof It&&n.has(p.index)&&!d.has(p.index)&&(d.add(p.index),s(p,d),d.delete(p.index))}t.replace(l,[h])},a=new Set;for(const l of o)s(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(o=>o.index===0)||e.appendChild(new It(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Ke(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new It(Number(t)):new Tr(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const o=new It(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Ke("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){const s=new Ps;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Ke(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const o=new Tr(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Ke("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){const t=new tp;let i="",n="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,i+=o;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new Ke(o));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new zt(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new zt(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new zt(Number(n),o)),!0)}else if(this._accept(11)){const o=this._until(4);if(o)return e.appendChild(new zt(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){const o=this._until(4);if(o)return e.appendChild(new zt(Number(n),void 0,void 0,o)),!0}else if(this._accept(13)){const o=this._until(1);if(o){const s=this._until(4);if(s)return e.appendChild(new zt(Number(n),void 0,o,s)),!0}}else{const o=this._until(4);if(o)return e.appendChild(new zt(Number(n),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Ke(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function Zv(r,e,t){var i,n,o,s;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:(n=(i=t.additionalEdit)===null||i===void 0?void 0:i.edits)!==null&&n!==void 0?n:[]}:{edits:[...e.map(a=>new CS(r,{range:a,text:typeof t.insertText=="string"?Qn.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...(s=(o=t.additionalEdit)===null||o===void 0?void 0:o.edits)!==null&&s!==void 0?s:[]]}}function Xv(r){var e;function t(a,l){return"mimeType"in a?a.mimeType===l.handledMimeType:!!l.kind&&a.kind.contains(l.kind)}const i=new Map;for(const a of r)for(const l of(e=a.yieldTo)!==null&&e!==void 0?e:[])for(const d of r)if(d!==a&&t(l,d)){let c=i.get(a);c||(c=[],i.set(a,c)),c.push(d)}if(!i.size)return Array.from(r);const n=new Set,o=[];function s(a){if(!a.length)return[];const l=a[0];if(o.includes(l))return console.warn("Yield to cycle detected",l),a;if(n.has(l))return s(a.slice(1));let d=[];const c=i.get(l);return c&&(o.push(l),d=s(c),o.pop()),n.add(l),[...d,l,...s(a.slice(1))]}return s(Array.from(r))}var vI=function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},bI=function(r,e){return function(t,i){e(t,i,r)}};const CI=Y.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:r_,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class $d extends k{constructor(e,t,i,n,o){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=F(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=F("span.icon");this.domNode.append(t),t.classList.add(...se.asClassNameArray(q.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register(te(this.domNode,pe.CLICK,n=>{this.delegate.cancel()}))}getId(){return $d.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}$d.baseId="editor.widget.inlineProgressWidget";let Gl=class extends k{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new vt),this._currentWidget=new vt,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=wr(()=>{const o=S.fromPositions(e);this._currentDecorations.set([{range:o,options:CI}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance($d,this.id,this._editor,o,t,i))},this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};Gl=vI([bI(2,G)],Gl);var SI=function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Df=function(r,e){return function(t,i){e(t,i,r)}},Dl;let Qe=Dl=class{static get(e){return e.getContribution(Dl.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new vt,this._messageListeners=new N,this._mouseOverMessage=!1,this._editor=e,this._visible=Dl.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Dt(wl(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=wl(e)?SS(e,{actionHandler:{callback:n=>{this.closeMessage(),wS(this._openerService,n,wl(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new kf(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(Ne.debounce(this._editor.onDidBlurEditorText,(n,o)=>o,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&yS(o_(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(te(this._messageWidget.value.getDomNode(),pe.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(te(this._messageWidget.value.getDomNode(),pe.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new S(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(kf.fadeOut(this._messageWidget.value))}};Qe.ID="editor.contrib.messageController";Qe.MESSAGE_VISIBLE=new ee("messageVisible",!1,g("messageVisible","Whether the editor is currently showing an inline message"));Qe=Dl=SI([Df(1,oe),Df(2,bi)],Qe);const wI=ot.bindToContribution(Qe.get);V(new wI({id:"leaveEditorMessage",precondition:Qe.MESSAGE_VISIBLE,handler:r=>r.closeMessage(),kbOpts:{weight:130,primary:9}}));let kf=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");typeof n=="string"?(s.classList.add("message"),s.textContent=n):(n.classList.add("message"),s.appendChild(n)),this._domNode.appendChild(s);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};X(Qe.ID,Qe,4);function zc(r,e){return e&&(r.stack||r.stacktrace)?g("stackTrace.format","{0}: {1}",Rf(r),Nf(r.stack)||Nf(r.stacktrace)):Rf(r)}function Nf(r){return Array.isArray(r)?r.join(` `):r}function Rf(r){return r.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${r.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof r.code=="string"&&typeof r.errno=="number"&&typeof r.syscall=="string"?g("nodeExceptionMessage","A system error occurred ({0})",r.message):r.message||g("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function Zl(r=null,e=!1){if(!r)return g("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(r)){const t=Pi(r),i=Zl(t[0],e);return t.length>1?g("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(a_(r))return r;if(r.detail){const t=r.detail;if(t.error)return zc(t.error,e);if(t.exception)return zc(t.exception,e)}return r.stack?zc(r,e):r.message?r.message:g("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var Qv=function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qo=function(r,e){return function(t,i){e(t,i,r)}},Oh;let Xl=Oh=class extends k{constructor(e,t,i,n,o,s,a,l,d,c){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=s,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(d),this.visibleContext.set(!0),this._register(fe(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(fe(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(h=>{o.containsPosition(h.position)||this.dispose()})),this._register(Ne.runAndSubscribe(c.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;const t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=F(".post-edit-widget"),this.button=this._register(new xS(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(te(this.domNode,pe.CLICK,()=>this.showSelector()))}getId(){return Oh.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=bt(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>IS({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};Xl.baseId="editor.widget.postEditWidget";Xl=Oh=Qv([Qo(7,ys),Qo(8,oe),Qo(9,Se)],Xl);let Ql=class extends k{constructor(e,t,i,n,o,s,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=o,this._bulkEditService=s,this._notificationService=a,this._currentWidget=this._register(new vt),this._register(Ne.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,o){const s=this._editor.getModel();if(!s||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async _=>{const v=this._editor.getModel();v&&(await v.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:_,allEdits:t.allEdits},i,n,o))},d=(_,v)=>{po(_)||(this._notificationService.error(v),i&&this.show(e[0],t,l))};let c;try{c=await n(a,o)}catch(_){return d(_,g("resolveError",`Error resolving edit '{0}': diff --git a/rainfly/app/immutable/chunks/python.B6de1cgt.js b/rainfly/app/immutable/chunks/python.BxOrJB9r.js similarity index 98% rename from rainfly/app/immutable/chunks/python.B6de1cgt.js rename to rainfly/app/immutable/chunks/python.BxOrJB9r.js index 767c6283c..4db7a7fd2 100644 --- a/rainfly/app/immutable/chunks/python.B6de1cgt.js +++ b/rainfly/app/immutable/chunks/python.BxOrJB9r.js @@ -1,4 +1,4 @@ -import{m as o}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as o}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/razor.DzdVA6ry.js b/rainfly/app/immutable/chunks/razor.DrhwzuJY.js similarity index 99% rename from rainfly/app/immutable/chunks/razor.DzdVA6ry.js rename to rainfly/app/immutable/chunks/razor.DrhwzuJY.js index f2d430085..9b3eddcee 100644 --- a/rainfly/app/immutable/chunks/razor.DzdVA6ry.js +++ b/rainfly/app/immutable/chunks/razor.DrhwzuJY.js @@ -1,4 +1,4 @@ -import{m}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/tsMode.DSMuZELl.js b/rainfly/app/immutable/chunks/tsMode.Csofw3zb.js similarity index 99% rename from rainfly/app/immutable/chunks/tsMode.DSMuZELl.js rename to rainfly/app/immutable/chunks/tsMode.Csofw3zb.js index 33c836a8b..de722a1c0 100644 --- a/rainfly/app/immutable/chunks/tsMode.DSMuZELl.js +++ b/rainfly/app/immutable/chunks/tsMode.Csofw3zb.js @@ -1,4 +1,4 @@ -import{m as O}from"./editor.api.CvkiD53Q.js";import{t as I}from"./monaco.Ce4eSfmS.js";/*!----------------------------------------------------------------------------- +import{m as O}from"./editor.api.DqIkMm5-.js";import{t as I}from"./monaco.ByAmqjHr.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/typescript.B4tdj9DG.js b/rainfly/app/immutable/chunks/typescript.rPYxmar7.js similarity index 98% rename from rainfly/app/immutable/chunks/typescript.B4tdj9DG.js rename to rainfly/app/immutable/chunks/typescript.rPYxmar7.js index 9171ec9d9..da76bc6fe 100644 --- a/rainfly/app/immutable/chunks/typescript.B4tdj9DG.js +++ b/rainfly/app/immutable/chunks/typescript.rPYxmar7.js @@ -1,4 +1,4 @@ -import{m as s}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/xml.C8ZVWCyM.js b/rainfly/app/immutable/chunks/xml.BM4BjKqS.js similarity index 97% rename from rainfly/app/immutable/chunks/xml.C8ZVWCyM.js rename to rainfly/app/immutable/chunks/xml.BM4BjKqS.js index c01441927..87bc559b5 100644 --- a/rainfly/app/immutable/chunks/xml.C8ZVWCyM.js +++ b/rainfly/app/immutable/chunks/xml.BM4BjKqS.js @@ -1,4 +1,4 @@ -import{m as r}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as r}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/chunks/yaml.fDepBCvY.js b/rainfly/app/immutable/chunks/yaml.CsuVtWba.js similarity index 98% rename from rainfly/app/immutable/chunks/yaml.fDepBCvY.js rename to rainfly/app/immutable/chunks/yaml.CsuVtWba.js index 21d517c6e..2c3041f64 100644 --- a/rainfly/app/immutable/chunks/yaml.fDepBCvY.js +++ b/rainfly/app/immutable/chunks/yaml.CsuVtWba.js @@ -1,4 +1,4 @@ -import{m as l}from"./editor.api.CvkiD53Q.js";/*!----------------------------------------------------------------------------- +import{m as l}from"./editor.api.DqIkMm5-.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/rainfly/app/immutable/entry/app.NpX9R4bh.js b/rainfly/app/immutable/entry/app.xFVtvX4o.js similarity index 90% rename from rainfly/app/immutable/entry/app.NpX9R4bh.js rename to rainfly/app/immutable/entry/app.xFVtvX4o.js index da02cdb03..43205e31d 100644 --- a/rainfly/app/immutable/entry/app.NpX9R4bh.js +++ b/rainfly/app/immutable/entry/app.xFVtvX4o.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.ut220iFv.js","../chunks/scheduler.C0ao50Yb.js","../chunks/index.DZ_LNZJ9.js","../assets/0.3-12XX06.css","../nodes/1.CDnHr9S5.js","../chunks/entry.c20owTvV.js","../chunks/index.zclZ7hQ-.js","../nodes/2.BgEbe2uu.js","../chunks/2.DvjlXEyI.js","../chunks/preload-helper.C1FmrZbK.js","../assets/2.DvT9FAmw.css"])))=>i.map(i=>d[i]); -import{_ as I}from"../chunks/preload-helper.C1FmrZbK.js";import{s as S,a as j,o as C,b as P,t as M}from"../chunks/scheduler.C0ao50Yb.js";import{S as U,i as z,s as B,k as p,f as F,g as w,l as d,m as N,n as h,d as g,e as G,c as H,a as J,o as R,p as m,t as K,b as Q,j as W,q as D,r as k,u as v,v as V,w as E,x as y}from"../chunks/index.DZ_LNZJ9.js";const ie={};function X(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const a=e;d(a.$$.fragment,1,0,()=>{y(a,1)}),N()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[12](null),e&&y(e,t)}}}function Y(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],$$slots:{default:[Z]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const a=e;d(a.$$.fragment,1,0,()=>{y(a,1)}),N()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&8215&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)}},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[11](null),e&&y(e,t)}}}function Z(o){let e,n,i;var s=o[1][1];function _(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){D();const a=e;d(a.$$.fragment,1,0,()=>{y(a,1)}),N()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&16&&(a.data=t[4]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[10](null),e&&y(e,t)}}}function A(o){let e,n=o[6]&&L(o);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=J(e);n&&n.l(s),s.forEach(g),this.h()},h(){R(e,"id","svelte-announcer"),R(e,"aria-live","assertive"),R(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=L(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function L(o){let e;return{c(){e=K(o[7])},l(n){e=Q(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&W(e,n[7])},d(n){n&&g(e)}}}function $(o){let e,n,i,s,_;const t=[Y,X],r=[];function a(f,u){return f[1][1]?0:1}e=a(o),n=r[e]=t[e](o);let c=o[5]&&A(o);return{c(){n.c(),i=B(),c&&c.c(),s=p()},l(f){n.l(f),i=F(f),c&&c.l(f),s=p()},m(f,u){r[e].m(f,u),w(f,i,u),c&&c.m(f,u),w(f,s,u),_=!0},p(f,[u]){let b=e;e=a(f),e===b?r[e].p(f,u):(D(),d(r[b],1,1,()=>{r[b]=null}),N(),n=r[e],n?n.p(f,u):(n=r[e]=t[e](f),n.c()),h(n,1),n.m(i.parentNode,i)),f[5]?c?c.p(f,u):(c=A(f),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(f){_||(h(n),_=!0)},o(f){d(n),_=!1},d(f){f&&(g(i),g(s)),r[e].d(f),c&&c.d(f)}}}function x(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:r}=e,{data_0:a=null}=e,{data_1:c=null}=e;j(i.page.notify);let f=!1,u=!1,b=null;C(()=>{const l=i.page.subscribe(()=>{f&&(n(6,u=!0),M().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,f=!0),l});function O(l){P[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function T(l){P[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function q(l){P[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return o.$$set=l=>{"stores"in l&&n(8,i=l.stores),"page"in l&&n(9,s=l.page),"constructors"in l&&n(1,_=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,r=l.form),"data_0"in l&&n(3,a=l.data_0),"data_1"in l&&n(4,c=l.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,_,r,a,c,f,u,b,i,s,O,T,q]}class se extends U{constructor(e){super(),z(this,e,x,$,S,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>I(()=>import("../nodes/0.ut220iFv.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>I(()=>import("../nodes/1.CDnHr9S5.js"),__vite__mapDeps([4,1,2,5,6]),import.meta.url),()=>I(()=>import("../nodes/2.BgEbe2uu.js"),__vite__mapDeps([7,8,1,2,6,9,10]),import.meta.url)],oe=[],ae={"/":[2]},fe={handleError:({error:o})=>{console.error(o)},reroute:()=>{}};export{ae as dictionary,fe as hooks,ie as matchers,re as nodes,se as root,oe as server_loads}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.Bu7yI2a_.js","../chunks/scheduler.C0ao50Yb.js","../chunks/index.DZ_LNZJ9.js","../assets/0.Cg2pgm4m.css","../nodes/1.CDT1E6YK.js","../chunks/entry.CQAeFyMr.js","../chunks/index.zclZ7hQ-.js","../nodes/2.DnKexdGf.js","../chunks/2.cEacWIcT.js","../chunks/preload-helper.C1FmrZbK.js","../assets/2.f83BqAMJ.css"])))=>i.map(i=>d[i]); +import{_ as I}from"../chunks/preload-helper.C1FmrZbK.js";import{s as S,a as j,o as C,b as P,t as M}from"../chunks/scheduler.C0ao50Yb.js";import{S as U,i as z,s as B,k as p,f as F,g as w,l as d,m as N,n as h,d as g,e as G,c as H,a as J,o as R,p as m,t as K,b as Q,j as W,q as D,r as k,u as v,v as V,w as E,x as y}from"../chunks/index.DZ_LNZJ9.js";const ie={};function X(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const a=e;d(a.$$.fragment,1,0,()=>{y(a,1)}),N()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[12](null),e&&y(e,t)}}}function Y(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],$$slots:{default:[Z]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const a=e;d(a.$$.fragment,1,0,()=>{y(a,1)}),N()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&8215&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)}},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[11](null),e&&y(e,t)}}}function Z(o){let e,n,i;var s=o[1][1];function _(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){D();const a=e;d(a.$$.fragment,1,0,()=>{y(a,1)}),N()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&16&&(a.data=t[4]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[10](null),e&&y(e,t)}}}function A(o){let e,n=o[6]&&L(o);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=J(e);n&&n.l(s),s.forEach(g),this.h()},h(){R(e,"id","svelte-announcer"),R(e,"aria-live","assertive"),R(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=L(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function L(o){let e;return{c(){e=K(o[7])},l(n){e=Q(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&W(e,n[7])},d(n){n&&g(e)}}}function $(o){let e,n,i,s,_;const t=[Y,X],r=[];function a(f,u){return f[1][1]?0:1}e=a(o),n=r[e]=t[e](o);let c=o[5]&&A(o);return{c(){n.c(),i=B(),c&&c.c(),s=p()},l(f){n.l(f),i=F(f),c&&c.l(f),s=p()},m(f,u){r[e].m(f,u),w(f,i,u),c&&c.m(f,u),w(f,s,u),_=!0},p(f,[u]){let b=e;e=a(f),e===b?r[e].p(f,u):(D(),d(r[b],1,1,()=>{r[b]=null}),N(),n=r[e],n?n.p(f,u):(n=r[e]=t[e](f),n.c()),h(n,1),n.m(i.parentNode,i)),f[5]?c?c.p(f,u):(c=A(f),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(f){_||(h(n),_=!0)},o(f){d(n),_=!1},d(f){f&&(g(i),g(s)),r[e].d(f),c&&c.d(f)}}}function x(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:r}=e,{data_0:a=null}=e,{data_1:c=null}=e;j(i.page.notify);let f=!1,u=!1,b=null;C(()=>{const l=i.page.subscribe(()=>{f&&(n(6,u=!0),M().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,f=!0),l});function O(l){P[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function T(l){P[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function q(l){P[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return o.$$set=l=>{"stores"in l&&n(8,i=l.stores),"page"in l&&n(9,s=l.page),"constructors"in l&&n(1,_=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,r=l.form),"data_0"in l&&n(3,a=l.data_0),"data_1"in l&&n(4,c=l.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,_,r,a,c,f,u,b,i,s,O,T,q]}class se extends U{constructor(e){super(),z(this,e,x,$,S,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>I(()=>import("../nodes/0.Bu7yI2a_.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>I(()=>import("../nodes/1.CDT1E6YK.js"),__vite__mapDeps([4,1,2,5,6]),import.meta.url),()=>I(()=>import("../nodes/2.DnKexdGf.js"),__vite__mapDeps([7,8,1,2,6,9,10]),import.meta.url)],oe=[],ae={"/":[2]},fe={handleError:({error:o})=>{console.error(o)},reroute:()=>{}};export{ae as dictionary,fe as hooks,ie as matchers,re as nodes,se as root,oe as server_loads}; diff --git a/rainfly/app/immutable/entry/start.7H8CyVNt.js b/rainfly/app/immutable/entry/start.7H8CyVNt.js new file mode 100644 index 000000000..56d246d6d --- /dev/null +++ b/rainfly/app/immutable/entry/start.7H8CyVNt.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.CQAeFyMr.js";export{t as start}; diff --git a/rainfly/app/immutable/entry/start.Djxtrl7I.js b/rainfly/app/immutable/entry/start.Djxtrl7I.js deleted file mode 100644 index 1e258f361..000000000 --- a/rainfly/app/immutable/entry/start.Djxtrl7I.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.c20owTvV.js";export{t as start}; diff --git a/rainfly/app/immutable/nodes/0.ut220iFv.js b/rainfly/app/immutable/nodes/0.Bu7yI2a_.js similarity index 100% rename from rainfly/app/immutable/nodes/0.ut220iFv.js rename to rainfly/app/immutable/nodes/0.Bu7yI2a_.js diff --git a/rainfly/app/immutable/nodes/1.CDnHr9S5.js b/rainfly/app/immutable/nodes/1.CDT1E6YK.js similarity index 93% rename from rainfly/app/immutable/nodes/1.CDnHr9S5.js rename to rainfly/app/immutable/nodes/1.CDT1E6YK.js index d1e3c443e..274f7f5e2 100644 --- a/rainfly/app/immutable/nodes/1.CDnHr9S5.js +++ b/rainfly/app/immutable/nodes/1.CDT1E6YK.js @@ -1 +1 @@ -import{s as S,n as _,c as x}from"../chunks/scheduler.C0ao50Yb.js";import{S as j,i as q,e as f,t as d,s as y,c as g,a as h,b as v,d as u,f as C,g as m,h as $,j as E}from"../chunks/index.DZ_LNZJ9.js";import{s as H}from"../chunks/entry.c20owTvV.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},k={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=f("h1"),o=d(r),n=y(),i=f("p"),l=d(c)},l(e){t=g(e,"H1",{});var a=h(t);o=v(a,r),a.forEach(u),n=C(e),i=g(e,"P",{});var p=h(i);l=v(p,c),p.forEach(u)},m(e,a){m(e,t,a),$(t,o),m(e,n,a),m(e,i,a),$(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(l,c)},i:_,o:_,d(e){e&&(u(t),u(n),u(i))}}}function z(s,t,r){let o;return x(s,k,n=>r(0,o=n)),[o]}let F=class extends j{constructor(t){super(),q(this,t,z,w,S,{})}};export{F as component}; +import{s as S,n as _,c as x}from"../chunks/scheduler.C0ao50Yb.js";import{S as j,i as q,e as f,t as d,s as y,c as g,a as h,b as v,d as u,f as C,g as m,h as $,j as E}from"../chunks/index.DZ_LNZJ9.js";import{s as H}from"../chunks/entry.CQAeFyMr.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},k={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=f("h1"),o=d(r),n=y(),i=f("p"),l=d(c)},l(e){t=g(e,"H1",{});var a=h(t);o=v(a,r),a.forEach(u),n=C(e),i=g(e,"P",{});var p=h(i);l=v(p,c),p.forEach(u)},m(e,a){m(e,t,a),$(t,o),m(e,n,a),m(e,i,a),$(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(l,c)},i:_,o:_,d(e){e&&(u(t),u(n),u(i))}}}function z(s,t,r){let o;return x(s,k,n=>r(0,o=n)),[o]}let F=class extends j{constructor(t){super(),q(this,t,z,w,S,{})}};export{F as component}; diff --git a/rainfly/app/immutable/nodes/2.BgEbe2uu.js b/rainfly/app/immutable/nodes/2.BgEbe2uu.js deleted file mode 100644 index fb78ec76d..000000000 --- a/rainfly/app/immutable/nodes/2.BgEbe2uu.js +++ /dev/null @@ -1 +0,0 @@ -import{P as m}from"../chunks/2.DvjlXEyI.js";export{m as component}; diff --git a/rainfly/app/immutable/nodes/2.DnKexdGf.js b/rainfly/app/immutable/nodes/2.DnKexdGf.js new file mode 100644 index 000000000..a6034dd14 --- /dev/null +++ b/rainfly/app/immutable/nodes/2.DnKexdGf.js @@ -0,0 +1 @@ +import{P as m}from"../chunks/2.cEacWIcT.js";export{m as component}; diff --git a/rainfly/app/version.json b/rainfly/app/version.json index 9c8d50ce6..606d934a6 100644 --- a/rainfly/app/version.json +++ b/rainfly/app/version.json @@ -1 +1 @@ -{"version":"1729465522802"} \ No newline at end of file +{"version":"1730500717495"} \ No newline at end of file diff --git a/rainfly/index.html b/rainfly/index.html index 5da295efa..a530a2961 100644 --- a/rainfly/index.html +++ b/rainfly/index.html @@ -5,20 +5,20 @@ - - - - - - + + + + + + - + - - - Rainfly + + + Rainfly