@tempo-ai/visual-review 0.0.145-staging.2 → 0.0.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
1
  exports.tempoRuntimeContract=1;exports.createRuntime=function(__tempoRuntime){const require=__tempoRuntime.require;const module={exports:{}};const exports=module.exports;
2
- var tt=Object.create;var O=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var rt=Object.getOwnPropertyNames;var it=Object.getPrototypeOf,st=Object.prototype.hasOwnProperty;var a=(r,e)=>O(r,"name",{value:e,configurable:!0});var g=(r,e)=>()=>(r&&(e=r(r=0)),e);var de=(r,e)=>{for(var t in e)O(r,t,{get:e[t],enumerable:!0})},pe=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of rt(e))!st.call(r,i)&&i!==t&&O(r,i,{get:()=>e[i],enumerable:!(n=nt(e,i))||n.enumerable});return r};var ot=(r,e,t)=>(t=r!=null?tt(it(r)):{},pe(e||!r||!r.__esModule?O(t,"default",{value:r,enumerable:!0}):t,r)),me=r=>pe(O({},"__esModule",{value:!0}),r);function P(r){let e=5381,t=0;for(let n=0;n<r.length;n++){let i=r.charCodeAt(n);e=(e<<5)+e^i,t=i+(t<<6)+(t<<16)-t|0}return ge(e)+ge(t)}function ge(r){return(r>>>0).toString(16).padStart(8,"0")}var B=g(()=>{"use strict";a(P,"sourceVersionHash");a(ge,"toHex8")});function M(r,e,t){let n=e-t;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),r.write(ve[i])}while(n>0);return e}function we(r){let e=new ct,t=0,n=0,i=0,s=0;for(let o=0;o<r.length;o++){let l=r[o];if(o>0&&e.write(lt),l.length===0)continue;let u=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&e.write(at),u=M(e,f[0],u),f.length!==1&&(t=M(e,f[1],t),n=M(e,f[2],n),i=M(e,f[3],i),f.length!==4&&(s=M(e,f[4],s)))}}return e.flush()}var at,lt,ye,ve,ut,Se,be,ct,Ee=g(()=>{at=44,lt=59,ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ve=new Uint8Array(64),ut=new Uint8Array(128);for(let r=0;r<ye.length;r++){let e=ye.charCodeAt(r);ve[r]=e,ut[e]=r}a(M,"encodeInteger");Se=1024*16,be=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(r){return Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString()}}:{decode(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r[t]);return e}},ct=class{static{a(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Se)}write(r){let{buffer:e}=this;e[this.pos++]=r,this.pos===Se&&(this.out+=be.decode(e),this.pos=0)}flush(){let{buffer:r,out:e,pos:t}=this;return t>0?e+be.decode(r.subarray(0,t)):e}};a(we,"encode")});function ft(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?r=>globalThis.btoa(unescape(encodeURIComponent(r))):typeof Buffer=="function"?r=>Buffer.from(r,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function dt(r){let e=r.split(`
3
- `),t=e.filter(s=>/^\t+/.test(s)),n=e.filter(s=>/^ {2,}/.test(s));if(t.length===0&&n.length===0)return null;if(t.length>=n.length)return" ";let i=n.reduce((s,o)=>{let l=/^ +/.exec(o)[0].length;return Math.min(l,s)},1/0);return new Array(i+1).join(" ")}function pt(r,e){let t=r.split(/[/\\]/),n=e.split(/[/\\]/);for(t.pop();t[0]===n[0];)t.shift(),n.shift();if(t.length){let i=t.length;for(;i--;)t[i]=".."}return t.concat(n).join("/")}function gt(r){return mt.call(r)==="[object Object]"}function xe(r){let e=r.split(`
4
- `),t=[];for(let n=0,i=0;n<e.length;n++)t.push(i),i+=e[n].length+1;return a(function(i){let s=0,o=t.length;for(;s<o;){let c=s+o>>1;i<t[c]?o=c:s=c+1}let l=s-1,u=i-t[l];return{line:l,column:u}},"locate")}var V,D,ht,ee,mt,yt,te,$,I,U,ke=g(()=>{Ee();V=class r{static{a(this,"BitSet")}constructor(e){this.bits=e instanceof r?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},D=class r{static{a(this,"Chunk")}constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new r(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let t=e-this.start,n=this.original.slice(0,t),i=this.original.slice(t);this.original=n;let s=new r(e,this.end,i);return s.outro=this.outro,this.outro="",this.end=e,this.edited?(s.edit("",!1),this.content=""):this.content=n,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let t=this.content.replace(e,"");if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit("",void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let t=this.content.replace(e,"");if(t.length){if(t!==this.content){let n=this.split(this.end-t.length);this.edited&&n.edit(t,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};a(ft,"getBtoa");ht=ft(),ee=class{static{a(this,"SourceMap")}constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=we(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ht(this.toString())}};a(dt,"guessIndent");a(pt,"getRelativePath");mt=Object.prototype.toString;a(gt,"isObject");a(xe,"getLocator");yt=/\w/,te=class{static{a(this,"Mappings")}constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,i){if(t.length){let s=t.length-1,o=t.indexOf(`
2
+ var rt=Object.create;var P=Object.defineProperty;var it=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var ot=Object.getPrototypeOf,at=Object.prototype.hasOwnProperty;var a=(r,e)=>P(r,"name",{value:e,configurable:!0});var g=(r,e)=>()=>(r&&(e=r(r=0)),e);var me=(r,e)=>{for(var t in e)P(r,t,{get:e[t],enumerable:!0})},ge=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of st(e))!at.call(r,i)&&i!==t&&P(r,i,{get:()=>e[i],enumerable:!(n=it(e,i))||n.enumerable});return r};var lt=(r,e,t)=>(t=r!=null?rt(ot(r)):{},ge(e||!r||!r.__esModule?P(t,"default",{value:r,enumerable:!0}):t,r)),ye=r=>ge(P({},"__esModule",{value:!0}),r);function F(r){let e=5381,t=0;for(let n=0;n<r.length;n++){let i=r.charCodeAt(n);e=(e<<5)+e^i,t=i+(t<<6)+(t<<16)-t|0}return Se(e)+Se(t)}function Se(r){return(r>>>0).toString(16).padStart(8,"0")}var D=g(()=>{"use strict";a(F,"sourceVersionHash");a(Se,"toHex8")});function $(r,e,t){let n=e-t;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),r.write(Ee[i])}while(n>0);return e}function xe(r){let e=new ht,t=0,n=0,i=0,s=0;for(let o=0;o<r.length;o++){let l=r[o];if(o>0&&e.write(ct),l.length===0)continue;let u=0;for(let c=0;c<l.length;c++){let h=l[c];c>0&&e.write(ut),u=$(e,h[0],u),h.length!==1&&(t=$(e,h[1],t),n=$(e,h[2],n),i=$(e,h[3],i),h.length!==4&&(s=$(e,h[4],s)))}}return e.flush()}var ut,ct,be,Ee,ft,ve,we,ht,ke=g(()=>{ut=44,ct=59,be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=new Uint8Array(64),ft=new Uint8Array(128);for(let r=0;r<be.length;r++){let e=be.charCodeAt(r);Ee[r]=e,ft[e]=r}a($,"encodeInteger");ve=1024*16,we=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(r){return Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString()}}:{decode(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r[t]);return e}},ht=class{static{a(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ve)}write(r){let{buffer:e}=this;e[this.pos++]=r,this.pos===ve&&(this.out+=we.decode(e),this.pos=0)}flush(){let{buffer:r,out:e,pos:t}=this;return t>0?e+we.decode(r.subarray(0,t)):e}};a(xe,"encode")});function dt(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?r=>globalThis.btoa(unescape(encodeURIComponent(r))):typeof Buffer=="function"?r=>Buffer.from(r,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function mt(r){let e=r.split(`
3
+ `),t=e.filter(s=>/^\t+/.test(s)),n=e.filter(s=>/^ {2,}/.test(s));if(t.length===0&&n.length===0)return null;if(t.length>=n.length)return" ";let i=n.reduce((s,o)=>{let l=/^ +/.exec(o)[0].length;return Math.min(l,s)},1/0);return new Array(i+1).join(" ")}function gt(r,e){let t=r.split(/[/\\]/),n=e.split(/[/\\]/);for(t.pop();t[0]===n[0];)t.shift(),n.shift();if(t.length){let i=t.length;for(;i--;)t[i]=".."}return t.concat(n).join("/")}function St(r){return yt.call(r)==="[object Object]"}function Te(r){let e=r.split(`
4
+ `),t=[];for(let n=0,i=0;n<e.length;n++)t.push(i),i+=e[n].length+1;return a(function(i){let s=0,o=t.length;for(;s<o;){let c=s+o>>1;i<t[c]?o=c:s=c+1}let l=s-1,u=i-t[l];return{line:l,column:u}},"locate")}var U,q,pt,ne,yt,bt,re,j,I,J,Ce=g(()=>{ke();U=class r{static{a(this,"BitSet")}constructor(e){this.bits=e instanceof r?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},q=class r{static{a(this,"Chunk")}constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new r(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let t=e-this.start,n=this.original.slice(0,t),i=this.original.slice(t);this.original=n;let s=new r(e,this.end,i);return s.outro=this.outro,this.outro="",this.end=e,this.edited?(s.edit("",!1),this.content=""):this.content=n,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let t=this.content.replace(e,"");if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit("",void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let t=this.content.replace(e,"");if(t.length){if(t!==this.content){let n=this.split(this.end-t.length);this.edited&&n.edit(t,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};a(dt,"getBtoa");pt=dt(),ne=class{static{a(this,"SourceMap")}constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=xe(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+pt(this.toString())}};a(mt,"guessIndent");a(gt,"getRelativePath");yt=Object.prototype.toString;a(St,"isObject");a(Te,"getLocator");bt=/\w/,re=class{static{a(this,"Mappings")}constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,i){if(t.length){let s=t.length-1,o=t.indexOf(`
5
5
  `,0),l=-1;for(;o>=0&&s>o;){let c=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&c.push(i),this.rawSegments.push(c),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=o,o=t.indexOf(`
6
6
  `,o+1)}let u=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&u.push(i),this.rawSegments.push(u),this.advance(t.slice(l+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(t));this.pending=null}addUneditedChunk(e,t,n,i,s){let o=t.start,l=!0,u=!1;for(;o<t.end;){if(n[o]===`
7
- `)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0,u=!1;else{if(this.hires||l||s.has(o)){let c=[this.generatedCodeColumn,e,i.line,i.column];this.hires==="boundary"?yt.test(n[o])?u||(this.rawSegments.push(c),u=!0):(this.rawSegments.push(c),u=!1):this.rawSegments.push(c)}i.column+=1,this.generatedCodeColumn+=1,l=!1}o+=1}this.pending=null}advance(e){if(!e)return;let t=e.split(`
8
- `);if(t.length>1){for(let n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}},$=`
9
- `,I={insertLeft:!1,insertRight:!1,storeName:!1},U=class r{static{a(this,"MagicString")}constructor(e,t={}){let n=new D(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new V},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this}clone(){let e=new r(this.original,{filename:this.filename,offset:this.offset}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();for(;t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let i=t.next,s=i&&i.clone();s&&(n.next=s,s.previous=n,n=s),t=i}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new V(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let t=0,n=Object.keys(this.storedNames),i=new te(e.hires),s=xe(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(o=>{let l=s(o.start);o.intro.length&&i.advance(o.intro),o.edited?i.addEdit(t,o.content,l,o.storeName?n.indexOf(o.original):-1):i.addUneditedChunk(t,o,this.original,l,this.sourcemapLocations),o.outro.length&&i.advance(o.outro)}),this.outro&&i.advance(this.outro),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?pt(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:i.raw,x_google_ignoreList:this.ignoreList?[t]:void 0}}generateMap(e){return new ee(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=dt(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,t){let n=/^[^\r\n]/gm;if(gt(e)&&(t=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;t=t||{};let i={};t.exclude&&(typeof t.exclude[0]=="number"?[t.exclude]:t.exclude).forEach(f=>{for(let S=f[0];S<f[1];S+=1)i[S]=!0});let s=t.indentStart!==!1,o=a(c=>s?`${e}${c}`:(s=!0,c),"replacer");this.intro=this.intro.replace(n,o);let l=0,u=this.firstChunk;for(;u;){let c=u.end;if(u.edited)i[l]||(u.content=u.content.replace(n,o),u.content.length&&(s=u.content[u.content.length-1]===`
10
- `));else for(l=u.start;l<c;){if(!i[l]){let f=this.original[l];f===`
11
- `?s=!0:f!=="\r"&&s&&(s=!1,l===u.start||(this._splitChunk(u,l),u=u.next),u.prependRight(e))}l+=1}l=u.end,u=u.next}return this.outro=this.outro.replace(n,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){return I.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),I.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return I.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),I.insertRight=!0),this.prependRight(e,t)}move(e,t,n){if(e=e+this.offset,t=t+this.offset,n=n+this.offset,n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);let i=this.byStart[e],s=this.byEnd[t],o=i.previous,l=s.next,u=this.byStart[n];if(!u&&s===this.lastChunk)return this;let c=u?u.previous:this.lastChunk;return o&&(o.next=l),l&&(l.previous=o),c&&(c.next=i),u&&(u.previous=s),i.previous||(this.firstChunk=s.next),s.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=c,s.next=u||null,c||(this.firstChunk=i),u||(this.lastChunk=s),this}overwrite(e,t,n,i){return i=i||{},this.update(e,t,n,{...i,overwrite:!i.contentOnly})}update(e,t,n,i){if(e=e+this.offset,t=t+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(t),i===!0&&(I.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),I.storeName=!0),i={storeName:!0});let s=i!==void 0?i.storeName:!1,o=i!==void 0?i.overwrite:!1;if(s){let c=this.original.slice(e,t);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[e],u=this.byEnd[t];if(l){let c=l;for(;c!==u;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}l.edit(n,s,!o)}else{let c=new D(e,t,"").edit(n,s);u.next=c,c.previous=u}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(e=e+this.offset,t=t+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this}reset(e,t){if(e=e+this.offset,t=t+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.reset(),n=t>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf($);if(e!==-1)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf($),e!==-1)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf($),e!==-1)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf($),e!==-1)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf($),e!==-1?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length-this.offset){if(e=e+this.offset,t=t+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}let n="",i=this.firstChunk;for(;i&&(i.start>e||i.end<=e);){if(i.start<t&&i.end>=t)return n;i=i.next}if(i&&i.edited&&i.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let s=i;for(;i;){i.intro&&(s!==i||i.start===e)&&(n+=i.intro);let o=i.start<t&&i.end>=t;if(o&&i.edited&&i.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);let l=s===i?e-i.start:0,u=o?i.content.length+t-i.end:i.content.length;if(n+=i.content.slice(l,u),i.outro&&(!o||i.end===t)&&(n+=i.outro),o)break;i=i.next}return n}snip(e,t){let n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk,n=t,i=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=i?this.byStart[t.end]:this.byEnd[t.start],t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){let i=xe(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${e.original}")`)}let n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do t+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,s=n.trimEnd(t);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,s=n.trimStart(t);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function n(s,o){return typeof t=="string"?t.replace(/\$(\$|&|\d+)/g,(l,u)=>u==="$"?"$":u==="&"?s[0]:+u<s.length?s[+u]:`$${u}`):t(...s,s.index,o,s.groups)}a(n,"getReplacement");function i(s,o){let l,u=[];for(;l=s.exec(o);)u.push(l);return u}if(a(i,"matchAll"),e.global)i(e,this.original).forEach(o=>{if(o.index!=null){let l=n(o,this.original);l!==o[0]&&this.overwrite(o.index,o.index+o[0].length,l)}});else{let s=this.original.match(e);if(s&&s.index!=null){let o=n(s,this.original);o!==s[0]&&this.overwrite(s.index,s.index+s[0].length,o)}}return this}_replaceString(e,t){let{original:n}=this,i=n.indexOf(e);return i!==-1&&(typeof t=="function"&&(t=t(e,i,n)),e!==t&&this.overwrite(i,i+e.length,t)),this}replace(e,t){return typeof e=="string"?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){let{original:n}=this,i=e.length;for(let s=n.indexOf(e);s!==-1;s=n.indexOf(e,s+i)){let o=n.slice(s,s+i),l=t;typeof t=="function"&&(l=t(o,s,n)),o!==l&&this.overwrite(s,s+i,l)}return this}replaceAll(e,t){if(typeof e=="string")return this._replaceAllString(e,t);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,t)}}});function ne(r){return r.charCodeAt(0)===65279?` ${r.slice(1)}`:r}var Te=g(()=>{"use strict";a(ne,"withoutByteOrderMark")});var q,J,Ce,re=g(()=>{"use strict";q=ot(require("svelte/compiler"),1);Te();J=a((r,e)=>q.compile(ne(r),e),"compile"),Ce=a(((r,e)=>q.parse(ne(r),e)),"parse")});function H(r,e){let t=St(r,e),n=r;for(let i of t)n=n.slice(0,i.start)+i.replacement+n.slice(i.end);return n}function St(r,e){return Ae(e,r.length)}function Ae(r,e){let t=[...r].sort((n,i)=>i.start-n.start||i.end-n.end);for(let n of t){if(!Number.isInteger(n.start)||!Number.isInteger(n.end))throw new _("edit offsets must be integers");if(n.start<0||n.end<n.start||e!==void 0&&n.end>e)throw new _(e===void 0?`edit [${n.start}, ${n.end}) is not a valid source range`:`edit [${n.start}, ${n.end}) is outside source length ${e}`)}for(let n=0;n<t.length-1;n+=1){let i=t[n],s=t[n+1];if(!(!i||!s)){if(s.start===i.start&&(s.start===s.end||i.start===i.end))throw new _(`an insertion and another edit at offset ${s.start} have ambiguous order`);if(s.end>i.start)throw new _(`edits [${s.start}, ${s.end}) and [${i.start}, ${i.end}) overlap`)}}return t}function X(r,e){if(!Number.isInteger(r)||r<0)throw new _("the mapped source offset must be a non-negative integer");let t=0;for(let n of[...Ae(e)].reverse()){if(r<n.start)break;if(r<n.end)return null;t+=n.replacement.length-(n.end-n.start)}return r+t}var _,_e=g(()=>{"use strict";_=class extends Error{static{a(this,"InvalidStringEditError")}constructor(e){super(e),this.name="InvalidStringEditError"}};a(H,"applyStringEdits");a(St,"validateStringEdits");a(Ae,"validateEditShape");a(X,"mapOffsetThroughStringEdits")});function ie(r,e){let t=r.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split("{").join("&#123;").split("}").join("&#125;");return t=e==='"'?t.split('"').join("&quot;"):t.split("'").join("&#39;"),t}var Re=g(()=>{"use strict";a(ie,"escapeSvelteAttributeValue")});var F,se=g(()=>{F=class{static{a(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(e=>this.replacement=e,"replace")}}replace(e,t,n,i){e&&t&&(n!=null?e[t][n]=i:e[t]=i)}remove(e,t,n){e&&t&&(n!=null?e[t].splice(n,1):delete e[t])}}});function Ne(r){return r!==null&&typeof r=="object"&&"type"in r&&typeof r.type=="string"}var W,Ie=g(()=>{se();W=class extends F{static{a(this,"SyncWalker")}constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(n=>this.replacement=n,"replace")},this.enter=e,this.leave=t}visit(e,t,n,i){if(e){if(this.enter){let o=this.should_skip,l=this.should_remove,u=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,i),this.replacement&&(e=this.replacement,this.replace(t,n,i,e)),this.should_remove&&this.remove(t,n,i);let c=this.should_skip,f=this.should_remove;if(this.should_skip=o,this.should_remove=l,this.replacement=u,c)return e;if(f)return null}let s;for(s in e){let o=e[s];if(o&&typeof o=="object")if(Array.isArray(o)){let l=o;for(let u=0;u<l.length;u+=1){let c=l[u];Ne(c)&&(this.visit(c,e,s,u)||u--)}}else Ne(o)&&this.visit(o,e,s,null)}if(this.leave){let o=this.replacement,l=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,i),this.replacement&&(e=this.replacement,this.replace(t,n,i,e)),this.should_remove&&this.remove(t,n,i);let u=this.should_remove;if(this.replacement=o,this.should_remove=l,u)return null}}return e}};a(Ne,"isNode")});var Le=g(()=>{se()});function oe(r,{enter:e,leave:t}){return new W(e,t).visit(r,null)}var Oe=g(()=>{Ie();Le();a(oe,"walk")});function ae(r){let e=r;for(;["ParenthesizedExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression"].includes(e.type);){let t=e.expression;if(!t)break;e=t}return e}function R(r){let e=ae(r);if(["Literal","StringLiteral","NumericLiteral","BooleanLiteral"].includes(e.type)&&(typeof e.value=="string"||typeof e.value=="boolean"||typeof e.value=="number"&&Number.isFinite(e.value)))return e.value;if(e.type==="TemplateLiteral"){let t=e.expressions,n=e.quasis;if(t.length===0&&n.length===1&&typeof n[0]?.value.cooked=="string")return n[0].value.cooked}if(e.type==="UnaryExpression"&&(e.operator==="-"||e.operator==="+")){let t=R(e.argument);if(typeof t=="number")return e.operator==="-"?-t:t}if(e.type==="BinaryExpression"&&["+","-","*","/"].includes(e.operator)){let t=R(e.left),n=R(e.right);if(typeof t!="number"||typeof n!="number")return null;let i=e.operator==="+"?t+n:e.operator==="-"?t-n:e.operator==="*"?t*n:t/n;return Number.isFinite(i)?i:null}return null}var le=g(()=>{"use strict";a(ae,"unwrapLiteralExpression");a(R,"readLiteralExpression")});var ue=g(()=>{"use strict";le();le()});function Pe(r){let e=r.name.toLowerCase();if(e==="class"||e==="style"||e.startsWith("on"))return null;let t=Array.isArray(r.value)?r.value.length===1?r.value[0]:void 0:r.value===!0?void 0:r.value;if(t?.type!=="ExpressionTag")return null;let n=t.expression,i=R(n);return typeof i!="string"&&typeof i!="number"?null:{value:i,rendered:String(i),expression:{start:n.start,end:n.end},quoted:Array.isArray(r.value)}}var Me=g(()=>{"use strict";ue();a(Pe,"literalMustacheAttribute")});function $e(r){let e=r.trim();return e.startsWith("--")?e:e.toLowerCase()}function Fe(r){return r.filter(e=>e.type==="StyleDirective")}function je(r,e,t){if(e.modifiers.length>0||t.some(o=>o!==e&&$e(o.name)===$e(e.name)))return null;let n=e.value;if(!Array.isArray(n)||n.length!==1)return null;let i=n[0];if(i.type!=="Text")return null;let s=r[i.start-1];return s!=='"'&&s!=="'"||r[i.end]!==s||i.end+1!==e.end?null:{value:i.data,start:i.start,end:i.end,quote:s}}var Be=g(()=>{"use strict";a($e,"normalizeProperty");a(Fe,"styleDirectives");a(je,"literalStyleDirective")});function z(r,e,t="compiler"){let n=`${t}\0${e}\0${r}`,i=N.get(n);if(i)return N.delete(n),N.set(n,i),i;try{t==="compiler"&&J(r,{filename:e,generate:!1});let s=Ce(r,{filename:e,modern:!0}),o=new Map,l=new Map,u=new Map,c=new Map,f=[],S=new WeakMap,k=new WeakMap,v=[];oe(s,{enter(y,b){let E=y;if(E.type==="Fragment"){let p=y,A=b,he=(A?.type==="RegularElement"||A?.type==="Component"||A?.type==="SvelteComponent")&&!A.attributes.some(j=>j.type==="LetDirective")&&!p.nodes.some(j=>j.type==="ConstTag"||j.type==="SnippetBlock")?v[v.length-1]??p:p;k.set(p,he),v.push(he),S.set(y,b?.type??null)}let d=vt(r,y);if(d){let p=b;d.parentFragmentOwnerType=p?.type==="Fragment"?S.get(p)??null:null,u.set(d.start,d),c.set(d.start,y)}if(E.type!=="RegularElement"&&E.type!=="Component")return;let m=y,C=b;if(C.type!=="Fragment")throw new Error(`native element at offset ${m.start} has no exact template fragment parent`);let h=Et(r,m);if(h.kind==="invalid")throw new Error(h.message);let x=E.type==="Component"?l:o;if(x.has(m.start))throw new Error(`multiple native elements start at UTF-16 offset ${m.start}`);x.set(m.start,{node:m,tagName:m.name,start:m.start,end:m.end,openingEnd:h.openingEnd,selfClosing:h.selfClosing,childrenStart:h.selfClosing?null:h.openingEnd,childrenEnd:h.selfClosing?null:xt(r,m,h.openingEnd),parentElementStart:f[f.length-1]?.start??null,parentFragment:C,parentFragmentOwnerType:S.get(C)??null,containsDynamicTemplateSyntax:E.type==="Component"||kt(m),attributeNames:m.attributes.filter(p=>p.type==="Attribute").map(p=>p.name),hasSpreadAttributes:m.attributes.some(p=>p.type==="SpreadAttribute"),directiveTypes:m.attributes.filter(p=>p.type!=="Attribute"&&p.type!=="SpreadAttribute").map(p=>p.type)}),E.type==="RegularElement"&&f.push(m)},leave(y){let b=y;b.type==="RegularElement"&&f.pop(),b.type==="Fragment"&&v.pop()}});let T={kind:"ok",elements:o,invocations:l,templateScopes:k,targets:u,targetNodes:c};return Ve(n,T),T}catch(s){let o=Tt(s);return Ve(n,o),o}}function vt(r,e){return e.type==="RegularElement"?{kind:"native-element",tagName:e.name??"",start:e.start,end:e.end,...G(r,e.attributes??[],!0)}:e.type==="Component"?{kind:"component",tagName:e.name??"",start:e.start,end:e.end,...G(r,e.attributes??[])}:e.type==="SvelteComponent"?{kind:"component",tagName:e.name??e.type,start:e.start,end:e.end,...G(r,e.attributes??[])}:e.type==="SvelteElement"?{kind:"dynamic-element",tagName:e.name??e.type,start:e.start,end:e.end,...G(r,e.attributes??[])}:e.type==="SlotElement"||e.type==="TitleElement"||e.type==="SvelteBody"||e.type==="SvelteBoundary"||e.type==="SvelteDocument"||e.type==="SvelteFragment"||e.type==="SvelteHead"||e.type==="SvelteSelf"||e.type==="SvelteWindow"?{kind:"special-element",tagName:e.name??e.type,start:e.start,end:e.end}:null}function G(r,e,t=!1){let n=Fe(e),i=t&&!e.some(o=>o.type==="SpreadAttribute"),s={};for(let o of e){if(o.type!=="Attribute")continue;let l=i?Pe(o):null;if(l){s[o.name]=l.rendered;continue}if(o.value===!0){s[o.name]=!0;continue}Array.isArray(o.value)&&o.value.every(u=>u.type==="Text")&&(s[o.name]=o.value.map(u=>u.data).join(""))}return{attributeNames:e.filter(o=>o.type==="Attribute").map(o=>o.name),hasSpreadAttributes:e.some(o=>o.type==="SpreadAttribute"),directiveTypes:e.filter(o=>o.type!=="Attribute"&&o.type!=="SpreadAttribute").map(o=>o.type),staticAttributes:s,styleDirectives:n.map(o=>{let l=je(r,o,n);return{name:o.name,...l?{literal:l.value}:{}}})}}function Ve(r,e){for(N.set(r,e);N.size>wt;){let t=N.keys().next().value;if(t===void 0)break;N.delete(t)}}function Et(r,e){let t=e.attributes[e.attributes.length-1],n=e.start+1+e.name.length,i=t?.end??n,s=r.slice(i,e.end),o=/^(\s*)(\/?)>/.exec(s);return o?{kind:"ok",openingEnd:i+o[0].length,selfClosing:o[2]==="/"}:{kind:"invalid",message:`could not locate the opening-tag terminator for <${e.name}> at UTF-16 offset ${e.start}`}}function xt(r,e,t){let n=e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=new RegExp(`</${n}\\s*>$`).exec(r.slice(t,e.end));return i?t+i.index:null}function kt(r){let e=!1;return oe(r,{enter(t){let n=t.type;(n==="ExpressionTag"||n==="HtmlTag"||n==="RenderTag"||n==="AttachTag"||n==="ConstTag"||n==="DeclarationTag"||n==="DebugTag"||n==="SpreadAttribute"||typeof n=="string"&&n.endsWith("Directive")||n==="Component"||n==="SvelteComponent"||n==="SvelteElement"||n==="EachBlock"||n==="IfBlock"||n==="AwaitBlock"||n==="KeyBlock"||n==="SnippetBlock")&&(e=!0,this.skip())}}),e}function Tt(r){if(r&&typeof r=="object"){let e=r;return{kind:"invalid",code:typeof e.code=="string"?e.code:"invalid_svelte",message:typeof e.message=="string"?e.message:"Svelte source could not be parsed"}}return{kind:"invalid",code:"invalid_svelte",message:String(r)}}var wt,N,De=g(()=>{"use strict";Oe();re();Me();Be();a(z,"parseSvelteSourceInternal");a(vt,"toTargetInfo");a(G,"targetAttributeFacts");wt=16,N=new Map;a(Ve,"rememberParse");a(Et,"locateOpeningTagEnd");a(xt,"locateClosingTagStart");a(kt,"containsDynamicSyntax");a(Tt,"compilerError")});function Ct(r){if(!r.filepath||!r.filename||!Number.isFinite(r.modifiedTs)||!Number.isInteger(r.modifiedTs)||r.modifiedTs<0||r.sourceVersion==="")return{kind:"refused",code:"invalid_metadata",message:"filename, filepath, a non-negative integer modifiedTs, and a non-empty sourceVersion are required"};let e=At(r.source),t=r.validation??"compiler",n=z(e,r.filename,t);if(n.kind==="invalid")return{kind:"refused",code:"invalid_source",message:n.message};let i=[],s=new Map;for(let h of n.elements.values()){if(h.node.attributes.filter(A=>A.type==="Attribute"&&Ue.has(A.name)).length===0)continue;let p=It(e,h.node);if(p.kind==="refused")return p;s.set(h.start,p.metadata),i.push(p.removalEdit)}let o=H(e,i),l=z(o,r.filename,t);if(l.kind==="invalid")return{kind:"refused",code:"annotation_conflict",message:"removing existing Tempo annotations did not recover valid source"};let u=r.sourceVersion??P(o);for(let[h,x]of s){let p=X(h,i);if(p===null||!l.elements.has(p)||x.filepath!==r.filepath||x.position!==p||x.modifiedTs!==r.modifiedTs||x.sourceVersion!==u)return{kind:"refused",code:"annotation_conflict",message:`existing Tempo annotations at UTF-16 offset ${h} do not exactly match the recovered source identity`}}let c=[],f=[];for(let h of n.elements.values()){let x=X(h.start,i);if(x===null||!l.elements.has(x))return{kind:"refused",code:"annotation_conflict",message:`could not map element at UTF-16 offset ${h.start} to recovered source`};if(s.has(h.start)){f.push(x);continue}let p=h.node.attributes[h.node.attributes.length-1]?.end??h.start+1+h.tagName.length;c.push({start:p,end:p,replacement:Je({filepath:r.filepath,position:x,modifiedTs:r.modifiedTs,sourceVersion:u})})}let S=e.charCodeAt(0)===65279?1:0,v=[{start:S,end:S,replacement:`{@html '<!--${Z}-->'}`},...c],T=H(e,v),y=_t({source:e,parsed:n,removalEdits:i,annotationEdits:v,annotatedCode:T}),b={filename:r.filename,filepath:r.filepath,modifiedTs:r.modifiedTs,sourceVersion:u,components:y.components,hosts:y.hosts},E={start:e.length,end:e.length,replacement:`
12
- <template ${Z}="${ie(JSON.stringify(b),'"')}"></template>
13
- `},d=[...v,E],m=H(e,d);try{if(t==="compiler")J(m,{filename:r.filename,generate:!1});else{let h=z(m,r.filename,"syntax");if(h.kind==="invalid")throw new Error(h.message)}}catch(h){return{kind:"refused",code:"invalid_output",message:h instanceof Error?h.message:String(h)}}let C=new U(e);for(let h of d)C.appendLeft(h.start,h.replacement);return C.toString()!==m?{kind:"refused",code:"invalid_output",message:"annotation code and source-map transform outputs diverged"}:{kind:"ok",code:m,map:C.generateMap({source:r.filename,includeContent:!0,hires:!0}),edits:c,elementsAnnotated:c.length,skippedExistingAnnotations:f,sourceVersion:u}}function At(r){let e=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return r.replace(`{@html '<!--${Z}-->'}`,"").replace(new RegExp(`\\n?<template\\s+${e}=(?:"[^"]*"|'[^']*')\\s*><\\/template>\\n?`,"g"),"")}function _t(r){let e=[],t=[];for(let n of r.parsed.targets.values()){if(n.kind!=="component"&&n.kind!=="native-element"&&n.kind!=="dynamic-element")continue;let i=X(n.start,r.removalEdits);if(i===null)continue;let s=Rt(n.start,r.annotationEdits),o=Nt(r.annotatedCode,s),l=n.staticAttributes?.class,u=n.staticAttributes?.style,c=n.staticAttributes?.["data-tempo-locked"],f=n.hasSpreadAttributes===!0,S=new Set(n.directiveTypes??[]),k=new Set(n.attributeNames??[]),v=/Block$/.test(n.parentFragmentOwnerType??""),y=(r.parsed.targetNodes.get(n.start)?.attributes??[]).flatMap(d=>d.type==="Attribute"||d.type==="SpreadAttribute"?[]:d.type==="AttachTag"?["@attach"]:[r.source.slice(d.start,d.end).split("=")[0].trim()]),b=[...v?["#slot"]:[],...[...k].filter(d=>n.staticAttributes?.[d]===void 0).map(d=>d==="class"?"className":d),...y].join(" "),E={name:n.tagName,line:o.line,column:o.column,position:i,...typeof l=="string"?{className:l}:{},...typeof u=="string"?{style:u}:{},...c===!0||c==="true"||c===""?{locked:!0}:c==="false"?{locked:!1}:{},...b||f?{expressions:b}:{},supportsClassName:!f&&!S.has("ClassDirective")&&(!k.has("class")||typeof l=="string"),supportsStyle:!f&&!S.has("StyleDirective")&&(!k.has("style")||typeof u=="string")};n.kind==="component"?e.push({kind:"component",...E}):t.push({kind:"host",...E})}return{components:e,hosts:t}}function Rt(r,e){let t=r;for(let n of e)n.start>r||(t+=n.replacement.length-(n.end-n.start));return t}function Nt(r,e){let n=r.slice(0,e).split(`
14
- `);return{line:n.length,column:n[n.length-1]?.length??0}}function qe(r){return{name:"svelte-source-annotation",markup:a(({content:e,filename:t})=>{let n=r.metadata({filename:t,source:e});if(n===null)return;let i=Ct({source:e,filename:t??n.filepath,...n,validation:"syntax"});if(i.kind==="refused")throw new Error(`${i.code}: ${i.message}`);return{code:i.code,map:i.map}},"markup")}}function It(r,e){let t=e.attributes.filter(d=>d.type==="Attribute"),n=t.filter(d=>Ue.has(d.name)),i=n.map(d=>d.name);if(n.length!==Q.length||Q.some((d,m)=>i[m]!==d)||t.slice(-Q.length).some((d,m)=>d!==n[m])||n.some(d=>!Lt(d)))return K(e.start);let[s,o,l,u]=n;if(!s||!o||!l||!u)return K(e.start);let c=Y(s),f=Y(o),S=Y(l),k=Y(u),v=Number(f),T=Number(S),y=n[0],b=n[n.length-1];if(!y||!b||r[y.start-1]!==" "||!Number.isSafeInteger(v)||v<0||!Number.isSafeInteger(T)||T<0||!c||!k)return K(e.start);let E=Je({filepath:c,position:v,modifiedTs:T,sourceVersion:k}).slice(1);return r.slice(y.start,b.end)!==E?K(e.start):{kind:"ok",metadata:{filepath:c,position:v,modifiedTs:T,sourceVersion:k},removalEdit:{start:y.start-1,end:b.end,replacement:""}}}function K(r){return{kind:"refused",code:"annotation_conflict",message:`element at UTF-16 offset ${r} has partial, dynamic, reordered, or conflicting Tempo annotations`}}function Lt(r){return Array.isArray(r.value)&&r.value.every(e=>e.type==="Text")}function Y(r){return Array.isArray(r.value)?r.value.map(e=>e.type==="Text"?e.data:"").join(""):""}function Je(r){let e={"data-tempo-filepath":r.filepath,"data-tempo-position":String(r.position),"data-tempo-modifiedts":String(r.modifiedTs),"data-tempo-source-version":r.sourceVersion};return Object.entries(e).map(([t,n])=>` ${t}="${ie(n,'"')}"`).join("")}var Q,Ue,Z,He=g(()=>{"use strict";B();ke();re();_e();Re();De();Q=["data-tempo-filepath","data-tempo-position","data-tempo-modifiedts","data-tempo-source-version"],Ue=new Set(Q),Z="data-tempo-svelte-source-registry";a(Ct,"annotateSvelteSource");a(At,"removeGeneratedSourceRegistries");a(_t,"buildSourceRecords");a(Rt,"mapOffsetForward");a(Nt,"sourceLocationAt");a(qe,"createSvelteAnnotationPreprocessor");a(It,"readExistingAnnotation");a(K,"annotationConflict");a(Lt,"isStaticLiteralAttribute");a(Y,"staticLiteralAttributeValue");a(Je,"serializeAnnotations")});function Xe(r,e){let t=(0,w.resolve)(r),n=(0,w.relative)(e.sourceRoot,t);if(!n||/^\.\.(?:[\\/]|$)/.test(n)||(0,w.isAbsolute)(n)||n.split(/[\\/]/).includes("node_modules"))return null;let s=(0,w.relative)(e.root,t).replace(/\\/g,"/");return!s||(0,w.isAbsolute)(s)?null:{absoluteFilename:t,filepath:s}}function We(r){return Math.trunc((0,L.statSync)(r).mtimeMs)}function Ge(r){let e=(0,w.resolve)(r);for(;;){if(Ot(e))return e;let t=(0,w.dirname)(e);if(t===e)return(0,w.resolve)(r);e=t}}function Ot(r){if((0,L.existsSync)((0,w.join)(r,"pnpm-workspace.yaml")))return!0;try{return JSON.parse((0,L.readFileSync)((0,w.join)(r,"package.json"),"utf8"))?.workspaces!=null}catch{return!1}}var L,w,ze=g(()=>{L=require("node:fs"),w=require("node:path");a(Xe,"resolveAnnotationIdentity");a(We,"readModifiedTs");a(Ge,"defaultSourceRoot");a(Ot,"isWorkspaceRoot")});function Ke(r,e,t,n){let i=JSON.stringify({file:e,modifiedTs:t,sourceVersion:n});return`${r}
7
+ `)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0,u=!1;else{if(this.hires||l||s.has(o)){let c=[this.generatedCodeColumn,e,i.line,i.column];this.hires==="boundary"?bt.test(n[o])?u||(this.rawSegments.push(c),u=!0):(this.rawSegments.push(c),u=!1):this.rawSegments.push(c)}i.column+=1,this.generatedCodeColumn+=1,l=!1}o+=1}this.pending=null}advance(e){if(!e)return;let t=e.split(`
8
+ `);if(t.length>1){for(let n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}},j=`
9
+ `,I={insertLeft:!1,insertRight:!1,storeName:!1},J=class r{static{a(this,"MagicString")}constructor(e,t={}){let n=new q(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new U},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this}clone(){let e=new r(this.original,{filename:this.filename,offset:this.offset}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();for(;t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let i=t.next,s=i&&i.clone();s&&(n.next=s,s.previous=n,n=s),t=i}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new U(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let t=0,n=Object.keys(this.storedNames),i=new re(e.hires),s=Te(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(o=>{let l=s(o.start);o.intro.length&&i.advance(o.intro),o.edited?i.addEdit(t,o.content,l,o.storeName?n.indexOf(o.original):-1):i.addUneditedChunk(t,o,this.original,l,this.sourcemapLocations),o.outro.length&&i.advance(o.outro)}),this.outro&&i.advance(this.outro),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?gt(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:i.raw,x_google_ignoreList:this.ignoreList?[t]:void 0}}generateMap(e){return new ne(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=mt(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,t){let n=/^[^\r\n]/gm;if(St(e)&&(t=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;t=t||{};let i={};t.exclude&&(typeof t.exclude[0]=="number"?[t.exclude]:t.exclude).forEach(h=>{for(let y=h[0];y<h[1];y+=1)i[y]=!0});let s=t.indentStart!==!1,o=a(c=>s?`${e}${c}`:(s=!0,c),"replacer");this.intro=this.intro.replace(n,o);let l=0,u=this.firstChunk;for(;u;){let c=u.end;if(u.edited)i[l]||(u.content=u.content.replace(n,o),u.content.length&&(s=u.content[u.content.length-1]===`
10
+ `));else for(l=u.start;l<c;){if(!i[l]){let h=this.original[l];h===`
11
+ `?s=!0:h!=="\r"&&s&&(s=!1,l===u.start||(this._splitChunk(u,l),u=u.next),u.prependRight(e))}l+=1}l=u.end,u=u.next}return this.outro=this.outro.replace(n,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){return I.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),I.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return I.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),I.insertRight=!0),this.prependRight(e,t)}move(e,t,n){if(e=e+this.offset,t=t+this.offset,n=n+this.offset,n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);let i=this.byStart[e],s=this.byEnd[t],o=i.previous,l=s.next,u=this.byStart[n];if(!u&&s===this.lastChunk)return this;let c=u?u.previous:this.lastChunk;return o&&(o.next=l),l&&(l.previous=o),c&&(c.next=i),u&&(u.previous=s),i.previous||(this.firstChunk=s.next),s.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=c,s.next=u||null,c||(this.firstChunk=i),u||(this.lastChunk=s),this}overwrite(e,t,n,i){return i=i||{},this.update(e,t,n,{...i,overwrite:!i.contentOnly})}update(e,t,n,i){if(e=e+this.offset,t=t+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(t),i===!0&&(I.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),I.storeName=!0),i={storeName:!0});let s=i!==void 0?i.storeName:!1,o=i!==void 0?i.overwrite:!1;if(s){let c=this.original.slice(e,t);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[e],u=this.byEnd[t];if(l){let c=l;for(;c!==u;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}l.edit(n,s,!o)}else{let c=new q(e,t,"").edit(n,s);u.next=c,c.previous=u}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if(e=e+this.offset,typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(e=e+this.offset,t=t+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this}reset(e,t){if(e=e+this.offset,t=t+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.reset(),n=t>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(j);if(e!==-1)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(j),e!==-1)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(j),e!==-1)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(j),e!==-1)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(j),e!==-1?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length-this.offset){if(e=e+this.offset,t=t+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}let n="",i=this.firstChunk;for(;i&&(i.start>e||i.end<=e);){if(i.start<t&&i.end>=t)return n;i=i.next}if(i&&i.edited&&i.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let s=i;for(;i;){i.intro&&(s!==i||i.start===e)&&(n+=i.intro);let o=i.start<t&&i.end>=t;if(o&&i.edited&&i.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);let l=s===i?e-i.start:0,u=o?i.content.length+t-i.end:i.content.length;if(n+=i.content.slice(l,u),i.outro&&(!o||i.end===t)&&(n+=i.outro),o)break;i=i.next}return n}snip(e,t){let n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk,n=t,i=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=i?this.byStart[t.end]:this.byEnd[t.start],t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){let i=Te(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${e.original}")`)}let n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do t+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,s=n.trimEnd(t);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,s=n.trimStart(t);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function n(s,o){return typeof t=="string"?t.replace(/\$(\$|&|\d+)/g,(l,u)=>u==="$"?"$":u==="&"?s[0]:+u<s.length?s[+u]:`$${u}`):t(...s,s.index,o,s.groups)}a(n,"getReplacement");function i(s,o){let l,u=[];for(;l=s.exec(o);)u.push(l);return u}if(a(i,"matchAll"),e.global)i(e,this.original).forEach(o=>{if(o.index!=null){let l=n(o,this.original);l!==o[0]&&this.overwrite(o.index,o.index+o[0].length,l)}});else{let s=this.original.match(e);if(s&&s.index!=null){let o=n(s,this.original);o!==s[0]&&this.overwrite(s.index,s.index+s[0].length,o)}}return this}_replaceString(e,t){let{original:n}=this,i=n.indexOf(e);return i!==-1&&(typeof t=="function"&&(t=t(e,i,n)),e!==t&&this.overwrite(i,i+e.length,t)),this}replace(e,t){return typeof e=="string"?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){let{original:n}=this,i=e.length;for(let s=n.indexOf(e);s!==-1;s=n.indexOf(e,s+i)){let o=n.slice(s,s+i),l=t;typeof t=="function"&&(l=t(o,s,n)),o!==l&&this.overwrite(s,s+i,l)}return this}replaceAll(e,t){if(typeof e=="string")return this._replaceAllString(e,t);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,t)}}});function ie(r){return r.charCodeAt(0)===65279?` ${r.slice(1)}`:r}var Ae=g(()=>{"use strict";a(ie,"withoutByteOrderMark")});var H,W,_e,se=g(()=>{"use strict";H=lt(require("svelte/compiler"),1);Ae();W=a((r,e)=>H.compile(ie(r),e),"compile"),_e=a(((r,e)=>H.parse(ie(r),e)),"parse")});function X(r,e){let t=vt(r,e),n=r;for(let i of t)n=n.slice(0,i.start)+i.replacement+n.slice(i.end);return n}function vt(r,e){return Re(e,r.length)}function Re(r,e){let t=[...r].sort((n,i)=>i.start-n.start||i.end-n.end);for(let n of t){if(!Number.isInteger(n.start)||!Number.isInteger(n.end))throw new _("edit offsets must be integers");if(n.start<0||n.end<n.start||e!==void 0&&n.end>e)throw new _(e===void 0?`edit [${n.start}, ${n.end}) is not a valid source range`:`edit [${n.start}, ${n.end}) is outside source length ${e}`)}for(let n=0;n<t.length-1;n+=1){let i=t[n],s=t[n+1];if(!(!i||!s)){if(s.start===i.start&&(s.start===s.end||i.start===i.end))throw new _(`an insertion and another edit at offset ${s.start} have ambiguous order`);if(s.end>i.start)throw new _(`edits [${s.start}, ${s.end}) and [${i.start}, ${i.end}) overlap`)}}return t}function G(r,e){if(!Number.isInteger(r)||r<0)throw new _("the mapped source offset must be a non-negative integer");let t=0;for(let n of[...Re(e)].reverse()){if(r<n.start)break;if(r<n.end)return null;t+=n.replacement.length-(n.end-n.start)}return r+t}var _,Ne=g(()=>{"use strict";_=class extends Error{static{a(this,"InvalidStringEditError")}constructor(e){super(e),this.name="InvalidStringEditError"}};a(X,"applyStringEdits");a(vt,"validateStringEdits");a(Re,"validateEditShape");a(G,"mapOffsetThroughStringEdits")});function oe(r,e){let t=r.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split("{").join("&#123;").split("}").join("&#125;");return t=e==='"'?t.split('"').join("&quot;"):t.split("'").join("&#39;"),t}var Ie=g(()=>{"use strict";a(oe,"escapeSvelteAttributeValue")});var B,ae=g(()=>{B=class{static{a(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(e=>this.replacement=e,"replace")}}replace(e,t,n,i){e&&t&&(n!=null?e[t][n]=i:e[t]=i)}remove(e,t,n){e&&t&&(n!=null?e[t].splice(n,1):delete e[t])}}});function Le(r){return r!==null&&typeof r=="object"&&"type"in r&&typeof r.type=="string"}var z,Oe=g(()=>{ae();z=class extends B{static{a(this,"SyncWalker")}constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(n=>this.replacement=n,"replace")},this.enter=e,this.leave=t}visit(e,t,n,i){if(e){if(this.enter){let o=this.should_skip,l=this.should_remove,u=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,i),this.replacement&&(e=this.replacement,this.replace(t,n,i,e)),this.should_remove&&this.remove(t,n,i);let c=this.should_skip,h=this.should_remove;if(this.should_skip=o,this.should_remove=l,this.replacement=u,c)return e;if(h)return null}let s;for(s in e){let o=e[s];if(o&&typeof o=="object")if(Array.isArray(o)){let l=o;for(let u=0;u<l.length;u+=1){let c=l[u];Le(c)&&(this.visit(c,e,s,u)||u--)}}else Le(o)&&this.visit(o,e,s,null)}if(this.leave){let o=this.replacement,l=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,i),this.replacement&&(e=this.replacement,this.replace(t,n,i,e)),this.should_remove&&this.remove(t,n,i);let u=this.should_remove;if(this.replacement=o,this.should_remove=l,u)return null}}return e}};a(Le,"isNode")});var Me=g(()=>{ae()});function le(r,{enter:e,leave:t}){return new z(e,t).visit(r,null)}var Pe=g(()=>{Oe();Me();a(le,"walk")});function ue(r){let e=r;for(;["ParenthesizedExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression"].includes(e.type);){let t=e.expression;if(!t)break;e=t}return e}function R(r){let e=ue(r);if(["Literal","StringLiteral","NumericLiteral","BooleanLiteral"].includes(e.type)&&(typeof e.value=="string"||typeof e.value=="boolean"||typeof e.value=="number"&&Number.isFinite(e.value)))return e.value;if(e.type==="TemplateLiteral"){let t=e.expressions,n=e.quasis;if(t.length===0&&n.length===1&&typeof n[0]?.value.cooked=="string")return n[0].value.cooked}if(e.type==="UnaryExpression"&&(e.operator==="-"||e.operator==="+")){let t=R(e.argument);if(typeof t=="number")return e.operator==="-"?-t:t}if(e.type==="BinaryExpression"&&["+","-","*","/"].includes(e.operator)){let t=R(e.left),n=R(e.right);if(typeof t!="number"||typeof n!="number")return null;let i=e.operator==="+"?t+n:e.operator==="-"?t-n:e.operator==="*"?t*n:t/n;return Number.isFinite(i)?i:null}return null}var ce=g(()=>{"use strict";a(ue,"unwrapLiteralExpression");a(R,"readLiteralExpression")});var fe=g(()=>{"use strict";ce();ce()});function Fe(r){let e=r.name.toLowerCase();if(e==="class"||e==="style"||e.startsWith("on"))return null;let t=Array.isArray(r.value)?r.value.length===1?r.value[0]:void 0:r.value===!0?void 0:r.value;if(t?.type!=="ExpressionTag")return null;let n=t.expression,i=R(n);return typeof i!="string"&&typeof i!="number"?null:{value:i,rendered:String(i),expression:{start:n.start,end:n.end},quoted:Array.isArray(r.value)}}var $e=g(()=>{"use strict";fe();a(Fe,"literalMustacheAttribute")});function je(r){let e=r.trim();return e.startsWith("--")?e:e.toLowerCase()}function Be(r){return r.filter(e=>e.type==="StyleDirective")}function Ve(r,e,t){if(e.modifiers.length>0||t.some(o=>o!==e&&je(o.name)===je(e.name)))return null;let n=e.value;if(!Array.isArray(n)||n.length!==1)return null;let i=n[0];if(i.type!=="Text")return null;let s=r[i.start-1];return s!=='"'&&s!=="'"||r[i.end]!==s||i.end+1!==e.end?null:{value:i.data,start:i.start,end:i.end,quote:s}}var De=g(()=>{"use strict";a(je,"normalizeProperty");a(Be,"styleDirectives");a(Ve,"literalStyleDirective")});function Y(r,e,t="compiler"){let n=`${t}\0${e}\0${r}`,i=N.get(n);if(i)return N.delete(n),N.set(n,i),i;try{t==="compiler"&&W(r,{filename:e,generate:!1});let s=_e(r,{filename:e,modern:!0}),o=new Map,l=new Map,u=new Map,c=new Map,h=[],y=new WeakMap,k=new WeakMap,v=[],C=new WeakMap,w=[];le(s,{enter(S,d){let b=S;if(b.type==="Fragment"){let m=S,M=d,pe=(M?.type==="RegularElement"||M?.type==="Component"||M?.type==="SvelteComponent")&&!M.attributes.some(V=>V.type==="LetDirective")&&!m.nodes.some(V=>V.type==="ConstTag"||V.type==="SnippetBlock")?v[v.length-1]??m:m;k.set(m,pe),v.push(pe),/Block$/.test(M?.type??"")&&w.push(m),C.set(m,[...w]),y.set(S,d?.type??null)}let A=Et(r,S);if(A){let m=d;A.parentFragmentOwnerType=m?.type==="Fragment"?y.get(m)??null:null,u.set(A.start,A),c.set(A.start,S)}if(b.type!=="RegularElement"&&b.type!=="Component")return;let f=S,x=d;if(x.type!=="Fragment")throw new Error(`native element at offset ${f.start} has no exact template fragment parent`);let p=kt(r,f);if(p.kind==="invalid")throw new Error(p.message);let O=b.type==="Component"?l:o;if(O.has(f.start))throw new Error(`multiple native elements start at UTF-16 offset ${f.start}`);O.set(f.start,{node:f,tagName:f.name,start:f.start,end:f.end,openingEnd:p.openingEnd,selfClosing:p.selfClosing,childrenStart:p.selfClosing?null:p.openingEnd,childrenEnd:p.selfClosing?null:Tt(r,f,p.openingEnd),parentElementStart:h[h.length-1]?.start??null,parentFragment:x,parentFragmentOwnerType:y.get(x)??null,containsDynamicTemplateSyntax:b.type==="Component"||Ct(f),attributeNames:f.attributes.filter(m=>m.type==="Attribute").map(m=>m.name),hasSpreadAttributes:f.attributes.some(m=>m.type==="SpreadAttribute"),directiveTypes:f.attributes.filter(m=>m.type!=="Attribute"&&m.type!=="SpreadAttribute").map(m=>m.type)}),b.type==="RegularElement"&&h.push(f)},leave(S){let d=S;d.type==="RegularElement"&&h.pop(),d.type==="Fragment"&&(v.pop(),w[w.length-1]===S&&w.pop())}});let T={kind:"ok",elements:o,invocations:l,templateScopes:k,blockFragments:C,targets:u,targetNodes:c};return Ue(n,T),T}catch(s){let o=At(s);return Ue(n,o),o}}function Et(r,e){return e.type==="RegularElement"?{kind:"native-element",tagName:e.name??"",start:e.start,end:e.end,...K(r,e.attributes??[],!0)}:e.type==="Component"?{kind:"component",tagName:e.name??"",start:e.start,end:e.end,...K(r,e.attributes??[])}:e.type==="SvelteComponent"?{kind:"component",tagName:e.name??e.type,start:e.start,end:e.end,...K(r,e.attributes??[])}:e.type==="SvelteElement"?{kind:"dynamic-element",tagName:e.name??e.type,start:e.start,end:e.end,...K(r,e.attributes??[])}:e.type==="SlotElement"||e.type==="TitleElement"||e.type==="SvelteBody"||e.type==="SvelteBoundary"||e.type==="SvelteDocument"||e.type==="SvelteFragment"||e.type==="SvelteHead"||e.type==="SvelteSelf"||e.type==="SvelteWindow"?{kind:"special-element",tagName:e.name??e.type,start:e.start,end:e.end}:null}function K(r,e,t=!1){let n=Be(e),i=t&&!e.some(o=>o.type==="SpreadAttribute"),s={};for(let o of e){if(o.type!=="Attribute")continue;let l=i?Fe(o):null;if(l){s[o.name]=l.rendered;continue}if(o.value===!0){s[o.name]=!0;continue}Array.isArray(o.value)&&o.value.every(u=>u.type==="Text")&&(s[o.name]=o.value.map(u=>u.data).join(""))}return{attributeNames:e.filter(o=>o.type==="Attribute").map(o=>o.name),hasSpreadAttributes:e.some(o=>o.type==="SpreadAttribute"),directiveTypes:e.filter(o=>o.type!=="Attribute"&&o.type!=="SpreadAttribute").map(o=>o.type),staticAttributes:s,styleDirectives:n.map(o=>{let l=Ve(r,o,n);return{name:o.name,...l?{literal:l.value}:{}}})}}function Ue(r,e){for(N.set(r,e);N.size>xt;){let t=N.keys().next().value;if(t===void 0)break;N.delete(t)}}function kt(r,e){let t=e.attributes[e.attributes.length-1],n=e.start+1+e.name.length,i=t?.end??n,s=r.slice(i,e.end),o=/^(\s*)(\/?)>/.exec(s);return o?{kind:"ok",openingEnd:i+o[0].length,selfClosing:o[2]==="/"}:{kind:"invalid",message:`could not locate the opening-tag terminator for <${e.name}> at UTF-16 offset ${e.start}`}}function Tt(r,e,t){let n=e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=new RegExp(`</${n}\\s*>$`).exec(r.slice(t,e.end));return i?t+i.index:null}function Ct(r){let e=!1;return le(r,{enter(t){let n=t.type;(n==="ExpressionTag"||n==="HtmlTag"||n==="RenderTag"||n==="AttachTag"||n==="ConstTag"||n==="DeclarationTag"||n==="DebugTag"||n==="SpreadAttribute"||typeof n=="string"&&n.endsWith("Directive")||n==="Component"||n==="SvelteComponent"||n==="SvelteElement"||n==="EachBlock"||n==="IfBlock"||n==="AwaitBlock"||n==="KeyBlock"||n==="SnippetBlock")&&(e=!0,this.skip())}}),e}function At(r){if(r&&typeof r=="object"){let e=r;return{kind:"invalid",code:typeof e.code=="string"?e.code:"invalid_svelte",message:typeof e.message=="string"?e.message:"Svelte source could not be parsed"}}return{kind:"invalid",code:"invalid_svelte",message:String(r)}}var xt,N,qe=g(()=>{"use strict";Pe();se();$e();De();a(Y,"parseSvelteSourceInternal");a(Et,"toTargetInfo");a(K,"targetAttributeFacts");xt=16,N=new Map;a(Ue,"rememberParse");a(kt,"locateOpeningTagEnd");a(Tt,"locateClosingTagStart");a(Ct,"containsDynamicSyntax");a(At,"compilerError")});function _t(r){if(!r.filepath||!r.filename||!Number.isFinite(r.modifiedTs)||!Number.isInteger(r.modifiedTs)||r.modifiedTs<0||r.sourceVersion==="")return{kind:"refused",code:"invalid_metadata",message:"filename, filepath, a non-negative integer modifiedTs, and a non-empty sourceVersion are required"};let e=Rt(r.source),t=r.validation??"compiler",n=Y(e,r.filename,t);if(n.kind==="invalid")return{kind:"refused",code:"invalid_source",message:n.message};let i=[],s=new Map;for(let f of n.elements.values()){if(f.node.attributes.filter(O=>O.type==="Attribute"&&Je.has(O.name)).length===0)continue;let p=Ot(e,f.node);if(p.kind==="refused")return p;s.set(f.start,p.metadata),i.push(p.removalEdit)}let o=X(e,i),l=Y(o,r.filename,t);if(l.kind==="invalid")return{kind:"refused",code:"annotation_conflict",message:"removing existing Tempo annotations did not recover valid source"};let u=r.sourceVersion??F(o);for(let[f,x]of s){let p=G(f,i);if(p===null||!l.elements.has(p)||x.filepath!==r.filepath||x.position!==p||x.modifiedTs!==r.modifiedTs||x.sourceVersion!==u)return{kind:"refused",code:"annotation_conflict",message:`existing Tempo annotations at UTF-16 offset ${f} do not exactly match the recovered source identity`}}let c=[],h=[];for(let f of n.elements.values()){let x=G(f.start,i);if(x===null||!l.elements.has(x))return{kind:"refused",code:"annotation_conflict",message:`could not map element at UTF-16 offset ${f.start} to recovered source`};if(s.has(f.start)){h.push(x);continue}let p=f.node.attributes[f.node.attributes.length-1]?.end??f.start+1+f.tagName.length;c.push({start:p,end:p,replacement:We({filepath:r.filepath,position:x,modifiedTs:r.modifiedTs,sourceVersion:u})})}let y=e.charCodeAt(0)===65279?1:0,v=[{start:y,end:y,replacement:`{@html '<!--${te}-->'}`},...c],C=X(e,v),w=Nt({source:e,parsed:n,removalEdits:i,annotationEdits:v,annotatedCode:C}),T={filename:r.filename,filepath:r.filepath,modifiedTs:r.modifiedTs,sourceVersion:u,components:w.components,hosts:w.hosts},S={start:e.length,end:e.length,replacement:`
12
+ <template ${te}="${oe(JSON.stringify(T),'"')}"></template>
13
+ `},d=[...v,S],b=X(e,d);try{if(t==="compiler")W(b,{filename:r.filename,generate:!1});else{let f=Y(b,r.filename,"syntax");if(f.kind==="invalid")throw new Error(f.message)}}catch(f){return{kind:"refused",code:"invalid_output",message:f instanceof Error?f.message:String(f)}}let A=new J(e);for(let f of d)A.appendLeft(f.start,f.replacement);return A.toString()!==b?{kind:"refused",code:"invalid_output",message:"annotation code and source-map transform outputs diverged"}:{kind:"ok",code:b,map:A.generateMap({source:r.filename,includeContent:!0,hires:!0}),edits:c,elementsAnnotated:c.length,skippedExistingAnnotations:h,sourceVersion:u}}function Rt(r){let e=te.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return r.replace(`{@html '<!--${te}-->'}`,"").replace(new RegExp(`\\n?<template\\s+${e}=(?:"[^"]*"|'[^']*')\\s*><\\/template>\\n?`,"g"),"")}function Nt(r){let e=[],t=[];for(let n of r.parsed.targets.values()){if(n.kind!=="component"&&n.kind!=="native-element"&&n.kind!=="dynamic-element")continue;let i=G(n.start,r.removalEdits);if(i===null)continue;let s=It(n.start,r.annotationEdits),o=Lt(r.annotatedCode,s),l=n.staticAttributes?.class,u=n.staticAttributes?.style,c=n.staticAttributes?.["data-tempo-locked"],h=n.hasSpreadAttributes===!0,y=new Set(n.directiveTypes??[]),k=new Set(n.attributeNames??[]),v=/Block$/.test(n.parentFragmentOwnerType??""),w=(r.parsed.targetNodes.get(n.start)?.attributes??[]).flatMap(d=>d.type==="Attribute"||d.type==="SpreadAttribute"?[]:d.type==="AttachTag"?["@attach"]:[r.source.slice(d.start,d.end).split("=")[0].trim()]),T=[...v?["#slot"]:[],...[...k].filter(d=>n.staticAttributes?.[d]===void 0).map(d=>d==="class"?"className":d),...w].join(" "),S={name:n.tagName,line:o.line,column:o.column,position:i,...typeof l=="string"?{className:l}:{},...typeof u=="string"?{style:u}:{},...c===!0||c==="true"||c===""?{locked:!0}:c==="false"?{locked:!1}:{},...T||h?{expressions:T}:{},supportsClassName:!h&&!y.has("ClassDirective")&&(!k.has("class")||typeof l=="string"),supportsStyle:!h&&!y.has("StyleDirective")&&(!k.has("style")||typeof u=="string")};n.kind==="component"?e.push({kind:"component",...S}):t.push({kind:"host",...S})}return{components:e,hosts:t}}function It(r,e){let t=r;for(let n of e)n.start>r||(t+=n.replacement.length-(n.end-n.start));return t}function Lt(r,e){let n=r.slice(0,e).split(`
14
+ `);return{line:n.length,column:n[n.length-1]?.length??0}}function He(r){return{name:"svelte-source-annotation",markup:a(({content:e,filename:t})=>{let n=r.metadata({filename:t,source:e});if(n===null)return;let i=_t({source:e,filename:t??n.filepath,...n,validation:"syntax"});if(i.kind==="refused")throw new Error(`${i.code}: ${i.message}`);return{code:i.code,map:i.map}},"markup")}}function Ot(r,e){let t=e.attributes.filter(d=>d.type==="Attribute"),n=t.filter(d=>Je.has(d.name)),i=n.map(d=>d.name);if(n.length!==ee.length||ee.some((d,b)=>i[b]!==d)||t.slice(-ee.length).some((d,b)=>d!==n[b])||n.some(d=>!Mt(d)))return Q(e.start);let[s,o,l,u]=n;if(!s||!o||!l||!u)return Q(e.start);let c=Z(s),h=Z(o),y=Z(l),k=Z(u),v=Number(h),C=Number(y),w=n[0],T=n[n.length-1];if(!w||!T||r[w.start-1]!==" "||!Number.isSafeInteger(v)||v<0||!Number.isSafeInteger(C)||C<0||!c||!k)return Q(e.start);let S=We({filepath:c,position:v,modifiedTs:C,sourceVersion:k}).slice(1);return r.slice(w.start,T.end)!==S?Q(e.start):{kind:"ok",metadata:{filepath:c,position:v,modifiedTs:C,sourceVersion:k},removalEdit:{start:w.start-1,end:T.end,replacement:""}}}function Q(r){return{kind:"refused",code:"annotation_conflict",message:`element at UTF-16 offset ${r} has partial, dynamic, reordered, or conflicting Tempo annotations`}}function Mt(r){return Array.isArray(r.value)&&r.value.every(e=>e.type==="Text")}function Z(r){return Array.isArray(r.value)?r.value.map(e=>e.type==="Text"?e.data:"").join(""):""}function We(r){let e={"data-tempo-filepath":r.filepath,"data-tempo-position":String(r.position),"data-tempo-modifiedts":String(r.modifiedTs),"data-tempo-source-version":r.sourceVersion};return Object.entries(e).map(([t,n])=>` ${t}="${oe(n,'"')}"`).join("")}var ee,Je,te,Xe=g(()=>{"use strict";D();Ce();se();Ne();Ie();qe();ee=["data-tempo-filepath","data-tempo-position","data-tempo-modifiedts","data-tempo-source-version"],Je=new Set(ee),te="data-tempo-svelte-source-registry";a(_t,"annotateSvelteSource");a(Rt,"removeGeneratedSourceRegistries");a(Nt,"buildSourceRecords");a(It,"mapOffsetForward");a(Lt,"sourceLocationAt");a(He,"createSvelteAnnotationPreprocessor");a(Ot,"readExistingAnnotation");a(Q,"annotationConflict");a(Mt,"isStaticLiteralAttribute");a(Z,"staticLiteralAttributeValue");a(We,"serializeAnnotations")});function Ge(r,e){let t=(0,E.resolve)(r),n=(0,E.relative)(e.sourceRoot,t);if(!n||/^\.\.(?:[\\/]|$)/.test(n)||(0,E.isAbsolute)(n)||n.split(/[\\/]/).includes("node_modules"))return null;let s=(0,E.relative)(e.root,t).replace(/\\/g,"/");return!s||(0,E.isAbsolute)(s)?null:{absoluteFilename:t,filepath:s}}function ze(r){return Math.trunc((0,L.statSync)(r).mtimeMs)}function Ke(r){let e=(0,E.resolve)(r);for(;;){if(Pt(e))return e;let t=(0,E.dirname)(e);if(t===e)return(0,E.resolve)(r);e=t}}function Pt(r){if((0,L.existsSync)((0,E.join)(r,"pnpm-workspace.yaml")))return!0;try{return JSON.parse((0,L.readFileSync)((0,E.join)(r,"package.json"),"utf8"))?.workspaces!=null}catch{return!1}}var L,E,Ye=g(()=>{L=require("node:fs"),E=require("node:path");a(Ge,"resolveAnnotationIdentity");a(ze,"readModifiedTs");a(Ke,"defaultSourceRoot");a(Pt,"isWorkspaceRoot")});function Qe(r,e,t,n){let i=JSON.stringify({file:e,modifiedTs:t,sourceVersion:n});return`${r}
15
15
  ;typeof window !== "undefined" && (globalThis.__TEMPO_MODULE_VERSIONS__ || (globalThis.__TEMPO_MODULE_VERSIONS__ = [])).push(${i});
16
- `}var Ye=g(()=>{ue();B();a(Ke,"appendModuleVersionRecord")});var Ze={};de(Ze,{tempoSveltePreprocess:()=>Mt});function Mt(r={}){let e=(0,ce.resolve)(r.root??process.cwd()),t=(0,ce.resolve)(r.sourceRoot??Ge(e)),n=r.enabled??!!process.env.TEMPO,i=a(({filename:o})=>{if(!n||!o)return null;let l=Xe(o,{root:e,sourceRoot:t});return l?.absoluteFilename.endsWith(".svelte")?{filepath:l.filepath,modifiedTs:We(l.absoluteFilename)}:null},"metadata"),s=qe({metadata:i});return{name:"svelte-source-annotation",markup(o){let l=s.markup?.(o);return!l||!("code"in l)||Pt.test(l.code)?l:{...l,code:`${l.code}
16
+ `}var Ze=g(()=>{fe();D();a(Qe,"appendModuleVersionRecord")});var tt={};me(tt,{tempoSveltePreprocess:()=>$t});function $t(r={}){let e=(0,he.resolve)(r.root??process.cwd()),t=(0,he.resolve)(r.sourceRoot??Ke(e)),n=r.enabled??!!process.env.TEMPO,i=a(({filename:o})=>{if(!n||!o)return null;let l=Ge(o,{root:e,sourceRoot:t});return l?.absoluteFilename.endsWith(".svelte")?{filepath:l.filepath,modifiedTs:ze(l.absoluteFilename)}:null},"metadata"),s=He({metadata:i});return{name:"svelte-source-annotation",markup(o){let l=s.markup?.(o);return!l||!("code"in l)||Ft.test(l.code)?l:{...l,code:`${l.code}
17
17
  <script module></script>
18
- `}},script({content:o,attributes:l,filename:u}){if(!(l.module===!0||l.context==="module"))return;let f=i({filename:u});if(!f||!u)return;let S=P((0,Qe.readFileSync)(u,"utf8"));return{code:Ke(o,f.filepath,f.modifiedTs,S)}}}}var Qe,ce,Pt,et=g(()=>{Qe=require("node:fs"),ce=require("node:path");He();B();ze();Ye();Pt=/<script\b[^>]*\b(?:module\b|context\s*=\s*["']module["'])[^>]*>/;a(Mt,"tempoSveltePreprocess")});var Ft={};de(Ft,{getEntry:()=>$t});module.exports=me(Ft);var fe={};function $t(r){if(fe[r])return fe[r];if(r==="svelte")return fe[r]=(et(),me(Ze));throw new Error("Unknown Tempo runtime entry: "+r)}a($t,"getEntry");0&&(module.exports={getEntry});
18
+ `}},script({content:o,attributes:l,filename:u}){if(!(l.module===!0||l.context==="module"))return;let h=i({filename:u});if(!h||!u)return;let y=F((0,et.readFileSync)(u,"utf8"));return{code:Qe(o,h.filepath,h.modifiedTs,y)}}}}var et,he,Ft,nt=g(()=>{et=require("node:fs"),he=require("node:path");Xe();D();Ye();Ze();Ft=/<script\b[^>]*\b(?:module\b|context\s*=\s*["']module["'])[^>]*>/;a($t,"tempoSveltePreprocess")});var Bt={};me(Bt,{getEntry:()=>jt});module.exports=ye(Bt);var de={};function jt(r){if(de[r])return de[r];if(r==="svelte")return de[r]=(nt(),ye(tt));throw new Error("Unknown Tempo runtime entry: "+r)}a(jt,"getEntry");0&&(module.exports={getEntry});
19
19
 
20
20
  return module.exports;};