@nil-/xit 0.1.18 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/bundler.js CHANGED
@@ -16,7 +16,7 @@ Defaulting to 2020, but this will stop working in the future.`)),AA.ecmaVersion=
16
16
  import Component from "${USER_TAG}${eA.replace(/\\/g,"/")}";
17
17
  export const action = (target, context) => {
18
18
  let ref = mount(Component, { target, context });
19
- return { destroy: () => unmount(ref) }
19
+ return () => unmount(ref);
20
20
  };`,JSON_PKG_CACHE=new Map,SCOPED_PKG_REGEX=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,PKG_REGEX=/^([^/]*)(?:\/(.*))?$/s,FILE_PREFIX="file:/",WIN_FILE_PREFIX="file:///",resolve_local=async(eA,AA)=>{if(AA!=null){const tA=new URL(`${FILE_PREFIX}${AA}`),gA=new URL(eA,tA).href;return gA.startsWith(WIN_FILE_PREFIX)?gA.slice(8):gA.slice(6)}return eA},resolve_remote=async(eA,AA)=>(await fetch(new URL(eA,AA),{method:"HEAD"})).url,fetch_json_remote=async eA=>{const AA=await fetch(eA);if(AA.ok)return JSON.parse(await AA.text())},fetch_package_json=async(eA,AA)=>{const[tA,gA,iA=""]=eA.split(eA.startsWith("@")?SCOPED_PKG_REGEX:PKG_REGEX),IA=`${AA}/${gA}`,BA=`${IA}/package.json`;if(JSON_PKG_CACHE.has(BA))return JSON_PKG_CACHE.get(BA);const sA=await fetch_json_remote(BA);if(sA!=null)return JSON_PKG_CACHE.set(BA,{base:IA,rest:iA,json:sA}),JSON_PKG_CACHE.get(BA)},resolve_id=eA=>({input:AA=>({resolved:AA}),hook:async(AA,tA)=>{if(AA.startsWith(INTERNAL_TAG)||AA.startsWith(USER_TAG))return AA;if(AA.startsWith(".")){if(tA!=null&&tA.startsWith(USER_TAG))return`${USER_TAG}${await resolve_local(AA,tA.slice(USER_TAG.length))}`;if(tA!=null&&tA.startsWith(RESOURCE_TAG))return`${RESOURCE_TAG}${await resolve_remote(AA,tA.slice(RESOURCE_TAG.length))}`}if(AA.startsWith("https://"))return null;const gA=await fetch_package_json(AA,eA.cdn_url);if(gA!=null){const iA=o$2(gA.json,gA.rest,{browser:!0,conditions:["svelte","production"]});if(iA!=null){if(Array.isArray(iA)&&iA.length>0)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA[0]}`)}`;if(typeof iA=="string")return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA}`)}`}else{const IA=i$3(gA.json);if(IA!=null)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${IA}`)}`}}throw"unknown file, should be unreachable"}});function walk(eA,AA,tA){const gA=tA._;let iA=!1;function IA(sA,{next:CA,state:oA}){CA(oA)}function BA(sA,CA,oA){if(iA||!sA.type)return;let QA;const EA={},rA={path:CA,state:oA,next:(uA=oA)=>{CA.push(sA);for(const cA in sA){if(cA==="type")continue;const hA=sA[cA];if(hA&&typeof hA=="object")if(Array.isArray(hA)){const dA={};hA.forEach((pA,wA)=>{if(pA&&typeof pA=="object"){const mA=BA(pA,CA,uA);mA&&(dA[wA]=mA)}}),Object.keys(dA).length>0&&(EA[cA]=hA.map((pA,wA)=>dA[wA]??pA))}else{const dA=BA(hA,CA,uA);dA&&(EA[cA]=dA)}}if(CA.pop(),Object.keys(EA).length>0)return apply_mutations(sA,EA)},stop:()=>{iA=!0},visit:(uA,cA=oA)=>{CA.push(sA);const hA=BA(uA,CA,cA)??uA;return CA.pop(),hA}};let lA=tA[sA.type]??IA;if(gA){let uA;QA=gA(sA,{...rA,next:(cA=oA)=>(oA=cA,uA=lA(sA,{...rA,state:cA}),uA)}),!QA&&uA&&(QA=uA)}else QA=lA(sA,rA);if(QA||Object.keys(EA).length>0&&(QA=apply_mutations(sA,EA)),QA)return QA}return BA(eA,[],AA)??eA}function apply_mutations(eA,AA){const tA={},gA=Object.getOwnPropertyDescriptors(eA);for(const iA in gA)Object.defineProperty(tA,iA,gA[iA]);for(const iA in AA)tA[iA]=AA[iA];return tA}const regex_whitespace=/\s/,regex_whitespaces=/\s+/,regex_starts_with_newline=/^\r?\n/,regex_starts_with_whitespace=/^\s/,regex_starts_with_whitespaces=/^[ \t\r\n]+/,regex_ends_with_whitespace=/\s$/,regex_ends_with_whitespaces=/[ \t\r\n]+$/,regex_not_whitespace=/[^ \t\r\n]/,regex_whitespaces_strict=/[ \t\n\r\f]+/g,regex_only_whitespaces=/^[ \t\n\r\f]+$/,regex_not_newline_characters=/[^\n]/g,regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,regex_invalid_identifier_chars=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,regex_starts_with_vowel=/^[aeiou]/,regex_heading_tags=/^h[1-6]$/,regex_illegal_attribute_character=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",ELEMENT_IS_NAMESPACED=1,ELEMENT_PRESERVE_ATTRIBUTE_CASE=2,NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",IGNORABLE_RUNTIME_WARNINGS=["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function fuzzymatch(eA,AA){if(AA.length===0)return null;const gA=new FuzzySet(AA).get(eA);return gA&&gA[0][0]>.7?gA[0][1]:null}const GRAM_SIZE_LOWER=2,GRAM_SIZE_UPPER=3;function _distance(eA,AA){if(eA===null&&AA===null)throw"Trying to compare two null values";return eA===null||AA===null?0:(eA=String(eA),AA=String(AA),1-levenshtein(eA,AA)/Math.max(eA.length,AA.length))}function levenshtein(eA,AA){const tA=[];let gA=0,iA=0;for(let IA=0;IA<=AA.length;IA++)for(let BA=0;BA<=eA.length;BA++)IA&&BA?eA.charAt(BA-1)===AA.charAt(IA-1)?iA=gA:iA=Math.min(tA[BA],tA[BA-1],gA)+1:iA=IA+BA,gA=tA[BA],tA[BA]=iA;return tA.pop()}const non_word_regex=/[^\w, ]+/;function iterate_grams(eA,AA=2){const tA="-"+eA.toLowerCase().replace(non_word_regex,"")+"-",gA=AA-tA.length,iA=[];if(gA>0)for(let IA=0;IA<gA;++IA)eA+="-";for(let IA=0;IA<tA.length-AA+1;++IA)iA.push(tA.slice(IA,IA+AA));return iA}function gram_counter(eA,AA=2){const tA={},gA=iterate_grams(eA,AA);let iA=0;for(iA;iA<gA.length;++iA)gA[iA]in tA?tA[gA[iA]]+=1:tA[gA[iA]]=1;return tA}function sort_descending(eA,AA){return AA[0]-eA[0]}class FuzzySet{constructor(AA){rg(this,"exact_set",{});rg(this,"match_dict",{});rg(this,"items",{});for(let tA=GRAM_SIZE_LOWER;tA<GRAM_SIZE_UPPER+1;++tA)this.items[tA]=[];for(let tA=0;tA<AA.length;++tA)this.add(AA[tA])}add(AA){if(AA.toLowerCase()in this.exact_set)return!1;let gA=GRAM_SIZE_LOWER;for(gA;gA<GRAM_SIZE_UPPER+1;++gA)this._add(AA,gA)}_add(AA,tA){const gA=AA.toLowerCase(),iA=this.items[tA]||[],IA=iA.length;iA.push(0);const BA=gram_counter(gA,tA);let sA=0,CA,oA;for(CA in BA)oA=BA[CA],sA+=Math.pow(oA,2),CA in this.match_dict?this.match_dict[CA].push([IA,oA]):this.match_dict[CA]=[[IA,oA]];const QA=Math.sqrt(sA);iA[IA]=[QA,gA],this.items[tA]=iA,this.exact_set[gA]=AA}get(AA){const tA=AA.toLowerCase(),gA=this.exact_set[tA];if(gA)return[[1,gA]];for(let iA=GRAM_SIZE_UPPER;iA>=GRAM_SIZE_LOWER;--iA){const IA=this.__get(AA,iA);if(IA.length>0)return IA}return null}__get(AA,tA){const gA=AA.toLowerCase(),iA={},IA=gram_counter(gA,tA),BA=this.items[tA];let sA=0,CA,oA,QA,EA,rA;for(CA in IA)if(oA=IA[CA],sA+=Math.pow(oA,2),CA in this.match_dict)for(QA=0;QA<this.match_dict[CA].length;++QA)EA=this.match_dict[CA][QA][0],rA=this.match_dict[CA][QA][1],EA in iA?iA[EA]+=oA*rA:iA[EA]=oA*rA;const lA=Math.sqrt(sA);let uA=[],cA;for(const pA in iA)cA=iA[pA],uA.push([cA/(lA*BA[pA][0]),BA[pA][1]]);uA.sort(sort_descending);let hA=[];const dA=Math.min(50,uA.length);for(let pA=0;pA<dA;++pA)hA.push([_distance(uA[pA][1],gA),uA[pA][1]]);uA=hA,uA.sort(sort_descending),hA=[];for(let pA=0;pA<uA.length;++pA)uA[pA][0]===uA[0][0]&&hA.push([uA[pA][0],this.exact_set[uA[pA][1]]]);return hA}}function rangeContains(eA,AA){return eA.start<=AA&&AA<eA.end}function getLocator$1(eA,AA={}){const{offsetLine:tA=0,offsetColumn:gA=0}=AA;let iA=0;const IA=eA.split(`
21
21
  `).map((CA,oA)=>{const QA=iA+CA.length+1,EA={start:iA,end:QA,line:oA};return iA=QA,EA});let BA=0;function sA(CA,oA){if(typeof CA=="string"&&(CA=eA.indexOf(CA,oA??0)),CA===-1)return;let QA=IA[BA];const EA=CA>=QA.end?1:-1;for(;QA;){if(rangeContains(QA,CA))return{line:tA+QA.line,column:gA+CA-QA.start,character:CA};BA+=EA,QA=IA[BA]}}return sA}let warnings=[],filename,source,dev,locator=getLocator$1("",{offsetLine:1}),warning_filter,ignore_stack=[],ignore_map=new Map;function push_ignore(eA){const AA=new Set([...ignore_stack.at(-1)||[],...eA]);ignore_stack.push(AA)}function pop_ignore(){ignore_stack.pop()}function reset_warning_filter(eA=()=>!0){warning_filter=eA}function is_ignored(eA,AA){var tA;return dev&&!!((tA=ignore_map.get(eA))!=null&&tA.some(gA=>gA.has(AA)))}function reset(eA,AA){var gA;source=eA;const tA=(gA=AA.rootDir)==null?void 0:gA.replace(/\\/g,"/");filename=AA.filename.replace(/\\/g,"/"),dev=!!AA.dev,typeof tA=="string"&&filename.startsWith(tA)&&(filename=filename.replace(tA,"").replace(/^[/\\]/,"")),locator=getLocator$1(source,{offsetLine:1}),warnings=[],ignore_stack=[],ignore_map.clear()}const regex_tabs=/^\t+/;function tabs_to_spaces(eA){return eA.replace(regex_tabs,AA=>AA.split(" ").join(" "))}function get_code_frame(eA,AA,tA){const gA=eA.split(`
22
22
  `),iA=Math.max(0,AA-2),IA=Math.min(AA+3,gA.length),BA=String(IA+1).length;return gA.slice(iA,IA).map((sA,CA)=>{const oA=iA+CA===AA,QA=String(CA+iA+1).padStart(BA," ");if(oA){const EA=" ".repeat(BA+2+tabs_to_spaces(sA.slice(0,tA)).length)+"^";return`${QA}: ${tabs_to_spaces(sA)}
@@ -56,7 +56,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
56
56
  `?IA=!0:QA!=="\r"&&IA&&(IA=!1,sA===CA.start||(this._splitChunk(CA,sA),CA=CA.next),CA.prependRight(AA))}sA+=1}sA=CA.end,CA=CA.next}return this.outro=this.outro.replace(gA,BA),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(AA,tA){return warned$1.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),warned$1.insertLeft=!0),this.appendLeft(AA,tA)}insertRight(AA,tA){return warned$1.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),warned$1.insertRight=!0),this.prependRight(AA,tA)}move(AA,tA,gA){if(gA>=AA&&gA<=tA)throw new Error("Cannot move a selection inside itself");this._split(AA),this._split(tA),this._split(gA);const iA=this.byStart[AA],IA=this.byEnd[tA],BA=iA.previous,sA=IA.next,CA=this.byStart[gA];if(!CA&&IA===this.lastChunk)return this;const oA=CA?CA.previous:this.lastChunk;return BA&&(BA.next=sA),sA&&(sA.previous=BA),oA&&(oA.next=iA),CA&&(CA.previous=IA),iA.previous||(this.firstChunk=IA.next),IA.next||(this.lastChunk=iA.previous,this.lastChunk.next=null),iA.previous=oA,IA.next=CA||null,oA||(this.firstChunk=iA),CA||(this.lastChunk=IA),this}overwrite(AA,tA,gA,iA){return iA=iA||{},this.update(AA,tA,gA,{...iA,overwrite:!iA.contentOnly})}update(AA,tA,gA,iA){if(typeof gA!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(tA>this.original.length)throw new Error("end is out of bounds");if(AA===tA)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(AA),this._split(tA),iA===!0&&(warned$1.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),warned$1.storeName=!0),iA={storeName:!0});const IA=iA!==void 0?iA.storeName:!1,BA=iA!==void 0?iA.overwrite:!1;if(IA){const oA=this.original.slice(AA,tA);Object.defineProperty(this.storedNames,oA,{writable:!0,value:!0,enumerable:!0})}const sA=this.byStart[AA],CA=this.byEnd[tA];if(sA){let oA=sA;for(;oA!==CA;){if(oA.next!==this.byStart[oA.end])throw new Error("Cannot overwrite across a split point");oA=oA.next,oA.edit("",!1)}sA.edit(gA,IA,!BA)}else{const oA=new Chunk(AA,tA,"").edit(gA,IA);CA.next=oA,oA.previous=CA}return this}prepend(AA){if(typeof AA!="string")throw new TypeError("outro content must be a string");return this.intro=AA+this.intro,this}prependLeft(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byEnd[AA];return gA?gA.prependLeft(tA):this.intro=tA+this.intro,this}prependRight(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byStart[AA];return gA?gA.prependRight(tA):this.outro=tA+this.outro,this}remove(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.intro="",gA.outro="",gA.edit(""),gA=tA>gA.end?this.byStart[gA.end]:null;return this}reset(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.reset(),gA=tA>gA.end?this.byStart[gA.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let AA=this.lastChunk;do{if(AA.outro.length)return AA.outro[AA.outro.length-1];if(AA.content.length)return AA.content[AA.content.length-1];if(AA.intro.length)return AA.intro[AA.intro.length-1]}while(AA=AA.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let AA=this.outro.lastIndexOf(n$1);if(AA!==-1)return this.outro.substr(AA+1);let tA=this.outro,gA=this.lastChunk;do{if(gA.outro.length>0){if(AA=gA.outro.lastIndexOf(n$1),AA!==-1)return gA.outro.substr(AA+1)+tA;tA=gA.outro+tA}if(gA.content.length>0){if(AA=gA.content.lastIndexOf(n$1),AA!==-1)return gA.content.substr(AA+1)+tA;tA=gA.content+tA}if(gA.intro.length>0){if(AA=gA.intro.lastIndexOf(n$1),AA!==-1)return gA.intro.substr(AA+1)+tA;tA=gA.intro+tA}}while(gA=gA.previous);return AA=this.intro.lastIndexOf(n$1),AA!==-1?this.intro.substr(AA+1)+tA:this.intro+tA}slice(AA=0,tA=this.original.length){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}let gA="",iA=this.firstChunk;for(;iA&&(iA.start>AA||iA.end<=AA);){if(iA.start<tA&&iA.end>=tA)return gA;iA=iA.next}if(iA&&iA.edited&&iA.start!==AA)throw new Error(`Cannot use replaced character ${AA} as slice start anchor.`);const IA=iA;for(;iA;){iA.intro&&(IA!==iA||iA.start===AA)&&(gA+=iA.intro);const BA=iA.start<tA&&iA.end>=tA;if(BA&&iA.edited&&iA.end!==tA)throw new Error(`Cannot use replaced character ${tA} as slice end anchor.`);const sA=IA===iA?AA-iA.start:0,CA=BA?iA.content.length+tA-iA.end:iA.content.length;if(gA+=iA.content.slice(sA,CA),iA.outro&&(!BA||iA.end===tA)&&(gA+=iA.outro),BA)break;iA=iA.next}return gA}snip(AA,tA){const gA=this.clone();return gA.remove(0,AA),gA.remove(tA,gA.original.length),gA}_split(AA){if(this.byStart[AA]||this.byEnd[AA])return;let tA=this.lastSearchedChunk;const gA=AA>tA.end;for(;tA;){if(tA.contains(AA))return this._splitChunk(tA,AA);tA=gA?this.byStart[tA.end]:this.byEnd[tA.start]}}_splitChunk(AA,tA){if(AA.edited&&AA.content.length){const iA=getLocator(this.original)(tA);throw new Error(`Cannot split a chunk that has already been edited (${iA.line}:${iA.column} – "${AA.original}")`)}const gA=AA.split(tA);return this.byEnd[tA]=AA,this.byStart[tA]=gA,this.byEnd[gA.end]=gA,AA===this.lastChunk&&(this.lastChunk=gA),this.lastSearchedChunk=AA,!0}toString(){let AA=this.intro,tA=this.firstChunk;for(;tA;)AA+=tA.toString(),tA=tA.next;return AA+this.outro}isEmpty(){let AA=this.firstChunk;do if(AA.intro.length&&AA.intro.trim()||AA.content.length&&AA.content.trim()||AA.outro.length&&AA.outro.trim())return!1;while(AA=AA.next);return!0}length(){let AA=this.firstChunk,tA=0;do tA+=AA.intro.length+AA.content.length+AA.outro.length;while(AA=AA.next);return tA}trimLines(){return this.trim("[\\r\\n]")}trim(AA){return this.trimStart(AA).trimEnd(AA)}trimEndAborted(AA){const tA=new RegExp((AA||"\\s")+"+$");if(this.outro=this.outro.replace(tA,""),this.outro.length)return!0;let gA=this.lastChunk;do{const iA=gA.end,IA=gA.trimEnd(tA);if(gA.end!==iA&&(this.lastChunk===gA&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.previous}while(gA);return!1}trimEnd(AA){return this.trimEndAborted(AA),this}trimStartAborted(AA){const tA=new RegExp("^"+(AA||"\\s")+"+");if(this.intro=this.intro.replace(tA,""),this.intro.length)return!0;let gA=this.firstChunk;do{const iA=gA.end,IA=gA.trimStart(tA);if(gA.end!==iA&&(gA===this.lastChunk&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.next}while(gA);return!1}trimStart(AA){return this.trimStartAborted(AA),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(AA,tA){function gA(IA,BA){return typeof tA=="string"?tA.replace(/\$(\$|&|\d+)/g,(sA,CA)=>CA==="$"?"$":CA==="&"?IA[0]:+CA<IA.length?IA[+CA]:`$${CA}`):tA(...IA,IA.index,BA,IA.groups)}function iA(IA,BA){let sA;const CA=[];for(;sA=IA.exec(BA);)CA.push(sA);return CA}if(AA.global)iA(AA,this.original).forEach(BA=>{if(BA.index!=null){const sA=gA(BA,this.original);sA!==BA[0]&&this.overwrite(BA.index,BA.index+BA[0].length,sA)}});else{const IA=this.original.match(AA);if(IA&&IA.index!=null){const BA=gA(IA,this.original);BA!==IA[0]&&this.overwrite(IA.index,IA.index+IA[0].length,BA)}}return this}_replaceString(AA,tA){const{original:gA}=this,iA=gA.indexOf(AA);return iA!==-1&&this.overwrite(iA,iA+AA.length,tA),this}replace(AA,tA){return typeof AA=="string"?this._replaceString(AA,tA):this._replaceRegexp(AA,tA)}_replaceAllString(AA,tA){const{original:gA}=this,iA=AA.length;for(let IA=gA.indexOf(AA);IA!==-1;IA=gA.indexOf(AA,IA+iA))gA.slice(IA,IA+iA)!==tA&&this.overwrite(IA,IA+iA,tA);return this}replaceAll(AA,tA){if(typeof AA=="string")return this._replaceAllString(AA,tA);if(!AA.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(AA,tA)}}var remapping_umd={exports:{}},traceMapping_umd={exports:{}},resolveUri_umd={exports:{}},hasRequiredResolveUri_umd;function requireResolveUri_umd(){return hasRequiredResolveUri_umd||(hasRequiredResolveUri_umd=1,function(eA,AA){(function(tA,gA){eA.exports=gA()})(commonjsGlobal,function(){const tA=/^[\w+.-]+:\/\//,gA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,iA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function IA(pA){return tA.test(pA)}function BA(pA){return pA.startsWith("//")}function sA(pA){return pA.startsWith("/")}function CA(pA){return pA.startsWith("file:")}function oA(pA){return/^[.?#]/.test(pA)}function QA(pA){const wA=gA.exec(pA);return rA(wA[1],wA[2]||"",wA[3],wA[4]||"",wA[5]||"/",wA[6]||"",wA[7]||"")}function EA(pA){const wA=iA.exec(pA),mA=wA[2];return rA("file:","",wA[1]||"","",sA(mA)?mA:"/"+mA,wA[3]||"",wA[4]||"")}function rA(pA,wA,mA,MA,fA,LA,_A){return{scheme:pA,user:wA,host:mA,port:MA,path:fA,query:LA,hash:_A,type:7}}function lA(pA){if(BA(pA)){const mA=QA("http:"+pA);return mA.scheme="",mA.type=6,mA}if(sA(pA)){const mA=QA("http://foo.com"+pA);return mA.scheme="",mA.host="",mA.type=5,mA}if(CA(pA))return EA(pA);if(IA(pA))return QA(pA);const wA=QA("http://foo.com/"+pA);return wA.scheme="",wA.host="",wA.type=pA?pA.startsWith("?")?3:pA.startsWith("#")?2:4:1,wA}function uA(pA){if(pA.endsWith("/.."))return pA;const wA=pA.lastIndexOf("/");return pA.slice(0,wA+1)}function cA(pA,wA){hA(wA,wA.type),pA.path==="/"?pA.path=wA.path:pA.path=uA(wA.path)+pA.path}function hA(pA,wA){const mA=wA<=4,MA=pA.path.split("/");let fA=1,LA=0,_A=!1;for(let JA=1;JA<MA.length;JA++){const RA=MA[JA];if(!RA){_A=!0;continue}if(_A=!1,RA!=="."){if(RA===".."){LA?(_A=!0,LA--,fA--):mA&&(MA[fA++]=RA);continue}MA[fA++]=RA,LA++}}let bA="";for(let JA=1;JA<fA;JA++)bA+="/"+MA[JA];(!bA||_A&&!bA.endsWith("/.."))&&(bA+="/"),pA.path=bA}function dA(pA,wA){if(!pA&&!wA)return"";const mA=lA(pA);let MA=mA.type;if(wA&&MA!==7){const LA=lA(wA),_A=LA.type;switch(MA){case 1:mA.hash=LA.hash;case 2:mA.query=LA.query;case 3:case 4:cA(mA,LA);case 5:mA.user=LA.user,mA.host=LA.host,mA.port=LA.port;case 6:mA.scheme=LA.scheme}_A>MA&&(MA=_A)}hA(mA,MA);const fA=mA.query+mA.hash;switch(MA){case 2:case 3:return fA;case 4:{const LA=mA.path.slice(1);return LA?oA(wA||pA)&&!oA(LA)?"./"+LA+fA:LA+fA:fA||"."}case 5:return mA.path+fA;default:return mA.scheme+"//"+mA.user+mA.host+mA.port+mA.path+fA}}return dA})}(resolveUri_umd)),resolveUri_umd.exports}var hasRequiredTraceMapping_umd;function requireTraceMapping_umd(){return hasRequiredTraceMapping_umd||(hasRequiredTraceMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,sourcemapCodec_umdExports,requireResolveUri_umd())})(commonjsGlobal,function(tA,gA,iA){function IA(HA,TA){return TA&&!TA.endsWith("/")&&(TA+="/"),iA(HA,TA)}function BA(HA){if(!HA)return"";const TA=HA.lastIndexOf("/");return HA.slice(0,TA+1)}const sA=0,CA=1,oA=2,QA=3,EA=4,rA=1,lA=2;function uA(HA,TA){const OA=cA(HA,0);if(OA===HA.length)return HA;TA||(HA=HA.slice());for(let jA=OA;jA<HA.length;jA=cA(HA,jA+1))HA[jA]=dA(HA[jA],TA);return HA}function cA(HA,TA){for(let OA=TA;OA<HA.length;OA++)if(!hA(HA[OA]))return OA;return HA.length}function hA(HA){for(let TA=1;TA<HA.length;TA++)if(HA[TA][sA]<HA[TA-1][sA])return!1;return!0}function dA(HA,TA){return TA||(HA=HA.slice()),HA.sort(pA)}function pA(HA,TA){return HA[sA]-TA[sA]}let wA=!1;function mA(HA,TA,OA,jA){for(;OA<=jA;){const XA=OA+(jA-OA>>1),ZA=HA[XA][sA]-TA;if(ZA===0)return wA=!0,XA;ZA<0?OA=XA+1:jA=XA-1}return wA=!1,OA-1}function MA(HA,TA,OA){for(let jA=OA+1;jA<HA.length&&HA[jA][sA]===TA;OA=jA++);return OA}function fA(HA,TA,OA){for(let jA=OA-1;jA>=0&&HA[jA][sA]===TA;OA=jA--);return OA}function LA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function _A(HA,TA,OA,jA){const{lastKey:XA,lastNeedle:ZA,lastIndex:tg}=OA;let og=0,gg=HA.length-1;if(jA===XA){if(TA===ZA)return wA=tg!==-1&&HA[tg][sA]===TA,tg;TA>=ZA?og=tg===-1?0:tg:gg=tg}return OA.lastKey=jA,OA.lastNeedle=TA,OA.lastIndex=mA(HA,TA,og,gg)}function bA(HA,TA){const OA=TA.map(RA);for(let jA=0;jA<HA.length;jA++){const XA=HA[jA];for(let ZA=0;ZA<XA.length;ZA++){const tg=XA[ZA];if(tg.length===1)continue;const og=tg[CA],gg=tg[oA],Cg=tg[QA],pg=OA[og],ng=pg[gg]||(pg[gg]=[]),Eg=TA[og];let dg=MA(ng,Cg,_A(ng,Cg,Eg,gg));Eg.lastIndex=++dg,JA(ng,dg,[Cg,jA,tg[sA]])}}return OA}function JA(HA,TA,OA){for(let jA=HA.length;jA>TA;jA--)HA[jA]=HA[jA-1];HA[TA]=OA}function RA(){return{__proto__:null}}const NA=function(HA,TA){const OA=FA(HA);if(!("sections"in OA))return new SA(OA,TA);const jA=[],XA=[],ZA=[],tg=[],og=[];vA(OA,TA,jA,XA,ZA,tg,og,0,0,1/0,1/0);const gg={version:3,file:OA.file,names:tg,sources:XA,sourcesContent:ZA,mappings:jA,ignoreList:og};return sg(gg)};function FA(HA){return typeof HA=="string"?JSON.parse(HA):HA}function vA(HA,TA,OA,jA,XA,ZA,tg,og,gg,Cg,pg){const{sections:ng}=HA;for(let Eg=0;Eg<ng.length;Eg++){const{map:dg,offset:kg}=ng[Eg];let Lg=Cg,Ug=pg;if(Eg+1<ng.length){const xg=ng[Eg+1].offset;Lg=Math.min(Cg,og+xg.line),Lg===Cg?Ug=Math.min(pg,gg+xg.column):Lg<Cg&&(Ug=gg+xg.column)}xA(dg,TA,OA,jA,XA,ZA,tg,og+kg.line,gg+kg.column,Lg,Ug)}}function xA(HA,TA,OA,jA,XA,ZA,tg,og,gg,Cg,pg){const ng=FA(HA);if("sections"in ng)return vA(...arguments);const Eg=new SA(ng,TA),dg=jA.length,kg=ZA.length,Lg=KA(Eg),{resolvedSources:Ug,sourcesContent:xg,ignoreList:Kg}=Eg;if(kA(jA,Ug),kA(ZA,Eg.names),xg)kA(XA,xg);else for(let fg=0;fg<Ug.length;fg++)XA.push(null);if(Kg)for(let fg=0;fg<Kg.length;fg++)tg.push(Kg[fg]+dg);for(let fg=0;fg<Lg.length;fg++){const Hg=og+fg;if(Hg>Cg)return;const Zg=aA(OA,Hg),gI=fg===0?gg:0,Wg=Lg[fg];for(let qg=0;qg<Wg.length;qg++){const Yg=Wg[qg],vg=gI+Yg[sA];if(Hg===Cg&&vg>=pg)return;if(Yg.length===1){Zg.push([vg]);continue}const zg=dg+Yg[CA],Xg=Yg[oA],AI=Yg[QA];Zg.push(Yg.length===4?[vg,zg,Xg,AI]:[vg,zg,Xg,AI,kg+Yg[EA]])}}}function kA(HA,TA){for(let OA=0;OA<TA.length;OA++)HA.push(TA[OA])}function aA(HA,TA){for(let OA=HA.length;OA<=TA;OA++)HA[OA]=[];return HA[TA]}const nA="`line` must be greater than 0 (lines start at line 1)",DA="`column` must be greater than or equal to 0 (columns start at column 0)",yA=-1,GA=1;class SA{constructor(TA,OA){const jA=typeof TA=="string";if(!jA&&TA._decodedMemo)return TA;const XA=jA?JSON.parse(TA):TA,{version:ZA,file:tg,names:og,sourceRoot:gg,sources:Cg,sourcesContent:pg}=XA;this.version=ZA,this.file=tg,this.names=og||[],this.sourceRoot=gg,this.sources=Cg,this.sourcesContent=pg,this.ignoreList=XA.ignoreList||XA.x_google_ignoreList||void 0;const ng=IA(gg||"",BA(OA));this.resolvedSources=Cg.map(dg=>IA(dg||"",ng));const{mappings:Eg}=XA;typeof Eg=="string"?(this._encoded=Eg,this._decoded=void 0):(this._encoded=void 0,this._decoded=uA(Eg,jA)),this._decodedMemo=LA(),this._bySources=void 0,this._bySourceMemos=void 0}}function YA(HA){return HA}function UA(HA){var TA,OA;return(TA=(OA=HA)._encoded)!==null&&TA!==void 0?TA:OA._encoded=gA.encode(HA._decoded)}function KA(HA){var TA;return(TA=HA)._decoded||(TA._decoded=gA.decode(HA._encoded))}function qA(HA,TA,OA){const jA=KA(HA);if(TA>=jA.length)return null;const XA=jA[TA],ZA=Qg(XA,HA._decodedMemo,TA,OA,GA);return ZA===-1?null:XA[ZA]}function $A(HA,TA){let{line:OA,column:jA,bias:XA}=TA;if(OA--,OA<0)throw new Error(nA);if(jA<0)throw new Error(DA);const ZA=KA(HA);if(OA>=ZA.length)return hg(null,null,null,null);const tg=ZA[OA],og=Qg(tg,HA._decodedMemo,OA,jA,XA||GA);if(og===-1)return hg(null,null,null,null);const gg=tg[og];if(gg.length===1)return hg(null,null,null,null);const{names:Cg,resolvedSources:pg}=HA;return hg(pg[gg[CA]],gg[oA]+1,gg[QA],gg.length===5?Cg[gg[EA]]:null)}function VA(HA,TA){const{source:OA,line:jA,column:XA,bias:ZA}=TA;return Fg(HA,OA,jA,XA,ZA||GA,!1)}function PA(HA,TA){const{source:OA,line:jA,column:XA,bias:ZA}=TA;return Fg(HA,OA,jA,XA,ZA||yA,!0)}function zA(HA,TA){const OA=KA(HA),{names:jA,resolvedSources:XA}=HA;for(let ZA=0;ZA<OA.length;ZA++){const tg=OA[ZA];for(let og=0;og<tg.length;og++){const gg=tg[og],Cg=ZA+1,pg=gg[0];let ng=null,Eg=null,dg=null,kg=null;gg.length!==1&&(ng=XA[gg[1]],Eg=gg[2]+1,dg=gg[3]),gg.length===5&&(kg=jA[gg[4]]),TA({generatedLine:Cg,generatedColumn:pg,source:ng,originalLine:Eg,originalColumn:dg,name:kg})}}}function WA(HA,TA){const{sources:OA,resolvedSources:jA}=HA;let XA=OA.indexOf(TA);return XA===-1&&(XA=jA.indexOf(TA)),XA}function Ag(HA,TA){const{sourcesContent:OA}=HA;if(OA==null)return null;const jA=WA(HA,TA);return jA===-1?null:OA[jA]}function eg(HA,TA){const{ignoreList:OA}=HA;if(OA==null)return!1;const jA=WA(HA,TA);return jA===-1?!1:OA.includes(jA)}function sg(HA,TA){const OA=new SA(Dg(HA,[]),TA);return OA._decoded=HA.mappings,OA}function ug(HA){return Dg(HA,KA(HA))}function yg(HA){return Dg(HA,UA(HA))}function Dg(HA,TA){return{version:HA.version,file:HA.file,names:HA.names,sourceRoot:HA.sourceRoot,sources:HA.sources,sourcesContent:HA.sourcesContent,mappings:TA,ignoreList:HA.ignoreList||HA.x_google_ignoreList}}function hg(HA,TA,OA,jA){return{source:HA,line:TA,column:OA,name:jA}}function wg(HA,TA){return{line:HA,column:TA}}function Qg(HA,TA,OA,jA,XA){let ZA=_A(HA,jA,TA,OA);return wA?ZA=(XA===yA?MA:fA)(HA,jA,ZA):XA===yA&&ZA++,ZA===-1||ZA===HA.length?-1:ZA}function Mg(HA,TA,OA,jA,XA){let ZA=Qg(HA,TA,OA,jA,GA);if(!wA&&XA===yA&&ZA++,ZA===-1||ZA===HA.length)return[];const tg=wA?jA:HA[ZA][sA];wA||(ZA=fA(HA,tg,ZA));const og=MA(HA,tg,ZA),gg=[];for(;ZA<=og;ZA++){const Cg=HA[ZA];gg.push(wg(Cg[rA]+1,Cg[lA]))}return gg}function Fg(HA,TA,OA,jA,XA,ZA){var tg;if(OA--,OA<0)throw new Error(nA);if(jA<0)throw new Error(DA);const{sources:og,resolvedSources:gg}=HA;let Cg=og.indexOf(TA);if(Cg===-1&&(Cg=gg.indexOf(TA)),Cg===-1)return ZA?[]:wg(null,null);const ng=((tg=HA)._bySources||(tg._bySources=bA(KA(HA),HA._bySourceMemos=og.map(LA))))[Cg][OA];if(ng==null)return ZA?[]:wg(null,null);const Eg=HA._bySourceMemos[Cg];if(ZA)return Mg(ng,Eg,OA,jA,XA);const dg=Qg(ng,Eg,OA,jA,XA);if(dg===-1)return wg(null,null);const kg=ng[dg];return wg(kg[rA]+1,kg[lA])}tA.AnyMap=NA,tA.GREATEST_LOWER_BOUND=GA,tA.LEAST_UPPER_BOUND=yA,tA.TraceMap=SA,tA.allGeneratedPositionsFor=PA,tA.decodedMap=ug,tA.decodedMappings=KA,tA.eachMapping=zA,tA.encodedMap=yg,tA.encodedMappings=UA,tA.generatedPositionFor=VA,tA.isIgnored=eg,tA.originalPositionFor=$A,tA.presortedDecodedMap=sg,tA.sourceContentFor=Ag,tA.traceSegment=qA})}(traceMapping_umd,traceMapping_umd.exports)),traceMapping_umd.exports}var genMapping_umd={exports:{}},setArray_umd={exports:{}},hasRequiredSetArray_umd;function requireSetArray_umd(){return hasRequiredSetArray_umd||(hasRequiredSetArray_umd=1,function(eA,AA){(function(tA,gA){gA(AA)})(commonjsGlobal,function(tA){class gA{constructor(){this._indexes={__proto__:null},this.array=[]}}function iA(oA){return oA}function IA(oA,QA){return oA._indexes[QA]}function BA(oA,QA){const EA=IA(oA,QA);if(EA!==void 0)return EA;const{array:rA,_indexes:lA}=oA,uA=rA.push(QA);return lA[QA]=uA-1}function sA(oA){const{array:QA,_indexes:EA}=oA;if(QA.length===0)return;const rA=QA.pop();EA[rA]=void 0}function CA(oA,QA){const EA=IA(oA,QA);if(EA===void 0)return;const{array:rA,_indexes:lA}=oA;for(let uA=EA+1;uA<rA.length;uA++){const cA=rA[uA];rA[uA-1]=cA,lA[cA]--}lA[QA]=void 0,rA.pop()}tA.SetArray=gA,tA.get=IA,tA.pop=sA,tA.put=BA,tA.remove=CA,Object.defineProperty(tA,"__esModule",{value:!0})})}(setArray_umd,setArray_umd.exports)),setArray_umd.exports}var hasRequiredGenMapping_umd;function requireGenMapping_umd(){return hasRequiredGenMapping_umd||(hasRequiredGenMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,requireSetArray_umd(),sourcemapCodec_umdExports,requireTraceMapping_umd())})(commonjsGlobal,function(tA,gA,iA,IA){class rA{constructor({file:nA,sourceRoot:DA}={}){this._names=new gA.SetArray,this._sources=new gA.SetArray,this._sourcesContent=[],this._mappings=[],this.file=nA,this.sourceRoot=DA,this._ignoreList=new gA.SetArray}}function lA(aA){return aA}function uA(aA,nA,DA,yA,GA,SA,YA,UA){return _A(!1,aA,nA,DA,yA,GA,SA,YA,UA)}function cA(aA,nA){return kA(!1,aA,nA)}const hA=(aA,nA,DA,yA,GA,SA,YA,UA)=>_A(!0,aA,nA,DA,yA,GA,SA,YA,UA),dA=(aA,nA)=>kA(!0,aA,nA);function pA(aA,nA,DA){const{_sources:yA,_sourcesContent:GA}=aA,SA=gA.put(yA,nA);GA[SA]=DA}function wA(aA,nA,DA=!0){const{_sources:yA,_sourcesContent:GA,_ignoreList:SA}=aA,YA=gA.put(yA,nA);YA===GA.length&&(GA[YA]=null),DA?gA.put(SA,YA):gA.remove(SA,YA)}function mA(aA){const{_mappings:nA,_sources:DA,_sourcesContent:yA,_names:GA,_ignoreList:SA}=aA;return NA(nA),{version:3,file:aA.file||void 0,names:GA.array,sourceRoot:aA.sourceRoot||void 0,sources:DA.array,sourcesContent:yA,mappings:nA,ignoreList:SA.array}}function MA(aA){const nA=mA(aA);return Object.assign(Object.assign({},nA),{mappings:iA.encode(nA.mappings)})}function fA(aA){const nA=new IA.TraceMap(aA),DA=new rA({file:nA.file,sourceRoot:nA.sourceRoot});return FA(DA._names,nA.names),FA(DA._sources,nA.sources),DA._sourcesContent=nA.sourcesContent||nA.sources.map(()=>null),DA._mappings=IA.decodedMappings(nA),nA.ignoreList&&FA(DA._ignoreList,nA.ignoreList),DA}function LA(aA){const nA=[],{_mappings:DA,_sources:yA,_names:GA}=aA;for(let SA=0;SA<DA.length;SA++){const YA=DA[SA];for(let UA=0;UA<YA.length;UA++){const KA=YA[UA],qA={line:SA+1,column:KA[0]};let $A,VA,PA;KA.length!==1&&($A=yA.array[KA[1]],VA={line:KA[2]+1,column:KA[3]},KA.length===5&&(PA=GA.array[KA[4]])),nA.push({generated:qA,source:$A,original:VA,name:PA})}}return nA}function _A(aA,nA,DA,yA,GA,SA,YA,UA,KA){const{_mappings:qA,_sources:$A,_sourcesContent:VA,_names:PA}=nA,zA=bA(qA,DA),WA=JA(zA,yA);if(!GA)return aA&&vA(zA,WA)?void 0:RA(zA,WA,[yA]);const Ag=gA.put($A,GA),eg=UA?gA.put(PA,UA):-1;if(Ag===VA.length&&(VA[Ag]=KA??null),!(aA&&xA(zA,WA,Ag,SA,YA,eg)))return RA(zA,WA,UA?[yA,Ag,SA,YA,eg]:[yA,Ag,SA,YA])}function bA(aA,nA){for(let DA=aA.length;DA<=nA;DA++)aA[DA]=[];return aA[nA]}function JA(aA,nA){let DA=aA.length;for(let yA=DA-1;yA>=0;DA=yA--){const GA=aA[yA];if(nA>=GA[0])break}return DA}function RA(aA,nA,DA){for(let yA=aA.length;yA>nA;yA--)aA[yA]=aA[yA-1];aA[nA]=DA}function NA(aA){const{length:nA}=aA;let DA=nA;for(let yA=DA-1;yA>=0&&!(aA[yA].length>0);DA=yA,yA--);DA<nA&&(aA.length=DA)}function FA(aA,nA){for(let DA=0;DA<nA.length;DA++)gA.put(aA,nA[DA])}function vA(aA,nA){return nA===0?!0:aA[nA-1].length===1}function xA(aA,nA,DA,yA,GA,SA){if(nA===0)return!1;const YA=aA[nA-1];return YA.length===1?!1:DA===YA[1]&&yA===YA[2]&&GA===YA[3]&&SA===(YA.length===5?YA[4]:-1)}function kA(aA,nA,DA){const{generated:yA,source:GA,original:SA,name:YA,content:UA}=DA;return GA?_A(aA,nA,yA.line-1,yA.column,GA,SA.line-1,SA.column,YA,UA):_A(aA,nA,yA.line-1,yA.column,null,null,null,null,null)}tA.GenMapping=rA,tA.addMapping=cA,tA.addSegment=uA,tA.allMappings=LA,tA.fromMap=fA,tA.maybeAddMapping=dA,tA.maybeAddSegment=hA,tA.setIgnore=wA,tA.setSourceContent=pA,tA.toDecodedMap=mA,tA.toEncodedMap=MA,Object.defineProperty(tA,"__esModule",{value:!0})})}(genMapping_umd,genMapping_umd.exports)),genMapping_umd.exports}(function(eA,AA){(function(tA,gA){eA.exports=gA(requireTraceMapping_umd(),requireGenMapping_umd())})(commonjsGlobal,function(tA,gA){const iA=BA("",-1,-1,"",null,!1),IA=[];function BA(dA,pA,wA,mA,MA,fA){return{source:dA,line:pA,column:wA,name:mA,content:MA,ignore:fA}}function sA(dA,pA,wA,mA,MA){return{map:dA,sources:pA,source:wA,content:mA,ignore:MA}}function CA(dA,pA){return sA(dA,pA,"",null,!1)}function oA(dA,pA,wA){return sA(null,IA,dA,pA,wA)}function QA(dA){const pA=new gA.GenMapping({file:dA.map.file}),{sources:wA,map:mA}=dA,MA=mA.names,fA=tA.decodedMappings(mA);for(let LA=0;LA<fA.length;LA++){const _A=fA[LA];for(let bA=0;bA<_A.length;bA++){const JA=_A[bA],RA=JA[0];let NA=iA;if(JA.length!==1){const DA=wA[JA[1]];if(NA=EA(DA,JA[2],JA[3],JA.length===5?MA[JA[4]]:""),NA==null)continue}const{column:FA,line:vA,name:xA,content:kA,source:aA,ignore:nA}=NA;gA.maybeAddSegment(pA,LA,RA,aA,vA,FA,xA),aA&&kA!=null&&gA.setSourceContent(pA,aA,kA),nA&&gA.setIgnore(pA,aA,!0)}}return pA}function EA(dA,pA,wA,mA){if(!dA.map)return BA(dA.source,pA,wA,mA,dA.content,dA.ignore);const MA=tA.traceSegment(dA.map,pA,wA);return MA==null?null:MA.length===1?iA:EA(dA.sources[MA[1]],MA[2],MA[3],MA.length===5?dA.map.names[MA[4]]:mA)}function rA(dA){return Array.isArray(dA)?dA:[dA]}function lA(dA,pA){const wA=rA(dA).map(fA=>new tA.TraceMap(fA,"")),mA=wA.pop();for(let fA=0;fA<wA.length;fA++)if(wA[fA].sources.length>1)throw new Error(`Transformation map ${fA} must have exactly one source file.
57
57
  Did you specify these with the most recent transformation maps first?`);let MA=uA(mA,pA,"",0);for(let fA=wA.length-1;fA>=0;fA--)MA=CA(wA[fA],[MA]);return MA}function uA(dA,pA,wA,mA){const{resolvedSources:MA,sourcesContent:fA,ignoreList:LA}=dA,_A=mA+1,bA=MA.map((JA,RA)=>{const NA={importer:wA,depth:_A,source:JA||"",content:void 0,ignore:void 0},FA=pA(NA.source,NA),{source:vA,content:xA,ignore:kA}=NA;if(FA)return uA(new tA.TraceMap(FA,vA),pA,vA,_A);const aA=xA!==void 0?xA:fA?fA[RA]:null,nA=kA!==void 0?kA:LA?LA.includes(RA):!1;return oA(vA,aA,nA)});return CA(dA,bA)}class cA{constructor(pA,wA){const mA=wA.decodedMappings?gA.toDecodedMap(pA):gA.toEncodedMap(pA);this.version=mA.version,this.file=mA.file,this.mappings=mA.mappings,this.names=mA.names,this.ignoreList=mA.ignoreList,this.sourceRoot=mA.sourceRoot,this.sources=mA.sources,wA.excludeContent||(this.sourcesContent=mA.sourcesContent)}toString(){return JSON.stringify(this)}}function hA(dA,pA,wA){const mA=typeof wA=="object"?wA:{excludeContent:!!wA,decodedMappings:!1},MA=lA(dA,pA);return new cA(QA(MA),mA)}return hA})})(remapping_umd);var remapping_umdExports=remapping_umd.exports,remapping=getDefaultExportFromCjs(remapping_umdExports);const b64enc=typeof window<"u"&&typeof btoa=="function"?eA=>btoa(unescape(encodeURIComponent(eA))):eA=>Buffer.from(eA).toString("base64");function combine_sourcemaps(eA,AA){if(AA.length==0)return null;let tA=1;const gA=AA.slice(0,-1).find(iA=>iA.sources.length!==1)===void 0?remapping(AA,()=>null,!0):remapping(AA[0],iA=>iA===eA&&AA[tA]?AA[tA++]:null,!0);return gA.file||delete gA.file,gA.sources.length||(gA.sources=[eA]),gA}function apply_preprocessor_sourcemap(eA,AA,tA){if(!AA||!tA)return AA;const gA=typeof tA=="string"?JSON.parse(tA):tA,iA=combine_sourcemaps(eA,[AA,gA]);return Object.defineProperties(iA,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+b64enc(this.toString())}}}),iA}function merge_with_preprocessor_map(eA,AA,tA){if(AA.sourcemap){const gA=get_basename(AA.filename);eA.map.sources=[gA],eA.map=apply_preprocessor_sourcemap(gA,eA.map,AA.sourcemap),gA!==tA&&(eA.map.sources=eA.map.sources.map(iA=>get_relative_path(tA,iA)))}}function get_relative_path(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}function get_basename(eA){return eA.split(/[/\\]/).pop()}function get_source_name(eA,AA,tA){return AA?get_relative_path(AA,eA):get_basename(eA)}function render_stylesheet(eA,AA,tA){const gA=new MagicString(eA),iA={code:gA,hash:AA.css.hash,minify:AA.inject_styles&&!tA.dev,selector:`.${AA.css.hash}`,keyframes:AA.css.keyframes,specificity:{bumped:!1}},IA=AA.css.ast;walk(IA,iA,visitors$1),gA.remove(0,IA.content.start),gA.remove(IA.content.end,eA.length),iA.minify&&remove_preceding_whitespace(IA.content.end,iA);const BA={code:gA.toString(),map:gA.generateMap({includeContent:!0,source:tA.filename,file:tA.cssOutputFilename||tA.filename})};return merge_with_preprocessor_map(BA,tA,BA.map.sources[0]),dev&&tA.css==="injected"&&BA.code&&(BA.code+=`
58
58
  /*# sourceMappingURL=${BA.map.toUrl()} */`),BA}const visitors$1={_:(eA,AA)=>{AA.state.code.addSourcemapLocation(eA.start),AA.state.code.addSourcemapLocation(eA.end),AA.next()},Atrule(eA,{state:AA,next:tA}){if(is_keyframes_node(eA)){let gA=eA.start+eA.name.length+1;for(;AA.code.original[gA]===" ";)gA+=1;let iA=gA;for(;AA.code.original[iA]!=="{"&&AA.code.original[iA]!==" ";)iA+=1;eA.prelude.startsWith("-global-")?AA.code.remove(gA,gA+8):AA.code.prependRight(gA,`${AA.hash}-`);return}tA()},Declaration(eA,{state:AA}){const tA=eA.property&&remove_css_prefix(eA.property.toLowerCase());if(tA==="animation"||tA==="animation-name"){let gA=eA.start+eA.property.length+1,iA="";for(;gA<AA.code.original.length;){const IA=AA.code.original[gA];if(regex_css_name_boundary.test(IA)){if(AA.keyframes.includes(iA)&&AA.code.prependRight(gA-iA.length,`${AA.hash}-`),IA===";"||IA==="}")break;iA=""}else iA+=IA;gA++}}else if(AA.minify&&(remove_preceding_whitespace(eA.start,AA),!eA.property.startsWith("--"))){let gA=eA.start+eA.property.length+1,iA=gA;for(;/\s/.test(AA.code.original[iA]);)iA++;iA>gA&&AA.code.remove(gA,iA)}},Rule(eA,{state:AA,next:tA,visit:gA}){if(AA.minify&&(remove_preceding_whitespace(eA.start,AA),remove_preceding_whitespace(eA.block.end-1,AA)),!dev&&is_empty(eA)){AA.minify?AA.code.remove(eA.start,eA.end):(AA.code.prependRight(eA.start,"/* (empty) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code));return}if(!is_used(eA)){AA.minify?AA.code.remove(eA.start,eA.end):(AA.code.prependRight(eA.start,"/* (unused) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code));return}if(eA.metadata.is_global_block){const iA=eA.prelude.children[0];if(iA.children.length===1&&iA.children[0].selectors.length===1){AA.minify?(AA.code.remove(eA.start,eA.block.start+1),AA.code.remove(eA.block.end-1,eA.end)):(AA.code.prependRight(eA.start,"/* "),AA.code.appendLeft(eA.block.start+1,"*/"),AA.code.prependRight(eA.block.end-1,"/*"),AA.code.appendLeft(eA.block.end,"*/"));return}gA(eA.prelude);return}tA()},SelectorList(eA,{state:AA,next:tA,path:gA}){if(!gA.find(BA=>BA.type==="ComplexSelector"&&!BA.metadata.used)){const BA=eA.children;let sA=!1,CA=BA[0].start,oA=CA;for(let QA=0;QA<BA.length;QA+=1){const EA=BA[QA];if(EA.metadata.used===sA){if(sA){let rA=EA.start;for(;AA.code.original[rA]!==",";)rA--;AA.minify?AA.code.remove(CA,rA+1):AA.code.overwrite(rA,rA+1,"*/")}else if(QA===0)AA.minify?CA=EA.start:AA.code.prependRight(EA.start,"/* (unused) ");else{const rA=QA!==BA.length-1?",":"";if(AA.minify){if(CA=oA,rA){for(;AA.code.original[CA-1]!==",";)CA++;AA.code.update(oA,CA,rA)}}else AA.code.overwrite(oA,EA.start,`${rA} /* (unused) `)}sA=!sA}oA=EA.end}sA&&(AA.minify?AA.code.remove(CA,oA):AA.code.appendLeft(oA,"*/"))}let iA=AA.specificity,IA=gA.at(-1);if((IA==null?void 0:IA.type)==="Rule"){iA={bumped:!1};let BA=IA.metadata.parent_rule;for(;BA;){if(BA.metadata.has_local_selectors){iA={bumped:!0};break}BA=BA.metadata.parent_rule}}tA({...AA,specificity:iA})},ComplexSelector(eA,AA){var gA;const tA=AA.state.specificity.bumped;for(const iA of eA.children){if(iA.metadata.is_global){const IA=iA.selectors[0];remove_global_pseudo_class(IA,iA.combinator,AA.state),(gA=eA.metadata.rule)!=null&&gA.metadata.parent_rule&&IA.args===null&&iA.combinator===null&&AA.state.code.prependRight(IA.start,"&");continue}if(iA.metadata.scoped){if(iA.selectors.length===1){const sA=iA.selectors[0];if(sA.type==="PseudoClassSelector"&&(sA.name==="is"||sA.name==="where"))continue}for(const sA of iA.selectors)sA.type==="PseudoClassSelector"&&sA.name==="global"&&remove_global_pseudo_class(sA,null,AA.state);if(iA.selectors.some(sA=>sA.type==="NestingSelector"))continue;let IA=AA.state.selector;AA.state.specificity.bumped&&(IA=`:where(${IA})`),AA.state.specificity.bumped=!0;let BA=iA.selectors.length;for(;BA--;){const sA=iA.selectors[BA];if(sA.type==="PseudoElementSelector"||sA.type==="PseudoClassSelector"){sA.name!=="root"&&sA.name!=="host"&&BA===0&&AA.state.code.prependRight(sA.start,IA);continue}sA.type==="TypeSelector"&&sA.name==="*"?AA.state.code.update(sA.start,sA.end,IA):AA.state.code.appendLeft(sA.end,IA);break}}}AA.next(),AA.state.specificity.bumped=tA},PseudoClassSelector(eA,AA){(eA.name==="is"||eA.name==="where"||eA.name==="has"||eA.name==="not")&&AA.next()}};function remove_global_pseudo_class(eA,AA,tA){if(eA.args===null){let gA=eA.start;if((AA==null?void 0:AA.name)===" ")for(;/\s/.test(tA.code.original[gA-1]);)gA--;tA.code.remove(gA,eA.start+7)}else tA.code.remove(eA.start,eA.start+8).remove(eA.end-1,eA.end)}function remove_preceding_whitespace(eA,AA){let tA=eA;for(;/\s/.test(AA.code.original[tA-1]);)tA--;tA<eA&&AA.code.remove(tA,eA)}function is_empty(eA){if(eA.metadata.is_global_block)return eA.block.children.length===0;for(const AA of eA.block.children)if(AA.type==="Declaration"||AA.type==="Rule"&&is_used(AA)&&!is_empty(AA)||AA.type==="Atrule"&&(AA.block===null||AA.block.children.length>0))return!1;return!0}function is_used(eA){return eA.prelude.children.some(AA=>AA.metadata.used)}function escape_comment_close(eA,AA){let tA=!1,gA=!1;for(let iA=eA.start;iA<eA.end;iA++)if(tA)tA=!1;else{const IA=AA.original[iA];gA?IA==="*"&&AA.original[iA+1]==="/"&&(AA.prependRight(++iA,"\\"),gA=!1):IA==="\\"?tA=!0:IA==="/"&&AA.original[++iA]==="*"&&(gA=!0)}}function visit_assignment_expression(eA,AA,tA){if(eA.left.type==="ArrayPattern"||eA.left.type==="ObjectPattern"||eA.left.type==="RestElement"){const gA=AA.visit(eA.right),iA=gA.type!=="Identifier",IA=iA?id$1("$$value"):gA;let BA=!1;const sA=extract_paths(eA.left).map(QA=>{var lA;const EA=(lA=QA.expression)==null?void 0:lA.call(QA,IA);let rA=tA("=",QA.node,EA,AA);return rA!==null&&(BA=!0),rA??assignment("=",AA.visit(QA.node),AA.visit(EA))});if(!BA)return null;const CA=AA.path.at(-1).type.endsWith("Statement"),oA=sequence$1(sA);if(CA||oA.expressions.push(IA),iA){const QA=arrow([IA],oA);return is_expression_async(gA)||sA.some(rA=>is_expression_async(rA))?await_builder(call(async(QA),gA)):call(QA,gA)}return oA}if(eA.left.type!=="Identifier"&&eA.left.type!=="MemberExpression")throw new Error(`Unexpected assignment type ${eA.left.type}`);return tA(eA.operator,eA.left,eA.right,AA)}function AssignmentExpression$1(eA,AA){return visit_assignment_expression(eA,AA,build_assignment$1)??AA.next()}function build_assignment$1(eA,AA,tA,gA){let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier"||!is_store_name(iA.name))return null;const IA=iA.name.slice(1);if(!gA.state.scope.get(IA))return null;if(iA===AA){let BA=gA.visit(build_assignment_value(eA,AA,tA));return call("$.store_set",id$1(IA),BA)}return call("$.store_mutate",assignment("??=",id$1("$$store_subs"),object$2([])),literal(iA.name),id$1(IA),assignment(eA,gA.visit(AA),gA.visit(tA)))}function is_store_name(eA){return eA[0]==="$"&&/[A-Za-z_]/.test(eA[1])}const ATTR_REGEX=/[&"<]/g,CONTENT_REGEX=/[&<]/g;function escape_html(eA,AA){const tA=String(eA??""),gA=AA?ATTR_REGEX:CONTENT_REGEX;gA.lastIndex=0;let iA="",IA=0;for(;gA.test(tA);){const BA=gA.lastIndex-1,sA=tA[BA];iA+=tA.substring(IA,BA)+(sA==="&"?"&amp;":sA==='"'?"&quot;":"&lt;"),IA=BA+1}return iA+tA.substring(IA)}const BLOCK_OPEN=`<!--${HYDRATION_START}-->`,BLOCK_OPEN_ELSE=`<!--${HYDRATION_START_ELSE}-->`,BLOCK_CLOSE=`<!--${HYDRATION_END}-->`,EMPTY_COMMENT="<!---->",block_open=literal(BLOCK_OPEN),block_close=literal(BLOCK_CLOSE),empty_comment=literal(EMPTY_COMMENT);function process_children$1(eA,{visit:AA,state:tA}){let gA=[];function iA(){let IA=quasi("",!1);const BA=[IA],sA=[];for(let CA=0;CA<gA.length;CA++){const oA=gA[CA];oA.type==="Text"||oA.type==="Comment"?IA.value.cooked+=oA.type==="Comment"?`<!--${oA.data}-->`:escape_html(oA.data):oA.type==="ExpressionTag"&&oA.expression.type==="Literal"?oA.expression.value!=null&&(IA.value.cooked+=escape_html(oA.expression.value+"")):(sA.push(call("$.escape",AA(oA.expression))),IA=quasi("",CA+1===gA.length),BA.push(IA))}for(const CA of BA)CA.value.raw=sanitize_template_string(CA.value.cooked);tA.template.push(template(BA,sA))}for(let IA=0;IA<eA.length;IA+=1){const BA=eA[IA];BA.type==="Text"||BA.type==="Comment"||BA.type==="ExpressionTag"?gA.push(BA):(gA.length>0&&(iA(),gA=[]),AA(BA,{...tA}))}gA.length>0&&iA()}function is_statement(eA){return eA.type.endsWith("Statement")||eA.type.endsWith("Declaration")}function build_template(eA,AA=id$1("$$payload.out"),tA="+="){let gA=[],iA=[];const IA=[],BA=()=>{IA.push(stmt(assignment(tA,AA,template(gA.map((sA,CA)=>quasi(sA,CA===gA.length-1)),iA)))),gA=[],iA=[]};for(let sA=0;sA<eA.length;sA++){const CA=eA[sA];is_statement(CA)?(gA.length!==0&&BA(),IA.push(CA)):(gA.length===0&&gA.push(""),CA.type==="Literal"?gA[gA.length-1]+=CA.value:CA.type==="TemplateLiteral"?(gA[gA.length-1]+=CA.quasis[0].value.cooked,gA.push(...CA.quasis.slice(1).map(oA=>oA.value.cooked)),iA.push(...CA.expressions)):(iA.push(CA),gA.push("")))}return gA.length!==0&&BA(),IA}function build_attribute_value$1(eA,AA,tA=!1,gA=!1){if(eA===!0)return true_instance;if(!Array.isArray(eA)||eA.length===1){const sA=Array.isArray(eA)?eA[0]:eA;if(sA.type==="Text"){const CA=tA?sA.data.replace(regex_whitespaces_strict," ").trim():sA.data;return literal(gA?CA:escape_html(CA,!0))}return AA.visit(sA.expression)}let iA=quasi("",!1);const IA=[iA],BA=[];for(let sA=0;sA<eA.length;sA++){const CA=eA[sA];CA.type==="Text"?iA.value.raw+=tA?CA.data.replace(regex_whitespaces_strict," "):CA.data:(BA.push(call("$.stringify",AA.visit(CA.expression))),iA=quasi("",sA+1===eA.length),IA.push(iA))}return template(IA,BA)}function build_getter(eA,AA){const tA=AA.scope.get(eA.name);if(tA===null||eA===tA.node)return eA;if(tA.kind==="store_sub"){const gA=id$1(eA.name.slice(1));return call("$.store_get",assignment("??=",id$1("$$store_subs"),object$2([])),literal(eA.name),build_getter(gA,AA))}return eA}function AwaitBlock$1(eA,AA){AA.state.template.push(empty_comment,stmt(call("$.await",AA.visit(eA.expression),thunk(eA.pending?AA.visit(eA.pending):block([])),arrow(eA.value?[AA.visit(eA.value)]:[],eA.then?AA.visit(eA.then):block([])),arrow(eA.error?[AA.visit(eA.error)]:[],eA.catch?AA.visit(eA.catch):block([])))),empty_comment)}function is_hoisted_function(eA){var AA;return eA.type==="ArrowFunctionExpression"||eA.type==="FunctionExpression"||eA.type==="FunctionDeclaration"?((AA=eA.metadata)==null?void 0:AA.hoisted)===!0:!1}function sort_const_tags(eA,AA){const tA=[],gA=new Map;for(const CA of eA)if(CA.type==="ConstTag"){const oA=CA.declaration.declarations[0],QA=extract_identifiers(oA.id).map(rA=>AA.scope.get(rA.name)),EA=new Set;walk(oA.init,AA,{_:set_scope,Identifier(rA,lA){const uA=lA.path.at(-1);if(is_reference(rA,uA)){const cA=lA.state.scope.get(rA.name);cA&&EA.add(cA)}}});for(const rA of QA)gA.set(rA,{node:CA,deps:EA})}else tA.push(CA);if(gA.size===0)return eA;const iA=[];for(const[CA,oA]of gA)for(const QA of oA.deps)gA.has(QA)&&iA.push([CA,QA]);const IA=check_graph_for_cycles(iA);if(IA!=null&&IA.length){const CA=gA.get(IA[0]);const_tag_cycle(CA.node,IA.map(oA=>oA.node.name).join(" → "))}const BA=[];function sA(CA){if(!BA.includes(CA.node)){for(const oA of CA.deps){const QA=gA.get(oA);QA&&sA(QA)}BA.push(CA.node)}}for(const CA of gA.values())sA(CA);return[...BA,...tA]}function clean_nodes(eA,AA,tA,gA="html",iA,IA,BA){iA.analysis.runes||(AA=sort_const_tags(AA,iA));const sA=[],CA=[];for(const EA of AA)EA.type==="Comment"&&!BA||(EA.type==="ConstTag"||EA.type==="DebugTag"||EA.type==="SvelteBody"||EA.type==="SvelteWindow"||EA.type==="SvelteDocument"||EA.type==="SvelteHead"||EA.type==="TitleElement"||EA.type==="SnippetBlock"?sA.push(EA):CA.push(EA));let oA=CA;if(!IA){oA=[];let EA,rA;for(;(EA=CA[0])&&EA.type==="Text"&&!regex_not_whitespace.test(EA.data);)CA.shift();for((EA==null?void 0:EA.type)==="Text"&&(EA.raw=EA.raw.replace(regex_starts_with_whitespaces,""),EA.data=EA.data.replace(regex_starts_with_whitespaces,""));(rA=CA.at(-1))&&rA.type==="Text"&&!regex_not_whitespace.test(rA.data);)CA.pop();(rA==null?void 0:rA.type)==="Text"&&(rA.raw=rA.raw.replace(regex_ends_with_whitespaces,""),rA.data=rA.data.replace(regex_ends_with_whitespaces,""));const lA=gA==="svg"&&(eA.type!=="RegularElement"||eA.name!=="text")&&!tA.some(uA=>uA.type==="RegularElement"&&uA.name==="text")||eA.type==="RegularElement"&&(eA.name==="select"||eA.name==="tr"||eA.name==="table"||eA.name==="tbody"||eA.name==="thead"||eA.name==="tfoot"||eA.name==="colgroup"||eA.name==="datalist");for(let uA=0;uA<CA.length;uA++){const cA=CA[uA-1],hA=CA[uA],dA=CA[uA+1];if(hA.type==="Text"){if((cA==null?void 0:cA.type)!=="ExpressionTag"){const pA=(cA==null?void 0:cA.type)==="Text"&&regex_ends_with_whitespaces.test(cA.data);hA.data=hA.data.replace(regex_starts_with_whitespaces,pA?"":" "),hA.raw=hA.raw.replace(regex_starts_with_whitespaces,pA?"":" ")}(dA==null?void 0:dA.type)!=="ExpressionTag"&&(hA.data=hA.data.replace(regex_ends_with_whitespaces," "),hA.raw=hA.raw.replace(regex_ends_with_whitespaces," ")),hA.data&&(hA.data!==" "||!lA)&&oA.push(hA)}else oA.push(hA)}}var QA=oA[0];return oA.length===1&&QA.type==="RegularElement"&&QA.name==="script"&&oA.push({type:"Comment",data:"",parent:QA.parent,start:-1,end:-1}),{hoisted:sA,trimmed:oA,is_standalone:oA.length===1&&(QA.type==="RenderTag"&&!QA.metadata.dynamic||QA.type==="Component"&&!iA.options.hmr&&!QA.metadata.dynamic&&!QA.attributes.some(EA=>EA.type==="Attribute"&&EA.name.startsWith("--"))),is_text_first:(eA.type==="Fragment"||eA.type==="SnippetBlock"||eA.type==="EachBlock"||eA.type==="SvelteComponent"||eA.type==="Component"||eA.type==="SvelteSelf")&&QA&&((QA==null?void 0:QA.type)==="Text"||(QA==null?void 0:QA.type)==="ExpressionTag")}}function infer_namespace(eA,AA,tA){if(AA.type==="RegularElement"&&AA.name==="foreignObject")return"html";if(AA.type==="RegularElement"||AA.type==="SvelteElement")return AA.metadata.svg?"svg":AA.metadata.mathml?"mathml":"html";if(AA.type==="Fragment"||AA.type==="Root"||AA.type==="Component"||AA.type==="SvelteComponent"||AA.type==="SvelteFragment"||AA.type==="SnippetBlock"||AA.type==="SlotElement"){const gA=check_nodes_for_namespace(tA,"keep");if(gA!=="keep"&&gA!=="maybe_html")return gA}return eA}function check_nodes_for_namespace(eA,AA){const tA=(gA,{stop:iA})=>{!gA.metadata.svg&&!gA.metadata.mathml?(AA="html",iA()):AA==="keep"&&(AA=gA.metadata.svg?"svg":"mathml")};for(const gA of eA)if(walk(gA,{},{_(iA,{next:IA}){(iA.type==="EachBlock"||iA.type==="IfBlock"||iA.type==="AwaitBlock"||iA.type==="Fragment"||iA.type==="KeyBlock"||iA.type==="RegularElement"||iA.type==="SvelteElement"||iA.type==="Text")&&IA()},SvelteElement:tA,RegularElement:tA,Text(iA){iA.data.trim()!==""&&(AA="maybe_html")}}),AA==="html")return AA;return AA}function determine_namespace_for_children(eA,AA){return eA.name==="foreignObject"?"html":eA.metadata.svg?"svg":eA.metadata.mathml?"mathml":"html"}function transform_inspect_rune(eA,AA){const{state:tA,visit:gA}=AA,iA=tA.options.generate==="client";if(!dev)return empty;if(eA.callee.type==="MemberExpression"){const BA=eA.callee.object.arguments.map(CA=>gA(CA)),sA=gA(eA.arguments[0]);return call("$.inspect",iA?thunk(array(BA)):array(BA),sA)}else{const IA=eA.arguments.map(BA=>gA(BA));return call("$.inspect",iA?thunk(array(IA)):array(IA))}}function CallExpression$1(eA,AA){const tA=get_rune(eA,AA.state.scope);if(tA==="$host")return id$1("undefined");if(tA==="$effect.tracking")return literal(!1);if(tA==="$effect.root")return arrow([],block([]));if(tA==="$state.snapshot")return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);if(tA==="$inspect"||tA==="$inspect().with")return transform_inspect_rune(eA,AA);AA.next()}function ClassBody$1(eA,AA){var sA,CA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const oA of eA.body)if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier")){const{type:QA,name:EA}=oA.key,rA=QA==="PrivateIdentifier";if(rA&&iA.push(EA),((sA=oA.value)==null?void 0:sA.type)==="CallExpression"){const lA=get_rune(oA.value,AA.state.scope);if(lA==="$derived"||lA==="$derived.by"){const uA={kind:lA==="$derived.by"?"derived_by":"derived",id:rA?oA.key:null};rA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[oA,QA]of tA){let EA=oA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),QA.id=private_id(EA)}const IA=[],BA={...AA.state,private_derived:gA};for(const oA of eA.body){if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier")){const QA=oA.key.name,EA=oA.key.type==="PrivateIdentifier",rA=(EA?gA:tA).get(QA);if(((CA=oA.value)==null?void 0:CA.type)==="CallExpression"&&rA!==void 0){const lA=AA.visit(oA.value.arguments[0],BA),uA=rA.kind==="derived_by"?call("$.once",lA):call("$.once",thunk(lA));if(EA)IA.push(prop_def(rA.id,uA));else{const cA=member(this_instance,rA.id);IA.push(prop_def(rA.id,uA)),IA.push(method("get",oA.key,[],[return_builder(call(cA))])),dev&&(rA.kind==="derived"||rA.kind==="derived_by")&&IA.push(method("set",oA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${QA}')`)]))}continue}}IA.push(AA.visit(oA,BA))}return{...eA,body:IA}}function build_inline_component(eA,AA,tA){const gA=[],iA=[],IA={default:[]},BA={...tA.state,scope:eA.metadata.scopes.default},sA={},CA=eA.attributes.some(hA=>hA.type==="Attribute"&&hA.name==="slot");let oA=!1;function QA(hA){const dA=gA.at(-1),pA=Array.isArray(dA),wA=pA?dA:[];wA.push(hA),pA||gA.push(wA)}for(const hA of eA.attributes)if(hA.type==="LetDirective")CA||IA.default.push(hA);else if(hA.type==="SpreadAttribute")gA.push(tA.visit(hA));else if(hA.type==="Attribute"){if(hA.name.startsWith("--")){const pA=build_attribute_value$1(hA.value,tA,!1,!0);iA.push(init(hA.name,pA));continue}hA.name==="children"&&(oA=!0);const dA=build_attribute_value$1(hA.value,tA,!1,!0);QA(prop("init",key$2(hA.name),dA))}else hA.type==="BindDirective"&&hA.name!=="this"&&(QA(get(hA.name,[return_builder(tA.visit(hA.expression))])),QA(set(hA.name,[stmt(tA.visit(assignment("=",hA.expression,id$1("$$value")))),stmt(assignment("=",id$1("$$settled"),false_instance))])));const EA=[],rA=[];for(const hA of eA.fragment.nodes){if(hA.type==="SnippetBlock"){tA.visit(hA,{...tA.state,init:EA}),QA(prop("init",hA.expression,hA.expression)),rA.push(init(hA.expression.name==="children"?"default":hA.expression.name,true_instance));continue}let dA="default";if(is_element_node(hA)){const pA=hA.attributes.find(wA=>wA.type==="Attribute"&&wA.name==="slot");pA!==void 0?(dA=pA.value[0].data,IA[dA]=hA.attributes.filter(wA=>wA.type==="LetDirective")):hA.type==="SvelteFragment"&&IA.default.push(...hA.attributes.filter(wA=>wA.type==="LetDirective"))}sA[dA]=sA[dA]||[],sA[dA].push(hA)}for(const hA of Object.keys(sA)){const dA=tA.visit({...eA.fragment,nodes:sA[hA]},hA==="default"?BA:{...tA.state,scope:eA.metadata.scopes[hA]});if(dA.body.length===0)continue;const pA=[id$1("$$payload")];if(IA[hA].length>0){const mA=object_pattern(IA[hA].map(MA=>MA.expression===null?init(MA.name,id$1(MA.name)):MA.expression.type==="ObjectExpression"?init(MA.name,object_pattern(MA.expression.properties)):MA.expression.type==="ArrayExpression"?init(MA.name,array_pattern(MA.expression.elements)):init(MA.name,MA.expression)));pA.push(mA)}const wA=arrow(pA,block(dA.body));hA==="default"&&!oA?IA.default.length===0&&sA.default.every(mA=>mA.type!=="SvelteFragment"||!mA.attributes.some(MA=>MA.type==="LetDirective"))?(QA(prop("init",id$1("children"),wA)),rA.push(init(hA,true_instance))):(rA.push(init(hA,wA)),QA(init("children",id$1("$.invalid_default_snippet")))):rA.push(init(hA,wA))}rA.length>0&&QA(prop("init",id$1("$$slots"),object$2(rA)));const lA=gA.length===0||gA.length===1&&Array.isArray(gA[0])?object$2(gA[0]||[]):call("$.spread_props",array(gA.map(hA=>Array.isArray(hA)?object$2(hA):hA)));let uA=stmt((eA.type==="SvelteComponent"?maybe_call:call)(AA,id$1("$$payload"),lA));EA.length>0&&(uA=block([...EA,uA]));const cA=eA.type==="SvelteComponent"||eA.type==="Component"&&eA.metadata.dynamic;iA.length>0?tA.state.template.push(stmt(call("$.css_props",id$1("$$payload"),literal(tA.state.namespace!=="svg"),object$2(iA),thunk(block([uA])),cA&&true_instance))):(cA&&tA.state.template.push(empty_comment),tA.state.template.push(uA),tA.state.skip_hydration_boundaries||tA.state.template.push(empty_comment))}function Component$1(eA,AA){build_inline_component(eA,id$1(eA.name),AA)}function ConstTag$1(eA,AA){const tA=eA.declaration.declarations[0],gA=AA.visit(tA.id),iA=AA.visit(tA.init);AA.state.init.push(const_builder(gA,iA))}function DebugTag$1(eA,AA){AA.state.template.push(stmt(call("console.log",object$2(eA.identifiers.map(tA=>prop("init",tA,AA.visit(tA)))))),debugger_builder)}function EachBlock$1(eA,AA){const tA=AA.state,gA=eA.metadata,iA=AA.visit(eA.expression),IA=gA.contains_group_binding||!eA.index?gA.index:id$1(eA.index),BA=tA.scope.root.unique("each_array");tA.init.push(const_builder(BA,call("$.ensure_array_like",iA)));const sA=[let_builder(eA.context,member(BA,IA,!0))];IA.name!==eA.index&&eA.index!=null&&sA.push(let_builder(eA.index,IA)),sA.push(...AA.visit(eA.body).body);const CA=for_builder(declaration("let",[declarator(IA,literal(0)),declarator("$$length",member(BA,"length"))]),binary("<",IA,id$1("$$length")),update("++",IA,!1),block(sA));if(eA.fallback){const oA=stmt(assignment("+=",id$1("$$payload.out"),block_open)),QA=AA.visit(eA.fallback);QA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),tA.template.push(if_builder(binary("!==",member(BA,"length"),literal(0)),block([oA,CA]),QA),block_close)}else tA.template.push(block_open,CA,block_close)}function ExpressionStatement$1(eA,AA){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"||tA==="$effect.root")return empty;AA.next()}function Fragment$1(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments),CA={...AA.state,init:[],template:[],namespace:gA,skip_hydration_boundaries:BA};for(const oA of iA)AA.visit(oA,CA);return sA&&CA.template.push(empty_comment),process_children$1(IA,{...AA,state:CA}),block([...CA.init,...build_template(CA.template)])}function HtmlTag$1(eA,AA){const tA=AA.visit(eA.expression);AA.state.template.push(call("$.html",tA))}function Identifier$1(eA,AA){if(is_reference(eA,AA.path.at(-1)))return eA.name==="$$props"?id$1("$$sanitized_props"):build_getter(eA,AA.state)}function IfBlock$1(eA,AA){const tA=AA.visit(eA.test),gA=AA.visit(eA.consequent),iA=eA.alternate?AA.visit(eA.alternate):block([]);gA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),block_open))),iA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),AA.state.template.push(if_builder(tA,gA,iA),block_close)}function KeyBlock$1(eA,AA){AA.state.template.push(empty_comment,AA.visit(eA.fragment),empty_comment)}function LabeledStatement$1(eA,AA){if(!(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"))return AA.state.legacy_reactive_statements.set(eA,labeled("$",AA.visit(eA.body))),empty}function MemberExpression$1(eA,AA){if(AA.state.analysis.runes&&eA.object.type==="ThisExpression"&&eA.property.type==="PrivateIdentifier"&&AA.state.private_derived.get(eA.property.name))return call(eA);AA.next()}function PropertyDefinition(eA,AA){if(AA.state.analysis.runes&&eA.value!=null&&eA.value.type==="CallExpression"){const tA=get_rune(eA.value,AA.state.scope);if(tA==="$state"||tA==="$state.raw"||tA==="$derived")return{...eA,value:eA.value.arguments.length===0?null:AA.visit(eA.value.arguments[0])};if(tA==="$derived.by")return{...eA,value:eA.value.arguments.length===0?null:call(AA.visit(eA.value.arguments[0]))}}AA.next()}const WHITESPACE_INSENSITIVE_ATTRIBUTES=["class","style"];function build_element_attributes(eA,AA){const tA=[],gA=[],iA=[];let IA=null,BA=!1,sA=-1,CA=-1,oA=new Set;for(const QA of eA.attributes)if(QA.type==="Attribute")QA.name==="value"?eA.name==="textarea"?(QA.value!==!0&&Array.isArray(QA.value)&&QA.value[0].type==="Text"&&regex_starts_with_newline.test(QA.value[0].data)&&(QA.value[0].data=`
59
- `+QA.value[0].data),IA=call("$.escape",build_attribute_value$1(QA.value,AA))):eA.name!=="select"&&tA.push(QA):is_event_attribute(QA)?(QA.name==="onload"||QA.name==="onerror")&&is_load_error_element(eA.name)&&oA.add(QA.name):(QA.name==="class"?sA=tA.length:QA.name==="style"&&(CA=tA.length),tA.push(QA));else if(QA.type==="BindDirective"){if(QA.name==="value"&&eA.name==="select"||QA.name==="value"&&tA.some(rA=>rA.type==="Attribute"&&rA.name==="type"&&is_text_attribute(rA)&&rA.value[0].data==="file")||QA.name==="this")continue;const EA=binding_properties[QA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(QA.name))IA=AA.visit(QA.expression);else if(QA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(QA.expression));else if(QA.name==="group"){const rA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!rA)continue;const lA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:lA?call(member(QA.expression,"includes"),build_attribute_value$1(rA.value,AA)):binary("===",QA.expression,build_attribute_value$1(rA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(QA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:QA.expression,metadata:{expression:create_expression_metadata()}}]))}else QA.type==="SpreadAttribute"?(tA.push(QA),BA=!0,is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror"))):QA.type==="UseDirective"?is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror")):QA.type==="ClassDirective"?gA.push(QA):QA.type==="StyleDirective"?iA.push(QA):QA.type==="LetDirective"||AA.visit(QA);if(gA.length>0&&!BA){const QA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(QA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[CA]??null,AA),CA>-1&&tA.splice(CA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const QA of tA){if(QA.value===!0||is_text_attribute(QA)){const lA=get_attribute_name$1(eA,QA),uA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(lA)).value;(lA!=="class"||uA)&&AA.state.template.push(literal(` ${QA.name}${is_boolean_attribute(lA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),rA,is_boolean_attribute(EA)&&true_instance))}if(oA.size!==0)for(const QA of oA)AA.state.template.push(literal(` ${QA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const QA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&QA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(QA)}if(tA.length>0){const QA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(QA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const oA=[object$2(AA.map(QA=>{if(QA.type==="Attribute"){const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),rA)}return spread(iA.visit(QA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...oA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const CA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:CA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...CA.init,...build_template(CA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(AA.visit(CA));else if(CA.type==="Attribute"){const oA=build_attribute_value$1(CA.value,AA,!1,!0);CA.name==="name"?iA=oA:CA.name!=="slot"&&tA.push(init(CA.name,oA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let oA=!1,QA=walk(iA.id,null,{RestElement(EA,rA){rA.path.at(-1)===iA.id&&(oA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const rA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,rA)}}});QA.type==="ObjectPattern"&&oA?QA.properties.splice(QA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):QA.type==="Identifier"&&(QA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(QA.name))])),tA.push(declarator(AA.visit(QA),id$1("$$props")));continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(CA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,CA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),CA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,CA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),rA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const lA of rA){const uA=(gA=lA.expression)==null?void 0:gA.call(lA,id$1(EA)),cA=lA.node.name,hA=AA.state.scope.get(cA),dA=member(id$1("$$props"),literal(hA.prop_alias??cA),!0);tA.push(declarator(lA.node,build_fallback(dA,uA)))}continue}const CA=AA.state.scope.get(iA.id.name),oA=member(id$1("$$props"),literal(CA.prop_alias??iA.id.name),!0);let QA=oA;if(iA.init){const EA=AA.visit(iA.init);QA=build_fallback(oA,EA)}tA.push(declarator(iA.id,QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(lA){return tA.hoisted.push(lA),empty},ExportNamedDeclaration(lA,uA){return lA.declaration?uA.visit(lA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[lA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([cA])=>cA===lA);if(uA===void 0)throw new Error("Could not find reactive statement");if(lA.body.type==="ExpressionStatement"&&lA.body.expression.type==="AssignmentExpression")for(const cA of extract_identifiers(lA.body.expression.left)){const hA=eA.instance.scope.get(cA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(cA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const lA=IA.body.filter(cA=>cA.type==="FunctionDeclaration"&&cA.___snippet),uA=IA.body.filter(cA=>cA.type!=="FunctionDeclaration"||!cA.___snippet);IA.body=[...lA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(lA=>lA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[lA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!lA.startsWith("$$")&&sA.push(init(uA.prop_alias??lA,id$1(lA)));for(const{name:lA,alias:uA}of eA.exports)sA.push(init(uA??lA,id$1(lA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const CA=block([...iA.body,...IA.body]);let oA=dev||eA.needs_context;if(oA&&(CA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),CA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const lA=eA.exports.map(({name:uA,alias:cA})=>cA??uA);for(const[uA,cA]of eA.instance.scope.declarations)cA.kind==="bindable_prop"&&lA.push(cA.prop_alias??uA);CA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(lA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&CA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&CA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const QA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const lA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);QA.push(const_builder("$$css",object$2([init("hash",lA),init("code",uA)]))),CA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=oA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const rA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],CA);return AA.compatibility.componentApi===4?(QA.unshift(imports([["render","$$_render"]],"svelte/server")),QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),export_default(id$1(eA.name))):QA.push(export_default(rA)),dev&&QA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:QA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let CA=sA>0,oA=BA>0,QA=sA>1;for(let rA=0;rA<eA.length;rA++){const lA=eA[rA];if(lA.type==="Text")iA.value.cooked+=lA.data;else if(lA.type==="ExpressionTag"&&lA.expression.type==="Literal")lA.expression.value!=null&&(iA.value.cooked+=lA.expression.value+"");else{if(QA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(lA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(lA.expression,tA),has_state:oA,has_call:CA};gA.push(logical("??",AA(lA.expression,tA),literal("")))}iA=quasi("",rA+1===eA.length),IA.push(iA)}}for(const rA of IA)rA.value.raw=sanitize_template_string(rA.value.cooked);return{value:template(IA,gA),has_state:oA,has_call:CA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(rA,{path:lA}){if(BA.includes(rA.name))return;BA.push(rA.name);const uA=lA.at(-1);if(!is_reference(rA,uA))return;const cA=tA.scope.get(rA.name);if(cA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===cA.scope){iA.push(rA),IA.push(gA(rA)),sA[rA.name]&&(sA[rA.name]={...sA[rA.name],read:pA=>pA});break}}}});const CA={...tA,transform:sA},oA=gA(eA,CA),QA=gA(assignment("=",eA,id$1("$$value")),CA);let EA=oA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],QA),arrow([...iA],oA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let CA=!1,oA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(oA,gA.state.scope)&&(CA=!0,oA=sA.kind==="raw_state"?oA:build_proxy_reassignment(oA,member(this_instance,sA.id))),gA.state.in_constructor){if(CA)return assignment(eA,gA.visit(AA),oA)}else return call("$.set",AA,oA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const CA=gA.path.map(QA=>QA.type);return!(CA.at(-1)==="BindDirective"&&CA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const oA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(oA,IA)),IA=oA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,CA=[IA,...sA];BA=array(CA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...CA,...oA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...CA,...oA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let CA=!1;const oA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:rA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(rA.type==="ArrowFunctionExpression"||rA.type==="FunctionExpression")){const lA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(lA,rA)),oA.push(init(EA.name,id$1(lA)))}else oA.push(init(EA.name,rA));CA||(CA=EA.metadata.expression.has_state)}else{CA=!0;let rA=AA.visit(EA);if(EA.metadata.expression.has_call){const lA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(lA,create_derived(sA,thunk(rA)))),rA=call("$.get",lA)}oA.push(spread(rA))}const QA=call("$.set_attributes",gA,CA?iA:literal(null),object$2(oA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(CA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,QA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(QA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const QA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.set_style",AA,literal(IA.name),CA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=tA.visit(IA.expression);if(sA){const QA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.toggle_class",AA,literal(IA.name),CA));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var CA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:oA})=>oA==="IfBlock"||oA==="EachBlock"||oA==="AwaitBlock"||oA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const oA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let QA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(CA=iA.attributes.find(rA=>rA.type==="Attribute"&&rA.name==="value"&&!is_text_attribute(rA)&&rA.value!==!0))==null?void 0:CA.value;EA!==void 0&&(QA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(oA),AA.state.node,QA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}eA.name==="this"?AA.state.init.push(stmt(sA)):iA.type==="RegularElement"&&iA.attributes.find(QA=>QA.type==="UseDirective")?AA.state.init.push(stmt(call("$.effect",thunk(sA)))):AA.state.after_update.push(stmt(sA))}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,CA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const oA of eA.body)if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=oA.key.type,EA=get_name(oA.key);if(!EA)continue;const rA=QA==="PrivateIdentifier";if(rA&&iA.push(EA),((sA=oA.value)==null?void 0:sA.type)==="CallExpression"){const lA=get_rune(oA.value,AA.state.scope);if(lA==="$state"||lA==="$state.raw"||lA==="$derived"||lA==="$derived.by"){const uA={kind:lA==="$state"?"state":lA==="$state.raw"?"raw_state":lA==="$derived.by"?"derived_by":"derived",id:rA?oA.key:null};rA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[oA,QA]of tA){let EA=oA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),QA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const oA of eA.body){if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=get_name(oA.key);if(!QA)continue;const EA=oA.key.type==="PrivateIdentifier",rA=(EA?gA:tA).get(QA);if(((CA=oA.value)==null?void 0:CA.type)==="CallExpression"&&rA!==void 0){let lA=null;if(oA.value.arguments.length>0){const uA=AA.visit(oA.value.arguments[0],BA);lA=rA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):rA.kind==="raw_state"?call("$.state",uA):rA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else lA=call("$.state");if(EA)IA.push(prop_def(rA.id,lA));else{const uA=member(this_instance,rA.id);if(IA.push(prop_def(rA.id,lA)),IA.push(method("get",oA.key,[],[return_builder(call("$.get",uA))])),rA.kind==="state"){const cA=id$1("value"),hA=member(this_instance,rA.id);IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,build_proxy_reassignment(cA,hA)))]))}if(rA.kind==="raw_state"){const cA=id$1("value");IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,cA))]))}dev&&(rA.kind==="derived"||rA.kind==="derived_by")&&IA.push(method("set",oA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${QA}')`)]))}continue}}IA.push(AA.visit(oA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(oA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(oA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var mA,MA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},CA={},oA=[];let QA=null;const EA=[];let rA=!!determine_slot(eA),lA=!1;function uA(fA){const LA=iA.at(-1),_A=Array.isArray(LA),bA=_A?LA:[];bA.push(fA),_A||iA.push(bA)}if(rA)for(const fA of eA.attributes)fA.type==="LetDirective"&&IA.push(tA.visit(fA));for(const fA of eA.attributes)if(fA.type==="LetDirective")rA||IA.push(tA.visit(fA,BA.default));else if(fA.type==="OnDirective"){fA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(fA.expression,fA.metadata.expression,tA);fA.modifiers.includes("once")&&(LA=call("$.once",LA)),(CA[mA=fA.name]||(CA[mA]=[])).push(LA)}else if(fA.type==="SpreadAttribute"){const LA=tA.visit(fA);if(fA.metadata.expression.has_state){let _A=LA;if(fA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(_A)))),_A=call("$.get",bA)}iA.push(thunk(_A))}else iA.push(LA)}else if(fA.type==="Attribute"){if(fA.name.startsWith("--")){oA.push(init(fA.name,build_attribute_value(fA.value,tA).value));continue}fA.name==="slot"&&(rA=!0),fA.name==="children"&&(lA=!0);const{value:LA}=build_attribute_value(fA.value,tA);if(fA.metadata.expression.has_state){let _A=LA;if(get_attribute_chunks(fA.value).some(JA=>JA.type==="ExpressionTag"&&JA.expression.type!=="Identifier"&&JA.expression.type!=="MemberExpression")){const JA=id$1(tA.state.scope.generate(fA.name));tA.state.init.push(var_builder(JA,create_derived(tA.state,thunk(LA)))),_A=call("$.get",JA)}uA(get(fA.name,[return_builder(_A)]))}else uA(init(fA.name,LA))}else if(fA.type==="BindDirective"){const LA=tA.visit(fA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,fA,LA),fA.name==="this")QA=fA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const _A=fA.expression.type==="Identifier"&&((MA=tA.state.scope.get(fA.expression.name))==null?void 0:MA.kind)==="store_sub";uA(_A?get(fA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(fA.name,[return_builder(LA)]));const bA=assignment("=",fA.expression,id$1("$$value"));uA(set(fA.name,[stmt(tA.visit(bA))]))}}if(rA&&tA.state.init.push(...IA),Object.keys(CA).length>0){const fA=object$2(Object.keys(CA).map(LA=>init(LA,CA[LA].length>1?array(CA[LA]):CA[LA][0])));uA(init("$$events",fA))}const cA=[],hA=[];for(const fA of eA.fragment.nodes){if(fA.type==="SnippetBlock"){tA.visit(fA,{...tA.state,init:cA}),uA(prop("init",fA.expression,fA.expression)),hA.push(init(fA.expression.name==="children"?"default":fA.expression.name,true_instance));continue}let LA=determine_slot(fA)??"default";(sA[LA]||(sA[LA]=[])).push(fA)}for(const fA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[fA]},fA==="default"?rA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[fA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const _A=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...fA==="default"&&!rA?IA:[],...LA.body]));fA==="default"&&!lA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(JA=>JA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),_A):_A)),hA.push(init(fA,true_instance))):(hA.push(init(fA,_A)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(fA,_A))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(fA=>fA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(fA=>Array.isArray(fA)?object$2(fA):fA));let pA=fA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),fA,dA);if(QA!==null){const fA=pA;pA=LA=>build_bind_this(QA,fA(LA),tA)}const wA=[...cA];if(eA.type==="SvelteComponent"){const fA=pA;pA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(fA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(oA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(oA)))),stmt(pA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(pA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const CA of gA)delete IA[CA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(CA=>prop("init",CA,CA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const CA of gA)AA.state.transform[CA.name]={read:oA=>member(call("$.get",iA),oA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var fA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((fA=eA.key)==null?void 0:fA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const _A of eA.metadata.expression.dependencies)if(_A.kind==="store_sub"){BA=!0;break}for(const _A of eA.metadata.expression.dependencies)if(!(_A.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(_A=>_A.type!=="RegularElement"&&_A.type!=="SvelteElement"?!1:_A.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const _A=object$1(eA.expression);if(_A){const bA=AA.state.scope.get(_A.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=_A.name)}}const CA=collect_parent_each_blocks(AA).flatMap(_A=>{const bA=AA.visit(_A.expression),JA=build_transitive_dependencies(_A.metadata.expression.dependencies,AA);return[bA,...JA]});if(tA.array_name)CA.push(call(tA.array_name));else{CA.push(gA);const _A=build_transitive_dependencies(tA.expression.dependencies,AA);CA.push(..._A)}const oA={...AA.state,transform:{...AA.state.transform}},QA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),rA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let lA=tA.contains_group_binding,uA=!1;eA.index&&(oA.transform[eA.index]={read:_A=>(lA=!0,iA&EACH_INDEX_REACTIVE?get_value(_A):_A)},QA.transform[eA.index]={read:_A=>(uA=!0,_A)});const cA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(CA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,pA=[];if(AA.state.analysis.runes||pA.push(hA),dA&&pA.push(dA),eA.context.type==="Identifier"){const _A=AA.state.scope.get(eA.context.name);oA.transform[eA.context.name]={read:bA=>_A.reassigned?member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,JA)=>{lA=!0;const RA=member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0);return sequence$1([assignment("=",RA,JA),...pA])},mutate:(bA,JA)=>sequence$1([JA,...pA])},delete QA.transform[eA.context.name]}else{const _A=iA&EACH_ITEM_REACTIVE?call("$.get",rA):rA;for(const bA of extract_paths(eA.context)){const JA=bA.node.name,RA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,_A),oA));cA.push(let_builder(bA.node,RA?call("$.derived_safe_equal",NA):NA));const FA=RA?get_value:call;oA.transform[JA]={read:FA,assign:(vA,xA)=>{const kA=bA.update_expression(_A);return sequence$1([assignment("=",kA,xA),...pA])},mutate:(vA,xA)=>sequence$1([xA,...pA])},dev&&cA.push(stmt(FA(id$1(JA)))),delete QA.transform[JA]}}const wA=AA.visit(eA.body,oA);let mA=id$1("$.index");if(eA.metadata.keyed){const _A=AA.visit(eA.key,QA);mA=arrow(uA?[eA.context,EA]:[eA.context],_A)}eA.index&&tA.contains_group_binding&&cA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),mA)));const MA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),mA,arrow(lA?[id$1("$$anchor"),rA,EA]:[id$1("$$anchor"),rA],block(cA.concat(wA.body)))];eA.fallback&&MA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...MA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,CA=[];function oA(rA){return sA===0?BA(rA):call("$.sibling",BA(!1),(rA||sA!==1)&&literal(sA),rA&&true_instance)}function QA(rA,lA){const uA=oA(rA);let cA=uA;return cA.type!=="Identifier"&&(cA=id$1(iA.scope.generate(lA)),iA.init.push(var_builder(cA,uA))),BA=()=>cA,sA=1,cA}function EA(rA){if(rA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(rA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:lA,has_call:uA,value:cA}=build_template_literal(rA,gA,iA),hA=rA.length===1,dA=QA(hA,"text"),pA=stmt(call("$.set_text",dA,cA));uA&&!IA?iA.init.push(build_update(pA)):lA&&!IA?iA.update.push(pA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),cA)))}for(const rA of eA)if(rA.type==="Text"||rA.type==="ExpressionTag")CA.push(rA);else{CA.length>0&&(EA(CA),CA=[]);let lA=iA;if(is_static_element(rA))sA+=1;else if(rA.type==="EachBlock"&&eA.length===1&&tA)rA.metadata.is_controlled=!0;else{const uA=QA(!1,rA.type==="RegularElement"?rA.name:"node");lA={...iA,node:uA}}gA(rA,lA)}CA.length>0&&EA(CA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const CA=IA.length===1&&IA[0].type==="RegularElement",oA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),QA=AA.state.scope.root.unique("root"),EA=[];let rA;const lA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const cA of iA)AA.visit(cA,lA);sA&&EA.push(stmt(call("$.next")));const uA=(cA,hA)=>{let dA=call(get_template_function(gA,lA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(lA.locations))),AA.state.hoisted.push(var_builder(cA,dA))};if(CA){const cA=IA[0],hA=id$1(AA.state.scope.generate(cA.name));AA.visit(cA,{...lA,node:hA});const dA=[join_template(lA.template)];lA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(QA,dA),EA.push(var_builder(hA,call(QA)),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(oA)AA.visit(IA[0],lA),EA.push(...lA.before_init,...lA.init);else if(IA.length===1&&IA[0].type==="Text"){const cA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(cA,call("$.text",literal(IA[0].data))),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),cA))}else if(IA.length>0){const cA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:lA}),EA.push(var_builder(dA,call("$.text")),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:lA});else{process_children(IA,wA=>call("$.first_child",cA,wA&&true_instance),!1,{...AA,state:lA});let pA=TEMPLATE_FRAGMENT;lA.metadata.context.template_needs_import_node&&(pA|=TEMPLATE_USE_IMPORT_NODE),lA.template.length===1&&lA.template[0]==="<!>"?EA.push(var_builder(cA,call("$.comment"))):(uA(QA,[join_template(lA.template),literal(pA)]),EA.push(var_builder(cA,call(QA)))),rA=stmt(call("$.append",id$1("$$anchor"),cA))}EA.push(...lA.before_init,...lA.init)}}else EA.push(...lA.before_init,...lA.init);return lA.update.length>0&&EA.push(build_render_statement(lA.update)),EA.push(...lA.after_update),rA!==void 0&&EA.push(rA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let CA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(CA=call("$.deep_read_state",CA)),IA.push(CA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const CA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:oA=>call(CA),mutate:(oA,QA)=>call(CA,QA)},AA.state.legacy_reactive_imports.push(var_builder(CA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const CA=call("$.untrack",BA);function oA(QA){return QA.type==="MemberExpression"?{...QA,object:oA(QA.object),property:QA.property}:CA}return call("$.store_mutate",IA(),assignment(sA.operator,oA(sA.left),sA.right),CA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const fA=locator(eA.start);fA&&(tA[0]=fA.line,tA[1]=fA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);(eA.name==="video"||gA)&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],CA=[],oA=new Map,QA=new Map;let EA=eA.metadata.has_spread,rA=!1;for(const fA of eA.attributes)switch(fA.type){case"AnimateDirective":sA.push(fA);break;case"Attribute":if(fA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(fA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(fA),oA.set(fA.name,fA);break;case"BindDirective":QA.set(fA.name,fA),sA.push(fA);break;case"ClassDirective":IA.push(fA);break;case"LetDirective":CA.push(AA.visit(fA));break;case"OnDirective":sA.push(fA);break;case"SpreadAttribute":iA.push(fA);break;case"StyleDirective":BA.push(fA);break;case"TransitionDirective":sA.push(fA);break;case"UseDirective":rA=!0,sA.push(fA);break}const lA={...AA.state,init:[],after_update:[]};for(const fA of sA)if(fA.type==="OnDirective"){const LA=AA.visit(fA);rA?lA.init.push(stmt(call("$.effect",thunk(LA)))):lA.after_update.push(stmt(LA))}else AA.visit(fA,lA);if(eA.name==="input"&&(EA||QA.has("value")||QA.has("checked")||QA.has("group")||iA.some(fA=>fA.type==="Attribute"&&(fA.name==="value"||fA.name==="checked")&&!is_text_attribute(fA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const fA=oA.get("value")??oA.get("checked"),LA=fA&&!is_text_attribute(fA);(EA||QA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&QA.has("value")&&setup_select_synchronization(QA.get("value"),AA),AA.state.init.push(...CA);const uA=AA.state.node;let cA=EA;if(EA){const fA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,fA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!QA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(fA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),fA),block([stmt(call("$.select_option",uA,member(fA,"value")))]))))}else{const fA=eA.name==="option"||eA.name==="select"||QA.has("group")||QA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(fA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),JA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||JA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&JA===!0?"":`="${JA===!0?"":escape_html(JA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(cA=!0)}}build_class_directives(IA,uA,AA,cA),build_style_directives(BA,uA,AA,cA),eA.name==="img"&&(EA||oA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||rA||oA.has("onload")||oA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(QA.has("innerHTML")||QA.has("innerText")||QA.has("textContent")){const fA=oA.get("contenteditable");fA&&(fA.value===!0||is_text_attribute(fA)&&fA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:pA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),mA={...dA,init:[],update:[],after_update:[]};for(const fA of pA)AA.visit(fA,mA);const MA=wA.every(fA=>fA.type==="Text"||fA.type==="ExpressionTag")&&wA.some(fA=>fA.type==="ExpressionTag")&&get_states_and_calls(wA);if(MA&&MA.states===0)mA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,mA).value)));else{let fA=AA.state.node,LA=wA.some(_A=>_A.type!=="Text");eA.name==="template"&&(LA=!0,mA.init.push(stmt(call("$.hydrate_template",fA))),fA=member(fA,"content")),process_children(wA,_A=>call("$.child",fA,_A&&true_instance),!0,{...AA,state:mA}),LA&&mA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(fA=>fA.type==="SnippetBlock")?AA.state.init.push(block([...mA.init,...lA.init,mA.update.length>0?build_render_statement(mA.update):empty,...mA.after_update,...lA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...mA.init,...lA.init),AA.state.update.push(...mA.update),AA.state.after_update.push(...mA.after_update,...lA.after_update)):(AA.state.init.push(...lA.init),AA.state.after_update.push(...lA.after_update)),oA.has("dir")){const fA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",fA,fA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:CA,value:oA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,oA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),oA))),!1;let QA;if(IA==="class"){if(tA.metadata.expression.has_state&&CA){const rA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(rA,create_derived(iA,thunk(oA)))),oA=call("$.get",rA),CA=!1}QA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,oA))}else if(IA==="value")QA=stmt(call("$.set_value",AA,oA));else if(IA==="checked")QA=stmt(call("$.set_checked",AA,oA));else if(is_dom_property(IA))QA=stmt(assignment("=",member(AA,IA),oA));else{if(IA==="style"&&tA.metadata.expression.has_state&&CA){const lA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(lA,create_derived(iA,thunk(oA)))),oA=call("$.get",lA),CA=!1}const rA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";QA=stmt(call(rA,AA,literal(IA),oA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(CA?iA.init.push(build_update(QA)):iA.update.push(QA),!0):(EA?gA.state.template.push(` ${IA}="`,oA,'"'):iA.init.push(QA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),CA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const oA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,oA,eA==="option"?object$2([]):void 0,IA,CA),!0}else return iA.init.push(CA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],CA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const oA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(oA,call("$.derived_safe_equal",thunk(CA)))),iA.push(thunk(call("$.get",oA)))}else iA.push(thunk(CA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const oA of eA.attributes)if(oA.type==="SpreadAttribute")gA.push(thunk(AA.visit(oA)));else if(oA.type==="Attribute"){const{value:QA}=build_attribute_value(oA.value,AA);oA.name==="name"?IA=QA:oA.name!=="slot"&&(oA.metadata.expression.has_state?tA.push(get(oA.name,[return_builder(QA)])):tA.push(init(oA.name,QA)))}else oA.type==="LetDirective"&&iA.push(AA.visit(oA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),CA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(CA))}function SnippetBlock(eA,AA){var oA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let QA=0;QA<eA.parameters.length;QA++){const EA=eA.parameters[QA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let rA=`$$arg${QA}`;tA.push(id$1(rA));const lA=extract_paths(EA);for(const uA of lA){const cA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((oA=uA.expression)==null?void 0:oA.call(uA,maybe_call(id$1(rA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[cA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[cA].read(id$1(cA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const CA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(CA):AA.state.init.push(CA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),CA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const lA of eA.attributes)if(lA.type==="Attribute")lA.name==="xmlns"&&!is_text_attribute(lA)&&(gA=lA.value),tA.push(lA);else if(lA.type==="SpreadAttribute")tA.push(lA);else if(lA.type==="ClassDirective")iA.push(lA);else if(lA.type==="StyleDirective")IA.push(lA);else if(lA.type==="LetDirective")BA.push(AA.visit(lA));else if(lA.type==="OnDirective"){const uA=AA.visit(lA,CA.state);CA.state.after_update.push(stmt(uA))}else AA.visit(lA,CA.state);AA.state.init.push(...BA);let oA=!1;if(tA.length===0)AA.state.analysis.css.hash&&CA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const lA=id$1(AA.state.scope.generate("attributes"));oA=build_set_attributes(tA,CA,eA,sA,lA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,CA,oA),build_style_directives(IA,sA,CA,oA);const QA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",QA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",QA))));const EA=CA.state.init;CA.state.update.length>0&&EA.push(build_render_statement(CA.state.update)),EA.push(...CA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const rA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,QA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),rA&&array([literal(rA.line),literal(rA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var CA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let oA="$.update";eA.prefix&&(oA+="_pre");const QA=[tA];return eA.operator==="--"&&QA.push(literal(-1)),call(oA,...QA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const oA=AA.state.transform,QA=(CA=oA[gA.name])==null?void 0:CA.update;if(QA&&Object.hasOwn(oA,gA.name))return QA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.init.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const oA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&oA.push("$$host"),iA.id.type==="Identifier"){const QA=[id$1("$$props"),array(oA.map(EA=>literal(EA)))];dev&&QA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...QA)))}else{equal(iA.id.type,"ObjectPattern");for(const QA of iA.id.properties)if(QA.type==="Property"){const EA=QA.key,rA=EA.type==="Identifier"?EA.name:EA.value;oA.push(rA);let lA=QA.value.type==="AssignmentPattern"?QA.value.left:QA.value;equal(lA.type,"Identifier");const uA=AA.state.scope.get(lA.name);let cA=uA.initial&&AA.visit(uA.initial);cA&&uA.kind==="bindable_prop"&&should_proxy(cA,AA.state.scope)&&(cA=call("$.proxy",cA)),is_prop_source(uA,AA.state)&&tA.push(declarator(lA,get_prop_source(uA,AA.state,rA,cA)))}else{const EA=[id$1("$$props"),array(oA.map(rA=>literal(rA)))];dev&&EA.push(literal(QA.argument.name)),tA.push(declarator(QA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const oA=(QA,EA)=>{const rA=AA.state.scope.get(QA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(rA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,oA(iA.id,CA)));else{const QA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(QA),CA),...EA.map(rA=>{var cA;const lA=(cA=rA.expression)==null?void 0:cA.call(rA,id$1(QA)),uA=AA.state.scope.get(rA.node.name);return declarator(rA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?oA(uA.node,lA):lA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?CA:thunk(CA))));else{const oA=extract_paths(iA.id),QA=iA.init;let EA,rA=CA;BA==="$derived"&&QA.arguments[0].type==="Identifier"?EA=QA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),rA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?CA:thunk(CA)))));for(let lA=0;lA<oA.length;lA++){const uA=oA[lA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(rA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){const CA=iA.init;if(CA!=null&&is_hoisted_function(CA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(CA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const oA=AA.state.scope.generate("tmp"),QA=extract_paths(iA.id);tA.push(declarator(id$1(oA),AA.visit(iA.init)));for(const EA of QA){const rA=EA.node.name,lA=AA.state.scope.get(rA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(oA));tA.push(declarator(EA.node,lA.kind==="bindable_prop"?get_prop_source(lA,AA.state,lA.prop_alias??rA,uA):uA))}continue}const CA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(CA,AA.state,CA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var oA;const sA=(oA=BA.expression)==null?void 0:oA.call(BA,id$1(iA)),CA=AA.get(BA.node.name);return declarator(BA.node,(CA==null?void 0:CA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],CA=[];for(const[mA,MA]of eA.instance.scope.declarations)if(MA.kind==="legacy_reactive"&&CA.push(const_builder(mA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),MA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const fA=build_getter$1(id$1(mA.slice(1)),iA),LA=call("$.store_get",fA,literal(mA),id$1("$$stores"));sA.push(const_builder(MA.node,thunk(dev?sequence$1([call("$.validate_store",fA,literal(mA.slice(1))),LA]):LA)))}for(const[mA]of eA.reactive_statements){const MA=[...tA.legacy_reactive_statements].find(([fA])=>fA===mA);if(MA===void 0)throw new Error("Could not find reactive statement");IA.body.push(MA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const oA=[];for(const mA of eA.binding_groups.values())oA.push(const_builder(mA.name,array([])));const QA=eA.exports.flatMap(({name:mA,alias:MA})=>{const fA=iA.scope.get(mA),LA=build_getter$1(id$1(mA),iA),_A=get(MA??mA,[return_builder(LA)]);if(LA.type==="Identifier"){if((fA==null?void 0:fA.declaration_kind)==="let"||(fA==null?void 0:fA.declaration_kind)==="var")return[_A,set(MA??mA,[stmt(assignment("=",LA,id$1("$$value")))])];if(!dev)return init(MA??mA,LA)}if((fA==null?void 0:fA.kind)==="prop"||(fA==null?void 0:fA.kind)==="bindable_prop")return[_A,set(MA??mA,[stmt(call(mA,id$1("$$value")))])];if((fA==null?void 0:fA.kind)==="state"||(fA==null?void 0:fA.kind)==="raw_state"){const bA=fA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[_A,set(MA??mA,[stmt(call("$.set",id$1(mA),bA))])]}return _A}),EA=[...eA.instance.scope.declarations].filter(([mA,MA])=>(MA.kind==="prop"||MA.kind==="bindable_prop")&&!mA.startsWith("$$"));if(dev&&eA.runes){const mA=eA.exports.map(({name:fA,alias:LA})=>literal(LA??fA)),MA=[];for(const[fA,LA]of EA)LA.kind==="bindable_prop"&&MA.push(literal(LA.prop_alias??fA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(MA),array(mA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[mA,MA]of EA){const fA=MA.prop_alias??mA,LA=get(fA,[return_builder(call(id$1(mA)))]),_A=set(fA,[stmt(call(id$1(mA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&MA.initial&&(_A.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:MA.initial}),QA.push(LA,_A)}AA.compatibility.componentApi===4?QA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&QA.push(spread(call(id$1("$.legacy_api"))));const rA=[id$1("$$props"),literal(eA.runes)];dev&&rA.push(id$1(eA.name));const lA=block([...sA,...CA,...oA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:mA,alias:MA}of eA.exports)lA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(MA??mA),build_getter$1(id$1(mA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const mA=literal(eA.css.hash),MA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",mA),init("code",MA)]))),lA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||QA.length>0;if(uA&&(lA.body.unshift(stmt(call("$.push",...rA))),lA.body.push(QA.length>0?return_builder(call("$.pop",object$2(QA))):stmt(call("$.pop")))),eA.uses_rest_props){const mA=eA.exports.map(({name:MA,alias:fA})=>fA??MA);for(const[MA,fA]of eA.instance.scope.declarations)fA.kind==="bindable_prop"&&mA.push(fA.prop_alias??MA);lA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(mA.map(MA=>literal(MA))))))}if(eA.uses_props||eA.uses_rest_props){const mA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&mA.push(literal("$$host")),lA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(mA))))}eA.uses_slots&&lA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let cA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const mA of[...gA.body,...tA.hoisted])mA.type==="ImportDeclaration"?hA.push(mA):dA.push(mA);dA=[...hA,...dA];const pA=function_declaration(id$1(eA.name),cA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],lA);if(AA.hmr){const mA=id$1(eA.name),MA=id$1("$.HMR"),fA=member(mA,MA,!0),LA=member(id$1("module.default"),MA,!0),_A=[stmt(assignment("=",member(LA,"source"),member(fA,"source"))),stmt(call("$.set",member(fA,"source"),member(LA,"original")))];eA.css.hash&&_A.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const bA=block([stmt(assignment("=",mA,call("$.hmr",mA,thunk(member(fA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(_A))))]);dA.push(pA,if_builder(id$1("import.meta.hot"),bA),export_default(id$1(eA.name)))}else dA.push(export_default(pA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),eA.runes||dA.unshift(imports([],"svelte/internal/flags/legacy")),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),lA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&lA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(mA=>literal(mA)))))),eA.custom_element){const mA=eA.custom_element,MA=typeof mA=="boolean"?{}:mA.props||{},fA=[];for(const[RA,NA]of Object.entries(MA)){const FA=eA.instance.scope.get(RA),vA=(FA==null?void 0:FA.prop_alias)??RA;!NA.type&&((wA=FA==null?void 0:FA.initial)==null?void 0:wA.type)==="Literal"&&typeof(FA==null?void 0:FA.initial.value)=="boolean"&&(NA.type="Boolean");const xA=object$2([NA.attribute?init("attribute",literal(NA.attribute)):void 0,NA.reflect?init("reflect",literal(!0)):void 0,NA.type?init("type",literal(NA.type)):void 0].filter(Boolean));fA.push(init(vA,xA))}for(const[RA,NA]of EA){const FA=NA.prop_alias??RA;MA[FA]||fA.push(init(FA,object$2([])))}const LA=array([...eA.slot_names.keys()].map(RA=>literal(RA))),_A=array(eA.exports.map(({name:RA,alias:NA})=>literal(NA??RA))),bA=typeof mA=="boolean"||mA.shadow!=="none",JA=call("$.create_custom_element",id$1(eA.name),object$2(fA),LA,_A,literal(bA),typeof mA!="boolean"?mA.extend:void 0);if(typeof mA!="boolean"&&typeof mA.tag=="string"){const RA=stmt(call("customElements.define",literal(mA.tag),JA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(mA.tag)),null_instane),RA)):dA.push(RA)}else dA.push(stmt(JA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(Vg=process.cwd)==null?void 0:Vg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA)),warningFilter:fun(()=>!0)},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:removed('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:removed("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:removed("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:removed("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),CA=transform_component(sA,eA,BA);return CA.ast=to_public_ast(eA,gA,AA.modernAst),CA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"dom",dev:!1,filename:tA,css:"injected"}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),BA=concat([header(nil_xit_proto.MessageType.MessageType_FileRequest),nil_xit_proto.FileRequest.encode({target:IA}).finish()]),{content:sA,metadata:CA}=await service_fetch(eA,BA,(oA,QA)=>{if(oA===nil_xit_proto.MessageType.MessageType_FileResponse){const EA=nil_xit_proto.FileResponse.decode(QA);if(EA.target===IA)return EA}});return tA&&tA(IA,CA),sA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>`import_map(${iA.pop()})`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}]);`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
59
+ `+QA.value[0].data),IA=call("$.escape",build_attribute_value$1(QA.value,AA))):eA.name!=="select"&&tA.push(QA):is_event_attribute(QA)?(QA.name==="onload"||QA.name==="onerror")&&is_load_error_element(eA.name)&&oA.add(QA.name):(QA.name==="class"?sA=tA.length:QA.name==="style"&&(CA=tA.length),tA.push(QA));else if(QA.type==="BindDirective"){if(QA.name==="value"&&eA.name==="select"||QA.name==="value"&&tA.some(rA=>rA.type==="Attribute"&&rA.name==="type"&&is_text_attribute(rA)&&rA.value[0].data==="file")||QA.name==="this")continue;const EA=binding_properties[QA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(QA.name))IA=AA.visit(QA.expression);else if(QA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(QA.expression));else if(QA.name==="group"){const rA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!rA)continue;const lA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:lA?call(member(QA.expression,"includes"),build_attribute_value$1(rA.value,AA)):binary("===",QA.expression,build_attribute_value$1(rA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(QA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:QA,expression:QA.expression,metadata:{expression:create_expression_metadata()}}]))}else QA.type==="SpreadAttribute"?(tA.push(QA),BA=!0,is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror"))):QA.type==="UseDirective"?is_load_error_element(eA.name)&&(oA.add("onload"),oA.add("onerror")):QA.type==="ClassDirective"?gA.push(QA):QA.type==="StyleDirective"?iA.push(QA):QA.type==="LetDirective"||AA.visit(QA);if(gA.length>0&&!BA){const QA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(QA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[CA]??null,AA),CA>-1&&tA.splice(CA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const QA of tA){if(QA.value===!0||is_text_attribute(QA)){const lA=get_attribute_name$1(eA,QA),uA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(lA)).value;(lA!=="class"||uA)&&AA.state.template.push(literal(` ${QA.name}${is_boolean_attribute(lA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),rA,is_boolean_attribute(EA)&&true_instance))}if(oA.size!==0)for(const QA of oA)AA.state.template.push(literal(` ${QA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const QA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&QA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(QA)}if(tA.length>0){const QA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(QA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const oA=[object$2(AA.map(QA=>{if(QA.type==="Attribute"){const EA=get_attribute_name$1(eA,QA),rA=build_attribute_value$1(QA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),rA)}return spread(iA.visit(QA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...oA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const CA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:CA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...CA.init,...build_template(CA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(AA.visit(CA));else if(CA.type==="Attribute"){const oA=build_attribute_value$1(CA.value,AA,!1,!0);CA.name==="name"?iA=oA:CA.name!=="slot"&&tA.push(init(CA.name,oA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let oA=!1,QA=walk(iA.id,null,{RestElement(EA,rA){rA.path.at(-1)===iA.id&&(oA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const rA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,rA)}}});QA.type==="ObjectPattern"&&oA?QA.properties.splice(QA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):QA.type==="Identifier"&&(QA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(QA.name))])),tA.push(declarator(AA.visit(QA),id$1("$$props")));continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(CA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,CA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),CA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,CA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),rA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const lA of rA){const uA=(gA=lA.expression)==null?void 0:gA.call(lA,id$1(EA)),cA=lA.node.name,hA=AA.state.scope.get(cA),dA=member(id$1("$$props"),literal(hA.prop_alias??cA),!0);tA.push(declarator(lA.node,build_fallback(dA,uA)))}continue}const CA=AA.state.scope.get(iA.id.name),oA=member(id$1("$$props"),literal(CA.prop_alias??iA.id.name),!0);let QA=oA;if(iA.init){const EA=AA.visit(iA.init);QA=build_fallback(oA,EA)}tA.push(declarator(iA.id,QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(lA){return tA.hoisted.push(lA),empty},ExportNamedDeclaration(lA,uA){return lA.declaration?uA.visit(lA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[lA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([cA])=>cA===lA);if(uA===void 0)throw new Error("Could not find reactive statement");if(lA.body.type==="ExpressionStatement"&&lA.body.expression.type==="AssignmentExpression")for(const cA of extract_identifiers(lA.body.expression.left)){const hA=eA.instance.scope.get(cA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(cA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const lA=IA.body.filter(cA=>cA.type==="FunctionDeclaration"&&cA.___snippet),uA=IA.body.filter(cA=>cA.type!=="FunctionDeclaration"||!cA.___snippet);IA.body=[...lA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(lA=>lA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[lA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!lA.startsWith("$$")&&sA.push(init(uA.prop_alias??lA,id$1(lA)));for(const{name:lA,alias:uA}of eA.exports)sA.push(init(uA??lA,id$1(lA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const CA=block([...iA.body,...IA.body]);let oA=dev||eA.needs_context;if(oA&&(CA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),CA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const lA=eA.exports.map(({name:uA,alias:cA})=>cA??uA);for(const[uA,cA]of eA.instance.scope.declarations)cA.kind==="bindable_prop"&&lA.push(cA.prop_alias??uA);CA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(lA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&CA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&CA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const QA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const lA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);QA.push(const_builder("$$css",object$2([init("hash",lA),init("code",uA)]))),CA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=oA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const rA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],CA);return AA.compatibility.componentApi===4?(QA.unshift(imports([["render","$$_render"]],"svelte/server")),QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?QA.push(rA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),export_default(id$1(eA.name))):QA.push(export_default(rA)),dev&&QA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:QA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let CA=sA>0,oA=BA>0,QA=sA>1;for(let rA=0;rA<eA.length;rA++){const lA=eA[rA];if(lA.type==="Text")iA.value.cooked+=lA.data;else if(lA.type==="ExpressionTag"&&lA.expression.type==="Literal")lA.expression.value!=null&&(iA.value.cooked+=lA.expression.value+"");else{if(QA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(lA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(lA.expression,tA),has_state:oA,has_call:CA};gA.push(logical("??",AA(lA.expression,tA),literal("")))}iA=quasi("",rA+1===eA.length),IA.push(iA)}}for(const rA of IA)rA.value.raw=sanitize_template_string(rA.value.cooked);return{value:template(IA,gA),has_state:oA,has_call:CA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(rA,{path:lA}){if(BA.includes(rA.name))return;BA.push(rA.name);const uA=lA.at(-1);if(!is_reference(rA,uA))return;const cA=tA.scope.get(rA.name);if(cA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===cA.scope){iA.push(rA),IA.push(gA(rA)),sA[rA.name]&&(sA[rA.name]={...sA[rA.name],read:pA=>pA});break}}}});const CA={...tA,transform:sA},oA=gA(eA,CA),QA=gA(assignment("=",eA,id$1("$$value")),CA);let EA=oA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],QA),arrow([...iA],oA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let CA=!1,oA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(oA,gA.state.scope)&&(CA=!0,oA=sA.kind==="raw_state"?oA:build_proxy_reassignment(oA,member(this_instance,sA.id))),gA.state.in_constructor){if(CA)return assignment(eA,gA.visit(AA),oA)}else return call("$.set",AA,oA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const CA=gA.path.map(QA=>QA.type);return!(CA.at(-1)==="BindDirective"&&CA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const oA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(oA,IA)),IA=oA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,CA=[IA,...sA];BA=array(CA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...CA,...oA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const CA=(BA==null?void 0:BA.declarations)??[],oA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...CA,...oA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let CA=!1;const oA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:rA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(rA.type==="ArrowFunctionExpression"||rA.type==="FunctionExpression")){const lA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(lA,rA)),oA.push(init(EA.name,id$1(lA)))}else oA.push(init(EA.name,rA));CA||(CA=EA.metadata.expression.has_state)}else{CA=!0;let rA=AA.visit(EA);if(EA.metadata.expression.has_call){const lA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(lA,create_derived(sA,thunk(rA)))),rA=call("$.get",lA)}oA.push(spread(rA))}const QA=call("$.set_attributes",gA,CA?iA:literal(null),object$2(oA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(CA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,QA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(QA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const QA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.set_style",AA,literal(IA.name),CA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let CA=tA.visit(IA.expression);if(sA){const QA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(QA,create_derived(iA,thunk(CA)))),CA=call("$.get",QA)}const oA=stmt(call("$.toggle_class",AA,literal(IA.name),CA));!gA&&sA?iA.init.push(build_update(oA)):gA||BA||sA?iA.update.push(oA):iA.init.push(oA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var CA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:oA})=>oA==="IfBlock"||oA==="EachBlock"||oA==="AwaitBlock"||oA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const oA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let QA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(CA=iA.attributes.find(rA=>rA.type==="Attribute"&&rA.name==="value"&&!is_text_attribute(rA)&&rA.value!==!0))==null?void 0:CA.value;EA!==void 0&&(QA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(oA),AA.state.node,QA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}eA.name==="this"?AA.state.init.push(stmt(sA)):iA.type==="RegularElement"&&iA.attributes.find(QA=>QA.type==="UseDirective")?AA.state.init.push(stmt(call("$.effect",thunk(sA)))):AA.state.after_update.push(stmt(sA))}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,CA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const oA of eA.body)if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=oA.key.type,EA=get_name(oA.key);if(!EA)continue;const rA=QA==="PrivateIdentifier";if(rA&&iA.push(EA),((sA=oA.value)==null?void 0:sA.type)==="CallExpression"){const lA=get_rune(oA.value,AA.state.scope);if(lA==="$state"||lA==="$state.raw"||lA==="$derived"||lA==="$derived.by"){const uA={kind:lA==="$state"?"state":lA==="$state.raw"?"raw_state":lA==="$derived.by"?"derived_by":"derived",id:rA?oA.key:null};rA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[oA,QA]of tA){let EA=oA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),QA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const oA of eA.body){if(oA.type==="PropertyDefinition"&&(oA.key.type==="Identifier"||oA.key.type==="PrivateIdentifier"||oA.key.type==="Literal")){const QA=get_name(oA.key);if(!QA)continue;const EA=oA.key.type==="PrivateIdentifier",rA=(EA?gA:tA).get(QA);if(((CA=oA.value)==null?void 0:CA.type)==="CallExpression"&&rA!==void 0){let lA=null;if(oA.value.arguments.length>0){const uA=AA.visit(oA.value.arguments[0],BA);lA=rA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):rA.kind==="raw_state"?call("$.state",uA):rA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else lA=call("$.state");if(EA)IA.push(prop_def(rA.id,lA));else{const uA=member(this_instance,rA.id);if(IA.push(prop_def(rA.id,lA)),IA.push(method("get",oA.key,[],[return_builder(call("$.get",uA))])),rA.kind==="state"){const cA=id$1("value"),hA=member(this_instance,rA.id);IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,build_proxy_reassignment(cA,hA)))]))}if(rA.kind==="raw_state"){const cA=id$1("value");IA.push(method("set",oA.key,[cA],[stmt(call("$.set",uA,cA))]))}dev&&(rA.kind==="derived"||rA.kind==="derived_by")&&IA.push(method("set",oA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${QA}')`)]))}continue}}IA.push(AA.visit(oA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(oA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(oA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var mA,MA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},CA={},oA=[];let QA=null;const EA=[];let rA=!!determine_slot(eA),lA=!1;function uA(fA){const LA=iA.at(-1),_A=Array.isArray(LA),bA=_A?LA:[];bA.push(fA),_A||iA.push(bA)}if(rA)for(const fA of eA.attributes)fA.type==="LetDirective"&&IA.push(tA.visit(fA));for(const fA of eA.attributes)if(fA.type==="LetDirective")rA||IA.push(tA.visit(fA,BA.default));else if(fA.type==="OnDirective"){fA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(fA.expression,fA.metadata.expression,tA);fA.modifiers.includes("once")&&(LA=call("$.once",LA)),(CA[mA=fA.name]||(CA[mA]=[])).push(LA)}else if(fA.type==="SpreadAttribute"){const LA=tA.visit(fA);if(fA.metadata.expression.has_state){let _A=LA;if(fA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(_A)))),_A=call("$.get",bA)}iA.push(thunk(_A))}else iA.push(LA)}else if(fA.type==="Attribute"){if(fA.name.startsWith("--")){oA.push(init(fA.name,build_attribute_value(fA.value,tA).value));continue}fA.name==="slot"&&(rA=!0),fA.name==="children"&&(lA=!0);const{value:LA}=build_attribute_value(fA.value,tA);if(fA.metadata.expression.has_state){let _A=LA;if(get_attribute_chunks(fA.value).some(JA=>JA.type==="ExpressionTag"&&JA.expression.type!=="Identifier"&&JA.expression.type!=="MemberExpression")){const JA=id$1(tA.state.scope.generate(fA.name));tA.state.init.push(var_builder(JA,create_derived(tA.state,thunk(LA)))),_A=call("$.get",JA)}uA(get(fA.name,[return_builder(_A)]))}else uA(init(fA.name,LA))}else if(fA.type==="BindDirective"){const LA=tA.visit(fA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,fA,LA),fA.name==="this")QA=fA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const _A=fA.expression.type==="Identifier"&&((MA=tA.state.scope.get(fA.expression.name))==null?void 0:MA.kind)==="store_sub";uA(_A?get(fA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(fA.name,[return_builder(LA)]));const bA=assignment("=",fA.expression,id$1("$$value"));uA(set(fA.name,[stmt(tA.visit(bA))]))}}if(rA&&tA.state.init.push(...IA),Object.keys(CA).length>0){const fA=object$2(Object.keys(CA).map(LA=>init(LA,CA[LA].length>1?array(CA[LA]):CA[LA][0])));uA(init("$$events",fA))}const cA=[],hA=[];for(const fA of eA.fragment.nodes){if(fA.type==="SnippetBlock"){tA.visit(fA,{...tA.state,init:cA}),uA(prop("init",fA.expression,fA.expression)),hA.push(init(fA.expression.name==="children"?"default":fA.expression.name,true_instance));continue}let LA=determine_slot(fA)??"default";(sA[LA]||(sA[LA]=[])).push(fA)}for(const fA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[fA]},fA==="default"?rA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[fA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const _A=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...fA==="default"&&!rA?IA:[],...LA.body]));fA==="default"&&!lA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(JA=>JA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),_A):_A)),hA.push(init(fA,true_instance))):(hA.push(init(fA,_A)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(fA,_A))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(fA=>fA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(fA=>Array.isArray(fA)?object$2(fA):fA));let pA=fA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),fA,dA);if(QA!==null){const fA=pA;pA=LA=>build_bind_this(QA,fA(LA),tA)}const wA=[...cA];if(eA.type==="SvelteComponent"){const fA=pA;pA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(fA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(oA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(oA)))),stmt(pA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(pA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const CA of gA)delete IA[CA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(CA=>prop("init",CA,CA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const CA of gA)AA.state.transform[CA.name]={read:oA=>member(call("$.get",iA),oA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var fA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((fA=eA.key)==null?void 0:fA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const _A of eA.metadata.expression.dependencies)if(_A.kind==="store_sub"){BA=!0;break}for(const _A of eA.metadata.expression.dependencies)if(!(_A.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(_A=>_A.type!=="RegularElement"&&_A.type!=="SvelteElement"?!1:_A.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const _A=object$1(eA.expression);if(_A){const bA=AA.state.scope.get(_A.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=_A.name)}}const CA=collect_parent_each_blocks(AA).flatMap(_A=>{const bA=AA.visit(_A.expression),JA=build_transitive_dependencies(_A.metadata.expression.dependencies,AA);return[bA,...JA]});if(tA.array_name)CA.push(call(tA.array_name));else{CA.push(gA);const _A=build_transitive_dependencies(tA.expression.dependencies,AA);CA.push(..._A)}const oA={...AA.state,transform:{...AA.state.transform}},QA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),rA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let lA=tA.contains_group_binding,uA=!1;eA.index&&(oA.transform[eA.index]={read:_A=>(lA=!0,iA&EACH_INDEX_REACTIVE?get_value(_A):_A)},QA.transform[eA.index]={read:_A=>(uA=!0,_A)});const cA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(CA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,pA=[];if(AA.state.analysis.runes||pA.push(hA),dA&&pA.push(dA),eA.context.type==="Identifier"){const _A=AA.state.scope.get(eA.context.name);oA.transform[eA.context.name]={read:bA=>_A.reassigned?member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,JA)=>{lA=!0;const RA=member(tA.array_name?call(tA.array_name):gA,iA&EACH_INDEX_REACTIVE?get_value(EA):EA,!0);return sequence$1([assignment("=",RA,JA),...pA])},mutate:(bA,JA)=>sequence$1([JA,...pA])},delete QA.transform[eA.context.name]}else{const _A=iA&EACH_ITEM_REACTIVE?call("$.get",rA):rA;for(const bA of extract_paths(eA.context)){const JA=bA.node.name,RA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,_A),oA));cA.push(let_builder(bA.node,RA?call("$.derived_safe_equal",NA):NA));const FA=RA?get_value:call;oA.transform[JA]={read:FA,assign:(vA,xA)=>{const kA=bA.update_expression(_A);return sequence$1([assignment("=",kA,xA),...pA])},mutate:(vA,xA)=>sequence$1([xA,...pA])},dev&&cA.push(stmt(FA(id$1(JA)))),delete QA.transform[JA]}}const wA=AA.visit(eA.body,oA);let mA=id$1("$.index");if(eA.metadata.keyed){const _A=AA.visit(eA.key,QA);mA=arrow(uA?[eA.context,EA]:[eA.context],_A)}eA.index&&tA.contains_group_binding&&cA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),mA)));const MA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),mA,arrow(lA?[id$1("$$anchor"),rA,EA]:[id$1("$$anchor"),rA],block(cA.concat(wA.body)))];eA.fallback&&MA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...MA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,CA=[];function oA(rA){return sA===0?BA(rA):call("$.sibling",BA(!1),(rA||sA!==1)&&literal(sA),rA&&true_instance)}function QA(rA,lA){const uA=oA(rA);let cA=uA;return cA.type!=="Identifier"&&(cA=id$1(iA.scope.generate(lA)),iA.init.push(var_builder(cA,uA))),BA=()=>cA,sA=1,cA}function EA(rA){if(rA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(rA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:lA,has_call:uA,value:cA}=build_template_literal(rA,gA,iA),hA=rA.length===1,dA=QA(hA,"text"),pA=stmt(call("$.set_text",dA,cA));uA&&!IA?iA.init.push(build_update(pA)):lA&&!IA?iA.update.push(pA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),cA)))}for(const rA of eA)if(rA.type==="Text"||rA.type==="ExpressionTag")CA.push(rA);else{CA.length>0&&(EA(CA),CA=[]);let lA=iA;if(is_static_element(rA))sA+=1;else if(rA.type==="EachBlock"&&eA.length===1&&tA)rA.metadata.is_controlled=!0;else{const uA=QA(!1,rA.type==="RegularElement"?rA.name:"node");lA={...iA,node:uA}}gA(rA,lA)}CA.length>0&&EA(CA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const CA=IA.length===1&&IA[0].type==="RegularElement",oA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),QA=AA.state.scope.root.unique("root"),EA=[];let rA;const lA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const cA of iA)AA.visit(cA,lA);sA&&EA.push(stmt(call("$.next")));const uA=(cA,hA)=>{let dA=call(get_template_function(gA,lA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(lA.locations))),AA.state.hoisted.push(var_builder(cA,dA))};if(CA){const cA=IA[0],hA=id$1(AA.state.scope.generate(cA.name));AA.visit(cA,{...lA,node:hA});const dA=[join_template(lA.template)];lA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(QA,dA),EA.push(var_builder(hA,call(QA)),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(oA)AA.visit(IA[0],lA),EA.push(...lA.before_init,...lA.init);else if(IA.length===1&&IA[0].type==="Text"){const cA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(cA,call("$.text",literal(IA[0].data))),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),cA))}else if(IA.length>0){const cA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:lA}),EA.push(var_builder(dA,call("$.text")),...lA.before_init,...lA.init),rA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:lA});else{process_children(IA,wA=>call("$.first_child",cA,wA&&true_instance),!1,{...AA,state:lA});let pA=TEMPLATE_FRAGMENT;lA.metadata.context.template_needs_import_node&&(pA|=TEMPLATE_USE_IMPORT_NODE),lA.template.length===1&&lA.template[0]==="<!>"?EA.push(var_builder(cA,call("$.comment"))):(uA(QA,[join_template(lA.template),literal(pA)]),EA.push(var_builder(cA,call(QA)))),rA=stmt(call("$.append",id$1("$$anchor"),cA))}EA.push(...lA.before_init,...lA.init)}}else EA.push(...lA.before_init,...lA.init);return lA.update.length>0&&EA.push(build_render_statement(lA.update)),EA.push(...lA.after_update),rA!==void 0&&EA.push(rA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let CA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(CA=call("$.deep_read_state",CA)),IA.push(CA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const CA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:oA=>call(CA),mutate:(oA,QA)=>call(CA,QA)},AA.state.legacy_reactive_imports.push(var_builder(CA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const CA=call("$.untrack",BA);function oA(QA){return QA.type==="MemberExpression"?{...QA,object:oA(QA.object),property:QA.property}:CA}return call("$.store_mutate",IA(),assignment(sA.operator,oA(sA.left),sA.right),CA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const fA=locator(eA.start);fA&&(tA[0]=fA.line,tA[1]=fA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);(eA.name==="video"||gA)&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],CA=[],oA=new Map,QA=new Map;let EA=eA.metadata.has_spread,rA=!1;for(const fA of eA.attributes)switch(fA.type){case"AnimateDirective":sA.push(fA);break;case"Attribute":if(fA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(fA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(fA),oA.set(fA.name,fA);break;case"BindDirective":QA.set(fA.name,fA),sA.push(fA);break;case"ClassDirective":IA.push(fA);break;case"LetDirective":CA.push(AA.visit(fA));break;case"OnDirective":sA.push(fA);break;case"SpreadAttribute":iA.push(fA);break;case"StyleDirective":BA.push(fA);break;case"TransitionDirective":sA.push(fA);break;case"UseDirective":rA=!0,sA.push(fA);break}const lA={...AA.state,init:[],after_update:[]};for(const fA of sA)if(fA.type==="OnDirective"){const LA=AA.visit(fA);rA?lA.init.push(stmt(call("$.effect",thunk(LA)))):lA.after_update.push(stmt(LA))}else AA.visit(fA,lA);if(eA.name==="input"&&(EA||QA.has("value")||QA.has("checked")||QA.has("group")||iA.some(fA=>fA.type==="Attribute"&&(fA.name==="value"||fA.name==="checked")&&!is_text_attribute(fA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const fA=oA.get("value")??oA.get("checked"),LA=fA&&!is_text_attribute(fA);(EA||QA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&QA.has("value")&&setup_select_synchronization(QA.get("value"),AA),AA.state.init.push(...CA);const uA=AA.state.node;let cA=EA;if(EA){const fA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,fA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!QA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(fA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),fA),block([stmt(call("$.select_option",uA,member(fA,"value")))]))))}else{const fA=eA.name==="option"||eA.name==="select"||QA.has("group")||QA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(fA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),JA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||JA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&JA===!0?"":`="${JA===!0?"":escape_html(JA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(cA=!0)}}build_class_directives(IA,uA,AA,cA),build_style_directives(BA,uA,AA,cA),eA.name==="img"&&(EA||oA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||rA||oA.has("onload")||oA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(QA.has("innerHTML")||QA.has("innerText")||QA.has("textContent")){const fA=oA.get("contenteditable");fA&&(fA.value===!0||is_text_attribute(fA)&&fA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:pA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),mA={...dA,init:[],update:[],after_update:[]};for(const fA of pA)AA.visit(fA,mA);const MA=wA.every(fA=>fA.type==="Text"||fA.type==="ExpressionTag")&&wA.some(fA=>fA.type==="ExpressionTag")&&get_states_and_calls(wA);if(MA&&MA.states===0)mA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,mA).value)));else{let fA=AA.state.node,LA=wA.some(_A=>_A.type!=="Text");eA.name==="template"&&(LA=!0,mA.init.push(stmt(call("$.hydrate_template",fA))),fA=member(fA,"content")),process_children(wA,_A=>call("$.child",fA,_A&&true_instance),!0,{...AA,state:mA}),LA&&mA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(fA=>fA.type==="SnippetBlock")?AA.state.init.push(block([...mA.init,...lA.init,mA.update.length>0?build_render_statement(mA.update):empty,...mA.after_update,...lA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...mA.init,...lA.init),AA.state.update.push(...mA.update),AA.state.after_update.push(...mA.after_update,...lA.after_update)):(AA.state.init.push(...lA.init),AA.state.after_update.push(...lA.after_update)),oA.has("dir")){const fA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",fA,fA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:CA,value:oA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,oA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),oA))),!1;let QA;if(IA==="class"){if(tA.metadata.expression.has_state&&CA){const rA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(rA,create_derived(iA,thunk(oA)))),oA=call("$.get",rA),CA=!1}QA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,oA))}else if(IA==="value")QA=stmt(call("$.set_value",AA,oA));else if(IA==="checked")QA=stmt(call("$.set_checked",AA,oA));else if(is_dom_property(IA))QA=stmt(assignment("=",member(AA,IA),oA));else{if(IA==="style"&&tA.metadata.expression.has_state&&CA){const lA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(lA,create_derived(iA,thunk(oA)))),oA=call("$.get",lA),CA=!1}const rA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";QA=stmt(call(rA,AA,literal(IA),oA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(CA?iA.init.push(build_update(QA)):iA.update.push(QA),!0):(EA?gA.state.template.push(` ${IA}="`,oA,'"'):iA.init.push(QA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),CA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const oA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,oA,eA==="option"?object$2([]):void 0,IA,CA),!0}else return iA.init.push(CA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],CA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const oA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(oA,call("$.derived_safe_equal",thunk(CA)))),iA.push(thunk(call("$.get",oA)))}else iA.push(thunk(CA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const oA of eA.attributes)if(oA.type==="SpreadAttribute")gA.push(thunk(AA.visit(oA)));else if(oA.type==="Attribute"){const{value:QA}=build_attribute_value(oA.value,AA);oA.name==="name"?IA=QA:oA.name!=="slot"&&(oA.metadata.expression.has_state?tA.push(get(oA.name,[return_builder(QA)])):tA.push(init(oA.name,QA)))}else oA.type==="LetDirective"&&iA.push(AA.visit(oA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),CA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(CA))}function SnippetBlock(eA,AA){var oA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let QA=0;QA<eA.parameters.length;QA++){const EA=eA.parameters[QA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let rA=`$$arg${QA}`;tA.push(id$1(rA));const lA=extract_paths(EA);for(const uA of lA){const cA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((oA=uA.expression)==null?void 0:oA.call(uA,maybe_call(id$1(rA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[cA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[cA].read(id$1(cA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const CA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(CA):AA.state.init.push(CA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),CA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const lA of eA.attributes)if(lA.type==="Attribute")lA.name==="xmlns"&&!is_text_attribute(lA)&&(gA=lA.value),tA.push(lA);else if(lA.type==="SpreadAttribute")tA.push(lA);else if(lA.type==="ClassDirective")iA.push(lA);else if(lA.type==="StyleDirective")IA.push(lA);else if(lA.type==="LetDirective")BA.push(AA.visit(lA));else if(lA.type==="OnDirective"){const uA=AA.visit(lA,CA.state);CA.state.after_update.push(stmt(uA))}else AA.visit(lA,CA.state);AA.state.init.push(...BA);let oA=!1;if(tA.length===0)AA.state.analysis.css.hash&&CA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const lA=id$1(AA.state.scope.generate("attributes"));oA=build_set_attributes(tA,CA,eA,sA,lA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,CA,oA),build_style_directives(IA,sA,CA,oA);const QA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",QA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",QA))));const EA=CA.state.init;CA.state.update.length>0&&EA.push(build_render_statement(CA.state.update)),EA.push(...CA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const rA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,QA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),rA&&array([literal(rA.line),literal(rA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var CA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let oA="$.update";eA.prefix&&(oA+="_pre");const QA=[tA];return eA.operator==="--"&&QA.push(literal(-1)),call(oA,...QA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const oA=AA.state.transform,QA=(CA=oA[gA.name])==null?void 0:CA.update;if(QA&&Object.hasOwn(oA,gA.name))return QA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.init.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const oA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&oA.push("$$host"),iA.id.type==="Identifier"){const QA=[id$1("$$props"),array(oA.map(EA=>literal(EA)))];dev&&QA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...QA)))}else{equal(iA.id.type,"ObjectPattern");for(const QA of iA.id.properties)if(QA.type==="Property"){const EA=QA.key,rA=EA.type==="Identifier"?EA.name:EA.value;oA.push(rA);let lA=QA.value.type==="AssignmentPattern"?QA.value.left:QA.value;equal(lA.type,"Identifier");const uA=AA.state.scope.get(lA.name);let cA=uA.initial&&AA.visit(uA.initial);cA&&uA.kind==="bindable_prop"&&should_proxy(cA,AA.state.scope)&&(cA=call("$.proxy",cA)),is_prop_source(uA,AA.state)&&tA.push(declarator(lA,get_prop_source(uA,AA.state,rA,cA)))}else{const EA=[id$1("$$props"),array(oA.map(rA=>literal(rA)))];dev&&EA.push(literal(QA.argument.name)),tA.push(declarator(QA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,CA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const oA=(QA,EA)=>{const rA=AA.state.scope.get(QA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(rA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,oA(iA.id,CA)));else{const QA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(QA),CA),...EA.map(rA=>{var cA;const lA=(cA=rA.expression)==null?void 0:cA.call(rA,id$1(QA)),uA=AA.state.scope.get(rA.node.name);return declarator(rA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?oA(uA.node,lA):lA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?CA:thunk(CA))));else{const oA=extract_paths(iA.id),QA=iA.init;let EA,rA=CA;BA==="$derived"&&QA.arguments[0].type==="Identifier"?EA=QA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),rA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?CA:thunk(CA)))));for(let lA=0;lA<oA.length;lA++){const uA=oA[lA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(rA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(CA=>CA.kind==="state"),sA=IA.some(CA=>CA.kind==="bindable_prop");if(!BA&&!sA){const CA=iA.init;if(CA!=null&&is_hoisted_function(CA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(CA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const oA=AA.state.scope.generate("tmp"),QA=extract_paths(iA.id);tA.push(declarator(id$1(oA),AA.visit(iA.init)));for(const EA of QA){const rA=EA.node.name,lA=AA.state.scope.get(rA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(oA));tA.push(declarator(EA.node,lA.kind==="bindable_prop"?get_prop_source(lA,AA.state,lA.prop_alias??rA,uA):uA))}continue}const CA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(CA,AA.state,CA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var oA;const sA=(oA=BA.expression)==null?void 0:oA.call(BA,id$1(iA)),CA=AA.get(BA.node.name);return declarator(BA.node,(CA==null?void 0:CA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],CA=[];for(const[mA,MA]of eA.instance.scope.declarations)if(MA.kind==="legacy_reactive"&&CA.push(const_builder(mA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),MA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const fA=build_getter$1(id$1(mA.slice(1)),iA),LA=call("$.store_get",fA,literal(mA),id$1("$$stores"));sA.push(const_builder(MA.node,thunk(dev?sequence$1([call("$.validate_store",fA,literal(mA.slice(1))),LA]):LA)))}for(const[mA]of eA.reactive_statements){const MA=[...tA.legacy_reactive_statements].find(([fA])=>fA===mA);if(MA===void 0)throw new Error("Could not find reactive statement");IA.body.push(MA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const oA=[];for(const mA of eA.binding_groups.values())oA.push(const_builder(mA.name,array([])));const QA=eA.exports.flatMap(({name:mA,alias:MA})=>{const fA=iA.scope.get(mA),LA=build_getter$1(id$1(mA),iA),_A=get(MA??mA,[return_builder(LA)]);if(LA.type==="Identifier"){if((fA==null?void 0:fA.declaration_kind)==="let"||(fA==null?void 0:fA.declaration_kind)==="var")return[_A,set(MA??mA,[stmt(assignment("=",LA,id$1("$$value")))])];if(!dev)return init(MA??mA,LA)}if((fA==null?void 0:fA.kind)==="prop"||(fA==null?void 0:fA.kind)==="bindable_prop")return[_A,set(MA??mA,[stmt(call(mA,id$1("$$value")))])];if((fA==null?void 0:fA.kind)==="state"||(fA==null?void 0:fA.kind)==="raw_state"){const bA=fA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[_A,set(MA??mA,[stmt(call("$.set",id$1(mA),bA))])]}return _A}),EA=[...eA.instance.scope.declarations].filter(([mA,MA])=>(MA.kind==="prop"||MA.kind==="bindable_prop")&&!mA.startsWith("$$"));if(dev&&eA.runes){const mA=eA.exports.map(({name:fA,alias:LA})=>literal(LA??fA)),MA=[];for(const[fA,LA]of EA)LA.kind==="bindable_prop"&&MA.push(literal(LA.prop_alias??fA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(MA),array(mA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[mA,MA]of EA){const fA=MA.prop_alias??mA,LA=get(fA,[return_builder(call(id$1(mA)))]),_A=set(fA,[stmt(call(id$1(mA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&MA.initial&&(_A.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:MA.initial}),QA.push(LA,_A)}AA.compatibility.componentApi===4?QA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&QA.push(spread(call(id$1("$.legacy_api"))));const rA=[id$1("$$props"),literal(eA.runes)];dev&&rA.push(id$1(eA.name));const lA=block([...sA,...CA,...oA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:mA,alias:MA}of eA.exports)lA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(MA??mA),build_getter$1(id$1(mA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const mA=literal(eA.css.hash),MA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",mA),init("code",MA)]))),lA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||QA.length>0;if(uA&&(lA.body.unshift(stmt(call("$.push",...rA))),lA.body.push(QA.length>0?return_builder(call("$.pop",object$2(QA))):stmt(call("$.pop")))),eA.uses_rest_props){const mA=eA.exports.map(({name:MA,alias:fA})=>fA??MA);for(const[MA,fA]of eA.instance.scope.declarations)fA.kind==="bindable_prop"&&mA.push(fA.prop_alias??MA);lA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(mA.map(MA=>literal(MA))))))}if(eA.uses_props||eA.uses_rest_props){const mA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&mA.push(literal("$$host")),lA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(mA))))}eA.uses_slots&&lA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let cA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const mA of[...gA.body,...tA.hoisted])mA.type==="ImportDeclaration"?hA.push(mA):dA.push(mA);dA=[...hA,...dA];const pA=function_declaration(id$1(eA.name),cA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],lA);if(AA.hmr){const mA=id$1(eA.name),MA=id$1("$.HMR"),fA=member(mA,MA,!0),LA=member(id$1("module.default"),MA,!0),_A=[stmt(assignment("=",member(LA,"source"),member(fA,"source"))),stmt(call("$.set",member(fA,"source"),member(LA,"original")))];eA.css.hash&&_A.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const bA=block([stmt(assignment("=",mA,call("$.hmr",mA,thunk(member(fA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(_A))))]);dA.push(pA,if_builder(id$1("import.meta.hot"),bA),export_default(id$1(eA.name)))}else dA.push(export_default(pA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),eA.runes||dA.unshift(imports([],"svelte/internal/flags/legacy")),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),lA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&lA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(mA=>literal(mA)))))),eA.custom_element){const mA=eA.custom_element,MA=typeof mA=="boolean"?{}:mA.props||{},fA=[];for(const[RA,NA]of Object.entries(MA)){const FA=eA.instance.scope.get(RA),vA=(FA==null?void 0:FA.prop_alias)??RA;!NA.type&&((wA=FA==null?void 0:FA.initial)==null?void 0:wA.type)==="Literal"&&typeof(FA==null?void 0:FA.initial.value)=="boolean"&&(NA.type="Boolean");const xA=object$2([NA.attribute?init("attribute",literal(NA.attribute)):void 0,NA.reflect?init("reflect",literal(!0)):void 0,NA.type?init("type",literal(NA.type)):void 0].filter(Boolean));fA.push(init(vA,xA))}for(const[RA,NA]of EA){const FA=NA.prop_alias??RA;MA[FA]||fA.push(init(FA,object$2([])))}const LA=array([...eA.slot_names.keys()].map(RA=>literal(RA))),_A=array(eA.exports.map(({name:RA,alias:NA})=>literal(NA??RA))),bA=typeof mA=="boolean"||mA.shadow!=="none",JA=call("$.create_custom_element",id$1(eA.name),object$2(fA),LA,_A,literal(bA),typeof mA!="boolean"?mA.extend:void 0);if(typeof mA!="boolean"&&typeof mA.tag=="string"){const RA=stmt(call("customElements.define",literal(mA.tag),JA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(mA.tag)),null_instane),RA)):dA.push(RA)}else dA.push(stmt(JA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(Vg=process.cwd)==null?void 0:Vg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA)),warningFilter:fun(()=>!0)},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:removed('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:removed("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:removed("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:removed("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),CA=transform_component(sA,eA,BA);return CA.ast=to_public_ast(eA,gA,AA.modernAst),CA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"dom",dev:!1,filename:tA,css:"injected",runes:!0}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),BA=concat([header(nil_xit_proto.MessageType.MessageType_FileRequest),nil_xit_proto.FileRequest.encode({target:IA}).finish()]),{content:sA,metadata:CA}=await service_fetch(eA,BA,(oA,QA)=>{if(oA===nil_xit_proto.MessageType.MessageType_FileResponse){const EA=nil_xit_proto.FileResponse.decode(QA);if(EA.target===IA)return EA}});return tA&&tA(IA,CA),sA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>`import_map(${iA.pop()})`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}]);`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
60
60
 
61
61
  `),gA=AA.slice(0,tA).split(`;
62
62
  `);return`export const nil_xit_fn = async (import_map) => { ${transform_import(gA)}; ${AA.slice(tA+2)}};`},plugin=(eA,AA,tA)=>({name:"nil_xit_plugin",resolveId:hook_up("resolve_id",resolve_id(eA)),load:hook_up("load",load(eA,AA,tA)),transform:hook_up("transform",transform()),generateBundle:(gA,iA)=>{for(const IA of Object.values(iA))IA.type==="chunk"&&(IA.code=`data:text/javascript;base64,${encode(wrap_fe(IA))}`)}});var e,t="4.25.0",n={exports:{}};function s(){return e||(e=1,function(eA){const gA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iA=new Uint8Array(64),IA=new Uint8Array(128);for(let bA=0;bA<gA.length;bA++){const JA=gA.charCodeAt(bA);iA[bA]=JA,IA[JA]=bA}function BA(bA,JA){let RA=0,NA=0,FA=0;do{const xA=bA.next();FA=IA[xA],RA|=(31&FA)<<NA,NA+=5}while(32&FA);const vA=1&RA;return RA>>>=1,vA&&(RA=-2147483648|-RA),JA+RA}function sA(bA,JA,RA){let NA=JA-RA;NA=NA<0?-NA<<1|1:NA<<1;do{let FA=31&NA;NA>>>=5,NA>0&&(FA|=32),bA.write(iA[FA])}while(NA>0);return JA}function CA(bA,JA){return!(bA.pos>=JA)&&bA.peek()!==44}const oA=16384,QA=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:bA=>Buffer.from(bA.buffer,bA.byteOffset,bA.byteLength).toString()}:{decode(bA){let JA="";for(let RA=0;RA<bA.length;RA++)JA+=String.fromCharCode(bA[RA]);return JA}};class EA{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(oA)}write(JA){const{buffer:RA}=this;RA[this.pos++]=JA,this.pos===oA&&(this.out+=QA.decode(RA),this.pos=0)}flush(){const{buffer:JA,out:RA,pos:NA}=this;return NA>0?RA+QA.decode(JA.subarray(0,NA)):RA}}class rA{constructor(JA){this.pos=0,this.buffer=JA}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(JA){const{buffer:RA,pos:NA}=this,FA=RA.indexOf(JA,NA);return FA===-1?RA.length:FA}}const lA=[];function uA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[],FA=[];let vA=0;for(;RA.pos<JA;RA.pos++){vA=BA(RA,vA);const xA=BA(RA,0);if(!CA(RA,JA)){const DA=FA.pop();DA[2]=vA,DA[3]=xA;continue}const kA=BA(RA,0),aA=1&BA(RA,0)?[vA,xA,0,0,kA,BA(RA,0)]:[vA,xA,0,0,kA];let nA=lA;if(CA(RA,JA)){nA=[];do{const DA=BA(RA,0);nA.push(DA)}while(CA(RA,JA))}aA.vars=nA,NA.push(aA),FA.push(aA)}return NA}function cA(bA){const JA=new EA;for(let RA=0;RA<bA.length;)RA=hA(bA,RA,JA,[0]);return JA.flush()}function hA(bA,JA,RA,NA){const FA=bA[JA],{0:vA,1:xA,2:kA,3:aA,4:nA,vars:DA}=FA;JA>0&&RA.write(44),NA[0]=sA(RA,vA,NA[0]),sA(RA,xA,0),sA(RA,nA,0),sA(RA,FA.length===6?1:0,0),FA.length===6&&sA(RA,FA[5],0);for(const yA of DA)sA(RA,yA,0);for(JA++;JA<bA.length;){const yA=bA[JA],{0:GA,1:SA}=yA;if(GA>kA||GA===kA&&SA>=aA)break;JA=hA(bA,JA,RA,NA)}return RA.write(44),NA[0]=sA(RA,kA,NA[0]),sA(RA,aA,0),JA}function dA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[],FA=[];let vA=0,xA=0,kA=0,aA=0,nA=0,DA=0,yA=0,GA=0;do{const SA=RA.indexOf(";");let YA=0;for(;RA.pos<SA;RA.pos++){if(YA=BA(RA,YA),!CA(RA,SA)){const zA=FA.pop();zA[2]=vA,zA[3]=YA;continue}const UA=BA(RA,0),KA=2&UA,qA=4&UA;let $A,VA=null,PA=lA;if(1&UA){const zA=BA(RA,xA);kA=BA(RA,xA===zA?kA:0),xA=zA,$A=[vA,YA,0,0,zA,kA]}else $A=[vA,YA,0,0];if($A.isScope=!!qA,KA){const zA=aA,WA=nA;aA=BA(RA,aA);const Ag=zA===aA;nA=BA(RA,Ag?nA:0),DA=BA(RA,Ag&&WA===nA?DA:0),VA=[aA,nA,DA]}if($A.callsite=VA,CA(RA,SA)){PA=[];do{yA=vA,GA=YA;const zA=BA(RA,0);let WA;if(zA<-1){WA=[[BA(RA,0)]];for(let Ag=-1;Ag>zA;Ag--){const eg=yA;yA=BA(RA,yA),GA=BA(RA,yA===eg?GA:0);const sg=BA(RA,0);WA.push([sg,yA,GA])}}else WA=[[zA]];PA.push(WA)}while(CA(RA,SA))}$A.bindings=PA,NA.push($A),FA.push($A)}vA++,RA.pos=SA+1}while(RA.pos<JA);return NA}function pA(bA){if(bA.length===0)return"";const JA=new EA;for(let RA=0;RA<bA.length;)RA=wA(bA,RA,JA,[0,0,0,0,0,0,0]);return JA.flush()}function wA(bA,JA,RA,NA){const FA=bA[JA],{0:vA,1:xA,2:kA,3:aA,isScope:nA,callsite:DA,bindings:yA}=FA;if(NA[0]<vA?(mA(RA,NA[0],vA),NA[0]=vA,NA[1]=0):JA>0&&RA.write(44),NA[1]=sA(RA,FA[1],NA[1]),sA(RA,(FA.length===6?1:0)|(DA?2:0)|(nA?4:0),0),FA.length===6){const{4:GA,5:SA}=FA;GA!==NA[2]&&(NA[3]=0),NA[2]=sA(RA,GA,NA[2]),NA[3]=sA(RA,SA,NA[3])}if(DA){const{0:GA,1:SA,2:YA}=FA.callsite;GA!==NA[4]?(NA[5]=0,NA[6]=0):SA!==NA[5]&&(NA[6]=0),NA[4]=sA(RA,GA,NA[4]),NA[5]=sA(RA,SA,NA[5]),NA[6]=sA(RA,YA,NA[6])}if(yA)for(const GA of yA){GA.length>1&&sA(RA,-GA.length,0),sA(RA,GA[0][0],0);let SA=vA,YA=xA;for(let UA=1;UA<GA.length;UA++){const KA=GA[UA];SA=sA(RA,KA[1],SA),YA=sA(RA,KA[2],YA),sA(RA,KA[0],0)}}for(JA++;JA<bA.length;){const GA=bA[JA],{0:SA,1:YA}=GA;if(SA>kA||SA===kA&&YA>=aA)break;JA=wA(bA,JA,RA,NA)}return NA[0]<kA?(mA(RA,NA[0],kA),NA[0]=kA,NA[1]=0):RA.write(44),NA[1]=sA(RA,aA,NA[1]),JA}function mA(bA,JA,RA){do bA.write(59);while(++JA<RA)}function MA(bA){const{length:JA}=bA,RA=new rA(bA),NA=[];let FA=0,vA=0,xA=0,kA=0,aA=0;do{const nA=RA.indexOf(";"),DA=[];let yA=!0,GA=0;for(FA=0;RA.pos<nA;){let SA;FA=BA(RA,FA),FA<GA&&(yA=!1),GA=FA,CA(RA,nA)?(vA=BA(RA,vA),xA=BA(RA,xA),kA=BA(RA,kA),CA(RA,nA)?(aA=BA(RA,aA),SA=[FA,vA,xA,kA,aA]):SA=[FA,vA,xA,kA]):SA=[FA],DA.push(SA),RA.pos++}yA||fA(DA),NA.push(DA),RA.pos=nA+1}while(RA.pos<=JA);return NA}function fA(bA){bA.sort(LA)}function LA(bA,JA){return bA[0]-JA[0]}function _A(bA){const JA=new EA;let RA=0,NA=0,FA=0,vA=0;for(let xA=0;xA<bA.length;xA++){const kA=bA[xA];if(xA>0&&JA.write(59),kA.length===0)continue;let aA=0;for(let nA=0;nA<kA.length;nA++){const DA=kA[nA];nA>0&&JA.write(44),aA=sA(JA,DA[0],aA),DA.length!==1&&(RA=sA(JA,DA[1],RA),NA=sA(JA,DA[2],NA),FA=sA(JA,DA[3],FA),DA.length!==4&&(vA=sA(JA,DA[4],vA)))}}return JA.flush()}eA.decode=MA,eA.decodeGeneratedRanges=dA,eA.decodeOriginalScopes=uA,eA.encode=_A,eA.encodeGeneratedRanges=pA,eA.encodeOriginalScopes=cA,Object.defineProperty(eA,"__esModule",{value:!0})}(n.exports)),n.exports}var i=s();class r{constructor(AA){this.bits=AA instanceof r?AA.bits.slice():[]}add(AA){this.bits[AA>>5]|=1<<(31&AA)}has(AA){return!!(this.bits[AA>>5]&1<<(31&AA))}}let o=class $g{constructor(AA,tA,gA){this.start=AA,this.end=tA,this.original=gA,this.intro="",this.outro="",this.content=gA,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(AA){this.outro+=AA}appendRight(AA){this.intro=this.intro+AA}clone(){const AA=new $g(this.start,this.end,this.original);return AA.intro=this.intro,AA.outro=this.outro,AA.content=this.content,AA.storeName=this.storeName,AA.edited=this.edited,AA}contains(AA){return this.start<AA&&AA<this.end}eachNext(AA){let tA=this;for(;tA;)AA(tA),tA=tA.next}eachPrevious(AA){let tA=this;for(;tA;)AA(tA),tA=tA.previous}edit(AA,tA,gA){return this.content=AA,gA||(this.intro="",this.outro=""),this.storeName=tA,this.edited=!0,this}prependLeft(AA){this.outro=AA+this.outro}prependRight(AA){this.intro=AA+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(AA){const tA=AA-this.start,gA=this.original.slice(0,tA),iA=this.original.slice(tA);this.original=gA;const IA=new $g(AA,this.end,iA);return IA.outro=this.outro,this.outro="",this.end=AA,this.edited?(IA.edit("",!1),this.content=""):this.content=gA,IA.next=this.next,IA.next&&(IA.next.previous=IA),IA.previous=this,this.next=IA,IA}toString(){return this.intro+this.content+this.outro}trimEnd(AA){if(this.outro=this.outro.replace(AA,""),this.outro.length)return!0;const tA=this.content.replace(AA,"");return tA.length?(tA!==this.content&&(this.split(this.start+tA.length).edit("",void 0,!0),this.edited&&this.edit(tA,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(AA,""),!!this.intro.length||void 0)}trimStart(AA){if(this.intro=this.intro.replace(AA,""),this.intro.length)return!0;const tA=this.content.replace(AA,"");if(tA.length){if(tA!==this.content){const gA=this.split(this.end-tA.length);this.edited&&gA.edit(tA,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(AA,""),!!this.outro.length||void 0}};function a(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?eA=>globalThis.btoa(unescape(encodeURIComponent(eA))):typeof Buffer=="function"?eA=>Buffer.from(eA,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const l=a();class c{constructor(AA){this.version=3,this.file=AA.file,this.sources=AA.sources,this.sourcesContent=AA.sourcesContent,this.names=AA.names,this.mappings=i.encode(AA.mappings),AA.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=AA.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+l(this.toString())}}function d(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}const u=Object.prototype.toString;function h(eA){return u.call(eA)==="[object Object]"}function p(eA){const AA=eA.split(`