@knapsack/types 4.92.5--canary.491c1b2.0 → 4.92.5--canary.7566.98f635e.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,180 +1,181 @@
1
- 'use strict';var zod=require('zod');var Pf=Object.create;var Cn=Object.defineProperty;var jf=Object.getOwnPropertyDescriptor;var Rf=Object.getOwnPropertyNames;var Ff=Object.getPrototypeOf,Df=Object.prototype.hasOwnProperty;var a=(e,t)=>Cn(e,"name",{value:t,configurable:true});var ks=(e,t)=>()=>(e&&(t=e(e=0)),t);var Yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$s=(e,t)=>{for(var n in t)Cn(e,n,{get:t[n],enumerable:true});},Lf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rf(t))!Df.call(e,o)&&o!==n&&Cn(e,o,{get:()=>t[o],enumerable:!(r=jf(t,o))||r.enumerable});return e};var qf=(e,t,n)=>(n=e!=null?Pf(Ff(e)):{},Lf(Cn(n,"default",{value:e,enumerable:true}),e));function Sn(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),e.write(Su[o]);}while(r>0);return t}function Tu(e){let t=new Rg,n=0,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let c=e[s];if(s>0&&t.write(Pg),c.length===0)continue;let u=0;for(let l=0;l<c.length;l++){let f=c[l];l>0&&t.write(Ag),u=Sn(t,f[0],u),f.length!==1&&(n=Sn(t,f[1],n),r=Sn(t,f[2],r),o=Sn(t,f[3],o),f.length!==4&&(i=Sn(t,f[4],i)));}}return t.flush()}var Ag,Pg,bu,Su,jg,wu,vu,Rg,Eu=ks(()=>{Ag=44,Pg=59,bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Su=new Uint8Array(64),jg=new Uint8Array(128);for(let e=0;e<bu.length;e++){let t=bu.charCodeAt(e);Su[e]=t,jg[t]=e;}a(Sn,"encodeInteger");wu=1024*16,vu=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Rg=class{static{a(this,"StringWriter");}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(wu);}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===wu&&(this.out+=vu.decode(t),this.pos=0);}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+vu.decode(e.subarray(0,n)):t}};a(Tu,"encode");});var Ou={};$s(Ou,{Bundle:()=>Ki,SourceMap:()=>En,default:()=>xn});function Fg(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function Lg(e){let t=e.split(`
2
- `),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return " ";let o=r.reduce((i,s)=>{let c=/^ +/.exec(s)[0].length;return Math.min(c,i)},1/0);return new Array(o+1).join(" ")}function Mu(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let o=n.length;for(;o--;)n[o]="..";}return n.concat(r).join("/")}function _u(e){return qg.call(e)==="[object Object]"}function Vi(e){let t=e.split(`
3
- `),n=[];for(let r=0,o=0;r<t.length;r++)n.push(o),o+=t[r].length+1;return a(function(o){let i=0,s=n.length;for(;i<s;){let l=i+s>>1;o<n[l]?s=l:i=l+1;}let c=i-1,u=o-n[c];return {line:c,column:u}},"locate")}var kr,$r,Dg,En,qg,Bg,Nr,Tn,zt,xn,xu,Ki,Iu=ks(()=>{Eu();kr=class e{static{a(this,"BitSet");}constructor(t){this.bits=t instanceof e?t.bits.slice():[];}add(t){this.bits[t>>5]|=1<<(t&31);}has(t){return !!(this.bits[t>>5]&1<<(t&31))}},$r=class e{static{a(this,"Chunk");}constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=false,this.edited=false,this.previous=null,this.next=null;}appendLeft(t){this.outro+=t;}appendRight(t){this.intro=this.intro+t;}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next;}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous;}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=true,this}prependLeft(t){this.outro=t+this.outro;}prependRight(t){this.intro=t+this.intro;}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=false,this.edited=false);}split(t){let n=t-this.start,r=this.original.slice(0,n),o=this.original.slice(n);this.original=r;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",false),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return true;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,true),this.edited&&this.edit(n,this.storeName,true)),true;if(this.edit("",void 0,true),this.intro=this.intro.replace(t,""),this.intro.length)return true}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return true;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,true),this.edit("",void 0,true);}return true}else if(this.edit("",void 0,true),this.outro=this.outro.replace(t,""),this.outro.length)return true}};a(Fg,"getBtoa");Dg=Fg(),En=class{static{a(this,"SourceMap");}constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Tu(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId);}toString(){return JSON.stringify(this)}toUrl(){return "data:application/json;charset=utf-8;base64,"+Dg(this.toString())}};a(Lg,"guessIndent");a(Mu,"getRelativePath");qg=Object.prototype.toString;a(_u,"isObject");a(Vi,"getLocator");Bg=/\w/,Nr=class{static{a(this,"Mappings");}constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null;}addEdit(t,n,r,o){if(n.length){let i=n.length-1,s=n.indexOf(`
4
- `,0),c=-1;for(;s>=0&&i>s;){let l=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&l.push(o),this.rawSegments.push(l),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=s,s=n.indexOf(`
5
- `,s+1);}let u=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&u.push(o),this.rawSegments.push(u),this.advance(n.slice(c+1));}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null;}addUneditedChunk(t,n,r,o,i){let s=n.start,c=true,u=false;for(;s<n.end;){if(r[s]===`
6
- `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=true,u=false;else {if(this.hires||c||i.has(s)){let l=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?Bg.test(r[s])?u||(this.rawSegments.push(l),u=true):(this.rawSegments.push(l),u=false):this.rawSegments.push(l);}o.column+=1,this.generatedCodeColumn+=1,c=false;}s+=1;}this.pending=null;}advance(t){if(!t)return;let n=t.split(`
7
- `);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;}this.generatedCodeColumn+=n[n.length-1].length;}},Tn=`
8
- `,zt={insertLeft:false,insertRight:false,storeName:false},xn=class e{static{a(this,"MagicString");}constructor(t,n={}){let r=new $r(0,t.length,t);Object.defineProperties(this,{original:{writable:true,value:t},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:n.filename},indentExclusionRanges:{writable:true,value:n.indentExclusionRanges},sourcemapLocations:{writable:true,value:new kr},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:void 0},ignoreList:{writable:true,value:n.ignoreList},offset:{writable:true,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r;}addSourcemapLocation(t){this.sourcemapLocations.add(t);}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let o=n.next,i=o&&o.clone();i&&(r.next=i,i.previous=r,r=i),n=o;}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new kr(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),o=new Nr(t.hires),i=Vi(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let c=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(n,s.content,c,s.storeName?r.indexOf(s.original):-1):o.addUneditedChunk(n,s,this.original,c,this.sourcemapLocations),s.outro.length&&o.advance(s.outro);}),this.outro&&o.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?Mu(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new En(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Lg(this.original));}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(_u(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(f=>{for(let h=f[0];h<f[1];h+=1)o[h]=true;});let i=n.indentStart!==false,s=a(l=>i?`${t}${l}`:(i=true,l),"replacer");this.intro=this.intro.replace(r,s);let c=0,u=this.firstChunk;for(;u;){let l=u.end;if(u.edited)o[c]||(u.content=u.content.replace(r,s),u.content.length&&(i=u.content[u.content.length-1]===`
9
- `));else for(c=u.start;c<l;){if(!o[c]){let f=this.original[c];f===`
10
- `?i=true:f!=="\r"&&i&&(i=false,c===u.start||(this._splitChunk(u,c),u=u.next),u.prependRight(t));}c+=1;}c=u.end,u=u.next;}return this.outro=this.outro.replace(r,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return zt.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),zt.insertLeft=true),this.appendLeft(t,n)}insertRight(t,n){return zt.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),zt.insertRight=true),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let o=this.byStart[t],i=this.byEnd[n],s=o.previous,c=i.next,u=this.byStart[r];if(!u&&i===this.lastChunk)return this;let l=u?u.previous:this.lastChunk;return s&&(s.next=c),c&&(c.previous=s),l&&(l.next=o),u&&(u.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=l,i.next=u||null,l||(this.firstChunk=o),u||(this.lastChunk=i),this}overwrite(t,n,r,o){return o=o||{},this.update(t,n,r,{...o,overwrite:!o.contentOnly})}update(t,n,r,o){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),o===true&&(zt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),zt.storeName=true),o={storeName:true});let i=o!==void 0?o.storeName:false,s=o!==void 0?o.overwrite:false;if(i){let l=this.original.slice(t,n);Object.defineProperty(this.storedNames,l,{writable:true,value:true,enumerable:true});}let c=this.byStart[t],u=this.byEnd[n];if(c){let l=c;for(;l!==u;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");l=l.next,l.edit("",false);}c.edit(r,i,!s);}else {let l=new $r(t,n,"").edit(r,i);u.next=l,l.previous=u;}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Tn);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Tn),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n;}if(r.content.length>0){if(t=r.content.lastIndexOf(Tn),t!==-1)return r.content.substr(t+1)+n;n=r.content+n;}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Tn),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n;}}while(r=r.previous);return t=this.intro.lastIndexOf(Tn),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}let r="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<n&&o.end>=n)return r;o=o.next;}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(r+=o.intro);let s=o.start<n&&o.end>=n;if(s&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let c=i===o?t-o.start:0,u=s?o.content.length+n-o.end:o.content.length;if(r+=o.content.slice(c,u),o.outro&&(!s||o.end===n)&&(r+=o.outro),s)break;o=o.next;}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n,o=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n;}}_splitChunk(t,n){if(t.edited&&t.content.length){let o=Vi(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,true}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return false;while(t=t.next);return true}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return true;let r=this.lastChunk;do{let o=r.end,i=r.trimEnd(n);if(r.end!==o&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.previous;}while(r);return false}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return true;let r=this.firstChunk;do{let o=r.end,i=r.trimStart(n);if(r.end!==o&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.next;}while(r);return false}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,s){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(c,u)=>u==="$"?"$":u==="&"?i[0]:+u<i.length?i[+u]:`$${u}`):n(...i,i.index,s,i.groups)}a(r,"getReplacement");function o(i,s){let c,u=[];for(;c=i.exec(s);)u.push(c);return u}if(a(o,"matchAll"),t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let c=r(s,this.original);c!==s[0]&&this.overwrite(s.index,s.index+s[0].length,c);}});else {let i=this.original.match(t);if(i&&i.index!=null){let s=r(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s);}}return this}_replaceString(t,n){let{original:r}=this,o=r.indexOf(t);return o!==-1&&(typeof n=="function"&&(n=n(t,o,r)),t!==n&&this.overwrite(o,o+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,o=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+o)){let s=r.slice(i,i+o),c=n;typeof n=="function"&&(c=n(s,i,r)),s!==c&&this.overwrite(i,i+o,c);}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}},xu=Object.prototype.hasOwnProperty,Ki=class e{static{a(this,"Bundle");}constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
- `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={};}addSource(t){if(t instanceof xn)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!_u(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{xu.call(t,n)||(t[n]=t.content[n]);}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!xu.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else {let n=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==n.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,n){return this.addSource({content:new xn(t),separator:n&&n.separator||""}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{t.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator});}),t}generateDecodedMap(t={}){let n=[],r;this.sources.forEach(i=>{Object.keys(i.content.storedNames).forEach(s=>{~n.indexOf(s)||n.push(s);});});let o=new Nr(t.hires);return this.intro&&o.advance(this.intro),this.sources.forEach((i,s)=>{s>0&&o.advance(this.separator);let c=i.filename?this.uniqueSourceIndexByFilename[i.filename]:-1,u=i.content,l=Vi(u.original);u.intro&&o.advance(u.intro),u.firstChunk.eachNext(f=>{let h=l(f.start);f.intro.length&&o.advance(f.intro),i.filename?f.edited?o.addEdit(c,f.content,h,f.storeName?n.indexOf(f.original):-1):o.addUneditedChunk(c,f,u.original,h,u.sourcemapLocations):o.advance(f.content),f.outro.length&&o.advance(f.outro);}),u.outro&&o.advance(u.outro),i.ignoreList&&c!==-1&&(r===void 0&&(r=[]),r.push(c));}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(i=>t.file?Mu(t.file,i.filename):i.filename),sourcesContent:this.uniqueSources.map(i=>t.includeContent?i.content:null),names:n,mappings:o.raw,x_google_ignoreList:r}}generateMap(t){return new En(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(n=>{let r=n.content._getRawIndentString();r!==null&&(t[r]||(t[r]=0),t[r]+=1);}),Object.keys(t).sort((n,r)=>t[n]-t[r])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let n=!this.intro||this.intro.slice(-1)===`
12
- `;return this.sources.forEach((r,o)=>{let i=r.separator!==void 0?r.separator:this.separator,s=n||o>0&&/\r?\n$/.test(i);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:s}),n=r.content.lastChar()===`
13
- `;}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(r,o)=>o>0?t+r:r)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((n,r)=>{let o=n.separator!==void 0?n.separator:this.separator;return (r>0?o:"")+n.content.toString()}).join("");return this.intro+t}isEmpty(){return !(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,n)=>t+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let r,o=0;do if(r=this.sources[o++],!r)break;while(!r.content.trimStartAborted(t))}return this}trimEnd(t){let n=new RegExp((t||"\\s")+"+$"),r,o=this.sources.length-1;do if(r=this.sources[o--],!r){this.intro=this.intro.replace(n,"");break}while(!r.content.trimEndAborted(t));return this}};});var Mf=Yt(xf=>{Object.defineProperty(xf,"__esModule",{value:true});});var Of=Yt(_f=>{Object.defineProperty(_f,"__esModule",{value:true});});var Cf=Yt(If=>{Object.defineProperty(If,"__esModule",{value:true});});var $f=Yt(kf=>{Object.defineProperty(kf,"__esModule",{value:true});});var Nf=Yt(le=>{var jb=le&&le.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:true,get:a(function(){return t[n]},"get")}),Object.defineProperty(e,r,o);}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];})),zr=le&&le.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jb(t,e,n);};Object.defineProperty(le,"__esModule",{value:true});le.expectTypeOf=void 0;zr(Mf(),le);zr(Of(),le);zr(Cf(),le);zr($f(),le);var he=a(()=>true,"fn"),Rb=a(e=>{let t=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],n={toBeAny:he,toBeUnknown:he,toBeNever:he,toBeFunction:he,toBeObject:he,toBeArray:he,toBeString:he,toBeNumber:he,toBeBoolean:he,toBeVoid:he,toBeSymbol:he,toBeNull:he,toBeUndefined:he,toBeNullable:he,toBeBigInt:he,toMatchTypeOf:he,toEqualTypeOf:he,toBeConstructibleWith:he,toMatchObjectType:he,toExtend:he,map:le.expectTypeOf,toBeCallableWith:le.expectTypeOf,extract:le.expectTypeOf,exclude:le.expectTypeOf,pick:le.expectTypeOf,omit:le.expectTypeOf,toHaveProperty:le.expectTypeOf,parameter:le.expectTypeOf};return t.forEach(o=>Object.defineProperty(n,o,{get:a(()=>(0, le.expectTypeOf)({}),"get")})),n},"expectTypeOf");le.expectTypeOf=Rb;});var Ns={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function Kr(e){return String(e)}a(Kr,"g");Kr.open="";Kr.close="";function Bf(){let e=typeof process<"u"?process:void 0,t=e?.env||{},n=t.FORCE_TTY!=="false",r=e?.argv||[];return !("NO_COLOR"in t||r.includes("--no-color"))&&("FORCE_COLOR"in t||r.includes("--color")||e?.platform==="win32"||n&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}a(Bf,"h");function zf(){let e=Bf(),t=a((i,s,c,u)=>{let l="",f=0;do l+=i.substring(f,u)+c,f=u+s.length,u=i.indexOf(s,f);while(~u);return l+i.substring(f)},"n"),n=a((i,s,c=i)=>{let u=a(l=>{let f=String(l),h=f.indexOf(s,i.length);return ~h?i+t(f,s,c,h)+s:i+f+s},"o");return u.open=i,u.close=s,u},"a"),r={isColorSupported:e},o=a(i=>`\x1B[${i}m`,"c");for(let i in Ns){let s=Ns[i];r[i]=e?n(o(s[0]),o(s[1]),s[2]):Kr;}return r}a(zf,"f");var ne=zf();function Vs(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:true,get:a(function(){return n[r]},"get")});}});}),Object.freeze(e)}a(Vs,"_mergeNamespaces");function Uf(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}a(Uf,"getKeysOfEnumerableProperties");function Xt(e,t,n,r,o,i,s=": "){let c="",u=0,l=e.next();if(!l.done){c+=t.spacingOuter;let f=n+t.indent;for(;!l.done;){if(c+=f,u++===t.maxWidth){c+="\u2026";break}let h=i(l.value[0],t,f,r,o),d=i(l.value[1],t,f,r,o);c+=h+s+d,l=e.next(),l.done?t.min||(c+=","):c+=`,${t.spacingInner}`;}c+=t.spacingOuter+n;}return c}a(Xt,"printIteratorEntries");function Yr(e,t,n,r,o,i){let s="",c=0,u=e.next();if(!u.done){s+=t.spacingOuter;let l=n+t.indent;for(;!u.done;){if(s+=l,c++===t.maxWidth){s+="\u2026";break}s+=i(u.value,t,l,r,o),u=e.next(),u.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+n;}return s}a(Yr,"printIteratorValues");function An(e,t,n,r,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let c=a(l=>l instanceof DataView,"isDataView"),u=c(e)?e.byteLength:e.length;if(u>0){s+=t.spacingOuter;let l=n+t.indent;for(let f=0;f<u;f++){if(s+=l,f===t.maxWidth){s+="\u2026";break}(c(e)||f in e)&&(s+=i(c(e)?e.getInt8(f):e[f],t,l,r,o)),f<u-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a(An,"printListItems");function Zr(e,t,n,r,o,i){let s="",c=Uf(e,t.compareKeys);if(c.length>0){s+=t.spacingOuter;let u=n+t.indent;for(let l=0;l<c.length;l++){let f=c[l],h=i(f,t,u,r,o),d=i(e[f],t,u,r,o);s+=`${u+h}: ${d}`,l<c.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a(Zr,"printObjectProperties");var Wf=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,kn=" ",Vf=a((e,t,n,r,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+kn}[${An(e.sample,t,n,r,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+kn}{${Zr(e.sample,t,n,r,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+kn+i(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),Kf=a(e=>e&&e.$$typeof===Wf,"test$5"),Gf={serialize:Vf,test:Kf},Hf=" ",Ks=new Set(["DOMStringMap","NamedNodeMap"]),Jf=/^(?:HTML\w*Collection|NodeList)$/;function Yf(e){return Ks.has(e)||Jf.test(e)}a(Yf,"testName");var Zf=a(e=>e&&e.constructor&&!!e.constructor.name&&Yf(e.constructor.name),"test$4");function Xf(e){return e.constructor.name==="NamedNodeMap"}a(Xf,"isNamedNodeMap");var Qf=a((e,t,n,r,o,i)=>{let s=e.constructor.name;return ++r>t.maxDepth?`[${s}]`:(t.min?"":s+Hf)+(Ks.has(s)?`{${Zr(Xf(e)?[...e].reduce((c,u)=>(c[u.name]=u.value,c),{}):{...e},t,n,r,o,i)}}`:`[${An([...e],t,n,r,o,i)}]`)},"serialize$4"),eh={serialize:Qf,test:Zf};function Gs(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}a(Gs,"escapeHTML");function Xr(e,t,n,r,o,i,s){let c=r+n.indent,u=n.colors;return e.map(l=>{let f=t[l];if(typeof f=="string"&&f[0]==="_"&&f.startsWith("__vitest_")&&f.match(/__vitest_\d+__/))return "";let h=s(f,n,c,o,i);return typeof f!="string"&&(h.includes(`
14
- `)&&(h=n.spacingOuter+c+h+n.spacingOuter+r),h=`{${h}}`),`${n.spacingInner+r+u.prop.open+l+u.prop.close}=${u.value.open}${h}${u.value.close}`}).join("")}a(Xr,"printProps");function jn(e,t,n,r,o,i){return e.map(s=>t.spacingOuter+n+(typeof s=="string"?Hs(s,t):i(s,t,n,r,o))).join("")}a(jn,"printChildren");function th(e,t,n,r,o,i){return t.printShadowRoot===false?"":[`${t.spacingOuter+n}#shadow-root`,jn(e,t,n+t.indent,r,o,i)].join("")}a(th,"printShadowRoot");function Hs(e,t){let n=t.colors.content;return n.open+Gs(e)+n.close}a(Hs,"printText");function nh(e,t){let n=t.colors.comment;return `${n.open}<!--${Gs(e)}-->${n.close}`}a(nh,"printComment");function Qr(e,t,n,r,o){let i=r.colors.tag;return `${i.open}<${e}${t&&i.close+t+r.spacingOuter+o+i.open}${n?`>${i.close}${n}${r.spacingOuter}${o}${i.open}</${e}`:`${t&&!r.min?"":" "}/`}>${i.close}`}a(Qr,"printElement");function eo(e,t){let n=t.colors.tag;return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}a(eo,"printElementAsLeaf");var rh=1,Js=3,Ys=8,Zs=11,oh=/^(?:(?:HTML|SVG)\w*)?Element$/;function ih(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return false}}a(ih,"testHasAttribute");function sh(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||ih(e);return n===rh&&(oh.test(t)||o)||n===Js&&t==="Text"||n===Ys&&t==="Comment"||n===Zs&&t==="DocumentFragment"}a(sh,"testNode");var ah=a(e=>e?.constructor?.name&&sh(e),"test$3");function ch(e){return e.nodeType===Js}a(ch,"nodeIsText");function lh(e){return e.nodeType===Ys}a(lh,"nodeIsComment");function $n(e){return e.nodeType===Zs}a($n,"nodeIsFragment");var uh=a((e,t,n,r,o,i)=>{if(ch(e))return Hs(e.data,t);if(lh(e))return nh(e.data,t);let s=$n(e)?"DocumentFragment":e.tagName.toLowerCase();return ++r>t.maxDepth?eo(s,t):Qr(s,Xr($n(e)?[]:Array.from(e.attributes,c=>c.name).sort(),$n(e)?{}:[...e.attributes].reduce((c,u)=>(c[u.name]=u.value,c),{}),t,n+t.indent,r,o,i),($n(e)||!e.shadowRoot?"":th(Array.prototype.slice.call(e.shadowRoot.children),t,n+t.indent,r,o,i))+jn(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,i),t,n)},"serialize$3"),fh={serialize:uh,test:ah},hh="@@__IMMUTABLE_ITERABLE__@@",dh="@@__IMMUTABLE_LIST__@@",ph="@@__IMMUTABLE_KEYED__@@",mh="@@__IMMUTABLE_MAP__@@",As="@@__IMMUTABLE_ORDERED__@@",gh="@@__IMMUTABLE_RECORD__@@",yh="@@__IMMUTABLE_SEQ__@@",bh="@@__IMMUTABLE_SET__@@",wh="@@__IMMUTABLE_STACK__@@",Nt=a(e=>`Immutable.${e}`,"getImmutableName"),Rn=a(e=>`[${e}]`,"printAsLeaf"),Zt=" ",Ps="\u2026";function vh(e,t,n,r,o,i,s){return ++r>t.maxDepth?Rn(Nt(s)):`${Nt(s)+Zt}{${Xt(e.entries(),t,n,r,o,i)}}`}a(vh,"printImmutableEntries");function Sh(e){let t=0;return {next(){if(t<e._keys.length){let n=e._keys[t++];return {done:false,value:[n,e.get(n)]}}return {done:true,value:void 0}}}}a(Sh,"getRecordEntries");function Th(e,t,n,r,o,i){let s=Nt(e._name||"Record");return ++r>t.maxDepth?Rn(s):`${s+Zt}{${Xt(Sh(e),t,n,r,o,i)}}`}a(Th,"printImmutableRecord");function Eh(e,t,n,r,o,i){let s=Nt("Seq");return ++r>t.maxDepth?Rn(s):e[ph]?`${s+Zt}{${e._iter||e._object?Xt(e.entries(),t,n,r,o,i):Ps}}`:`${s+Zt}[${e._iter||e._array||e._collection||e._iterable?Yr(e.values(),t,n,r,o,i):Ps}]`}a(Eh,"printImmutableSeq");function Gr(e,t,n,r,o,i,s){return ++r>t.maxDepth?Rn(Nt(s)):`${Nt(s)+Zt}[${Yr(e.values(),t,n,r,o,i)}]`}a(Gr,"printImmutableValues");var xh=a((e,t,n,r,o,i)=>e[mh]?vh(e,t,n,r,o,i,e[As]?"OrderedMap":"Map"):e[dh]?Gr(e,t,n,r,o,i,"List"):e[bh]?Gr(e,t,n,r,o,i,e[As]?"OrderedSet":"Set"):e[wh]?Gr(e,t,n,r,o,i,"Stack"):e[yh]?Eh(e,t,n,r,o,i):Th(e,t,n,r,o,i),"serialize$2"),Mh=a(e=>e&&(e[hh]===true||e[gh]===true),"test$2"),_h={serialize:xh,test:Mh};function Xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Xs,"getDefaultExportFromCjs");var Hr={exports:{}},Q={};var js;function Oh(){if(js)return Q;js=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case o:case r:case u:case l:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case c:case h:case f:return y;case i:return y;default:return v}}case t:return v}}}return a(m,"typeOf"),Q.ContextConsumer=i,Q.ContextProvider=s,Q.Element=e,Q.ForwardRef=c,Q.Fragment=n,Q.Lazy=h,Q.Memo=f,Q.Portal=t,Q.Profiler=o,Q.StrictMode=r,Q.Suspense=u,Q.SuspenseList=l,Q.isContextConsumer=function(y){return m(y)===i},Q.isContextProvider=function(y){return m(y)===s},Q.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Q.isForwardRef=function(y){return m(y)===c},Q.isFragment=function(y){return m(y)===n},Q.isLazy=function(y){return m(y)===h},Q.isMemo=function(y){return m(y)===f},Q.isPortal=function(y){return m(y)===t},Q.isProfiler=function(y){return m(y)===o},Q.isStrictMode=function(y){return m(y)===r},Q.isSuspense=function(y){return m(y)===u},Q.isSuspenseList=function(y){return m(y)===l},Q.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===u||y===l||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===f||y.$$typeof===s||y.$$typeof===i||y.$$typeof===c||y.$$typeof===p||y.getModuleId!==void 0)},Q.typeOf=m,Q}a(Oh,"requireReactIs_production");var Rs;function Ih(){return Rs||(Rs=1,Hr.exports=Oh()),Hr.exports}a(Ih,"requireReactIs$1");var Qs=Ih(),Ch=Xs(Qs),kh=Vs({__proto__:null,default:Ch},[Qs]),Jr={exports:{}},Y={};var Fs;function $h(){if(Fs)return Y;Fs=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var S=v.$$typeof;switch(S){case e:switch(v=v.type,v){case n:case o:case r:case l:case f:return v;default:switch(v=v&&v.$$typeof,v){case c:case s:case u:case d:case h:case i:return v;default:return S}}case t:return S}}}return a(y,"v"),Y.ContextConsumer=s,Y.ContextProvider=i,Y.Element=e,Y.ForwardRef=u,Y.Fragment=n,Y.Lazy=d,Y.Memo=h,Y.Portal=t,Y.Profiler=o,Y.StrictMode=r,Y.Suspense=l,Y.SuspenseList=f,Y.isAsyncMode=function(){return false},Y.isConcurrentMode=function(){return false},Y.isContextConsumer=function(v){return y(v)===s},Y.isContextProvider=function(v){return y(v)===i},Y.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Y.isForwardRef=function(v){return y(v)===u},Y.isFragment=function(v){return y(v)===n},Y.isLazy=function(v){return y(v)===d},Y.isMemo=function(v){return y(v)===h},Y.isPortal=function(v){return y(v)===t},Y.isProfiler=function(v){return y(v)===o},Y.isStrictMode=function(v){return y(v)===r},Y.isSuspense=function(v){return y(v)===l},Y.isSuspenseList=function(v){return y(v)===f},Y.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===l||v===f||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===h||v.$$typeof===i||v.$$typeof===s||v.$$typeof===u||v.$$typeof===m||v.getModuleId!==void 0)},Y.typeOf=y,Y}a($h,"requireReactIs_production_min");var Ds;function Nh(){return Ds||(Ds=1,Jr.exports=$h()),Jr.exports}a(Nh,"requireReactIs");var ea=Nh(),Ah=Xs(ea),Ph=Vs({__proto__:null,default:Ah},[ea]),jh=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],bt=Object.fromEntries(jh.map(e=>[e,t=>Ph[e](t)||kh[e](t)]));function ta(e,t=[]){if(Array.isArray(e))for(let n of e)ta(n,t);else e!=null&&e!==false&&e!==""&&t.push(e);return t}a(ta,"getChildren");function Ls(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(bt.isFragment(e))return "React.Fragment";if(bt.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if(bt.isContextProvider(e))return "Context.Provider";if(bt.isContextConsumer(e))return "Context.Consumer";if(bt.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(bt.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return "UNDEFINED"}a(Ls,"getType");function Rh(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}a(Rh,"getPropKeys$1");var Fh=a((e,t,n,r,o,i)=>++r>t.maxDepth?eo(Ls(e),t):Qr(Ls(e),Xr(Rh(e),e.props,t,n+t.indent,r,o,i),jn(ta(e.props.children),t,n+t.indent,r,o,i),t,n),"serialize$1"),Dh=a(e=>e!=null&&bt.isElement(e),"test$1"),Lh={serialize:Fh,test:Dh},qh=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Bh(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}a(Bh,"getPropKeys");var zh=a((e,t,n,r,o,i)=>++r>t.maxDepth?eo(e.type,t):Qr(e.type,e.props?Xr(Bh(e),e.props,t,n+t.indent,r,o,i):"",e.children?jn(e.children,t,n+t.indent,r,o,i):"",t,n),"serialize"),Uh=a(e=>e&&e.$$typeof===qh,"test"),Wh={serialize:zh,test:Uh},na=Object.prototype.toString,Vh=Date.prototype.toISOString,Kh=Error.prototype.toString,qs=RegExp.prototype.toString;function Nn(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}a(Nn,"getConstructorName");function Gh(e){return typeof window<"u"&&e===window}a(Gh,"isWindow");var Hh=/^Symbol\((.*)\)(.*)$/,Jh=/\n/g,Pn=class extends Error{static{a(this,"PrettyFormatPluginError");}constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name;}};function Yh(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}a(Yh,"isToStringedArrayType");function Zh(e){return Object.is(e,-0)?"-0":String(e)}a(Zh,"printNumber");function Xh(e){return `${e}n`}a(Xh,"printBigInt");function Bs(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}a(Bs,"printFunction");function zs(e){return String(e).replace(Hh,"Symbol($1)")}a(zs,"printSymbol");function Us(e){return `[${Kh.call(e)}]`}a(Us,"printError");function ra(e,t,n,r){if(e===true||e===false)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return Zh(e);if(o==="bigint")return Xh(e);if(o==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Bs(e,t);if(o==="symbol")return zs(e);let i=na.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Bs(e,t):i==="[object Symbol]"?zs(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Vh.call(e):i==="[object Error]"?Us(e):i==="[object RegExp]"?n?qs.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):qs.call(e):e instanceof Error?Us(e):null}a(ra,"printBasicValue");function oa(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++r>t.maxDepth,c=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return ut(e.toJSON(),t,n,r,o,true);let u=na.call(e);return u==="[object Arguments]"?s?"[Arguments]":`${c?"":"Arguments "}[${An(e,t,n,r,o,ut)}]`:Yh(u)?s?`[${e.constructor.name}]`:`${c||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${An(e,t,n,r,o,ut)}]`:u==="[object Map]"?s?"[Map]":`Map {${Xt(e.entries(),t,n,r,o,ut," => ")}}`:u==="[object Set]"?s?"[Set]":`Set {${Yr(e.values(),t,n,r,o,ut)}}`:s||Gh(e)?`[${Nn(e)}]`:`${c||!t.printBasicPrototype&&Nn(e)==="Object"?"":`${Nn(e)} `}{${Zr(e,t,n,r,o,ut)}}`}a(oa,"printComplexValue");var Qh={test:a(e=>e&&e instanceof Error,"test"),serialize(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o,e];let s=++r>t.maxDepth,{message:c,cause:u,...l}=e,f={message:c,...typeof u<"u"?{cause:u}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},h=e.name!=="Error"?e.name:Nn(e);return s?`[${h}]`:`${h} {${Xt(Object.entries(f).values(),t,n,r,o,i)}}`}};function ed(e){return e.serialize!=null}a(ed,"isNewPlugin");function ia(e,t,n,r,o,i){let s;try{s=ed(e)?e.serialize(t,n,r,o,i,ut):e.print(t,c=>ut(c,n,r,o,i),c=>{let u=r+n.indent;return u+c.replaceAll(Jh,`
15
- ${u}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors);}catch(c){throw new Pn(c.message,c.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(ia,"printPlugin");function sa(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Pn(r.message,r.stack)}return null}a(sa,"findPlugin");function ut(e,t,n,r,o,i){let s=sa(t.plugins,e);if(s!==null)return ia(s,e,t,n,r,o);let c=ra(e,t.printFunctionName,t.escapeRegex,t.escapeString);return c!==null?c:oa(e,t,n,r,o,i)}a(ut,"printer");var to={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},aa=Object.keys(to),Ge={callToJSON:true,compareKeys:void 0,escapeRegex:false,escapeString:true,highlight:false,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:false,plugins:[],printBasicPrototype:true,printFunctionName:true,printShadowRoot:true,theme:to};function td(e){for(let t of Object.keys(e))if(!Object.hasOwn(Ge,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(td,"validateOptions");function nd(){return aa.reduce((e,t)=>{let n=to[t],r=n&&ne[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}a(nd,"getColorsHighlight");function rd(){return aa.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}a(rd,"getColorsEmpty");function ca(e){return e?.printFunctionName??Ge.printFunctionName}a(ca,"getPrintFunctionName");function la(e){return e?.escapeRegex??Ge.escapeRegex}a(la,"getEscapeRegex");function ua(e){return e?.escapeString??Ge.escapeString}a(ua,"getEscapeString");function Ws(e){return {callToJSON:e?.callToJSON??Ge.callToJSON,colors:e?.highlight?nd():rd(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Ge.compareKeys,escapeRegex:la(e),escapeString:ua(e),indent:e?.min?"":od(e?.indent??Ge.indent),maxDepth:e?.maxDepth??Ge.maxDepth,maxWidth:e?.maxWidth??Ge.maxWidth,min:e?.min??Ge.min,plugins:e?.plugins??Ge.plugins,printBasicPrototype:e?.printBasicPrototype??true,printFunctionName:ca(e),printShadowRoot:e?.printShadowRoot??true,spacingInner:e?.min?" ":`
1
+ 'use strict';var zod=require('zod');var Eh=Object.create;var Ln=Object.defineProperty;var vh=Object.getOwnPropertyDescriptor;var xh=Object.getOwnPropertyNames;var kh=Object.getPrototypeOf,Mh=Object.prototype.hasOwnProperty;var i=(e,t)=>Ln(e,"name",{value:t,configurable:true});var fa=(e,t)=>()=>(e&&(t=e(e=0)),t);var on=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ha=(e,t)=>{for(var n in t)Ln(e,n,{get:t[n],enumerable:true});},Ch=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xh(t))!Mh.call(e,o)&&o!==n&&Ln(e,o,{get:()=>t[o],enumerable:!(r=vh(t,o))||r.enumerable});return e};var _h=(e,t,n)=>(n=e!=null?Eh(kh(e)):{},Ch(Ln(n,"default",{value:e,enumerable:true}),e));function $n(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),e.write(gf[o]);}while(r>0);return t}function yf(e){let t=new Ay,n=0,r=0,o=0,s=0;for(let a=0;a<e.length;a++){let l=e[a];if(a>0&&t.write(Oy),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){let f=l[u];u>0&&t.write(_y),c=$n(t,f[0],c),f.length!==1&&(n=$n(t,f[1],n),r=$n(t,f[2],r),o=$n(t,f[3],o),f.length!==4&&(s=$n(t,f[4],s)));}}return t.flush()}var _y,Oy,pf,gf,Iy,df,mf,Ay,wf=fa(()=>{_y=44,Oy=59,pf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gf=new Uint8Array(64),Iy=new Uint8Array(128);for(let e=0;e<pf.length;e++){let t=pf.charCodeAt(e);gf[e]=t,Iy[t]=e;}i($n,"encodeInteger");df=1024*16,mf=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Ay=class{static{i(this,"StringWriter");}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(df);}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===df&&(this.out+=mf.decode(t),this.pos=0);}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+mf.decode(e.subarray(0,n)):t}};i(yf,"encode");});var Ef={};ha(Ef,{Bundle:()=>Oi,SourceMap:()=>Pn,default:()=>Rn});function $y(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function Py(e){let t=e.split(`
2
+ `),n=t.filter(s=>/^\t+/.test(s)),r=t.filter(s=>/^ {2,}/.test(s));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return " ";let o=r.reduce((s,a)=>{let l=/^ +/.exec(a)[0].length;return Math.min(l,s)},1/0);return new Array(o+1).join(" ")}function Tf(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let o=n.length;for(;o--;)n[o]="..";}return n.concat(r).join("/")}function Sf(e){return Ry.call(e)==="[object Object]"}function _i(e){let t=e.split(`
3
+ `),n=[];for(let r=0,o=0;r<t.length;r++)n.push(o),o+=t[r].length+1;return i(function(o){let s=0,a=n.length;for(;s<a;){let u=s+a>>1;o<n[u]?a=u:s=u+1;}let l=s-1,c=o-n[l];return {line:l,column:c}},"locate")}var Yr,Xr,Ny,Pn,Ry,jy,Zr,Nn,Jt,Rn,bf,Oi,vf=fa(()=>{wf();Yr=class e{static{i(this,"BitSet");}constructor(t){this.bits=t instanceof e?t.bits.slice():[];}add(t){this.bits[t>>5]|=1<<(t&31);}has(t){return !!(this.bits[t>>5]&1<<(t&31))}},Xr=class e{static{i(this,"Chunk");}constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=false,this.edited=false,this.previous=null,this.next=null;}appendLeft(t){this.outro+=t;}appendRight(t){this.intro=this.intro+t;}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next;}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous;}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=true,this}prependLeft(t){this.outro=t+this.outro;}prependRight(t){this.intro=t+this.intro;}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=false,this.edited=false);}split(t){let n=t-this.start,r=this.original.slice(0,n),o=this.original.slice(n);this.original=r;let s=new e(t,this.end,o);return s.outro=this.outro,this.outro="",this.end=t,this.edited?(s.edit("",false),this.content=""):this.content=r,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return true;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,true),this.edited&&this.edit(n,this.storeName,true)),true;if(this.edit("",void 0,true),this.intro=this.intro.replace(t,""),this.intro.length)return true}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return true;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,true),this.edit("",void 0,true);}return true}else if(this.edit("",void 0,true),this.outro=this.outro.replace(t,""),this.outro.length)return true}};i($y,"getBtoa");Ny=$y(),Pn=class{static{i(this,"SourceMap");}constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=yf(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId);}toString(){return JSON.stringify(this)}toUrl(){return "data:application/json;charset=utf-8;base64,"+Ny(this.toString())}};i(Py,"guessIndent");i(Tf,"getRelativePath");Ry=Object.prototype.toString;i(Sf,"isObject");i(_i,"getLocator");jy=/\w/,Zr=class{static{i(this,"Mappings");}constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null;}addEdit(t,n,r,o){if(n.length){let s=n.length-1,a=n.indexOf(`
4
+ `,0),l=-1;for(;a>=0&&s>a;){let u=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=a,a=n.indexOf(`
5
+ `,a+1);}let c=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&c.push(o),this.rawSegments.push(c),this.advance(n.slice(l+1));}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null;}addUneditedChunk(t,n,r,o,s){let a=n.start,l=true,c=false;for(;a<n.end;){if(r[a]===`
6
+ `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=true,c=false;else {if(this.hires||l||s.has(a)){let u=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?jy.test(r[a])?c||(this.rawSegments.push(u),c=true):(this.rawSegments.push(u),c=false):this.rawSegments.push(u);}o.column+=1,this.generatedCodeColumn+=1,l=false;}a+=1;}this.pending=null;}advance(t){if(!t)return;let n=t.split(`
7
+ `);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;}this.generatedCodeColumn+=n[n.length-1].length;}},Nn=`
8
+ `,Jt={insertLeft:false,insertRight:false,storeName:false},Rn=class e{static{i(this,"MagicString");}constructor(t,n={}){let r=new Xr(0,t.length,t);Object.defineProperties(this,{original:{writable:true,value:t},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:n.filename},indentExclusionRanges:{writable:true,value:n.indentExclusionRanges},sourcemapLocations:{writable:true,value:new Yr},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:void 0},ignoreList:{writable:true,value:n.ignoreList},offset:{writable:true,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r;}addSourcemapLocation(t){this.sourcemapLocations.add(t);}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let o=n.next,s=o&&o.clone();s&&(r.next=s,s.previous=r,r=s),n=o;}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Yr(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),o=new Zr(t.hires),s=_i(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(a=>{let l=s(a.start);a.intro.length&&o.advance(a.intro),a.edited?o.addEdit(n,a.content,l,a.storeName?r.indexOf(a.original):-1):o.addUneditedChunk(n,a,this.original,l,this.sourcemapLocations),a.outro.length&&o.advance(a.outro);}),this.outro&&o.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?Tf(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new Pn(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Py(this.original));}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(Sf(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(f=>{for(let h=f[0];h<f[1];h+=1)o[h]=true;});let s=n.indentStart!==false,a=i(u=>s?`${t}${u}`:(s=true,u),"replacer");this.intro=this.intro.replace(r,a);let l=0,c=this.firstChunk;for(;c;){let u=c.end;if(c.edited)o[l]||(c.content=c.content.replace(r,a),c.content.length&&(s=c.content[c.content.length-1]===`
9
+ `));else for(l=c.start;l<u;){if(!o[l]){let f=this.original[l];f===`
10
+ `?s=true:f!=="\r"&&s&&(s=false,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(t));}l+=1;}l=c.end,c=c.next;}return this.outro=this.outro.replace(r,a),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return Jt.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Jt.insertLeft=true),this.appendLeft(t,n)}insertRight(t,n){return Jt.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Jt.insertRight=true),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let o=this.byStart[t],s=this.byEnd[n],a=o.previous,l=s.next,c=this.byStart[r];if(!c&&s===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return a&&(a.next=l),l&&(l.previous=a),u&&(u.next=o),c&&(c.previous=s),o.previous||(this.firstChunk=s.next),s.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,s.next=c||null,u||(this.firstChunk=o),c||(this.lastChunk=s),this}overwrite(t,n,r,o){return o=o||{},this.update(t,n,r,{...o,overwrite:!o.contentOnly})}update(t,n,r,o){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),o===true&&(Jt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Jt.storeName=true),o={storeName:true});let s=o!==void 0?o.storeName:false,a=o!==void 0?o.overwrite:false;if(s){let u=this.original.slice(t,n);Object.defineProperty(this.storedNames,u,{writable:true,value:true,enumerable:true});}let l=this.byStart[t],c=this.byEnd[n];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",false);}l.edit(r,s,!a);}else {let u=new Xr(t,n,"").edit(r,s);c.next=u,u.previous=c;}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Nn);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Nn),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n;}if(r.content.length>0){if(t=r.content.lastIndexOf(Nn),t!==-1)return r.content.substr(t+1)+n;n=r.content+n;}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Nn),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n;}}while(r=r.previous);return t=this.intro.lastIndexOf(Nn),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}let r="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<n&&o.end>=n)return r;o=o.next;}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let s=o;for(;o;){o.intro&&(s!==o||o.start===t)&&(r+=o.intro);let a=o.start<n&&o.end>=n;if(a&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let l=s===o?t-o.start:0,c=a?o.content.length+n-o.end:o.content.length;if(r+=o.content.slice(l,c),o.outro&&(!a||o.end===n)&&(r+=o.outro),a)break;o=o.next;}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n,o=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n;}}_splitChunk(t,n){if(t.edited&&t.content.length){let o=_i(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,true}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return false;while(t=t.next);return true}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return true;let r=this.lastChunk;do{let o=r.end,s=r.trimEnd(n);if(r.end!==o&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),s)return true;r=r.previous;}while(r);return false}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return true;let r=this.firstChunk;do{let o=r.end,s=r.trimStart(n);if(r.end!==o&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),s)return true;r=r.next;}while(r);return false}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(s,a){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(l,c)=>c==="$"?"$":c==="&"?s[0]:+c<s.length?s[+c]:`$${c}`):n(...s,s.index,a,s.groups)}i(r,"getReplacement");function o(s,a){let l,c=[];for(;l=s.exec(a);)c.push(l);return c}if(i(o,"matchAll"),t.global)o(t,this.original).forEach(a=>{if(a.index!=null){let l=r(a,this.original);l!==a[0]&&this.overwrite(a.index,a.index+a[0].length,l);}});else {let s=this.original.match(t);if(s&&s.index!=null){let a=r(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a);}}return this}_replaceString(t,n){let{original:r}=this,o=r.indexOf(t);return o!==-1&&(typeof n=="function"&&(n=n(t,o,r)),t!==n&&this.overwrite(o,o+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,o=t.length;for(let s=r.indexOf(t);s!==-1;s=r.indexOf(t,s+o)){let a=r.slice(s,s+o),l=n;typeof n=="function"&&(l=n(a,s,r)),a!==l&&this.overwrite(s,s+o,l);}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}},bf=Object.prototype.hasOwnProperty,Oi=class e{static{i(this,"Bundle");}constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
+ `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={};}addSource(t){if(t instanceof Rn)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!Sf(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{bf.call(t,n)||(t[n]=t.content[n]);}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!bf.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else {let n=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==n.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,n){return this.addSource({content:new Rn(t),separator:n&&n.separator||""}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{t.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator});}),t}generateDecodedMap(t={}){let n=[],r;this.sources.forEach(s=>{Object.keys(s.content.storedNames).forEach(a=>{~n.indexOf(a)||n.push(a);});});let o=new Zr(t.hires);return this.intro&&o.advance(this.intro),this.sources.forEach((s,a)=>{a>0&&o.advance(this.separator);let l=s.filename?this.uniqueSourceIndexByFilename[s.filename]:-1,c=s.content,u=_i(c.original);c.intro&&o.advance(c.intro),c.firstChunk.eachNext(f=>{let h=u(f.start);f.intro.length&&o.advance(f.intro),s.filename?f.edited?o.addEdit(l,f.content,h,f.storeName?n.indexOf(f.original):-1):o.addUneditedChunk(l,f,c.original,h,c.sourcemapLocations):o.advance(f.content),f.outro.length&&o.advance(f.outro);}),c.outro&&o.advance(c.outro),s.ignoreList&&l!==-1&&(r===void 0&&(r=[]),r.push(l));}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(s=>t.file?Tf(t.file,s.filename):s.filename),sourcesContent:this.uniqueSources.map(s=>t.includeContent?s.content:null),names:n,mappings:o.raw,x_google_ignoreList:r}}generateMap(t){return new Pn(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(n=>{let r=n.content._getRawIndentString();r!==null&&(t[r]||(t[r]=0),t[r]+=1);}),Object.keys(t).sort((n,r)=>t[n]-t[r])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let n=!this.intro||this.intro.slice(-1)===`
12
+ `;return this.sources.forEach((r,o)=>{let s=r.separator!==void 0?r.separator:this.separator,a=n||o>0&&/\r?\n$/.test(s);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:a}),n=r.content.lastChar()===`
13
+ `;}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(r,o)=>o>0?t+r:r)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((n,r)=>{let o=n.separator!==void 0?n.separator:this.separator;return (r>0?o:"")+n.content.toString()}).join("");return this.intro+t}isEmpty(){return !(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,n)=>t+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let r,o=0;do if(r=this.sources[o++],!r)break;while(!r.content.trimStartAborted(t))}return this}trimEnd(t){let n=new RegExp((t||"\\s")+"+$"),r,o=this.sources.length-1;do if(r=this.sources[o--],!r){this.intro=this.intro.replace(n,"");break}while(!r.content.trimEndAborted(t));return this}};});var uh=on(lh=>{Object.defineProperty(lh,"__esModule",{value:true});});var hh=on(fh=>{Object.defineProperty(fh,"__esModule",{value:true});});var dh=on(ph=>{Object.defineProperty(ph,"__esModule",{value:true});});var gh=on(mh=>{Object.defineProperty(mh,"__esModule",{value:true});});var yh=on(ue=>{var Jw=ue&&ue.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:true,get:i(function(){return t[n]},"get")}),Object.defineProperty(e,r,o);}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];})),oo=ue&&ue.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Jw(t,e,n);};Object.defineProperty(ue,"__esModule",{value:true});ue.expectTypeOf=void 0;oo(uh(),ue);oo(hh(),ue);oo(dh(),ue);oo(gh(),ue);var de=i(()=>true,"fn"),Yw=i(e=>{let t=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],n={toBeAny:de,toBeUnknown:de,toBeNever:de,toBeFunction:de,toBeObject:de,toBeArray:de,toBeString:de,toBeNumber:de,toBeBoolean:de,toBeVoid:de,toBeSymbol:de,toBeNull:de,toBeUndefined:de,toBeNullable:de,toBeBigInt:de,toMatchTypeOf:de,toEqualTypeOf:de,toBeConstructibleWith:de,toMatchObjectType:de,toExtend:de,map:ue.expectTypeOf,toBeCallableWith:ue.expectTypeOf,extract:ue.expectTypeOf,exclude:ue.expectTypeOf,pick:ue.expectTypeOf,omit:ue.expectTypeOf,toHaveProperty:ue.expectTypeOf,parameter:ue.expectTypeOf};return t.forEach(o=>Object.defineProperty(n,o,{get:i(()=>(0, ue.expectTypeOf)({}),"get")})),n},"expectTypeOf");ue.expectTypeOf=Yw;});var pa={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function co(e){return String(e)}i(co,"i");co.open="";co.close="";function Oh(){let e=typeof process<"u"?process:void 0,t=e?.env||{},n=t.FORCE_TTY!=="false",r=e?.argv||[];return !("NO_COLOR"in t||r.includes("--no-color"))&&("FORCE_COLOR"in t||r.includes("--color")||e?.platform==="win32"||n&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}i(Oh,"B");function Ih({force:e}={}){let t=e||Oh(),n=i((a,l,c,u)=>{let f="",h=0;do f+=a.substring(h,u)+c,h=u+l.length,u=a.indexOf(l,h);while(~u);return f+a.substring(h)},"a"),r=i((a,l,c=a)=>{let u=i(f=>{let h=String(f),d=h.indexOf(l,a.length);return ~d?a+n(h,l,c,d)+l:a+h+l},"n");return u.open=a,u.close=l,u},"l"),o={isColorSupported:t},s=i(a=>`\x1B[${a}m`,"f");for(let a in pa){let l=pa[a];o[a]=t?r(s(l[0]),s(l[1]),l[2]):co;}return o}i(Ih,"C");var Ah=Ih();var se=Ah;function Ca(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:true,get:i(function(){return n[r]},"get")});}});}),Object.freeze(e)}i(Ca,"_mergeNamespaces");function $h(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}i($h,"getKeysOfEnumerableProperties");function an(e,t,n,r,o,s,a=": "){let l="",c=0,u=e.next();if(!u.done){l+=t.spacingOuter;let f=n+t.indent;for(;!u.done;){if(l+=f,c++===t.maxWidth){l+="\u2026";break}let h=s(u.value[0],t,f,r,o),d=s(u.value[1],t,f,r,o);l+=h+a+d,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`;}l+=t.spacingOuter+n;}return l}i(an,"printIteratorEntries");function ho(e,t,n,r,o,s){let a="",l=0,c=e.next();if(!c.done){a+=t.spacingOuter;let u=n+t.indent;for(;!c.done;){if(a+=u,l++===t.maxWidth){a+="\u2026";break}a+=s(c.value,t,u,r,o),c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`;}a+=t.spacingOuter+n;}return a}i(ho,"printIteratorValues");function zn(e,t,n,r,o,s){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=i(u=>u instanceof DataView,"isDataView"),c=l(e)?e.byteLength:e.length;if(c>0){a+=t.spacingOuter;let u=n+t.indent;for(let f=0;f<c;f++){if(a+=u,f===t.maxWidth){a+="\u2026";break}(l(e)||f in e)&&(a+=s(l(e)?e.getInt8(f):e[f],t,u,r,o)),f<c-1?a+=`,${t.spacingInner}`:t.min||(a+=",");}a+=t.spacingOuter+n;}return a}i(zn,"printListItems");function po(e,t,n,r,o,s){let a="",l=$h(e,t.compareKeys);if(l.length>0){a+=t.spacingOuter;let c=n+t.indent;for(let u=0;u<l.length;u++){let f=l[u],h=s(f,t,c,r,o),d=s(e[f],t,c,r,o);a+=`${c+h}: ${d}`,u<l.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",");}a+=t.spacingOuter+n;}return a}i(po,"printObjectProperties");var Nh=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Bn=" ",Ph=i((e,t,n,r,o,s)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return ++r>t.maxDepth?`[${a}]`:`${a+Bn}[${zn(e.sample,t,n,r,o,s)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return ++r>t.maxDepth?`[${a}]`:`${a+Bn}{${po(e.sample,t,n,r,o,s)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Bn+s(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),Rh=i(e=>e&&e.$$typeof===Nh,"test$5"),jh={serialize:Ph,test:Rh},Fh=" ",_a=new Set(["DOMStringMap","NamedNodeMap"]),Dh=/^(?:HTML\w*Collection|NodeList)$/;function Lh(e){return _a.has(e)||Dh.test(e)}i(Lh,"testName");var Bh=i(e=>e&&e.constructor&&!!e.constructor.name&&Lh(e.constructor.name),"test$4");function qh(e){return e.constructor.name==="NamedNodeMap"}i(qh,"isNamedNodeMap");var Uh=i((e,t,n,r,o,s)=>{let a=e.constructor.name;return ++r>t.maxDepth?`[${a}]`:(t.min?"":a+Fh)+(_a.has(a)?`{${po(qh(e)?[...e].reduce((l,c)=>(l[c.name]=c.value,l),{}):{...e},t,n,r,o,s)}}`:`[${zn([...e],t,n,r,o,s)}]`)},"serialize$4"),zh={serialize:Uh,test:Bh};function Oa(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}i(Oa,"escapeHTML");function mo(e,t,n,r,o,s,a){let l=r+n.indent,c=n.colors;return e.map(u=>{let f=t[u];if(typeof f=="string"&&f[0]==="_"&&f.startsWith("__vitest_")&&f.match(/__vitest_\d+__/))return "";let h=a(f,n,l,o,s);return typeof f!="string"&&(h.includes(`
14
+ `)&&(h=n.spacingOuter+l+h+n.spacingOuter+r),h=`{${h}}`),`${n.spacingInner+r+c.prop.open+u+c.prop.close}=${c.value.open}${h}${c.value.close}`}).join("")}i(mo,"printProps");function Vn(e,t,n,r,o,s){return e.map(a=>t.spacingOuter+n+(typeof a=="string"?Ia(a,t):s(a,t,n,r,o))).join("")}i(Vn,"printChildren");function Wh(e,t,n,r,o,s){return t.printShadowRoot===false?"":[`${t.spacingOuter+n}#shadow-root`,Vn(e,t,n+t.indent,r,o,s)].join("")}i(Wh,"printShadowRoot");function Ia(e,t){let n=t.colors.content;return n.open+Oa(e)+n.close}i(Ia,"printText");function Vh(e,t){let n=t.colors.comment;return `${n.open}<!--${Oa(e)}-->${n.close}`}i(Vh,"printComment");function go(e,t,n,r,o){let s=r.colors.tag;return `${s.open}<${e}${t&&s.close+t+r.spacingOuter+o+s.open}${n?`>${s.close}${n}${r.spacingOuter}${o}${s.open}</${e}`:`${t&&!r.min?"":" "}/`}>${s.close}`}i(go,"printElement");function yo(e,t){let n=t.colors.tag;return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}i(yo,"printElementAsLeaf");var Kh=1,wo=3,Aa=8,$a=11,Hh=/^(?:(?:HTML|SVG)\w*)?Element$/;function Gh(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return false}}i(Gh,"testHasAttribute");function Jh(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||Gh(e);return n===Kh&&(Hh.test(t)||o)||n===wo&&t==="Text"||n===Aa&&t==="Comment"||n===$a&&t==="DocumentFragment"}i(Jh,"testNode");var Na=i(e=>e?.constructor?.name&&Jh(e),"test$3");function Yh(e){return e.nodeType===wo}i(Yh,"nodeIsText");function Xh(e){return e.nodeType===Aa}i(Xh,"nodeIsComment");function qn(e){return e.nodeType===$a}i(qn,"nodeIsFragment");function da(e,t){let n=e.filter(r=>r.nodeType===wo?(r.data||"").trim().length>0:true);return t&&(n=n.filter(t)),n}i(da,"filterChildren");function Pa(e,t,n,r,o,s,a){if(Yh(e))return Ia(e.data,t);if(Xh(e))return Vh(e.data,t);let l=qn(e)?"DocumentFragment":e.tagName.toLowerCase();if(++r>t.maxDepth)return yo(l,t);let c=Array.prototype.slice.call(e.childNodes||e.children),u=qn(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),f=a?da(c,a):c,h=a?da(u,a):u;return go(l,mo(qn(e)?[]:Array.from(e.attributes,d=>d.name).sort(),qn(e)?{}:[...e.attributes].reduce((d,p)=>(d[p.name]=p.value,d),{}),t,n+t.indent,r,o,s),(h.length>0?Wh(h,t,n+t.indent,r,o,s):"")+Vn(f,t,n+t.indent,r,o,s),t,n)}i(Pa,"serializeDOM");var Zh=i((e,t,n,r,o,s)=>Pa(e,t,n,r,o,s),"serialize$3");function Ra(e){return {test:Na,serialize:i((t,n,r,o,s,a)=>Pa(t,n,r,o,s,a,e),"serialize")}}i(Ra,"createDOMElementFilter");var Qh={serialize:Zh,test:Na},ep="@@__IMMUTABLE_ITERABLE__@@",tp="@@__IMMUTABLE_LIST__@@",np="@@__IMMUTABLE_KEYED__@@",rp="@@__IMMUTABLE_MAP__@@",ma="@@__IMMUTABLE_ORDERED__@@",op="@@__IMMUTABLE_RECORD__@@",sp="@@__IMMUTABLE_SEQ__@@",ip="@@__IMMUTABLE_SET__@@",ap="@@__IMMUTABLE_STACK__@@",Ft=i(e=>`Immutable.${e}`,"getImmutableName"),Kn=i(e=>`[${e}]`,"printAsLeaf"),sn=" ",ga="\u2026";function cp(e,t,n,r,o,s,a){return ++r>t.maxDepth?Kn(Ft(a)):`${Ft(a)+sn}{${an(e.entries(),t,n,r,o,s)}}`}i(cp,"printImmutableEntries");function lp(e){let t=0;return {next(){if(t<e._keys.length){let n=e._keys[t++];return {done:false,value:[n,e.get(n)]}}return {done:true,value:void 0}}}}i(lp,"getRecordEntries");function up(e,t,n,r,o,s){let a=Ft(e._name||"Record");return ++r>t.maxDepth?Kn(a):`${a+sn}{${an(lp(e),t,n,r,o,s)}}`}i(up,"printImmutableRecord");function fp(e,t,n,r,o,s){let a=Ft("Seq");return ++r>t.maxDepth?Kn(a):e[np]?`${a+sn}{${e._iter||e._object?an(e.entries(),t,n,r,o,s):ga}}`:`${a+sn}[${e._iter||e._array||e._collection||e._iterable?ho(e.values(),t,n,r,o,s):ga}]`}i(fp,"printImmutableSeq");function lo(e,t,n,r,o,s,a){return ++r>t.maxDepth?Kn(Ft(a)):`${Ft(a)+sn}[${ho(e.values(),t,n,r,o,s)}]`}i(lo,"printImmutableValues");var hp=i((e,t,n,r,o,s)=>e[rp]?cp(e,t,n,r,o,s,e[ma]?"OrderedMap":"Map"):e[tp]?lo(e,t,n,r,o,s,"List"):e[ip]?lo(e,t,n,r,o,s,e[ma]?"OrderedSet":"Set"):e[ap]?lo(e,t,n,r,o,s,"Stack"):e[sp]?fp(e,t,n,r,o,s):up(e,t,n,r,o,s),"serialize$2"),pp=i(e=>e&&(e[ep]===true||e[op]===true),"test$2"),dp={serialize:hp,test:pp};function ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(ja,"getDefaultExportFromCjs");var uo={exports:{}},ne={};var ya;function mp(){if(ya)return ne;ya=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case u:case d:return m;default:switch(m=m&&m.$$typeof,m){case a:case l:case h:case f:return m;case s:return m;default:return b}}case t:return b}}}return i(g,"typeOf"),ne.ContextConsumer=s,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=l,ne.Fragment=n,ne.Lazy=h,ne.Memo=f,ne.Portal=t,ne.Profiler=o,ne.StrictMode=r,ne.Suspense=c,ne.SuspenseList=u,ne.isContextConsumer=function(m){return g(m)===s},ne.isContextProvider=function(m){return g(m)===a},ne.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ne.isForwardRef=function(m){return g(m)===l},ne.isFragment=function(m){return g(m)===n},ne.isLazy=function(m){return g(m)===h},ne.isMemo=function(m){return g(m)===f},ne.isPortal=function(m){return g(m)===t},ne.isProfiler=function(m){return g(m)===o},ne.isStrictMode=function(m){return g(m)===r},ne.isSuspense=function(m){return g(m)===c},ne.isSuspenseList=function(m){return g(m)===u},ne.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===f||m.$$typeof===a||m.$$typeof===s||m.$$typeof===l||m.$$typeof===p||m.getModuleId!==void 0)},ne.typeOf=g,ne}i(mp,"requireReactIs_production");var wa;function gp(){return wa||(wa=1,uo.exports=mp()),uo.exports}i(gp,"requireReactIs$1");var Fa=gp(),yp=ja(Fa),wp=Ca({__proto__:null,default:yp},[Fa]),fo={exports:{}},Z={};var ba;function bp(){if(ba)return Z;ba=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function m(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case e:switch(b=b.type,b){case n:case o:case r:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case l:case a:case c:case d:case h:case s:return b;default:return E}}case t:return E}}}return i(m,"v"),Z.ContextConsumer=a,Z.ContextProvider=s,Z.Element=e,Z.ForwardRef=c,Z.Fragment=n,Z.Lazy=d,Z.Memo=h,Z.Portal=t,Z.Profiler=o,Z.StrictMode=r,Z.Suspense=u,Z.SuspenseList=f,Z.isAsyncMode=function(){return false},Z.isConcurrentMode=function(){return false},Z.isContextConsumer=function(b){return m(b)===a},Z.isContextProvider=function(b){return m(b)===s},Z.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Z.isForwardRef=function(b){return m(b)===c},Z.isFragment=function(b){return m(b)===n},Z.isLazy=function(b){return m(b)===d},Z.isMemo=function(b){return m(b)===h},Z.isPortal=function(b){return m(b)===t},Z.isProfiler=function(b){return m(b)===o},Z.isStrictMode=function(b){return m(b)===r},Z.isSuspense=function(b){return m(b)===u},Z.isSuspenseList=function(b){return m(b)===f},Z.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===u||b===f||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===c||b.$$typeof===g||b.getModuleId!==void 0)},Z.typeOf=m,Z}i(bp,"requireReactIs_production_min");var Ta;function Tp(){return Ta||(Ta=1,fo.exports=bp()),fo.exports}i(Tp,"requireReactIs");var Da=Tp(),Sp=ja(Da),Ep=Ca({__proto__:null,default:Sp},[Da]),vp=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],xt=Object.fromEntries(vp.map(e=>[e,t=>Ep[e](t)||wp[e](t)]));function La(e,t=[]){if(Array.isArray(e))for(let n of e)La(n,t);else e!=null&&e!==false&&e!==""&&t.push(e);return t}i(La,"getChildren");function Sa(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(xt.isFragment(e))return "React.Fragment";if(xt.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if(xt.isContextProvider(e))return "Context.Provider";if(xt.isContextConsumer(e))return "Context.Consumer";if(xt.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(xt.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return "UNDEFINED"}i(Sa,"getType");function xp(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}i(xp,"getPropKeys$1");var kp=i((e,t,n,r,o,s)=>++r>t.maxDepth?yo(Sa(e),t):go(Sa(e),mo(xp(e),e.props,t,n+t.indent,r,o,s),Vn(La(e.props.children),t,n+t.indent,r,o,s),t,n),"serialize$1"),Mp=i(e=>e!=null&&xt.isElement(e),"test$1"),Cp={serialize:kp,test:Mp},_p=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Op(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}i(Op,"getPropKeys");var Ip=i((e,t,n,r,o,s)=>++r>t.maxDepth?yo(e.type,t):go(e.type,e.props?mo(Op(e),e.props,t,n+t.indent,r,o,s):"",e.children?Vn(e.children,t,n+t.indent,r,o,s):"",t,n),"serialize"),Ap=i(e=>e&&e.$$typeof===_p,"test"),$p={serialize:Ip,test:Ap},Ba=Object.prototype.toString,Np=Date.prototype.toISOString,Pp=Error.prototype.toString,Ea=RegExp.prototype.toString;function Un(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}i(Un,"getConstructorName");function Rp(e){return typeof window<"u"&&e===window}i(Rp,"isWindow");var jp=/^Symbol\((.*)\)(.*)$/,Fp=/\n/g,Wn=class extends Error{static{i(this,"PrettyFormatPluginError");}constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name;}};function Dp(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}i(Dp,"isToStringedArrayType");function Lp(e){return Object.is(e,-0)?"-0":String(e)}i(Lp,"printNumber");function Bp(e){return `${e}n`}i(Bp,"printBigInt");function va(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}i(va,"printFunction");function xa(e){return String(e).replace(jp,"Symbol($1)")}i(xa,"printSymbol");function ka(e){return `[${Pp.call(e)}]`}i(ka,"printError");function qa(e,t,n,r){if(e===true||e===false)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return Lp(e);if(o==="bigint")return Bp(e);if(o==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return va(e,t);if(o==="symbol")return xa(e);let s=Ba.call(e);return s==="[object WeakMap]"?"WeakMap {}":s==="[object WeakSet]"?"WeakSet {}":s==="[object Function]"||s==="[object GeneratorFunction]"?va(e,t):s==="[object Symbol]"?xa(e):s==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Np.call(e):s==="[object Error]"?ka(e):s==="[object RegExp]"?n?Ea.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Ea.call(e):e instanceof Error?ka(e):null}i(qa,"printBasicValue");function Ua(e,t,n,r,o,s){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let a=++r>t.maxDepth,l=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!s)return yt(e.toJSON(),t,n,r,o,true);let c=Ba.call(e);return c==="[object Arguments]"?a?"[Arguments]":`${l?"":"Arguments "}[${zn(e,t,n,r,o,yt)}]`:Dp(c)?a?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${zn(e,t,n,r,o,yt)}]`:c==="[object Map]"?a?"[Map]":`Map {${an(e.entries(),t,n,r,o,yt," => ")}}`:c==="[object Set]"?a?"[Set]":`Set {${ho(e.values(),t,n,r,o,yt)}}`:a||Rp(e)?`[${Un(e)}]`:`${l||!t.printBasicPrototype&&Un(e)==="Object"?"":`${Un(e)} `}{${po(e,t,n,r,o,yt)}}`}i(Ua,"printComplexValue");var qp={test:i(e=>e&&e instanceof Error,"test"),serialize(e,t,n,r,o,s){if(o.includes(e))return "[Circular]";o=[...o,e];let a=++r>t.maxDepth,{message:l,cause:c,...u}=e,f={message:l,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},h=e.name!=="Error"?e.name:Un(e);return a?`[${h}]`:`${h} {${an(Object.entries(f).values(),t,n,r,o,s)}}`}};function Up(e){return e.serialize!=null}i(Up,"isNewPlugin");function za(e,t,n,r,o,s){let a;try{a=Up(e)?e.serialize(t,n,r,o,s,yt):e.print(t,l=>yt(l,n,r,o,s),l=>{let c=r+n.indent;return c+l.replaceAll(Fp,`
15
+ ${c}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors);}catch(l){throw new Wn(l.message,l.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}i(za,"printPlugin");function Wa(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Wn(r.message,r.stack)}return null}i(Wa,"findPlugin");function yt(e,t,n,r,o,s){let a,l=Wa(t.plugins,e);if(l!==null)a=za(l,e,t,n,r,o);else {let c=qa(e,t.printFunctionName,t.escapeRegex,t.escapeString);c!==null?a=c:a=Ua(e,t,n,r,o,s);}return t._outputLengthPerDepth[r]??=0,t._outputLengthPerDepth[r]+=a.length,t._outputLengthPerDepth[r]>t.maxOutputLength&&(t.maxDepth=0),a}i(yt,"printer");var bo={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Va=Object.keys(bo),We={callToJSON:true,compareKeys:void 0,escapeRegex:false,escapeString:true,highlight:false,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxOutputLength:1e6,maxWidth:Number.POSITIVE_INFINITY,min:false,plugins:[],printBasicPrototype:true,printFunctionName:true,printShadowRoot:true,theme:bo};function zp(e){for(let t of Object.keys(e))if(!Object.hasOwn(We,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}i(zp,"validateOptions");function Wp(){return Va.reduce((e,t)=>{let n=bo[t],r=n&&se[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}i(Wp,"getColorsHighlight");function Vp(){return Va.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}i(Vp,"getColorsEmpty");function Ka(e){return e?.printFunctionName??We.printFunctionName}i(Ka,"getPrintFunctionName");function Ha(e){return e?.escapeRegex??We.escapeRegex}i(Ha,"getEscapeRegex");function Ga(e){return e?.escapeString??We.escapeString}i(Ga,"getEscapeString");function Ma(e){return {callToJSON:e?.callToJSON??We.callToJSON,colors:e?.highlight?Wp():Vp(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:We.compareKeys,escapeRegex:Ha(e),escapeString:Ga(e),indent:e?.min?"":Kp(e?.indent??We.indent),maxDepth:e?.maxDepth??We.maxDepth,maxWidth:e?.maxWidth??We.maxWidth,min:e?.min??We.min,plugins:e?.plugins??We.plugins,printBasicPrototype:e?.printBasicPrototype??true,printFunctionName:Ka(e),printShadowRoot:e?.printShadowRoot??true,spacingInner:e?.min?" ":`
16
16
  `,spacingOuter:e?.min?"":`
17
- `}}a(Ws,"getConfig");function od(e){return Array.from({length:e+1}).join(" ")}a(od,"createIndent");function Ie(e,t){if(t&&(td(t),t.plugins)){let r=sa(t.plugins,e);if(r!==null)return ia(r,e,Ws(t),"",0,[])}let n=ra(e,ca(t),la(t),ua(t));return n!==null?n:oa(e,Ws(t),"",0,[])}a(Ie,"format");var wt={AsymmetricMatcher:Gf,DOMCollection:eh,DOMElement:fh,Immutable:_h,ReactElement:Lh,ReactTestComponent:Wh,Error:Qh};var fa={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},id={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},At="\u2026";function sd(e,t){let n=fa[id[t]]||fa[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(sd,"colorise");function ad({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:u=1/0,stylize:l=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(u),seen:c,inspect:f,stylize:l};return h.colors&&(h.stylize=sd),h}a(ad,"normaliseOptions");function cd(e){return e>="\uD800"&&e<="\uDBFF"}a(cd,"isHighSurrogate");function ft(e,t,n=At){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&cd(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(ft,"truncate");function He(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",c="",u="";for(let l=0;l<o;l+=1){let f=l+1===e.length,h=l+2===e.length;u=`${At}(${e.length-l})`;let d=e[l];t.truncate=i-s.length-(f?0:r.length);let p=c||n(d,t)+(f?"":r),m=s.length+p.length,y=m+u.length;if(f&&m>i&&s.length+u.length<=i||!f&&!h&&y>i||(c=f?"":n(e[l+1],t)+(h?"":r),!f&&h&&y>i&&m+c.length>i))break;if(s+=p,!f&&!h&&m+c.length>=i){u=`${At}(${e.length-l-1})`;break}u="";}return `${s}${u}`}a(He,"inspectList");function ld(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(ld,"quoteComplexKey");function Qt([e,t],n){return n.truncate-=2,typeof e=="string"?e=ld(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(Qt,"inspectProperty");function ud(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=He(e,t);t.truncate-=r.length;let o="";return n.length&&(o=He(n.map(i=>[i,e[i]]),t,Qt)),`[ ${r}${o?`, ${o}`:""} ]`}a(ud,"inspectArray");var fd=a(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function rt(e,t){let n=fd(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let c=`${t.stylize(ft(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=c.length,e[s]!==e.length&&t.truncate<=3){o+=`${At}(${e.length-e[s]+1})`;break}o+=c;}let i="";return r.length&&(i=He(r.map(s=>[s,e[s]]),t,Qt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(rt,"inspectTypedArray");function hd(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${ft(r[1],t.truncate-o.length-1)}`,"date")}a(hd,"inspectDate");function ha(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${ft(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(ha,"inspectFunction");function dd([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(dd,"inspectMapEntry");function pd(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(pd,"mapToEntries");function md(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${He(pd(e),t,dd)} }`)}a(md,"inspectMap");var gd=Number.isNaN||(e=>e!==e);function da(e,t){return gd(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(ft(String(e),t.truncate),"number")}a(da,"inspectNumber");function pa(e,t){let n=ft(e.toString(),t.truncate-1);return n!==At&&(n+="n"),t.stylize(n,"bigint")}a(pa,"inspectBigInt");function yd(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${ft(o,r)}/${n}`,"regexp")}a(yd,"inspectRegExp");function bd(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(bd,"arrayFromSet");function wd(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${He(bd(e),t)} }`)}a(wd,"inspectSet");var ma=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),vd={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Sd=16;function Td(e){return vd[e]||`\\u${`0000${e.charCodeAt(0).toString(Sd)}`.slice(-4)}`}a(Td,"escape");function ga(e,t){return ma.test(e)&&(e=e.replace(ma,Td)),t.stylize(`'${ft(e,t.truncate-2)}'`,"string")}a(ga,"inspectString");function ya(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(ya,"inspectSymbol");var Ed=a(()=>"Promise{\u2026}","getPromiseValue");function Fn(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=He(n.map(c=>[c,e[c]]),t,Qt),i=He(r.map(c=>[c,e[c]]),t,Qt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(Fn,"inspectObject$1");var no=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function xd(e,t){let n="";return no&&no in e&&(n=e[no]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Fn(e,t)}`}a(xd,"inspectClass");function Md(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${He(e,t)} ]`)}a(Md,"inspectArguments");var _d=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Od(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>_d.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=ft(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=He(n.map(s=>[s,e[s]]),t,Qt);return `${r}${o}${i?` { ${i} }`:""}`}a(Od,"inspectObject");function Id([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(Id,"inspectAttribute");function io(e,t){return He(e,t,Cd,`
18
- `)}a(io,"inspectNodeCollection");function Cd(e,t){switch(e.nodeType){case 1:return Ta(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(Cd,"inspectNode");function Ta(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=He(n.map(f=>[f,e.getAttribute(f)]),t,Id," ")),t.truncate-=c.length;let u=t.truncate,l=io(e.children,t);return l&&l.length>u&&(l=`${At}(${e.children.length})`),`${o}${c}${i}${l}${s}`}a(Ta,"inspectHTML");var kd=typeof Symbol=="function"&&typeof Symbol.for=="function",ro=kd?Symbol.for("chai/inspect"):"@@chai/inspect",oo=Symbol.for("nodejs.util.inspect.custom"),ba=new WeakMap,wa={},va={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:da,Number:da,bigint:pa,BigInt:pa,string:ga,String:ga,function:ha,Function:ha,symbol:ya,Symbol:ya,Array:ud,Date:hd,Map:md,Set:wd,RegExp:yd,Promise:Ed,WeakSet:a((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Md,Int8Array:rt,Uint8Array:rt,Uint8ClampedArray:rt,Int16Array:rt,Uint16Array:rt,Int32Array:rt,Uint32Array:rt,Float32Array:rt,Float64Array:rt,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Od,HTMLCollection:io,NodeList:io},$d=a((e,t,n,r)=>ro in e&&typeof e[ro]=="function"?e[ro](t):oo in e&&typeof e[oo]=="function"?e[oo](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&ba.has(e.constructor)?ba.get(e.constructor)(e,t):wa[n]?wa[n](e,t):"","inspectCustom"),Nd=Object.prototype.toString;function Dn(e,t={}){let n=ad(t,Dn),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Nd.call(e).slice(8,-1)),o in va)return va[o](e,n);if(r&&e){let s=$d(e,n,o,Dn);if(s)return typeof s=="string"?s:Dn(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?Fn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ta(e,n):"constructor"in e?e.constructor!==Object?xd(e,n):Fn(e,n):e===Object(e)?Fn(e,n):n.stylize(String(e),o)}a(Dn,"inspect$1");var{AsymmetricMatcher:Ad,DOMCollection:Pd,DOMElement:jd,Immutable:Rd,ReactElement:Fd,ReactTestComponent:Dd}=wt,Sa=[Dd,Fd,jd,Pd,Rd,Ad];function be(e,t=10,{maxLength:n,...r}={}){let o=n??1e4,i;try{i=Ie(e,{maxDepth:t,escapeString:false,plugins:Sa,...r});}catch{i=Ie(e,{callToJSON:false,maxDepth:t,escapeString:false,plugins:Sa,...r});}return i.length>=o&&t>1?be(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):i}a(be,"stringify");var so=/%[sdjifoOc%]/g;function Ld(e,t={}){let n=a((c,u)=>t.prettifyObject?be(c,void 0,{printBasicPrototype:false,escapeString:false}):xa(c,u),"formatArg");if(typeof e[0]!="string"){let c=[];for(let u=0;u<e.length;u++)c.push(n(e[u],{depth:0,colors:false}));return c.join(" ")}let r=e.length,o=1,i=e[0],s=String(i).replace(so,c=>{if(c==="%%")return "%";if(o>=r)return c;switch(c){case "%s":{let u=e[o++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():n(u,{depth:0,colors:false}):String(u)}case "%d":{let u=e[o++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case "%i":{let u=e[o++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case "%f":return Number.parseFloat(String(e[o++])).toString();case "%o":return n(e[o++],{showHidden:true,showProxy:true});case "%O":return n(e[o++]);case "%c":return o++,"";case "%j":try{return JSON.stringify(e[o++])}catch(u){let l=u.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return "[Circular]";throw u}default:return c}});for(let c=e[o];o<r;c=e[++o])c===null||typeof c!="object"?s+=` ${c}`:s+=` ${n(c)}`;return s}a(Ld,"baseFormat");function Ea(...e){return Ld(e)}a(Ea,"format");function xa(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Dn(e,t)}a(xa,"inspect");function Ma(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);let n=xa(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r==="[object Function]"){let o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else {if(r==="[object Array]")return `[ Array(${e.length}) ]`;if(r==="[object Object]"){let o=Object.keys(e);return `{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}a(Ma,"objDisplay");function _a(e){let{message:t="$$stack trace error",stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=c=>c.stack;let s=new Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,s}a(_a,"createSimpleStackTrace");function me(e,t,n){let r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}a(me,"assertTypes");function co(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}a(co,"toArray");function ht(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(ht,"isObject");function qd(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}a(qd,"isFinalObj");function vt(e){return Object.prototype.toString.apply(e).slice(8,-1)}a(vt,"getType");function Bd(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n);}a(Bd,"collectOwnProperties");function lo(e){let t=new Set;return qd(e)?[]:(Bd(e,t),Array.from(t))}a(lo,"getOwnProperties");var Oa={forceWritable:false};function uo(e,t=Oa){return ao(e,new WeakMap,t)}a(uo,"deepClone");function ao(e,t,n=Oa){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=ao(e[r],t,n);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=lo(e);for(let s of i){let c=Object.getOwnPropertyDescriptor(e,s);if(!c)continue;let u=ao(e[s],t,n);n.forceWritable?Object.defineProperty(o,s,{enumerable:c.enumerable,configurable:true,writable:true,value:u}):"get"in c?Object.defineProperty(o,s,{...c,get(){return u}}):Object.defineProperty(o,s,{...c,value:u});}return o}return e}a(ao,"clone");function Ia(){}a(Ia,"noop");function fo(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let i of r)if(o=new Object(o)[i],o===void 0)return n;return o}a(fo,"objectAttr");function ho(){let e=null,t=null,n=new Promise((r,o)=>{e=r,t=o;});return n.resolve=e,n.reject=t,n}a(ho,"createDefer");function Ca(e){if(!Number.isNaN(e))return false;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}a(Ca,"isNegativeNaN");function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(ka,"getDefaultExportFromCjs");var Te=-1,we=1,ce=0,re=class{static{a(this,"Diff");}0;1;constructor(t,n){this[0]=t,this[1]=n;}};function zd(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(i,o)===t.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(zd,"diff_commonPrefix");function Va(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(Va,"diff_commonSuffix");function $a(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let o=Math.min(n,r);if(e===t)return o;let i=0,s=1;for(;;){let c=e.substring(o-s),u=t.indexOf(c);if(u===-1)return i;s+=u,(u===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}}a($a,"diff_commonOverlap_");function Ud(e){let t=false,n=[],r=0,o=null,i=0,s=0,c=0,u=0,l=0;for(;i<e.length;)e[i][0]===ce?(n[r++]=i,s=u,c=l,u=0,l=0,o=e[i][1]):(e[i][0]===we?u+=e[i][1].length:l+=e[i][1].length,o&&o.length<=Math.max(s,c)&&o.length<=Math.max(u,l)&&(e.splice(n[r-1],0,new re(Te,o)),e[n[r-1]+1][0]=we,r--,r--,i=r>0?n[r-1]:-1,s=0,c=0,u=0,l=0,o=null,t=true)),i++;for(t&&Ka(e),Kd(e),i=1;i<e.length;){if(e[i-1][0]===Te&&e[i][0]===we){let f=e[i-1][1],h=e[i][1],d=$a(f,h),p=$a(h,f);d>=p?(d>=f.length/2||d>=h.length/2)&&(e.splice(i,0,new re(ce,h.substring(0,d))),e[i-1][1]=f.substring(0,f.length-d),e[i+1][1]=h.substring(d),i++):(p>=f.length/2||p>=h.length/2)&&(e.splice(i,0,new re(ce,f.substring(0,p))),e[i-1][0]=we,e[i-1][1]=h.substring(0,h.length-p),e[i+1][0]=Te,e[i+1][1]=f.substring(p),i++),i++;}i++;}}a(Ud,"diff_cleanupSemantic");var Na=/[^a-z0-9]/i,Aa=/\s/,Pa=/[\r\n]/,Wd=/\n\r?\n$/,Vd=/^\r?\n\r?\n/;function Kd(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===ce&&e[t+1][0]===ce){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],i=Va(n,r);if(i){let f=r.substring(r.length-i);n=n.substring(0,n.length-i),r=f+r.substring(0,r.length-i),o=f+o;}let s=n,c=r,u=o,l=Ln(n,r)+Ln(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let f=Ln(n,r)+Ln(r,o);f>=l&&(l=f,s=n,c=r,u=o);}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=c,u?e[t+1][1]=u:(e.splice(t+1,1),t--));}t++;}}a(Kd,"diff_cleanupSemanticLossless");function Ka(e){var t;e.push(new re(ce,""));let n=0,r=0,o=0,i="",s="",c;for(;n<e.length;)switch(e[n][0]){case we:o++,s+=e[n][1],n++;break;case Te:r++,i+=e[n][1],n++;break;case ce:r+o>1?(r!==0&&o!==0&&(c=zd(s,i),c!==0&&(n-r-o>0&&e[n-r-o-1][0]===ce?e[n-r-o-1][1]+=s.substring(0,c):(e.splice(0,0,new re(ce,s.substring(0,c))),n++),s=s.substring(c),i=i.substring(c)),c=Va(s,i),c!==0&&(e[n][1]=s.substring(s.length-c)+e[n][1],s=s.substring(0,s.length-c),i=i.substring(0,i.length-c))),n-=r+o,e.splice(n,r+o),i.length&&(e.splice(n,0,new re(Te,i)),n++),s.length&&(e.splice(n,0,new re(we,s)),n++),n++):n!==0&&e[n-1][0]===ce?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,r=0,i="",s="";break}((t=e.at(-1))===null||t===void 0?void 0:t[1])===""&&e.pop();let u=false;for(n=1;n<e.length-1;)e[n-1][0]===ce&&e[n+1][0]===ce&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),u=true):e[n][1].substring(0,e[n+1][1].length)===e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),u=true)),n++;u&&Ka(e);}a(Ka,"diff_cleanupMerge");function Ln(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(Na),i=r.match(Na),s=o&&n.match(Aa),c=i&&r.match(Aa),u=s&&n.match(Pa),l=c&&r.match(Pa),f=u&&e.match(Wd),h=l&&t.match(Vd);return f||h?5:u||l?4:o&&!s&&c?3:s||c?2:o||i?1:0}a(Ln,"diff_cleanupSemanticScore_");var Ga="Compared values have no visual difference.",Gd="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",qn={},ja;function Hd(){if(ja)return qn;ja=1,Object.defineProperty(qn,"__esModule",{value:true}),qn.default=d;let e="diff-sequences",t=0,n=a((p,m,y,v,S)=>{let M=0;for(;p<m&&y<v&&S(p,y);)p+=1,y+=1,M+=1;return M},"countCommonItemsF"),r=a((p,m,y,v,S)=>{let M=0;for(;p<=m&&y<=v&&S(m,v);)m-=1,v-=1,M+=1;return M},"countCommonItemsR"),o=a((p,m,y,v,S,M,$)=>{let O=0,C=-p,N=M[O],I=N;M[O]+=n(N+1,m,v+N-C+1,y,S);let q=p<$?p:$;for(O+=1,C+=2;O<=q;O+=1,C+=2){if(O!==p&&I<M[O])N=M[O];else if(N=I+1,m<=N)return O-1;I=M[O],M[O]=N+n(N+1,m,v+N-C+1,y,S);}return $},"extendPathsF"),i=a((p,m,y,v,S,M,$)=>{let O=0,C=p,N=M[O],I=N;M[O]-=r(m,N-1,y,v+N-C-1,S);let q=p<$?p:$;for(O+=1,C-=2;O<=q;O+=1,C-=2){if(O!==p&&M[O]<I)N=M[O];else if(N=I-1,N<m)return O-1;I=M[O],M[O]=N-r(m,N-1,y,v+N-C-1,S);}return $},"extendPathsR"),s=a((p,m,y,v,S,M,$,O,C,N,I)=>{let q=v-m,X=y-m,H=S-v-X,oe=-H-(p-1),ue=-H+(p-1),fe=t,ie=p<O?p:O;for(let J=0,te=-p;J<=ie;J+=1,te+=2){let $e=J===0||J!==p&&fe<$[J],de=$e?$[J]:fe,ve=$e?de:de+1,Ue=q+ve-te,xe=n(ve+1,y,Ue+1,S,M),Me=ve+xe;if(fe=$[J],$[J]=Me,oe<=te&&te<=ue){let et=(p-1-(te+H))/2;if(et<=N&&C[et]-1<=Me){let Re=q+de-($e?te+1:te-1),_e=r(m,de,v,Re,M),Oe=de-_e,$t=Re-_e,Ze=Oe+1,Ht=$t+1;I.nChangePreceding=p-1,p-1===Ze+Ht-m-v?(I.aEndPreceding=m,I.bEndPreceding=v):(I.aEndPreceding=Ze,I.bEndPreceding=Ht),I.nCommonPreceding=_e,_e!==0&&(I.aCommonPreceding=Ze,I.bCommonPreceding=Ht),I.nCommonFollowing=xe,xe!==0&&(I.aCommonFollowing=ve+1,I.bCommonFollowing=Ue+1);let Se=Me+1,tt=Ue+xe+1;return I.nChangeFollowing=p-1,p-1===y+S-Se-tt?(I.aStartFollowing=y,I.bStartFollowing=S):(I.aStartFollowing=Se,I.bStartFollowing=tt),true}}}return false},"extendOverlappablePathsF"),c=a((p,m,y,v,S,M,$,O,C,N,I)=>{let q=S-y,X=y-m,H=S-v-X,oe=H-p,ue=H+p,fe=t,ie=p<N?p:N;for(let J=0,te=p;J<=ie;J+=1,te-=2){let $e=J===0||J!==p&&C[J]<fe,de=$e?C[J]:fe,ve=$e?de:de-1,Ue=q+ve-te,xe=r(m,ve-1,v,Ue-1,M),Me=ve-xe;if(fe=C[J],C[J]=Me,oe<=te&&te<=ue){let et=(p+(te-H))/2;if(et<=O&&Me-1<=$[et]){let Re=Ue-xe;if(I.nChangePreceding=p,p===Me+Re-m-v?(I.aEndPreceding=m,I.bEndPreceding=v):(I.aEndPreceding=Me,I.bEndPreceding=Re),I.nCommonPreceding=xe,xe!==0&&(I.aCommonPreceding=Me,I.bCommonPreceding=Re),I.nChangeFollowing=p-1,p===1)I.nCommonFollowing=0,I.aStartFollowing=y,I.bStartFollowing=S;else {let _e=q+de-($e?te-1:te+1),Oe=n(de,y,_e,S,M);I.nCommonFollowing=Oe,Oe!==0&&(I.aCommonFollowing=de,I.bCommonFollowing=_e);let $t=de+Oe,Ze=_e+Oe;p-1===y+S-$t-Ze?(I.aStartFollowing=y,I.bStartFollowing=S):(I.aStartFollowing=$t,I.bStartFollowing=Ze);}return true}}}return false},"extendOverlappablePathsR"),u=a((p,m,y,v,S,M,$,O,C)=>{let N=v-m,I=S-y,q=y-m,X=S-v,D=X-q,H=q,oe=q;if($[0]=m-1,O[0]=y,D%2===0){let ue=(p||D)/2,fe=(q+X)/2;for(let ie=1;ie<=fe;ie+=1)if(H=o(ie,y,S,N,M,$,H),ie<ue)oe=i(ie,m,v,I,M,O,oe);else if(c(ie,m,y,v,S,M,$,H,O,oe,C))return}else {let ue=((p||D)+1)/2,fe=(q+X+1)/2,ie=1;for(H=o(ie,y,S,N,M,$,H),ie+=1;ie<=fe;ie+=1)if(oe=i(ie-1,m,v,I,M,O,oe),ie<ue)H=o(ie,y,S,N,M,$,H);else if(s(ie,m,y,v,S,M,$,H,O,oe,C))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${v} bEnd=${S}`)},"divide"),l=a((p,m,y,v,S,M,$,O,C,N)=>{if(S-v<y-m){if(M=!M,M&&$.length===1){let{foundSubsequence:Me,isCommon:et}=$[0];$[1]={foundSubsequence:a((Re,_e,Oe)=>{Me(Re,Oe,_e);},"foundSubsequence"),isCommon:a((Re,_e)=>et(_e,Re),"isCommon")};}let Ue=m,xe=y;m=v,y=S,v=Ue,S=xe;}let{foundSubsequence:I,isCommon:q}=$[M?1:0];u(p,m,y,v,S,q,O,C,N);let{nChangePreceding:X,aEndPreceding:D,bEndPreceding:H,nCommonPreceding:oe,aCommonPreceding:ue,bCommonPreceding:fe,nCommonFollowing:ie,aCommonFollowing:J,bCommonFollowing:te,nChangeFollowing:$e,aStartFollowing:de,bStartFollowing:ve}=N;m<D&&v<H&&l(X,m,D,v,H,M,$,O,C,N),oe!==0&&I(oe,ue,fe),ie!==0&&I(ie,J,te),de<y&&ve<S&&l($e,de,y,ve,S,M,$,O,C,N);},"findSubsequences"),f=a((p,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${p} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${p} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${p} value ${m} is a negative integer`)},"validateLength"),h=a((p,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${p} typeof ${y} is not a function`)},"validateCallback");function d(p,m,y,v){f("aLength",p),f("bLength",m),h("isCommon",y),h("foundSubsequence",v);let S=n(0,p,0,m,y);if(S!==0&&v(S,0,0),p!==S||m!==S){let M=S,$=S,O=r(M,p-1,$,m-1,y),C=p-O,N=m-O,I=S+O;p!==I&&m!==I&&l(0,M,C,$,N,false,[{foundSubsequence:v,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),O!==0&&v(O,C,N);}}return a(d,"diffSequence"),qn}a(Hd,"requireBuild");var Jd=Hd(),Ha=ka(Jd);function Yd(e,t){return e.replace(/\s+$/,n=>t(n))}a(Yd,"formatTrailingSpaces");function vo(e,t,n,r,o,i){return e.length!==0?n(`${r} ${Yd(e,o)}`):r!==" "?n(r):t&&i.length!==0?n(`${r} ${i}`):""}a(vo,"printDiffLine");function Ja(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return vo(e,t,n,r,o,i)}a(Ja,"printDeleteLine");function Ya(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return vo(e,t,n,r,o,i)}a(Ya,"printInsertLine");function Za(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return vo(e,t,n,r,o,i)}a(Za,"printCommonLine");function Ra(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}a(Ra,"createPatchMark");function Zd(e,t){let n=e.length,r=t.contextLines,o=r+r,i=n,s=false,c=0,u=0;for(;u!==n;){let O=u;for(;u!==n&&e[u][0]===ce;)u+=1;if(O!==u)if(O===0)u>r&&(i-=u-r,s=true);else if(u===n){let C=u-O;C>r&&(i-=C-r,s=true);}else {let C=u-O;C>o&&(i-=C-o,c+=1);}for(;u!==n&&e[u][0]!==ce;)u+=1;}let l=c!==0||s;c!==0?i+=c+1:s&&(i+=1);let f=i-1,h=[],d=0;l&&h.push("");let p=0,m=0,y=0,v=0,S=a(O=>{let C=h.length;h.push(Za(O,C===0||C===f,t)),y+=1,v+=1;},"pushCommonLine"),M=a(O=>{let C=h.length;h.push(Ja(O,C===0||C===f,t)),y+=1;},"pushDeleteLine"),$=a(O=>{let C=h.length;h.push(Ya(O,C===0||C===f,t)),v+=1;},"pushInsertLine");for(u=0;u!==n;){let O=u;for(;u!==n&&e[u][0]===ce;)u+=1;if(O!==u)if(O===0){u>r&&(O=u-r,p=O,m=O,y=p,v=m);for(let C=O;C!==u;C+=1)S(e[C][1]);}else if(u===n){let C=u-O>r?O+r:u;for(let N=O;N!==C;N+=1)S(e[N][1]);}else {let C=u-O;if(C>o){let N=O+r;for(let q=O;q!==N;q+=1)S(e[q][1]);h[d]=Ra(p,y,m,v,t),d=h.length,h.push("");let I=C-o;p=y+I,m=v+I,y=p,v=m;for(let q=u-r;q!==u;q+=1)S(e[q][1]);}else for(let N=O;N!==u;N+=1)S(e[N][1]);}for(;u!==n&&e[u][0]===Te;)M(e[u][1]),u+=1;for(;u!==n&&e[u][0]===we;)$(e[u][1]),u+=1;}return l&&(h[d]=Ra(p,y,m,v,t)),h.join(`
19
- `)}a(Zd,"joinAlignedDiffsNoExpand");function Xd(e,t){return e.map((n,r,o)=>{let i=n[1],s=r===0||r===o.length-1;switch(n[0]){case Te:return Ja(i,s,t);case we:return Ya(i,s,t);default:return Za(i,s,t)}}).join(`
20
- `)}a(Xd,"joinAlignedDiffsExpand");var po=a(e=>e,"noColor"),Xa=5,Qd=0;function ep(){return {aAnnotation:"Expected",aColor:ne.green,aIndicator:"-",bAnnotation:"Received",bColor:ne.red,bIndicator:"+",changeColor:ne.inverse,changeLineTrailingSpaceColor:po,commonColor:ne.dim,commonIndicator:" ",commonLineTrailingSpaceColor:po,compareKeys:void 0,contextLines:Xa,emptyFirstOrLastLinePlaceholder:"",expand:false,includeChangeCounts:false,omitAnnotationLines:false,patchColor:ne.yellow,printBasicPrototype:false,truncateThreshold:Qd,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:po}}a(ep,"getDefaultOptions");function tp(e){return e&&typeof e=="function"?e:void 0}a(tp,"getCompareKeys");function np(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Xa}a(np,"getContextLines");function St(e={}){return {...ep(),...e,compareKeys:tp(e.compareKeys),contextLines:np(e.contextLines)}}a(St,"normalizeDiffOptions");function Pt(e){return e.length===1&&e[0].length===0}a(Pt,"isEmptyString");function rp(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case Te:t+=1;break;case we:n+=1;break}}),{a:t,b:n}}a(rp,"countChanges");function op({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:c},u){if(c)return "";let l="",f="";if(s){let p=String(u.a),m=String(u.b),y=r.length-e.length,v=" ".repeat(Math.max(0,y)),S=" ".repeat(Math.max(0,-y)),M=m.length-p.length,$=" ".repeat(Math.max(0,M)),O=" ".repeat(Math.max(0,-M));l=`${v} ${n} ${$}${p}`,f=`${S} ${i} ${O}${m}`;}let h=`${n} ${e}${l}`,d=`${i} ${r}${f}`;return `${t(h)}
17
+ `,maxOutputLength:e?.maxOutputLength??We.maxOutputLength,_outputLengthPerDepth:[]}}i(Ma,"getConfig");function Kp(e){return Array.from({length:e+1}).join(" ")}i(Kp,"createIndent");function $e(e,t){if(t&&(zp(t),t.plugins)){let r=Wa(t.plugins,e);if(r!==null)return za(r,e,Ma(t),"",0,[])}let n=qa(e,Ka(t),Ha(t),Ga(t));return n!==null?n:Ua(e,Ma(t),"",0,[])}i($e,"format");var kt={AsymmetricMatcher:jh,DOMCollection:zh,DOMElement:Qh,Immutable:dp,ReactElement:Cp,ReactTestComponent:$p,Error:qp};var Ja={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Hp={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Dt="\u2026";function Gp(e,t){let n=Ja[Hp[t]]||Ja[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}i(Gp,"colorise");function Jp({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:s=1/0,breakLength:a=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(s),breakLength:Number(a),truncate:Number(c),seen:l,inspect:f,stylize:u};return h.colors&&(h.stylize=Gp),h}i(Jp,"normaliseOptions");function Yp(e){return e>="\uD800"&&e<="\uDBFF"}i(Yp,"isHighSurrogate");function wt(e,t,n=Dt){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let s=t-r;return s>0&&Yp(e[s-1])&&(s=s-1),`${e.slice(0,s)}${n}`}return e}i(wt,"truncate");function Ye(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let s=t.truncate,a="",l="",c="";for(let u=0;u<o;u+=1){let f=u+1===e.length,h=u+2===e.length;c=`${Dt}(${e.length-u})`;let d=e[u];t.truncate=s-a.length-(f?0:r.length);let p=l||n(d,t)+(f?"":r),g=a.length+p.length,m=g+c.length;if(f&&g>s&&a.length+c.length<=s||!f&&!h&&m>s||(l=f?"":n(e[u+1],t)+(h?"":r),!f&&h&&m>s&&g+l.length>s))break;if(a+=p,!f&&!h&&g+l.length>=s){c=`${Dt}(${e.length-u-1})`;break}c="";}return `${a}${c}`}i(Ye,"inspectList");function Xp(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}i(Xp,"quoteComplexKey");function cn([e,t],n){return n.truncate-=2,typeof e=="string"?e=Xp(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}i(cn,"inspectProperty");function Zp(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=Ye(e,t);t.truncate-=r.length;let o="";return n.length&&(o=Ye(n.map(s=>[s,e[s]]),t,cn)),`[ ${r}${o?`, ${o}`:""} ]`}i(Zp,"inspectArray");var Qp=i(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function ct(e,t){let n=Qp(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let a=0;a<e.length;a++){let l=`${t.stylize(wt(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){o+=`${Dt}(${e.length-e[a]+1})`;break}o+=l;}let s="";return r.length&&(s=Ye(r.map(a=>[a,e[a]]),t,cn)),`${n}[ ${o}${s?`, ${s}`:""} ]`}i(ct,"inspectTypedArray");function ed(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${wt(r[1],t.truncate-o.length-1)}`,"date")}i(ed,"inspectDate");function Ya(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${wt(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}i(Ya,"inspectFunction");function td([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}i(td,"inspectMapEntry");function nd(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}i(nd,"mapToEntries");function rd(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ye(nd(e),t,td)} }`)}i(rd,"inspectMap");var od=Number.isNaN||(e=>e!==e);function Xa(e,t){return od(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(wt(String(e),t.truncate),"number")}i(Xa,"inspectNumber");function Za(e,t){let n=wt(e.toString(),t.truncate-1);return n!==Dt&&(n+="n"),t.stylize(n,"bigint")}i(Za,"inspectBigInt");function sd(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${wt(o,r)}/${n}`,"regexp")}i(sd,"inspectRegExp");function id(e){let t=[];return e.forEach(n=>{t.push(n);}),t}i(id,"arrayFromSet");function ad(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ye(id(e),t)} }`)}i(ad,"inspectSet");var Qa=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),cd={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},ld=16;function ud(e){return cd[e]||`\\u${`0000${e.charCodeAt(0).toString(ld)}`.slice(-4)}`}i(ud,"escape");function ec(e,t){return Qa.test(e)&&(e=e.replace(Qa,ud)),t.stylize(`'${wt(e,t.truncate-2)}'`,"string")}i(ec,"inspectString");function tc(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(tc,"inspectSymbol");var fd=i(()=>"Promise{\u2026}","getPromiseValue");function Hn(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=Ye(n.map(l=>[l,e[l]]),t,cn),s=Ye(r.map(l=>[l,e[l]]),t,cn);t.seen.pop();let a="";return o&&s&&(a=", "),`{ ${o}${a}${s} }`}i(Hn,"inspectObject$1");var To=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function hd(e,t){let n="";return To&&To in e&&(n=e[To]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Hn(e,t)}`}i(hd,"inspectClass");function pd(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ye(e,t)} ]`)}i(pd,"inspectArguments");var dd=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function md(e,t){let n=Object.getOwnPropertyNames(e).filter(a=>dd.indexOf(a)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=wt(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let s=Ye(n.map(a=>[a,e[a]]),t,cn);return `${r}${o}${s?` { ${s} }`:""}`}i(md,"inspectObject");function gd([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}i(gd,"inspectAttribute");function vo(e,t){return Ye(e,t,yd,`
18
+ `)}i(vo,"inspectNodeCollection");function yd(e,t){switch(e.nodeType){case 1:return sc(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}i(yd,"inspectNode");function sc(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),s=t.stylize(">","special"),a=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let l="";n.length>0&&(l+=" ",l+=Ye(n.map(f=>[f,e.getAttribute(f)]),t,gd," ")),t.truncate-=l.length;let c=t.truncate,u=vo(e.children,t);return u&&u.length>c&&(u=`${Dt}(${e.children.length})`),`${o}${l}${s}${u}${a}`}i(sc,"inspectHTML");var wd=typeof Symbol=="function"&&typeof Symbol.for=="function",So=wd?Symbol.for("chai/inspect"):"@@chai/inspect",Eo=Symbol.for("nodejs.util.inspect.custom"),nc=new WeakMap,rc={},oc={undefined:i((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:i((e,t)=>t.stylize("null","null"),"null"),boolean:i((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:i((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Xa,Number:Xa,bigint:Za,BigInt:Za,string:ec,String:ec,function:Ya,Function:Ya,symbol:tc,Symbol:tc,Array:Zp,Date:ed,Map:rd,Set:ad,RegExp:sd,Promise:fd,WeakSet:i((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:i((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:pd,Int8Array:ct,Uint8Array:ct,Uint8ClampedArray:ct,Int16Array:ct,Uint16Array:ct,Int32Array:ct,Uint32Array:ct,Float32Array:ct,Float64Array:ct,Generator:i(()=>"","Generator"),DataView:i(()=>"","DataView"),ArrayBuffer:i(()=>"","ArrayBuffer"),Error:md,HTMLCollection:vo,NodeList:vo},bd=i((e,t,n,r)=>So in e&&typeof e[So]=="function"?e[So](t):Eo in e&&typeof e[Eo]=="function"?e[Eo](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&nc.has(e.constructor)?nc.get(e.constructor)(e,t):rc[n]?rc[n](e,t):"","inspectCustom"),Td=Object.prototype.toString;function Gn(e,t={}){let n=Jp(t,Gn),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Td.call(e).slice(8,-1)),o in oc)return oc[o](e,n);if(r&&e){let a=bd(e,n,o,Gn);if(a)return typeof a=="string"?a:Gn(a,n)}let s=e?Object.getPrototypeOf(e):false;return s===Object.prototype||s===null?Hn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?sc(e,n):"constructor"in e?e.constructor!==Object?hd(e,n):Hn(e,n):e===Object(e)?Hn(e,n):n.stylize(String(e),o)}i(Gn,"inspect$1");var{AsymmetricMatcher:ic,DOMCollection:ac,DOMElement:Sd,Immutable:cc,ReactElement:lc,ReactTestComponent:uc}=kt,Ed=[uc,lc,Sd,ac,cc,ic];function ye(e,t=10,{maxLength:n,filterNode:r,...o}={}){let s=n??1e4,a,l=typeof r=="string"?vd(r):r,c=l?[uc,lc,Ra(l),ac,cc,ic]:Ed;try{a=$e(e,{maxDepth:t,escapeString:false,plugins:c,...o});}catch{a=$e(e,{callToJSON:false,maxDepth:t,escapeString:false,plugins:c,...o});}return a.length>=s&&t>1?ye(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,filterNode:r,...o}):a}i(ye,"stringify");function vd(e){return r=>{if(r.nodeType===8)return false;if(r.nodeType===1&&r.matches)try{return !r.matches(e)}catch{return true}return true}}i(vd,"createNodeFilterFromSelector");var xo=/%[sdjifoOc%]/g;function xd(e,t={}){let n=i((l,c)=>t.prettifyObject?ye(l,void 0,{printBasicPrototype:false,escapeString:false}):hc(l,c),"formatArg");if(typeof e[0]!="string"){let l=[];for(let c=0;c<e.length;c++)l.push(n(e[c],{depth:0,colors:false}));return l.join(" ")}let r=e.length,o=1,s=e[0],a=String(s).replace(xo,l=>{if(l==="%%")return "%";if(o>=r)return l;switch(l){case "%s":{let c=e[o++];return typeof c=="bigint"?`${c.toString()}n`:typeof c=="number"&&c===0&&1/c<0?"-0":typeof c=="object"&&c!==null?typeof c.toString=="function"&&c.toString!==Object.prototype.toString?c.toString():n(c,{depth:0,colors:false}):String(c)}case "%d":{let c=e[o++];return typeof c=="bigint"?`${c.toString()}n`:typeof c=="symbol"?"NaN":Number(c).toString()}case "%i":{let c=e[o++];return typeof c=="bigint"?`${c.toString()}n`:Number.parseInt(String(c)).toString()}case "%f":return Number.parseFloat(String(e[o++])).toString();case "%o":return n(e[o++],{showHidden:true,showProxy:true});case "%O":return n(e[o++]);case "%c":return o++,"";case "%j":try{return JSON.stringify(e[o++])}catch(c){let u=c.message;if(u.includes("circular structure")||u.includes("cyclic structures")||u.includes("cyclic object"))return "[Circular]";throw c}default:return l}});for(let l=e[o];o<r;l=e[++o])l===null||typeof l!="object"?a+=` ${typeof l=="symbol"?l.toString():l}`:a+=` ${n(l)}`;return a}i(xd,"baseFormat");function fc(...e){return xd(e)}i(fc,"format");function hc(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Gn(e,t)}i(hc,"inspect");function pc(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);let n=hc(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r==="[object Function]"){let o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else {if(r==="[object Array]")return `[ Array(${e.length}) ]`;if(r==="[object Object]"){let o=Object.keys(e);return `{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}i(pc,"objDisplay");function dc(e){let{message:t="$$stack trace error",stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=l=>l.stack;let a=new Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,a}i(dc,"createSimpleStackTrace");function Mo(e){return e!=null}i(Mo,"notNullish");function pe(e,t,n){let r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}i(pe,"assertTypes");function mc(e){return e===null||typeof e!="function"&&typeof e!="object"}i(mc,"isPrimitive");function gc(e){let t=[],n="none";for(let r=0;r<e.length;++r)n==="singleline"?e[r]===`
19
+ `&&(n="none"):n==="multiline"?e[r-1]==="*"&&e[r]==="/"&&(n="none"):n==="none"&&(e[r]==="/"&&e[r+1]==="/"?n="singleline":e[r]==="/"&&e[r+1]==="*"?(n="multiline",r+=2):t.push(e[r]));return t.join("")}i(gc,"filterOutComments");function ln(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}i(ln,"toArray");function Le(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}i(Le,"isObject");function kd(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}i(kd,"isFinalObj");function Mt(e){return Object.prototype.toString.apply(e).slice(8,-1)}i(Mt,"getType");function Md(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n);}i(Md,"collectOwnProperties");function Co(e){let t=new Set;return kd(e)?[]:(Md(e,t),Array.from(t))}i(Co,"getOwnProperties");var yc={forceWritable:false};function _o(e,t=yc){return ko(e,new WeakMap,t)}i(_o,"deepClone");function ko(e,t,n=yc){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=ko(e[r],t,n);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let s=Co(e);for(let a of s){let l=Object.getOwnPropertyDescriptor(e,a);if(!l)continue;let c=ko(e[a],t,n);n.forceWritable?Object.defineProperty(o,a,{enumerable:l.enumerable,configurable:true,writable:true,value:c}):"get"in l?Object.defineProperty(o,a,{...l,get(){return c}}):Object.defineProperty(o,a,{...l,value:c});}return o}return e}i(ko,"clone");function Oo(){}i(Oo,"noop");function Io(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let s of r)if(o=new Object(o)[s],o===void 0)return n;return o}i(Io,"objectAttr");function Jn(){let e=null,t=null,n=new Promise((r,o)=>{e=r,t=o;});return n.resolve=e,n.reject=t,n}i(Jn,"createDefer");function wc(e){let t=-1,n=null,r=0,o=0,s=null;for(;t<=e.length;){s=e[t],t++;let a=e[t];if((a==='"'||a==="'"||a==="`")&&s!=="\\"&&(n===a?n=null:n||(n=a)),n||(a==="("&&r++,a===")"&&o++),r&&o&&r===o)return t}return null}i(wc,"getCallLastIndex");function bc(e){if(!Number.isNaN(e))return false;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}i(bc,"isNegativeNaN");function lt(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}i(lt,"ordinal");function Ao(e){return Array.from(new Set(e))}i(Ao,"unique");var Ee=-1,we=1,ce=0,ie=class{static{i(this,"Diff");}0;1;constructor(t,n){this[0]=t,this[1]=n;}};function Cd(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,s=0;for(;n<o;)e.substring(s,o)===t.substring(s,o)?(n=o,s=n):r=o,o=Math.floor((r-n)/2+n);return o}i(Cd,"diff_commonPrefix");function Pc(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),o=r,s=0;for(;n<o;)e.substring(e.length-o,e.length-s)===t.substring(t.length-o,t.length-s)?(n=o,s=n):r=o,o=Math.floor((r-n)/2+n);return o}i(Pc,"diff_commonSuffix");function Tc(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let o=Math.min(n,r);if(e===t)return o;let s=0,a=1;for(;;){let l=e.substring(o-a),c=t.indexOf(l);if(c===-1)return s;a+=c,(c===0||e.substring(o-a)===t.substring(0,a))&&(s=a,a++);}}i(Tc,"diff_commonOverlap_");function _d(e){let t=false,n=[],r=0,o=null,s=0,a=0,l=0,c=0,u=0;for(;s<e.length;)e[s][0]===ce?(n[r++]=s,a=c,l=u,c=0,u=0,o=e[s][1]):(e[s][0]===we?c+=e[s][1].length:u+=e[s][1].length,o&&o.length<=Math.max(a,l)&&o.length<=Math.max(c,u)&&(e.splice(n[r-1],0,new ie(Ee,o)),e[n[r-1]+1][0]=we,r--,r--,s=r>0?n[r-1]:-1,a=0,l=0,c=0,u=0,o=null,t=true)),s++;for(t&&Rc(e),Ad(e),s=1;s<e.length;){if(e[s-1][0]===Ee&&e[s][0]===we){let f=e[s-1][1],h=e[s][1],d=Tc(f,h),p=Tc(h,f);d>=p?(d>=f.length/2||d>=h.length/2)&&(e.splice(s,0,new ie(ce,h.substring(0,d))),e[s-1][1]=f.substring(0,f.length-d),e[s+1][1]=h.substring(d),s++):(p>=f.length/2||p>=h.length/2)&&(e.splice(s,0,new ie(ce,f.substring(0,p))),e[s-1][0]=we,e[s-1][1]=h.substring(0,h.length-p),e[s+1][0]=Ee,e[s+1][1]=f.substring(p),s++),s++;}s++;}}i(_d,"diff_cleanupSemantic");var Sc=/[^a-z0-9]/i,Ec=/\s/,vc=/[\r\n]/,Od=/\n\r?\n$/,Id=/^\r?\n\r?\n/;function Ad(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===ce&&e[t+1][0]===ce){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],s=Pc(n,r);if(s){let f=r.substring(r.length-s);n=n.substring(0,n.length-s),r=f+r.substring(0,r.length-s),o=f+o;}let a=n,l=r,c=o,u=Yn(n,r)+Yn(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let f=Yn(n,r)+Yn(r,o);f>=u&&(u=f,a=n,l=r,c=o);}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=l,c?e[t+1][1]=c:(e.splice(t+1,1),t--));}t++;}}i(Ad,"diff_cleanupSemanticLossless");function Rc(e){e.push(new ie(ce,""));let t=0,n=0,r=0,o="",s="",a;for(;t<e.length;)switch(e[t][0]){case we:r++,s+=e[t][1],t++;break;case Ee:n++,o+=e[t][1],t++;break;case ce:n+r>1?(n!==0&&r!==0&&(a=Cd(s,o),a!==0&&(t-n-r>0&&e[t-n-r-1][0]===ce?e[t-n-r-1][1]+=s.substring(0,a):(e.splice(0,0,new ie(ce,s.substring(0,a))),t++),s=s.substring(a),o=o.substring(a)),a=Pc(s,o),a!==0&&(e[t][1]=s.substring(s.length-a)+e[t][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a))),t-=n+r,e.splice(t,n+r),o.length&&(e.splice(t,0,new ie(Ee,o)),t++),s.length&&(e.splice(t,0,new ie(we,s)),t++),t++):t!==0&&e[t-1][0]===ce?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,o="",s="";break}e.at(-1)?.[1]===""&&e.pop();let l=false;for(t=1;t<e.length-1;)e[t-1][0]===ce&&e[t+1][0]===ce&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=true):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=true)),t++;l&&Rc(e);}i(Rc,"diff_cleanupMerge");function Yn(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(Sc),s=r.match(Sc),a=o&&n.match(Ec),l=s&&r.match(Ec),c=a&&n.match(vc),u=l&&r.match(vc),f=c&&e.match(Od),h=u&&t.match(Id);return f||h?5:c||u?4:o&&!a&&l?3:a||l?2:o||s?1:0}i(Yn,"diff_cleanupSemanticScore_");var jc="Compared values have no visual difference.",$d="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";function Nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(Nd,"getDefaultExportFromCjs");var Xn={},xc;function Pd(){if(xc)return Xn;xc=1,Object.defineProperty(Xn,"__esModule",{value:true}),Xn.default=d;let e="diff-sequences",t=0,n=i((p,g,m,b,E)=>{let M=0;for(;p<g&&m<b&&E(p,m);)p+=1,m+=1,M+=1;return M},"countCommonItemsF"),r=i((p,g,m,b,E)=>{let M=0;for(;p<=g&&m<=b&&E(g,b);)g-=1,b-=1,M+=1;return M},"countCommonItemsR"),o=i((p,g,m,b,E,M,A)=>{let C=0,O=-p,N=M[C],_=N;M[C]+=n(N+1,g,b+N-O+1,m,E);let q=p<A?p:A;for(C+=1,O+=2;C<=q;C+=1,O+=2){if(C!==p&&_<M[C])N=M[C];else if(N=_+1,g<=N)return C-1;_=M[C],M[C]=N+n(N+1,g,b+N-O+1,m,E);}return A},"extendPathsF"),s=i((p,g,m,b,E,M,A)=>{let C=0,O=p,N=M[C],_=N;M[C]-=r(g,N-1,m,b+N-O-1,E);let q=p<A?p:A;for(C+=1,O-=2;C<=q;C+=1,O-=2){if(C!==p&&M[C]<_)N=M[C];else if(N=_-1,N<g)return C-1;_=M[C],M[C]=N-r(g,N-1,m,b+N-O-1,E);}return A},"extendPathsR"),a=i((p,g,m,b,E,M,A,C,O,N,_)=>{let q=b-g,Q=m-g,V=E-b-Q,Y=-V-(p-1),Te=-V+(p-1),le=t,W=p<C?p:C;for(let U=0,ee=-p;U<=W;U+=1,ee+=2){let Me=U===0||U!==p&&le<A[U],fe=Me?A[U]:le,me=Me?fe:fe+1,je=q+me-ee,xe=n(me+1,m,je+1,E,M),Ce=me+xe;if(le=A[U],A[U]=Ce,Y<=ee&&ee<=Te){let it=(p-1-(ee+V))/2;if(it<=N&&O[it]-1<=Ce){let ze=q+fe-(Me?ee+1:ee-1),_e=r(g,fe,b,ze,M),Oe=fe-_e,Rt=ze-_e,Qe=Oe+1,tn=Rt+1;_.nChangePreceding=p-1,p-1===Qe+tn-g-b?(_.aEndPreceding=g,_.bEndPreceding=b):(_.aEndPreceding=Qe,_.bEndPreceding=tn),_.nCommonPreceding=_e,_e!==0&&(_.aCommonPreceding=Qe,_.bCommonPreceding=tn),_.nCommonFollowing=xe,xe!==0&&(_.aCommonFollowing=me+1,_.bCommonFollowing=je+1);let Se=Ce+1,et=je+xe+1;return _.nChangeFollowing=p-1,p-1===m+E-Se-et?(_.aStartFollowing=m,_.bStartFollowing=E):(_.aStartFollowing=Se,_.bStartFollowing=et),true}}}return false},"extendOverlappablePathsF"),l=i((p,g,m,b,E,M,A,C,O,N,_)=>{let q=E-m,Q=m-g,V=E-b-Q,Y=V-p,Te=V+p,le=t,W=p<N?p:N;for(let U=0,ee=p;U<=W;U+=1,ee-=2){let Me=U===0||U!==p&&O[U]<le,fe=Me?O[U]:le,me=Me?fe:fe-1,je=q+me-ee,xe=r(g,me-1,b,je-1,M),Ce=me-xe;if(le=O[U],O[U]=Ce,Y<=ee&&ee<=Te){let it=(p+(ee-V))/2;if(it<=C&&Ce-1<=A[it]){let ze=je-xe;if(_.nChangePreceding=p,p===Ce+ze-g-b?(_.aEndPreceding=g,_.bEndPreceding=b):(_.aEndPreceding=Ce,_.bEndPreceding=ze),_.nCommonPreceding=xe,xe!==0&&(_.aCommonPreceding=Ce,_.bCommonPreceding=ze),_.nChangeFollowing=p-1,p===1)_.nCommonFollowing=0,_.aStartFollowing=m,_.bStartFollowing=E;else {let _e=q+fe-(Me?ee-1:ee+1),Oe=n(fe,m,_e,E,M);_.nCommonFollowing=Oe,Oe!==0&&(_.aCommonFollowing=fe,_.bCommonFollowing=_e);let Rt=fe+Oe,Qe=_e+Oe;p-1===m+E-Rt-Qe?(_.aStartFollowing=m,_.bStartFollowing=E):(_.aStartFollowing=Rt,_.bStartFollowing=Qe);}return true}}}return false},"extendOverlappablePathsR"),c=i((p,g,m,b,E,M,A,C,O)=>{let N=b-g,_=E-m,q=m-g,Q=E-b,R=Q-q,V=q,Y=q;if(A[0]=g-1,C[0]=m,R%2===0){let Te=(p||R)/2,le=(q+Q)/2;for(let W=1;W<=le;W+=1)if(V=o(W,m,E,N,M,A,V),W<Te)Y=s(W,g,b,_,M,C,Y);else if(l(W,g,m,b,E,M,A,V,C,Y,O))return}else {let Te=((p||R)+1)/2,le=(q+Q+1)/2,W=1;for(V=o(W,m,E,N,M,A,V),W+=1;W<=le;W+=1)if(Y=s(W-1,g,b,_,M,C,Y),W<Te)V=o(W,m,E,N,M,A,V);else if(a(W,g,m,b,E,M,A,V,C,Y,O))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${m} bStart=${b} bEnd=${E}`)},"divide"),u=i((p,g,m,b,E,M,A,C,O,N)=>{if(E-b<m-g){if(M=!M,M&&A.length===1){let{foundSubsequence:Ce,isCommon:it}=A[0];A[1]={foundSubsequence:i((ze,_e,Oe)=>{Ce(ze,Oe,_e);},"foundSubsequence"),isCommon:i((ze,_e)=>it(_e,ze),"isCommon")};}let je=g,xe=m;g=b,m=E,b=je,E=xe;}let{foundSubsequence:_,isCommon:q}=A[M?1:0];c(p,g,m,b,E,q,C,O,N);let{nChangePreceding:Q,aEndPreceding:R,bEndPreceding:V,nCommonPreceding:Y,aCommonPreceding:Te,bCommonPreceding:le,nCommonFollowing:W,aCommonFollowing:U,bCommonFollowing:ee,nChangeFollowing:Me,aStartFollowing:fe,bStartFollowing:me}=N;g<R&&b<V&&u(Q,g,R,b,V,M,A,C,O,N),Y!==0&&_(Y,Te,le),W!==0&&_(W,U,ee),fe<m&&me<E&&u(Me,fe,m,me,E,M,A,C,O,N);},"findSubsequences"),f=i((p,g)=>{if(typeof g!="number")throw new TypeError(`${e}: ${p} typeof ${typeof g} is not a number`);if(!Number.isSafeInteger(g))throw new RangeError(`${e}: ${p} value ${g} is not a safe integer`);if(g<0)throw new RangeError(`${e}: ${p} value ${g} is a negative integer`)},"validateLength"),h=i((p,g)=>{let m=typeof g;if(m!=="function")throw new TypeError(`${e}: ${p} typeof ${m} is not a function`)},"validateCallback");function d(p,g,m,b){f("aLength",p),f("bLength",g),h("isCommon",m),h("foundSubsequence",b);let E=n(0,p,0,g,m);if(E!==0&&b(E,0,0),p!==E||g!==E){let M=E,A=E,C=r(M,p-1,A,g-1,m),O=p-C,N=g-C,_=E+C;p!==_&&g!==_&&u(0,M,O,A,N,false,[{foundSubsequence:b,isCommon:m}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),C!==0&&b(C,O,N);}}return i(d,"diffSequence"),Xn}i(Pd,"requireBuild");var Rd=Pd(),Fc=Nd(Rd);function jd(e,t){return e.replace(/\s+$/,n=>t(n))}i(jd,"formatTrailingSpaces");function Do(e,t,n,r,o,s){return e.length!==0?n(`${r} ${jd(e,o)}`):r!==" "?n(r):t&&s.length!==0?n(`${r} ${s}`):""}i(Do,"printDiffLine");function Dc(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return Do(e,t,n,r,o,s)}i(Dc,"printDeleteLine");function Lc(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return Do(e,t,n,r,o,s)}i(Lc,"printInsertLine");function Bc(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return Do(e,t,n,r,o,s)}i(Bc,"printCommonLine");function kc(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}i(kc,"createPatchMark");function Fd(e,t){let n=e.length,r=t.contextLines,o=r+r,s=n,a=false,l=0,c=0;for(;c!==n;){let C=c;for(;c!==n&&e[c][0]===ce;)c+=1;if(C!==c)if(C===0)c>r&&(s-=c-r,a=true);else if(c===n){let O=c-C;O>r&&(s-=O-r,a=true);}else {let O=c-C;O>o&&(s-=O-o,l+=1);}for(;c!==n&&e[c][0]!==ce;)c+=1;}let u=l!==0||a;l!==0?s+=l+1:a&&(s+=1);let f=s-1,h=[],d=0;u&&h.push("");let p=0,g=0,m=0,b=0,E=i(C=>{let O=h.length;h.push(Bc(C,O===0||O===f,t)),m+=1,b+=1;},"pushCommonLine"),M=i(C=>{let O=h.length;h.push(Dc(C,O===0||O===f,t)),m+=1;},"pushDeleteLine"),A=i(C=>{let O=h.length;h.push(Lc(C,O===0||O===f,t)),b+=1;},"pushInsertLine");for(c=0;c!==n;){let C=c;for(;c!==n&&e[c][0]===ce;)c+=1;if(C!==c)if(C===0){c>r&&(C=c-r,p=C,g=C,m=p,b=g);for(let O=C;O!==c;O+=1)E(e[O][1]);}else if(c===n){let O=c-C>r?C+r:c;for(let N=C;N!==O;N+=1)E(e[N][1]);}else {let O=c-C;if(O>o){let N=C+r;for(let q=C;q!==N;q+=1)E(e[q][1]);h[d]=kc(p,m,g,b,t),d=h.length,h.push("");let _=O-o;p=m+_,g=b+_,m=p,b=g;for(let q=c-r;q!==c;q+=1)E(e[q][1]);}else for(let N=C;N!==c;N+=1)E(e[N][1]);}for(;c!==n&&e[c][0]===Ee;)M(e[c][1]),c+=1;for(;c!==n&&e[c][0]===we;)A(e[c][1]),c+=1;}return u&&(h[d]=kc(p,m,g,b,t)),h.join(`
20
+ `)}i(Fd,"joinAlignedDiffsNoExpand");function Dd(e,t){return e.map((n,r,o)=>{let s=n[1],a=r===0||r===o.length-1;switch(n[0]){case Ee:return Dc(s,a,t);case we:return Lc(s,a,t);default:return Bc(s,a,t)}}).join(`
21
+ `)}i(Dd,"joinAlignedDiffsExpand");var $o=i(e=>e,"noColor"),qc=5,Ld=0;function Bd(){return {aAnnotation:"Expected",aColor:se.green,aIndicator:"-",bAnnotation:"Received",bColor:se.red,bIndicator:"+",changeColor:se.inverse,changeLineTrailingSpaceColor:$o,commonColor:se.dim,commonIndicator:" ",commonLineTrailingSpaceColor:$o,compareKeys:void 0,contextLines:qc,emptyFirstOrLastLinePlaceholder:"",expand:false,includeChangeCounts:false,omitAnnotationLines:false,patchColor:se.yellow,printBasicPrototype:false,truncateThreshold:Ld,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:$o}}i(Bd,"getDefaultOptions");function qd(e){return e&&typeof e=="function"?e:void 0}i(qd,"getCompareKeys");function Ud(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:qc}i(Ud,"getContextLines");function Ct(e={}){return {...Bd(),...e,compareKeys:qd(e.compareKeys),contextLines:Ud(e.contextLines)}}i(Ct,"normalizeDiffOptions");function Lt(e){return e.length===1&&e[0].length===0}i(Lt,"isEmptyString");function zd(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case Ee:t+=1;break;case we:n+=1;break}}),{a:t,b:n}}i(zd,"countChanges");function Wd({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:s,includeChangeCounts:a,omitAnnotationLines:l},c){if(l)return "";let u="",f="";if(a){let p=String(c.a),g=String(c.b),m=r.length-e.length,b=" ".repeat(Math.max(0,m)),E=" ".repeat(Math.max(0,-m)),M=g.length-p.length,A=" ".repeat(Math.max(0,M)),C=" ".repeat(Math.max(0,-M));u=`${b} ${n} ${A}${p}`,f=`${E} ${s} ${C}${g}`;}let h=`${n} ${e}${u}`,d=`${s} ${r}${f}`;return `${t(h)}
21
22
  ${o(d)}
22
23
 
23
- `}a(op,"printAnnotation");function So(e,t,n){return op(n,rp(e))+(n.expand?Xd(e,n):Zd(e,n))+(t?n.truncateAnnotationColor(`
24
- ${n.truncateAnnotation}`):"")}a(So,"printDiffLines");function Wn(e,t,n){let r=St(n),[o,i]=Qa(Pt(e)?[]:e,Pt(t)?[]:t,r);return So(o,i,r)}a(Wn,"diffLinesUnified");function ip(e,t,n,r,o){if(Pt(e)&&Pt(n)&&(e=[],n=[]),Pt(t)&&Pt(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return Wn(e,t,o);let[i,s]=Qa(n,r,o),c=0,u=0;return i.forEach(l=>{switch(l[0]){case Te:l[1]=e[c],c+=1;break;case we:l[1]=t[u],u+=1;break;default:l[1]=t[u],c+=1,u+=1;}}),So(i,s,St(o))}a(ip,"diffLinesUnified2");function Qa(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=r?Math.min(e.length,o):e.length,s=r?Math.min(t.length,o):t.length,c=i!==e.length||s!==t.length,u=a((p,m)=>e[p]===t[m],"isCommon"),l=[],f=0,h=0;for(Ha(i,s,u,a((p,m,y)=>{for(;f!==m;f+=1)l.push(new re(Te,e[f]));for(;h!==y;h+=1)l.push(new re(we,t[h]));for(;p!==0;p-=1,f+=1,h+=1)l.push(new re(ce,t[h]));},"foundSubsequence"));f!==i;f+=1)l.push(new re(Te,e[f]));for(;h!==s;h+=1)l.push(new re(we,t[h]));return [l,c]}a(Qa,"diffLinesRaw");function Fa(e){if(e===void 0)return "undefined";if(e===null)return "null";if(Array.isArray(e))return "array";if(typeof e=="boolean")return "boolean";if(typeof e=="function")return "function";if(typeof e=="number")return "number";if(typeof e=="string")return "string";if(typeof e=="bigint")return "bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return "regexp";if(e.constructor===Map)return "map";if(e.constructor===Set)return "set";if(e.constructor===Date)return "date"}return "object"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}a(Fa,"getType");function Da(e){return e.includes(`\r
24
+ `}i(Wd,"printAnnotation");function Lo(e,t,n){return Wd(n,zd(e))+(n.expand?Dd(e,n):Fd(e,n))+(t?n.truncateAnnotationColor(`
25
+ ${n.truncateAnnotation}`):"")}i(Lo,"printDiffLines");function tr(e,t,n){let r=Ct(n),[o,s]=Uc(Lt(e)?[]:e,Lt(t)?[]:t,r);return Lo(o,s,r)}i(tr,"diffLinesUnified");function Vd(e,t,n,r,o){if(Lt(e)&&Lt(n)&&(e=[],n=[]),Lt(t)&&Lt(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return tr(e,t,o);let[s,a]=Uc(n,r,o),l=0,c=0;return s.forEach(u=>{switch(u[0]){case Ee:u[1]=e[l],l+=1;break;case we:u[1]=t[c],c+=1;break;default:u[1]=t[c],l+=1,c+=1;}}),Lo(s,a,Ct(o))}i(Vd,"diffLinesUnified2");function Uc(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),s=r?Math.min(e.length,o):e.length,a=r?Math.min(t.length,o):t.length,l=s!==e.length||a!==t.length,c=i((p,g)=>e[p]===t[g],"isCommon"),u=[],f=0,h=0;for(Fc(s,a,c,i((p,g,m)=>{for(;f!==g;f+=1)u.push(new ie(Ee,e[f]));for(;h!==m;h+=1)u.push(new ie(we,t[h]));for(;p!==0;p-=1,f+=1,h+=1)u.push(new ie(ce,t[h]));},"foundSubsequence"));f!==s;f+=1)u.push(new ie(Ee,e[f]));for(;h!==a;h+=1)u.push(new ie(we,t[h]));return [u,l]}i(Uc,"diffLinesRaw");function Mc(e){if(e===void 0)return "undefined";if(e===null)return "null";if(Array.isArray(e))return "array";if(typeof e=="boolean")return "boolean";if(typeof e=="function")return "function";if(typeof e=="number")return "number";if(typeof e=="string")return "string";if(typeof e=="bigint")return "bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return "regexp";if(e.constructor===Map)return "map";if(e.constructor===Set)return "set";if(e.constructor===Date)return "date"}return "object"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}i(Mc,"getType");function Cc(e){return e.includes(`\r
25
26
  `)?`\r
26
27
  `:`
27
- `}a(Da,"getNewLineSymbol");function sp(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=e.length,s=t.length;if(r){let p=e.includes(`
28
- `),m=t.includes(`
29
- `),y=Da(e),v=Da(t),S=p?`${e.split(y,o).join(y)}
30
- `:e,M=m?`${t.split(v,o).join(v)}
31
- `:t;i=S.length,s=M.length;}let c=i!==e.length||s!==t.length,u=a((p,m)=>e[p]===t[m],"isCommon"),l=0,f=0,h=[];return Ha(i,s,u,a((p,m,y)=>{l!==m&&h.push(new re(Te,e.slice(l,m))),f!==y&&h.push(new re(we,t.slice(f,y))),l=m+p,f=y+p,h.push(new re(ce,t.slice(y,f)));},"foundSubsequence")),l!==i&&h.push(new re(Te,e.slice(l))),f!==s&&h.push(new re(we,t.slice(f))),[h,c]}a(sp,"diffStrings");function ap(e,t,n){return t.reduce((r,o)=>r+(o[0]===ce?o[1]:o[0]===e&&o[1].length!==0?n(o[1]):""),"")}a(ap,"concatenateRelevantDiffs");var Un=class{static{a(this,"ChangeBuffer");}op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n;}pushSubstring(t){this.pushDiff(new re(this.op,t));}pushLine(){this.lines.push(this.line.length!==1?new re(this.op,ap(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new re(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t);}align(t){let n=t[1];if(n.includes(`
28
+ `}i(Cc,"getNewLineSymbol");function Kd(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),s=e.length,a=t.length;if(r){let p=e.includes(`
29
+ `),g=t.includes(`
30
+ `),m=Cc(e),b=Cc(t),E=p?`${e.split(m,o).join(m)}
31
+ `:e,M=g?`${t.split(b,o).join(b)}
32
+ `:t;s=E.length,a=M.length;}let l=s!==e.length||a!==t.length,c=i((p,g)=>e[p]===t[g],"isCommon"),u=0,f=0,h=[];return Fc(s,a,c,i((p,g,m)=>{u!==g&&h.push(new ie(Ee,e.slice(u,g))),f!==m&&h.push(new ie(we,t.slice(f,m))),u=g+p,f=m+p,h.push(new ie(ce,t.slice(m,f)));},"foundSubsequence")),u!==s&&h.push(new ie(Ee,e.slice(u))),f!==a&&h.push(new ie(we,t.slice(f))),[h,l]}i(Kd,"diffStrings");function Hd(e,t,n){return t.reduce((r,o)=>r+(o[0]===ce?o[1]:o[0]===e&&o[1].length!==0?n(o[1]):""),"")}i(Hd,"concatenateRelevantDiffs");var er=class{static{i(this,"ChangeBuffer");}op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n;}pushSubstring(t){this.pushDiff(new ie(this.op,t));}pushLine(){this.lines.push(this.line.length!==1?new ie(this.op,Hd(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new ie(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t);}align(t){let n=t[1];if(n.includes(`
32
33
  `)){let r=n.split(`
33
- `),o=r.length-1;r.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i);});}else this.pushDiff(t);}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0;}},go=class{static{a(this,"CommonBuffer");}deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[];}pushDiffCommonLine(t){this.lines.push(t);}pushDiffChangeLines(t){let n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t);}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines);}align(t){let n=t[0],r=t[1];if(r.includes(`
34
+ `),o=r.length-1;r.forEach((s,a)=>{a<o?(this.pushSubstring(s),this.pushLine()):s.length!==0&&this.pushSubstring(s);});}else this.pushDiff(t);}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0;}},Po=class{static{i(this,"CommonBuffer");}deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[];}pushDiffCommonLine(t){this.lines.push(t);}pushDiffChangeLines(t){let n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t);}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines);}align(t){let n=t[0],r=t[1];if(r.includes(`
34
35
  `)){let o=r.split(`
35
- `),i=o.length-1;o.forEach((s,c)=>{if(c===0){let u=new re(n,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines());}else c<i?this.pushDiffCommonLine(new re(n,s)):s.length!==0&&this.pushDiffChangeLines(new re(n,s));});}else this.pushDiffChangeLines(t);}getLines(){return this.flushChangeLines(),this.lines}};function cp(e,t){let n=new Un(Te,t),r=new Un(we,t),o=new go(n,r);return e.forEach(i=>{switch(i[0]){case Te:n.align(i);break;case we:r.align(i);break;default:o.align(i);}}),o.getLines()}a(cp,"getAlignedDiffs");function lp(e,t){if(t){let n=e.length-1;return e.some((r,o)=>r[0]===ce&&(o!==n||r[1]!==`
36
- `))}return e.some(n=>n[0]===ce)}a(lp,"hasCommonDiff");function up(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
36
+ `),s=o.length-1;o.forEach((a,l)=>{if(l===0){let c=new ie(n,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(c)):(this.pushDiffChangeLines(c),this.flushChangeLines());}else l<s?this.pushDiffCommonLine(new ie(n,a)):a.length!==0&&this.pushDiffChangeLines(new ie(n,a));});}else this.pushDiffChangeLines(t);}getLines(){return this.flushChangeLines(),this.lines}};function Gd(e,t){let n=new er(Ee,t),r=new er(we,t),o=new Po(n,r);return e.forEach(s=>{switch(s[0]){case Ee:n.align(s);break;case we:r.align(s);break;default:o.align(s);}}),o.getLines()}i(Gd,"getAlignedDiffs");function Jd(e,t){if(t){let n=e.length-1;return e.some((r,o)=>r[0]===ce&&(o!==n||r[1]!==`
37
+ `))}return e.some(n=>n[0]===ce)}i(Jd,"hasCommonDiff");function Yd(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
37
38
  `)||t.includes(`
38
- `),[o,i]=ec(r?`${e}
39
+ `),[o,s]=zc(r?`${e}
39
40
  `:e,r?`${t}
40
- `:t,true,n);if(lp(o,r)){let s=St(n),c=cp(o,s.changeColor);return So(c,i,s)}}return Wn(e.split(`
41
+ `:t,true,n);if(Jd(o,r)){let a=Ct(n),l=Gd(o,a.changeColor);return Lo(l,s,a)}}return tr(e.split(`
41
42
  `),t.split(`
42
- `),n)}a(up,"diffStringsUnified");function ec(e,t,n,r){let[o,i]=sp(e,t,r);return n&&Ud(o),[o,i]}a(ec,"diffStringsRaw");function yo(e,t){let{commonColor:n}=St(t);return n(e)}a(yo,"getCommonMessage");var{AsymmetricMatcher:fp,DOMCollection:hp,DOMElement:dp,Immutable:pp,ReactElement:mp,ReactTestComponent:gp}=wt,tc=[gp,mp,dp,hp,pp,fp,wt.Error],bo={maxDepth:20,plugins:tc},nc={callToJSON:false,maxDepth:8,plugins:tc};function Tt(e,t,n){if(Object.is(e,t))return "";let r=Fa(e),o=r,i=false;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==Fa(t)){let v=function($){return $.length<=y?$:`${$.slice(0,y)}...`};a(v,"truncate");let{aAnnotation:s,aColor:c,aIndicator:u,bAnnotation:l,bColor:f,bIndicator:h}=St(n),d=wo(nc,n),p=Ie(e,d),m=Ie(t,d),y=1e5;p=v(p),m=v(m);let S=`${c(`${u} ${s}:`)}
43
- ${p}`,M=`${f(`${h} ${l}:`)}
44
- ${m}`;return `${S}
43
+ `),n)}i(Yd,"diffStringsUnified");function zc(e,t,n,r){let[o,s]=Kd(e,t,r);return n&&_d(o),[o,s]}i(zc,"diffStringsRaw");function Ro(e,t){let{commonColor:n}=Ct(t);return n(e)}i(Ro,"getCommonMessage");var{AsymmetricMatcher:Xd,DOMCollection:Zd,DOMElement:Qd,Immutable:em,ReactElement:tm,ReactTestComponent:nm}=kt,Wc=[nm,tm,Qd,Zd,em,Xd,kt.Error],jo={maxDepth:20,plugins:Wc},Vc={callToJSON:false,maxDepth:8,plugins:Wc};function _t(e,t,n){if(Object.is(e,t))return "";let r=Mc(e),o=r,s=false;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),s=o==="string";}if(o!==Mc(t)){let b=function(A){return A.length<=m?A:`${A.slice(0,m)}...`};i(b,"truncate");let{aAnnotation:a,aColor:l,aIndicator:c,bAnnotation:u,bColor:f,bIndicator:h}=Ct(n),d=Fo(Vc,n),p=$e(e,d),g=$e(t,d),m=1e5;p=b(p),g=b(g);let E=`${l(`${c} ${a}:`)}
44
+ ${p}`,M=`${f(`${h} ${u}:`)}
45
+ ${g}`;return `${E}
45
46
 
46
- ${M}`}if(!i)switch(r){case "string":return Wn(e.split(`
47
+ ${M}`}if(!s)switch(r){case "string":return tr(e.split(`
47
48
  `),t.split(`
48
- `),n);case "boolean":case "number":return yp(e,t,n);case "map":return mo(La(e),La(t),n);case "set":return mo(qa(e),qa(t),n);default:return mo(e,t,n)}}a(Tt,"diff");function yp(e,t,n){let r=Ie(e,bo),o=Ie(t,bo);return r===o?"":Wn(r.split(`
49
+ `),n);case "boolean":case "number":return rm(e,t,n);case "map":return No(_c(e),_c(t),n);case "set":return No(Oc(e),Oc(t),n);default:return No(e,t,n)}}i(_t,"diff");function rm(e,t,n){let r=$e(e,jo),o=$e(t,jo);return r===o?"":tr(r.split(`
49
50
  `),o.split(`
50
- `),n)}a(yp,"comparePrimitive");function La(e){return new Map(Array.from(e.entries()).sort())}a(La,"sortMap");function qa(e){return new Set(Array.from(e.values()).sort())}a(qa,"sortSet");function mo(e,t,n){let r,o=false;try{let s=wo(bo,n);r=Ba(e,t,s,n);}catch{o=true;}let i=yo(Ga,n);if(r===void 0||r===i){let s=wo(nc,n);r=Ba(e,t,s,n),r!==i&&!o&&(r=`${yo(Gd,n)}
51
+ `),n)}i(rm,"comparePrimitive");function _c(e){return new Map(Array.from(e.entries()).sort())}i(_c,"sortMap");function Oc(e){return new Set(Array.from(e.values()).sort())}i(Oc,"sortSet");function No(e,t,n){let r,o=false;try{let a=Fo(jo,n);r=Ic(e,t,a,n);}catch{o=true;}let s=Ro(jc,n);if(r===void 0||r===s){let a=Fo(Vc,n);r=Ic(e,t,a,n),r!==s&&!o&&(r=`${Ro($d,n)}
51
52
 
52
- ${r}`);}return r}a(mo,"compareObjects");function wo(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=St(t);return {...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}a(wo,"getFormatOptions");function Ba(e,t,n,r){let o={...n,indent:0},i=Ie(e,o),s=Ie(t,o);if(i===s)return yo(Ga,r);{let c=Ie(e,n),u=Ie(t,n);return ip(c.split(`
53
- `),u.split(`
54
- `),i.split(`
53
+ ${r}`);}return r}i(No,"compareObjects");function Fo(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=Ct(t);return {...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}i(Fo,"getFormatOptions");function Ic(e,t,n,r){let o={...n,indent:0},s=$e(e,o),a=$e(t,o);if(s===a)return Ro(jc,r);{let l=$e(e,n),c=$e(t,n);return Vd(l.split(`
54
+ `),c.split(`
55
55
  `),s.split(`
56
- `),r)}}a(Ba,"getObjectsDifference");var za=2e4;function Ua(e){return vt(e)==="Object"&&typeof e.asymmetricMatch=="function"}a(Ua,"isAsymmetricMatcher");function Bn(e,t){let n=vt(e),r=vt(t);return n===r&&(n==="Object"||n==="Array")}a(Bn,"isReplaceable");function Vn(e,t,n){let{aAnnotation:r,bAnnotation:o}=St(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=za&&e.length<=za&&t!==e){if(t.includes(`
56
+ `),a.split(`
57
+ `),r)}}i(Ic,"getObjectsDifference");var Ac=2e4;function $c(e){return Mt(e)==="Object"&&typeof e.asymmetricMatch=="function"}i($c,"isAsymmetricMatcher");function Zn(e,t){let n=Mt(e),r=Mt(t);return n===r&&(n==="Object"||n==="Array")}i(Zn,"isReplaceable");function nr(e,t,n){let{aAnnotation:r,bAnnotation:o}=Ct(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Ac&&e.length<=Ac&&t!==e){if(t.includes(`
57
58
  `)||e.includes(`
58
- `))return up(t,e,n);let[f]=ec(t,e,true),h=f.some(y=>y[0]===ce),d=bp(r,o),p=d(r)+Sp(Wa(f,Te,h)),m=d(o)+vp(Wa(f,we,h));return `${p}
59
- ${m}`}let i=uo(t,{forceWritable:true}),s=uo(e,{forceWritable:true}),{replacedExpected:c,replacedActual:u}=zn(s,i);return Tt(c,u,n)}a(Vn,"printDiffOrStringify");function zn(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Bn(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),lo(t).forEach(o=>{let i=t[o],s=e[o];if(Ua(i)){if(i.asymmetricMatch(s))t[o]=s;else if("sample"in i&&i.sample!==void 0&&Bn(s,i.sample)){let c=zn(s,i.sample,n,r);e[o]=c.replacedActual,t[o]=c.replacedExpected;}}else if(Ua(s)){if(s.asymmetricMatch(i))e[o]=i;else if("sample"in s&&s.sample!==void 0&&Bn(s.sample,i)){let c=zn(s.sample,i,n,r);e[o]=c.replacedActual,t[o]=c.replacedExpected;}}else if(Bn(s,i)){let c=zn(s,i,n,r);e[o]=c.replacedActual,t[o]=c.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}a(zn,"replaceAsymmetricMatcher");function bp(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}a(bp,"getLabelPrinter");var wp="\xB7";function rc(e){return e.replace(/\s+$/gm,t=>wp.repeat(t.length))}a(rc,"replaceTrailingSpaces");function vp(e){return ne.red(rc(be(e)))}a(vp,"printReceived");function Sp(e){return ne.green(rc(be(e)))}a(Sp,"printExpected");function Wa(e,t,n){return e.reduce((r,o)=>r+(o[0]===ce?o[1]:o[0]===t?n?ne.inverse(o[1]):o[1]:""),"")}a(Wa,"getCommonAndChangedSubstrings");function ot(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction===true}a(ot,"isMockFunction");var To=new Set,Eo=new Set,oc=new WeakMap;function xo(e={}){var t;let{originalImplementation:n,restore:r,mockImplementation:o,resetToMockImplementation:i,resetToMockName:s}=e;r&&To.add(r);let c=Ap(n),u=Pp(),l=Ep({config:c,state:u,...e}),f=((t=o||n)===null||t===void 0?void 0:t.length)??0;return Object.defineProperty(l,"length",{writable:true,enumerable:false,value:f,configurable:true}),s&&(c.mockName=l.name||"vi.fn()"),oc.set(l,c),Eo.add(l),l._isMockFunction=true,l.getMockImplementation=()=>c.onceMockImplementations[0]||c.mockImplementation,Object.defineProperty(l,"mock",{configurable:false,enumerable:true,writable:false,value:u}),l.mockImplementation=a(function(d){return c.mockImplementation=d,l},"mockImplementation"),l.mockImplementationOnce=a(function(d){return c.onceMockImplementations.push(d),l},"mockImplementationOnce"),l.withImplementation=a(function(d,p){let m=c.mockImplementation,y=c.onceMockImplementations,v=a(()=>{c.mockImplementation=m,c.onceMockImplementations=y;},"reset");c.mockImplementation=d,c.onceMockImplementations=[];let S=p();return typeof S=="object"&&typeof S?.then=="function"?S.then(()=>(v(),l)):(v(),l)},"withImplementation"),l.mockReturnThis=a(function(){return l.mockImplementation(function(){return this})},"mockReturnThis"),l.mockReturnValue=a(function(d){return l.mockImplementation(()=>d)},"mockReturnValue"),l.mockReturnValueOnce=a(function(d){return l.mockImplementationOnce(()=>d)},"mockReturnValueOnce"),l.mockResolvedValue=a(function(d){return l.mockImplementation(()=>Promise.resolve(d))},"mockResolvedValue"),l.mockResolvedValueOnce=a(function(d){return l.mockImplementationOnce(()=>Promise.resolve(d))},"mockResolvedValueOnce"),l.mockRejectedValue=a(function(d){return l.mockImplementation(()=>Promise.reject(d))},"mockRejectedValue"),l.mockRejectedValueOnce=a(function(d){return l.mockImplementationOnce(()=>Promise.reject(d))},"mockRejectedValueOnce"),l.mockClear=a(function(){return u.calls=[],u.contexts=[],u.instances=[],u.invocationCallOrder=[],u.results=[],u.settledResults=[],l},"mockClear"),l.mockReset=a(function(){return l.mockClear(),c.mockImplementation=i?o:void 0,c.mockName=s&&l.name||"vi.fn()",c.onceMockImplementations=[],l},"mockReset"),l.mockRestore=a(function(){return l.mockReset(),r?.()},"mockRestore"),l.mockName=a(function(d){return typeof d=="string"&&(c.mockName=d),l},"mockName"),l.getMockName=a(function(){return c.mockName||"vi.fn()"},"getMockName"),Symbol.dispose&&(l[Symbol.dispose]=()=>l.mockRestore()),o&&l.mockImplementation(o),l}a(xo,"createMockInstance");function ic(e){return e!=null&&ot(e)?e:xo({mockImplementation:e,resetToMockImplementation:true})}a(ic,"fn");function sc(e,t,n){Kn(e!=null,"The vi.spyOn() function could not find an object to spy upon. The first argument must be defined."),Kn(typeof e=="object"||typeof e=="function","Vitest cannot spy on a primitive value.");let[r,o]=ac(e,t)||[];Kn(o||t in e,`The property "${String(t)}" is not defined on the ${typeof e}.`);let i=n||"value",s=false;i==="value"&&o&&o.value==null&&o.get&&(i="get",s=true);let c;o?c=o[i]:i!=="value"?c=a(()=>e[t],"original"):c=e[t];let u=s&&c?c():c,l=typeof u;if(Kn(l==="function"||i!=="value"&&c==null,`vi.spyOn() can only spy on a function. Received ${l}.`),ot(u))return u;let f=a(p=>{let{value:m,...y}=o||{configurable:true,writable:true};i!=="value"&&delete y.writable,y[i]=p,Object.defineProperty(e,t,y);},"reassign"),d=xo({restore:a(()=>{r!==e?Reflect.deleteProperty(e,t):o&&!c?Object.defineProperty(e,t,o):f(c);},"restore"),originalImplementation:u,resetToMockName:true});try{f(s?()=>d:d);}catch(p){throw p instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(p.message.includes("Cannot redefine property")||p.message.includes("Cannot replace module namespace")||p.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(t)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:p}):p}return d}a(sc,"spyOn");function ac(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return [e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return [r,o];r=Object.getPrototypeOf(r);}}a(ac,"getDescriptor");function Kn(e,t){if(!e)throw new Error(t)}a(Kn,"assert");var Tp=1;function Ep({state:e,config:t,name:n,prototypeState:r,prototypeConfig:o,keepMembersImplementation:i,mockImplementation:s,prototypeMembers:c=[]}){let u=t.mockOriginal,l=s,f=n||u?.name||"Mock",h={[f]:(function(...m){xp(m,e,r),Mp(Tp++,e,r);let y={type:"incomplete",value:void 0},v={type:"incomplete",value:void 0};_p(y,e,r),Op(v,e,r);let S=new.target?void 0:this,[M,$]=Ip(S,e,r),[O,C]=Cp(S,e,r),N=t.onceMockImplementations.shift()||t.mockImplementation||o?.onceMockImplementations.shift()||o?.mockImplementation||u||function(){},I,q,X=false;try{if(new.target){I=Reflect.construct(N,m,new.target);for(let D of c){let H=I[D];if(H!==d.prototype[D])continue;let oe=ot(H),ue=oe?H.mock:void 0,fe=oe?oc.get(H):void 0;I[D]=xo({originalImplementation:i?fe?.mockOriginal:void 0,prototypeState:ue,prototypeConfig:fe,keepMembersImplementation:i});}}else I=N.apply(this,m);}catch(D){throw q=D,X=true,D instanceof TypeError&&D.message.includes("is not a constructor")&&console.warn(`[vitest] The ${h[f].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`),D}finally{X?(y.type="throw",y.value=q,v.type="rejected",v.value=q):(y.type="return",y.value=I,new.target&&(e.contexts[O-1]=I,e.instances[M-1]=I,C!=null&&r&&(r.contexts[C-1]=I),$!=null&&r&&(r.instances[$-1]=I)),I instanceof Promise?I.then(D=>{v.type="fulfilled",v.value=D;},D=>{v.type="rejected",v.value=D;}):(v.type="fulfilled",v.value=I));}return I})},d=h[f],p=u||l;return p&&kp(d,p),d}a(Ep,"createMock");function xp(e,t,n){t.calls.push(e),n?.calls.push(e);}a(xp,"registerCalls");function Mp(e,t,n){t.invocationCallOrder.push(e),n?.invocationCallOrder.push(e);}a(Mp,"registerInvocationOrder");function _p(e,t,n){t.results.push(e),n?.results.push(e);}a(_p,"registerResult");function Op(e,t,n){t.settledResults.push(e),n?.settledResults.push(e);}a(Op,"registerSettledResult");function Ip(e,t,n){let r=t.instances.push(e),o=n?.instances.push(e);return [r,o]}a(Ip,"registerInstance");function Cp(e,t,n){let r=t.contexts.push(e),o=n?.contexts.push(e);return [r,o]}a(Cp,"registerContext");function kp(e,t){let{properties:n,descriptors:r}=Np(t);for(let o of n){let i=r[o];ac(e,o)||Object.defineProperty(e,o,i);}}a(kp,"copyOriginalStaticProperties");var $p=new Set(["length","name","prototype",Symbol.for("nodejs.util.promisify.custom")]);function Np(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)n[o]||$p.has(o)||(t.add(o),n[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e);}return {properties:t,descriptors:n}}a(Np,"getAllProperties");function Ap(e){return {mockImplementation:void 0,mockOriginal:e,mockName:"vi.fn()",onceMockImplementations:[]}}a(Ap,"getDefaultConfig");function Pp(){let e={calls:[],contexts:[],instances:[],invocationCallOrder:[],settledResults:[],results:[],get lastCall(){return e.calls.at(-1)}};return e}a(Pp,"getDefaultState");function cc(){for(let e of To)e();To.clear();}a(cc,"restoreAllMocks");function lc(){Eo.forEach(e=>e.mockClear());}a(lc,"clearAllMocks");function uc(){Eo.forEach(e=>e.mockReset());}a(uc,"resetAllMocks");var jp="@@__IMMUTABLE_RECORD__@@",Rp="@@__IMMUTABLE_ITERABLE__@@";function Fp(e){return e&&(e[Rp]||e[jp])}a(Fp,"isImmutable");var Dp=Object.getPrototypeOf({});function fc(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}a(fc,"getUnserializableMessage");function it(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let n=e.toJSON();return n&&n!==e&&typeof n=="object"&&(typeof e.message=="string"&&en(()=>n.message??(n.message=hc(e.message))),typeof e.stack=="string"&&en(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&en(()=>n.name??(n.name=e.name)),e.cause!=null&&en(()=>n.cause??(n.cause=it(e.cause,t)))),it(n,t)}if(typeof e=="function")return `Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return `<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return `<Uint8Array(${e.length}) ...>`;if(Fp(e))return it(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return "Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.toJSON=="function")return it(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,o)=>{try{n[o]=it(r,t);}catch(i){n[o]=fc(i);}}),n}else {let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Dp;)Object.getOwnPropertyNames(r).forEach(o=>{if(!(o in n))try{n[o]=it(e[o],t);}catch(i){delete n[o],n[o]=fc(i);}}),r=Object.getPrototypeOf(r);return e instanceof Error&&en(()=>e.message=hc(e.message)),n}}a(it,"serializeValue");function en(e){try{return e()}catch{}}a(en,"safe");function hc(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a(hc,"normalizeErrorMessage");function Mo(e,t,n=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=Vn(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=be(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=be(r.actual,10));try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=Mo(r.cause,t,n));}catch{}try{return it(r)}catch(o){return it(new Error(`Failed to fully serialize error: ${o?.message}
60
- Inner error message: ${r?.message}`))}}a(Mo,"processError");var se={};$s(se,{Assertion:()=>b,AssertionError:()=>V,Should:()=>yl,assert:()=>g,config:()=>Ee,expect:()=>on,should:()=>gl,use:()=>fn,util:()=>Fe});var Uo=Object.defineProperty,Lp=a((e,t,n)=>t in e?Uo(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,"__defNormalProp"),x=a((e,t)=>Uo(e,"name",{value:t,configurable:true}),"__name"),Wo=a((e,t)=>{for(var n in t)Uo(e,n,{get:t[n],enumerable:true});},"__export"),Tc=a((e,t,n)=>Lp(e,typeof t!="symbol"?t+"":t,n),"__publicField"),Fe={};Wo(Fe,{addChainableMethod:a(()=>ri,"addChainableMethod"),addLengthGuard:a(()=>cn,"addLengthGuard"),addMethod:a(()=>ei,"addMethod"),addProperty:a(()=>Qo,"addProperty"),checkError:a(()=>Ae,"checkError"),compareByInspect:a(()=>Jn,"compareByInspect"),eql:a(()=>Zc,"eql"),events:a(()=>nr,"events"),expectTypes:a(()=>$c,"expectTypes"),flag:a(()=>B,"flag"),getActual:a(()=>er,"getActual"),getMessage:a(()=>Go,"getMessage"),getName:a(()=>rr,"getName"),getOperator:a(()=>ai,"getOperator"),getOwnEnumerableProperties:a(()=>si,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:a(()=>ii,"getOwnEnumerablePropertySymbols"),getPathInfo:a(()=>Zo,"getPathInfo"),hasProperty:a(()=>tr,"hasProperty"),inspect:a(()=>W,"inspect"),isNaN:a(()=>Yn,"isNaN"),isNumeric:a(()=>ge,"isNumeric"),isProxyEnabled:a(()=>an,"isProxyEnabled"),isRegExp:a(()=>Zn,"isRegExp"),objDisplay:a(()=>Et,"objDisplay"),overwriteChainableMethod:a(()=>oi,"overwriteChainableMethod"),overwriteMethod:a(()=>ni,"overwriteMethod"),overwriteProperty:a(()=>ti,"overwriteProperty"),proxify:a(()=>Ft,"proxify"),test:a(()=>Vo,"test"),transferFlags:a(()=>Je,"transferFlags"),type:a(()=>ee,"type")});var Ae={};Wo(Ae,{compatibleConstructor:a(()=>Mc,"compatibleConstructor"),compatibleInstance:a(()=>xc,"compatibleInstance"),compatibleMessage:a(()=>_c,"compatibleMessage"),getConstructorName:a(()=>Oc,"getConstructorName"),getMessage:a(()=>Ic,"getMessage")});function Qn(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}a(Qn,"isErrorInstance");x(Qn,"isErrorInstance");function Ec(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(Ec,"isRegExp");x(Ec,"isRegExp");function xc(e,t){return Qn(t)&&e===t}a(xc,"compatibleInstance");x(xc,"compatibleInstance");function Mc(e,t){return Qn(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:false}a(Mc,"compatibleConstructor");x(Mc,"compatibleConstructor");function _c(e,t){let n=typeof e=="string"?e:e.message;return Ec(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:false}a(_c,"compatibleMessage");x(_c,"compatibleMessage");function Oc(e){let t=e;return Qn(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}a(Oc,"getConstructorName");x(Oc,"getConstructorName");function Ic(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}a(Ic,"getMessage");x(Ic,"getMessage");function B(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)r[t]=n;else return r[t]}a(B,"flag");x(B,"flag");function Vo(e,t){let n=B(e,"negate"),r=t[0];return n?!r:r}a(Vo,"test");x(Vo,"test");function ee(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}a(ee,"type");x(ee,"type");var qp="captureStackTrace"in Error,Cc=class kc extends Error{static{a(this,"_AssertionError");}constructor(t="Unspecified AssertionError",n,r){super(t),Tc(this,"message"),this.message=t,qp&&Error.captureStackTrace(this,r||kc);for(let o in n)o in this||(this[o]=n[o]);}get name(){return "AssertionError"}get ok(){return false}toJSON(t){return {...this,name:this.name,message:this.message,ok:false,stack:t!==false?this.stack:void 0}}};x(Cc,"AssertionError");var V=Cc;function $c(e,t){let n=B(e,"message"),r=B(e,"ssfi");n=n?n+": ":"",e=B(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();let o=t.map(function(s,c){let u=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a";return (t.length>1&&c===t.length-1?"or ":"")+u+" "+s}).join(", "),i=ee(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new V(n+"object tested must be "+o+", but "+i+" given",void 0,r)}a($c,"expectTypes");x($c,"expectTypes");function er(e,t){return t.length>4?t[4]:e._obj}a(er,"getActual");x(er,"getActual");var dc={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Bp={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},jt="\u2026";function Nc(e,t){let n=dc[Bp[t]]||dc[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(Nc,"colorise");x(Nc,"colorise");function Ac({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:u=1/0,stylize:l=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(u),seen:c,inspect:f,stylize:l};return h.colors&&(h.stylize=Nc),h}a(Ac,"normaliseOptions");x(Ac,"normaliseOptions");function Pc(e){return e>="\uD800"&&e<="\uDBFF"}a(Pc,"isHighSurrogate");x(Pc,"isHighSurrogate");function st(e,t,n=jt){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&Pc(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(st,"truncate");x(st,"truncate");function De(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",c="",u="";for(let l=0;l<o;l+=1){let f=l+1===e.length,h=l+2===e.length;u=`${jt}(${e.length-l})`;let d=e[l];t.truncate=i-s.length-(f?0:r.length);let p=c||n(d,t)+(f?"":r),m=s.length+p.length,y=m+u.length;if(f&&m>i&&s.length+u.length<=i||!f&&!h&&y>i||(c=f?"":n(e[l+1],t)+(h?"":r),!f&&h&&y>i&&m+c.length>i))break;if(s+=p,!f&&!h&&m+c.length>=i){u=`${jt}(${e.length-l-1})`;break}u="";}return `${s}${u}`}a(De,"inspectList");x(De,"inspectList");function jc(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(jc,"quoteComplexKey");x(jc,"quoteComplexKey");function Rt([e,t],n){return n.truncate-=2,typeof e=="string"?e=jc(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(Rt,"inspectProperty");x(Rt,"inspectProperty");function Rc(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=De(e,t);t.truncate-=r.length;let o="";return n.length&&(o=De(n.map(i=>[i,e[i]]),t,Rt)),`[ ${r}${o?`, ${o}`:""} ]`}a(Rc,"inspectArray");x(Rc,"inspectArray");var zp=x(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Xe(e,t){let n=zp(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let c=`${t.stylize(st(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=c.length,e[s]!==e.length&&t.truncate<=3){o+=`${jt}(${e.length-e[s]+1})`;break}o+=c;}let i="";return r.length&&(i=De(r.map(s=>[s,e[s]]),t,Rt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(Xe,"inspectTypedArray");x(Xe,"inspectTypedArray");function Fc(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${st(r[1],t.truncate-o.length-1)}`,"date")}a(Fc,"inspectDate");x(Fc,"inspectDate");function Co(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${st(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(Co,"inspectFunction");x(Co,"inspectFunction");function Dc([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(Dc,"inspectMapEntry");x(Dc,"inspectMapEntry");function Lc(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(Lc,"mapToEntries");x(Lc,"mapToEntries");function qc(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${De(Lc(e),t,Dc)} }`)}a(qc,"inspectMap");x(qc,"inspectMap");var Up=Number.isNaN||(e=>e!==e);function ko(e,t){return Up(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(st(String(e),t.truncate),"number")}a(ko,"inspectNumber");x(ko,"inspectNumber");function $o(e,t){let n=st(e.toString(),t.truncate-1);return n!==jt&&(n+="n"),t.stylize(n,"bigint")}a($o,"inspectBigInt");x($o,"inspectBigInt");function Bc(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${st(o,r)}/${n}`,"regexp")}a(Bc,"inspectRegExp");x(Bc,"inspectRegExp");function zc(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(zc,"arrayFromSet");x(zc,"arrayFromSet");function Uc(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${De(zc(e),t)} }`)}a(Uc,"inspectSet");x(Uc,"inspectSet");var pc=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Wp={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Vp=16;function Wc(e){return Wp[e]||`\\u${`0000${e.charCodeAt(0).toString(Vp)}`.slice(-4)}`}a(Wc,"escape");x(Wc,"escape");function No(e,t){return pc.test(e)&&(e=e.replace(pc,Wc)),t.stylize(`'${st(e,t.truncate-2)}'`,"string")}a(No,"inspectString");x(No,"inspectString");function Ao(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(Ao,"inspectSymbol");x(Ao,"inspectSymbol");var Gp=x(()=>"Promise{\u2026}","getPromiseValue"),Hp=Gp;function nn(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=De(n.map(c=>[c,e[c]]),t,Rt),i=De(r.map(c=>[c,e[c]]),t,Rt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(nn,"inspectObject");x(nn,"inspectObject");var _o=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function Vc(e,t){let n="";return _o&&_o in e&&(n=e[_o]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${nn(e,t)}`}a(Vc,"inspectClass");x(Vc,"inspectClass");function Kc(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${De(e,t)} ]`)}a(Kc,"inspectArguments");x(Kc,"inspectArguments");var Jp=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Gc(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>Jp.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=st(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=De(n.map(s=>[s,e[s]]),t,Rt);return `${r}${o}${i?` { ${i} }`:""}`}a(Gc,"inspectObject2");x(Gc,"inspectObject");function Hc([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(Hc,"inspectAttribute");x(Hc,"inspectAttribute");function Gn(e,t){return De(e,t,Jc,`
61
- `)}a(Gn,"inspectNodeCollection");x(Gn,"inspectNodeCollection");function Jc(e,t){switch(e.nodeType){case 1:return Ko(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(Jc,"inspectNode");x(Jc,"inspectNode");function Ko(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=De(n.map(f=>[f,e.getAttribute(f)]),t,Hc," ")),t.truncate-=c.length;let u=t.truncate,l=Gn(e.children,t);return l&&l.length>u&&(l=`${jt}(${e.children.length})`),`${o}${c}${i}${l}${s}`}a(Ko,"inspectHTML");x(Ko,"inspectHTML");var Yp=typeof Symbol=="function"&&typeof Symbol.for=="function",Oo=Yp?Symbol.for("chai/inspect"):"@@chai/inspect",Io=Symbol.for("nodejs.util.inspect.custom"),mc=new WeakMap,gc={},yc={undefined:x((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:x((e,t)=>t.stylize("null","null"),"null"),boolean:x((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:x((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:ko,Number:ko,bigint:$o,BigInt:$o,string:No,String:No,function:Co,Function:Co,symbol:Ao,Symbol:Ao,Array:Rc,Date:Fc,Map:qc,Set:Uc,RegExp:Bc,Promise:Hp,WeakSet:x((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:x((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Kc,Int8Array:Xe,Uint8Array:Xe,Uint8ClampedArray:Xe,Int16Array:Xe,Uint16Array:Xe,Int32Array:Xe,Uint32Array:Xe,Float32Array:Xe,Float64Array:Xe,Generator:x(()=>"","Generator"),DataView:x(()=>"","DataView"),ArrayBuffer:x(()=>"","ArrayBuffer"),Error:Gc,HTMLCollection:Gn,NodeList:Gn},Zp=x((e,t,n,r)=>Oo in e&&typeof e[Oo]=="function"?e[Oo](t):Io in e&&typeof e[Io]=="function"?e[Io](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&mc.has(e.constructor)?mc.get(e.constructor)(e,t):gc[n]?gc[n](e,t):"","inspectCustom"),Xp=Object.prototype.toString;function rn(e,t={}){let n=Ac(t,rn),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Xp.call(e).slice(8,-1)),o in yc)return yc[o](e,n);if(r&&e){let s=Zp(e,n,o,rn);if(s)return typeof s=="string"?s:rn(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?nn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ko(e,n):"constructor"in e?e.constructor!==Object?Vc(e,n):nn(e,n):e===Object(e)?nn(e,n):n.stylize(String(e),o)}a(rn,"inspect");x(rn,"inspect");var Ee={includeStack:false,showDiff:true,truncateThreshold:40,useProxy:true,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function W(e,t,n,r){let o={colors:r,depth:typeof n>"u"?2:n,showHidden:t,truncate:Ee.truncateThreshold?Ee.truncateThreshold:1/0};return rn(e,o)}a(W,"inspect2");x(W,"inspect");function Et(e){let t=W(e),n=Object.prototype.toString.call(e);if(Ee.truncateThreshold&&t.length>=Ee.truncateThreshold){if(n==="[object Function]")return !e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(n==="[object Array]")return "[ Array("+e.length+") ]";if(n==="[object Object]"){let r=Object.keys(e);return "{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}else return t}else return t}a(Et,"objDisplay");x(Et,"objDisplay");function Go(e,t){let n=B(e,"negate"),r=B(e,"object"),o=t[3],i=er(e,t),s=n?t[2]:t[1],c=B(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return Et(r)}).replace(/#\{act\}/g,function(){return Et(i)}).replace(/#\{exp\}/g,function(){return Et(o)}),c?c+": "+s:s}a(Go,"getMessage2");x(Go,"getMessage");function Je(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:true;for(let o in r)(n||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=r[o]);}a(Je,"transferFlags");x(Je,"transferFlags");function Po(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}a(Po,"type2");x(Po,"type");function Ho(){this._key="chai/deep-eql__"+Math.random()+Date.now();}a(Ho,"FakeMap");x(Ho,"FakeMap");Ho.prototype={get:x(a(function(t){return t[this._key]},"get"),"get"),set:x(a(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:true});},"set"),"set")};var Yc=typeof WeakMap=="function"?WeakMap:Ho;function jo(e,t,n){if(!n||xt(e)||xt(t))return null;var r=n.get(e);if(r){var o=r.get(t);if(typeof o=="boolean")return o}return null}a(jo,"memoizeCompare");x(jo,"memoizeCompare");function tn(e,t,n,r){if(!(!n||xt(e)||xt(t))){var o=n.get(e);o?o.set(t,r):(o=new Yc,o.set(t,r),n.set(e,o));}}a(tn,"memoizeSet");x(tn,"memoizeSet");var Zc=sn;function sn(e,t,n){if(n&&n.comparator)return Ro(e,t,n);var r=Jo(e,t);return r!==null?r:Ro(e,t,n)}a(sn,"deepEqual");x(sn,"deepEqual");function Jo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?true:xt(e)||xt(t)?false:null}a(Jo,"simpleEqual");x(Jo,"simpleEqual");function Ro(e,t,n){n=n||{},n.memoize=n.memoize===false?false:n.memoize||new Yc;var r=n&&n.comparator,o=jo(e,t,n.memoize);if(o!==null)return o;var i=jo(t,e,n.memoize);if(i!==null)return i;if(r){var s=r(e,t);if(s===false||s===true)return tn(e,t,n.memoize,s),s;var c=Jo(e,t);if(c!==null)return c}var u=Po(e);if(u!==Po(t))return tn(e,t,n.memoize,false),false;tn(e,t,n.memoize,true);var l=Xc(e,t,u,n);return tn(e,t,n.memoize,l),l}a(Ro,"extensiveDeepEqual");x(Ro,"extensiveDeepEqual");function Xc(e,t,n,r){switch(n){case "String":case "Number":case "Boolean":case "Date":return sn(e.valueOf(),t.valueOf());case "Promise":case "Symbol":case "function":case "WeakMap":case "WeakSet":return e===t;case "Error":return Yo(e,t,["name","message","code"],r);case "Arguments":case "Int8Array":case "Uint8Array":case "Uint8ClampedArray":case "Int16Array":case "Uint16Array":case "Int32Array":case "Uint32Array":case "Float32Array":case "Float64Array":case "Array":return dt(e,t,r);case "RegExp":return Qc(e,t);case "Generator":return el(e,t,r);case "DataView":return dt(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case "ArrayBuffer":return dt(new Uint8Array(e),new Uint8Array(t),r);case "Set":return Fo(e,t,r);case "Map":return Fo(e,t,r);case "Temporal.PlainDate":case "Temporal.PlainTime":case "Temporal.PlainDateTime":case "Temporal.Instant":case "Temporal.ZonedDateTime":case "Temporal.PlainYearMonth":case "Temporal.PlainMonthDay":return e.equals(t);case "Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case "Temporal.TimeZone":case "Temporal.Calendar":return e.toString()===t.toString();default:return nl(e,t,r)}}a(Xc,"extensiveDeepEqualByType");x(Xc,"extensiveDeepEqualByType");function Qc(e,t){return e.toString()===t.toString()}a(Qc,"regexpEqual");x(Qc,"regexpEqual");function Fo(e,t,n){try{if(e.size!==t.size)return false;if(e.size===0)return true}catch{return false}var r=[],o=[];return e.forEach(x(a(function(s,c){r.push([s,c]);},"gatherEntries"),"gatherEntries")),t.forEach(x(a(function(s,c){o.push([s,c]);},"gatherEntries"),"gatherEntries")),dt(r.sort(),o.sort(),n)}a(Fo,"entriesEqual");x(Fo,"entriesEqual");function dt(e,t,n){var r=e.length;if(r!==t.length)return false;if(r===0)return true;for(var o=-1;++o<r;)if(sn(e[o],t[o],n)===false)return false;return true}a(dt,"iterableEqual");x(dt,"iterableEqual");function el(e,t,n){return dt(Hn(e),Hn(t),n)}a(el,"generatorEqual");x(el,"generatorEqual");function tl(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}a(tl,"hasIteratorFunction");x(tl,"hasIteratorFunction");function Do(e){if(tl(e))try{return Hn(e[Symbol.iterator]())}catch{return []}return []}a(Do,"getIteratorEntries");x(Do,"getIteratorEntries");function Hn(e){for(var t=e.next(),n=[t.value];t.done===false;)t=e.next(),n.push(t.value);return n}a(Hn,"getGeneratorEntries");x(Hn,"getGeneratorEntries");function Lo(e){var t=[];for(var n in e)t.push(n);return t}a(Lo,"getEnumerableKeys");x(Lo,"getEnumerableKeys");function qo(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}a(qo,"getEnumerableSymbols");x(qo,"getEnumerableSymbols");function Yo(e,t,n,r){var o=n.length;if(o===0)return true;for(var i=0;i<o;i+=1)if(sn(e[n[i]],t[n[i]],r)===false)return false;return true}a(Yo,"keysEqual");x(Yo,"keysEqual");function nl(e,t,n){var r=Lo(e),o=Lo(t),i=qo(e),s=qo(t);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return dt(Bo(r).sort(),Bo(o).sort())===false?false:Yo(e,t,r,n);var c=Do(e),u=Do(t);return c.length&&c.length===u.length?(c.sort(),u.sort(),dt(c,u,n)):r.length===0&&c.length===0&&o.length===0&&u.length===0}a(nl,"objectEqual");x(nl,"objectEqual");function xt(e){return e===null||typeof e!="object"}a(xt,"isPrimitive");x(xt,"isPrimitive");function Bo(e){return e.map(x(a(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"),"mapSymbol"))}a(Bo,"mapSymbols");x(Bo,"mapSymbols");function tr(e,t){return typeof e>"u"||e===null?false:t in Object(e)}a(tr,"hasProperty");x(tr,"hasProperty");function rl(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(r=>{if(r==="constructor"||r==="__proto__"||r==="prototype")return {};let i=/^\[(\d+)\]$/.exec(r),s=null;return i?s={i:parseFloat(i[1])}:s={p:r.replace(/\\([.[\]])/g,"$1")},s})}a(rl,"parsePath");x(rl,"parsePath");function zo(e,t,n){let r=e,o=null;n=typeof n>"u"?t.length:n;for(let i=0;i<n;i++){let s=t[i];r&&(typeof s.p>"u"?r=r[s.i]:r=r[s.p],i===n-1&&(o=r));}return o}a(zo,"internalGetPathValue");x(zo,"internalGetPathValue");function Zo(e,t){let n=rl(t),r=n[n.length-1],o={parent:n.length>1?zo(e,n,n.length-1):e,name:r.p||r.i,value:zo(e,n)};return o.exists=tr(o.parent,o.name),o}a(Zo,"getPathInfo");x(Zo,"getPathInfo");var ol=class il{static{a(this,"_Assertion");}constructor(t,n,r,o){return Tc(this,"__flags",{}),B(this,"ssfi",r||il),B(this,"lockSsfi",o),B(this,"object",t),B(this,"message",n),B(this,"eql",Ee.deepEqual||Zc),Ft(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ee.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ee.includeStack=t;}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ee.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ee.showDiff=t;}static addProperty(t,n){Qo(this.prototype,t,n);}static addMethod(t,n){ei(this.prototype,t,n);}static addChainableMethod(t,n,r){ri(this.prototype,t,n,r);}static overwriteProperty(t,n){ti(this.prototype,t,n);}static overwriteMethod(t,n){ni(this.prototype,t,n);}static overwriteChainableMethod(t,n,r){oi(this.prototype,t,n,r);}assert(t,n,r,o,i,s){let c=Vo(this,arguments);if(s!==false&&(s=true),o===void 0&&i===void 0&&(s=false),Ee.showDiff!==true&&(s=false),!c){n=Go(this,arguments);let l={actual:er(this,arguments),expected:o,showDiff:s},f=ai(this,arguments);throw f&&(l.operator=f),new V(n,l,Ee.includeStack?this.assert:B(this,"ssfi"))}}get _obj(){return B(this,"object")}set _obj(t){B(this,"object",t);}};x(ol,"Assertion");var b=ol,nr=new EventTarget,sl=class extends Event{static{a(this,"_PluginEvent");}constructor(t,n,r){super(t),this.name=String(n),this.fn=r;}};x(sl,"PluginEvent");var Xo=sl;function an(){return Ee.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}a(an,"isProxyEnabled");x(an,"isProxyEnabled");function Qo(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:x(a(function r(){!an()&&!B(this,"lockSsfi")&&B(this,"ssfi",r);let o=n.call(this);if(o!==void 0)return o;let i=new b;return Je(this,i),i},"propertyGetter"),"propertyGetter"),configurable:true}),nr.dispatchEvent(new Xo("addProperty",t,n));}a(Qo,"addProperty");x(Qo,"addProperty");var Qp=Object.getOwnPropertyDescriptor(function(){},"length");function cn(e,t,n){return Qp.configurable&&Object.defineProperty(e,"length",{get:x(function(){throw Error(n?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}a(cn,"addLengthGuard");x(cn,"addLengthGuard");function al(e){let t=Object.getOwnPropertyNames(e);function n(o){t.indexOf(o)===-1&&t.push(o);}a(n,"addProperty2"),x(n,"addProperty");let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}a(al,"getProperties");x(al,"getProperties");var bc=["__flags","__methods","_obj","assert"];function Ft(e,t){return an()?new Proxy(e,{get:x(a(function n(r,o){if(typeof o=="string"&&Ee.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(r,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,s=4;throw al(r).forEach(function(c){if(!Object.prototype.hasOwnProperty(c)&&bc.indexOf(c)===-1){let u=cl(o,c,s);u<s&&(i=c,s=u);}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return bc.indexOf(o)===-1&&!B(r,"lockSsfi")&&B(r,"ssfi",n),Reflect.get(r,o)},"proxyGetter"),"proxyGetter")}):e}a(Ft,"proxify");x(Ft,"proxify");function cl(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let o=0;o<=e.length;o++)r[o]=Array(t.length+1).fill(0),r[o][0]=o;for(let o=0;o<t.length;o++)r[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let s=1;s<=t.length;s++){if(Math.abs(o-s)>=n){r[o][s]=n;continue}r[o][s]=Math.min(r[o-1][s]+1,r[o][s-1]+1,r[o-1][s-1]+(i===t.charCodeAt(s-1)?0:1));}}return r[e.length][t.length]}a(cl,"stringDistanceCapped");x(cl,"stringDistanceCapped");function ei(e,t,n){let r=x(function(){B(this,"lockSsfi")||B(this,"ssfi",r);let o=n.apply(this,arguments);if(o!==void 0)return o;let i=new b;return Je(this,i),i},"methodWrapper");cn(r,t,false),e[t]=Ft(r,t),nr.dispatchEvent(new Xo("addMethod",t,n));}a(ei,"addMethod");x(ei,"addMethod");function ti(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),o=x(function(){},"_super");r&&typeof r.get=="function"&&(o=r.get),Object.defineProperty(e,t,{get:x(a(function i(){!an()&&!B(this,"lockSsfi")&&B(this,"ssfi",i);let s=B(this,"lockSsfi");B(this,"lockSsfi",true);let c=n(o).call(this);if(B(this,"lockSsfi",s),c!==void 0)return c;let u=new b;return Je(this,u),u},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:true});}a(ti,"overwriteProperty");x(ti,"overwriteProperty");function ni(e,t,n){let r=e[t],o=x(function(){throw new Error(t+" is not a function")},"_super");r&&typeof r=="function"&&(o=r);let i=x(function(){B(this,"lockSsfi")||B(this,"ssfi",i);let s=B(this,"lockSsfi");B(this,"lockSsfi",true);let c=n(o).apply(this,arguments);if(B(this,"lockSsfi",s),c!==void 0)return c;let u=new b;return Je(this,u),u},"overwritingMethodWrapper");cn(i,t,false),e[t]=Ft(i,t);}a(ni,"overwriteMethod");x(ni,"overwriteMethod");var em=typeof Object.setPrototypeOf=="function",wc=x(function(){},"testFn"),tm=Object.getOwnPropertyNames(wc).filter(function(e){let t=Object.getOwnPropertyDescriptor(wc,e);return typeof t!="object"?true:!t.configurable}),nm=Function.prototype.call,rm=Function.prototype.apply,ll=class extends Xo{static{a(this,"_PluginAddChainableMethodEvent");}constructor(t,n,r,o){super(t,n,r),this.chainingBehavior=o;}};x(ll,"PluginAddChainableMethodEvent");var om=ll;function ri(e,t,n,r){typeof r!="function"&&(r=x(function(){},"chainingBehavior"));let o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:x(a(function(){o.chainingBehavior.call(this);let s=x(function(){B(this,"lockSsfi")||B(this,"ssfi",s);let c=o.method.apply(this,arguments);if(c!==void 0)return c;let u=new b;return Je(this,u),u},"chainableMethodWrapper");if(cn(s,t,true),em){let c=Object.create(this);c.call=nm,c.apply=rm,Object.setPrototypeOf(s,c);}else Object.getOwnPropertyNames(e).forEach(function(u){if(tm.indexOf(u)!==-1)return;let l=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(s,u,l);});return Je(this,s),Ft(s)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:true}),nr.dispatchEvent(new om("addChainableMethod",t,n,r));}a(ri,"addChainableMethod");x(ri,"addChainableMethod");function oi(e,t,n,r){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=x(a(function(){let u=r(i).call(this);if(u!==void 0)return u;let l=new b;return Je(this,l),l},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");let s=o.method;o.method=x(a(function(){let u=n(s).apply(this,arguments);if(u!==void 0)return u;let l=new b;return Je(this,l),l},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper");}a(oi,"overwriteChainableMethod");x(oi,"overwriteChainableMethod");function Jn(e,t){return W(e)<W(t)?-1:1}a(Jn,"compareByInspect");x(Jn,"compareByInspect");function ii(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}a(ii,"getOwnEnumerablePropertySymbols");x(ii,"getOwnEnumerablePropertySymbols");function si(e){return Object.keys(e).concat(ii(e))}a(si,"getOwnEnumerableProperties");x(si,"getOwnEnumerableProperties");var Yn=Number.isNaN;function ul(e){let t=ee(e);return ["Array","Object","Function"].indexOf(t)!==-1}a(ul,"isObjectType");x(ul,"isObjectType");function ai(e,t){let n=B(e,"operator"),r=B(e,"negate"),o=t[3],i=r?t[2]:t[1];if(n)return n;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let s=ul(o);return /\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}a(ai,"getOperator");x(ai,"getOperator");function rr(e){return e.name}a(rr,"getName");x(rr,"getName");function Zn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(Zn,"isRegExp2");x(Zn,"isRegExp");function ge(e){return ["Number","BigInt"].includes(ee(e))}a(ge,"isNumeric");x(ge,"isNumeric");var{flag:T}=Fe;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){b.addProperty(e);});b.addProperty("not",function(){T(this,"negate",true);});b.addProperty("deep",function(){T(this,"deep",true);});b.addProperty("nested",function(){T(this,"nested",true);});b.addProperty("own",function(){T(this,"own",true);});b.addProperty("ordered",function(){T(this,"ordered",true);});b.addProperty("any",function(){T(this,"any",true),T(this,"all",false);});b.addProperty("all",function(){T(this,"all",true),T(this,"any",false);});var vc={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function ci(e,t){t&&T(this,"message",t),e=e.toLowerCase();let n=T(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=ee(n).toLowerCase();vc.function.includes(e)?this.assert(vc[e].includes(o),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===o,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e);}a(ci,"an");x(ci,"an");b.addChainableMethod("an",ci);b.addChainableMethod("a",ci);function fl(e,t){return Yn(e)&&Yn(t)||e===t}a(fl,"SameValueZero");x(fl,"SameValueZero");function ln(){T(this,"contains",true);}a(ln,"includeChainingBehavior");x(ln,"includeChainingBehavior");function un(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=ee(n).toLowerCase(),o=T(this,"message"),i=T(this,"negate"),s=T(this,"ssfi"),c=T(this,"deep"),u=c?"deep ":"",l=c?T(this,"eql"):fl;o=o?o+": ":"";let f=false;switch(r){case "string":f=n.indexOf(e)!==-1;break;case "weakset":if(c)throw new V(o+"unable to use .deep.include with WeakSet",void 0,s);f=n.has(e);break;case "map":n.forEach(function(h){f=f||l(h,e);});break;case "set":c?n.forEach(function(h){f=f||l(h,e);}):f=n.has(e);break;case "array":c?f=n.some(function(h){return l(h,e)}):f=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new V(o+"the given combination of arguments ("+r+" and "+ee(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+ee(e).toLowerCase(),void 0,s);let h=Object.keys(e),d=null,p=0;if(h.forEach(function(m){let y=new b(n);if(Je(this,y,true),T(y,"lockSsfi",true),!i||h.length===1){y.property(m,e[m]);return}try{y.property(m,e[m]);}catch(v){if(!Ae.compatibleConstructor(v,V))throw v;d===null&&(d=v),p++;}},this),i&&h.length>1&&p===h.length)throw d;return}}this.assert(f,"expected #{this} to "+u+"include "+W(e),"expected #{this} to not "+u+"include "+W(e));}a(un,"include");x(un,"include");b.addChainableMethod("include",un,ln);b.addChainableMethod("contain",un,ln);b.addChainableMethod("contains",un,ln);b.addChainableMethod("includes",un,ln);b.addProperty("ok",function(){this.assert(T(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});b.addProperty("true",function(){this.assert(T(this,"object")===true,"expected #{this} to be true","expected #{this} to be false",!T(this,"negate"));});b.addProperty("numeric",function(){let e=T(this,"object");this.assert(["Number","BigInt"].includes(ee(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!T(this,"negate"));});b.addProperty("callable",function(){let e=T(this,"object"),t=T(this,"ssfi"),n=T(this,"message"),r=n?`${n}: `:"",o=T(this,"negate"),i=o?`${r}expected ${W(e)} not to be a callable function`:`${r}expected ${W(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ee(e));if(s&&o||!s&&!o)throw new V(i,void 0,t)});b.addProperty("false",function(){this.assert(T(this,"object")===false,"expected #{this} to be false","expected #{this} to be true",!!T(this,"negate"));});b.addProperty("null",function(){this.assert(T(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});b.addProperty("undefined",function(){this.assert(T(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});b.addProperty("NaN",function(){this.assert(Yn(T(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function li(){let e=T(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}a(li,"assertExist");x(li,"assertExist");b.addProperty("exist",li);b.addProperty("exists",li);b.addProperty("empty",function(){let e=T(this,"object"),t=T(this,"ssfi"),n=T(this,"message"),r;switch(n=n?n+": ":"",ee(e).toLowerCase()){case "array":case "string":r=e.length;break;case "map":case "set":r=e.size;break;case "weakmap":case "weakset":throw new V(n+".empty was passed a weak collection",void 0,t);case "function":{let o=n+".empty was passed a function "+rr(e);throw new V(o.trim(),void 0,t)}default:if(e!==Object(e))throw new V(n+".empty was passed non-string primitive "+W(e),void 0,t);r=Object.keys(e).length;}this.assert(r===0,"expected #{this} to be empty","expected #{this} not to be empty");});function ui(){let e=T(this,"object"),t=ee(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}a(ui,"checkArguments");x(ui,"checkArguments");b.addProperty("arguments",ui);b.addProperty("Arguments",ui);function or(e,t){t&&T(this,"message",t);let n=T(this,"object");if(T(this,"deep")){let r=T(this,"lockSsfi");T(this,"lockSsfi",true),this.eql(e),T(this,"lockSsfi",r);}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,true);}a(or,"assertEqual");x(or,"assertEqual");b.addMethod("equal",or);b.addMethod("equals",or);b.addMethod("eq",or);function fi(e,t){t&&T(this,"message",t);let n=T(this,"eql");this.assert(n(e,T(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,true);}a(fi,"assertEql");x(fi,"assertEql");b.addMethod("eql",fi);b.addMethod("eqls",fi);function ir(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase();if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")throw new V(i+"the argument to above must be a date",void 0,s);if(!ge(e)&&(r||ge(n)))throw new V(i+"the argument to above must be a number",void 0,s);if(!r&&c!=="date"&&!ge(n)){let l=c==="string"?"'"+n+"'":n;throw new V(i+"expected "+l+" to be a number or a date",void 0,s)}if(r){let l="length",f;c==="map"||c==="set"?(l="size",f=n.size):f=n.length,this.assert(f>e,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",e,f);}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}a(ir,"assertAbove");x(ir,"assertAbove");b.addMethod("above",ir);b.addMethod("gt",ir);b.addMethod("greaterThan",ir);function sr(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase(),l,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")l=i+"the argument to least must be a date";else if(!ge(e)&&(r||ge(n)))l=i+"the argument to least must be a number";else if(!r&&c!=="date"&&!ge(n)){let h=c==="string"?"'"+n+"'":n;l=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new V(l,void 0,s);if(r){let h="length",d;c==="map"||c==="set"?(h="size",d=n.size):d=n.length,this.assert(d>=e,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",e,d);}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}a(sr,"assertLeast");x(sr,"assertLeast");b.addMethod("least",sr);b.addMethod("gte",sr);b.addMethod("greaterThanOrEqual",sr);function ar(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase(),l,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")l=i+"the argument to below must be a date";else if(!ge(e)&&(r||ge(n)))l=i+"the argument to below must be a number";else if(!r&&c!=="date"&&!ge(n)){let h=c==="string"?"'"+n+"'":n;l=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new V(l,void 0,s);if(r){let h="length",d;c==="map"||c==="set"?(h="size",d=n.size):d=n.length,this.assert(d<e,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",e,d);}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}a(ar,"assertBelow");x(ar,"assertBelow");b.addMethod("below",ar);b.addMethod("lt",ar);b.addMethod("lessThan",ar);function cr(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase(),l,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")l=i+"the argument to most must be a date";else if(!ge(e)&&(r||ge(n)))l=i+"the argument to most must be a number";else if(!r&&c!=="date"&&!ge(n)){let h=c==="string"?"'"+n+"'":n;l=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new V(l,void 0,s);if(r){let h="length",d;c==="map"||c==="set"?(h="size",d=n.size):d=n.length,this.assert(d<=e,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",e,d);}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}a(cr,"assertMost");x(cr,"assertMost");b.addMethod("most",cr);b.addMethod("lte",cr);b.addMethod("lessThanOrEqual",cr);b.addMethod("within",function(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"doLength"),i=T(this,"message"),s=i?i+": ":"",c=T(this,"ssfi"),u=ee(r).toLowerCase(),l=ee(e).toLowerCase(),f=ee(t).toLowerCase(),h,d=true,p=l==="date"&&f==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&u!=="map"&&u!=="set"&&new b(r,i,c,true).to.have.property("length"),!o&&u==="date"&&(l!=="date"||f!=="date"))h=s+"the arguments to within must be dates";else if((!ge(e)||!ge(t))&&(o||ge(r)))h=s+"the arguments to within must be numbers";else if(!o&&u!=="date"&&!ge(r)){let m=u==="string"?"'"+r+"'":r;h=s+"expected "+m+" to be a number or a date";}else d=false;if(d)throw new V(h,void 0,c);if(o){let m="length",y;u==="map"||u==="set"?(m="size",y=r.size):y=r.length,this.assert(y>=e&&y<=t,"expected #{this} to have a "+m+" within "+p,"expected #{this} to not have a "+m+" within "+p);}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+p,"expected #{this} to not be within "+p);});function hi(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"ssfi"),o=T(this,"message"),i;try{i=n instanceof e;}catch(c){throw c instanceof TypeError?(o=o?o+": ":"",new V(o+"The instanceof assertion needs a constructor but "+ee(e)+" was given.",void 0,r)):c}let s=rr(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s);}a(hi,"assertInstanceOf");x(hi,"assertInstanceOf");b.addMethod("instanceof",hi);b.addMethod("instanceOf",hi);function di(e,t,n){n&&T(this,"message",n);let r=T(this,"nested"),o=T(this,"own"),i=T(this,"message"),s=T(this,"object"),c=T(this,"ssfi"),u=typeof e;if(i=i?i+": ":"",r){if(u!=="string")throw new V(i+"the argument to property must be a string when using nested syntax",void 0,c)}else if(u!=="string"&&u!=="number"&&u!=="symbol")throw new V(i+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&o)throw new V(i+'The "nested" and "own" flags cannot be combined.',void 0,c);if(s==null)throw new V(i+"Target cannot be null or undefined.",void 0,c);let l=T(this,"deep"),f=T(this,"negate"),h=r?Zo(s,e):null,d=r?h.value:s[e],p=l?T(this,"eql"):(v,S)=>v===S,m="";l&&(m+="deep "),o&&(m+="own "),r&&(m+="nested "),m+="property ";let y;o?y=Object.prototype.hasOwnProperty.call(s,e):r?y=h.exists:y=tr(s,e),(!f||arguments.length===1)&&this.assert(y,"expected #{this} to have "+m+W(e),"expected #{this} to not have "+m+W(e)),arguments.length>1&&this.assert(y&&p(t,d),"expected #{this} to have "+m+W(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+W(e)+" of #{act}",t,d),T(this,"object",d);}a(di,"assertProperty");x(di,"assertProperty");b.addMethod("property",di);function pi(e,t,n){T(this,"own",true),di.apply(this,arguments);}a(pi,"assertOwnProperty");x(pi,"assertOwnProperty");b.addMethod("ownProperty",pi);b.addMethod("haveOwnProperty",pi);function mi(e,t,n){typeof t=="string"&&(n=t,t=null),n&&T(this,"message",n);let r=T(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),e),i=T(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+W(e)+" on #{this} to match "+W(t)+", got "+W(o),"expected the own property descriptor for "+W(e)+" on #{this} to not match "+W(t),t,o,true):this.assert(o,"expected #{this} to have an own property descriptor for "+W(e),"expected #{this} to not have an own property descriptor for "+W(e)),T(this,"object",o);}a(mi,"assertOwnPropertyDescriptor");x(mi,"assertOwnPropertyDescriptor");b.addMethod("ownPropertyDescriptor",mi);b.addMethod("haveOwnPropertyDescriptor",mi);function gi(){T(this,"doLength",true);}a(gi,"assertLengthChain");x(gi,"assertLengthChain");function yi(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=ee(n).toLowerCase(),o=T(this,"message"),i=T(this,"ssfi"),s="length",c;switch(r){case "map":case "set":s="size",c=n.size;break;default:new b(n,o,i,true).to.have.property("length"),c=n.length;}this.assert(c==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,c);}a(yi,"assertLength");x(yi,"assertLength");b.addChainableMethod("length",yi,gi);b.addChainableMethod("lengthOf",yi,gi);function bi(e,t){t&&T(this,"message",t);let n=T(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e);}a(bi,"assertMatch");x(bi,"assertMatch");b.addMethod("match",bi);b.addMethod("matches",bi);b.addMethod("string",function(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"message"),o=T(this,"ssfi");new b(n,r,o,true).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+W(e),"expected #{this} to not contain "+W(e));});function wi(e){let t=T(this,"object"),n=ee(t),r=ee(e),o=T(this,"ssfi"),i=T(this,"deep"),s,c="",u,l=true,f=T(this,"message");f=f?f+": ":"";let h=f+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(n==="Map"||n==="Set")c=i?"deeply ":"",u=[],t.forEach(function(S,M){u.push(M);}),r!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(u=si(t),r){case "Array":if(arguments.length>1)throw new V(h,void 0,o);break;case "Object":if(arguments.length>1)throw new V(h,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(S){return typeof S=="symbol"?S:String(S)});}if(!e.length)throw new V(f+"keys required",void 0,o);let d=e.length,p=T(this,"any"),m=T(this,"all"),y=e,v=i?T(this,"eql"):(S,M)=>S===M;if(!p&&!m&&(m=true),p&&(l=y.some(function(S){return u.some(function(M){return v(S,M)})})),m&&(l=y.every(function(S){return u.some(function(M){return v(S,M)})}),T(this,"contains")||(l=l&&e.length==u.length)),d>1){e=e.map(function(M){return W(M)});let S=e.pop();m&&(s=e.join(", ")+", and "+S),p&&(s=e.join(", ")+", or "+S);}else s=W(e[0]);s=(d>1?"keys ":"key ")+s,s=(T(this,"contains")?"contain ":"have ")+s,this.assert(l,"expected #{this} to "+c+s,"expected #{this} to not "+c+s,y.slice(0).sort(Jn),u.sort(Jn),true);}a(wi,"assertKeys");x(wi,"assertKeys");b.addMethod("keys",wi);b.addMethod("key",wi);function lr(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"ssfi"),i=T(this,"message"),s=T(this,"negate")||false;new b(r,i,o,true).is.a("function"),(Zn(e)||typeof e=="string")&&(t=e,e=null);let c,u=false;try{r();}catch(p){u=true,c=p;}let l=e===void 0&&t===void 0,f=!!(e&&t),h=false,d=false;if(l||!l&&!s){let p="an error";e instanceof Error?p="#{exp}":e&&(p=Ae.getConstructorName(e));let m=c;if(c instanceof Error)m=c.toString();else if(typeof c=="string")m=c;else if(c&&(typeof c=="object"||typeof c=="function"))try{m=Ae.getConstructorName(c);}catch{}this.assert(u,"expected #{this} to throw "+p,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),m);}if(e&&c&&(e instanceof Error&&Ae.compatibleInstance(c,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!s?" but #{act} was thrown":""),e.toString(),c.toString())),Ae.compatibleConstructor(c,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Ae.getConstructorName(e),c instanceof Error?c.toString():c&&Ae.getConstructorName(c)))),c&&t!==void 0&&t!==null){let p="including";Zn(t)&&(p="matching"),Ae.compatibleMessage(c,t)===s&&(f&&s?d=true:this.assert(s,"expected #{this} to throw error "+p+" #{exp} but got #{act}","expected #{this} to throw error not "+p+" #{exp}",t,Ae.getMessage(c)));}h&&d&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Ae.getConstructorName(e),c instanceof Error?c.toString():c&&Ae.getConstructorName(c)),T(this,"object",c);}a(lr,"assertThrows");x(lr,"assertThrows");b.addMethod("throw",lr);b.addMethod("throws",lr);b.addMethod("Throw",lr);function vi(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"itself"),o=typeof n=="function"&&!r?n.prototype[e]:n[e];this.assert(typeof o=="function","expected #{this} to respond to "+W(e),"expected #{this} to not respond to "+W(e));}a(vi,"respondTo");x(vi,"respondTo");b.addMethod("respondTo",vi);b.addMethod("respondsTo",vi);b.addProperty("itself",function(){T(this,"itself",true);});function Si(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=e(n);this.assert(r,"expected #{this} to satisfy "+Et(e),"expected #{this} to not satisfy"+Et(e),!T(this,"negate"),r);}a(Si,"satisfy");x(Si,"satisfy");b.addMethod("satisfy",Si);b.addMethod("satisfies",Si);function Ti(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new V(o?`${o}: ${s}`:s,void 0,i);if(new b(t,o,i,true).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new V(o?`${o}: ${s}`:s,void 0,i);new b(e,o,i,true).is.numeric;let c=x(l=>l<0?-l:l,"abs"),u=x(l=>parseFloat(parseFloat(l).toPrecision(12)),"strip");this.assert(u(c(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}a(Ti,"closeTo");x(Ti,"closeTo");b.addMethod("closeTo",Ti);b.addMethod("approximately",Ti);function hl(e,t,n,r,o){let i=Array.from(t),s=Array.from(e);if(!r){if(s.length!==i.length)return false;i=i.slice();}return s.every(function(c,u){if(o)return n?n(c,i[u]):c===i[u];if(!n){let l=i.indexOf(c);return l===-1?false:(r||i.splice(l,1),true)}return i.some(function(l,f){return n(c,l)?(r||i.splice(f,1),true):false})})}a(hl,"isSubsetOf");x(hl,"isSubsetOf");b.addMethod("members",function(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"message"),o=T(this,"ssfi");new b(n,r,o,true).to.be.iterable,new b(e,r,o,true).to.be.iterable;let i=T(this,"contains"),s=T(this,"ordered"),c,u,l;i?(c=s?"an ordered superset":"a superset",u="expected #{this} to be "+c+" of #{exp}",l="expected #{this} to not be "+c+" of #{exp}"):(c=s?"ordered members":"members",u="expected #{this} to have the same "+c+" as #{exp}",l="expected #{this} to not have the same "+c+" as #{exp}");let f=T(this,"deep")?T(this,"eql"):void 0;this.assert(hl(e,n,f,i,s),u,l,e,n,true);});b.addProperty("iterable",function(e){e&&T(this,"message",e);let t=T(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function dl(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"message"),o=T(this,"ssfi"),i=T(this,"contains"),s=T(this,"deep"),c=T(this,"eql");new b(e,r,o,true).to.be.an("array"),i?this.assert(e.some(function(u){return n.indexOf(u)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):s?this.assert(e.some(function(u){return c(n,u)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n);}a(dl,"oneOf");x(dl,"oneOf");b.addMethod("oneOf",dl);function Ei(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),r();let c=t==null?e():e[t],u=t==null?s:"."+t;T(this,"deltaMsgObj",u),T(this,"initialDeltaValue",s),T(this,"finalDeltaValue",c),T(this,"deltaBehavior","change"),T(this,"realDelta",c!==s),this.assert(s!==c,"expected "+u+" to change","expected "+u+" to not change");}a(Ei,"assertChanges");x(Ei,"assertChanges");b.addMethod("change",Ei);b.addMethod("changes",Ei);function xi(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let c=t==null?e():e[t],u=t==null?s:"."+t;T(this,"deltaMsgObj",u),T(this,"initialDeltaValue",s),T(this,"finalDeltaValue",c),T(this,"deltaBehavior","increase"),T(this,"realDelta",c-s),this.assert(c-s>0,"expected "+u+" to increase","expected "+u+" to not increase");}a(xi,"assertIncreases");x(xi,"assertIncreases");b.addMethod("increase",xi);b.addMethod("increases",xi);function Mi(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let c=t==null?e():e[t],u=t==null?s:"."+t;T(this,"deltaMsgObj",u),T(this,"initialDeltaValue",s),T(this,"finalDeltaValue",c),T(this,"deltaBehavior","decrease"),T(this,"realDelta",s-c),this.assert(c-s<0,"expected "+u+" to decrease","expected "+u+" to not decrease");}a(Mi,"assertDecreases");x(Mi,"assertDecreases");b.addMethod("decrease",Mi);b.addMethod("decreases",Mi);function pl(e,t){t&&T(this,"message",t);let n=T(this,"deltaMsgObj"),r=T(this,"initialDeltaValue"),o=T(this,"finalDeltaValue"),i=T(this,"deltaBehavior"),s=T(this,"realDelta"),c;i==="change"?c=Math.abs(o-r)===Math.abs(e):c=s===Math.abs(e),this.assert(c,"expected "+n+" to "+i+" by "+e,"expected "+n+" to not "+i+" by "+e);}a(pl,"assertDelta");x(pl,"assertDelta");b.addMethod("by",pl);b.addProperty("extensible",function(){let e=T(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});b.addProperty("sealed",function(){let e=T(this,"object"),t=e===Object(e)?Object.isSealed(e):true;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});b.addProperty("frozen",function(){let e=T(this,"object"),t=e===Object(e)?Object.isFrozen(e):true;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});b.addProperty("finite",function(e){let t=T(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});function Xn(e,t){return e===t?true:typeof t!=typeof e?false:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(r){return Xn(n,r)})}):false:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():false:Object.keys(e).every(function(n){let r=e[n],o=t[n];return typeof r=="object"&&r!==null&&o!==null?Xn(r,o):typeof r=="function"?r(o):o===r}):false}a(Xn,"compareSubset");x(Xn,"compareSubset");b.addMethod("containSubset",function(e){let t=B(this,"object"),n=Ee.showDiff;this.assert(Xn(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n);});function on(e,t){return new b(e,t)}a(on,"expect");x(on,"expect");on.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new V(n,{actual:e,expected:t,operator:r},on.fail)};var ml={};Wo(ml,{Should:a(()=>yl,"Should"),should:a(()=>gl,"should")});function _i(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new b(this.valueOf(),null,e):new b(this,null,e)}a(e,"shouldGetter"),x(e,"shouldGetter");function t(r){Object.defineProperty(this,"should",{value:r,enumerable:true,configurable:true,writable:true});}a(t,"shouldSetter"),x(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:true});let n={};return n.fail=function(r,o,i,s){throw arguments.length<2&&(i=r,r=void 0),i=i||"should.fail()",new V(i,{actual:r,expected:o,operator:s},n.fail)},n.equal=function(r,o,i){new b(r,i).to.equal(o);},n.Throw=function(r,o,i,s){new b(r,s).to.Throw(o,i);},n.exist=function(r,o){new b(r,o).to.exist;},n.not={},n.not.equal=function(r,o,i){new b(r,i).to.not.equal(o);},n.not.Throw=function(r,o,i,s){new b(r,s).to.not.Throw(o,i);},n.not.exist=function(r,o){new b(r,o).to.not.exist;},n.throw=n.Throw,n.not.throw=n.not.Throw,n}a(_i,"loadShould");x(_i,"loadShould");var gl=_i,yl=_i;function g(e,t){new b(null,null,g,true).assert(e,t,"[ negation message unavailable ]");}a(g,"assert");x(g,"assert");g.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new V(n,{actual:e,expected:t,operator:r},g.fail)};g.isOk=function(e,t){new b(e,t,g.isOk,true).is.ok;};g.isNotOk=function(e,t){new b(e,t,g.isNotOk,true).is.not.ok;};g.equal=function(e,t,n){let r=new b(e,n,g.equal,true);r.assert(t==B(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,true);};g.notEqual=function(e,t,n){let r=new b(e,n,g.notEqual,true);r.assert(t!=B(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,true);};g.strictEqual=function(e,t,n){new b(e,n,g.strictEqual,true).to.equal(t);};g.notStrictEqual=function(e,t,n){new b(e,n,g.notStrictEqual,true).to.not.equal(t);};g.deepEqual=g.deepStrictEqual=function(e,t,n){new b(e,n,g.deepEqual,true).to.eql(t);};g.notDeepEqual=function(e,t,n){new b(e,n,g.notDeepEqual,true).to.not.eql(t);};g.isAbove=function(e,t,n){new b(e,n,g.isAbove,true).to.be.above(t);};g.isAtLeast=function(e,t,n){new b(e,n,g.isAtLeast,true).to.be.least(t);};g.isBelow=function(e,t,n){new b(e,n,g.isBelow,true).to.be.below(t);};g.isAtMost=function(e,t,n){new b(e,n,g.isAtMost,true).to.be.most(t);};g.isTrue=function(e,t){new b(e,t,g.isTrue,true).is.true;};g.isNotTrue=function(e,t){new b(e,t,g.isNotTrue,true).to.not.equal(true);};g.isFalse=function(e,t){new b(e,t,g.isFalse,true).is.false;};g.isNotFalse=function(e,t){new b(e,t,g.isNotFalse,true).to.not.equal(false);};g.isNull=function(e,t){new b(e,t,g.isNull,true).to.equal(null);};g.isNotNull=function(e,t){new b(e,t,g.isNotNull,true).to.not.equal(null);};g.isNaN=function(e,t){new b(e,t,g.isNaN,true).to.be.NaN;};g.isNotNaN=function(e,t){new b(e,t,g.isNotNaN,true).not.to.be.NaN;};g.exists=function(e,t){new b(e,t,g.exists,true).to.exist;};g.notExists=function(e,t){new b(e,t,g.notExists,true).to.not.exist;};g.isUndefined=function(e,t){new b(e,t,g.isUndefined,true).to.equal(void 0);};g.isDefined=function(e,t){new b(e,t,g.isDefined,true).to.not.equal(void 0);};g.isCallable=function(e,t){new b(e,t,g.isCallable,true).is.callable;};g.isNotCallable=function(e,t){new b(e,t,g.isNotCallable,true).is.not.callable;};g.isObject=function(e,t){new b(e,t,g.isObject,true).to.be.a("object");};g.isNotObject=function(e,t){new b(e,t,g.isNotObject,true).to.not.be.a("object");};g.isArray=function(e,t){new b(e,t,g.isArray,true).to.be.an("array");};g.isNotArray=function(e,t){new b(e,t,g.isNotArray,true).to.not.be.an("array");};g.isString=function(e,t){new b(e,t,g.isString,true).to.be.a("string");};g.isNotString=function(e,t){new b(e,t,g.isNotString,true).to.not.be.a("string");};g.isNumber=function(e,t){new b(e,t,g.isNumber,true).to.be.a("number");};g.isNotNumber=function(e,t){new b(e,t,g.isNotNumber,true).to.not.be.a("number");};g.isNumeric=function(e,t){new b(e,t,g.isNumeric,true).is.numeric;};g.isNotNumeric=function(e,t){new b(e,t,g.isNotNumeric,true).is.not.numeric;};g.isFinite=function(e,t){new b(e,t,g.isFinite,true).to.be.finite;};g.isBoolean=function(e,t){new b(e,t,g.isBoolean,true).to.be.a("boolean");};g.isNotBoolean=function(e,t){new b(e,t,g.isNotBoolean,true).to.not.be.a("boolean");};g.typeOf=function(e,t,n){new b(e,n,g.typeOf,true).to.be.a(t);};g.notTypeOf=function(e,t,n){new b(e,n,g.notTypeOf,true).to.not.be.a(t);};g.instanceOf=function(e,t,n){new b(e,n,g.instanceOf,true).to.be.instanceOf(t);};g.notInstanceOf=function(e,t,n){new b(e,n,g.notInstanceOf,true).to.not.be.instanceOf(t);};g.include=function(e,t,n){new b(e,n,g.include,true).include(t);};g.notInclude=function(e,t,n){new b(e,n,g.notInclude,true).not.include(t);};g.deepInclude=function(e,t,n){new b(e,n,g.deepInclude,true).deep.include(t);};g.notDeepInclude=function(e,t,n){new b(e,n,g.notDeepInclude,true).not.deep.include(t);};g.nestedInclude=function(e,t,n){new b(e,n,g.nestedInclude,true).nested.include(t);};g.notNestedInclude=function(e,t,n){new b(e,n,g.notNestedInclude,true).not.nested.include(t);};g.deepNestedInclude=function(e,t,n){new b(e,n,g.deepNestedInclude,true).deep.nested.include(t);};g.notDeepNestedInclude=function(e,t,n){new b(e,n,g.notDeepNestedInclude,true).not.deep.nested.include(t);};g.ownInclude=function(e,t,n){new b(e,n,g.ownInclude,true).own.include(t);};g.notOwnInclude=function(e,t,n){new b(e,n,g.notOwnInclude,true).not.own.include(t);};g.deepOwnInclude=function(e,t,n){new b(e,n,g.deepOwnInclude,true).deep.own.include(t);};g.notDeepOwnInclude=function(e,t,n){new b(e,n,g.notDeepOwnInclude,true).not.deep.own.include(t);};g.match=function(e,t,n){new b(e,n,g.match,true).to.match(t);};g.notMatch=function(e,t,n){new b(e,n,g.notMatch,true).to.not.match(t);};g.property=function(e,t,n){new b(e,n,g.property,true).to.have.property(t);};g.notProperty=function(e,t,n){new b(e,n,g.notProperty,true).to.not.have.property(t);};g.propertyVal=function(e,t,n,r){new b(e,r,g.propertyVal,true).to.have.property(t,n);};g.notPropertyVal=function(e,t,n,r){new b(e,r,g.notPropertyVal,true).to.not.have.property(t,n);};g.deepPropertyVal=function(e,t,n,r){new b(e,r,g.deepPropertyVal,true).to.have.deep.property(t,n);};g.notDeepPropertyVal=function(e,t,n,r){new b(e,r,g.notDeepPropertyVal,true).to.not.have.deep.property(t,n);};g.ownProperty=function(e,t,n){new b(e,n,g.ownProperty,true).to.have.own.property(t);};g.notOwnProperty=function(e,t,n){new b(e,n,g.notOwnProperty,true).to.not.have.own.property(t);};g.ownPropertyVal=function(e,t,n,r){new b(e,r,g.ownPropertyVal,true).to.have.own.property(t,n);};g.notOwnPropertyVal=function(e,t,n,r){new b(e,r,g.notOwnPropertyVal,true).to.not.have.own.property(t,n);};g.deepOwnPropertyVal=function(e,t,n,r){new b(e,r,g.deepOwnPropertyVal,true).to.have.deep.own.property(t,n);};g.notDeepOwnPropertyVal=function(e,t,n,r){new b(e,r,g.notDeepOwnPropertyVal,true).to.not.have.deep.own.property(t,n);};g.nestedProperty=function(e,t,n){new b(e,n,g.nestedProperty,true).to.have.nested.property(t);};g.notNestedProperty=function(e,t,n){new b(e,n,g.notNestedProperty,true).to.not.have.nested.property(t);};g.nestedPropertyVal=function(e,t,n,r){new b(e,r,g.nestedPropertyVal,true).to.have.nested.property(t,n);};g.notNestedPropertyVal=function(e,t,n,r){new b(e,r,g.notNestedPropertyVal,true).to.not.have.nested.property(t,n);};g.deepNestedPropertyVal=function(e,t,n,r){new b(e,r,g.deepNestedPropertyVal,true).to.have.deep.nested.property(t,n);};g.notDeepNestedPropertyVal=function(e,t,n,r){new b(e,r,g.notDeepNestedPropertyVal,true).to.not.have.deep.nested.property(t,n);};g.lengthOf=function(e,t,n){new b(e,n,g.lengthOf,true).to.have.lengthOf(t);};g.hasAnyKeys=function(e,t,n){new b(e,n,g.hasAnyKeys,true).to.have.any.keys(t);};g.hasAllKeys=function(e,t,n){new b(e,n,g.hasAllKeys,true).to.have.all.keys(t);};g.containsAllKeys=function(e,t,n){new b(e,n,g.containsAllKeys,true).to.contain.all.keys(t);};g.doesNotHaveAnyKeys=function(e,t,n){new b(e,n,g.doesNotHaveAnyKeys,true).to.not.have.any.keys(t);};g.doesNotHaveAllKeys=function(e,t,n){new b(e,n,g.doesNotHaveAllKeys,true).to.not.have.all.keys(t);};g.hasAnyDeepKeys=function(e,t,n){new b(e,n,g.hasAnyDeepKeys,true).to.have.any.deep.keys(t);};g.hasAllDeepKeys=function(e,t,n){new b(e,n,g.hasAllDeepKeys,true).to.have.all.deep.keys(t);};g.containsAllDeepKeys=function(e,t,n){new b(e,n,g.containsAllDeepKeys,true).to.contain.all.deep.keys(t);};g.doesNotHaveAnyDeepKeys=function(e,t,n){new b(e,n,g.doesNotHaveAnyDeepKeys,true).to.not.have.any.deep.keys(t);};g.doesNotHaveAllDeepKeys=function(e,t,n){new b(e,n,g.doesNotHaveAllDeepKeys,true).to.not.have.all.deep.keys(t);};g.throws=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let o=new b(e,r,g.throws,true).to.throw(t,n);return B(o,"object")};g.doesNotThrow=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new b(e,r,g.doesNotThrow,true).to.not.throw(t,n);};g.operator=function(e,t,n,r){let o;switch(t){case "==":o=e==n;break;case "===":o=e===n;break;case ">":o=e>n;break;case ">=":o=e>=n;break;case "<":o=e<n;break;case "<=":o=e<=n;break;case "!=":o=e!=n;break;case "!==":o=e!==n;break;default:throw r=r&&r+": ",new V(r+'Invalid operator "'+t+'"',void 0,g.operator)}let i=new b(o,r,g.operator,true);i.assert(B(i,"object")===true,"expected "+W(e)+" to be "+t+" "+W(n),"expected "+W(e)+" to not be "+t+" "+W(n));};g.closeTo=function(e,t,n,r){new b(e,r,g.closeTo,true).to.be.closeTo(t,n);};g.approximately=function(e,t,n,r){new b(e,r,g.approximately,true).to.be.approximately(t,n);};g.sameMembers=function(e,t,n){new b(e,n,g.sameMembers,true).to.have.same.members(t);};g.notSameMembers=function(e,t,n){new b(e,n,g.notSameMembers,true).to.not.have.same.members(t);};g.sameDeepMembers=function(e,t,n){new b(e,n,g.sameDeepMembers,true).to.have.same.deep.members(t);};g.notSameDeepMembers=function(e,t,n){new b(e,n,g.notSameDeepMembers,true).to.not.have.same.deep.members(t);};g.sameOrderedMembers=function(e,t,n){new b(e,n,g.sameOrderedMembers,true).to.have.same.ordered.members(t);};g.notSameOrderedMembers=function(e,t,n){new b(e,n,g.notSameOrderedMembers,true).to.not.have.same.ordered.members(t);};g.sameDeepOrderedMembers=function(e,t,n){new b(e,n,g.sameDeepOrderedMembers,true).to.have.same.deep.ordered.members(t);};g.notSameDeepOrderedMembers=function(e,t,n){new b(e,n,g.notSameDeepOrderedMembers,true).to.not.have.same.deep.ordered.members(t);};g.includeMembers=function(e,t,n){new b(e,n,g.includeMembers,true).to.include.members(t);};g.notIncludeMembers=function(e,t,n){new b(e,n,g.notIncludeMembers,true).to.not.include.members(t);};g.includeDeepMembers=function(e,t,n){new b(e,n,g.includeDeepMembers,true).to.include.deep.members(t);};g.notIncludeDeepMembers=function(e,t,n){new b(e,n,g.notIncludeDeepMembers,true).to.not.include.deep.members(t);};g.includeOrderedMembers=function(e,t,n){new b(e,n,g.includeOrderedMembers,true).to.include.ordered.members(t);};g.notIncludeOrderedMembers=function(e,t,n){new b(e,n,g.notIncludeOrderedMembers,true).to.not.include.ordered.members(t);};g.includeDeepOrderedMembers=function(e,t,n){new b(e,n,g.includeDeepOrderedMembers,true).to.include.deep.ordered.members(t);};g.notIncludeDeepOrderedMembers=function(e,t,n){new b(e,n,g.notIncludeDeepOrderedMembers,true).to.not.include.deep.ordered.members(t);};g.oneOf=function(e,t,n){new b(e,n,g.oneOf,true).to.be.oneOf(t);};g.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${W(e)} to be an iterable`:`expected ${W(e)} to be an iterable`,new V(t,void 0,g.isIterable)};g.changes=function(e,t,n,r){arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.changes,true).to.change(t,n);};g.changesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.changesBy,true).to.change(t,n).by(r);};g.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.doesNotChange,true).to.not.change(t,n)};g.changesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.changesButNotBy,true).to.change(t,n).but.not.by(r);};g.increases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.increases,true).to.increase(t,n)};g.increasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.increasesBy,true).to.increase(t,n).by(r);};g.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.doesNotIncrease,true).to.not.increase(t,n)};g.increasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.increasesButNotBy,true).to.increase(t,n).but.not.by(r);};g.decreases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.decreases,true).to.decrease(t,n)};g.decreasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.decreasesBy,true).to.decrease(t,n).by(r);};g.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.doesNotDecrease,true).to.not.decrease(t,n)};g.doesNotDecreaseBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);return new b(e,o,g.doesNotDecreaseBy,true).to.not.decrease(t,n).by(r)};g.decreasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.decreasesButNotBy,true).to.decrease(t,n).but.not.by(r);};g.ifError=function(e){if(e)throw e};g.isExtensible=function(e,t){new b(e,t,g.isExtensible,true).to.be.extensible;};g.isNotExtensible=function(e,t){new b(e,t,g.isNotExtensible,true).to.not.be.extensible;};g.isSealed=function(e,t){new b(e,t,g.isSealed,true).to.be.sealed;};g.isNotSealed=function(e,t){new b(e,t,g.isNotSealed,true).to.not.be.sealed;};g.isFrozen=function(e,t){new b(e,t,g.isFrozen,true).to.be.frozen;};g.isNotFrozen=function(e,t){new b(e,t,g.isNotFrozen,true).to.not.be.frozen;};g.isEmpty=function(e,t){new b(e,t,g.isEmpty,true).to.be.empty;};g.isNotEmpty=function(e,t){new b(e,t,g.isNotEmpty,true).to.not.be.empty;};g.containsSubset=function(e,t,n){new b(e,n).to.containSubset(t);};g.doesNotContainSubset=function(e,t,n){new b(e,n).to.not.containSubset(t);};var im=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of im)g[t]=g[e];var Sc=[];function fn(e){let t={use:fn,AssertionError:V,util:Fe,config:Ee,expect:on,assert:g,Assertion:b,...ml};return ~Sc.indexOf(e)||(e(t,Fe),Sc.push(e)),t}a(fn,"use");x(fn,"use");var ur=Symbol.for("matchers-object"),pn=Symbol.for("$$jest-matchers-object"),mn=Symbol.for("expect-global"),wr=Symbol.for("asymmetric-matchers-object"),Ol={toSatisfy(e,t,n){let{printReceived:r,printExpected:o,matcherHint:i}=this.utils,s=t(e);return {pass:s,message:a(()=>s?`${i(".not.toSatisfy","received","")}
59
+ `))return Yd(t,e,n);let[f]=zc(t,e,true),h=f.some(m=>m[0]===ce),d=om(r,o),p=d(r)+am(Nc(f,Ee,h)),g=d(o)+im(Nc(f,we,h));return `${p}
60
+ ${g}`}let s=_o(t,{forceWritable:true}),a=_o(e,{forceWritable:true}),{replacedExpected:l,replacedActual:c}=Qn(a,s);return _t(l,c,n)}i(nr,"printDiffOrStringify");function Qn(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Zn(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),Co(t).forEach(o=>{let s=t[o],a=e[o];if($c(s)){if(s.asymmetricMatch(a))t[o]=a;else if("sample"in s&&s.sample!==void 0&&Zn(a,s.sample)){let l=Qn(a,s.sample,n,r);e[o]=l.replacedActual,t[o]=l.replacedExpected;}}else if($c(a)){if(a.asymmetricMatch(s))e[o]=s;else if("sample"in a&&a.sample!==void 0&&Zn(a.sample,s)){let l=Qn(a.sample,s,n,r);e[o]=l.replacedActual,t[o]=l.replacedExpected;}}else if(Zn(a,s)){let l=Qn(a,s,n,r);e[o]=l.replacedActual,t[o]=l.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}i(Qn,"replaceAsymmetricMatcher");function om(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}i(om,"getLabelPrinter");var sm="\xB7";function Kc(e){return e.replace(/\s+$/gm,t=>sm.repeat(t.length))}i(Kc,"replaceTrailingSpaces");function im(e){return se.red(Kc(ye(e)))}i(im,"printReceived");function am(e){return se.green(Kc(ye(e)))}i(am,"printExpected");function Nc(e,t,n){return e.reduce((r,o)=>r+(o[0]===ce?o[1]:o[0]===t?n?se.inverse(o[1]):o[1]:""),"")}i(Nc,"getCommonAndChangedSubstrings");var cm="@@__IMMUTABLE_RECORD__@@",lm="@@__IMMUTABLE_ITERABLE__@@";function um(e){return e&&(e[lm]||e[cm])}i(um,"isImmutable");var fm=Object.getPrototypeOf({});function Hc(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}i(Hc,"getUnserializableMessage");function ut(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let n=e.toJSON();return n&&n!==e&&typeof n=="object"&&(typeof e.message=="string"&&un(()=>n.message??=Gc(e.message)),typeof e.stack=="string"&&un(()=>n.stack??=e.stack),typeof e.name=="string"&&un(()=>n.name??=e.name),e.cause!=null&&un(()=>n.cause??=ut(e.cause,t))),ut(n,t)}if(typeof e=="function")return `Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return `<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return `<Uint8Array(${e.length}) ...>`;if(um(e))return ut(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return "Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.toJSON=="function")return ut(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,o)=>{try{n[o]=ut(r,t);}catch(s){n[o]=Hc(s);}}),n}else {let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==fm;)Object.getOwnPropertyNames(r).forEach(o=>{if(!(o in n))try{n[o]=ut(e[o],t);}catch(s){delete n[o],n[o]=Hc(s);}}),r=Object.getPrototypeOf(r);return e instanceof Error&&un(()=>n.message=Gc(e.message)),n}}i(ut,"serializeValue");function un(e){try{return e()}catch{}}i(un,"safe");function Gc(e){return e.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/getByTestId('__vitest_\d+__')/g,"page")}i(Gc,"normalizeErrorMessage");function Bo(e,t,n=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=nr(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=ye(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=ye(r.actual,10));try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=Bo(r.cause,t,n));}catch{}try{return ut(r)}catch(o){return ut(new Error(`Failed to fully serialize error: ${o?.message}
61
+ Inner error message: ${r?.message}`))}}i(Bo,"processError");var Jc=Symbol("vitest:SAFE_TIMERS");function ft(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:s,queueMicrotask:a}=globalThis[Jc]||globalThis,{nextTick:l}=globalThis[Jc]||globalThis.process||{};return {nextTick:l,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:s,queueMicrotask:a}}i(ft,"getSafeTimers");function Yc(e,t=setTimeout){return new Promise(n=>t(n,e))}i(Yc,"delay");var hm=/^[A-Za-z]:\//;function pm(e=""){return e&&e.replace(/\\/g,"/").replace(hm,t=>t.toUpperCase())}i(pm,"normalizeWindowsPath");var dm=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function mm(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}i(mm,"cwd");var qo=i(function(...e){e=e.map(r=>pm(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:mm();!o||o.length===0||(t=`${o}/${t}`,n=Xc(o));}return t=gm(t,!n),n&&!Xc(t)?`/${t}`:t.length>0?t:"."},"resolve");function gm(e,t){let n="",r=0,o=-1,s=0,a=null;for(let l=0;l<=e.length;++l){if(l<e.length)a=e[l];else {if(a==="/")break;a="/";}if(a==="/"){if(!(o===l-1||s===1))if(s===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let c=n.lastIndexOf("/");c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=l,s=0;continue}else if(n.length>0){n="",r=0,o=l,s=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,l)}`:n=e.slice(o+1,l),r=l-o-1;o=l,s=0;}else a==="."&&s!==-1?++s:s=-1;}return n}i(gm,"normalizeString");var Xc=i(function(e){return dm.test(e)},"isAbsolute");var ym=44,Zc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wm=new Uint8Array(64),nl=new Uint8Array(128);for(let e=0;e<Zc.length;e++){let t=Zc.charCodeAt(e);wm[e]=t,nl[t]=e;}function fn(e,t){let n=0,r=0,o=0;do{let a=e.next();o=nl[a],n|=(o&31)<<r,r+=5;}while(o&32);let s=n&1;return n>>>=1,s&&(n=-2147483648|-n),t+n}i(fn,"decodeInteger");function Qc(e,t){return e.pos>=t?false:e.peek()!==ym}i(Qc,"hasMoreVlq");var bm=class{static{i(this,"StringReader");}constructor(e){this.pos=0,this.buffer=e;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Tm(e){let{length:t}=e,n=new bm(e),r=[],o=0,s=0,a=0,l=0,c=0;do{let u=n.indexOf(";"),f=[],h=true,d=0;for(o=0;n.pos<u;){let p;o=fn(n,o),o<d&&(h=false),d=o,Qc(n,u)?(s=fn(n,s),a=fn(n,a),l=fn(n,l),Qc(n,u)?(c=fn(n,c),p=[o,s,a,l,c]):p=[o,s,a,l]):p=[o],f.push(p),n.pos++;}h||Sm(f),r.push(f),n.pos=u+1;}while(n.pos<=t);return r}i(Tm,"decode");function Sm(e){e.sort(Em);}i(Sm,"sort");function Em(e,t){return e[0]-t[0]}i(Em,"sortComparator");var sr=0,vm=1,xm=2,km=3,Mm=4,or=false;function Cm(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),s=e[o][sr]-t;if(s===0)return or=true,o;s<0?n=o+1:r=o-1;}return or=false,n-1}i(Cm,"binarySearch");function _m(e,t,n){for(let r=n+1;r<e.length&&e[r][sr]===t;n=r++);return n}i(_m,"upperBound");function Om(e,t,n){for(let r=n-1;r>=0&&e[r][sr]===t;n=r--);return n}i(Om,"lowerBound");function Im(e,t,n,r){let{lastKey:o,lastNeedle:s,lastIndex:a}=n,l=0,c=e.length-1;if(r===o){if(t===s)return or=a!==-1&&e[a][sr]===t,a;t>=s?l=a===-1?0:a:c=a;}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=Cm(e,t,l,c)}i(Im,"memoizedBinarySearch");var Am="`line` must be greater than 0 (lines start at line 1)",$m="`column` must be greater than or equal to 0 (columns start at column 0)",el=-1,Nm=1;function Pm(e){var t;return (t=e)._decoded||(t._decoded=Tm(e._encoded))}i(Pm,"decodedMappings");function Rm(e,t){let{line:n,column:r,bias:o}=t;if(n--,n<0)throw new Error(Am);if(r<0)throw new Error($m);let s=Pm(e);if(n>=s.length)return rr(null,null,null,null);let a=s[n],l=jm(a,e._decodedMemo,n,r,o||Nm);if(l===-1)return rr(null,null,null,null);let c=a[l];if(c.length===1)return rr(null,null,null,null);let{names:u,resolvedSources:f}=e;return rr(f[c[vm]],c[xm]+1,c[km],c.length===5?u[c[Mm]]:null)}i(Rm,"originalPositionFor");function rr(e,t,n,r){return {source:e,line:t,column:n,name:r}}i(rr,"OMapping");function jm(e,t,n,r,o){let s=Im(e,r,t,n);return or?s=(o===el?_m:Om)(e,r,s):o===el&&s++,s===-1||s===e.length?-1:s}i(jm,"traceSegmentInternal");var Wo=/^\s*at .*(?:\S:\d+|\(native\))/m,Fm=/^(?:eval@)?(?:\[native code\])?$/,Dm=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],Lm=Date.now().toString().length,Bm=new RegExp(`vitest=\\d{${Lm}}`);function rl(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return r.includes("vitest=")&&(r=r.replace(Bm,"").replace(/[?&]$/,"")),[r,n[2]||void 0,n[3]||void 0]}i(rl,"extractLocation");function ol(e){let t=e.trim();if(Fm.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,r="",o;for(let c=0;c<t.length;c++)if(t[c]==="@"){let u=t.slice(c+1);if(u.includes(":")&&u.length>=3){n=c,r=u,o=c>0?t.slice(0,c):void 0;break}}if(n===-1||!r.includes(":")||r.length<3)return null;let[s,a,l]=rl(r);return !s||!a||!l?null:{file:s,method:o||"",line:Number.parseInt(a),column:Number.parseInt(l)}}i(ol,"parseSingleFFOrSafariStack");function ir(e){let t=e.trim();return Wo.test(t)?sl(t):ol(t)}i(ir,"parseSingleStack");function sl(e){let t=e.trim();if(!Wo.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let[o,s,a]=rl(r?r[1]:n),l=r&&n||"",c=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !c||!s||!a?null:(l.startsWith("async ")&&(l=l.slice(6)),c.startsWith("file://")&&(c=c.slice(7)),c=c.startsWith("node:")||c.startsWith("internal:")?c:qo(c),l&&(l=l.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:l,file:c,line:Number.parseInt(s),column:Number.parseInt(a)})}i(sl,"parseSingleV8Stack");function Uo(e,t={}){let{ignoreStackEntries:n=Dm}=t,r=Wo.test(e)?Um(e):qm(e),o=r.findLastIndex(s=>s.method==="__VITEST_HELPER__"||s.method==="async*__VITEST_HELPER__");return o>=0&&(r=r.slice(o+1)),r.map(s=>{t.getUrlId&&(s.file=t.getUrlId(s.file));let a=t.getSourceMap?.(s.file);if(!a||typeof a!="object"||!a.version)return tl(n,s.file)?null:s;let l=new zo(a,s.file),c=Wm(l,s);if(!c)return s;let{line:u,column:f,source:h,name:d}=c,p=h||s.file;return p.match(/\/\w:\//)&&(p=p.slice(1)),tl(n,p)?null:u!=null&&f!=null?{line:u,column:f,file:p,method:d||s.method}:s}).filter(s=>s!=null)}i(Uo,"parseStacktrace");function tl(e,t){return e.some(n=>t.match(n))}i(tl,"shouldFilter");function qm(e){return e.split(`
62
+ `).map(t=>ol(t)).filter(Mo)}i(qm,"parseFFOrSafariStackTrace");function Um(e){return e.split(`
63
+ `).map(t=>sl(t)).filter(Mo)}i(Um,"parseV8Stacktrace");function il(e,t={}){if(!e||mc(e))return [];if("stacks"in e&&e.stacks)return e.stacks;let n=e.stack||"",r=typeof n=="string"?Uo(n,t):[];if(!r.length){let o=e;o.fileName!=null&&o.lineNumber!=null&&o.columnNumber!=null&&(r=Uo(`${o.fileName}:${o.lineNumber}:${o.columnNumber}`,t)),o.sourceURL!=null&&o.line!=null&&o._column!=null&&(r=Uo(`${o.sourceURL}:${o.line}:${o.column}`,t));}return t.frameFilter&&(r=r.filter(o=>t.frameFilter(e,o)!==false)),e.stacks=r,r}i(il,"parseErrorStacktrace");var zo=class{static{i(this,"DecodedMap");}_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;let{mappings:r,names:o,sources:s}=t;this.version=t.version,this.names=o||[],this._encoded=r||"",this._decodedMemo=zm(),this.url=n,this.resolvedSources=(s||[]).map(a=>qo(n,"..",a||""));}};function zm(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}i(zm,"memoizedState");function Wm(e,t){let n=Rm(e,t);return n.column==null?null:n}i(Wm,"getOriginalPosition");var Ho=class extends Error{static{i(this,"PendingError");}code="VITEST_PENDING";taskId;constructor(t,n,r){super(t),this.message=t,this.note=r,this.taskId=n.id;}};var nt=class extends Error{static{i(this,"FixtureDependencyError");}name="FixtureDependencyError"},Go=class extends Error{static{i(this,"FixtureAccessError");}name="FixtureAccessError"},fr=class extends Error{static{i(this,"FixtureParseError");}name="FixtureParseError"};var Vm=new WeakMap,hl=new WeakMap,pl=new WeakMap;function dl(e,t){Vm.set(e,t);}i(dl,"setFn");function Km(e,t){hl.set(e,t);}i(Km,"setTestFixture");function Hm(e){return hl.get(e)}i(Hm,"getTestFixtures");function ml(e,t){pl.set(e,t);}i(ml,"setHooks");function Zo(e){return pl.get(e)}i(Zo,"getHooks");var lr=Symbol.for("VITEST_FIXTURE_STACK_TRACE"),pn=class e{static{i(this,"TestFixtures");}_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){e._definitions.length=0;}static getWorkerContexts(){return e._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return e._definitions.map(n=>n.getFileContext(t))}static isFixtureOptions(t){return Le(t)&&Object.keys(t).some(n=>e._fixtureOptionKeys.includes(n))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,e._definitions.push(this);}extend(t,n){let{suite:r}=Ve(),o=!r||r.file===r,s=this.parseUserFixtures(t,n,o);return new e(s)}get(t){let n=t;for(;n;){let r=this._overrides.get(n);if(r)return r;if(n===n.file)break;n=n.suite||n.file;}return this._registrations}override(t,n){let{suite:r,file:o}=Ve(),s=r||o,a=!r||r.file===r,l=new Map(this.get(s)),c=this.parseUserFixtures(t,n,a,l);a?this._registrations=c:this._overrides.set(s,c);}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(e._workerContextSuite)||this._suiteContexts.set(e._workerContextSuite,Object.create(null)),this._suiteContexts.get(e._workerContextSuite)}parseUserFixtures(t,n,r,o=new Map(this._registrations)){let s=[];Object.entries(n).forEach(([a,l])=>{let c,u,f;Array.isArray(l)&&l.length>=2&&e.isFixtureOptions(l[1])?(f=l[1],c={auto:f.auto??false,scope:f.scope??"test",injected:f.injected??false},u=c.injected?t.injectValue?.(a)??l[0]:l[0]):u=l;let h=o.get(a);h&&c?(h.scope!==c.scope&&s.push(new nt(`The "${a}" fixture was already registered with a "${c.scope}" scope.`)),h.auto!==c.auto&&s.push(new nt(`The "${a}" fixture was already registered as { auto: ${c.auto} }.`))):h?c={auto:h.auto,scope:h.scope,injected:h.injected}:c||(c={auto:false,injected:false,scope:"test"}),c.scope&&!e._fixtureScopes.includes(c.scope)&&s.push(new nt(`The "${a}" fixture has unknown scope "${c.scope}".`)),!r&&c.scope!=="test"&&s.push(new nt(`The "${a}" fixture cannot be defined with a ${c.scope} scope${!f?.scope&&h?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));let d=dn(u)?Qo(u):new Set,p={name:a,value:u,auto:c.auto??false,injected:c.injected??false,scope:c.scope??"test",deps:d,parent:h};dn(u)&&Object.assign(u,{[lr]:new Error("STACK_TRACE_ERROR")}),o.set(a,p),p.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(p.scope="file");});for(let a of o.values())for(let l of a.deps){if(e._builtinFixtures.includes(l))continue;let c=o.get(l);if(!c){s.push(new nt(`The "${a.name}" fixture depends on unknown fixture "${l}".`));continue}if(l===a.name&&!a.parent){s.push(new nt(`The "${a.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(e._fixtureScopes.indexOf(a.scope)>e._fixtureScopes.indexOf(c.scope)){s.push(new nt(`The ${a.scope} "${a.name}" fixture cannot depend on a ${c.scope} fixture "${c.name}".`));continue}}if(s.length===1)throw s[0];if(s.length>1)throw new AggregateError(s,"Cannot resolve user fixtures. See errors for more information.");return o}},Bt=new WeakMap;var Vo=new WeakMap;function mn(e,t){let n=Ve(),r=t?.suite||n.suite||n.file;return async o=>{let s=o||t?.context;if(!s)return t?.suiteHook&&Ym(e,t.suiteHook,t.stackTraceError),e({});let a=t?.fixtures||Hm(s);if(!a)return e(s);let l=a.get(r);if(!l.size)return e(s);let c=[],u=Qo(e);for(let p of l.values())(p.auto||u.has(p.name))&&c.push(p);if(!c.length)return e(s);Bt.has(s)||Bt.set(s,[]);let f=Bt.get(s),h=yl(c,l);if(!h.length)return e(s);if(t?.suiteHook){let p=h.filter(g=>g.scope==="test");if(p.length>0){let g=p.map(E=>`"${E.name}"`).join(", "),m={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},b=new nt(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${g}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${m[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(b.stack=b.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),b}}Vo.has(s)||Vo.set(s,new WeakSet);let d=Vo.get(s);for(let p of h)if(p.scope==="test"){if(d.has(p))continue;d.add(p);let g=await Gm(p,s,f);s[p.name]=g,f.push(()=>{d.delete(p);});}else {let g=await Jm(a,r,p);s[p.name]=g;}return e(s)}}i(mn,"withFixtures");function dn(e){return typeof e=="function"}i(dn,"isFixtureFunction");function Gm(e,t,n){return dn(e.value)?gl(e.value,e.name,t,n):e.value}i(Gm,"resolveTestFixtureValue");var ar=new WeakMap;async function Jm(e,t,n){let r=e.getWorkerContext(),o=e.getFileContext(t.file),s=n.scope==="worker"?r:o;if(!dn(n.value))return s[n.name]=n.value,n.value;if(n.name in s)return s[n.name];if(ar.has(n))return ar.get(n);Bt.has(s)||Bt.set(s,[]);let a=Bt.get(s),l=gl(n.value,n.name,n.scope==="file"?{...r,...o}:s,a).then(c=>(s[n.name]=c,ar.delete(n),c));return ar.set(n,l),l}i(Jm,"resolveScopeFixtureValue");async function gl(e,t,n,r){let o=Jn(),s=lr in e&&e[lr]instanceof Error?e[lr]:void 0,a=false,l=e(n,async c=>{a=true,o.resolve(c);let u=Jn();r.push(async()=>{u.resolve(),await l;}),await u;}).then(()=>{if(!a){let c=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);s?.stack&&(c.stack=c.message+s.stack.replace(s.message,"")),o.reject(c);}}).catch(c=>{if(!a){o.reject(c);return}throw c});return o}i(gl,"resolveFixtureFunction");function yl(e,t,n=new Set,r=[]){return e.forEach(o=>{if(!r.includes(o)){if(!dn(o.value)||!o.deps){r.push(o);return}if(n.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...n].reverse().map(s=>s.name).join(" <- ")}`);n.add(o),yl([...o.deps].map(s=>s===o.name?o.parent:t.get(s)).filter(s=>!!s),t,n,r),r.push(o),n.clear();}}),r}i(yl,"resolveDeps");function Ym(e,t,n){let r=Qo(e,{sourceError:n,suiteHook:t});if(r.size){let o=new Go(`The ${t} hook uses fixtures "${[...r].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
64
+ If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(o.stack=n.stack?.replace(n.message,o.message)),o}}i(Ym,"validateSuiteHook");var Jo=Symbol("$vitest:fixture-props"),Yo=Symbol("$vitest:fixture-prop-names");function hr(e,t){Object.defineProperty(e,Jo,{value:t,enumerable:false});}i(hr,"configureProps");function cr(e,t){return e[Yo]=t,t}i(cr,"memoProps");function Qo(e,{sourceError:t,suiteHook:n}={}){if(Yo in e)return e[Yo];let{index:r=0,original:o=e}=Jo in e?e[Jo]:{},s=gc(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(s)&&(s=s.split(/__async\((?:this|null),/)[1]);let a=s.match(/[^(]*\(([^)]*)/);if(!a)return cr(e,new Set);let l=al(a[1]);if(!l.length)return cr(e,new Set);let c=l[r];if(!c)return cr(e,new Set);if(!(c[0]==="{"&&c.endsWith("}"))){let d=lt(r+1),p=new fr(`The ${d} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${c}".${n?` If you used internal "suite" task as the ${d} argument previously, access it in the ${lt(r+2)} argument instead.`:""}`);throw t&&(p.stack=t.stack?.replace(t.message,p.message)),p}let u=c.slice(1,-1).replace(/\s/g,""),f=al(u).map(d=>d.replace(/:.*|=.*/g,"")),h=f.at(-1);if(h&&h.startsWith("...")){let d=new fr(`Rest parameters are not supported in fixtures, received "${h}".`);throw t&&(d.stack=t.stack?.replace(t.message,d.message)),d}return cr(e,new Set(f))}i(Qo,"getUsedProps");function al(e){let t=[],n=[],r=0;for(let s=0;s<e.length;s++)if(e[s]==="{"||e[s]==="[")n.push(e[s]==="{"?"}":"]");else if(e[s]===n.at(-1))n.pop();else if(!n.length&&e[s]===","){let a=e.substring(r,s).trim();a&&t.push(a),r=s+1;}let o=e.substring(r).trim();return o&&t.push(o),t}i(al,"splitByComma");var Xm;function Ut(){return Xm}i(Ut,"getCurrentTest");var wl=Symbol("kChainableContext");function ht(e){return e?.[wl]}i(ht,"getChainableContext");function mr(e,t,n){function r(s){let a=i(function(...l){return t.apply(s,l)},"chain");Object.assign(a,t),Object.defineProperty(a,wl,{value:{withContext:i(()=>a.bind(s),"withContext"),getFixtures:i(()=>s.fixtures,"getFixtures"),setContext:i((l,c)=>{s[l]=c;},"setContext"),mergeContext:i(l=>{Object.assign(s,l);},"mergeContext")},enumerable:false});for(let l of e)Object.defineProperty(a,l,{get(){return r({...s,[l]:true})}});return a}i(r,"create");let o=r(n??{});return Object.defineProperty(o,"fn",{value:t,enumerable:false}),o}i(mr,"createChainable");function pt(){return ls().config.hookTimeout}i(pt,"getDefaultHookTimeout");var bl=Symbol.for("VITEST_CLEANUP_TIMEOUT"),Tl=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),Sl=Symbol.for("VITEST_AROUND_TIMEOUT"),El=Symbol.for("VITEST_AROUND_STACK_TRACE");function es(e,t=pt()){pe(e,'"beforeAll" callback',["function"]);let n=new Error("STACK_TRACE_ERROR"),r=ht(this);return Ve().on("beforeAll",Object.assign(dt(is("beforeAll",e,r,n),t,true,n),{[bl]:t,[Tl]:n}))}i(es,"beforeAll");function ts(e,t){pe(e,'"afterAll" callback',["function"]);let n=ht(this),r=new Error("STACK_TRACE_ERROR");return Ve().on("afterAll",dt(is("afterAll",e,n,r),t??pt(),true,r))}i(ts,"afterAll");function ns(e,t=pt()){pe(e,'"beforeEach" callback',["function"]);let n=new Error("STACK_TRACE_ERROR"),r=i((o,s)=>mn(e,{suite:s})(o),"wrapper");return Ve().on("beforeEach",Object.assign(dt(r,t??pt(),true,n,yn),{[bl]:t,[Tl]:n}))}i(ns,"beforeEach");function rs(e,t){pe(e,'"afterEach" callback',["function"]);let n=i((r,o)=>mn(e,{suite:o})(r),"wrapper");return Ve().on("afterEach",dt(n,t??pt(),true,new Error("STACK_TRACE_ERROR"),yn))}i(rs,"afterEach");function os(e,t){pe(e,'"aroundAll" callback',["function"]);let n=new Error("STACK_TRACE_ERROR"),r=t??pt(),o=ht(this);return Ve().on("aroundAll",Object.assign(is("aroundAll",e,o,n,1),{[Sl]:r,[El]:n}))}i(os,"aroundAll");function ss(e,t){pe(e,'"aroundEach" callback',["function"]);let n=new Error("STACK_TRACE_ERROR"),r=t??pt(),o=i((s,a,l)=>{let c=i(f=>e(s,f,l),"innerFn");return hr(c,{index:1,original:e}),mn(c,{suite:l})(a)},"wrapper");return Ve().on("aroundEach",Object.assign(o,{[Sl]:r,[El]:n}))}i(ss,"aroundEach");function is(e,t,n,r,o=0){return (...s)=>{let a=s.at(-1),l=s.slice(0,-1),c=i(d=>t(...l,d,a),"wrapper");hr(c,{index:o,original:t});let u=n?.getFixtures(),f=u?.getFileContext(a.file);return mn(c,{suiteHook:e,fixtures:u,context:f,stackTraceError:r})()}}i(is,"withSuiteFixtures");function kl(e,t){return (n,r)=>{pe(n,`"${e}" callback`,["function"]);throw new Error(`Hook ${e}() can only be called inside a test`);}}i(kl,"createTestHook");function pr(e,t){let n=t.split(`
65
+ `).slice(1);for(let r of n){let o=ir(r);if(o&&o.file===e)return o}}i(pr,"findTestFileStackTrace");function Ml(e,t){if(!e.strictTags)return;let n=new Set(e.tags.map(r=>r.name));for(let r of t)if(!n.has(r))throw Cl(e.tags,r)}i(Ml,"validateTags");function Cl(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
66
+ ${e.map(r=>`- ${r.name}${r.description?`: ${r.description}`:""}`).join(`
67
+ `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}i(Cl,"createNoTagsError");function as(e){let t=[e.name],n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}i(as,"getNames");function hn(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}i(hn,"createTaskName");var rt=tg(),cs=fs(function(e,t,n){Ve().test.fn.call(this,bt(e),t,n);}),gn=rt,Pe=cs,be,_l,cl;function Ol(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
68
+ - "vitest" is imported directly without running "vitest" command
69
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
70
+ - "vitest" is imported inside Vite / Vitest config file
71
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
72
+ `)}i(Ol,"assert");function ls(){return Ol(be,"the runner"),be}i(ls,"getRunner");function Ve(){let e=Ne.currentSuite||_l;return Ol(e,"the current suite"),e}i(Ve,"getCurrentSuite");function Zm(){return {beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}i(Zm,"createSuiteHooks");var ll=Number.POSITIVE_INFINITY;function qt(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},r;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e;}else typeof t=="function"&&(r=t);return {options:n,handler:r}}i(qt,"parseArguments");function Qm(e,t=()=>{},n,r,o){let s=[],a;h();let l=i(function(g="",m={}){let b=Ne.currentSuite?.suite,M=(b??Ne.currentSuite?.file)?.tags||[],A=Ao([...M,...ln(m.tags)]),C=A.map(W=>{let U=be.config.tags?.find(ee=>ee.name===W);if(!U&&be.config.strictTags)throw Cl(be.config.tags,W);return U}).filter(W=>W!=null).sort((W,U)=>(U.priority??ll)-(W.priority??ll)).reduce((W,U)=>{let{name:ee,description:Me,priority:fe,meta:me,...je}=U;return Object.assign(W,je),me&&(W.meta=Object.assign(W.meta??Object.create(null),me)),W},{}),O=m.meta;m={...C,...m};let N=m.timeout??be.config.testTimeout,_=b?.meta,q=C.meta,Q=Object.create(null);q&&Object.assign(Q,q),_&&Object.assign(Q,_),O&&Object.assign(Q,O);let R={id:"",name:g,fullName:hn([b?.fullName??Ne.currentSuite?.file?.fullName,g]),fullTestName:hn([b?.fullTestName,g]),suite:b,each:m.each,fails:m.fails,context:void 0,type:"test",file:b?.file??Ne.currentSuite?.file,timeout:N,retry:m.retry??be.config.retry,repeats:m.repeats,mode:m.only?"only":m.skip?"skip":m.todo?"todo":"run",meta:Q,annotations:[],artifacts:[],tags:A},V=m.handler;R.mode==="run"&&!V&&(R.mode="todo"),(m.concurrent||!m.sequential&&be.config.sequence.concurrent)&&(R.concurrent=true),R.shuffle=o?.shuffle;let Y=ag(R,be);Object.defineProperty(R,"context",{value:Y,enumerable:false}),Km(Y,m.fixtures??new pn);let Te=Error.stackTraceLimit;Error.stackTraceLimit=10;let le=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=Te,V&&dl(R,dt(sg(eg(mn(V,{context:Y}),R),R.context.signal),N,false,le,(W,U)=>yn([Y],U))),be.config.includeTaskLocation){let W=le.stack,U=pr(cl,W);U&&(R.location={line:U.line,column:U.column});}return s.push(R),R},"task"),c=fs(function(g,m,b){let{options:E,handler:M}=qt(m,b);typeof o=="object"&&(E=Object.assign({},o,E));let A=this.concurrent??(!this.sequential&&E?.concurrent);E.concurrent!=null&&A!=null&&(E.concurrent=A);let C=this.sequential??(!this.concurrent&&E?.sequential);E.sequential!=null&&C!=null&&(E.sequential=C);let O=l(bt(g),{...this,...E,handler:M});O.type="test";}),u={type:"collector",name:e,mode:n,suite:a,options:o,test:c,file:a.file,tasks:s,collect:p,task:l,clear:d,on:f};function f(g,...m){Zo(a)[g].push(...m);}i(f,"addHook");function h(g){typeof o=="number"&&(o={timeout:o});let m=Ne.currentSuite?.suite,b=m??Ne.currentSuite?.file,E=ln(o?.tags);if(Ml(be.config,E),a={id:"",type:"suite",name:e,fullName:hn([m?.fullName??Ne.currentSuite?.file?.fullName,e]),fullTestName:hn([m?.fullTestName,e]),suite:m,mode:n,each:r,file:m?.file??Ne.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:Ao([...b?.tags||[],...E])},be);ml(a,Zm());}i(h,"initSuite");function d(){s.length=0,h();}i(d,"clear");async function p(g){if(!g)throw new TypeError("File is required to collect tasks.");t&&await og(u,()=>t(c));let m=[];for(let b of s)m.push(b.type==="collector"?await b.collect(g):b);return a.tasks=m,a}return i(p,"collect"),rg(u),u}i(Qm,"createSuiteCollector");function eg(e,t){return(async(...n)=>{let r=await e(...n);if(t.promises){let s=(await Promise.allSettled(t.promises)).map(a=>a.status==="rejected"?a.reason:void 0).filter(Boolean);if(s.length)throw s}return r})}i(eg,"withAwaitAsyncAssertions");function tg(){function e(t,n,r){let o=Ne.currentSuite||_l,{options:s,handler:a}=qt(n,r),l=s.concurrent||this.concurrent||s.sequential===false,c=s.sequential||this.sequential||s.concurrent===false,{meta:u,...f}=o?.options||{};s={...f,...s};let h=this.shuffle??s.shuffle??o?.options?.shuffle??be?.config.sequence.shuffle;h!=null&&(s.shuffle=h);let d=this.only??s.only?"only":this.skip??s.skip?"skip":this.todo??s.todo?"todo":"run";d==="run"&&!a&&(d="todo");let p=l||s.concurrent&&!c,g=c||s.sequential&&!l;return p!=null&&(s.concurrent=p&&!g),g!=null&&(s.sequential=g&&!p),u&&(s.meta=Object.assign(Object.create(null),u,s.meta)),Qm(bt(t),a,d,this.each,s)}return i(e,"suiteFn"),e.each=function(t,...n){let r=ht(this),o=r.withContext();return r.setContext("each",true),Array.isArray(t)&&n.length&&(t=dr(t,n)),(s,a,l)=>{let c=bt(s),u=t.every(Array.isArray),{options:f,handler:h}=qt(a,l),d=typeof a=="function";t.forEach((p,g)=>{let m=Array.isArray(p)?p:[p];d?u?o(ot(c,m,g),h?()=>h(...m):void 0,f.timeout):o(ot(c,m,g),h?()=>h(p):void 0,f.timeout):u?o(ot(c,m,g),f,h?()=>h(...m):void 0):o(ot(c,m,g),f,h?()=>h(p):void 0);}),r.setContext("each",void 0);}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=dr(t,n)),(r,o,s)=>{let a=bt(r),{options:l,handler:c}=qt(o,s);t.forEach((u,f)=>{rt(ot(a,ln(u),f),l,c?()=>c(u):void 0);});}},e.skipIf=t=>t?rt.skip:rt,e.runIf=t=>t?rt:rt.skip,mr(["concurrent","sequential","shuffle","skip","only","todo"],e)}i(tg,"createSuite");function us(e){let t=e;t.each=function(o,...s){let a=ht(this),l=a.withContext();return a.setContext("each",true),Array.isArray(o)&&s.length&&(o=dr(o,s)),(c,u,f)=>{let h=bt(c),d=o.every(Array.isArray),{options:p,handler:g}=qt(u,f),m=typeof u=="function";o.forEach((b,E)=>{let M=Array.isArray(b)?b:[b];m?d?l(ot(h,M,E),g?()=>g(...M):void 0,p.timeout):l(ot(h,M,E),g?()=>g(b):void 0,p.timeout):d?l(ot(h,M,E),p,g?()=>g(...M):void 0):l(ot(h,M,E),p,g?()=>g(b):void 0);}),a.setContext("each",void 0);}},t.for=function(o,...s){let l=ht(this).withContext();return Array.isArray(o)&&s.length&&(o=dr(o,s)),(c,u,f)=>{let h=bt(c),{options:d,handler:p}=qt(u,f);o.forEach((g,m)=>{let b=p?E=>p(g,E):void 0;b&&hr(b,{index:1,original:p}),l(ot(h,ln(g),m),d,b);});}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function n(o,s,a){if(typeof o!="string")return o;let l=o,c,u;if(a!==void 0?(c=s,u=a):s!==null&&typeof s=="object"&&!Array.isArray(s)&&pn.isFixtureOptions(s)?(c=s,u={}):(c=void 0,u=s),typeof u=="function"){let f=u,h=i(async(d,p)=>{let g,b=await f(d,{onCleanup:i(E=>{if(g!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");g=E;},"onCleanup")});await p(b),g&&await g();},"fixture");return hr(h,{original:f}),c?{[l]:[h,c]}:{[l]:h}}return c?{[l]:[u,c]}:{[l]:u}}return i(n,"parseBuilderFixtures"),t.override=function(o,s,a){let l=n(o,s,a);return ht(this).getFixtures().override(be,l),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,s,a){let l=n(o,s,a),c=ht(this).getFixtures().extend(be,l),u=fs(function(f,h,d){e.call(this,bt(f),h,d);});return ht(u).mergeContext({fixtures:c}),u},t.describe=rt,t.suite=rt,t.beforeEach=ns,t.afterEach=rs,t.beforeAll=es,t.afterAll=ts,t.aroundEach=ss,t.aroundAll=os,mr(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new pn})}i(us,"createTaskCollector");function fs(e){return us(e)}i(fs,"createTest");function bt(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}i(bt,"formatName");function ot(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));let r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((u,f)=>{if(bc(t[f])||Object.is(t[f],-0)){let h=0;e=e.replace(/%f/g,d=>(h++,h===f+1?"-%f":d));}});let o=Le(t[0]);function s(c){return c.replace(/\$([$\w.]+)/g,(u,f)=>{let h=/^\d+$/.test(f);if(!o&&!h)return `$${f}`;let d=h?Io(t,f):void 0,p=o?Io(t[0],f,d):d;return pc(p,{truncate:be?.config?.chaiConfig?.truncateThreshold})})}i(s,"formatAttribute");let a="",l=0;return ng(e,xo,c=>{l<r?a+=fc(c[0],t[l++]):a+=c[0];},c=>{a+=s(c);}),a}i(ot,"formatTitle");function ng(e,t,n,r){let o=0;for(let s of e.matchAll(t))o<s.index&&r(e.slice(o,s.index)),n(s),o=s.index+s[0].length;o<e.length&&r(e.slice(o));}i(ng,"handleRegexMatch");function dr(e,t){let n=e.join("").trim().replace(/ /g,"").split(`
73
+ `).map(o=>o.split("|"))[0],r=[];for(let o=0;o<Math.floor(t.length/n.length);o++){let s={};for(let a=0;a<n.length;a++)s[n[a]]=t[o*n.length+a];r.push(s);}return r}i(dr,"formatTemplateString");var ul=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Ne={currentSuite:null};function rg(e){Ne.currentSuite?.tasks.push(e);}i(rg,"collectTask");async function og(e,t){let n=Ne.currentSuite;Ne.currentSuite=e,await t(),Ne.currentSuite=n;}i(og,"runWithSuite");function dt(e,t,n=false,r,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;let{setTimeout:s,clearTimeout:a}=ft();return i((function(...c){let u=ul(),f=ls();return f._currentTaskStartTime=u,f._currentTaskTimeout=t,new Promise((h,d)=>{let p=s(()=>{a(p),g();},t);p.unref?.();function g(){let E=cg(n,t,r);o?.(c,E),d(E);}i(g,"rejectTimeoutError");function m(E){if(f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,a(p),ul()-u>=t){g();return}h(E);}i(m,"resolve");function b(E){f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,a(p),d(E);}i(b,"reject");try{let E=e(...c);typeof E=="object"&&E!=null&&typeof E.then=="function"?E.then(m,b):m(E);}catch(E){b(E);}})}),"runWithTimeout")}i(dt,"withTimeout");function sg(e,t){return i((function(...r){return new Promise((o,s)=>{t.addEventListener("abort",()=>s(t.reason));try{let a=e(...r);typeof a=="object"&&a!=null&&typeof a.then=="function"?a.then(o,s):o(a);}catch(a){s(a);}})}),"runWithCancel")}i(sg,"withCancel");var Xo=new WeakMap;function yn([e],t){e&&ig(e,t);}i(yn,"abortIfTimeout");function ig(e,t){Xo.get(e)?.abort(t);}i(ig,"abortContextSignal");function ag(e,t){let n=i(function(){throw new Error("done() callback is deprecated, use promise instead")},"context"),r=Xo.get(n);return r||(r=new AbortController,Xo.set(n,r)),n.signal=r.signal,n.task=e,n.skip=(o,s)=>{if(o!==false)throw e.result??={state:"skip"},e.result.pending=true,new Ho("test is skipped; abort execution",e,typeof o=="string"?o:s)},n.annotate=((o,s,a)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let l={message:o,type:typeof s=="object"||s===void 0?"notice":s},c=typeof s=="object"?s:a;return c&&(l.attachment=c,$l(l.attachment)),dg(e,hs(e,{type:"internal:annotation",annotation:l}).then(async({annotation:u})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await Al(t);let f=await t.onTestAnnotate(e,u);return e.annotations.push(f),f}))}),n.onTestFailed=(o,s)=>{e.onFailed||=[],e.onFailed.push(dt(o,s??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(a,l)=>r.abort(l)));},n.onTestFinished=(o,s)=>{e.onFinished||=[],e.onFinished.push(dt(o,s??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(a,l)=>r.abort(l)));},t.extendTaskContext?.(n)||n}i(ag,"createTestContext");function cg(e,t,n){let r=`${e?"Hook":"Test"} timed out in ${t}ms.
74
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(r);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}i(cg,"makeTimeoutError");globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;var lg=Date.now,{clearTimeout:ug,setTimeout:fg}=ft();var Ko=new Map,fl=[],ur=[];function Il(e){if(Ko.size){let t=Array.from(Ko).map(([r,o])=>[r,o[0],o[1]]),n=e.onTaskUpdate?.(t,fl);n&&(ur.push(n),n.then(()=>ur.splice(ur.indexOf(n),1),()=>{})),fl.length=0,Ko.clear();}}i(Il,"sendTasksUpdate");async function Al(e){Il(e),await Promise.all(ur);}i(Al,"finishSendTasksUpdate");function hg(e,t){let n=0,r;return i(function o(...s){let a=lg();if(a-n>t)return n=a,ug(r),r=void 0,e.apply(this,s);r??=fg(()=>o.bind(this)(...s),t);},"call")}i(hg,"throttle");hg(Il,100);async function hs(e,t){let n=ls(),r=pr(e.file.filepath,new Error("STACK_TRACE").stack);if(r&&(t.location={file:r.file,line:r.line,column:r.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(let s of t.attachments)$l(s);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await Al(n);let o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}i(hs,"recordArtifact");var Be=[];for(let e=65;e<91;e++)Be.push(String.fromCharCode(e));for(let e=97;e<123;e++)Be.push(String.fromCharCode(e));for(let e=0;e<10;e++)Be.push(e.toString(10));Be.push("+","/");function pg(e){let t="",n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let o=(e[r]&252)>>2,s=(e[r]&3)<<4;t+=Be[o],t+=Be[s],t+="==";}else if(n===r+2){let o=(e[r]&252)>>2,s=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2;t+=Be[o],t+=Be[s],t+=Be[a],t+="=";}else {let o=(e[r]&252)>>2,s=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2|(e[r+2]&192)>>6,l=e[r+2]&63;t+=Be[o],t+=Be[s],t+=Be[a],t+=Be[l];}return t}i(pg,"encodeUint8Array");function dg(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1);}),e.promises||(e.promises=[]),e.promises.push(t),t}i(dg,"recordAsyncOperation");function $l(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=pg(e.body));}i($l,"manageArtifactAttachment");var Tg="__vitest_worker__";function wn(){let e=globalThis[Tg];if(!e)throw new Error(`Vitest failed to access its internal state.
75
+
76
+ One of the following is possible:
77
+ - "vitest" is imported directly without running "vitest" command
78
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
79
+ - "vitest" is imported inside Vite / Vitest config file
80
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
81
+ `);return e}i(wn,"getWorkerState");function ps(){return typeof process<"u"&&!!process.send}i(ps,"isChildProcess");function Nl(e,t=false){let n=[/\/vitest\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.idToModuleMap.forEach((r,o)=>{n.some(s=>s.test(o))||(r.promise=void 0,r.exports=void 0,r.evaluated=false,r.importers.clear());});}i(Nl,"resetModules");function Sg(){let{setTimeout:e}=ft();return new Promise(t=>e(t,0))}i(Sg,"waitNextTick");async function ds(){await Sg();let e=wn(),t=[],n=e.resolvingModules.size;for(let[r,o]of e.evaluatedModules.idToModuleMap)o.promise&&!o.evaluated&&t.push(o.promise);!t.length&&!n||(await Promise.allSettled(t),await ds());}i(ds,"waitForImportsToResolve");function mt(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction===true}i(mt,"isMockFunction");var ms=new Set,gs=new Set,Pl=new WeakMap;function ys(e={}){let{originalImplementation:t,restore:n,mockImplementation:r,resetToMockImplementation:o,resetToMockName:s}=e;n&&ms.add(n);let a=Ng(t),l=Pg(),c=vg({config:a,state:l,...e}),u=(r||t)?.length??0;return Object.defineProperty(c,"length",{writable:true,enumerable:false,value:u,configurable:true}),s&&(a.mockName=c.name||"vi.fn()"),Pl.set(c,a),gs.add(c),c._isMockFunction=true,c.getMockImplementation=()=>a.onceMockImplementations[0]||a.mockImplementation,Object.defineProperty(c,"mock",{configurable:false,enumerable:true,writable:false,value:l}),c.mockImplementation=i(function(h){return a.mockImplementation=h,c},"mockImplementation"),c.mockImplementationOnce=i(function(h){return a.onceMockImplementations.push(h),c},"mockImplementationOnce"),c.withImplementation=i(function(h,d){let p=a.mockImplementation,g=a.onceMockImplementations,m=i(()=>{a.mockImplementation=p,a.onceMockImplementations=g;},"reset");a.mockImplementation=h,a.onceMockImplementations=[];let b=d();return typeof b=="object"&&typeof b?.then=="function"?b.then(()=>(m(),c)):(m(),c)},"withImplementation"),c.mockReturnThis=i(function(){return c.mockImplementation(function(){return this})},"mockReturnThis"),c.mockReturnValue=i(function(h){return c.mockImplementation(function(){return new.target&&zt("mockReturnValue"),h})},"mockReturnValue"),c.mockReturnValueOnce=i(function(h){return c.mockImplementationOnce(function(){return new.target&&zt("mockReturnValueOnce"),h})},"mockReturnValueOnce"),c.mockThrow=i(function(h){return c.mockImplementation(function(){throw h})},"mockThrow"),c.mockThrowOnce=i(function(h){return c.mockImplementationOnce(function(){throw h})},"mockThrowOnce"),c.mockResolvedValue=i(function(h){return c.mockImplementation(function(){return new.target&&zt("mockResolvedValue"),Promise.resolve(h)})},"mockResolvedValue"),c.mockResolvedValueOnce=i(function(h){return c.mockImplementationOnce(function(){return new.target&&zt("mockResolvedValueOnce"),Promise.resolve(h)})},"mockResolvedValueOnce"),c.mockRejectedValue=i(function(h){return c.mockImplementation(function(){return new.target&&zt("mockRejectedValue"),Promise.reject(h)})},"mockRejectedValue"),c.mockRejectedValueOnce=i(function(h){return c.mockImplementationOnce(function(){return new.target&&zt("mockRejectedValueOnce"),Promise.reject(h)})},"mockRejectedValueOnce"),c.mockClear=i(function(){return l.calls=[],l.contexts=[],l.instances=[],l.invocationCallOrder=[],l.results=[],l.settledResults=[],c},"mockClear"),c.mockReset=i(function(){return c.mockClear(),a.mockImplementation=o?r:void 0,a.mockName=s&&c.name||"vi.fn()",a.onceMockImplementations=[],c},"mockReset"),c.mockRestore=i(function(){return c.mockReset(),n?.()},"mockRestore"),c.mockName=i(function(h){return typeof h=="string"&&(a.mockName=h),c},"mockName"),c.getMockName=i(function(){return a.mockName||"vi.fn()"},"getMockName"),Symbol.dispose&&(c[Symbol.dispose]=()=>c.mockRestore()),r&&c.mockImplementation(r),c}i(ys,"createMockInstance");function Rl(e){return e!=null&&mt(e)?e:ys({mockImplementation:e,resetToMockImplementation:true})}i(Rl,"fn");function jl(e,t,n){gr(e!=null,"The vi.spyOn() function could not find an object to spy upon. The first argument must be defined."),gr(typeof e=="object"||typeof e=="function","Vitest cannot spy on a primitive value.");let[r,o]=Fl(e,t)||[];gr(o||t in e,`The property "${String(t)}" is not defined on the ${typeof e}.`);let s=n||"value",a=false;s==="value"&&o&&o.value==null&&o.get&&(s="get",a=true);let l;o?(l=o[s],l==null&&s==="value"&&(l=e[t])):s!=="value"?l=i(()=>e[t],"original"):l=e[t];let c=a&&l?l():l,u=typeof c;if(gr(u==="function"||s!=="value"&&l==null,`vi.spyOn() can only spy on a function. Received ${u}.`),mt(c))return c;let f=i(p=>{let{value:g,...m}=o||{configurable:true,writable:true};s!=="value"&&delete m.writable,m[s]=p,Object.defineProperty(e,t,m);},"reassign"),d=ys({restore:i(()=>{r!==e?Reflect.deleteProperty(e,t):o&&!l?Object.defineProperty(e,t,o):f(l);},"restore"),originalImplementation:c,resetToMockName:true});try{f(a?()=>d:d);}catch(p){throw p instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(p.message.includes("Cannot redefine property")||p.message.includes("Cannot replace module namespace")||p.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(t)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:p}):p}return d}i(jl,"spyOn");function Fl(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return [e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return [r,o];r=Object.getPrototypeOf(r);}}i(Fl,"getDescriptor");function gr(e,t){if(!e)throw new Error(t)}i(gr,"assert");var Eg=1;function vg({state:e,config:t,name:n,prototypeState:r,prototypeConfig:o,keepMembersImplementation:s,mockImplementation:a,prototypeMembers:l=[]}){let c=t.mockOriginal,u=a,f=n||c?.name||"Mock",h={[f]:(function(...g){xg(g,e,r),kg(Eg++,e,r);let m={type:"incomplete",value:void 0},b={type:"incomplete",value:void 0};Mg(m,e,r),Cg(b,e,r);let E=new.target?void 0:this,[M,A]=_g(E,e,r),[C,O]=Og(E,e,r),N=t.onceMockImplementations.shift()||t.mockImplementation||o?.onceMockImplementations.shift()||o?.mockImplementation||c||function(){},_,q,Q=false;try{if(new.target){_=Reflect.construct(N,g,new.target);for(let R of l){let V=_[R];if(V!==d.prototype[R])continue;let Y=mt(V),Te=Y?V.mock:void 0,le=Y?Pl.get(V):void 0;_[R]=ys({originalImplementation:s?le?.mockOriginal:void 0,prototypeState:Te,prototypeConfig:le,keepMembersImplementation:s});}}else _=N.apply(this,g);}catch(R){throw q=R,Q=true,R instanceof TypeError&&R.message.includes("is not a constructor")&&console.warn(`[vitest] The ${h[f].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`),R}finally{Q?(m.type="throw",m.value=q,b.type="rejected",b.value=q):(m.type="return",m.value=_,new.target&&(e.contexts[C-1]=_,e.instances[M-1]=_,O!=null&&r&&(r.contexts[O-1]=_),A!=null&&r&&(r.instances[A-1]=_)),_ instanceof Promise?_.then(R=>{b.type="fulfilled",b.value=R;},R=>{b.type="rejected",b.value=R;}):(b.type="fulfilled",b.value=_));}return _})},d=h[f],p=c||u;return p&&Ig(d,p),d}i(vg,"createMock");function xg(e,t,n){t.calls.push(e),n?.calls.push(e);}i(xg,"registerCalls");function kg(e,t,n){t.invocationCallOrder.push(e),n?.invocationCallOrder.push(e);}i(kg,"registerInvocationOrder");function Mg(e,t,n){t.results.push(e),n?.results.push(e);}i(Mg,"registerResult");function Cg(e,t,n){t.settledResults.push(e),n?.settledResults.push(e);}i(Cg,"registerSettledResult");function _g(e,t,n){let r=t.instances.push(e),o=n?.instances.push(e);return [r,o]}i(_g,"registerInstance");function Og(e,t,n){let r=t.contexts.push(e),o=n?.contexts.push(e);return [r,o]}i(Og,"registerContext");function Ig(e,t){let{properties:n,descriptors:r}=$g(t);for(let o of n){let s=r[o];Fl(e,o)||Object.defineProperty(e,o,s);}}i(Ig,"copyOriginalStaticProperties");var Ag=new Set(["length","name","prototype",Symbol.for("nodejs.util.promisify.custom")]);function $g(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)n[o]||Ag.has(o)||(t.add(o),n[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e);}return {properties:t,descriptors:n}}i($g,"getAllProperties");function Ng(e){return {mockImplementation:void 0,mockOriginal:e,mockName:"vi.fn()",onceMockImplementations:[]}}i(Ng,"getDefaultConfig");function Pg(){let e={calls:[],contexts:[],instances:[],invocationCallOrder:[],settledResults:[],results:[],get lastCall(){return e.calls.at(-1)}};return e}i(Pg,"getDefaultState");function Dl(){for(let e of ms)e();ms.clear();}i(Dl,"restoreAllMocks");function Ll(){gs.forEach(e=>e.mockClear());}i(Ll,"clearAllMocks");function Bl(){gs.forEach(e=>e.mockReset());}i(Bl,"resetAllMocks");function zt(e){throw new TypeError(`Cannot use \`${e}\` when called with \`new\`. Use \`mockImplementation\` with a \`class\` keyword instead. See https://vitest.dev/api/mock#class-support for more information.`)}i(zt,"throwConstructorError");var oe={};ha(oe,{Assertion:()=>w,AssertionError:()=>G,Should:()=>Vu,assert:()=>y,config:()=>ve,expect:()=>En,should:()=>Wu,use:()=>_n,util:()=>Ke});var Rs=Object.defineProperty,Rg=i((e,t,n)=>t in e?Rs(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,"__defNormalProp"),x=i((e,t)=>Rs(e,"name",{value:t,configurable:true}),"__name"),js=i((e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:true});},"__export"),Yl=i((e,t,n)=>Rg(e,typeof t!="symbol"?t+"":t,n),"__publicField"),Ke={};js(Ke,{addChainableMethod:i(()=>Js,"addChainableMethod"),addLengthGuard:i(()=>kn,"addLengthGuard"),addMethod:i(()=>Ks,"addMethod"),addProperty:i(()=>Vs,"addProperty"),checkError:i(()=>qe,"checkError"),compareByInspect:i(()=>br,"compareByInspect"),eql:i(()=>ku,"eql"),events:i(()=>Mr,"events"),expectTypes:i(()=>su,"expectTypes"),flag:i(()=>z,"flag"),getActual:i(()=>xr,"getActual"),getMessage:i(()=>Ls,"getMessage"),getName:i(()=>Cr,"getName"),getOperator:i(()=>Qs,"getOperator"),getOwnEnumerableProperties:i(()=>Zs,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:i(()=>Xs,"getOwnEnumerablePropertySymbols"),getPathInfo:i(()=>zs,"getPathInfo"),hasProperty:i(()=>kr,"hasProperty"),inspect:i(()=>H,"inspect"),isNaN:i(()=>Tr,"isNaN"),isNumeric:i(()=>ge,"isNumeric"),isProxyEnabled:i(()=>xn,"isProxyEnabled"),isRegExp:i(()=>Sr,"isRegExp"),objDisplay:i(()=>Ot,"objDisplay"),overwriteChainableMethod:i(()=>Ys,"overwriteChainableMethod"),overwriteMethod:i(()=>Gs,"overwriteMethod"),overwriteProperty:i(()=>Hs,"overwriteProperty"),proxify:i(()=>Kt,"proxify"),test:i(()=>Fs,"test"),transferFlags:i(()=>Xe,"transferFlags"),type:i(()=>re,"type")});var qe={};js(qe,{compatibleConstructor:i(()=>Ql,"compatibleConstructor"),compatibleInstance:i(()=>Zl,"compatibleInstance"),compatibleMessage:i(()=>eu,"compatibleMessage"),getConstructorName:i(()=>tu,"getConstructorName"),getMessage:i(()=>nu,"getMessage")});function vr(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}i(vr,"isErrorInstance");x(vr,"isErrorInstance");function Xl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(Xl,"isRegExp");x(Xl,"isRegExp");function Zl(e,t){return vr(t)&&e===t}i(Zl,"compatibleInstance");x(Zl,"compatibleInstance");function Ql(e,t){return vr(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:false}i(Ql,"compatibleConstructor");x(Ql,"compatibleConstructor");function eu(e,t){let n=typeof e=="string"?e:e.message;return Xl(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:false}i(eu,"compatibleMessage");x(eu,"compatibleMessage");function tu(e){let t=e;return vr(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}i(tu,"getConstructorName");x(tu,"getConstructorName");function nu(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}i(nu,"getMessage");x(nu,"getMessage");function z(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)r[t]=n;else return r[t]}i(z,"flag");x(z,"flag");function Fs(e,t){let n=z(e,"negate"),r=t[0];return n?!r:r}i(Fs,"test");x(Fs,"test");function re(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}i(re,"type");x(re,"type");var jg="captureStackTrace"in Error,ru=class ou extends Error{static{i(this,"_AssertionError");}constructor(t="Unspecified AssertionError",n,r){super(t),Yl(this,"message"),this.message=t,jg&&Error.captureStackTrace(this,r||ou);for(let o in n)o in this||(this[o]=n[o]);}get name(){return "AssertionError"}get ok(){return false}toJSON(t){return {...this,name:this.name,message:this.message,ok:false,stack:t!==false?this.stack:void 0}}};x(ru,"AssertionError");var G=ru;function su(e,t){let n=z(e,"message"),r=z(e,"ssfi");n=n?n+": ":"",e=z(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let o=t.map(function(a,l){let c=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return (t.length>1&&l===t.length-1?"or ":"")+c+" "+a}).join(", "),s=re(e).toLowerCase();if(!t.some(function(a){return s===a}))throw new G(n+"object tested must be "+o+", but "+s+" given",void 0,r)}i(su,"expectTypes");x(su,"expectTypes");function xr(e,t){return t.length>4?t[4]:e._obj}i(xr,"getActual");x(xr,"getActual");var ql={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Fg={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Wt="\u2026";function iu(e,t){let n=ql[Fg[t]]||ql[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}i(iu,"colorise");x(iu,"colorise");function au({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:s=1/0,breakLength:a=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(s),breakLength:Number(a),truncate:Number(c),seen:l,inspect:f,stylize:u};return h.colors&&(h.stylize=iu),h}i(au,"normaliseOptions");x(au,"normaliseOptions");function cu(e){return e>="\uD800"&&e<="\uDBFF"}i(cu,"isHighSurrogate");x(cu,"isHighSurrogate");function gt(e,t,n=Wt){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let s=t-r;return s>0&&cu(e[s-1])&&(s=s-1),`${e.slice(0,s)}${n}`}return e}i(gt,"truncate");x(gt,"truncate");function He(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let s=t.truncate,a="",l="",c="";for(let u=0;u<o;u+=1){let f=u+1===e.length,h=u+2===e.length;c=`${Wt}(${e.length-u})`;let d=e[u];t.truncate=s-a.length-(f?0:r.length);let p=l||n(d,t)+(f?"":r),g=a.length+p.length,m=g+c.length;if(f&&g>s&&a.length+c.length<=s||!f&&!h&&m>s||(l=f?"":n(e[u+1],t)+(h?"":r),!f&&h&&m>s&&g+l.length>s))break;if(a+=p,!f&&!h&&g+l.length>=s){c=`${Wt}(${e.length-u-1})`;break}c="";}return `${a}${c}`}i(He,"inspectList");x(He,"inspectList");function lu(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}i(lu,"quoteComplexKey");x(lu,"quoteComplexKey");function Vt([e,t],n){return n.truncate-=2,typeof e=="string"?e=lu(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}i(Vt,"inspectProperty");x(Vt,"inspectProperty");function uu(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=He(e,t);t.truncate-=r.length;let o="";return n.length&&(o=He(n.map(s=>[s,e[s]]),t,Vt)),`[ ${r}${o?`, ${o}`:""} ]`}i(uu,"inspectArray");x(uu,"inspectArray");var Dg=x(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function st(e,t){let n=Dg(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let a=0;a<e.length;a++){let l=`${t.stylize(gt(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){o+=`${Wt}(${e.length-e[a]+1})`;break}o+=l;}let s="";return r.length&&(s=He(r.map(a=>[a,e[a]]),t,Vt)),`${n}[ ${o}${s?`, ${s}`:""} ]`}i(st,"inspectTypedArray");x(st,"inspectTypedArray");function fu(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${gt(r[1],t.truncate-o.length-1)}`,"date")}i(fu,"inspectDate");x(fu,"inspectDate");function Ss(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${gt(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}i(Ss,"inspectFunction");x(Ss,"inspectFunction");function hu([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}i(hu,"inspectMapEntry");x(hu,"inspectMapEntry");function pu(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}i(pu,"mapToEntries");x(pu,"mapToEntries");function du(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${He(pu(e),t,hu)} }`)}i(du,"inspectMap");x(du,"inspectMap");var Lg=Number.isNaN||(e=>e!==e);function Es(e,t){return Lg(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(gt(String(e),t.truncate),"number")}i(Es,"inspectNumber");x(Es,"inspectNumber");function vs(e,t){let n=gt(e.toString(),t.truncate-1);return n!==Wt&&(n+="n"),t.stylize(n,"bigint")}i(vs,"inspectBigInt");x(vs,"inspectBigInt");function mu(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${gt(o,r)}/${n}`,"regexp")}i(mu,"inspectRegExp");x(mu,"inspectRegExp");function gu(e){let t=[];return e.forEach(n=>{t.push(n);}),t}i(gu,"arrayFromSet");x(gu,"arrayFromSet");function yu(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${He(gu(e),t)} }`)}i(yu,"inspectSet");x(yu,"inspectSet");var Ul=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Bg={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},qg=16;function wu(e){return Bg[e]||`\\u${`0000${e.charCodeAt(0).toString(qg)}`.slice(-4)}`}i(wu,"escape");x(wu,"escape");function xs(e,t){return Ul.test(e)&&(e=e.replace(Ul,wu)),t.stylize(`'${gt(e,t.truncate-2)}'`,"string")}i(xs,"inspectString");x(xs,"inspectString");function ks(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(ks,"inspectSymbol");x(ks,"inspectSymbol");var zg=x(()=>"Promise{\u2026}","getPromiseValue"),Wg=zg;function Tn(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=He(n.map(l=>[l,e[l]]),t,Vt),s=He(r.map(l=>[l,e[l]]),t,Vt);t.seen.pop();let a="";return o&&s&&(a=", "),`{ ${o}${a}${s} }`}i(Tn,"inspectObject");x(Tn,"inspectObject");var ws=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function bu(e,t){let n="";return ws&&ws in e&&(n=e[ws]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Tn(e,t)}`}i(bu,"inspectClass");x(bu,"inspectClass");function Tu(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${He(e,t)} ]`)}i(Tu,"inspectArguments");x(Tu,"inspectArguments");var Vg=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Su(e,t){let n=Object.getOwnPropertyNames(e).filter(a=>Vg.indexOf(a)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=gt(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let s=He(n.map(a=>[a,e[a]]),t,Vt);return `${r}${o}${s?` { ${s} }`:""}`}i(Su,"inspectObject2");x(Su,"inspectObject");function Eu([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}i(Eu,"inspectAttribute");x(Eu,"inspectAttribute");function yr(e,t){return He(e,t,vu,`
82
+ `)}i(yr,"inspectNodeCollection");x(yr,"inspectNodeCollection");function vu(e,t){switch(e.nodeType){case 1:return Ds(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}i(vu,"inspectNode");x(vu,"inspectNode");function Ds(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),s=t.stylize(">","special"),a=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let l="";n.length>0&&(l+=" ",l+=He(n.map(f=>[f,e.getAttribute(f)]),t,Eu," ")),t.truncate-=l.length;let c=t.truncate,u=yr(e.children,t);return u&&u.length>c&&(u=`${Wt}(${e.children.length})`),`${o}${l}${s}${u}${a}`}i(Ds,"inspectHTML");x(Ds,"inspectHTML");var Kg=typeof Symbol=="function"&&typeof Symbol.for=="function",bs=Kg?Symbol.for("chai/inspect"):"@@chai/inspect",Ts=Symbol.for("nodejs.util.inspect.custom"),zl=new WeakMap,Wl={},Vl={undefined:x((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:x((e,t)=>t.stylize("null","null"),"null"),boolean:x((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:x((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Es,Number:Es,bigint:vs,BigInt:vs,string:xs,String:xs,function:Ss,Function:Ss,symbol:ks,Symbol:ks,Array:uu,Date:fu,Map:du,Set:yu,RegExp:mu,Promise:Wg,WeakSet:x((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:x((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Tu,Int8Array:st,Uint8Array:st,Uint8ClampedArray:st,Int16Array:st,Uint16Array:st,Int32Array:st,Uint32Array:st,Float32Array:st,Float64Array:st,Generator:x(()=>"","Generator"),DataView:x(()=>"","DataView"),ArrayBuffer:x(()=>"","ArrayBuffer"),Error:Su,HTMLCollection:yr,NodeList:yr},Hg=x((e,t,n,r)=>bs in e&&typeof e[bs]=="function"?e[bs](t):Ts in e&&typeof e[Ts]=="function"?e[Ts](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&zl.has(e.constructor)?zl.get(e.constructor)(e,t):Wl[n]?Wl[n](e,t):"","inspectCustom"),Gg=Object.prototype.toString;function Sn(e,t={}){let n=au(t,Sn),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Gg.call(e).slice(8,-1)),o in Vl)return Vl[o](e,n);if(r&&e){let a=Hg(e,n,o,Sn);if(a)return typeof a=="string"?a:Sn(a,n)}let s=e?Object.getPrototypeOf(e):false;return s===Object.prototype||s===null?Tn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ds(e,n):"constructor"in e?e.constructor!==Object?bu(e,n):Tn(e,n):e===Object(e)?Tn(e,n):n.stylize(String(e),o)}i(Sn,"inspect");x(Sn,"inspect");var ve={includeStack:false,showDiff:true,truncateThreshold:40,useProxy:true,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function H(e,t,n,r){let o={colors:r,depth:typeof n>"u"?2:n,showHidden:t,truncate:ve.truncateThreshold?ve.truncateThreshold:1/0};return Sn(e,o)}i(H,"inspect2");x(H,"inspect");function Ot(e){let t=H(e),n=Object.prototype.toString.call(e);if(ve.truncateThreshold&&t.length>=ve.truncateThreshold){if(n==="[object Function]")return !e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(n==="[object Array]")return "[ Array("+e.length+") ]";if(n==="[object Object]"){let r=Object.keys(e);return "{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}else return t}else return t}i(Ot,"objDisplay");x(Ot,"objDisplay");function Ls(e,t){let n=z(e,"negate"),r=z(e,"object"),o=t[3],s=xr(e,t),a=n?t[2]:t[1],l=z(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return Ot(r)}).replace(/#\{act\}/g,function(){return Ot(s)}).replace(/#\{exp\}/g,function(){return Ot(o)}),l?l+": "+a:a}i(Ls,"getMessage2");x(Ls,"getMessage");function Xe(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:true;for(let o in r)(n||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=r[o]);}i(Xe,"transferFlags");x(Xe,"transferFlags");function Ms(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}i(Ms,"type2");x(Ms,"type");function Bs(){this._key="chai/deep-eql__"+Math.random()+Date.now();}i(Bs,"FakeMap");x(Bs,"FakeMap");Bs.prototype={get:x(i(function(t){return t[this._key]},"get"),"get"),set:x(i(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:true});},"set"),"set")};var xu=typeof WeakMap=="function"?WeakMap:Bs;function Cs(e,t,n){if(!n||It(e)||It(t))return null;var r=n.get(e);if(r){var o=r.get(t);if(typeof o=="boolean")return o}return null}i(Cs,"memoizeCompare");x(Cs,"memoizeCompare");function bn(e,t,n,r){if(!(!n||It(e)||It(t))){var o=n.get(e);o?o.set(t,r):(o=new xu,o.set(t,r),n.set(e,o));}}i(bn,"memoizeSet");x(bn,"memoizeSet");var ku=vn;function vn(e,t,n){if(n&&n.comparator)return _s(e,t,n);var r=qs(e,t);return r!==null?r:_s(e,t,n)}i(vn,"deepEqual");x(vn,"deepEqual");function qs(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?true:It(e)||It(t)?false:null}i(qs,"simpleEqual");x(qs,"simpleEqual");function _s(e,t,n){n=n||{},n.memoize=n.memoize===false?false:n.memoize||new xu;var r=n&&n.comparator,o=Cs(e,t,n.memoize);if(o!==null)return o;var s=Cs(t,e,n.memoize);if(s!==null)return s;if(r){var a=r(e,t);if(a===false||a===true)return bn(e,t,n.memoize,a),a;var l=qs(e,t);if(l!==null)return l}var c=Ms(e);if(c!==Ms(t))return bn(e,t,n.memoize,false),false;bn(e,t,n.memoize,true);var u=Mu(e,t,c,n);return bn(e,t,n.memoize,u),u}i(_s,"extensiveDeepEqual");x(_s,"extensiveDeepEqual");function Mu(e,t,n,r){switch(n){case "String":case "Number":case "Boolean":case "Date":return vn(e.valueOf(),t.valueOf());case "Promise":case "Symbol":case "function":case "WeakMap":case "WeakSet":return e===t;case "Error":return Us(e,t,["name","message","code"],r);case "Arguments":case "Int8Array":case "Uint8Array":case "Uint8ClampedArray":case "Int16Array":case "Uint16Array":case "Int32Array":case "Uint32Array":case "Float32Array":case "Float64Array":case "Array":return Tt(e,t,r);case "RegExp":return Cu(e,t);case "Generator":return _u(e,t,r);case "DataView":return Tt(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case "ArrayBuffer":return Tt(new Uint8Array(e),new Uint8Array(t),r);case "Set":return Os(e,t,r);case "Map":return Os(e,t,r);case "Temporal.PlainDate":case "Temporal.PlainTime":case "Temporal.PlainDateTime":case "Temporal.Instant":case "Temporal.ZonedDateTime":case "Temporal.PlainYearMonth":case "Temporal.PlainMonthDay":return e.equals(t);case "Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case "Temporal.TimeZone":case "Temporal.Calendar":return e.toString()===t.toString();default:return Iu(e,t,r)}}i(Mu,"extensiveDeepEqualByType");x(Mu,"extensiveDeepEqualByType");function Cu(e,t){return e.toString()===t.toString()}i(Cu,"regexpEqual");x(Cu,"regexpEqual");function Os(e,t,n){try{if(e.size!==t.size)return false;if(e.size===0)return true}catch{return false}var r=[],o=[];return e.forEach(x(i(function(a,l){r.push([a,l]);},"gatherEntries"),"gatherEntries")),t.forEach(x(i(function(a,l){o.push([a,l]);},"gatherEntries"),"gatherEntries")),Tt(r.sort(),o.sort(),n)}i(Os,"entriesEqual");x(Os,"entriesEqual");function Tt(e,t,n){var r=e.length;if(r!==t.length)return false;if(r===0)return true;for(var o=-1;++o<r;)if(vn(e[o],t[o],n)===false)return false;return true}i(Tt,"iterableEqual");x(Tt,"iterableEqual");function _u(e,t,n){return Tt(wr(e),wr(t),n)}i(_u,"generatorEqual");x(_u,"generatorEqual");function Ou(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}i(Ou,"hasIteratorFunction");x(Ou,"hasIteratorFunction");function Is(e){if(Ou(e))try{return wr(e[Symbol.iterator]())}catch{return []}return []}i(Is,"getIteratorEntries");x(Is,"getIteratorEntries");function wr(e){for(var t=e.next(),n=[t.value];t.done===false;)t=e.next(),n.push(t.value);return n}i(wr,"getGeneratorEntries");x(wr,"getGeneratorEntries");function As(e){var t=[];for(var n in e)t.push(n);return t}i(As,"getEnumerableKeys");x(As,"getEnumerableKeys");function $s(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}i($s,"getEnumerableSymbols");x($s,"getEnumerableSymbols");function Us(e,t,n,r){var o=n.length;if(o===0)return true;for(var s=0;s<o;s+=1)if(vn(e[n[s]],t[n[s]],r)===false)return false;return true}i(Us,"keysEqual");x(Us,"keysEqual");function Iu(e,t,n){var r=As(e),o=As(t),s=$s(e),a=$s(t);if(r=r.concat(s),o=o.concat(a),r.length&&r.length===o.length)return Tt(Ns(r).sort(),Ns(o).sort())===false?false:Us(e,t,r,n);var l=Is(e),c=Is(t);return l.length&&l.length===c.length?(l.sort(),c.sort(),Tt(l,c,n)):r.length===0&&l.length===0&&o.length===0&&c.length===0}i(Iu,"objectEqual");x(Iu,"objectEqual");function It(e){return e===null||typeof e!="object"}i(It,"isPrimitive");x(It,"isPrimitive");function Ns(e){return e.map(x(i(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"),"mapSymbol"))}i(Ns,"mapSymbols");x(Ns,"mapSymbols");function kr(e,t){return typeof e>"u"||e===null?false:t in Object(e)}i(kr,"hasProperty");x(kr,"hasProperty");function Au(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(r=>{if(r==="constructor"||r==="__proto__"||r==="prototype")return {};let s=/^\[(\d+)\]$/.exec(r),a=null;return s?a={i:parseFloat(s[1])}:a={p:r.replace(/\\([.[\]])/g,"$1")},a})}i(Au,"parsePath");x(Au,"parsePath");function Ps(e,t,n){let r=e,o=null;n=typeof n>"u"?t.length:n;for(let s=0;s<n;s++){let a=t[s];r&&(typeof a.p>"u"?r=r[a.i]:r=r[a.p],s===n-1&&(o=r));}return o}i(Ps,"internalGetPathValue");x(Ps,"internalGetPathValue");function zs(e,t){let n=Au(t),r=n[n.length-1],o={parent:n.length>1?Ps(e,n,n.length-1):e,name:r.p||r.i,value:Ps(e,n)};return o.exists=kr(o.parent,o.name),o}i(zs,"getPathInfo");x(zs,"getPathInfo");var $u=class Nu{static{i(this,"_Assertion");}constructor(t,n,r,o){return Yl(this,"__flags",{}),z(this,"ssfi",r||Nu),z(this,"lockSsfi",o),z(this,"object",t),z(this,"message",n),z(this,"eql",ve.deepEqual||ku),Kt(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ve.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ve.includeStack=t;}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ve.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ve.showDiff=t;}static addProperty(t,n){Vs(this.prototype,t,n);}static addMethod(t,n){Ks(this.prototype,t,n);}static addChainableMethod(t,n,r){Js(this.prototype,t,n,r);}static overwriteProperty(t,n){Hs(this.prototype,t,n);}static overwriteMethod(t,n){Gs(this.prototype,t,n);}static overwriteChainableMethod(t,n,r){Ys(this.prototype,t,n,r);}assert(t,n,r,o,s,a){let l=Fs(this,arguments);if(a!==false&&(a=true),o===void 0&&s===void 0&&(a=false),ve.showDiff!==true&&(a=false),!l){n=Ls(this,arguments);let u={actual:xr(this,arguments),expected:o,showDiff:a},f=Qs(this,arguments);throw f&&(u.operator=f),new G(n,u,ve.includeStack?this.assert:z(this,"ssfi"))}}get _obj(){return z(this,"object")}set _obj(t){z(this,"object",t);}};x($u,"Assertion");var w=$u,Mr=new EventTarget,Pu=class extends Event{static{i(this,"_PluginEvent");}constructor(t,n,r){super(t),this.name=String(n),this.fn=r;}};x(Pu,"PluginEvent");var Ws=Pu;function xn(){return ve.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}i(xn,"isProxyEnabled");x(xn,"isProxyEnabled");function Vs(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:x(i(function r(){!xn()&&!z(this,"lockSsfi")&&z(this,"ssfi",r);let o=n.call(this);if(o!==void 0)return o;let s=new w;return Xe(this,s),s},"propertyGetter"),"propertyGetter"),configurable:true}),Mr.dispatchEvent(new Ws("addProperty",t,n));}i(Vs,"addProperty");x(Vs,"addProperty");var Jg=Object.getOwnPropertyDescriptor(function(){},"length");function kn(e,t,n){return Jg.configurable&&Object.defineProperty(e,"length",{get:x(function(){throw Error(n?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}i(kn,"addLengthGuard");x(kn,"addLengthGuard");function Ru(e){let t=Object.getOwnPropertyNames(e);function n(o){t.indexOf(o)===-1&&t.push(o);}i(n,"addProperty2"),x(n,"addProperty");let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}i(Ru,"getProperties");x(Ru,"getProperties");var Kl=["__flags","__methods","_obj","assert"];function Kt(e,t){return xn()?new Proxy(e,{get:x(i(function n(r,o){if(typeof o=="string"&&ve.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(r,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let s=null,a=4;throw Ru(r).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&Kl.indexOf(l)===-1){let c=ju(o,l,a);c<a&&(s=l,a=c);}}),Error(s!==null?"Invalid Chai property: "+o+'. Did you mean "'+s+'"?':"Invalid Chai property: "+o)}return Kl.indexOf(o)===-1&&!z(r,"lockSsfi")&&z(r,"ssfi",n),Reflect.get(r,o)},"proxyGetter"),"proxyGetter")}):e}i(Kt,"proxify");x(Kt,"proxify");function ju(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let o=0;o<=e.length;o++)r[o]=Array(t.length+1).fill(0),r[o][0]=o;for(let o=0;o<t.length;o++)r[0][o]=o;for(let o=1;o<=e.length;o++){let s=e.charCodeAt(o-1);for(let a=1;a<=t.length;a++){if(Math.abs(o-a)>=n){r[o][a]=n;continue}r[o][a]=Math.min(r[o-1][a]+1,r[o][a-1]+1,r[o-1][a-1]+(s===t.charCodeAt(a-1)?0:1));}}return r[e.length][t.length]}i(ju,"stringDistanceCapped");x(ju,"stringDistanceCapped");function Ks(e,t,n){let r=x(function(){z(this,"lockSsfi")||z(this,"ssfi",r);let o=n.apply(this,arguments);if(o!==void 0)return o;let s=new w;return Xe(this,s),s},"methodWrapper");kn(r,t,false),e[t]=Kt(r,t),Mr.dispatchEvent(new Ws("addMethod",t,n));}i(Ks,"addMethod");x(Ks,"addMethod");function Hs(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),o=x(function(){},"_super");r&&typeof r.get=="function"&&(o=r.get),Object.defineProperty(e,t,{get:x(i(function s(){!xn()&&!z(this,"lockSsfi")&&z(this,"ssfi",s);let a=z(this,"lockSsfi");z(this,"lockSsfi",true);let l=n(o).call(this);if(z(this,"lockSsfi",a),l!==void 0)return l;let c=new w;return Xe(this,c),c},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:true});}i(Hs,"overwriteProperty");x(Hs,"overwriteProperty");function Gs(e,t,n){let r=e[t],o=x(function(){throw new Error(t+" is not a function")},"_super");r&&typeof r=="function"&&(o=r);let s=x(function(){z(this,"lockSsfi")||z(this,"ssfi",s);let a=z(this,"lockSsfi");z(this,"lockSsfi",true);let l=n(o).apply(this,arguments);if(z(this,"lockSsfi",a),l!==void 0)return l;let c=new w;return Xe(this,c),c},"overwritingMethodWrapper");kn(s,t,false),e[t]=Kt(s,t);}i(Gs,"overwriteMethod");x(Gs,"overwriteMethod");var Yg=typeof Object.setPrototypeOf=="function",Hl=x(function(){},"testFn"),Xg=Object.getOwnPropertyNames(Hl).filter(function(e){let t=Object.getOwnPropertyDescriptor(Hl,e);return typeof t!="object"?true:!t.configurable}),Zg=Function.prototype.call,Qg=Function.prototype.apply,Fu=class extends Ws{static{i(this,"_PluginAddChainableMethodEvent");}constructor(t,n,r,o){super(t,n,r),this.chainingBehavior=o;}};x(Fu,"PluginAddChainableMethodEvent");var ey=Fu;function Js(e,t,n,r){typeof r!="function"&&(r=x(function(){},"chainingBehavior"));let o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:x(i(function(){o.chainingBehavior.call(this);let a=x(function(){z(this,"lockSsfi")||z(this,"ssfi",a);let l=o.method.apply(this,arguments);if(l!==void 0)return l;let c=new w;return Xe(this,c),c},"chainableMethodWrapper");if(kn(a,t,true),Yg){let l=Object.create(this);l.call=Zg,l.apply=Qg,Object.setPrototypeOf(a,l);}else Object.getOwnPropertyNames(e).forEach(function(c){if(Xg.indexOf(c)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(a,c,u);});return Xe(this,a),Kt(a)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:true}),Mr.dispatchEvent(new ey("addChainableMethod",t,n,r));}i(Js,"addChainableMethod");x(Js,"addChainableMethod");function Ys(e,t,n,r){let o=e.__methods[t],s=o.chainingBehavior;o.chainingBehavior=x(i(function(){let c=r(s).call(this);if(c!==void 0)return c;let u=new w;return Xe(this,u),u},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");let a=o.method;o.method=x(i(function(){let c=n(a).apply(this,arguments);if(c!==void 0)return c;let u=new w;return Xe(this,u),u},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper");}i(Ys,"overwriteChainableMethod");x(Ys,"overwriteChainableMethod");function br(e,t){return H(e)<H(t)?-1:1}i(br,"compareByInspect");x(br,"compareByInspect");function Xs(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}i(Xs,"getOwnEnumerablePropertySymbols");x(Xs,"getOwnEnumerablePropertySymbols");function Zs(e){return Object.keys(e).concat(Xs(e))}i(Zs,"getOwnEnumerableProperties");x(Zs,"getOwnEnumerableProperties");var Tr=Number.isNaN;function Du(e){let t=re(e);return ["Array","Object","Function"].indexOf(t)!==-1}i(Du,"isObjectType");x(Du,"isObjectType");function Qs(e,t){let n=z(e,"operator"),r=z(e,"negate"),o=t[3],s=r?t[2]:t[1];if(n)return n;if(typeof s=="function"&&(s=s()),s=s||"",!s||/\shave\s/.test(s))return;let a=Du(o);return /\snot\s/.test(s)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}i(Qs,"getOperator");x(Qs,"getOperator");function Cr(e){return e.name}i(Cr,"getName");x(Cr,"getName");function Sr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(Sr,"isRegExp2");x(Sr,"isRegExp");function ge(e){return ["Number","BigInt"].includes(re(e))}i(ge,"isNumeric");x(ge,"isNumeric");var{flag:S}=Ke;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){w.addProperty(e);});w.addProperty("not",function(){S(this,"negate",true);});w.addProperty("deep",function(){S(this,"deep",true);});w.addProperty("nested",function(){S(this,"nested",true);});w.addProperty("own",function(){S(this,"own",true);});w.addProperty("ordered",function(){S(this,"ordered",true);});w.addProperty("any",function(){S(this,"any",true),S(this,"all",false);});w.addProperty("all",function(){S(this,"all",true),S(this,"any",false);});var Gl={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function ei(e,t){t&&S(this,"message",t),e=e.toLowerCase();let n=S(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=re(n).toLowerCase();Gl.function.includes(e)?this.assert(Gl[e].includes(o),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===o,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e);}i(ei,"an");x(ei,"an");w.addChainableMethod("an",ei);w.addChainableMethod("a",ei);function Lu(e,t){return Tr(e)&&Tr(t)||e===t}i(Lu,"SameValueZero");x(Lu,"SameValueZero");function Mn(){S(this,"contains",true);}i(Mn,"includeChainingBehavior");x(Mn,"includeChainingBehavior");function Cn(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=re(n).toLowerCase(),o=S(this,"message"),s=S(this,"negate"),a=S(this,"ssfi"),l=S(this,"deep"),c=l?"deep ":"",u=l?S(this,"eql"):Lu;o=o?o+": ":"";let f=false;switch(r){case "string":f=n.indexOf(e)!==-1;break;case "weakset":if(l)throw new G(o+"unable to use .deep.include with WeakSet",void 0,a);f=n.has(e);break;case "map":n.forEach(function(h){f=f||u(h,e);});break;case "set":l?n.forEach(function(h){f=f||u(h,e);}):f=n.has(e);break;case "array":l?f=n.some(function(h){return u(h,e)}):f=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new G(o+"the given combination of arguments ("+r+" and "+re(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+re(e).toLowerCase(),void 0,a);let h=Object.keys(e),d=null,p=0;if(h.forEach(function(g){let m=new w(n);if(Xe(this,m,true),S(m,"lockSsfi",true),!s||h.length===1){m.property(g,e[g]);return}try{m.property(g,e[g]);}catch(b){if(!qe.compatibleConstructor(b,G))throw b;d===null&&(d=b),p++;}},this),s&&h.length>1&&p===h.length)throw d;return}}this.assert(f,"expected #{this} to "+c+"include "+H(e),"expected #{this} to not "+c+"include "+H(e));}i(Cn,"include");x(Cn,"include");w.addChainableMethod("include",Cn,Mn);w.addChainableMethod("contain",Cn,Mn);w.addChainableMethod("contains",Cn,Mn);w.addChainableMethod("includes",Cn,Mn);w.addProperty("ok",function(){this.assert(S(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});w.addProperty("true",function(){this.assert(S(this,"object")===true,"expected #{this} to be true","expected #{this} to be false",!S(this,"negate"));});w.addProperty("numeric",function(){let e=S(this,"object");this.assert(["Number","BigInt"].includes(re(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!S(this,"negate"));});w.addProperty("callable",function(){let e=S(this,"object"),t=S(this,"ssfi"),n=S(this,"message"),r=n?`${n}: `:"",o=S(this,"negate"),s=o?`${r}expected ${H(e)} not to be a callable function`:`${r}expected ${H(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(re(e));if(a&&o||!a&&!o)throw new G(s,void 0,t)});w.addProperty("false",function(){this.assert(S(this,"object")===false,"expected #{this} to be false","expected #{this} to be true",!!S(this,"negate"));});w.addProperty("null",function(){this.assert(S(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});w.addProperty("undefined",function(){this.assert(S(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});w.addProperty("NaN",function(){this.assert(Tr(S(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function ti(){let e=S(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}i(ti,"assertExist");x(ti,"assertExist");w.addProperty("exist",ti);w.addProperty("exists",ti);w.addProperty("empty",function(){let e=S(this,"object"),t=S(this,"ssfi"),n=S(this,"message"),r;switch(n=n?n+": ":"",re(e).toLowerCase()){case "array":case "string":r=e.length;break;case "map":case "set":r=e.size;break;case "weakmap":case "weakset":throw new G(n+".empty was passed a weak collection",void 0,t);case "function":{let o=n+".empty was passed a function "+Cr(e);throw new G(o.trim(),void 0,t)}default:if(e!==Object(e))throw new G(n+".empty was passed non-string primitive "+H(e),void 0,t);r=Object.keys(e).length;}this.assert(r===0,"expected #{this} to be empty","expected #{this} not to be empty");});function ni(){let e=S(this,"object"),t=re(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}i(ni,"checkArguments");x(ni,"checkArguments");w.addProperty("arguments",ni);w.addProperty("Arguments",ni);function _r(e,t){t&&S(this,"message",t);let n=S(this,"object");if(S(this,"deep")){let r=S(this,"lockSsfi");S(this,"lockSsfi",true),this.eql(e),S(this,"lockSsfi",r);}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,true);}i(_r,"assertEqual");x(_r,"assertEqual");w.addMethod("equal",_r);w.addMethod("equals",_r);w.addMethod("eq",_r);function ri(e,t){t&&S(this,"message",t);let n=S(this,"eql");this.assert(n(e,S(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,true);}i(ri,"assertEql");x(ri,"assertEql");w.addMethod("eql",ri);w.addMethod("eqls",ri);function Or(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"doLength"),o=S(this,"message"),s=o?o+": ":"",a=S(this,"ssfi"),l=re(n).toLowerCase(),c=re(e).toLowerCase();if(r&&l!=="map"&&l!=="set"&&new w(n,o,a,true).to.have.property("length"),!r&&l==="date"&&c!=="date")throw new G(s+"the argument to above must be a date",void 0,a);if(!ge(e)&&(r||ge(n)))throw new G(s+"the argument to above must be a number",void 0,a);if(!r&&l!=="date"&&!ge(n)){let u=l==="string"?"'"+n+"'":n;throw new G(s+"expected "+u+" to be a number or a date",void 0,a)}if(r){let u="length",f;l==="map"||l==="set"?(u="size",f=n.size):f=n.length,this.assert(f>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,f);}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}i(Or,"assertAbove");x(Or,"assertAbove");w.addMethod("above",Or);w.addMethod("gt",Or);w.addMethod("greaterThan",Or);function Ir(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"doLength"),o=S(this,"message"),s=o?o+": ":"",a=S(this,"ssfi"),l=re(n).toLowerCase(),c=re(e).toLowerCase(),u,f=true;if(r&&l!=="map"&&l!=="set"&&new w(n,o,a,true).to.have.property("length"),!r&&l==="date"&&c!=="date")u=s+"the argument to least must be a date";else if(!ge(e)&&(r||ge(n)))u=s+"the argument to least must be a number";else if(!r&&l!=="date"&&!ge(n)){let h=l==="string"?"'"+n+"'":n;u=s+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new G(u,void 0,a);if(r){let h="length",d;l==="map"||l==="set"?(h="size",d=n.size):d=n.length,this.assert(d>=e,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",e,d);}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}i(Ir,"assertLeast");x(Ir,"assertLeast");w.addMethod("least",Ir);w.addMethod("gte",Ir);w.addMethod("greaterThanOrEqual",Ir);function Ar(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"doLength"),o=S(this,"message"),s=o?o+": ":"",a=S(this,"ssfi"),l=re(n).toLowerCase(),c=re(e).toLowerCase(),u,f=true;if(r&&l!=="map"&&l!=="set"&&new w(n,o,a,true).to.have.property("length"),!r&&l==="date"&&c!=="date")u=s+"the argument to below must be a date";else if(!ge(e)&&(r||ge(n)))u=s+"the argument to below must be a number";else if(!r&&l!=="date"&&!ge(n)){let h=l==="string"?"'"+n+"'":n;u=s+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new G(u,void 0,a);if(r){let h="length",d;l==="map"||l==="set"?(h="size",d=n.size):d=n.length,this.assert(d<e,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",e,d);}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}i(Ar,"assertBelow");x(Ar,"assertBelow");w.addMethod("below",Ar);w.addMethod("lt",Ar);w.addMethod("lessThan",Ar);function $r(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"doLength"),o=S(this,"message"),s=o?o+": ":"",a=S(this,"ssfi"),l=re(n).toLowerCase(),c=re(e).toLowerCase(),u,f=true;if(r&&l!=="map"&&l!=="set"&&new w(n,o,a,true).to.have.property("length"),!r&&l==="date"&&c!=="date")u=s+"the argument to most must be a date";else if(!ge(e)&&(r||ge(n)))u=s+"the argument to most must be a number";else if(!r&&l!=="date"&&!ge(n)){let h=l==="string"?"'"+n+"'":n;u=s+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new G(u,void 0,a);if(r){let h="length",d;l==="map"||l==="set"?(h="size",d=n.size):d=n.length,this.assert(d<=e,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",e,d);}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}i($r,"assertMost");x($r,"assertMost");w.addMethod("most",$r);w.addMethod("lte",$r);w.addMethod("lessThanOrEqual",$r);w.addMethod("within",function(e,t,n){n&&S(this,"message",n);let r=S(this,"object"),o=S(this,"doLength"),s=S(this,"message"),a=s?s+": ":"",l=S(this,"ssfi"),c=re(r).toLowerCase(),u=re(e).toLowerCase(),f=re(t).toLowerCase(),h,d=true,p=u==="date"&&f==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new w(r,s,l,true).to.have.property("length"),!o&&c==="date"&&(u!=="date"||f!=="date"))h=a+"the arguments to within must be dates";else if((!ge(e)||!ge(t))&&(o||ge(r)))h=a+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!ge(r)){let g=c==="string"?"'"+r+"'":r;h=a+"expected "+g+" to be a number or a date";}else d=false;if(d)throw new G(h,void 0,l);if(o){let g="length",m;c==="map"||c==="set"?(g="size",m=r.size):m=r.length,this.assert(m>=e&&m<=t,"expected #{this} to have a "+g+" within "+p,"expected #{this} to not have a "+g+" within "+p);}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+p,"expected #{this} to not be within "+p);});function oi(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"ssfi"),o=S(this,"message"),s;try{s=n instanceof e;}catch(l){throw l instanceof TypeError?(o=o?o+": ":"",new G(o+"The instanceof assertion needs a constructor but "+re(e)+" was given.",void 0,r)):l}let a=Cr(e);a==null&&(a="an unnamed constructor"),this.assert(s,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a);}i(oi,"assertInstanceOf");x(oi,"assertInstanceOf");w.addMethod("instanceof",oi);w.addMethod("instanceOf",oi);function si(e,t,n){n&&S(this,"message",n);let r=S(this,"nested"),o=S(this,"own"),s=S(this,"message"),a=S(this,"object"),l=S(this,"ssfi"),c=typeof e;if(s=s?s+": ":"",r){if(c!=="string")throw new G(s+"the argument to property must be a string when using nested syntax",void 0,l)}else if(c!=="string"&&c!=="number"&&c!=="symbol")throw new G(s+"the argument to property must be a string, number, or symbol",void 0,l);if(r&&o)throw new G(s+'The "nested" and "own" flags cannot be combined.',void 0,l);if(a==null)throw new G(s+"Target cannot be null or undefined.",void 0,l);let u=S(this,"deep"),f=S(this,"negate"),h=r?zs(a,e):null,d=r?h.value:a[e],p=u?S(this,"eql"):(b,E)=>b===E,g="";u&&(g+="deep "),o&&(g+="own "),r&&(g+="nested "),g+="property ";let m;o?m=Object.prototype.hasOwnProperty.call(a,e):r?m=h.exists:m=kr(a,e),(!f||arguments.length===1)&&this.assert(m,"expected #{this} to have "+g+H(e),"expected #{this} to not have "+g+H(e)),arguments.length>1&&this.assert(m&&p(t,d),"expected #{this} to have "+g+H(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+H(e)+" of #{act}",t,d),S(this,"object",d);}i(si,"assertProperty");x(si,"assertProperty");w.addMethod("property",si);function ii(e,t,n){S(this,"own",true),si.apply(this,arguments);}i(ii,"assertOwnProperty");x(ii,"assertOwnProperty");w.addMethod("ownProperty",ii);w.addMethod("haveOwnProperty",ii);function ai(e,t,n){typeof t=="string"&&(n=t,t=null),n&&S(this,"message",n);let r=S(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),e),s=S(this,"eql");o&&t?this.assert(s(t,o),"expected the own property descriptor for "+H(e)+" on #{this} to match "+H(t)+", got "+H(o),"expected the own property descriptor for "+H(e)+" on #{this} to not match "+H(t),t,o,true):this.assert(o,"expected #{this} to have an own property descriptor for "+H(e),"expected #{this} to not have an own property descriptor for "+H(e)),S(this,"object",o);}i(ai,"assertOwnPropertyDescriptor");x(ai,"assertOwnPropertyDescriptor");w.addMethod("ownPropertyDescriptor",ai);w.addMethod("haveOwnPropertyDescriptor",ai);function ci(){S(this,"doLength",true);}i(ci,"assertLengthChain");x(ci,"assertLengthChain");function li(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=re(n).toLowerCase(),o=S(this,"message"),s=S(this,"ssfi"),a="length",l;switch(r){case "map":case "set":a="size",l=n.size;break;default:new w(n,o,s,true).to.have.property("length"),l=n.length;}this.assert(l==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,l);}i(li,"assertLength");x(li,"assertLength");w.addChainableMethod("length",li,ci);w.addChainableMethod("lengthOf",li,ci);function ui(e,t){t&&S(this,"message",t);let n=S(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e);}i(ui,"assertMatch");x(ui,"assertMatch");w.addMethod("match",ui);w.addMethod("matches",ui);w.addMethod("string",function(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"message"),o=S(this,"ssfi");new w(n,r,o,true).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+H(e),"expected #{this} to not contain "+H(e));});function fi(e){let t=S(this,"object"),n=re(t),r=re(e),o=S(this,"ssfi"),s=S(this,"deep"),a,l="",c,u=true,f=S(this,"message");f=f?f+": ":"";let h=f+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(n==="Map"||n==="Set")l=s?"deeply ":"",c=[],t.forEach(function(E,M){c.push(M);}),r!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(c=Zs(t),r){case "Array":if(arguments.length>1)throw new G(h,void 0,o);break;case "Object":if(arguments.length>1)throw new G(h,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(E){return typeof E=="symbol"?E:String(E)});}if(!e.length)throw new G(f+"keys required",void 0,o);let d=e.length,p=S(this,"any"),g=S(this,"all"),m=e,b=s?S(this,"eql"):(E,M)=>E===M;if(!p&&!g&&(g=true),p&&(u=m.some(function(E){return c.some(function(M){return b(E,M)})})),g&&(u=m.every(function(E){return c.some(function(M){return b(E,M)})}),S(this,"contains")||(u=u&&e.length==c.length)),d>1){e=e.map(function(M){return H(M)});let E=e.pop();g&&(a=e.join(", ")+", and "+E),p&&(a=e.join(", ")+", or "+E);}else a=H(e[0]);a=(d>1?"keys ":"key ")+a,a=(S(this,"contains")?"contain ":"have ")+a,this.assert(u,"expected #{this} to "+l+a,"expected #{this} to not "+l+a,m.slice(0).sort(br),c.sort(br),true);}i(fi,"assertKeys");x(fi,"assertKeys");w.addMethod("keys",fi);w.addMethod("key",fi);function Nr(e,t,n){n&&S(this,"message",n);let r=S(this,"object"),o=S(this,"ssfi"),s=S(this,"message"),a=S(this,"negate")||false;new w(r,s,o,true).is.a("function"),(Sr(e)||typeof e=="string")&&(t=e,e=null);let l,c=false;try{r();}catch(p){c=true,l=p;}let u=e===void 0&&t===void 0,f=!!(e&&t),h=false,d=false;if(u||!u&&!a){let p="an error";e instanceof Error?p="#{exp}":e&&(p=qe.getConstructorName(e));let g=l;if(l instanceof Error)g=l.toString();else if(typeof l=="string")g=l;else if(l&&(typeof l=="object"||typeof l=="function"))try{g=qe.getConstructorName(l);}catch{}this.assert(c,"expected #{this} to throw "+p,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),g);}if(e&&l&&(e instanceof Error&&qe.compatibleInstance(l,e)===a&&(f&&a?h=true:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l&&!a?" but #{act} was thrown":""),e.toString(),l.toString())),qe.compatibleConstructor(l,e)===a&&(f&&a?h=true:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&qe.getConstructorName(e),l instanceof Error?l.toString():l&&qe.getConstructorName(l)))),l&&t!==void 0&&t!==null){let p="including";Sr(t)&&(p="matching"),qe.compatibleMessage(l,t)===a&&(f&&a?d=true:this.assert(a,"expected #{this} to throw error "+p+" #{exp} but got #{act}","expected #{this} to throw error not "+p+" #{exp}",t,qe.getMessage(l)));}h&&d&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&qe.getConstructorName(e),l instanceof Error?l.toString():l&&qe.getConstructorName(l)),S(this,"object",l);}i(Nr,"assertThrows");x(Nr,"assertThrows");w.addMethod("throw",Nr);w.addMethod("throws",Nr);w.addMethod("Throw",Nr);function hi(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"itself"),o=typeof n=="function"&&!r?n.prototype[e]:n[e];this.assert(typeof o=="function","expected #{this} to respond to "+H(e),"expected #{this} to not respond to "+H(e));}i(hi,"respondTo");x(hi,"respondTo");w.addMethod("respondTo",hi);w.addMethod("respondsTo",hi);w.addProperty("itself",function(){S(this,"itself",true);});function pi(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=e(n);this.assert(r,"expected #{this} to satisfy "+Ot(e),"expected #{this} to not satisfy"+Ot(e),!S(this,"negate"),r);}i(pi,"satisfy");x(pi,"satisfy");w.addMethod("satisfy",pi);w.addMethod("satisfies",pi);function di(e,t,n){n&&S(this,"message",n);let r=S(this,"object"),o=S(this,"message"),s=S(this,"ssfi");new w(r,o,s,true).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new G(o?`${o}: ${a}`:a,void 0,s);if(new w(t,o,s,true).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new G(o?`${o}: ${a}`:a,void 0,s);new w(e,o,s,true).is.numeric;let l=x(u=>u<0?-u:u,"abs"),c=x(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(c(l(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}i(di,"closeTo");x(di,"closeTo");w.addMethod("closeTo",di);w.addMethod("approximately",di);function Bu(e,t,n,r,o){let s=Array.from(t),a=Array.from(e);if(!r){if(a.length!==s.length)return false;s=s.slice();}return a.every(function(l,c){if(o)return n?n(l,s[c]):l===s[c];if(!n){let u=s.indexOf(l);return u===-1?false:(r||s.splice(u,1),true)}return s.some(function(u,f){return n(l,u)?(r||s.splice(f,1),true):false})})}i(Bu,"isSubsetOf");x(Bu,"isSubsetOf");w.addMethod("members",function(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"message"),o=S(this,"ssfi");new w(n,r,o,true).to.be.iterable,new w(e,r,o,true).to.be.iterable;let s=S(this,"contains"),a=S(this,"ordered"),l,c,u;s?(l=a?"an ordered superset":"a superset",c="expected #{this} to be "+l+" of #{exp}",u="expected #{this} to not be "+l+" of #{exp}"):(l=a?"ordered members":"members",c="expected #{this} to have the same "+l+" as #{exp}",u="expected #{this} to not have the same "+l+" as #{exp}");let f=S(this,"deep")?S(this,"eql"):void 0;this.assert(Bu(e,n,f,s,a),c,u,e,n,true);});w.addProperty("iterable",function(e){e&&S(this,"message",e);let t=S(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function qu(e,t){t&&S(this,"message",t);let n=S(this,"object"),r=S(this,"message"),o=S(this,"ssfi"),s=S(this,"contains"),a=S(this,"deep"),l=S(this,"eql");new w(e,r,o,true).to.be.an("array"),s?this.assert(e.some(function(c){return n.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):a?this.assert(e.some(function(c){return l(n,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n);}i(qu,"oneOf");x(qu,"oneOf");w.addMethod("oneOf",qu);function mi(e,t,n){n&&S(this,"message",n);let r=S(this,"object"),o=S(this,"message"),s=S(this,"ssfi");new w(r,o,s,true).is.a("function");let a;t?(new w(e,o,s,true).to.have.property(t),a=e[t]):(new w(e,o,s,true).is.a("function"),a=e()),r();let l=t==null?e():e[t],c=t==null?a:"."+t;S(this,"deltaMsgObj",c),S(this,"initialDeltaValue",a),S(this,"finalDeltaValue",l),S(this,"deltaBehavior","change"),S(this,"realDelta",l!==a),this.assert(a!==l,"expected "+c+" to change","expected "+c+" to not change");}i(mi,"assertChanges");x(mi,"assertChanges");w.addMethod("change",mi);w.addMethod("changes",mi);function gi(e,t,n){n&&S(this,"message",n);let r=S(this,"object"),o=S(this,"message"),s=S(this,"ssfi");new w(r,o,s,true).is.a("function");let a;t?(new w(e,o,s,true).to.have.property(t),a=e[t]):(new w(e,o,s,true).is.a("function"),a=e()),new w(a,o,s,true).is.a("number"),r();let l=t==null?e():e[t],c=t==null?a:"."+t;S(this,"deltaMsgObj",c),S(this,"initialDeltaValue",a),S(this,"finalDeltaValue",l),S(this,"deltaBehavior","increase"),S(this,"realDelta",l-a),this.assert(l-a>0,"expected "+c+" to increase","expected "+c+" to not increase");}i(gi,"assertIncreases");x(gi,"assertIncreases");w.addMethod("increase",gi);w.addMethod("increases",gi);function yi(e,t,n){n&&S(this,"message",n);let r=S(this,"object"),o=S(this,"message"),s=S(this,"ssfi");new w(r,o,s,true).is.a("function");let a;t?(new w(e,o,s,true).to.have.property(t),a=e[t]):(new w(e,o,s,true).is.a("function"),a=e()),new w(a,o,s,true).is.a("number"),r();let l=t==null?e():e[t],c=t==null?a:"."+t;S(this,"deltaMsgObj",c),S(this,"initialDeltaValue",a),S(this,"finalDeltaValue",l),S(this,"deltaBehavior","decrease"),S(this,"realDelta",a-l),this.assert(l-a<0,"expected "+c+" to decrease","expected "+c+" to not decrease");}i(yi,"assertDecreases");x(yi,"assertDecreases");w.addMethod("decrease",yi);w.addMethod("decreases",yi);function Uu(e,t){t&&S(this,"message",t);let n=S(this,"deltaMsgObj"),r=S(this,"initialDeltaValue"),o=S(this,"finalDeltaValue"),s=S(this,"deltaBehavior"),a=S(this,"realDelta"),l;s==="change"?l=Math.abs(o-r)===Math.abs(e):l=a===Math.abs(e),this.assert(l,"expected "+n+" to "+s+" by "+e,"expected "+n+" to not "+s+" by "+e);}i(Uu,"assertDelta");x(Uu,"assertDelta");w.addMethod("by",Uu);w.addProperty("extensible",function(){let e=S(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});w.addProperty("sealed",function(){let e=S(this,"object"),t=e===Object(e)?Object.isSealed(e):true;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});w.addProperty("frozen",function(){let e=S(this,"object"),t=e===Object(e)?Object.isFrozen(e):true;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});w.addProperty("finite",function(e){let t=S(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});function Er(e,t){return e===t?true:typeof t!=typeof e?false:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(r){return Er(n,r)})}):false:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():false:Object.keys(e).every(function(n){let r=e[n],o=t[n];return typeof r=="object"&&r!==null&&o!==null?Er(r,o):typeof r=="function"?r(o):o===r}):false}i(Er,"compareSubset");x(Er,"compareSubset");w.addMethod("containSubset",function(e){let t=z(this,"object"),n=ve.showDiff;this.assert(Er(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n);});function En(e,t){return new w(e,t)}i(En,"expect");x(En,"expect");En.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new G(n,{actual:e,expected:t,operator:r},En.fail)};var zu={};js(zu,{Should:i(()=>Vu,"Should"),should:i(()=>Wu,"should")});function wi(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new w(this.valueOf(),null,e):new w(this,null,e)}i(e,"shouldGetter"),x(e,"shouldGetter");function t(r){Object.defineProperty(this,"should",{value:r,enumerable:true,configurable:true,writable:true});}i(t,"shouldSetter"),x(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:true});let n={};return n.fail=function(r,o,s,a){throw arguments.length<2&&(s=r,r=void 0),s=s||"should.fail()",new G(s,{actual:r,expected:o,operator:a},n.fail)},n.equal=function(r,o,s){new w(r,s).to.equal(o);},n.Throw=function(r,o,s,a){new w(r,a).to.Throw(o,s);},n.exist=function(r,o){new w(r,o).to.exist;},n.not={},n.not.equal=function(r,o,s){new w(r,s).to.not.equal(o);},n.not.Throw=function(r,o,s,a){new w(r,a).to.not.Throw(o,s);},n.not.exist=function(r,o){new w(r,o).to.not.exist;},n.throw=n.Throw,n.not.throw=n.not.Throw,n}i(wi,"loadShould");x(wi,"loadShould");var Wu=wi,Vu=wi;function y(e,t){new w(null,null,y,true).assert(e,t,"[ negation message unavailable ]");}i(y,"assert");x(y,"assert");y.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new G(n,{actual:e,expected:t,operator:r},y.fail)};y.isOk=function(e,t){new w(e,t,y.isOk,true).is.ok;};y.isNotOk=function(e,t){new w(e,t,y.isNotOk,true).is.not.ok;};y.equal=function(e,t,n){let r=new w(e,n,y.equal,true);r.assert(t==z(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,true);};y.notEqual=function(e,t,n){let r=new w(e,n,y.notEqual,true);r.assert(t!=z(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,true);};y.strictEqual=function(e,t,n){new w(e,n,y.strictEqual,true).to.equal(t);};y.notStrictEqual=function(e,t,n){new w(e,n,y.notStrictEqual,true).to.not.equal(t);};y.deepEqual=y.deepStrictEqual=function(e,t,n){new w(e,n,y.deepEqual,true).to.eql(t);};y.notDeepEqual=function(e,t,n){new w(e,n,y.notDeepEqual,true).to.not.eql(t);};y.isAbove=function(e,t,n){new w(e,n,y.isAbove,true).to.be.above(t);};y.isAtLeast=function(e,t,n){new w(e,n,y.isAtLeast,true).to.be.least(t);};y.isBelow=function(e,t,n){new w(e,n,y.isBelow,true).to.be.below(t);};y.isAtMost=function(e,t,n){new w(e,n,y.isAtMost,true).to.be.most(t);};y.isTrue=function(e,t){new w(e,t,y.isTrue,true).is.true;};y.isNotTrue=function(e,t){new w(e,t,y.isNotTrue,true).to.not.equal(true);};y.isFalse=function(e,t){new w(e,t,y.isFalse,true).is.false;};y.isNotFalse=function(e,t){new w(e,t,y.isNotFalse,true).to.not.equal(false);};y.isNull=function(e,t){new w(e,t,y.isNull,true).to.equal(null);};y.isNotNull=function(e,t){new w(e,t,y.isNotNull,true).to.not.equal(null);};y.isNaN=function(e,t){new w(e,t,y.isNaN,true).to.be.NaN;};y.isNotNaN=function(e,t){new w(e,t,y.isNotNaN,true).not.to.be.NaN;};y.exists=function(e,t){new w(e,t,y.exists,true).to.exist;};y.notExists=function(e,t){new w(e,t,y.notExists,true).to.not.exist;};y.isUndefined=function(e,t){new w(e,t,y.isUndefined,true).to.equal(void 0);};y.isDefined=function(e,t){new w(e,t,y.isDefined,true).to.not.equal(void 0);};y.isCallable=function(e,t){new w(e,t,y.isCallable,true).is.callable;};y.isNotCallable=function(e,t){new w(e,t,y.isNotCallable,true).is.not.callable;};y.isObject=function(e,t){new w(e,t,y.isObject,true).to.be.a("object");};y.isNotObject=function(e,t){new w(e,t,y.isNotObject,true).to.not.be.a("object");};y.isArray=function(e,t){new w(e,t,y.isArray,true).to.be.an("array");};y.isNotArray=function(e,t){new w(e,t,y.isNotArray,true).to.not.be.an("array");};y.isString=function(e,t){new w(e,t,y.isString,true).to.be.a("string");};y.isNotString=function(e,t){new w(e,t,y.isNotString,true).to.not.be.a("string");};y.isNumber=function(e,t){new w(e,t,y.isNumber,true).to.be.a("number");};y.isNotNumber=function(e,t){new w(e,t,y.isNotNumber,true).to.not.be.a("number");};y.isNumeric=function(e,t){new w(e,t,y.isNumeric,true).is.numeric;};y.isNotNumeric=function(e,t){new w(e,t,y.isNotNumeric,true).is.not.numeric;};y.isFinite=function(e,t){new w(e,t,y.isFinite,true).to.be.finite;};y.isBoolean=function(e,t){new w(e,t,y.isBoolean,true).to.be.a("boolean");};y.isNotBoolean=function(e,t){new w(e,t,y.isNotBoolean,true).to.not.be.a("boolean");};y.typeOf=function(e,t,n){new w(e,n,y.typeOf,true).to.be.a(t);};y.notTypeOf=function(e,t,n){new w(e,n,y.notTypeOf,true).to.not.be.a(t);};y.instanceOf=function(e,t,n){new w(e,n,y.instanceOf,true).to.be.instanceOf(t);};y.notInstanceOf=function(e,t,n){new w(e,n,y.notInstanceOf,true).to.not.be.instanceOf(t);};y.include=function(e,t,n){new w(e,n,y.include,true).include(t);};y.notInclude=function(e,t,n){new w(e,n,y.notInclude,true).not.include(t);};y.deepInclude=function(e,t,n){new w(e,n,y.deepInclude,true).deep.include(t);};y.notDeepInclude=function(e,t,n){new w(e,n,y.notDeepInclude,true).not.deep.include(t);};y.nestedInclude=function(e,t,n){new w(e,n,y.nestedInclude,true).nested.include(t);};y.notNestedInclude=function(e,t,n){new w(e,n,y.notNestedInclude,true).not.nested.include(t);};y.deepNestedInclude=function(e,t,n){new w(e,n,y.deepNestedInclude,true).deep.nested.include(t);};y.notDeepNestedInclude=function(e,t,n){new w(e,n,y.notDeepNestedInclude,true).not.deep.nested.include(t);};y.ownInclude=function(e,t,n){new w(e,n,y.ownInclude,true).own.include(t);};y.notOwnInclude=function(e,t,n){new w(e,n,y.notOwnInclude,true).not.own.include(t);};y.deepOwnInclude=function(e,t,n){new w(e,n,y.deepOwnInclude,true).deep.own.include(t);};y.notDeepOwnInclude=function(e,t,n){new w(e,n,y.notDeepOwnInclude,true).not.deep.own.include(t);};y.match=function(e,t,n){new w(e,n,y.match,true).to.match(t);};y.notMatch=function(e,t,n){new w(e,n,y.notMatch,true).to.not.match(t);};y.property=function(e,t,n){new w(e,n,y.property,true).to.have.property(t);};y.notProperty=function(e,t,n){new w(e,n,y.notProperty,true).to.not.have.property(t);};y.propertyVal=function(e,t,n,r){new w(e,r,y.propertyVal,true).to.have.property(t,n);};y.notPropertyVal=function(e,t,n,r){new w(e,r,y.notPropertyVal,true).to.not.have.property(t,n);};y.deepPropertyVal=function(e,t,n,r){new w(e,r,y.deepPropertyVal,true).to.have.deep.property(t,n);};y.notDeepPropertyVal=function(e,t,n,r){new w(e,r,y.notDeepPropertyVal,true).to.not.have.deep.property(t,n);};y.ownProperty=function(e,t,n){new w(e,n,y.ownProperty,true).to.have.own.property(t);};y.notOwnProperty=function(e,t,n){new w(e,n,y.notOwnProperty,true).to.not.have.own.property(t);};y.ownPropertyVal=function(e,t,n,r){new w(e,r,y.ownPropertyVal,true).to.have.own.property(t,n);};y.notOwnPropertyVal=function(e,t,n,r){new w(e,r,y.notOwnPropertyVal,true).to.not.have.own.property(t,n);};y.deepOwnPropertyVal=function(e,t,n,r){new w(e,r,y.deepOwnPropertyVal,true).to.have.deep.own.property(t,n);};y.notDeepOwnPropertyVal=function(e,t,n,r){new w(e,r,y.notDeepOwnPropertyVal,true).to.not.have.deep.own.property(t,n);};y.nestedProperty=function(e,t,n){new w(e,n,y.nestedProperty,true).to.have.nested.property(t);};y.notNestedProperty=function(e,t,n){new w(e,n,y.notNestedProperty,true).to.not.have.nested.property(t);};y.nestedPropertyVal=function(e,t,n,r){new w(e,r,y.nestedPropertyVal,true).to.have.nested.property(t,n);};y.notNestedPropertyVal=function(e,t,n,r){new w(e,r,y.notNestedPropertyVal,true).to.not.have.nested.property(t,n);};y.deepNestedPropertyVal=function(e,t,n,r){new w(e,r,y.deepNestedPropertyVal,true).to.have.deep.nested.property(t,n);};y.notDeepNestedPropertyVal=function(e,t,n,r){new w(e,r,y.notDeepNestedPropertyVal,true).to.not.have.deep.nested.property(t,n);};y.lengthOf=function(e,t,n){new w(e,n,y.lengthOf,true).to.have.lengthOf(t);};y.hasAnyKeys=function(e,t,n){new w(e,n,y.hasAnyKeys,true).to.have.any.keys(t);};y.hasAllKeys=function(e,t,n){new w(e,n,y.hasAllKeys,true).to.have.all.keys(t);};y.containsAllKeys=function(e,t,n){new w(e,n,y.containsAllKeys,true).to.contain.all.keys(t);};y.doesNotHaveAnyKeys=function(e,t,n){new w(e,n,y.doesNotHaveAnyKeys,true).to.not.have.any.keys(t);};y.doesNotHaveAllKeys=function(e,t,n){new w(e,n,y.doesNotHaveAllKeys,true).to.not.have.all.keys(t);};y.hasAnyDeepKeys=function(e,t,n){new w(e,n,y.hasAnyDeepKeys,true).to.have.any.deep.keys(t);};y.hasAllDeepKeys=function(e,t,n){new w(e,n,y.hasAllDeepKeys,true).to.have.all.deep.keys(t);};y.containsAllDeepKeys=function(e,t,n){new w(e,n,y.containsAllDeepKeys,true).to.contain.all.deep.keys(t);};y.doesNotHaveAnyDeepKeys=function(e,t,n){new w(e,n,y.doesNotHaveAnyDeepKeys,true).to.not.have.any.deep.keys(t);};y.doesNotHaveAllDeepKeys=function(e,t,n){new w(e,n,y.doesNotHaveAllDeepKeys,true).to.not.have.all.deep.keys(t);};y.throws=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let o=new w(e,r,y.throws,true).to.throw(t,n);return z(o,"object")};y.doesNotThrow=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new w(e,r,y.doesNotThrow,true).to.not.throw(t,n);};y.operator=function(e,t,n,r){let o;switch(t){case "==":o=e==n;break;case "===":o=e===n;break;case ">":o=e>n;break;case ">=":o=e>=n;break;case "<":o=e<n;break;case "<=":o=e<=n;break;case "!=":o=e!=n;break;case "!==":o=e!==n;break;default:throw r=r&&r+": ",new G(r+'Invalid operator "'+t+'"',void 0,y.operator)}let s=new w(o,r,y.operator,true);s.assert(z(s,"object")===true,"expected "+H(e)+" to be "+t+" "+H(n),"expected "+H(e)+" to not be "+t+" "+H(n));};y.closeTo=function(e,t,n,r){new w(e,r,y.closeTo,true).to.be.closeTo(t,n);};y.approximately=function(e,t,n,r){new w(e,r,y.approximately,true).to.be.approximately(t,n);};y.sameMembers=function(e,t,n){new w(e,n,y.sameMembers,true).to.have.same.members(t);};y.notSameMembers=function(e,t,n){new w(e,n,y.notSameMembers,true).to.not.have.same.members(t);};y.sameDeepMembers=function(e,t,n){new w(e,n,y.sameDeepMembers,true).to.have.same.deep.members(t);};y.notSameDeepMembers=function(e,t,n){new w(e,n,y.notSameDeepMembers,true).to.not.have.same.deep.members(t);};y.sameOrderedMembers=function(e,t,n){new w(e,n,y.sameOrderedMembers,true).to.have.same.ordered.members(t);};y.notSameOrderedMembers=function(e,t,n){new w(e,n,y.notSameOrderedMembers,true).to.not.have.same.ordered.members(t);};y.sameDeepOrderedMembers=function(e,t,n){new w(e,n,y.sameDeepOrderedMembers,true).to.have.same.deep.ordered.members(t);};y.notSameDeepOrderedMembers=function(e,t,n){new w(e,n,y.notSameDeepOrderedMembers,true).to.not.have.same.deep.ordered.members(t);};y.includeMembers=function(e,t,n){new w(e,n,y.includeMembers,true).to.include.members(t);};y.notIncludeMembers=function(e,t,n){new w(e,n,y.notIncludeMembers,true).to.not.include.members(t);};y.includeDeepMembers=function(e,t,n){new w(e,n,y.includeDeepMembers,true).to.include.deep.members(t);};y.notIncludeDeepMembers=function(e,t,n){new w(e,n,y.notIncludeDeepMembers,true).to.not.include.deep.members(t);};y.includeOrderedMembers=function(e,t,n){new w(e,n,y.includeOrderedMembers,true).to.include.ordered.members(t);};y.notIncludeOrderedMembers=function(e,t,n){new w(e,n,y.notIncludeOrderedMembers,true).to.not.include.ordered.members(t);};y.includeDeepOrderedMembers=function(e,t,n){new w(e,n,y.includeDeepOrderedMembers,true).to.include.deep.ordered.members(t);};y.notIncludeDeepOrderedMembers=function(e,t,n){new w(e,n,y.notIncludeDeepOrderedMembers,true).to.not.include.deep.ordered.members(t);};y.oneOf=function(e,t,n){new w(e,n,y.oneOf,true).to.be.oneOf(t);};y.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${H(e)} to be an iterable`:`expected ${H(e)} to be an iterable`,new G(t,void 0,y.isIterable)};y.changes=function(e,t,n,r){arguments.length===3&&typeof t=="function"&&(r=n,n=null),new w(e,r,y.changes,true).to.change(t,n);};y.changesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,o=s;}else arguments.length===3&&(r=n,n=null);new w(e,o,y.changesBy,true).to.change(t,n).by(r);};y.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new w(e,r,y.doesNotChange,true).to.not.change(t,n)};y.changesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,o=s;}else arguments.length===3&&(r=n,n=null);new w(e,o,y.changesButNotBy,true).to.change(t,n).but.not.by(r);};y.increases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new w(e,r,y.increases,true).to.increase(t,n)};y.increasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,o=s;}else arguments.length===3&&(r=n,n=null);new w(e,o,y.increasesBy,true).to.increase(t,n).by(r);};y.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new w(e,r,y.doesNotIncrease,true).to.not.increase(t,n)};y.increasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,o=s;}else arguments.length===3&&(r=n,n=null);new w(e,o,y.increasesButNotBy,true).to.increase(t,n).but.not.by(r);};y.decreases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new w(e,r,y.decreases,true).to.decrease(t,n)};y.decreasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,o=s;}else arguments.length===3&&(r=n,n=null);new w(e,o,y.decreasesBy,true).to.decrease(t,n).by(r);};y.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new w(e,r,y.doesNotDecrease,true).to.not.decrease(t,n)};y.doesNotDecreaseBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,o=s;}else arguments.length===3&&(r=n,n=null);return new w(e,o,y.doesNotDecreaseBy,true).to.not.decrease(t,n).by(r)};y.decreasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,o=s;}else arguments.length===3&&(r=n,n=null);new w(e,o,y.decreasesButNotBy,true).to.decrease(t,n).but.not.by(r);};y.ifError=function(e){if(e)throw e};y.isExtensible=function(e,t){new w(e,t,y.isExtensible,true).to.be.extensible;};y.isNotExtensible=function(e,t){new w(e,t,y.isNotExtensible,true).to.not.be.extensible;};y.isSealed=function(e,t){new w(e,t,y.isSealed,true).to.be.sealed;};y.isNotSealed=function(e,t){new w(e,t,y.isNotSealed,true).to.not.be.sealed;};y.isFrozen=function(e,t){new w(e,t,y.isFrozen,true).to.be.frozen;};y.isNotFrozen=function(e,t){new w(e,t,y.isNotFrozen,true).to.not.be.frozen;};y.isEmpty=function(e,t){new w(e,t,y.isEmpty,true).to.be.empty;};y.isNotEmpty=function(e,t){new w(e,t,y.isNotEmpty,true).to.not.be.empty;};y.containsSubset=function(e,t,n){new w(e,n).to.containSubset(t);};y.doesNotContainSubset=function(e,t,n){new w(e,n).to.not.containSubset(t);};var ty=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of ty)y[t]=y[e];var Jl=[];function _n(e){let t={use:_n,AssertionError:G,util:Ke,config:ve,expect:En,assert:y,Assertion:w,...zu};return ~Jl.indexOf(e)||(e(t,Ke),Jl.push(e)),t}i(_n,"use");x(_n,"use");var Zu=i((e,t)=>{function n(s,a){t.addProperty(e.Assertion.prototype,s,function(){let l=e.Assertion.prototype[a];if(!l)throw new Error(`Cannot delegate to ${String(a)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return l.call(this)});}i(n,"defProperty");function r(s,a,...l){t.addProperty(e.Assertion.prototype,s,function(){let c=e.Assertion.prototype[a];if(!c)throw new Error(`Cannot delegate to ${String(a)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return c.call(this,...l)});}i(r,"defPropertyWithArgs");function o(s,a){t.addMethod(e.Assertion.prototype,s,function(...l){let c=e.Assertion.prototype[a];if(!c)throw new Error(`Cannot delegate to ${String(a)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return c.call(this,...l)});}i(o,"defMethod"),n("called","toHaveBeenCalled"),n("calledOnce","toHaveBeenCalledOnce"),r("calledTwice","toHaveBeenCalledTimes",2),r("calledThrice","toHaveBeenCalledTimes",3),o("callCount","toHaveBeenCalledTimes"),o("calledWith","toHaveBeenCalledWith"),o("calledOnceWith","toHaveBeenCalledExactlyOnceWith"),o("lastCalledWith","toHaveBeenLastCalledWith"),o("nthCalledWith","toHaveBeenNthCalledWith"),o("returned","toHaveReturned"),o("returnedWith","toHaveReturnedWith"),o("returnedTimes","toHaveReturnedTimes"),o("lastReturnedWith","toHaveLastReturnedWith"),o("nthReturnedWith","toHaveNthReturnedWith"),o("calledBefore","toHaveBeenCalledBefore"),o("calledAfter","toHaveBeenCalledAfter");},"ChaiStyleAssertions"),Pr=Symbol.for("matchers-object"),In=Symbol.for("$$jest-matchers-object"),An=Symbol.for("expect-global"),Vr=Symbol.for("asymmetric-matchers-object"),Qu={toSatisfy(e,t,n){let{printReceived:r,printExpected:o,matcherHint:s}=this.utils,a=t(e);return {pass:a,message:i(()=>a?`${s(".not.toSatisfy","received","")}
62
83
 
63
84
  Expected value to not satisfy:
64
85
  ${n||o(t)}
65
86
  Received:
66
- ${r(e)}`:`${i(".toSatisfy","received","")}
87
+ ${r(e)}`:`${s(".toSatisfy","received","")}
67
88
 
68
89
  Expected value to satisfy:
69
90
  ${n||o(t)}
70
91
 
71
92
  Received:
72
- ${r(e)}`,"message")}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:o,printExpected:i,matcherHint:s}=this.utils,c;if(Array.isArray(t))c=t.length===0||t.some(u=>n(u,e,r));else if(t instanceof Set)c=t.size===0||t.has(e)||[...t].some(u=>n(u,e,r));else throw new TypeError(`You must provide an array or set to ${s(".toBeOneOf")}, not '${typeof t}'.`);return {pass:c,message:a(()=>c?`${s(".not.toBeOneOf","received","")}
93
+ ${r(e)}`,"message")}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:o,printExpected:s,matcherHint:a}=this.utils,l;if(Array.isArray(t))l=t.length===0||t.some(c=>n(c,e,r));else if(t instanceof Set)l=t.size===0||t.has(e)||[...t].some(c=>n(c,e,r));else throw new TypeError(`You must provide an array or set to ${a(".toBeOneOf")}, not '${typeof t}'.`);return {pass:l,message:i(()=>l?`${a(".not.toBeOneOf","received","")}
73
94
 
74
95
  Expected value to not be one of:
75
- ${i(t)}
96
+ ${s(t)}
76
97
  Received:
77
- ${o(e)}`:`${s(".toBeOneOf","received","")}
98
+ ${o(e)}`:`${a(".toBeOneOf","received","")}
78
99
 
79
100
  Expected value to be one of:
80
- ${i(t)}
101
+ ${s(t)}
81
102
 
82
103
  Received:
83
- ${o(e)}`,"message")}}},fr=ne.green,Ni=ne.red,sm=ne.inverse,am=ne.bold,pt=ne.dim;function cm(e,t="received",n="expected",r={}){let{comment:o="",isDirectExpectCall:i=false,isNot:s=false,promise:c="",secondArgument:u="",expectedColor:l=fr,receivedColor:f=Ni,secondArgumentColor:h=fr}=r,d="",p="expect";return !i&&t!==""&&(d+=pt(`${p}(`)+f(t),p=")"),c!==""&&(d+=pt(`${p}.`)+c,p=""),s&&(d+=`${pt(`${p}.`)}not`,p=""),e.includes(".")?p+=e:(d+=pt(`${p}.`)+e,p=""),n===""?p+="()":(d+=pt(`${p}(`)+l(n),u&&(d+=pt(", ")+h(u)),p=")"),o!==""&&(p+=` // ${o}`),p!==""&&(d+=pt(p)),d}a(cm,"matcherHint");var lm="\xB7";function Il(e){return e.replace(/\s+$/gm,t=>lm.repeat(t.length))}a(Il,"replaceTrailingSpaces");function um(e){return Ni(Il(be(e)))}a(um,"printReceived");function fm(e){return fr(Il(be(e)))}a(fm,"printExpected");function Cl(){return {EXPECTED_COLOR:fr,RECEIVED_COLOR:Ni,INVERTED_COLOR:sm,BOLD_WEIGHT:am,DIM_COLOR:pt,diff:Tt,matcherHint:cm,printReceived:um,printExpected:fm,printDiffOrStringify:Vn,printWithType:hm}}a(Cl,"getMatcherUtils");function hm(e,t,n){let r=vt(t),o=r!=="null"&&r!=="undefined"?`${e} has type: ${r}
84
- `:"",i=`${e} has value: ${n(t)}`;return o+i}a(hm,"printWithType");function kl(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${vt(e)}"`);globalThis[pn].customEqualityTesters.push(...e);}a(kl,"addCustomEqualityTesters");function Ai(){return globalThis[pn].customEqualityTesters}a(Ai,"getCustomEqualityTesters");function K(e,t,n,r){return n=n||[],hn(e,t,[],[],n,r?$l:mm)}a(K,"equals");function bl(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&Ye("Function",e.asymmetricMatch)}a(bl,"isAsymmetric");function dm(e,t,n){let r=bl(e),o=bl(t);if(!(r&&o)){if(r)return e.asymmetricMatch(t,n);if(o)return t.asymmetricMatch(e,n)}}a(dm,"asymmetricMatch");function hn(e,t,n,r,o,i){let s=true,c=dm(e,t,o);if(c!==void 0)return c;let u={equals:K};for(let m=0;m<o.length;m++){let y=o[m].call(u,e,t,o);if(y!==void 0)return y}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return true;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return false;switch(l){case "[object Boolean]":case "[object String]":case "[object Number]":return typeof e!=typeof t?false:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case "[object Date]":{let m=+e,y=+t;return m===y||Number.isNaN(m)&&Number.isNaN(y)}case "[object RegExp]":return e.source===t.source&&e.flags===t.flags;case "[object Temporal.Instant]":case "[object Temporal.ZonedDateTime]":case "[object Temporal.PlainDateTime]":case "[object Temporal.PlainDate]":case "[object Temporal.PlainTime]":case "[object Temporal.PlainYearMonth]":case "[object Temporal.PlainMonthDay]":return e.equals(t);case "[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return false;if(vl(e)&&vl(t))return e.isEqualNode(t);let f=n.length;for(;f--;){if(n[f]===e)return r[f]===t;if(r[f]===t)return false}if(n.push(e),r.push(t),l==="[object Array]"&&e.length!==t.length)return false;if(e instanceof Error&&t instanceof Error)try{return pm(e,t,n,r,o,i)}finally{n.pop(),r.pop();}let h=wl(e,i),d,p=h.length;if(wl(t,i).length!==p)return false;for(;p--;)if(d=h[p],s=i(t,d)&&hn(e[d],t[d],n,r,o,i),!s)return false;return n.pop(),r.pop(),s}a(hn,"eq");function pm(e,t,n,r,o,i){let s=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&s&&(s=hn(e.cause,t.cause,n,r,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=hn(e.errors,t.errors,n,r,o,i)),s&&(s=hn({...e},{...t},n,r,o,i)),s}a(pm,"isErrorEqual");function wl(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(r=>Object.getOwnPropertyDescriptor(e,r).enumerable))}a(wl,"keys");function mm(e,t){return $l(e,t)&&e[t]!==void 0}a(mm,"hasDefinedKey");function $l(e,t){return Object.hasOwn(e,t)}a($l,"hasKey");function Ye(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}a(Ye,"isA");function vl(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}a(vl,"isDomNode");var Nl="@@__IMMUTABLE_KEYED__@@",Al="@@__IMMUTABLE_SET__@@",gm="@@__IMMUTABLE_LIST__@@",vr="@@__IMMUTABLE_ORDERED__@@",ym="@@__IMMUTABLE_RECORD__@@";function bm(e){return !!(e&&e[Nl]&&!e[vr])}a(bm,"isImmutableUnorderedKeyed");function wm(e){return !!(e&&e[Al]&&!e[vr])}a(wm,"isImmutableUnorderedSet");function Sr(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(Sr,"isObjectLiteral");function vm(e){return !!(e&&Sr(e)&&e[gm])}a(vm,"isImmutableList");function Sm(e){return !!(e&&Sr(e)&&e[Nl]&&e[vr])}a(Sm,"isImmutableOrderedKeyed");function Tm(e){return !!(e&&Sr(e)&&e[Al]&&e[vr])}a(Tm,"isImmutableOrderedSet");function Em(e){return !!(e&&Sr(e)&&e[ym])}a(Em,"isImmutableRecord");var Pl=Symbol.iterator;function Sl(e){return !!(e!=null&&e[Pl])}a(Sl,"hasIterator");function Ce(e,t,n=[],r=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Sl(e)||!Sl(t))return;if(e.constructor!==t.constructor)return false;let i=r.length;for(;i--;)if(r[i]===e)return o[i]===t;r.push(e),o.push(t);let s=[...n.filter(l=>l!==Ce),c];function c(l,f){return Ce(l,f,[...n],[...r],[...o])}if(a(c,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return false;if(Ye("Set",e)||wm(e)){let l=true;for(let f of e)if(!t.has(f)){let h=false;for(let d of t)K(f,d,s)===true&&(h=true);if(h===false){l=false;break}}return r.pop(),o.pop(),l}else if(Ye("Map",e)||bm(e)){let l=true;for(let f of e)if(!t.has(f[0])||!K(f[1],t.get(f[0]),s)){let h=false;for(let d of t){let p=K(f[0],d[0],s),m=false;p===true&&(m=K(f[1],d[1],s)),m===true&&(h=true);}if(h===false){l=false;break}}return r.pop(),o.pop(),l}}let u=t[Pl]();for(let l of e){let f=u.next();if(f.done||!K(l,f.value,s))return false}if(!u.next().done)return false;if(!vm(e)&&!Sm(e)&&!Tm(e)&&!Em(e)){let l=Object.entries(e),f=Object.entries(t);if(!K(l,f,s))return false}return r.pop(),o.pop(),true}a(Ce,"iterableEquality");function Pi(e,t){return !e||typeof e!="object"||e===Object.prototype?false:Object.hasOwn(e,t)||Pi(Object.getPrototypeOf(e),t)}a(Pi,"hasPropertyInObject");function xm(e){return ht(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}a(xm,"isObjectWithKeys");function Mt(e,t,n=[]){let r=n.filter(i=>i!==Mt),o=a((i=new WeakMap)=>(s,c)=>{if(xm(c))return Object.keys(c).every(u=>{if(c[u]!=null&&typeof c[u]=="object"){if(i.has(c[u]))return K(s[u],c[u],r);i.set(c[u],true);}let l=s!=null&&Pi(s,u)&&K(s[u],c[u],[...r,o(i)]);return i.delete(c[u]),l})},"subsetEqualityWithContext");return o()(e,t)}a(Mt,"subsetEquality");function Tl(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return false}a(Tl,"typeEquality");function El(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t);}catch{return}}if(n.byteLength!==r.byteLength)return false;for(let o=0;o<n.byteLength;o++)if(n.getUint8(o)!==r.getUint8(o))return false;return true}a(El,"arrayBufferEquality");function Ci(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),o=Object.keys(t),i=n.filter(s=>s!==Ci);return K(e,t,i,true)&&K(r,o)}a(Ci,"sparseArrayEquality");function Mm(e,t="#{this}",n="#{exp}"){let r=`expected ${t} to be ${n} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${r}
104
+ ${o(e)}`,"message")}}},Rr=se.green,ki=se.red,ny=se.inverse,ry=se.bold,St=se.dim;function oy(e,t="received",n="expected",r={}){let{comment:o="",isDirectExpectCall:s=false,isNot:a=false,promise:l="",secondArgument:c="",expectedColor:u=Rr,receivedColor:f=ki,secondArgumentColor:h=Rr}=r,d="",p="expect";return !s&&t!==""&&(d+=St(`${p}(`)+f(t),p=")"),l!==""&&(d+=St(`${p}.`)+l,p=""),a&&(d+=`${St(`${p}.`)}not`,p=""),e.includes(".")?p+=e:(d+=St(`${p}.`)+e,p=""),n===""?p+="()":(d+=St(`${p}(`)+u(n),c&&(d+=St(", ")+h(c)),p=")"),o!==""&&(p+=` // ${o}`),p!==""&&(d+=St(p)),d}i(oy,"matcherHint");var sy="\xB7";function ef(e){return e.replace(/\s+$/gm,t=>sy.repeat(t.length))}i(ef,"replaceTrailingSpaces");function iy(e){return ki(ef(ye(e)))}i(iy,"printReceived");function ay(e){return Rr(ef(ye(e)))}i(ay,"printExpected");function tf(){return {EXPECTED_COLOR:Rr,RECEIVED_COLOR:ki,INVERTED_COLOR:ny,BOLD_WEIGHT:ry,DIM_COLOR:St,diff:_t,matcherHint:oy,printReceived:iy,printExpected:ay,printDiffOrStringify:nr,printWithType:cy}}i(tf,"getMatcherUtils");function cy(e,t,n){let r=Mt(t),o=r!=="null"&&r!=="undefined"?`${e} has type: ${r}
105
+ `:"",s=`${e} has value: ${n(t)}`;return o+s}i(cy,"printWithType");function nf(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${Mt(e)}"`);globalThis[In].customEqualityTesters.push(...e);}i(nf,"addCustomEqualityTesters");function Mi(){return globalThis[In].customEqualityTesters}i(Mi,"getCustomEqualityTesters");function K(e,t,n,r){return n=n||[],On(e,t,[],[],n,r?rf:fy)}i(K,"equals");function Ku(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&Ze("Function",e.asymmetricMatch)}i(Ku,"isAsymmetric");function ly(e,t,n){let r=Ku(e),o=Ku(t);if(!(r&&o)){if(r)return e.asymmetricMatch(t,n);if(o)return t.asymmetricMatch(e,n)}}i(ly,"asymmetricMatch");function Ht(e){if(typeof Error.isError=="function")return Error.isError(e);switch(Object.prototype.toString.call(e)){case "[object Error]":case "[object Exception]":case "[object DOMException]":return true;default:return e instanceof Error}}i(Ht,"isError");function On(e,t,n,r,o,s){let a=true,l=ly(e,t,o);if(l!==void 0)return l;let c={equals:K};for(let g=0;g<o.length;g++){let m=o[g].call(c,e,t,o);if(m!==void 0)return m}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return true;if(e===null||t===null)return e===t;let u=Object.prototype.toString.call(e);if(u!==Object.prototype.toString.call(t))return false;switch(u){case "[object Boolean]":case "[object String]":case "[object Number]":return typeof e!=typeof t?false:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case "[object Date]":{let g=+e,m=+t;return g===m||Number.isNaN(g)&&Number.isNaN(m)}case "[object RegExp]":return e.source===t.source&&e.flags===t.flags;case "[object Temporal.Instant]":case "[object Temporal.ZonedDateTime]":case "[object Temporal.PlainDateTime]":case "[object Temporal.PlainDate]":case "[object Temporal.PlainTime]":case "[object Temporal.PlainYearMonth]":case "[object Temporal.PlainMonthDay]":return e.equals(t);case "[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return false;if(Gu(e)&&Gu(t))return e.isEqualNode(t);let f=n.length;for(;f--;){if(n[f]===e)return r[f]===t;if(r[f]===t)return false}if(n.push(e),r.push(t),u==="[object Array]"&&e.length!==t.length)return false;if(Ht(e)&&Ht(t))try{return uy(e,t,n,r,o,s)}finally{n.pop(),r.pop();}let h=Hu(e,s),d,p=h.length;if(Hu(t,s).length!==p)return false;for(;p--;)if(d=h[p],a=s(t,d)&&On(e[d],t[d],n,r,o,s),!a)return false;return n.pop(),r.pop(),a}i(On,"eq");function uy(e,t,n,r,o,s){let a=Object.prototype.toString.call(e)===Object.prototype.toString.call(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&(a&&=On(e.cause,t.cause,n,r,o,s)),e instanceof AggregateError&&t instanceof AggregateError&&(a&&=On(e.errors,t.errors,n,r,o,s)),a&&=On({...e},{...t},n,r,o,s),a}i(uy,"isErrorEqual");function Hu(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(r=>Object.getOwnPropertyDescriptor(e,r).enumerable))}i(Hu,"keys");function fy(e,t){return rf(e,t)&&e[t]!==void 0}i(fy,"hasDefinedKey");function rf(e,t){return Object.hasOwn(e,t)}i(rf,"hasKey");function Ze(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}i(Ze,"isA");function Gu(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}i(Gu,"isDomNode");var of="@@__IMMUTABLE_KEYED__@@",sf="@@__IMMUTABLE_SET__@@",hy="@@__IMMUTABLE_LIST__@@",Kr="@@__IMMUTABLE_ORDERED__@@",py="@@__IMMUTABLE_RECORD__@@";function dy(e){return !!(e&&e[of]&&!e[Kr])}i(dy,"isImmutableUnorderedKeyed");function my(e){return !!(e&&e[sf]&&!e[Kr])}i(my,"isImmutableUnorderedSet");function Hr(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}i(Hr,"isObjectLiteral");function gy(e){return !!(e&&Hr(e)&&e[hy])}i(gy,"isImmutableList");function yy(e){return !!(e&&Hr(e)&&e[of]&&e[Kr])}i(yy,"isImmutableOrderedKeyed");function wy(e){return !!(e&&Hr(e)&&e[sf]&&e[Kr])}i(wy,"isImmutableOrderedSet");function by(e){return !!(e&&Hr(e)&&e[py])}i(by,"isImmutableRecord");var af=Symbol.iterator;function Ju(e){return !!(e!=null&&e[af])}i(Ju,"hasIterator");function ke(e,t,n=[],r=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Ju(e)||!Ju(t))return;if(e.constructor!==t.constructor)return false;let s=r.length;for(;s--;)if(r[s]===e)return o[s]===t;r.push(e),o.push(t);let a=[...n.filter(u=>u!==ke),l];function l(u,f){return ke(u,f,[...n],[...r],[...o])}if(i(l,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return false;if(Ze("Set",e)||my(e)){let u=true;for(let f of e)if(!t.has(f)){let h=false;for(let d of t)K(f,d,a)===true&&(h=true);if(h===false){u=false;break}}return r.pop(),o.pop(),u}else if(Ze("Map",e)||dy(e)){let u=true;for(let f of e)if(!t.has(f[0])||!K(f[1],t.get(f[0]),a)){let h=false;for(let d of t){let p=K(f[0],d[0],a),g=false;p===true&&(g=K(f[1],d[1],a)),g===true&&(h=true);}if(h===false){u=false;break}}return r.pop(),o.pop(),u}}let c=t[af]();for(let u of e){let f=c.next();if(f.done||!K(u,f.value,a))return false}if(!c.next().done)return false;if(!gy(e)&&!yy(e)&&!wy(e)&&!by(e)){let u=Object.entries(e),f=Object.entries(t);if(!K(u,f,a))return false}return r.pop(),o.pop(),true}i(ke,"iterableEquality");function Ci(e,t){return !e||typeof e!="object"||e===Object.prototype?false:Object.hasOwn(e,t)||Ci(Object.getPrototypeOf(e),t)}i(Ci,"hasPropertyInObject");function Ty(e){return Le(e)&&!Ht(e)&&!Array.isArray(e)&&!(e instanceof Date)&&!(e instanceof Set)&&!(e instanceof Map)}i(Ty,"isObjectWithKeys");function At(e,t,n=[]){let r=n.filter(s=>s!==At),o=i((s=new WeakMap)=>(a,l)=>{if(Ty(l))return Object.keys(l).every(c=>{if(l[c]!=null&&typeof l[c]=="object"){if(s.has(l[c]))return K(a[c],l[c],r);s.set(l[c],true);}let u=a!=null&&Ci(a,c)&&K(a[c],l[c],[...r,o(s)]);return s.delete(l[c]),u})},"subsetEqualityWithContext");return o()(e,t)}i(At,"subsetEquality");function Yu(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return false}i(Yu,"typeEquality");function Xu(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t);}catch{return}}if(n.byteLength!==r.byteLength)return false;for(let o=0;o<n.byteLength;o++)if(n.getUint8(o)!==r.getUint8(o))return false;return true}i(Xu,"arrayBufferEquality");function Si(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),o=Object.keys(t),s=n.filter(a=>a!==Si);return K(e,t,s,true)&&K(r,o)}i(Si,"sparseArrayEquality");function Sy(e,t="#{this}",n="#{exp}"){let r=`expected ${t} to be ${n} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${r}
85
106
 
86
107
  If it should pass with deep equality, replace "toBe" with "${e}"
87
108
 
88
109
  Expected: ${t}
89
110
  Received: serializes to the same string
90
- `:r}a(Mm,"generateToBeMessage");function _m(e,t){return `${t} ${e}${t===1?"":"s"}`}a(_m,"pluralize");function Oi(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return (n=Object.getOwnPropertyDescriptor(e,t))===null||n===void 0?void 0:n.enumerable})]}a(Oi,"getObjectKeys");function Om(e,t,n){let r=0,o=a((i=new WeakMap)=>(s,c)=>{if(Array.isArray(s)){if(Array.isArray(c)&&c.length===s.length)return c.map((u,l)=>o(i)(s[l],u))}else {if(s instanceof Date)return s;if(ht(s)&&ht(c)){if(K(s,c,[...n,Ce,Mt]))return c;let u={};i.set(s,u),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(u,"constructor",{enumerable:false,value:s.constructor});for(let l of Oi(s))Pi(c,l)?u[l]=i.has(s[l])?i.get(s[l]):o(i)(s[l],c[l]):i.has(s[l])||(r+=1,ht(s[l])&&(r+=Oi(s[l]).length),o(i)(s[l],c[l]));if(Oi(u).length>0)return u}}return s},"getObjectSubsetWithContext");return {subset:o()(e,t),stripped:r}}a(Om,"getObjectSubset");function Im(e){return !!e&&(typeof e=="object"||typeof e=="function")&&e["~standard"]&&typeof e["~standard"].validate=="function"}a(Im,"isStandardSchema");if(!Object.hasOwn(globalThis,ur)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,ur,{get:a(()=>e,"get")}),Object.defineProperty(globalThis,pn,{configurable:true,get:a(()=>({state:e.get(globalThis[mn]),matchers:t,customEqualityTesters:n}),"get")}),Object.defineProperty(globalThis,wr,{get:a(()=>r,"get")});}function Dt(e){return globalThis[ur].get(e)}a(Dt,"getState");function Tr(e,t){let n=globalThis[ur],r=n.get(t)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,o);}a(Tr,"setState");var Le=class{static{a(this,"AsymmetricMatcher");}$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,n=false){this.sample=t,this.inverse=n;}getMatcherContext(t){return {...Dt(t||globalThis[mn]),equals:K,isNot:this.inverse,customTesters:Ai(),utils:{...Cl(),diff:Tt,stringify:be,iterableEquality:Ce,subsetEquality:Mt}}}};Le.prototype[Symbol.for("chai/inspect")]=function(e){let t=be(this,e.depth,{min:true});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var hr=class extends Le{static{a(this,"StringContaining");}constructor(t,n=false){if(!Ye("String",t))throw new Error("Expected is not a string");super(t,n);}asymmetricMatch(t){let n=Ye("String",t)&&t.includes(this.sample);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},ki=class extends Le{static{a(this,"Anything");}asymmetricMatch(t){return t!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},dr=class extends Le{static{a(this,"ObjectContaining");}constructor(t,n=false){super(t,n);}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,n){return t?Object.hasOwn(t,n)?true:this.hasProperty(this.getPrototype(t),n):false}getProperties(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t).filter(n=>{var r;return (r=Object.getOwnPropertyDescriptor(t,n))===null||r===void 0?void 0:r.enumerable})]}asymmetricMatch(t,n){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=true,o=this.getProperties(this.sample);for(let c of o){var i,s;if(!this.hasProperty(t,c)){r=false;break}let u=((i=Object.getOwnPropertyDescriptor(this.sample,c))===null||i===void 0?void 0:i.value)??this.sample[c],l=((s=Object.getOwnPropertyDescriptor(t,c))===null||s===void 0?void 0:s.value)??t[c];if(!K(u,l,n)){r=false;break}}return this.inverse?!r:r}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},pr=class extends Le{static{a(this,"ArrayContaining");}constructor(t,n=false){super(t,n);}asymmetricMatch(t,n){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let r=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(i=>K(o,i,n)));return this.inverse?!r:r}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},$i=class extends Le{static{a(this,"Any");}constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t);}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return "Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return `Any<${this.fnNameFor(this.sample)}>`}},mr=class extends Le{static{a(this,"StringMatching");}constructor(t,n=false){if(!Ye("String",t)&&!Ye("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),n);}asymmetricMatch(t){let n=Ye("String",t)&&this.sample.test(t);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},gr=class extends Le{static{a(this,"CloseTo");}precision;constructor(t,n=2,r=false){if(!Ye("Number",t))throw new Error("Expected is not a Number");if(!Ye("Number",n))throw new Error("Precision is not a Number");super(t),this.inverse=r,this.precision=n;}asymmetricMatch(t){if(!Ye("Number",t))return false;let n=false;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?n=true:n=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!n:n}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${_m("digit",this.precision)})`].join(" ")}},yr=class extends Le{static{a(this,"SchemaMatching");}result;constructor(t,n=false){if(!Im(t))throw new TypeError("SchemaMatching expected to receive a Standard Schema.");super(t,n);}asymmetricMatch(t){let n=this.sample["~standard"].validate(t);if(n instanceof Promise)throw new TypeError("Async schema validation is not supported in asymmetric matchers.");this.result=n;let r=!this.result.issues||this.result.issues.length===0;return this.inverse?!r:r}toString(){return `Schema${this.inverse?"Not":""}Matching`}getExpectedType(){return "object"}toAsymmetricMatcher(){var t;let{utils:n}=this.getMatcherContext();return (((t=this.result)===null||t===void 0?void 0:t.issues)||[]).length>0?`${this.toString()} ${n.stringify(this.result,void 0,{printBasicPrototype:false})}`:this.toString()}},jl=a((e,t)=>{t.addMethod(e.expect,"anything",()=>new ki),t.addMethod(e.expect,"any",n=>new $i(n)),t.addMethod(e.expect,"stringContaining",n=>new hr(n)),t.addMethod(e.expect,"objectContaining",n=>new dr(n)),t.addMethod(e.expect,"arrayContaining",n=>new pr(n)),t.addMethod(e.expect,"stringMatching",n=>new mr(n)),t.addMethod(e.expect,"closeTo",(n,r)=>new gr(n,r)),t.addMethod(e.expect,"schemaMatching",n=>new yr(n)),e.expect.not={stringContaining:a(n=>new hr(n,true),"stringContaining"),objectContaining:a(n=>new dr(n,true),"objectContaining"),arrayContaining:a(n=>new pr(n,true),"arrayContaining"),stringMatching:a(n=>new mr(n,true),"stringMatching"),closeTo:a((n,r)=>new gr(n,r,true),"closeTo"),schemaMatching:a(n=>new yr(n,true),"schemaMatching")};},"JestAsymmetricMatchers");function xl(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${n?"expected":""})`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(xl,"createAssertionMessage");function Ml(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var s;let u=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(l=>l||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
91
- `,u].join(""));}}),{then(s,c){return i=true,t.then(s,c)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(Ml,"recordAsyncExpect");function _l(e,t){var n;e.result||(e.result={state:"fail"}),e.result.state="fail",(n=e.result).errors||(n.errors=[]),e.result.errors.push(Mo(t));}a(_l,"handleTestError");function Rl(e,t,n){return function(...r){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return n.apply(this,r);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=n.apply(this,r);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(Ia,s=>{_l(o,s);}):i}catch(i){_l(o,i);}}}a(Rl,"wrapAssertion");var Fl=a((e,t)=>{let{AssertionError:n}=e,r=Ai();function o(l,f){let h=a(d=>{let p=Rl(t,d,f);t.addMethod(e.Assertion.prototype,d,p),t.addMethod(globalThis[pn].matchers,d,p);},"addMethod");Array.isArray(l)?l.forEach(d=>h(d)):h(l);}a(o,"def"),["throw","throws","Throw"].forEach(l=>{t.overwriteMethod(e.Assertion.prototype,l,f=>function(...h){let d=t.flag(this,"promise"),p=t.flag(this,"object"),m=t.flag(this,"negate");if(d==="rejects")t.flag(this,"object",()=>{throw p});else if(d==="resolves"&&typeof p!="function"){if(m)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",v={showDiff:false};throw new n(y,v,t.flag(this,"ssfi"))}}f.apply(this,h);});}),o("withTest",function(l){return t.flag(this,"vitest-test",l),this}),o("toEqual",function(l){let f=t.flag(this,"object"),h=K(f,l,[...r,Ce]);return this.assert(h,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,f)}),o("toStrictEqual",function(l){let f=t.flag(this,"object"),h=K(f,l,[...r,Ce,Tl,Ci,El],true);return this.assert(h,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",l,f)}),o("toBe",function(l){let f=this._obj,h=Object.is(f,l),d="";return h||(K(f,l,[...r,Ce,Tl,Ci,El],true)?d="toStrictEqual":K(f,l,[...r,Ce])&&(d="toEqual")),this.assert(h,Mm(d),"expected #{this} not to be #{exp} // Object.is equality",l,f)}),o("toMatchObject",function(l){let f=this._obj,h=K(f,l,[...r,Ce,Mt]),d=t.flag(this,"negate"),{subset:p,stripped:m}=Om(f,l,r);if(h&&d||!h&&!d){let y=t.getMessage(this,[h,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",l,p,false]),v=m===0?y:`${y}
92
- (${m} matching ${m===1?"property":"properties"} omitted from actual)`;throw new n(v,{showDiff:true,expected:l,actual:p})}}),o("toMatch",function(l){let f=this._obj;if(typeof f!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof f}`);return this.assert(typeof l=="string"?f.includes(l):f.match(l),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",l,f)}),o("toContain",function(l){let f=this._obj;if(typeof Node<"u"&&f instanceof Node){if(!(l instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof l}`);return this.assert(f.contains(l),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",l,f)}if(typeof DOMTokenList<"u"&&f instanceof DOMTokenList){me(l,"class name",["string"]);let d=t.flag(this,"negate")?f.value.replace(l,"").trim():`${f.value} ${l}`;return this.assert(f.contains(l),`expected "${f.value}" to contain "${l}"`,`expected "${f.value}" not to contain "${l}"`,d,f.value)}return typeof f=="string"&&typeof l=="string"?this.assert(f.includes(l),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",l,f):(f!=null&&typeof f!="string"&&t.flag(this,"object",Array.from(f)),this.contain(l))}),o("toContainEqual",function(l){let f=t.flag(this,"object"),h=Array.from(f).findIndex(d=>K(d,l,r));this.assert(h!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",l);}),o("toBeTruthy",function(){let l=t.flag(this,"object");this.assert(!!l,"expected #{this} to be truthy","expected #{this} to not be truthy",true,l);}),o("toBeFalsy",function(){let l=t.flag(this,"object");this.assert(!l,"expected #{this} to be falsy","expected #{this} to not be falsy",false,l);}),o("toBeGreaterThan",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f>l,`expected ${f} to be greater than ${l}`,`expected ${f} to be not greater than ${l}`,l,f,false)}),o("toBeGreaterThanOrEqual",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f>=l,`expected ${f} to be greater than or equal to ${l}`,`expected ${f} to be not greater than or equal to ${l}`,l,f,false)}),o("toBeLessThan",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f<l,`expected ${f} to be less than ${l}`,`expected ${f} to be not less than ${l}`,l,f,false)}),o("toBeLessThanOrEqual",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f<=l,`expected ${f} to be less than or equal to ${l}`,`expected ${f} to be not less than or equal to ${l}`,l,f,false)}),o("toBeNaN",function(){let l=t.flag(this,"object");this.assert(Number.isNaN(l),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,l);}),o("toBeUndefined",function(){let l=t.flag(this,"object");this.assert(l===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,l);}),o("toBeNull",function(){let l=t.flag(this,"object");this.assert(l===null,"expected #{this} to be null","expected #{this} not to be null",null,l);}),o("toBeNullable",function(){let l=t.flag(this,"object");this.assert(l==null,"expected #{this} to be nullish","expected #{this} not to be nullish",null,l);}),o("toBeDefined",function(){let l=t.flag(this,"object");this.assert(typeof l<"u","expected #{this} to be defined","expected #{this} to be undefined",l);}),o("toBeTypeOf",function(l){let f=typeof this._obj,h=l===f;return this.assert(h,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",l,f)}),o("toBeInstanceOf",function(l){return this.instanceOf(l)}),o("toHaveLength",function(l){return this.have.length(l)}),o("toHaveProperty",function(...l){Array.isArray(l[0])&&(l[0]=l[0].map(M=>String(M).replace(/([.[\]])/g,"\\$1")).join("."));let f=this._obj,[h,d]=l,p=a(()=>Object.hasOwn(f,h)?{value:f[h],exists:true}:t.getPathInfo(f,h),"getValue"),{value:m,exists:y}=p(),v=y&&(l.length===1||K(d,m,r)),S=l.length===1?"":` with value ${t.objDisplay(d)}`;return this.assert(v,`expected #{this} to have property "${h}"${S}`,`expected #{this} to not have property "${h}"${S}`,d,y?m:void 0)}),o("toBeCloseTo",function(l,f=2){let h=this._obj,d=false,p=0,m=0;return l===Number.POSITIVE_INFINITY&&h===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY&&h===Number.NEGATIVE_INFINITY?d=true:(p=10**-f/2,m=Math.abs(h-l),d=m<p),this.assert(d,`expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${p}`,`expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${p}`,l,h,false)});function i(l){if(!ot(l._obj))throw new TypeError(`${t.inspect(l._obj)} is not a spy or a call to a spy!`)}a(i,"assertIsMock");function s(l){return i(l),l._obj}a(s,"getSpy"),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(l){let f=s(this),h=f.getMockName(),d=f.mock.calls.length;return this.assert(d===l,`expected "${h}" to be called #{exp} times, but got ${d} times`,`expected "${h}" to not be called #{exp} times`,l,d,false)}),o("toHaveBeenCalledOnce",function(){let l=s(this),f=l.getMockName(),h=l.mock.calls.length;return this.assert(h===1,`expected "${f}" to be called once, but got ${h} times`,`expected "${f}" to not be called once`,1,h,false)}),o(["toHaveBeenCalled","toBeCalled"],function(){let l=s(this),f=l.getMockName(),h=l.mock.calls.length,d=h>0,p=t.flag(this,"negate"),m=t.getMessage(this,[d,`expected "${f}" to be called at least once`,`expected "${f}" to not be called at all, but actually been called ${h} times`,true,d]);if(d&&p&&(m=Ii(l,m)),d&&p||!d&&!p)throw new n(m)});function c(l,f){return l.length===f.length&&l.every((h,d)=>K(h,f[d],[...r,Ce]))}a(c,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...l){let f=s(this),h=f.getMockName(),d=f.mock.calls.some(y=>c(y,l)),p=t.flag(this,"negate"),m=t.getMessage(this,[d,`expected "${h}" to be called with arguments: #{exp}`,`expected "${h}" to not be called with arguments: #{exp}`,l]);if(d&&p||!d&&!p)throw new n(Ii(f,m,l))}),o("toHaveBeenCalledExactlyOnceWith",function(...l){let f=s(this),h=f.getMockName(),d=f.mock.calls.length,m=f.mock.calls.some(S=>c(S,l))&&d===1,y=t.flag(this,"negate"),v=t.getMessage(this,[m,`expected "${h}" to be called once with arguments: #{exp}`,`expected "${h}" to not be called once with arguments: #{exp}`,l]);if(m&&y||!m&&!y)throw new n(Ii(f,v,l))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(l,...f){let h=s(this),d=h.getMockName(),p=h.mock.calls[l-1],m=h.mock.calls.length,y=l<=m;this.assert(p&&c(p,f),`expected ${dn(l)} "${d}" call to have been called with #{exp}${y?"":`, but called only ${m} times`}`,`expected ${dn(l)} "${d}" call to not have been called with #{exp}`,f,p,y);}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...l){let f=s(this),h=f.getMockName(),d=f.mock.calls.at(-1);this.assert(d&&c(d,l),`expected last "${h}" call to have been called with #{exp}`,`expected last "${h}" call to not have been called with #{exp}`,l,d);});function u(l,f,h){let d=l.mock.invocationCallOrder,p=f.mock.invocationCallOrder;return d.length===0?!h:p.length===0?false:d[0]<p[0]}a(u,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(l,f=true){let h=s(this);if(!ot(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(u(h,l,f),`expected "${h.getMockName()}" to have been called before "${l.getMockName()}"`,`expected "${h.getMockName()}" to not have been called before "${l.getMockName()}"`,l,h);}),o(["toHaveBeenCalledAfter"],function(l,f=true){let h=s(this);if(!ot(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(u(l,h,f),`expected "${h.getMockName()}" to have been called after "${l.getMockName()}"`,`expected "${h.getMockName()}" to not have been called after "${l.getMockName()}"`,l,h);}),o(["toThrow","toThrowError"],function(l){if(typeof l=="string"||typeof l>"u"||l instanceof RegExp)return this.throws(l===""?/^$/:l);let f=this._obj,h=t.flag(this,"promise"),d=t.flag(this,"negate"),p=null;if(h==="rejects")p=f;else if(h==="resolves"&&typeof f!="function"){if(d)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:false};throw new n(m,y,t.flag(this,"ssfi"))}}else {let m=false;try{f();}catch(y){m=true,p=y;}if(!m&&!d){let y=t.flag(this,"message")||"expected function to throw an error, but it didn't",v={showDiff:false};throw new n(y,v,t.flag(this,"ssfi"))}}if(typeof l=="function"){let m=l.name||l.prototype.constructor.name;return this.assert(p&&p instanceof l,`expected error to be instance of ${m}`,`expected error not to be instance of ${m}`,l,p)}if(l instanceof Error){let m=K(p,l,[...r,Ce]);return this.assert(m,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",l,p)}if(typeof l=="object"&&"asymmetricMatch"in l&&typeof l.asymmetricMatch=="function"){let m=l;return this.assert(p&&m.asymmetricMatch(p),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",m,p)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof l}"`)}),[{name:"toHaveResolved",condition:a(l=>l.mock.settledResults.length>0&&l.mock.settledResults.some(({type:f})=>f==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:a(l=>l.mock.calls.length>0&&l.mock.results.some(({type:f})=>f!=="throw"),"condition"),action:"called"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(){let d=s(this),p=d.getMockName(),m=f(d);this.assert(m,`expected "${p}" to be successfully ${h} at least once`,`expected "${p}" to not be successfully ${h}`,m,!m,false);});}),[{name:"toHaveResolvedTimes",condition:a((l,f)=>l.mock.settledResults.reduce((h,{type:d})=>d==="fulfilled"?++h:h,0)===f,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:a((l,f)=>l.mock.results.reduce((h,{type:d})=>d==="throw"?h:++h,0)===f,"condition"),action:"called"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d){let p=s(this),m=p.getMockName(),y=f(p,d);this.assert(y,`expected "${m}" to be successfully ${h} ${d} times`,`expected "${m}" to not be successfully ${h} ${d} times`,`expected resolved times: ${d}`,`received resolved times: ${y}`,false);});}),[{name:"toHaveResolvedWith",condition:a((l,f)=>l.mock.settledResults.some(({type:h,value:d})=>h==="fulfilled"&&K(f,d)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:a((l,f)=>l.mock.results.some(({type:h,value:d})=>h==="return"&&K(f,d)),"condition"),action:"return"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d){let p=s(this),m=f(p,d),y=t.flag(this,"negate");if(m&&y||!m&&!y){let v=p.getMockName(),S=t.getMessage(this,[m,`expected "${v}" to ${h} with: #{exp} at least once`,`expected "${v}" to not ${h} with: #{exp}`,d]),M=h==="return"?p.mock.results:p.mock.settledResults;throw new n(Cm(p,M,S,d))}});}),[{name:"toHaveLastResolvedWith",condition:a((l,f)=>{let h=l.mock.settledResults.at(-1);return !!(h&&h.type==="fulfilled"&&K(h.value,f))},"condition"),action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:a((l,f)=>{let h=l.mock.results.at(-1);return !!(h&&h.type==="return"&&K(h.value,f))},"condition"),action:"return"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d){let p=s(this),y=(h==="return"?p.mock.results:p.mock.settledResults).at(-1),v=p.getMockName();this.assert(f(p,d),`expected last "${v}" call to ${h} #{exp}`,`expected last "${v}" call to not ${h} #{exp}`,d,y?.value);});}),[{name:"toHaveNthResolvedWith",condition:a((l,f,h)=>{let d=l.mock.settledResults[f-1];return d&&d.type==="fulfilled"&&K(d.value,h)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:a((l,f,h)=>{let d=l.mock.results[f-1];return d&&d.type==="return"&&K(d.value,h)},"condition"),action:"return"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d,p){let m=s(this),y=m.getMockName(),S=(h==="return"?m.mock.results:m.mock.settledResults)[d-1],M=`${dn(d)} call`;this.assert(f(m,d,p),`expected ${M} "${y}" call to ${h} #{exp}`,`expected ${M} "${y}" call to not ${h} #{exp}`,p,S?.value);});}),o("withContext",function(l){for(let f in l)t.flag(this,f,l[f]);return this}),t.addProperty(e.Assertion.prototype,"resolves",a(function(){let f=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),d=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof d?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof d}'.`);let p=new Proxy(this,{get:a((m,y,v)=>{let S=Reflect.get(m,y,v);return typeof S!="function"?S instanceof e.Assertion?p:S:(...M)=>{t.flag(this,"_name",y);let $=d.then(O=>(t.flag(this,"object",O),S.call(this,...M)),O=>{let C=new n(`promise rejected "${t.inspect(O)}" instead of resolving`,{showDiff:false});throw C.cause=O,C.stack=f.stack.replace(f.message,C.message),C});return Ml(h,$,xl(t,this,!!M.length),f)}},"get")});return p},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",a(function(){let f=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),d=t.flag(this,"object"),p=typeof d=="function"?d():d;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof p}'.`);let m=new Proxy(this,{get:a((y,v,S)=>{let M=Reflect.get(y,v,S);return typeof M!="function"?M instanceof e.Assertion?m:M:(...$)=>{t.flag(this,"_name",v);let O=p.then(C=>{let N=new n(`promise resolved "${t.inspect(C)}" instead of rejecting`,{showDiff:true,expected:new Error("rejected promise"),actual:C});throw N.stack=f.stack.replace(f.message,N.message),N},C=>(t.flag(this,"object",C),M.call(this,...$)));return Ml(h,O,xl(t,this,!!$.length),f)}},"get")});return m},"__VITEST_REJECTS__"));},"JestChaiExpect");function dn(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}a(dn,"ordinalOf");function Ii(e,t,n){return e.mock.calls.length&&(t+=ne.gray(`
93
-
94
- Received:
111
+ `:r}i(Sy,"generateToBeMessage");function Ey(e,t){return `${t} ${e}${t===1?"":"s"}`}i(Ey,"pluralize");function bi(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}i(bi,"getObjectKeys");function vy(e,t,n){let r=0,o=i((s=new WeakMap)=>(a,l)=>{if(Array.isArray(a)){if(Array.isArray(l)&&l.length===a.length)return l.map((c,u)=>o(s)(a[u],c))}else {if(a instanceof Date)return a;if(Le(a)&&Le(l)){if(K(a,l,[...n,ke,At]))return l;let c={};s.set(a,c),typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:false,value:a.constructor});for(let u of bi(a))Ci(l,u)?c[u]=s.has(a[u])?s.get(a[u]):o(s)(a[u],l[u]):s.has(a[u])||(r+=1,Le(a[u])&&(r+=bi(a[u]).length),o(s)(a[u],l[u]));if(bi(c).length>0)return c}}return a},"getObjectSubsetWithContext");return {subset:o()(e,t),stripped:r}}i(vy,"getObjectSubset");function xy(e){return !!e&&(typeof e=="object"||typeof e=="function")&&e["~standard"]&&typeof e["~standard"].validate=="function"}i(xy,"isStandardSchema");if(!Object.hasOwn(globalThis,Pr)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Pr,{get:i(()=>e,"get")}),Object.defineProperty(globalThis,In,{configurable:true,get:i(()=>({state:e.get(globalThis[An]),matchers:t,customEqualityTesters:n}),"get")}),Object.defineProperty(globalThis,Vr,{get:i(()=>r,"get")});}function Gt(e){return globalThis[Pr].get(e)}i(Gt,"getState");function Gr(e,t){let n=globalThis[Pr],r=n.get(t)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,o);}i(Gr,"setState");var Ge=class{static{i(this,"AsymmetricMatcher");}$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,n=false){this.sample=t,this.inverse=n;}getMatcherContext(t){return {...Gt(t||globalThis[An]),equals:K,isNot:this.inverse,customTesters:Mi(),utils:{...tf(),diff:_t,stringify:ye,iterableEquality:ke,subsetEquality:At}}}};Ge.prototype[Symbol.for("chai/inspect")]=function(e){let t=ye(this,e.depth,{min:true});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var jr=class extends Ge{static{i(this,"StringContaining");}constructor(t,n=false){if(!Ze("String",t))throw new Error("Expected is not a string");super(t,n);}asymmetricMatch(t){let n=Ze("String",t)&&t.includes(this.sample);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},Ei=class extends Ge{static{i(this,"Anything");}asymmetricMatch(t){return t!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},Fr=class extends Ge{static{i(this,"ObjectContaining");}constructor(t,n=false){super(t,n);}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,n){return t?Object.hasOwn(t,n)?true:this.hasProperty(this.getPrototype(t),n):false}getProperties(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t).filter(n=>Object.getOwnPropertyDescriptor(t,n)?.enumerable)]}asymmetricMatch(t,n){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=true,o=this.getProperties(this.sample);for(let s of o){if(!this.hasProperty(t,s)){r=false;break}let a=this.sample[s],l=t[s];if(!K(a,l,n)){r=false;break}}return this.inverse?!r:r}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},Dr=class extends Ge{static{i(this,"ArrayContaining");}constructor(t,n=false){super(t,n);}asymmetricMatch(t,n){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let r=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(s=>K(o,s,n)));return this.inverse?!r:r}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},vi=class extends Ge{static{i(this,"Any");}constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t);}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return "Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return `Any<${this.fnNameFor(this.sample)}>`}},Lr=class extends Ge{static{i(this,"StringMatching");}constructor(t,n=false){if(!Ze("String",t)&&!Ze("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),n);}asymmetricMatch(t){let n=Ze("String",t)&&this.sample.test(t);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},Br=class extends Ge{static{i(this,"CloseTo");}precision;constructor(t,n=2,r=false){if(!Ze("Number",t))throw new Error("Expected is not a Number");if(!Ze("Number",n))throw new Error("Precision is not a Number");super(t),this.inverse=r,this.precision=n;}asymmetricMatch(t){if(!Ze("Number",t))return false;let n=false;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?n=true:n=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!n:n}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${Ey("digit",this.precision)})`].join(" ")}},qr=class extends Ge{static{i(this,"SchemaMatching");}result;constructor(t,n=false){if(!xy(t))throw new TypeError("SchemaMatching expected to receive a Standard Schema.");super(t,n);}asymmetricMatch(t){let n=this.sample["~standard"].validate(t);if(n instanceof Promise)throw new TypeError("Async schema validation is not supported in asymmetric matchers.");this.result=n;let r=!this.result.issues||this.result.issues.length===0;return this.inverse?!r:r}toString(){return `Schema${this.inverse?"Not":""}Matching`}getExpectedType(){return "object"}toAsymmetricMatcher(){let{utils:t}=this.getMatcherContext();return (this.result?.issues||[]).length>0?`${this.toString()} ${t.stringify(this.result,void 0,{printBasicPrototype:false})}`:this.toString()}},cf=i((e,t)=>{t.addMethod(e.expect,"anything",()=>new Ei),t.addMethod(e.expect,"any",n=>new vi(n)),t.addMethod(e.expect,"stringContaining",n=>new jr(n)),t.addMethod(e.expect,"objectContaining",n=>new Fr(n)),t.addMethod(e.expect,"arrayContaining",n=>new Dr(n)),t.addMethod(e.expect,"stringMatching",n=>new Lr(n)),t.addMethod(e.expect,"closeTo",(n,r)=>new Br(n,r)),t.addMethod(e.expect,"schemaMatching",n=>new qr(n)),e.expect.not={stringContaining:i(n=>new jr(n,true),"stringContaining"),objectContaining:i(n=>new Fr(n,true),"objectContaining"),arrayContaining:i(n=>new Dr(n,true),"arrayContaining"),stringMatching:i(n=>new Lr(n,true),"stringMatching"),closeTo:i((n,r)=>new Br(n,r,true),"closeTo"),schemaMatching:i(n=>new qr(n,true),"schemaMatching")};},"JestAsymmetricMatchers");function Ur(e,t,n){let r=e.flag(t,"soft")?".soft":"",o=e.flag(t,"negate")?"not.":"",s=`${e.flag(t,"_name")}(${n?"expected":""})`,a=e.flag(t,"promise"),l=a?`.${a}`:"";return `expect${r}(actual)${l}.${o}${s}`}i(Ur,"createAssertionMessage");function zr(e,t,n,r,o){let s=e;if(s&&t instanceof Promise){t=t.finally(()=>{if(!s.promises)return;let l=s.promises.indexOf(t);l!==-1&&s.promises.splice(l,1);}),s.promises||(s.promises=[]),o&&(t=t.then(Oo,l=>{xi(s,l);})),s.promises.push(t);let a=false;return s.onFinished??=[],s.onFinished.push(()=>{if(!a){let c=(globalThis.__vitest_worker__?.onFilterStackTrace||(u=>u||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in the next Vitest major. ",`Please remember to await the assertion.
112
+ `,c].join(""));}}),{then(l,c){return a=true,t.then(l,c)},catch(l){return a=true,t.catch(l)},finally(l){return a=true,t.finally(l)},[Symbol.toStringTag]:"Promise"}}return t}i(zr,"recordAsyncExpect");function xi(e,t){e.result||={state:"fail"},e.result.state="fail",e.result.errors||=[],e.result.errors.push(Bo(t));}i(xi,"handleTestError");function $t(e,t,n){return function(...r){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))try{return n.apply(this,r)}finally{}let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let s=n.apply(this,r);return s&&typeof s=="object"&&typeof s.then=="function"?s.then(Oo,a=>{xi(o,a);}):s}catch(s){xi(o,s);}}}i($t,"wrapAssertion");var lf=i((e,t)=>{let{AssertionError:n}=e,r=Mi();function o(u,f){let h=i(d=>{let p=$t(t,d,f);t.addMethod(e.Assertion.prototype,d,p),t.addMethod(globalThis[In].matchers,d,p);},"addMethod");Array.isArray(u)?u.forEach(d=>h(d)):h(u);}i(o,"def"),["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,f=>function(...h){let d=t.flag(this,"promise"),p=t.flag(this,"object"),g=t.flag(this,"negate");if(d==="rejects")t.flag(this,"object",()=>{throw p});else if(d==="resolves"&&typeof p!="function"){if(g)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:false};throw new n(m,b,t.flag(this,"ssfi"))}}f.apply(this,h);});}),o("withTest",function(u){return t.flag(this,"vitest-test",u),this}),o("toEqual",function(u){let f=t.flag(this,"object"),h=K(f,u,[...r,ke]);return this.assert(h,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,f)}),o("toStrictEqual",function(u){let f=t.flag(this,"object"),h=K(f,u,[...r,ke,Yu,Si,Xu],true);return this.assert(h,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,f)}),o("toBe",function(u){let f=this._obj,h=Object.is(f,u),d="";return h||(K(f,u,[...r,ke,Yu,Si,Xu],true)?d="toStrictEqual":K(f,u,[...r,ke])&&(d="toEqual")),this.assert(h,Sy(d),"expected #{this} not to be #{exp} // Object.is equality",u,f)}),o("toMatchObject",function(u){let f=this._obj,h=K(f,u,[...r,ke,At]),d=t.flag(this,"negate"),{subset:p,stripped:g}=vy(f,u,r);if(h&&d||!h&&!d){let m=t.getMessage(this,[h,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,p,false]),b=g===0?m:`${m}
113
+ (${g} matching ${g===1?"property":"properties"} omitted from actual)`;throw new n(b,{showDiff:true,expected:u,actual:p})}}),o("toMatch",function(u){let f=this._obj;if(typeof f!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof f}`);return this.assert(typeof u=="string"?f.includes(u):f.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,f)}),o("toContain",function(u){let f=this._obj;if(typeof Node<"u"&&f instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(f.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,f)}if(typeof DOMTokenList<"u"&&f instanceof DOMTokenList){pe(u,"class name",["string"]);let d=t.flag(this,"negate")?f.value.replace(u,"").trim():`${f.value} ${u}`;return this.assert(f.contains(u),`expected "${f.value}" to contain "${u}"`,`expected "${f.value}" not to contain "${u}"`,d,f.value)}return typeof f=="string"&&typeof u=="string"?this.assert(f.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,f):(f!=null&&typeof f!="string"&&t.flag(this,"object",Array.from(f)),this.contain(u))}),o("toContainEqual",function(u){let f=t.flag(this,"object"),h=Array.from(f).findIndex(d=>K(d,u,r));this.assert(h!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u);}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",true,u);}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",false,u);}),o("toBeGreaterThan",function(u){let f=this._obj;return pe(f,"actual",["number","bigint"]),pe(u,"expected",["number","bigint"]),this.assert(f>u,`expected ${f} to be greater than ${u}`,`expected ${f} to be not greater than ${u}`,u,f,false)}),o("toBeGreaterThanOrEqual",function(u){let f=this._obj;return pe(f,"actual",["number","bigint"]),pe(u,"expected",["number","bigint"]),this.assert(f>=u,`expected ${f} to be greater than or equal to ${u}`,`expected ${f} to be not greater than or equal to ${u}`,u,f,false)}),o("toBeLessThan",function(u){let f=this._obj;return pe(f,"actual",["number","bigint"]),pe(u,"expected",["number","bigint"]),this.assert(f<u,`expected ${f} to be less than ${u}`,`expected ${f} to be not less than ${u}`,u,f,false)}),o("toBeLessThanOrEqual",function(u){let f=this._obj;return pe(f,"actual",["number","bigint"]),pe(u,"expected",["number","bigint"]),this.assert(f<=u,`expected ${f} to be less than or equal to ${u}`,`expected ${f} to be not less than or equal to ${u}`,u,f,false)}),o("toBeNaN",function(){let u=t.flag(this,"object");this.assert(Number.isNaN(u),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,u);}),o("toBeUndefined",function(){let u=t.flag(this,"object");this.assert(u===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,u);}),o("toBeNull",function(){let u=t.flag(this,"object");this.assert(u===null,"expected #{this} to be null","expected #{this} not to be null",null,u);}),o("toBeNullable",function(){let u=t.flag(this,"object");this.assert(u==null,"expected #{this} to be nullish","expected #{this} not to be nullish",null,u);}),o("toBeDefined",function(){let u=t.flag(this,"object");this.assert(typeof u<"u","expected #{this} to be defined","expected #{this} to be undefined",u);}),o("toBeTypeOf",function(u){let f=typeof this._obj,h=u===f;return this.assert(h,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,f)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(M=>String(M).replace(/([.[\]])/g,"\\$1")).join("."));let f=this._obj,[h,d]=u,p=i(()=>Object.hasOwn(f,h)?{value:f[h],exists:true}:t.getPathInfo(f,h),"getValue"),{value:g,exists:m}=p(),b=m&&(u.length===1||K(d,g,r)),E=u.length===1?"":` with value ${t.objDisplay(d)}`;return this.assert(b,`expected #{this} to have property "${h}"${E}`,`expected #{this} to not have property "${h}"${E}`,d,m?g:void 0)}),o("toBeCloseTo",function(u,f=2){let h=this._obj,d=false,p=0,g=0;return u===Number.POSITIVE_INFINITY&&h===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&h===Number.NEGATIVE_INFINITY?d=true:(p=10**-f/2,g=Math.abs(h-u),d=g<p),this.assert(d,`expected #{this} to be close to #{exp}, received difference is ${g}, but expected ${p}`,`expected #{this} to not be close to #{exp}, received difference is ${g}, but expected ${p}`,u,h,false)});function s(u){if(!mt(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}i(s,"assertIsMock");function a(u){return s(u),u._obj}i(a,"getSpy"),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let f=a(this),h=f.getMockName(),d=f.mock.calls.length;return this.assert(d===u,`expected "${h}" to be called #{exp} times, but got ${d} times`,`expected "${h}" to not be called #{exp} times`,u,d,false)}),o("toHaveBeenCalledOnce",function(){let u=a(this),f=u.getMockName(),h=u.mock.calls.length;return this.assert(h===1,`expected "${f}" to be called once, but got ${h} times`,`expected "${f}" to not be called once`,1,h,false)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=a(this),f=u.getMockName(),h=u.mock.calls.length,d=h>0,p=t.flag(this,"negate"),g=t.getMessage(this,[d,`expected "${f}" to be called at least once`,`expected "${f}" to not be called at all, but actually been called ${h} times`,true,d]);if(d&&p&&(g=Ti(u,g)),d&&p||!d&&!p)throw new n(g)});function l(u,f){return u.length===f.length&&u.every((h,d)=>K(h,f[d],[...r,ke]))}i(l,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let f=a(this),h=f.getMockName(),d=f.mock.calls.some(m=>l(m,u)),p=t.flag(this,"negate"),g=t.getMessage(this,[d,`expected "${h}" to be called with arguments: #{exp}`,`expected "${h}" to not be called with arguments: #{exp}`,u]);if(d&&p||!d&&!p)throw new n(Ti(f,g,u))}),o("toHaveBeenCalledExactlyOnceWith",function(...u){let f=a(this),h=f.getMockName(),d=f.mock.calls.length,g=f.mock.calls.some(E=>l(E,u))&&d===1,m=t.flag(this,"negate"),b=t.getMessage(this,[g,`expected "${h}" to be called once with arguments: #{exp}`,`expected "${h}" to not be called once with arguments: #{exp}`,u]);if(g&&m||!g&&!m)throw new n(Ti(f,b,u))}),o("toHaveBeenNthCalledWith",function(u,...f){let h=a(this),d=h.getMockName(),p=h.mock.calls[u-1],g=h.mock.calls.length,m=u<=g;this.assert(p&&l(p,f),`expected ${lt(u)} "${d}" call to have been called with #{exp}${m?"":`, but called only ${g} times`}`,`expected ${lt(u)} "${d}" call to not have been called with #{exp}`,f,p,m);}),o("toHaveBeenLastCalledWith",function(...u){let f=a(this),h=f.getMockName(),d=f.mock.calls.at(-1);this.assert(d&&l(d,u),`expected last "${h}" call to have been called with #{exp}`,`expected last "${h}" call to not have been called with #{exp}`,u,d);});function c(u,f,h){let d=u.mock.invocationCallOrder,p=f.mock.invocationCallOrder;return d.length===0?!h:p.length===0?false:d[0]<p[0]}i(c,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(u,f=true){let h=a(this);if(!mt(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(h,u,f),`expected "${h.getMockName()}" to have been called before "${u.getMockName()}"`,`expected "${h.getMockName()}" to not have been called before "${u.getMockName()}"`,u,h);}),o(["toHaveBeenCalledAfter"],function(u,f=true){let h=a(this);if(!mt(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(u,h,f),`expected "${h.getMockName()}" to have been called after "${u.getMockName()}"`,`expected "${h.getMockName()}" to not have been called after "${u.getMockName()}"`,u,h);}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u===""?/^$/:u);let f=this._obj,h=t.flag(this,"promise"),d=t.flag(this,"negate"),p=null;if(h==="rejects")p=f;else if(h==="resolves"&&typeof f!="function"){if(d)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:false};throw new n(m,b,t.flag(this,"ssfi"))}}else {let m=false;try{f();}catch(b){m=true,p=b;}if(!m&&!d){let b=t.flag(this,"message")||"expected function to throw an error, but it didn't",E={showDiff:false};throw new n(b,E,t.flag(this,"ssfi"))}}if(typeof u=="function"){let m=u.name||u.prototype.constructor.name;return this.assert(p&&p instanceof u,`expected error to be instance of ${m}`,`expected error not to be instance of ${m}`,u,p)}if(Ht(u)){let m=K(p,u,[...r,ke]);return this.assert(m,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,p)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let m=u;return this.assert(p&&m.asymmetricMatch(p),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",m,p)}let g=K(p,u,[...r,ke]);return this.assert(g,"expected a thrown value to equal #{exp}","expected a thrown value not to equal #{exp}",u,p)}),[{name:"toHaveResolved",condition:i(u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:f})=>f==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:i(u=>u.mock.calls.length>0&&u.mock.results.some(({type:f})=>f!=="throw"),"condition"),action:"called"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(){let d=a(this),p=d.getMockName(),g=f(d);this.assert(g,`expected "${p}" to be successfully ${h} at least once`,`expected "${p}" to not be successfully ${h}`,g,!g,false);});}),[{name:"toHaveResolvedTimes",condition:i((u,f)=>u.mock.settledResults.reduce((h,{type:d})=>d==="fulfilled"?++h:h,0)===f,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:i((u,f)=>u.mock.results.reduce((h,{type:d})=>d==="throw"?h:++h,0)===f,"condition"),action:"called"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(d){let p=a(this),g=p.getMockName(),m=f(p,d);this.assert(m,`expected "${g}" to be successfully ${h} ${d} times`,`expected "${g}" to not be successfully ${h} ${d} times`,`expected resolved times: ${d}`,`received resolved times: ${m}`,false);});}),[{name:"toHaveResolvedWith",condition:i((u,f)=>u.mock.settledResults.some(({type:h,value:d})=>h==="fulfilled"&&K(f,d)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:i((u,f)=>u.mock.results.some(({type:h,value:d})=>h==="return"&&K(f,d)),"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(d){let p=a(this),g=f(p,d),m=t.flag(this,"negate");if(g&&m||!g&&!m){let b=p.getMockName(),E=t.getMessage(this,[g,`expected "${b}" to ${h} with: #{exp} at least once`,`expected "${b}" to not ${h} with: #{exp}`,d]),M=h==="return"?p.mock.results:p.mock.settledResults;throw new n(ky(p,M,E,d))}});}),[{name:"toHaveLastResolvedWith",condition:i((u,f)=>{let h=u.mock.settledResults.at(-1);return !!(h&&h.type==="fulfilled"&&K(h.value,f))},"condition"),action:"resolve"},{name:"toHaveLastReturnedWith",condition:i((u,f)=>{let h=u.mock.results.at(-1);return !!(h&&h.type==="return"&&K(h.value,f))},"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(d){let p=a(this),m=(h==="return"?p.mock.results:p.mock.settledResults).at(-1),b=p.getMockName();this.assert(f(p,d),`expected last "${b}" call to ${h} #{exp}`,`expected last "${b}" call to not ${h} #{exp}`,d,m?.value);});}),[{name:"toHaveNthResolvedWith",condition:i((u,f,h)=>{let d=u.mock.settledResults[f-1];return d&&d.type==="fulfilled"&&K(d.value,h)},"condition"),action:"resolve"},{name:"toHaveNthReturnedWith",condition:i((u,f,h)=>{let d=u.mock.results[f-1];return d&&d.type==="return"&&K(d.value,h)},"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(d,p){let g=a(this),m=g.getMockName(),E=(h==="return"?g.mock.results:g.mock.settledResults)[d-1],M=`${lt(d)} call`;this.assert(f(g,d,p),`expected ${M} "${m}" call to ${h} #{exp}`,`expected ${M} "${m}" call to not ${h} #{exp}`,p,E?.value);});}),o("withContext",function(u){for(let f in u)t.flag(this,f,u[f]);return this}),t.addProperty(e.Assertion.prototype,"resolves",i(function(){let f=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),d=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof d?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof d}'.`);let p=new Proxy(this,{get:i((g,m,b)=>{let E=Reflect.get(g,m,b);return typeof E!="function"?E instanceof e.Assertion?p:E:(...M)=>{t.flag(this,"_name",m);let A=Promise.resolve(d).then(C=>(t.flag(this,"object",C),E.call(this,...M)),C=>{let O=new n(`promise rejected "${t.inspect(C)}" instead of resolving`,{showDiff:false});throw O.cause=C,O}).catch(C=>{throw Ht(C)&&f.stack&&(C.stack=f.stack.replace(f.message,C.message)),C});return zr(h,A,Ur(t,this,!!M.length),f,t.flag(this,"soft"))}},"get")});return p},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",i(function(){let f=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),d=t.flag(this,"object"),p=typeof d=="function"?d():d;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof p}'.`);let g=new Proxy(this,{get:i((m,b,E)=>{let M=Reflect.get(m,b,E);return typeof M!="function"?M instanceof e.Assertion?g:M:(...A)=>{t.flag(this,"_name",b);let C=Promise.resolve(p).then(O=>{throw new n(`promise resolved "${t.inspect(O)}" instead of rejecting`,{showDiff:true,expected:new Error("rejected promise"),actual:O})},O=>(t.flag(this,"object",O),M.call(this,...A))).catch(O=>{throw Ht(O)&&f.stack&&(O.stack=f.stack.replace(f.message,O.message)),O});return zr(h,C,Ur(t,this,!!A.length),f,t.flag(this,"soft"))}},"get")});return g},"__VITEST_REJECTS__"));},"JestChaiExpect");function Ti(e,t,n){return e.mock.calls.length&&(t+=se.gray(`
95
114
 
96
- ${e.mock.calls.map((r,o)=>{let i=ne.bold(` ${dn(o+1)} ${e.getMockName()} call:
115
+ Received:
97
116
 
98
- `);return n?i+=Tt(n,r,{omitAnnotationLines:true}):i+=be(r).split(`
99
- `).map(s=>` ${s}`).join(`
100
- `),i+=`
101
- `,i}).join(`
102
- `)}`)),t+=ne.gray(`
117
+ ${e.mock.calls.map((r,o)=>{let s=se.bold(` ${lt(o+1)} ${e.getMockName()} call:
103
118
 
104
- Number of calls: ${ne.bold(e.mock.calls.length)}
105
- `),t}a(Ii,"formatCalls");function Cm(e,t,n,r){return t.length&&(n+=ne.gray(`
119
+ `);return n?s+=_t(n,r,{omitAnnotationLines:true}):s+=ye(r).split(`
120
+ `).map(a=>` ${a}`).join(`
121
+ `),s+=`
122
+ `,s}).join(`
123
+ `)}`)),t+=se.gray(`
106
124
 
107
- Received:
125
+ Number of calls: ${se.bold(e.mock.calls.length)}
126
+ `),t}i(Ti,"formatCalls");function ky(e,t,n,r){return t.length&&(n+=se.gray(`
108
127
 
109
- ${t.map((o,i)=>{let s=ne.bold(` ${dn(i+1)} ${e.getMockName()} call return:
128
+ Received:
110
129
 
111
- `);return r?s+=Tt(r,o.value,{omitAnnotationLines:true}):s+=be(o).split(`
112
- `).map(c=>` ${c}`).join(`
113
- `),s+=`
114
- `,s}).join(`
115
- `)}`)),n+=ne.gray(`
130
+ ${t.map((o,s)=>{let a=se.bold(` ${lt(s+1)} ${e.getMockName()} call return:
116
131
 
117
- Number of calls: ${ne.bold(e.mock.calls.length)}
118
- `),n}a(Cm,"formatReturns");function km(e,t){let n=e._obj,r=Fe.flag(e,"negate"),o=Fe.flag(e,"promise")||"",i=Fe.flag(e,"message"),s={...Cl(),diff:Tt,stringify:be,iterableEquality:Ce,subsetEquality:Mt},c=Fe.flag(e,"vitest-test"),u=c?.fullTestName??"";return c?.type!=="test"&&(c=void 0),{state:{...Dt(t),task:c,currentTestName:u,customTesters:Ai(),isNot:r,utils:s,promise:o,equals:K,suppressedErrors:[],soft:Fe.flag(e,"soft"),poll:Fe.flag(e,"poll")},isNot:r,obj:n,customMessage:i}}a(km,"getMatcherState");var br=class extends Error{static{a(this,"JestExtendError");}constructor(t,n,r){super(t),this.actual=n,this.expected=r;}};function $m(e,t,n){return (r,o)=>{Object.entries(n).forEach(([i,s])=>{function c(...h){let{state:d,isNot:p,obj:m,customMessage:y}=km(this,t),v=s.call(d,m,...h);if(v&&typeof v=="object"&&typeof v.then=="function")return v.then(({pass:N,message:I,actual:q,expected:X})=>{if(N&&p||!N&&!p){let D=y??I();throw new br(D,q,X)}});let{pass:S,message:M,actual:$,expected:O}=v;if(S&&p||!S&&!p){let C=y??M();throw new br(C,$,O)}}a(c,"expectWrapper");let u=Rl(o,i,c);o.addMethod(globalThis[pn].matchers,i,u),o.addMethod(e.Assertion.prototype,i,u);class l extends Le{static{a(this,"CustomMatcher");}constructor(d=false,...p){super(p,d);}asymmetricMatch(d){let{pass:p}=s.call(this.getMatcherContext(t),d,...this.sample);return this.inverse?!p:p}toString(){return `${this.inverse?"not.":""}${i}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(d=>be(d)).join(", ")}>`}}let f=a((...h)=>new l(false,...h),"customMatcher");Object.defineProperty(t,i,{configurable:true,enumerable:true,value:f,writable:true}),Object.defineProperty(t.not,i,{configurable:true,enumerable:true,value:a((...h)=>new l(true,...h),"value"),writable:true}),Object.defineProperty(globalThis[wr],i,{configurable:true,enumerable:true,value:f,writable:true});});}}a($m,"JestExtendPlugin");var Dl=a((e,t)=>{t.addMethod(e.expect,"extend",(n,r)=>{fn($m(e,n,r));});},"JestExtend");var Ll=Symbol("vitest:SAFE_TIMERS");function at(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}=globalThis[Ll]||globalThis,{nextTick:c}=globalThis[Ll]||globalThis.process||{};return {nextTick:c,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}}a(at,"getSafeTimers");function ql(e,t=setTimeout){return new Promise(n=>t(n,e))}a(ql,"delay");var Nm=/^[A-Za-z]:\//;function Am(e=""){return e&&e.replace(/\\/g,"/").replace(Nm,t=>t.toUpperCase())}a(Am,"normalizeWindowsPath");var Pm=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function jm(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(jm,"cwd");var zl=a(function(...e){e=e.map(r=>Am(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:jm();!o||o.length===0||(t=`${o}/${t}`,n=Bl(o));}return t=Rm(t,!n),n&&!Bl(t)?`/${t}`:t.length>0?t:"."},"resolve");function Rm(e,t){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=e.length;++c){if(c<e.length)s=e[c];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===c-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let u=n.lastIndexOf("/");u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}else if(n.length>0){n="",r=0,o=c,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,c)}`:n=e.slice(o+1,c),r=c-o-1;o=c,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(Rm,"normalizeString");var Bl=a(function(e){return Pm.test(e)},"isAbsolute");var Ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fm=new Uint8Array(64),Dm=new Uint8Array(128);for(let e=0;e<Ul.length;e++){let t=Ul.charCodeAt(e);Fm[e]=t,Dm[t]=e;}var Wl=/^\s*at .*(?:\S:\d+|\(native\))/m,Lm=/^(?:eval@)?(?:\[native code\])?$/;function Vl(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(Vl,"extractLocation");function qm(e){let t=e.trim();if(Lm.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,r="",o;for(let u=0;u<t.length;u++)if(t[u]==="@"){let l=t.slice(u+1);if(l.includes(":")&&l.length>=3){n=u,r=l,o=u>0?t.slice(0,u):void 0;break}}if(n===-1||!r.includes(":")||r.length<3)return null;let[i,s,c]=Vl(r);return !i||!s||!c?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}}a(qm,"parseSingleFFOrSafariStack");function Er(e){let t=e.trim();return Wl.test(t)?Bm(t):qm(t)}a(Er,"parseSingleStack");function Bm(e){let t=e.trim();if(!Wl.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let[o,i,s]=Vl(r?r[1]:n),c=r&&n||"",u=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !u||!i||!s?null:(c.startsWith("async ")&&(c=c.slice(6)),u.startsWith("file://")&&(u=u.slice(7)),u=u.startsWith("node:")||u.startsWith("internal:")?u:zl(u),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:c,file:u,line:Number.parseInt(i),column:Number.parseInt(s)})}a(Bm,"parseSingleV8Stack");var zm=/^[A-Za-z]:\//;function Um(e=""){return e&&e.replace(/\\/g,"/").replace(zm,t=>t.toUpperCase())}a(Um,"normalizeWindowsPath");var Wm=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Vm(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(Vm,"cwd");var xr=a(function(...e){e=e.map(r=>Um(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:Vm();!o||o.length===0||(t=`${o}/${t}`,n=ji(o));}return t=Kl(t,!n),n&&!ji(t)?`/${t}`:t.length>0?t:"."},"resolve");function Kl(e,t){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=e.length;++c){if(c<e.length)s=e[c];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===c-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let u=n.lastIndexOf("/");u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}else if(n.length>0){n="",r=0,o=c,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,c)}`:n=e.slice(o+1,c),r=c-o-1;o=c,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(Kl,"normalizeString");var ji=a(function(e){return Wm.test(e)},"isAbsolute");function Mr(e,t){function n(o){let i=a(function(...s){return t.apply(o,s)},"chain");Object.assign(i,t),i.withContext=()=>i.bind(o),i.setContext=(s,c)=>{o[s]=c;},i.mergeContext=s=>{Object.assign(o,s);};for(let s of e)Object.defineProperty(i,s,{get(){return n({...o,[s]:true})}});return i}a(n,"create");let r=n({});return r.fn=t,r}a(Mr,"createChainable");function gn(e,t){let n=t.split(`
119
- `).slice(1);for(let r of n){let o=Er(r);if(o&&o.file===e)return o}}a(gn,"findTestFileStackTrace");function Ri(e){let t=[e.name],n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}a(Ri,"getNames");function Lt(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}a(Lt,"createTaskName");var Li=class extends Error{static{a(this,"PendingError");}code="VITEST_PENDING";taskId;constructor(t,n,r){super(t),this.message=t,this.note=r,this.taskId=n.id;}};var eg=new WeakMap,Xl=new WeakMap,Ql=new WeakMap;function tg(e,t){eg.set(e,t);}a(tg,"setFn");function ng(e,t){Xl.set(e,t);}a(ng,"setTestFixture");function rg(e){return Xl.get(e)}a(rg,"getTestFixture");function og(e,t){Ql.set(e,t);}a(og,"setHooks");function ig(e){return Ql.get(e)}a(ig,"getHooks");function sg(e,t){let n=t.reduce((i,s)=>(i[s.prop]=s,i),{}),r={};e.forEach(i=>{let s=n[i.prop]||{...i};r[s.prop]=s;});for(let i in r){var o;let s=r[i];s.deps=(o=s.deps)===null||o===void 0?void 0:o.map(c=>r[c.prop]);}return Object.values(r)}a(sg,"mergeScopedFixtures");function eu(e,t,n){let r=["auto","injected","scope"],o=Object.entries(e).map(([i,s])=>{let c={value:s};if(Array.isArray(s)&&s.length>=2&&ht(s[1])&&Object.keys(s[1]).some(l=>r.includes(l))){var u;Object.assign(c,s[1]);let l=s[0];c.value=c.injected?((u=n.injectValue)===null||u===void 0?void 0:u.call(n,i))??l:l;}return c.scope=c.scope||"test",c.scope==="worker"&&!n.getWorkerContext&&(c.scope="file"),c.prop=i,c.isFn=typeof c.value=="function",c});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(o):t.fixtures=o,o.forEach(i=>{if(i.isFn){let c=nu(i.value);if(c.length&&(i.deps=t.fixtures.filter(({prop:u})=>u!==i.prop&&c.includes(u))),i.scope!=="test"){var s;(s=i.deps)===null||s===void 0||s.forEach(u=>{if(u.isFn&&!(i.scope==="worker"&&u.scope==="worker")&&!(i.scope==="file"&&u.scope!=="test"))throw new SyntaxError(`cannot use the ${u.scope} fixture "${u.prop}" inside the ${i.scope} fixture "${i.prop}"`)});}}}),t}a(eu,"mergeContextFixtures");var Fi=new Map,qt=new Map;function Bi(e,t,n){return r=>{let o=r||n;if(!o)return t({});let i=rg(o);if(!i?.length)return t(o);let s=nu(t),c=i.some(({auto:p})=>p);if(!s.length&&!c)return t(o);Fi.get(o)||Fi.set(o,new Map);let u=Fi.get(o);qt.has(o)||qt.set(o,[]);let l=qt.get(o),f=i.filter(({prop:p,auto:m})=>m||s.includes(p)),h=tu(f);if(!h.length)return t(o);async function d(){for(let p of h){if(u.has(p))continue;let m=await ag(e,p,o,l);o[p.prop]=m,u.set(p,m),p.scope==="test"&&l.unshift(()=>{u.delete(p);});}}return a(d,"resolveFixtures"),d().then(()=>t(o))}}a(Bi,"withFixtures");var _r=new WeakMap;function ag(e,t,n,r){var o;let i=xg(n.task.file),s=(o=e.getWorkerContext)===null||o===void 0?void 0:o.call(e);if(!t.isFn){var c;if(i[c=t.prop]??(i[c]=t.value),s){var u;s[u=t.prop]??(s[u]=t.value);}return t.value}if(t.scope==="test")return Gl(t.value,n,r);if(_r.has(t))return _r.get(t);let l;if(t.scope==="worker"){if(!s)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");l=s;}else l=i;if(t.prop in l)return l[t.prop];qt.has(l)||qt.set(l,[]);let f=qt.get(l),h=Gl(t.value,l,f).then(d=>(l[t.prop]=d,_r.delete(t),d));return _r.set(t,h),h}a(ag,"resolveFixtureValue");async function Gl(e,t,n){let r=ho(),o=false,i=e(t,async s=>{o=true,r.resolve(s);let c=ho();n.push(async()=>{c.resolve(),await i;}),await c;}).catch(s=>{if(!o){r.reject(s);return}throw s});return r}a(Gl,"resolveFixtureFunction");function tu(e,t=new Set,n=[]){return e.forEach(r=>{if(!n.includes(r)){if(!r.isFn||!r.deps){n.push(r);return}if(t.has(r))throw new Error(`Circular fixture dependency detected: ${r.prop} <- ${[...t].reverse().map(o=>o.prop).join(" <- ")}`);t.add(r),tu(r.deps,t,n),n.push(r),t.clear();}}),n}a(tu,"resolveDeps");function nu(e){let t=cg(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);let n=t.match(/[^(]*\(([^)]*)/);if(!n)return [];let r=Hl(n[1]);if(!r.length)return [];let o=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&(o=r[e.__VITEST_FIXTURE_INDEX__],!o))return [];if(!(o[0]==="{"&&o.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${o}".`);let i=o.slice(1,-1).replace(/\s/g,""),s=Hl(i).map(u=>u.replace(/:.*|=.*/g,"")),c=s.at(-1);if(c&&c.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${c}".`);return s}a(nu,"getUsedProps");function cg(e){let t=[],n="none";for(let r=0;r<e.length;++r)n==="singleline"?e[r]===`
120
- `&&(n="none"):n==="multiline"?e[r-1]==="*"&&e[r]==="/"&&(n="none"):n==="none"&&(e[r]==="/"&&e[r+1]==="/"?n="singleline":e[r]==="/"&&e[r+1]==="*"?(n="multiline",r+=2):t.push(e[r]));return t.join("")}a(cg,"filterOutComments");function Hl(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")n.push(e[i]==="{"?"}":"]");else if(e[i]===n.at(-1))n.pop();else if(!n.length&&e[i]===","){let s=e.substring(r,i).trim();s&&t.push(s),r=i+1;}let o=e.substring(r).trim();return o&&t.push(o),t}a(Hl,"splitByComma");var lg;function yn(){return lg}a(yn,"getCurrentTest");function Ot(){return bn().config.hookTimeout}a(Ot,"getDefaultHookTimeout");var ru=Symbol.for("VITEST_CLEANUP_TIMEOUT"),ou=Symbol.for("VITEST_CLEANUP_STACK_TRACE");function iu(e,t=Ot()){me(e,'"beforeAll" callback',["function"]);let n=new Error("STACK_TRACE_ERROR");return It().on("beforeAll",Object.assign(ct(e,t,true,n),{[ru]:t,[ou]:n}))}a(iu,"beforeAll");function su(e,t){return me(e,'"afterAll" callback',["function"]),It().on("afterAll",ct(e,t??Ot(),true,new Error("STACK_TRACE_ERROR")))}a(su,"afterAll");function au(e,t=Ot()){me(e,'"beforeEach" callback',["function"]);let n=new Error("STACK_TRACE_ERROR"),r=bn();return It().on("beforeEach",Object.assign(ct(Bi(r,e),t??Ot(),true,n,wn),{[ru]:t,[ou]:n}))}a(au,"beforeEach");function cu(e,t){me(e,'"afterEach" callback',["function"]);let n=bn();return It().on("afterEach",ct(Bi(n,e),t??Ot(),true,new Error("STACK_TRACE_ERROR"),wn))}a(cu,"afterEach");function lu(e,t){return (n,r)=>{me(n,`"${e}" callback`,["function"]);throw new Error(`Hook ${e}() can only be called inside a test`);}}a(lu,"createTestHook");var _t=mg(),uu=zi(function(e,t,n){It().test.fn.call(this,mt(e),t,n);}),Cr=_t,je=uu,ye,fu,Jl;function hu(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
121
- - "vitest" is imported directly without running "vitest" command
122
- - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
123
- - "vitest" is imported inside Vite / Vitest config file
124
- - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
125
- `)}a(hu,"assert");function bn(){return hu(ye,"the runner"),ye}a(bn,"getRunner");function It(){let e=qe.currentSuite||fu;return hu(e,"the current suite"),e}a(It,"getCurrentSuite");function hg(){return {beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}a(hg,"createSuiteHooks");function Bt(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},r;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e;}else typeof t=="function"&&(r=t);return {options:n,handler:r}}a(Bt,"parseArguments");function dg(e,t=()=>{},n,r,o,i){let s=[],c;p();let u=a(function(v="",S={}){var M,$,O;let C=S?.timeout??ye.config.testTimeout,N=(M=qe.currentSuite)===null||M===void 0?void 0:M.suite,I={id:"",name:v,fullName:Lt([N?.fullName??(($=qe.currentSuite)===null||$===void 0||($=$.file)===null||$===void 0?void 0:$.fullName),v]),fullTestName:Lt([N?.fullTestName,v]),suite:N,each:S.each,fails:S.fails,context:void 0,type:"test",file:N?.file??((O=qe.currentSuite)===null||O===void 0?void 0:O.file),timeout:C,retry:S.retry??ye.config.retry,repeats:S.repeats,mode:S.only?"only":S.skip?"skip":S.todo?"todo":"run",meta:S.meta??Object.create(null),annotations:[],artifacts:[]},q=S.handler;I.mode==="run"&&!q&&(I.mode="todo"),(S.concurrent||!S.sequential&&ye.config.sequence.concurrent)&&(I.concurrent=true),I.shuffle=o?.shuffle;let X=Sg(I,ye);Object.defineProperty(I,"context",{value:X,enumerable:false}),ng(X,S.fixtures);let D=Error.stackTraceLimit;Error.stackTraceLimit=15;let H=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=D,q&&tg(I,ct(pg(Bi(ye,q,X),I),C,false,H,(oe,ue)=>wn([X],ue))),ye.config.includeTaskLocation){let oe=H.stack,ue=gn(Jl,oe);ue&&(I.location={line:ue.line,column:ue.column});}return s.push(I),I},"task"),l=zi(function(v,S,M){let{options:$,handler:O}=Bt(S,M);typeof o=="object"&&($=Object.assign({},o,$)),$.concurrent=this.concurrent||!this.sequential&&$?.concurrent,$.sequential=this.sequential||!this.concurrent&&$?.sequential;let C=u(mt(v),{...this,...$,handler:O});C.type="test";}),f=i,h={type:"collector",name:e,mode:n,suite:c,options:o,test:l,tasks:s,collect:y,task:u,clear:m,on:d,fixtures(){return f},scoped(v){let S=eu(v,{fixtures:f},ye);S.fixtures&&(f=S.fixtures);}};function d(v,...S){ig(c)[v].push(...S);}a(d,"addHook");function p(v){var S,M,$;typeof o=="number"&&(o={timeout:o});let O=(S=qe.currentSuite)===null||S===void 0?void 0:S.suite;if(c={id:"",type:"suite",name:e,fullName:Lt([O?.fullName??((M=qe.currentSuite)===null||M===void 0||(M=M.file)===null||M===void 0?void 0:M.fullName),e]),fullTestName:Lt([O?.fullTestName,e]),suite:O,mode:n,each:r,file:O?.file??(($=qe.currentSuite)===null||$===void 0?void 0:$.file),shuffle:o?.shuffle,tasks:[],meta:Object.create(null),concurrent:o?.concurrent},ye);og(c,hg());}a(p,"initSuite");function m(){s.length=0,p();}a(m,"clear");async function y(v){if(!v)throw new TypeError("File is required to collect tasks.");t&&await wg(h,()=>t(l));let S=[];for(let M of s)S.push(M.type==="collector"?await M.collect(v):M);return c.tasks=S,c}return a(y,"collect"),bg(h),h}a(dg,"createSuiteCollector");function pg(e,t){return(async(...n)=>{let r=await e(...n);if(t.promises){let i=(await Promise.allSettled(t.promises)).map(s=>s.status==="rejected"?s.reason:void 0).filter(Boolean);if(i.length)throw i}return r})}a(pg,"withAwaitAsyncAssertions");function mg(){function e(t,n,r){var o;let i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",s=qe.currentSuite||fu,{options:c,handler:u}=Bt(n,r);i==="run"&&!u&&(i="todo");let l=c.concurrent||this.concurrent||c.sequential===false,f=c.sequential||this.sequential||c.concurrent===false;c={...s?.options,...c,shuffle:this.shuffle??c.shuffle??(s==null||(o=s.options)===null||o===void 0?void 0:o.shuffle)??ye?.config.sequence.shuffle};let h=l||c.concurrent&&!f,d=f||c.sequential&&!l;return c.concurrent=h&&!d,c.sequential=d&&!h,dg(mt(t),u,i,this.each,c,s?.fixtures())}return a(e,"suiteFn"),e.each=function(t,...n){let r=this.withContext();return this.setContext("each",true),Array.isArray(t)&&n.length&&(t=Ir(t,n)),(o,i,s)=>{let c=mt(o),u=t.every(Array.isArray),{options:l,handler:f}=Bt(i,s),h=typeof i=="function";t.forEach((d,p)=>{let m=Array.isArray(d)?d:[d];h?u?r(Qe(c,m,p),f?()=>f(...m):void 0,l.timeout):r(Qe(c,m,p),f?()=>f(d):void 0,l.timeout):u?r(Qe(c,m,p),l,f?()=>f(...m):void 0):r(Qe(c,m,p),l,f?()=>f(d):void 0);}),this.setContext("each",void 0);}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Ir(t,n)),(r,o,i)=>{let s=mt(r),{options:c,handler:u}=Bt(o,i);t.forEach((l,f)=>{_t(Qe(s,co(l),f),c,u?()=>u(l):void 0);});}},e.skipIf=t=>t?_t.skip:_t,e.runIf=t=>t?_t:_t.skip,Mr(["concurrent","sequential","shuffle","skip","only","todo"],e)}a(mg,"createSuite");function gg(e,t){let n=e;n.each=function(o,...i){let s=this.withContext();return this.setContext("each",true),Array.isArray(o)&&i.length&&(o=Ir(o,i)),(c,u,l)=>{let f=mt(c),h=o.every(Array.isArray),{options:d,handler:p}=Bt(u,l),m=typeof u=="function";o.forEach((y,v)=>{let S=Array.isArray(y)?y:[y];m?h?s(Qe(f,S,v),p?()=>p(...S):void 0,d.timeout):s(Qe(f,S,v),p?()=>p(y):void 0,d.timeout):h?s(Qe(f,S,v),d,p?()=>p(...S):void 0):s(Qe(f,S,v),d,p?()=>p(y):void 0);}),this.setContext("each",void 0);}},n.for=function(o,...i){let s=this.withContext();return Array.isArray(o)&&i.length&&(o=Ir(o,i)),(c,u,l)=>{let f=mt(c),{options:h,handler:d}=Bt(u,l);o.forEach((p,m)=>{let y=d?v=>d(p,v):void 0;y&&(y.__VITEST_FIXTURE_INDEX__=1,y.toString=()=>d.toString()),s(Qe(f,co(p),m),h,y);});}},n.skipIf=function(o){return o?this.skip:this},n.runIf=function(o){return o?this:this.skip},n.scoped=function(o){It().scoped(o);},n.extend=function(o){let i=eu(o,t||{},ye),s=e;return zi(function(c,u,l){let h=It().fixtures(),d={...this};h&&(d.fixtures=sg(d.fixtures||[],h)),s.call(d,mt(c),u,l);},i)},n.beforeEach=au,n.afterEach=cu,n.beforeAll=iu,n.afterAll=su;let r=Mr(["concurrent","sequential","skip","only","todo","fails"],n);return t&&r.mergeContext(t),r}a(gg,"createTaskCollector");function zi(e,t){return gg(e,t)}a(zi,"createTest");function mt(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}a(mt,"formatName");function Qe(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));let r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((l,f)=>{if(Ca(t[f])||Object.is(t[f],-0)){let h=0;e=e.replace(/%f/g,d=>(h++,h===f+1?"-%f":d));}});let o=ht(t[0]);function i(u){return u.replace(/\$([$\w.]+)/g,(l,f)=>{let d=/^\d+$/.test(f);if(!o&&!d)return `$${f}`;let p=d?fo(t,f):void 0,m=o?fo(t[0],f,p):p;return Ma(m,{truncate:void 0})})}a(i,"formatAttribute");let s="",c=0;return yg(e,so,u=>{c<r?s+=Ea(u[0],t[c++]):s+=u[0];},u=>{s+=i(u);}),s}a(Qe,"formatTitle");function yg(e,t,n,r){let o=0;for(let i of e.matchAll(t))o<i.index&&r(e.slice(o,i.index)),n(i),o=i.index+i[0].length;o<e.length&&r(e.slice(o));}a(yg,"handleRegexMatch");function Ir(e,t){let n=e.join("").trim().replace(/ /g,"").split(`
126
- `).map(o=>o.split("|"))[0],r=[];for(let o=0;o<Math.floor(t.length/n.length);o++){let i={};for(let s=0;s<n.length;s++)i[n[s]]=t[o*n.length+s];r.push(i);}return r}a(Ir,"formatTemplateString");var Yl=Date.now,qe={currentSuite:null};function bg(e){var t;(t=qe.currentSuite)===null||t===void 0||t.tasks.push(e);}a(bg,"collectTask");async function wg(e,t){let n=qe.currentSuite;qe.currentSuite=e,await t(),qe.currentSuite=n;}a(wg,"runWithSuite");function ct(e,t,n=false,r,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;let{setTimeout:i,clearTimeout:s}=at();return a((function(...u){let l=Yl(),f=bn();return f._currentTaskStartTime=l,f._currentTaskTimeout=t,new Promise((h,d)=>{var p;let m=i(()=>{s(m),y();},t);(p=m.unref)===null||p===void 0||p.call(m);function y(){let M=Tg(n,t,r);o?.(u,M),d(M);}a(y,"rejectTimeoutError");function v(M){if(f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(m),Yl()-l>=t){y();return}h(M);}a(v,"resolve");function S(M){f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(m),d(M);}a(S,"reject");try{let M=e(...u);typeof M=="object"&&M!=null&&typeof M.then=="function"?M.then(v,S):v(M);}catch(M){S(M);}})}),"runWithTimeout")}a(ct,"withTimeout");var qi=new WeakMap;function wn([e],t){e&&vg(e,t);}a(wn,"abortIfTimeout");function vg(e,t){let n=qi.get(e);n?.abort(t);}a(vg,"abortContextSignal");function Sg(e,t){var n;let r=a(function(){throw new Error("done() callback is deprecated, use promise instead")},"context"),o=qi.get(r);return o||(o=new AbortController,qi.set(r,o)),r.signal=o.signal,r.task=e,r.skip=(i,s)=>{if(i!==false)throw e.result??(e.result={state:"skip"}),e.result.pending=true,new Li("test is skipped; abort execution",e,typeof i=="string"?i:s)},r.annotate=((i,s,c)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let u={message:i,type:typeof s=="object"||s===void 0?"notice":s},l=typeof s=="object"?s:c;return l&&(u.attachment=l,gu(u.attachment)),kg(e,mu(e,{type:"internal:annotation",annotation:u}).then(async({annotation:f})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await pu(t);let h=await t.onTestAnnotate(e,f);return e.annotations.push(h),h}))}),r.onTestFailed=(i,s)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(ct(i,s??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,u)=>o.abort(u)));},r.onTestFinished=(i,s)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(ct(i,s??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,u)=>o.abort(u)));},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,r))||r}a(Sg,"createTestContext");function Tg(e,t,n){let r=`${e?"Hook":"Test"} timed out in ${t}ms.
127
- If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(r);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}a(Tg,"makeTimeoutError");var Eg=new WeakMap;function xg(e){let t=Eg.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}a(xg,"getFileContext");globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;var Mg=Date.now,{clearTimeout:_g,setTimeout:Og}=at();var Di=new Map,Zl=[],Or=[];function du(e){if(Di.size){var t;let n=Array.from(Di).map(([o,i])=>[o,i[0],i[1]]),r=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,Zl);r&&(Or.push(r),r.then(()=>Or.splice(Or.indexOf(r),1),()=>{})),Zl.length=0,Di.clear();}}a(du,"sendTasksUpdate");async function pu(e){du(e),await Promise.all(Or);}a(pu,"finishSendTasksUpdate");function Ig(e,t){let n=0,r;return a(function o(...i){let s=Mg();if(s-n>t)return n=s,_g(r),r=void 0,e.apply(this,i);r??(r=Og(()=>o.bind(this)(...i),t));},"call")}a(Ig,"throttle");Ig(du,100);async function mu(e,t){let n=bn();if(e.result&&e.result.state!=="run")throw new Error(`Cannot record a test artifact outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let r=gn(e.file.filepath,new Error("STACK_TRACE").stack);if(r&&(t.location={file:r.file,line:r.line,column:r.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(let i of t.attachments)gu(i);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await pu(n);let o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}a(mu,"recordArtifact");var Pe=[];for(let e=65;e<91;e++)Pe.push(String.fromCharCode(e));for(let e=97;e<123;e++)Pe.push(String.fromCharCode(e));for(let e=0;e<10;e++)Pe.push(e.toString(10));Pe.push("+","/");function Cg(e){let t="",n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let o=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=Pe[o],t+=Pe[i],t+="==";}else if(n===r+2){let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2;t+=Pe[o],t+=Pe[i],t+=Pe[s],t+="=";}else {let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2|(e[r+2]&192)>>6,c=e[r+2]&63;t+=Pe[o],t+=Pe[i],t+=Pe[s],t+=Pe[c];}return t}a(Cg,"encodeUint8Array");function kg(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1);}),e.promises||(e.promises=[]),e.promises.push(t),t}a(kg,"recordAsyncOperation");function gu(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=Cg(e.body));}a(gu,"manageArtifactAttachment");var $g="__vitest_worker__";function vn(){let e=globalThis[$g];if(!e)throw new Error(`Vitest failed to access its internal state.
132
+ `);return r?a+=_t(r,o.value,{omitAnnotationLines:true}):a+=ye(o).split(`
133
+ `).map(l=>` ${l}`).join(`
134
+ `),a+=`
135
+ `,a}).join(`
136
+ `)}`)),n+=se.gray(`
128
137
 
129
- One of the following is possible:
130
- - "vitest" is imported directly without running "vitest" command
131
- - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
132
- - "vitest" is imported inside Vite / Vitest config file
133
- - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
134
- `);return e}a(vn,"getWorkerState");function Ui(){return typeof process<"u"&&!!process.send}a(Ui,"isChildProcess");function yu(e,t=false){let n=[/\/vitest\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.idToModuleMap.forEach((r,o)=>{n.some(i=>i.test(o))||(r.promise=void 0,r.exports=void 0,r.evaluated=false,r.importers.clear());});}a(yu,"resetModules");function Ng(){let{setTimeout:e}=at();return new Promise(t=>e(t,0))}a(Ng,"waitNextTick");async function Wi(){await Ng();let e=vn(),t=[],n=e.resolvingModules.size;for(let[r,o]of e.evaluatedModules.idToModuleMap)o.promise&&!o.evaluated&&t.push(o.promise);!t.length&&!n||(await Promise.allSettled(t),await Wi());}a(Wi,"waitForImportsToResolve");var zg=44,Cu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ug=new Uint8Array(64),qu=new Uint8Array(128);for(let e=0;e<Cu.length;e++){let t=Cu.charCodeAt(e);Ug[e]=t,qu[t]=e;}function Mn(e,t){let n=0,r=0,o=0;do{let s=e.next();o=qu[s],n|=(o&31)<<r,r+=5;}while(o&32);let i=n&1;return n>>>=1,i&&(n=-2147483648|-n),t+n}a(Mn,"decodeInteger");function ku(e,t){return e.pos>=t?false:e.peek()!==zg}a(ku,"hasMoreVlq");var Wg=class{static{a(this,"StringReader");}constructor(e){this.pos=0,this.buffer=e;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Vg(e){let{length:t}=e,n=new Wg(e),r=[],o=0,i=0,s=0,c=0,u=0;do{let l=n.indexOf(";"),f=[],h=true,d=0;for(o=0;n.pos<l;){let p;o=Mn(n,o),o<d&&(h=false),d=o,ku(n,l)?(i=Mn(n,i),s=Mn(n,s),c=Mn(n,c),ku(n,l)?(u=Mn(n,u),p=[o,i,s,c,u]):p=[o,i,s,c]):p=[o],f.push(p),n.pos++;}h||Kg(f),r.push(f),n.pos=l+1;}while(n.pos<=t);return r}a(Vg,"decode");function Kg(e){e.sort(Gg);}a(Kg,"sort");function Gg(e,t){return e[0]-t[0]}a(Gg,"sortComparator");var Dr=0,Hg=1,Jg=2,Yg=3,Zg=4,jr=false;function Xg(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),i=e[o][Dr]-t;if(i===0)return jr=true,o;i<0?n=o+1:r=o-1;}return jr=false,n-1}a(Xg,"binarySearch");function Qg(e,t,n){for(let r=n+1;r<e.length&&e[r][Dr]===t;n=r++);return n}a(Qg,"upperBound");function ey(e,t,n){for(let r=n-1;r>=0&&e[r][Dr]===t;n=r--);return n}a(ey,"lowerBound");function ty(e,t,n,r){let{lastKey:o,lastNeedle:i,lastIndex:s}=n,c=0,u=e.length-1;if(r===o){if(t===i)return jr=s!==-1&&e[s][Dr]===t,s;t>=i?c=s===-1?0:s:u=s;}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=Xg(e,t,c,u)}a(ty,"memoizedBinarySearch");var ny="`line` must be greater than 0 (lines start at line 1)",ry="`column` must be greater than or equal to 0 (columns start at column 0)",$u=-1,oy=1;function iy(e){var t;return (t=e)._decoded||(t._decoded=Vg(e._encoded))}a(iy,"decodedMappings");function sy(e,t){let{line:n,column:r,bias:o}=t;if(n--,n<0)throw new Error(ny);if(r<0)throw new Error(ry);let i=iy(e);if(n>=i.length)return Ar(null,null,null,null);let s=i[n],c=ay(s,e._decodedMemo,n,r,o||oy);if(c===-1)return Ar(null,null,null,null);let u=s[c];if(u.length===1)return Ar(null,null,null,null);let{names:l,resolvedSources:f}=e;return Ar(f[u[Hg]],u[Jg]+1,u[Yg],u.length===5?l[u[Zg]]:null)}a(sy,"originalPositionFor");function Ar(e,t,n,r){return {source:e,line:t,column:n,name:r}}a(Ar,"OMapping");function ay(e,t,n,r,o){let i=ty(e,r,t,n);return jr?i=(o===$u?Qg:ey)(e,r,i):o===$u&&i++,i===-1||i===e.length?-1:i}a(ay,"traceSegmentInternal");function Bu(e){return e!=null}a(Bu,"notNullish");function cy(e){return e===null||typeof e!="function"&&typeof e!="object"}a(cy,"isPrimitive");function Pr(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(Pr,"isObject");function ly(e){let t=-1,n=null,r=0,o=0,i=null;for(;t<=e.length;){i=e[t],t++;let s=e[t];if((s==='"'||s==="'"||s==="`")&&i!=="\\"&&(n===s?n=null:n||(n=s)),n||(s==="("&&r++,s===")"&&o++),r&&o&&r===o)return t}return null}a(ly,"getCallLastIndex");var zu=/^\s*at .*(?:\S:\d+|\(native\))/m,uy=/^(?:eval@)?(?:\[native code\])?$/,fy=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Uu(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(Uu,"extractLocation");function hy(e){let t=e.trim();if(uy.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,r="",o;for(let u=0;u<t.length;u++)if(t[u]==="@"){let l=t.slice(u+1);if(l.includes(":")&&l.length>=3){n=u,r=l,o=u>0?t.slice(0,u):void 0;break}}if(n===-1||!r.includes(":")||r.length<3)return null;let[i,s,c]=Uu(r);return !i||!s||!c?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}}a(hy,"parseSingleFFOrSafariStack");function dy(e){let t=e.trim();if(!zu.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let[o,i,s]=Uu(r?r[1]:n),c=r&&n||"",u=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !u||!i||!s?null:(c.startsWith("async ")&&(c=c.slice(6)),u.startsWith("file://")&&(u=u.slice(7)),u=u.startsWith("node:")||u.startsWith("internal:")?u:xr(u),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:c,file:u,line:Number.parseInt(i),column:Number.parseInt(s)})}a(dy,"parseSingleV8Stack");function Gi(e,t={}){let{ignoreStackEntries:n=fy}=t;return (zu.test(e)?my(e):py(e)).map(o=>{var i;t.getUrlId&&(o.file=t.getUrlId(o.file));let s=(i=t.getSourceMap)===null||i===void 0?void 0:i.call(t,o.file);if(!s||typeof s!="object"||!s.version)return Nu(n,o.file)?null:o;let c=new Ji(s,o.file),u=by(c,o);if(!u)return o;let{line:l,column:f,source:h,name:d}=u,p=h||o.file;return p.match(/\/\w:\//)&&(p=p.slice(1)),Nu(n,p)?null:l!=null&&f!=null?{line:l,column:f,file:p,method:d||o.method}:o}).filter(o=>o!=null)}a(Gi,"parseStacktrace");function Nu(e,t){return e.some(n=>t.match(n))}a(Nu,"shouldFilter");function py(e){return e.split(`
135
- `).map(t=>hy(t)).filter(Bu)}a(py,"parseFFOrSafariStackTrace");function my(e){return e.split(`
136
- `).map(t=>dy(t)).filter(Bu)}a(my,"parseV8Stacktrace");function gy(e,t={}){if(!e||cy(e))return [];if("stacks"in e&&e.stacks)return e.stacks;let n=e.stack||"",r=typeof n=="string"?Gi(n,t):[];if(!r.length){let o=e;o.fileName!=null&&o.lineNumber!=null&&o.columnNumber!=null&&(r=Gi(`${o.fileName}:${o.lineNumber}:${o.columnNumber}`,t)),o.sourceURL!=null&&o.line!=null&&o._column!=null&&(r=Gi(`${o.sourceURL}:${o.line}:${o.column}`,t));}return t.frameFilter&&(r=r.filter(o=>t.frameFilter(e,o)!==false)),e.stacks=r,r}a(gy,"parseErrorStacktrace");var Ji=class{static{a(this,"DecodedMap");}_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;let{mappings:r,names:o,sources:i}=t;this.version=t.version,this.names=o||[],this._encoded=r||"",this._decodedMemo=yy(),this.url=n,this.resolvedSources=(i||[]).map(s=>xr(s||"",n));}};function yy(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}a(yy,"memoizedState");function by(e,t){let n=sy(e,t);return n.column==null?null:n}a(by,"getOriginalPosition");var Qi=/\r?\n/;function wy(e,t,n){let r=e.split(Qi),o=/\r\n/.test(e)?2:1,i=0;if(t>r.length)return e.length;for(let s=0;s<t-1;s++)i+=r[s].length+o;return i+n}a(wy,"positionToOffset");function vy(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(Qi),r=/\r\n/.test(e)?2:1,o=0,i=0;for(;i<n.length;i++){let s=n[i].length+r;if(o+s>=t)break;o+=s;}return i+1}a(vy,"offsetToLineNumber");async function Sy(e,t){let n=(await Promise.resolve().then(()=>(Iu(),Ou))).default,r=new Set(t.map(o=>o.file));await Promise.all(Array.from(r).map(async o=>{let i=t.filter(l=>l.file===o),s=await e.readSnapshotFile(o),c=new n(s);for(let l of i){let f=wy(s,l.line,l.column);Oy(s,c,f,l.snapshot);}let u=c.toString();u!==s&&await e.saveSnapshotFile(o,u);}));}a(Sy,"saveInlineSnapshots");var Ty=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Ey(e,t,n,r){let o=e.slice(n),i=Ty.exec(o);if(!i)return false;o=o.slice(i.index);let s=ly(o);if(s===null)return false;s+=n+i.index;let c=n+i.index+i[0].length,u=xy(e,c),l=`, ${Wu(r,e,n)}`;return u===s?t.appendLeft(s,l):t.overwrite(u,s,l),true}a(Ey,"replaceObjectSnap");function xy(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let o=e[t++];o==="{"?n++:o==="}"&&r++;}return t}a(xy,"getObjectShapeEndIndex");function Wu(e,t,n){let r=vy(t,n),i=t.split(Qi)[r-1].match(/^\s*/)[0]||"",s=i.includes(" ")?`${i} `:`${i} `,c=e.trim().replace(/\\/g,"\\\\").split(/\n/g),u=c.length<=1,l="`";return u?`${l}${c.join(`
137
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${l}`:`${l}
138
- ${c.map(f=>f?s+f:"").join(`
138
+ Number of calls: ${se.bold(e.mock.calls.length)}
139
+ `),n}i(ky,"formatReturns");function My(e,t){let n=e._obj,r=Ke.flag(e,"negate"),o=Ke.flag(e,"promise")||"",s=Ke.flag(e,"message"),a={...tf(),diff:_t,stringify:ye,iterableEquality:ke,subsetEquality:At},l=Ke.flag(e,"vitest-test"),c=l?.fullTestName??"";return l?.type!=="test"&&(l=void 0),{state:{...Gt(t),task:l,currentTestName:c,customTesters:Mi(),isNot:r,utils:a,promise:o,equals:K,suppressedErrors:[],soft:Ke.flag(e,"soft"),poll:Ke.flag(e,"poll")},isNot:r,obj:n,customMessage:s}}i(My,"getMatcherState");var Wr=class extends Error{static{i(this,"JestExtendError");}constructor(t,n,r,o){super(t),this.actual=n,this.expected=r,this.context=o;}};function Cy(e,t,n){return (r,o)=>{Object.entries(n).forEach(([s,a])=>{function l(...h){let{state:d,isNot:p,obj:g,customMessage:m}=My(this,t),b=a.call(d,g,...h);if(b&&typeof b=="object"&&typeof b.then=="function")return b.then(({pass:_,message:q,actual:Q,expected:R,meta:V})=>{if(_&&p||!_&&!p){let Y=m??q();throw new Wr(Y,Q,R,{assertionName:s,meta:V})}});let{pass:E,message:M,actual:A,expected:C,meta:O}=b;if(E&&p||!E&&!p){let N=m??M();throw new Wr(N,A,C,{assertionName:s,meta:O})}}i(l,"expectWrapper");let c=$t(o,s,l);o.addMethod(globalThis[In].matchers,s,c),o.addMethod(e.Assertion.prototype,s,c);class u extends Ge{static{i(this,"CustomMatcher");}constructor(d=false,...p){super(p,d);}asymmetricMatch(d){let{pass:p}=a.call(this.getMatcherContext(t),d,...this.sample);return this.inverse?!p:p}toString(){return `${this.inverse?"not.":""}${s}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(d=>ye(d)).join(", ")}>`}}let f=i((...h)=>new u(false,...h),"customMatcher");Object.defineProperty(t,s,{configurable:true,enumerable:true,value:f,writable:true}),Object.defineProperty(t.not,s,{configurable:true,enumerable:true,value:i((...h)=>new u(true,...h),"value"),writable:true}),Object.defineProperty(globalThis[Vr],s,{configurable:true,enumerable:true,value:f,writable:true});});}}i(Cy,"JestExtendPlugin");var uf=i((e,t)=>{t.addMethod(e.expect,"extend",(n,r)=>{_n(Cy(e,n,r));});},"JestExtend");var Jr=/\r?\n/;function ff(e,t,n){let r=e.split(Jr),o=/\r\n/.test(e)?2:1,s=0;if(t>r.length)return e.length;for(let a=0;a<t-1;a++)s+=r[a].length+o;return s+n}i(ff,"positionToOffset");function hf(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(Jr),r=/\r\n/.test(e)?2:1,o=0,s=0;for(;s<n.length;s++){let a=n[s].length+r;if(o+a>=t)break;o+=a;}return s+1}i(hf,"offsetToLineNumber");async function Fy(e,t){let n=(await Promise.resolve().then(()=>(vf(),Ef))).default,r=new Set(t.map(o=>o.file));await Promise.all(Array.from(r).map(async o=>{let s=t.filter(u=>u.file===o),a=await e.readSnapshotFile(o);if(a==null)throw new Error(`cannot read ${o} when saving inline snapshot`);let l=new n(a);for(let u of s){let f=ff(a,u.line,u.column);zy(a,l,f,u.snapshot);}let c=l.toString();c!==a&&await e.saveSnapshotFile(o,c);}));}i(Fy,"saveInlineSnapshots");var Dy=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Ly(e,t,n,r){let o=e.slice(n),s=Dy.exec(o);if(!s)return false;o=o.slice(s.index);let a=wc(o);if(a===null)return false;a+=n+s.index;let l=n+s.index+s[0].length,c=By(e,l),u=`, ${Af(r,e,n)}`;return c===a?t.appendLeft(a,u):t.overwrite(c,a,u),true}i(Ly,"replaceObjectSnap");function By(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let o=e[t++];o==="{"?n++:o==="}"&&r++;}return t}i(By,"getObjectShapeEndIndex");function Af(e,t,n){let r=hf(t,n),s=t.split(Jr)[r-1].match(/^\s*/)[0]||"",a=s.includes(" ")?`${s} `:`${s} `,l=e.trim().replace(/\\/g,"\\\\").split(/\n/g),c=l.length<=1,u="`";return c?`${u}${l.join(`
140
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${u}`:`${u}
141
+ ${l.map(f=>f?a+f:"").join(`
139
142
  `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
140
- ${i}${l}`}a(Wu,"prepareSnapString");var Au="toMatchInlineSnapshot",Pu="toThrowErrorMatchingInlineSnapshot";function My(e,t){let n=t-Au.length;if(e.slice(n,t)===Au)return {code:e.slice(n),index:n};let r=t-Pu.length;return e.slice(t-r,t)===Pu?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}a(My,"getCodeStartingAtIndex");var _y=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function Oy(e,t,n,r){let{code:o,index:i}=My(e,n),s=_y.exec(o),c=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==c?.index)return Ey(e,t,i,r);let u=s[1],l=i+s.index+s[0].length,f=Wu(r,e,i);if(u===")")return t.appendRight(l-1,f),true;let d=new RegExp(`(?:^|[^\\\\])${u}`).exec(e.slice(l));if(!d)return false;let p=l+d.index+d[0].length;return t.overwrite(l-1,p,f),true}a(Oy,"replaceInlineSnap");var Iy=/^([^\S\n]*)\S/m;function es(e){var t;let n=e.match(Iy);if(!n||!n[1])return e;let r=n[1],o=e.split(/\n/g);if(o.length<=2||o[0].trim()!==""||((t=o.at(-1))===null||t===void 0?void 0:t.trim())!=="")return e;for(let i=1;i<o.length-1;i++)if(o[i]!==""){if(o[i].indexOf(r)!==0)return e;o[i]=o[i].substring(r.length);}return o[o.length-1]="",e=o.join(`
141
- `),e}a(es,"stripSnapshotIndentation");async function Cy(e,t){await Promise.all(t.map(async n=>{n.readonly||await e.saveSnapshotFile(n.file,n.snapshot);}));}a(Cy,"saveRawSnapshots");function ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(ky,"getDefaultExportFromCjs");var Hi={exports:{}},ju;function $y(){if(ju)return Hi.exports;ju=1;var e=a(function(t,n){var r,o,i=1,s=0,c=0,u=String.alphabet;function l(f,h,d){if(d){for(r=h;d=l(f,r),d<76&&d>65;)++r;return +f.slice(h-1,r)}return d=u&&u.indexOf(f.charAt(h)),d>-1?d+76:(d=f.charCodeAt(h)||0,d<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63)}if(a(l,"getCode"),(t+="")!=(n+="")){for(;i;)if(o=l(t,s++),i=l(n,c++),o<76&&i<76&&o>66&&i>66&&(o=l(t,s,s),i=l(n,c,s=r),c=r),o!=i)return o<i?-1:1}return 0},"naturalCompare");try{Hi.exports=e;}catch{String.naturalCompare=e;}return Hi.exports}a($y,"requireNaturalCompare");var Ny=$y(),Ay=ky(Ny),Py=a((e,t,n,r,o,i)=>{let s=e.getMockName(),c=s==="vi.fn()"?"":` ${s}`,u="";if(e.mock.calls.length!==0){let l=n+t.indent;u=` {${t.spacingOuter}${l}"calls": ${i(e.mock.calls,t,l,r,o)}${t.min?", ":","}${t.spacingOuter}${l}"results": ${i(e.mock.results,t,l,r,o)}${t.min?"":","}${t.spacingOuter}${n}}`;}return `[MockFunction${c}]${u}`},"serialize$1"),jy=a(e=>e&&!!e._isMockFunction,"test"),Ry={serialize:Py,test:jy},{DOMCollection:Fy,DOMElement:Dy,Immutable:Ly,ReactElement:qy,ReactTestComponent:By,AsymmetricMatcher:zy}=wt,Yi=[By,qy,Dy,Fy,Ly,zy,Ry];function Vu(e){Yi=[e].concat(Yi);}a(Vu,"addSerializer");function Uy(){return Yi}a(Uy,"getSerializers");function Wy(e,t){return `${e} ${t}`}a(Wy,"testNameToKey");function Vy(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}a(Vy,"keyToTestName");function Ky(e,t){let n=t.updateSnapshot,r=Object.create(null),o="",i=false;if(e!=null)try{o=e,new Function("exports",o)(r);}catch{}return (n==="all"||n==="new")&&o&&(i=true),{data:r,dirty:i}}a(Ky,"getSnapshotData");function Gy(e){return e.includes(`
143
+ ${s}${u}`}i(Af,"prepareSnapString");var xf="toMatchInlineSnapshot",kf="toThrowErrorMatchingInlineSnapshot";function qy(e,t){let n=t-xf.length;if(e.slice(n,t)===xf)return {code:e.slice(n),index:n};let r=t-kf.length;return e.slice(t-r,t)===kf?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}i(qy,"getCodeStartingAtIndex");var Uy=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function zy(e,t,n,r){let{code:o,index:s}=qy(e,n),a=Uy.exec(o),l=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!a||a.index!==l?.index)return Ly(e,t,s,r);let c=a[1],u=s+a.index+a[0].length,f=Af(r,e,s);if(c===")")return t.appendRight(u-1,f),true;let d=new RegExp(`(?:^|[^\\\\])${c}`).exec(e.slice(u));if(!d)return false;let p=u+d.index+d[0].length;return t.overwrite(u-1,p,f),true}i(zy,"replaceInlineSnap");var Wy=/^([^\S\n]*)\S/m;function Pi(e){let t=e.match(Wy);if(!t||!t[1])return e;let n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==""||r.at(-1)?.trim()!=="")return e;for(let o=1;o<r.length-1;o++)if(r[o]!==""){if(r[o].indexOf(n)!==0)return e;r[o]=r[o].substring(n.length);}return r[r.length-1]="",e=r.join(`
144
+ `),e}i(Pi,"stripSnapshotIndentation");async function Vy(e,t){await Promise.all(t.map(async n=>{n.readonly||await e.saveSnapshotFile(n.file,n.snapshot);}));}i(Vy,"saveRawSnapshots");function Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(Ky,"getDefaultExportFromCjs");var Ii={exports:{}},Mf;function Hy(){if(Mf)return Ii.exports;Mf=1;var e=i(function(t,n){var r,o,s=1,a=0,l=0,c=String.alphabet;function u(f,h,d){if(d){for(r=h;d=u(f,r),d<76&&d>65;)++r;return +f.slice(h-1,r)}return d=c&&c.indexOf(f.charAt(h)),d>-1?d+76:(d=f.charCodeAt(h)||0,d<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63)}if(i(u,"getCode"),(t+="")!=(n+="")){for(;s;)if(o=u(t,a++),s=u(n,l++),o<76&&s<76&&o>66&&s>66&&(o=u(t,a,a),s=u(n,l,a=r),l=r),o!=s)return o<s?-1:1}return 0},"naturalCompare");try{Ii.exports=e;}catch{String.naturalCompare=e;}return Ii.exports}i(Hy,"requireNaturalCompare");var Gy=Hy(),Jy=Ky(Gy),Yy=i((e,t,n,r,o,s)=>{let a=e.getMockName(),l=a==="vi.fn()"?"":` ${a}`,c="";if(e.mock.calls.length!==0){let u=n+t.indent;c=` {${t.spacingOuter}${u}"calls": ${s(e.mock.calls,t,u,r,o)}${t.min?", ":","}${t.spacingOuter}${u}"results": ${s(e.mock.results,t,u,r,o)}${t.min?"":","}${t.spacingOuter}${n}}`;}return `[MockFunction${l}]${c}`},"serialize$1"),Xy=i(e=>e&&!!e._isMockFunction,"test"),Zy={serialize:Yy,test:Xy},{DOMCollection:Qy,DOMElement:ew,Immutable:tw,ReactElement:nw,ReactTestComponent:rw,AsymmetricMatcher:ow}=kt,Ai=[rw,nw,ew,Qy,tw,ow,Zy];function $f(e){Ai=[e].concat(Ai);}i($f,"addSerializer");function sw(){return Ai}i(sw,"getSerializers");function iw(e,t){return `${e} ${t}`}i(iw,"testNameToKey");function aw(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}i(aw,"keyToTestName");function cw(e,t){let n=t.updateSnapshot,r=Object.create(null),o="",s=false;if(e!=null)try{o=e,new Function("exports",o)(r);}catch{}return (n==="all"||n==="new")&&o&&(s=true),{data:r,dirty:s}}i(cw,"getSnapshotData");function lw(e){return e.includes(`
142
145
  `)?`
143
146
  ${e}
144
- `:e}a(Gy,"addExtraLineBreaks");function Ru(e){return e.length>2&&e[0]===`
147
+ `:e}i(lw,"addExtraLineBreaks");function Cf(e){return e.length>2&&e[0]===`
145
148
  `&&e.endsWith(`
146
- `)?e.slice(1,-1):e}a(Ru,"removeExtraLineBreaks");var Hy=true,Jy=false;function Yy(e,t=2,n={}){return ts(Ie(e,{escapeRegex:Hy,indent:t,plugins:Uy(),printFunctionName:Jy,...n}))}a(Yy,"serialize");function Zy(e){return e.replace(/`|\\|\$\{/g,"\\$&")}a(Zy,"escapeBacktickString");function Fu(e){return `\`${Zy(e)}\``}a(Fu,"printBacktickString");function ts(e){return e.replace(/\r\n|\r/g,`
147
- `)}a(ts,"normalizeNewlines");async function Xy(e,t,n){let r=Object.keys(t).sort(Ay).map(c=>`exports[${Fu(c)}] = ${Fu(ts(t[c]))};`),o=`${e.getHeader()}
149
+ `)?e.slice(1,-1):e}i(Cf,"removeExtraLineBreaks");var uw=true,fw=false;function hw(e,t=2,n={}){return Ri($e(e,{escapeRegex:uw,indent:t,plugins:sw(),printFunctionName:fw,...n}))}i(hw,"serialize");function pw(e){return e.replace(/`|\\|\$\{/g,"\\$&")}i(pw,"escapeBacktickString");function _f(e){return `\`${pw(e)}\``}i(_f,"printBacktickString");function Ri(e){return e.replace(/\r\n|\r/g,`
150
+ `)}i(Ri,"normalizeNewlines");async function dw(e,t,n){let r=Object.keys(t).sort(Jy).map(l=>`exports[${_f(l)}] = ${_f(Ri(t[l]))};`),o=`${e.getHeader()}
148
151
 
149
152
  ${r.join(`
150
153
 
151
154
  `)}
152
- `,i=await e.readSnapshotFile(n);i!=null&&i===o||await e.saveSnapshotFile(n,o);}a(Xy,"saveSnapshotFile");function Zi(e=[],t=[]){let n=Array.from(e);return t.forEach((r,o)=>{let i=n[o];Array.isArray(e[o])?n[o]=Zi(e[o],r):Pr(i)?n[o]=ns(e[o],r):n[o]=r;}),n}a(Zi,"deepMergeArray");function ns(e,t){if(Pr(e)&&Pr(t)){let n={...e};return Object.keys(t).forEach(r=>{Pr(t[r])&&!t[r].$$typeof?r in e?n[r]=ns(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=Zi(e[r],t[r]):Object.assign(n,{[r]:t[r]});}),n}else if(Array.isArray(e)&&Array.isArray(t))return Zi(e,t);return e}a(ns,"deepMergeSnapshot");var Rr=class extends Map{static{a(this,"DefaultMap");}constructor(t,n){super(n),this.defaultFn=t;}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},Ct=class extends Rr{static{a(this,"CounterMap");}constructor(){super(()=>0);}_total;valueOf(){return this._total=this.total()}increment(t){typeof this._total<"u"&&this._total++,this.set(t,this.get(t)+1);}total(){if(typeof this._total<"u")return this._total;let t=0;for(let n of this.values())t+=n;return t}};function Du(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}a(Du,"isSameStackPosition");var Xi=class e{static{a(this,"SnapshotState");}_counters=new Ct;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new Rr(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new Ct;_matched=new Ct;_unmatched=new Ct;_updated=new Ct;get added(){return this._added}set added(t){this._added._total=t;}get matched(){return this._matched}set matched(t){this._matched._total=t;}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t;}get updated(){return this._updated}set updated(t){this._updated._total=t;}constructor(t,n,r,o){this.testFilePath=t,this.snapshotPath=n;let{data:i,dirty:s}=Ky(r,o);this._fileExists=r!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=s,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=o.expand||false,this._updateSnapshot=o.updateSnapshot,this._snapshotFormat={printBasicPrototype:false,escapeString:false,...o.snapshotFormat},this._environment=o.snapshotEnvironment;}static async create(t,n){let r=await n.snapshotEnvironment.resolvePath(t),o=await n.snapshotEnvironment.readSnapshotFile(r);return new e(t,r,o,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(t.length))&&this._uncheckedKeys.delete(n);});}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==t);for(let n of this._testIdToKeys.get(t)){let r=Vy(n),o=this._counters.get(r);o>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(r,o-1));}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t);}_inferInlineSnapshotStack(t){let n=t.findIndex(o=>o.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return t[n+3];let r=t.findIndex(o=>o.method.includes("__INLINE_SNAPSHOT__"));return r!==-1?t[r+2]:null}_addSnapshot(t,n,r){this._dirty=true,r.stack?this._inlineSnapshots.push({snapshot:n,testId:r.testId,...r.stack}):r.rawSnapshot?this._rawSnapshots.push({...r.rawSnapshot,snapshot:n}):this._snapshotData[t]=n;}async save(){let t=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,r=this._rawSnapshots.length,o=!t&&!n&&!r,i={deleted:false,saved:false};return (this._dirty||this._uncheckedKeys.size)&&!o?(t&&(await Xy(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=true),n&&await Sy(this._environment,this._inlineSnapshots),r&&await Cy(this._environment,this._rawSnapshots),i.saved=true):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=false),i.deleted=true),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=true,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear());}match({testId:t,testName:n,received:r,key:o,inlineSnapshot:i,isInline:s,error:c,rawSnapshot:u}){this._counters.increment(n);let l=this._counters.get(n);o||(o=Wy(n,l)),this._testIdToKeys.get(t).push(o),s&&this._snapshotData[o]!==void 0||this._uncheckedKeys.delete(o);let f=u&&typeof r=="string"?r:Yy(r,void 0,this._snapshotFormat);u||(f=Gy(f)),u&&u.content&&u.content.match(/\r\n/)&&!f.match(/\r\n/)&&(u.content=ts(u.content));let h=s?i:u?u.content:this._snapshotData[o],d=u?h:h?.trim(),p=d===(u?f:f.trim()),m=h!==void 0,y=s||this._fileExists||u&&u.content!=null;p&&!s&&!u&&(this._snapshotData[o]=f);let v;if(s){var S,M;let $=gy(c||new Error("snapshot"),{ignoreStackEntries:[]}),O=this._inferInlineSnapshotStack($);if(!O)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
153
- ${JSON.stringify($)}`);v=((S=(M=this.environment).processStackTrace)===null||S===void 0?void 0:S.call(M,O))||O,v.column--;let C=this._inlineSnapshotStacks.filter(N=>Du(N,v));if(C.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(I=>!Du(I,v));let N=C.find(I=>I.snapshot!==f);if(N)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:N.snapshot})}this._inlineSnapshotStacks.push({...v,testId:t,snapshot:f});}return m&&this._updateSnapshot==="all"||(!m||!y)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?p?this.matched.increment(t):(m?this.updated.increment(t):this.added.increment(t),this._addSnapshot(o,f,{stack:v,testId:t,rawSnapshot:u})):(this._addSnapshot(o,f,{stack:v,testId:t,rawSnapshot:u}),this.added.increment(t)),{actual:"",count:l,expected:"",key:o,pass:true}):p?(this.matched.increment(t),{actual:"",count:l,expected:"",key:o,pass:true}):(this.unmatched.increment(t),{actual:u?f:Ru(f),count:l,expected:d!==void 0?u?d:Ru(d):void 0,key:o,pass:false})}async pack(){let t={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),r=this.getUncheckedKeys();n&&this.removeUncheckedKeys();let o=await this.save();return t.fileDeleted=o.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=o.deleted?0:n,t.uncheckedKeys=Array.from(r),t}};function Lu(e,t,n,r){let o=new Error(e);return Object.defineProperty(o,"actual",{value:n,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"expected",{value:r,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}a(Lu,"createMismatchError");var Fr=class{static{a(this,"SnapshotClient");}snapshotStateMap=new Map;constructor(t={}){this.options=t;}async setup(t,n){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await Xi.create(t,n));}async finish(t){let r=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),r}skipTest(t,n){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(n);}clearTest(t,n){this.getSnapshotState(t).clearTest(n);}getSnapshotState(t){let n=this.snapshotStateMap.get(t);if(!n)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(t){let{filepath:n,name:r,testId:o=r,message:i,isInline:s=false,properties:c,inlineSnapshot:u,error:l,errorMessage:f,rawSnapshot:h}=t,{received:d}=t;if(!n)throw new Error("Snapshot cannot be used outside of test");let p=this.getSnapshotState(n);if(typeof c=="object"){if(typeof d!="object"||!d)throw new Error("Received value must be an object when the matcher has properties");try{var m,y;if(((m=(y=this.options).isEqual)===null||m===void 0?void 0:m.call(y,d,c))??false)d=ns(d,c);else throw Lu("Snapshot properties mismatched",p.expand,d,c)}catch(C){throw C.message=f||"Snapshot mismatched",C}}let v=[r,...i?[i]:[]].join(" > "),{actual:S,expected:M,key:$,pass:O}=p.match({testId:o,testName:v,received:d,isInline:s,error:l,inlineSnapshot:u,rawSnapshot:h});if(!O)throw Lu(`Snapshot \`${$||"unknown"}\` mismatched`,p.expand,h?S:S?.trim(),h?M:M?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");let{filepath:n,rawSnapshot:r}=t;if(r.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");let o=this.getSnapshotState(n);t.filepath||(t.filepath=n),r.file=await o.environment.resolveRawPath(n,r.file),r.content=await o.environment.readSnapshotFile(r.file)??void 0;}return this.assert(t)}clear(){this.snapshotStateMap.clear();}};var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var Be=Date,rs=null,gt=class e extends Be{static{a(this,"MockDate");}constructor(t,n,r,o,i,s,c){super();let u;switch(arguments.length){case 0:rs!==null?u=new Be(rs.valueOf()):u=new Be;break;case 1:u=new Be(t);break;default:r=typeof r>"u"?1:r,o=o||0,i=i||0,s=s||0,c=c||0,u=new Be(t,n,r,o,i,s,c);break}return Object.setPrototypeOf(u,e.prototype),u}};gt.UTC=Be.UTC;gt.now=function(){return new gt().valueOf()};gt.parse=function(e){return Be.parse(e)};gt.toString=function(){return Be.toString()};function Ku(e){let t=new Be(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=gt,rs=t.valueOf();}a(Ku,"mockDate");function os(){globalThis.Date=Be;}a(os,"resetDate");var Qy=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function eb(e,t){throw e.cause==null&&(e.cause=new Error("Matcher did not succeed in time.")),gf(e,t)}a(eb,"throwWithCause");function tb(e){return a(function(n,r={}){let o=vn().config.expect?.poll??{},{interval:i=o.interval??50,timeout:s=o.timeout??1e3,message:c}=r,u=e(null,c).withContext({poll:true});n=n.bind(u);let l=se.util.flag(u,"vitest-test");if(!l)throw new Error("expect.poll() must be called inside a test");let f=new Proxy(u,{get(h,d,p){let m=Reflect.get(h,d,p);if(typeof m!="function")return m instanceof se.Assertion?f:m;if(d==="assert")return m;if(typeof d=="string"&&Qy.includes(d))throw new SyntaxError(`expect.poll() is not supported in combination with .${d}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...y){let v=new Error("STACK_TRACE_ERROR"),S=a(async()=>{let{setTimeout:O,clearTimeout:C}=at(),N="fn",I=false,q=O(()=>{I=true;},s);se.util.flag(u,"_name",d);try{for(;;){let X=I;X&&se.util.flag(u,"_isLastPollAttempt",true);try{N="fn";let D=await n();return se.util.flag(u,"object",D),N="assertion",await m.call(u,...y)}catch(D){(X||N==="assertion"&&se.util.flag(u,"_poll.assert_once"))&&eb(D,v),await ql(i,O);}}}finally{C(q);}},"promise"),M=false;l.onFinished??=[],l.onFinished.push(()=>{if(!M){let O=se.util.flag(u,"negate")?"not.":"",C=`expect.${se.util.flag(u,"_poll.element")?"element(locator)":"poll(assertion)"}.${O}${String(d)}()`;throw gf(new Error(`${C} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
154
-
155
- await ${C}
156
- `),v)}});let $;return {then(O,C){return M=true,($||=S()).then(O,C)},catch(O){return ($||=S()).catch(O)},finally(O){return ($||=S()).finally(O)},[Symbol.toStringTag]:"Promise"}}}});return f},"poll")}a(tb,"createExpectPoll");function gf(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(gf,"copyStackTrace$1");function nb(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(expected)`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(nb,"createAssertionMessage");function rb(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??=[],o.onFinished.push(()=>{if(!i){let s=(globalThis.__vitest_worker__?.onFilterStackTrace||(c=>c||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
157
- `,s].join(""));}}),{then(s,c){return i=true,t.then(s,c)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(rb,"recordAsyncExpect");var is;function _n(){return is||(is=new Fr({isEqual:a((e,t)=>K(e,t,[Ce,Mt]),"isEqual")})),is}a(_n,"getSnapshotClient");function Gu(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e();}catch(n){return n}throw new Error("snapshot function didn't throw")}a(Gu,"getError");function On(e){return {filepath:e.file.filepath,name:Ri(e).slice(1).join(" > "),testId:e.id}}a(On,"getTestNames");var ob=a((e,t)=>{function n(r,o){let i=t.flag(o,"vitest-test");if(!i)throw new Error(`'${r}' cannot be used without test context`);return i}a(n,"getTest");for(let r of ["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,function(o,i){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);let s=t.flag(this,"object"),c=n(r,this);typeof o=="string"&&typeof i>"u"&&(i=o,o=void 0);let u=t.flag(this,"message");_n().assert({received:s,message:i,isInline:false,properties:o,errorMessage:u,...On(c)});});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,o){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');let i=new Error("resolves"),s=t.flag(this,"object"),c=n("toMatchFileSnapshot",this),u=t.flag(this,"message");return rb(c,_n().assertRaw({received:s,message:o,isInline:false,rawSnapshot:{file:r},errorMessage:u,...On(c)}),nb(t,this),i)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",a(function(o,i,s){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');let c=n("toMatchInlineSnapshot",this);if(c.each||c.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let u=t.flag(this,"object"),l=t.flag(this,"error");typeof o=="string"&&(s=i,i=o,o=void 0),i&&(i=es(i));let f=t.flag(this,"message");_n().assert({received:u,message:s,isInline:true,properties:o,inlineSnapshot:i,error:l,errorMessage:f,...On(c)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(r){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let o=t.flag(this,"object"),i=n("toThrowErrorMatchingSnapshot",this),s=t.flag(this,"promise"),c=t.flag(this,"message");_n().assert({received:Gu(o,s),message:r,errorMessage:c,...On(i)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",a(function(o,i){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let s=n("toThrowErrorMatchingInlineSnapshot",this);if(s.each||s.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let c=t.flag(this,"object"),u=t.flag(this,"error"),l=t.flag(this,"promise"),f=t.flag(this,"message");o&&(o=es(o)),_n().assert({received:Gu(c,l),message:i,inlineSnapshot:o,isInline:true,error:u,errorMessage:f,...On(s)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.expect,"addSnapshotSerializer",Vu);},"SnapshotPlugin");se.use(Dl);se.use(Fl);se.use(ob);se.use(jl);function yf(e){let t=a(((i,s)=>{let{assertionCalls:c}=Dt(t);Tr({assertionCalls:c+1},t);let u=se.expect(i,s),l=e||yn();return l?u.withTest(l):u}),"expect");Object.assign(t,se.expect),Object.assign(t,globalThis[wr]),t.getState=()=>Dt(t),t.setState=i=>Tr(i,t);let n=Dt(globalThis[mn])||{};Tr({...n,assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return vn().filepath},currentTestName:e?e.fullTestName??"":n.currentTestName},t),t.assert=se.assert,t.extend=i=>se.expect.extend(t,i),t.addEqualityTesters=i=>kl(i),t.soft=(...i)=>t(...i).withContext({soft:true}),t.poll=tb(t),t.unreachable=i=>{se.assert.fail(`expected${i?` "${i}" `:" "}not to be reached`);};function r(i){let s=a(()=>new Error(`expected number of assertions to be ${i}, but got ${t.getState().assertionCalls}`),"errorGen");Error.captureStackTrace&&Error.captureStackTrace(s(),r),t.setState({expectedAssertionsNumber:i,expectedAssertionsNumberErrorGen:s});}a(r,"assertions");function o(){let i=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(i,o),t.setState({isExpectingAssertions:true,isExpectingAssertionsError:i});}return a(o,"hasAssertions"),se.util.addMethod(t,"assertions",r),se.util.addMethod(t,"hasAssertions",o),t.extend(Ol),t}a(yf,"createExpect");var ke=yf();Object.defineProperty(globalThis,mn,{value:ke,writable:true,configurable:true});var Ut={},ss,Hu;function ab(){if(Hu)return ss;Hu=1;var e;return typeof Lr<"u"?e=Lr:typeof window<"u"?e=window:e=self,ss=e,ss}a(ab,"requireGlobal");var as,Ju;function cb(){if(Ju)return as;Ju=1;let e;try{e=false;}catch{e=true;}return as=e,as}a(cb,"requireThrowsOnProto");var cs,Yu;function Vt(){if(Yu)return cs;Yu=1;var e=Function.call,t=cb(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),cs=a(function(o){return Object.getOwnPropertyNames(o).reduce(function(i,s){return n.includes(s)||typeof o[s]!="function"||(i[s]=e.bind(o[s])),i},Object.create(null))},"copyPrototypeMethods"),cs}a(Vt,"requireCopyPrototypeMethods");var ls,Zu;function Br(){if(Zu)return ls;Zu=1;var e=Vt();return ls=e(Array.prototype),ls}a(Br,"requireArray");var us,Xu;function lb(){if(Xu)return us;Xu=1;var e=Br().every;function t(o,i){return o[i.id]===void 0&&(o[i.id]=0),o[i.id]<i.callCount}a(t,"hasCallsLeft");function n(o,i,s,c){var u=true;return s!==c.length-1&&(u=i.calledBefore(c[s+1])),t(o,i)&&u?(o[i.id]+=1,true):false}a(n,"checkAdjacentCalls");function r(o){var i={},s=arguments.length>1?arguments:o;return e(s,n.bind(null,i))}return a(r,"calledInOrder"),us=r,us}a(lb,"requireCalledInOrder");var fs,Qu;function ub(){if(Qu)return fs;Qu=1;function e(t){return t.constructor&&t.constructor.name||null}return a(e,"className"),fs=e,fs}a(ub,"requireClassName");var hs={},ef;function fb(){return ef||(ef=1,(function(e){e.wrap=function(t,n){var r=a(function(){return e.printWarning(n),t.apply(this,arguments)},"wrapped");return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(t,n){return `${t}.${n} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t);};})(hs)),hs}a(fb,"requireDeprecated");var ds,tf;function hb(){return tf||(tf=1,ds=a(function(t,n){var r=true;try{t.forEach(function(){if(!n.apply(this,arguments))throw new Error});}catch{r=false;}return r},"every")),ds}a(hb,"requireEvery");var ps,nf;function db(){return nf||(nf=1,ps=a(function(t){if(!t)return "";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}},"functionName")),ps}a(db,"requireFunctionName");var ms,rf;function pb(){if(rf)return ms;rf=1;var e=Br().sort,t=Br().slice;function n(o,i){var s=o.getCall(0),c=i.getCall(0),u=s&&s.callId||-1,l=c&&c.callId||-1;return u<l?-1:1}a(n,"comparator");function r(o){return e(t(o),n)}return a(r,"orderByFirstCall"),ms=r,ms}a(pb,"requireOrderByFirstCall");var gs,of;function mb(){if(of)return gs;of=1;var e=Vt();return gs=e(Function.prototype),gs}a(mb,"require_function");var ys,sf;function gb(){if(sf)return ys;sf=1;var e=Vt();return ys=e(Map.prototype),ys}a(gb,"requireMap");var bs,af;function yb(){if(af)return bs;af=1;var e=Vt();return bs=e(Object.prototype),bs}a(yb,"requireObject");var ws,cf;function bb(){if(cf)return ws;cf=1;var e=Vt();return ws=e(Set.prototype),ws}a(bb,"requireSet");var vs,lf;function wb(){if(lf)return vs;lf=1;var e=Vt();return vs=e(String.prototype),vs}a(wb,"requireString");var Ss,uf;function vb(){return uf||(uf=1,Ss={array:Br(),function:mb(),map:gb(),object:yb(),set:bb(),string:wb()}),Ss}a(vb,"requirePrototypes");var qr={exports:{}},Sb=qr.exports,ff;function Tb(){return ff||(ff=1,(function(e,t){(function(n,r){e.exports=r();})(Sb,(function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Lr,o=typeof Symbol<"u",i=typeof Map<"u",s=typeof Set<"u",c=typeof WeakMap<"u",u=typeof WeakSet<"u",l=typeof DataView<"u",f=o&&typeof Symbol.iterator<"u",h=o&&typeof Symbol.toStringTag<"u",d=s&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",m=d&&Object.getPrototypeOf(new Set().entries()),y=p&&Object.getPrototypeOf(new Map().entries()),v=f&&typeof Array.prototype[Symbol.iterator]=="function",S=v&&Object.getPrototypeOf([][Symbol.iterator]()),M=f&&typeof String.prototype[Symbol.iterator]=="function",$=M&&Object.getPrototypeOf(""[Symbol.iterator]()),O=8,C=-1;function N(I){var q=typeof I;if(q!=="object")return q;if(I===null)return "null";if(I===r)return "global";if(Array.isArray(I)&&(h===false||!(Symbol.toStringTag in I)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&I===window.location)return "Location";if(typeof window.document=="object"&&I===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&I===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&I===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&I instanceof window.HTMLElement){if(I.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if(I.tagName==="TD")return "HTMLTableDataCellElement";if(I.tagName==="TH")return "HTMLTableHeaderCellElement"}}var X=h&&I[Symbol.toStringTag];if(typeof X=="string")return X;var D=Object.getPrototypeOf(I);return D===RegExp.prototype?"RegExp":D===Date.prototype?"Date":n&&D===Promise.prototype?"Promise":s&&D===Set.prototype?"Set":i&&D===Map.prototype?"Map":u&&D===WeakSet.prototype?"WeakSet":c&&D===WeakMap.prototype?"WeakMap":l&&D===DataView.prototype?"DataView":i&&D===y?"Map Iterator":s&&D===m?"Set Iterator":v&&D===S?"Array Iterator":M&&D===$?"String Iterator":D===null?"Object":Object.prototype.toString.call(I).slice(O,C)}return a(N,"typeDetect"),N}));})(qr)),qr.exports}a(Tb,"requireTypeDetect");var Ts,hf;function Eb(){if(hf)return Ts;hf=1;var e=Tb();return Ts=a(function(n){return e(n).toLowerCase()},"typeOf"),Ts}a(Eb,"requireTypeOf");var Es,df;function xb(){if(df)return Es;df=1;function e(t){return t&&t.toString?t.toString():String(t)}return a(e,"valueToString"),Es=e,Es}a(xb,"requireValueToString");var xs,pf;function Mb(){return pf||(pf=1,xs={global:ab(),calledInOrder:lb(),className:ub(),deprecated:fb(),every:hb(),functionName:db(),orderByFirstCall:pb(),prototypes:vb(),typeOf:Eb(),valueToString:xb()}),xs}a(Mb,"requireLib");var mf;function _b(){if(mf)return Ut;mf=1;let e=Mb().global,t,n;if(typeof __vitest_required__<"u"){try{t=__vitest_required__.timers;}catch{}try{n=__vitest_required__.timersPromises;}catch{}}function r(i){let s=Math.pow(2,31)-1,c=1e12,u=a(function(){},"NOOP"),l=a(function(){return []},"NOOP_ARRAY"),f={},h,d=false;i.setTimeout&&(f.setTimeout=true,h=i.setTimeout(u,0),d=typeof h=="object"),f.clearTimeout=!!i.clearTimeout,f.setInterval=!!i.setInterval,f.clearInterval=!!i.clearInterval,f.hrtime=i.process&&typeof i.process.hrtime=="function",f.hrtimeBigint=f.hrtime&&typeof i.process.hrtime.bigint=="function",f.nextTick=i.process&&typeof i.process.nextTick=="function";let p=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;f.performance=i.performance&&typeof i.performance.now=="function";let m=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),y=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;f.queueMicrotask=i.hasOwnProperty("queueMicrotask"),f.requestAnimationFrame=i.requestAnimationFrame&&typeof i.requestAnimationFrame=="function",f.cancelAnimationFrame=i.cancelAnimationFrame&&typeof i.cancelAnimationFrame=="function",f.requestIdleCallback=i.requestIdleCallback&&typeof i.requestIdleCallback=="function",f.cancelIdleCallbackPresent=i.cancelIdleCallback&&typeof i.cancelIdleCallback=="function",f.setImmediate=i.setImmediate&&typeof i.setImmediate=="function",f.clearImmediate=i.clearImmediate&&typeof i.clearImmediate=="function",f.Intl=i.Intl&&typeof i.Intl=="object",i.clearTimeout&&i.clearTimeout(h);let v=i.Date,S=f.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0,M=c;if(v===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");f.Date=true;class ${static{a(this,"FakePerformanceEntry");}constructor(_,k,P,w){this.name=_,this.entryType=k,this.startTime=P,this.duration=w;}toJSON(){return JSON.stringify({...this})}}function O(E){return Number.isFinite?Number.isFinite(E):isFinite(E)}a(O,"isNumberFinite");let C=false;function N(E,_){E.loopLimit&&_===E.loopLimit-1&&(C=true);}a(N,"checkIsNearInfiniteLimit");function I(){C=false;}a(I,"resetIsNearInfiniteLimit");function q(E){if(!E)return 0;let _=E.split(":"),k=_.length,P=k,w=0,F;if(k>3||!/^(\d\d:){0,2}\d\d?$/.test(E))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;P--;){if(F=parseInt(_[P],10),F>=60)throw new Error(`Invalid time ${E}`);w+=F*Math.pow(60,k-P-1);}return w*1e3}a(q,"parseTime");function X(E){let k=E*1e6%1e6,P=k<0?k+1e6:k;return Math.floor(P)}a(X,"nanoRemainder");function D(E){if(!E)return 0;if(typeof E.getTime=="function")return E.getTime();if(typeof E=="number")return E;throw new TypeError("now should be milliseconds since UNIX epoch")}a(D,"getEpoch");function H(E,_,k){return k&&k.callAt>=E&&k.callAt<=_}a(H,"inRange");function oe(E,_){let k=new Error(`Aborting after running ${E.loopLimit} timers, assuming an infinite loop!`);if(!_.error)return k;let P=/target\.*[<|(|[].*?[>|\]|)]\s*/,w=new RegExp(String(Object.keys(E).join("|")));d&&(w=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(E).join("|")})\\s+`));let F=-1;_.error.stack.split(`
158
- `).some(function(z,U){return z.match(P)?(F=U,true):z.match(w)?(F=U,false):F>=0});let G=`${k}
159
- ${_.type||"Microtask"} - ${_.func.name||"anonymous"}
160
- ${_.error.stack.split(`
161
- `).slice(F+1).join(`
162
- `)}`;try{Object.defineProperty(k,"stack",{value:G});}catch{}return k}a(oe,"getInfiniteLoopError");function ue(){class E extends v{static{a(this,"ClockDate");}constructor(P,w,F,G,z,U,R){arguments.length===0?super(E.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:v,enumerable:false});}static[Symbol.hasInstance](P){return P instanceof v}}return E.isFake=true,v.now&&(E.now=a(function(){return E.clock.now},"now")),v.toSource&&(E.toSource=a(function(){return v.toSource()},"toSource")),E.toString=a(function(){return v.toString()},"toString"),new Proxy(E,{apply(){if(this instanceof E)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new v(E.clock.now).toString()}})}a(ue,"createDate");function fe(){let E={};return Object.getOwnPropertyNames(S).forEach(_=>E[_]=S[_]),E.DateTimeFormat=function(..._){let k=new S.DateTimeFormat(..._),P={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(w=>{P[w]=k[w].bind(k);}),["format","formatToParts"].forEach(w=>{P[w]=function(F){return k[w](F||E.clock.now)};}),P},E.DateTimeFormat.prototype=Object.create(S.DateTimeFormat.prototype),E.DateTimeFormat.supportedLocalesOf=S.DateTimeFormat.supportedLocalesOf,E}a(fe,"createIntl");function ie(E,_){E.jobs||(E.jobs=[]),E.jobs.push(_);}a(ie,"enqueueJob");function J(E){if(E.jobs){for(let _=0;_<E.jobs.length;_++){let k=E.jobs[_];if(k.func.apply(null,k.args),N(E,_),E.loopLimit&&_>E.loopLimit)throw oe(E,k)}I(),E.jobs=[];}}a(J,"runJobs");function te(E,_){if(_.func===void 0)throw new Error("Callback must be provided to timer calls");if(d&&typeof _.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${_.func} of type ${typeof _.func}`);if(C&&(_.error=new Error),_.type=_.immediate?"Immediate":"Timeout",_.hasOwnProperty("delay")&&(typeof _.delay!="number"&&(_.delay=parseInt(_.delay,10)),O(_.delay)||(_.delay=0),_.delay=_.delay>s?1:_.delay,_.delay=Math.max(0,_.delay)),_.hasOwnProperty("interval")&&(_.type="Interval",_.interval=_.interval>s?1:_.interval),_.hasOwnProperty("animation")&&(_.type="AnimationFrame",_.animation=true),_.hasOwnProperty("idleCallback")&&(_.type="IdleCallback",_.idleCallback=true),E.timers||(E.timers={}),_.id=M++,_.createdAt=E.now,_.callAt=E.now+(parseInt(_.delay)||(E.duringTick?1:0)),E.timers[_.id]=_,d){let k={refed:true,ref:a(function(){return this.refed=true,k},"ref"),unref:a(function(){return this.refed=false,k},"unref"),hasRef:a(function(){return this.refed},"hasRef"),refresh:a(function(){return _.callAt=E.now+(parseInt(_.delay)||(E.duringTick?1:0)),E.timers[_.id]=_,k},"refresh"),[Symbol.toPrimitive]:function(){return _.id}};return k}return _.id}a(te,"addTimer");function $e(E,_){if(E.callAt<_.callAt)return -1;if(E.callAt>_.callAt)return 1;if(E.immediate&&!_.immediate)return -1;if(!E.immediate&&_.immediate)return 1;if(E.createdAt<_.createdAt)return -1;if(E.createdAt>_.createdAt)return 1;if(E.id<_.id)return -1;if(E.id>_.id)return 1}a($e,"compareTimers");function de(E,_,k){let P=E.timers,w=null,F,G;for(F in P)P.hasOwnProperty(F)&&(G=H(_,k,P[F]),G&&(!w||$e(w,P[F])===1)&&(w=P[F]));return w}a(de,"firstTimerInRange");function ve(E){let _=E.timers,k=null,P;for(P in _)_.hasOwnProperty(P)&&(!k||$e(k,_[P])===1)&&(k=_[P]);return k}a(ve,"firstTimer");function Ue(E){let _=E.timers,k=null,P;for(P in _)_.hasOwnProperty(P)&&(!k||$e(k,_[P])===-1)&&(k=_[P]);return k}a(Ue,"lastTimer");function xe(E,_){if(typeof _.interval=="number"?E.timers[_.id].callAt+=_.interval:delete E.timers[_.id],typeof _.func=="function")_.func.apply(null,_.args);else {let k=eval;(function(){k(_.func);})();}}a(xe,"callTimer");function Me(E){return E==="IdleCallback"||E==="AnimationFrame"?`cancel${E}`:`clear${E}`}a(Me,"getClearHandler");function et(E){return E==="IdleCallback"||E==="AnimationFrame"?`request${E}`:`set${E}`}a(et,"getScheduleHandler");function Re(){let E=0;return function(_){!E++&&console.warn(_);}}a(Re,"createWarnOnce");let _e=Re();function Oe(E,_,k){if(!_)return;E.timers||(E.timers={});let P=Number(_);if(Number.isNaN(P)||P<c){let w=Me(k);if(E.shouldClearNativeTimers===true){let F=E[`_${w}`];return typeof F=="function"?F(_):void 0}_e(`FakeTimers: ${w} was invoked to clear a native timer instead of one created by this library.
163
- To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(E.timers.hasOwnProperty(P)){let w=E.timers[P];if(w.type===k||w.type==="Timeout"&&k==="Interval"||w.type==="Interval"&&k==="Timeout")delete E.timers[P];else {let F=Me(k),G=et(w.type);throw new Error(`Cannot clear timer: timer created with ${G}() but cleared with ${F}()`)}}}a(Oe,"clearTimer");function $t(E,_){let k,P,w,F="_hrtime",G="_nextTick";for(P=0,w=E.methods.length;P<w;P++){if(k=E.methods[P],k==="hrtime"&&i.process)i.process.hrtime=E[F];else if(k==="nextTick"&&i.process)i.process.nextTick=E[G];else if(k==="performance"){let z=Object.getOwnPropertyDescriptor(E,`_${k}`);z&&z.get&&!z.set?Object.defineProperty(i,k,z):z.configurable&&(i[k]=E[`_${k}`]);}else if(i[k]&&i[k].hadOwnProperty)i[k]=E[`_${k}`];else try{delete i[k];}catch{}if(E.timersModuleMethods!==void 0)for(let z=0;z<E.timersModuleMethods.length;z++){let U=E.timersModuleMethods[z];t[U.methodName]=U.original;}if(E.timersPromisesModuleMethods!==void 0)for(let z=0;z<E.timersPromisesModuleMethods.length;z++){let U=E.timersPromisesModuleMethods[z];n[U.methodName]=U.original;}}_.shouldAdvanceTime===true&&i.clearInterval(E.attachedInterval),E.methods=[];for(let[z,U]of E.abortListenerMap.entries())U.removeEventListener("abort",z),E.abortListenerMap.delete(z);return E.timers?Object.keys(E.timers).map(a(function(U){return E.timers[U]},"mapper")):[]}a($t,"uninstall");function Ze(E,_,k){if(k[_].hadOwnProperty=Object.prototype.hasOwnProperty.call(E,_),k[`_${_}`]=E[_],_==="Date")E[_]=k[_];else if(_==="Intl")E[_]=k[_];else if(_==="performance"){let P=Object.getOwnPropertyDescriptor(E,_);if(P&&P.get&&!P.set){Object.defineProperty(k,`_${_}`,P);let w=Object.getOwnPropertyDescriptor(k,_);Object.defineProperty(E,_,w);}else E[_]=k[_];}else E[_]=function(){return k[_].apply(k,arguments)},Object.defineProperties(E[_],Object.getOwnPropertyDescriptors(k[_]));E[_].clock=k;}a(Ze,"hijackMethod");function Ht(E,_){E.tick(_);}a(Ht,"doIntervalTick");let Se={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};f.setImmediate&&(Se.setImmediate=i.setImmediate),f.clearImmediate&&(Se.clearImmediate=i.clearImmediate),f.hrtime&&(Se.hrtime=i.process.hrtime),f.nextTick&&(Se.nextTick=i.process.nextTick),f.performance&&(Se.performance=i.performance),f.requestAnimationFrame&&(Se.requestAnimationFrame=i.requestAnimationFrame),f.queueMicrotask&&(Se.queueMicrotask=i.queueMicrotask),f.cancelAnimationFrame&&(Se.cancelAnimationFrame=i.cancelAnimationFrame),f.requestIdleCallback&&(Se.requestIdleCallback=i.requestIdleCallback),f.cancelIdleCallback&&(Se.cancelIdleCallback=i.cancelIdleCallback),f.Intl&&(Se.Intl=S);let tt=i.setImmediate||i.setTimeout;function Os(E,_){E=Math.floor(D(E)),_=_||1e3;let k=0,P=[0,0],w={now:E,Date:ue(),loopLimit:_};w.Date.clock=w;function F(){return 16-(w.now-E)%16}a(F,"getTimeToNextFrame");function G(R){let A=w.now-P[0]-E,j=Math.floor(A/1e3),L=(A-j*1e3)*1e6+k-P[1];if(Array.isArray(R)){if(R[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let Z=R[0],ae=L-R[1],nt=j-Z;return ae<0&&(ae+=1e9,nt-=1),[nt,ae]}return [j,L]}a(G,"hrtime");function z(){let R=G();return R[0]*1e3+R[1]/1e6}a(z,"fakePerformanceNow"),f.hrtimeBigint&&(G.bigint=function(){let R=G();return BigInt(R[0])*BigInt(1e9)+BigInt(R[1])}),f.Intl&&(w.Intl=fe(),w.Intl.clock=w),w.requestIdleCallback=a(function(A,j){let L=0;w.countTimers()>0&&(L=50);let Z=te(w,{func:A,args:Array.prototype.slice.call(arguments,2),delay:typeof j>"u"?L:Math.min(j,L),idleCallback:true});return Number(Z)},"requestIdleCallback"),w.cancelIdleCallback=a(function(A){return Oe(w,A,"IdleCallback")},"cancelIdleCallback"),w.setTimeout=a(function(A,j){return te(w,{func:A,args:Array.prototype.slice.call(arguments,2),delay:j})},"setTimeout"),typeof i.Promise<"u"&&p&&(w.setTimeout[p.custom]=a(function(A,j){return new i.Promise(a(function(Z){te(w,{func:Z,args:[j],delay:A});},"setTimeoutExecutor"))},"promisifiedSetTimeout")),w.clearTimeout=a(function(A){return Oe(w,A,"Timeout")},"clearTimeout"),w.nextTick=a(function(A){return ie(w,{func:A,args:Array.prototype.slice.call(arguments,1),error:C?new Error:null})},"nextTick"),w.queueMicrotask=a(function(A){return w.nextTick(A)},"queueMicrotask"),w.setInterval=a(function(A,j){return j=parseInt(j,10),te(w,{func:A,args:Array.prototype.slice.call(arguments,2),delay:j,interval:j})},"setInterval"),w.clearInterval=a(function(A){return Oe(w,A,"Interval")},"clearInterval"),f.setImmediate&&(w.setImmediate=a(function(A){return te(w,{func:A,args:Array.prototype.slice.call(arguments,1),immediate:true})},"setImmediate"),typeof i.Promise<"u"&&p&&(w.setImmediate[p.custom]=a(function(A){return new i.Promise(a(function(L){te(w,{func:L,args:[A],immediate:true});},"setImmediateExecutor"))},"promisifiedSetImmediate")),w.clearImmediate=a(function(A){return Oe(w,A,"Immediate")},"clearImmediate")),w.countTimers=a(function(){return Object.keys(w.timers||{}).length+(w.jobs||[]).length},"countTimers"),w.requestAnimationFrame=a(function(A){let j=te(w,{func:A,delay:F(),get args(){return [z()]},animation:true});return Number(j)},"requestAnimationFrame"),w.cancelAnimationFrame=a(function(A){return Oe(w,A,"AnimationFrame")},"cancelAnimationFrame"),w.runMicrotasks=a(function(){J(w);},"runMicrotasks");function U(R,A,j,L){let Z=typeof R=="number"?R:q(R),ae=Math.floor(Z),nt=X(Z),We=k+nt,pe=w.now+ae;if(Z<0)throw new TypeError("Negative ticks are not supported");We>=1e6&&(pe+=1,We-=1e6),k=We;let Ve=w.now,yt=w.now,Ke,lt,Ne,Is,Wr,Vr;w.duringTick=true,Ne=w.now,J(w),Ne!==w.now&&(Ve+=w.now-Ne,pe+=w.now-Ne);function Cs(){for(Ke=de(w,Ve,pe);Ke&&Ve<=pe;){if(w.timers[Ke.id]){Ve=Ke.callAt,w.now=Ke.callAt,Ne=w.now;try{J(w),xe(w,Ke);}catch(Jt){lt=lt||Jt;}if(A){tt(Is);return}Wr();}Vr();}if(Ne=w.now,J(w),Ne!==w.now&&(Ve+=w.now-Ne,pe+=w.now-Ne),w.duringTick=false,Ke=de(w,Ve,pe),Ke)try{w.tick(pe-w.now);}catch(Jt){lt=lt||Jt;}else w.now=pe,k=We;if(lt)throw lt;if(A)j(w.now);else return w.now}return a(Cs,"doTickInner"),Is=A&&function(){try{Wr(),Vr(),Cs();}catch(Jt){L(Jt);}},Wr=a(function(){Ne!==w.now&&(Ve+=w.now-Ne,pe+=w.now-Ne,yt+=w.now-Ne);},"compensationCheck"),Vr=a(function(){Ke=de(w,yt,pe),yt=Ve;},"postTimerCall"),Cs()}return a(U,"doTick"),w.tick=a(function(A){return U(A,false)},"tick"),typeof i.Promise<"u"&&(w.tickAsync=a(function(A){return new i.Promise(function(j,L){tt(function(){try{U(A,true,j,L);}catch(Z){L(Z);}});})},"tickAsync")),w.next=a(function(){J(w);let A=ve(w);if(!A)return w.now;w.duringTick=true;try{return w.now=A.callAt,xe(w,A),J(w),w.now}finally{w.duringTick=false;}},"next"),typeof i.Promise<"u"&&(w.nextAsync=a(function(){return new i.Promise(function(A,j){tt(function(){try{let L=ve(w);if(!L){A(w.now);return}let Z;w.duringTick=true,w.now=L.callAt;try{xe(w,L);}catch(ae){Z=ae;}w.duringTick=false,tt(function(){Z?j(Z):A(w.now);});}catch(L){j(L);}});})},"nextAsync")),w.runAll=a(function(){let A,j;for(J(w),j=0;j<w.loopLimit;j++){if(!w.timers||(A=Object.keys(w.timers).length,A===0))return I(),w.now;w.next(),N(w,j);}let L=ve(w);throw oe(w,L)},"runAll"),w.runToFrame=a(function(){return w.tick(F())},"runToFrame"),typeof i.Promise<"u"&&(w.runAllAsync=a(function(){return new i.Promise(function(A,j){let L=0;function Z(){tt(function(){try{J(w);let ae;if(L<w.loopLimit){if(!w.timers){I(),A(w.now);return}if(ae=Object.keys(w.timers).length,ae===0){I(),A(w.now);return}w.next(),L++,Z(),N(w,L);return}let nt=ve(w);j(oe(w,nt));}catch(ae){j(ae);}});}a(Z,"doRun"),Z();})},"runAllAsync")),w.runToLast=a(function(){let A=Ue(w);return A?w.tick(A.callAt-w.now):(J(w),w.now)},"runToLast"),typeof i.Promise<"u"&&(w.runToLastAsync=a(function(){return new i.Promise(function(A,j){tt(function(){try{let L=Ue(w);L||(J(w),A(w.now)),A(w.tickAsync(L.callAt-w.now));}catch(L){j(L);}});})},"runToLastAsync")),w.reset=a(function(){k=0,w.timers={},w.jobs=[],w.now=E;},"reset"),w.setSystemTime=a(function(A){let j=D(A),L=j-w.now,Z,ae;P[0]=P[0]+L,P[1]=P[1]+k,w.now=j,k=0;for(Z in w.timers)w.timers.hasOwnProperty(Z)&&(ae=w.timers[Z],ae.createdAt+=L,ae.callAt+=L);},"setSystemTime"),w.jump=a(function(A){let j=typeof A=="number"?A:q(A),L=Math.floor(j);for(let Z of Object.values(w.timers))w.now+L>Z.callAt&&(Z.callAt=w.now+L);w.tick(L);},"jump"),f.performance&&(w.performance=Object.create(null),w.performance.now=z),f.hrtime&&(w.hrtime=G),w}a(Os,"createClock");function Af(E){if(arguments.length>1||E instanceof Date||Array.isArray(E)||typeof E=="number")throw new TypeError(`FakeTimers.install called with ${String(E)} install requires an object parameter`);if(i.Date.isFake===true)throw new TypeError("Can't install fake timers twice on the same global object.");if(E=typeof E<"u"?E:{},E.shouldAdvanceTime=E.shouldAdvanceTime||false,E.advanceTimeDelta=E.advanceTimeDelta||20,E.shouldClearNativeTimers=E.shouldClearNativeTimers||false,E.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function _(F){if(!E.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${F}'`)}a(_,"handleMissingTimer");let k,P,w=Os(E.now,E.loopLimit);if(w.shouldClearNativeTimers=E.shouldClearNativeTimers,w.uninstall=function(){return $t(w,E)},w.abortListenerMap=new Map,w.methods=E.toFake||[],w.methods.length===0&&(w.methods=Object.keys(Se)),E.shouldAdvanceTime===true){let F=Ht.bind(null,w,E.advanceTimeDelta),G=i.setInterval(F,E.advanceTimeDelta);w.attachedInterval=G;}if(w.methods.includes("performance")){let F=(()=>{if(y)return i.performance.constructor.prototype;if(m)return i.Performance.prototype})();if(F)Object.getOwnPropertyNames(F).forEach(function(G){G!=="now"&&(w.performance[G]=G.indexOf("getEntries")===0?l:u);}),w.performance.mark=G=>new $(G,"mark",0,0),w.performance.measure=G=>new $(G,"measure",0,100),w.performance.timeOrigin=D(E.now);else if((E.toFake||[]).includes("performance"))return _("performance")}for(i===e&&t&&(w.timersModuleMethods=[]),i===e&&n&&(w.timersPromisesModuleMethods=[]),k=0,P=w.methods.length;k<P;k++){let F=w.methods[k];if(!f[F]){_(F);continue}if(F==="hrtime"?i.process&&typeof i.process.hrtime=="function"&&Ze(i.process,F,w):F==="nextTick"?i.process&&typeof i.process.nextTick=="function"&&Ze(i.process,F,w):Ze(i,F,w),w.timersModuleMethods!==void 0&&t[F]){let G=t[F];w.timersModuleMethods.push({methodName:F,original:G}),t[F]=i[F];}w.timersPromisesModuleMethods!==void 0&&(F==="setTimeout"?(w.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(G,z,U={})=>new Promise((R,A)=>{let j=a(()=>{U.signal.removeEventListener("abort",j),w.abortListenerMap.delete(j),w.clearTimeout(L),A(U.signal.reason);},"abort"),L=w.setTimeout(()=>{U.signal&&(U.signal.removeEventListener("abort",j),w.abortListenerMap.delete(j)),R(z);},G);U.signal&&(U.signal.aborted?j():(U.signal.addEventListener("abort",j),w.abortListenerMap.set(j,U.signal)));})):F==="setImmediate"?(w.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(G,z={})=>new Promise((U,R)=>{let A=a(()=>{z.signal.removeEventListener("abort",A),w.abortListenerMap.delete(A),w.clearImmediate(j),R(z.signal.reason);},"abort"),j=w.setImmediate(()=>{z.signal&&(z.signal.removeEventListener("abort",A),w.abortListenerMap.delete(A)),U(G);});z.signal&&(z.signal.aborted?A():(z.signal.addEventListener("abort",A),w.abortListenerMap.set(A,z.signal)));})):F==="setInterval"&&(w.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(G,z,U={})=>({[Symbol.asyncIterator]:()=>{let R=a(()=>{let pe,Ve,yt=new Promise((Ke,lt)=>{pe=Ke,Ve=lt;});return yt.resolve=pe,yt.reject=Ve,yt},"createResolvable"),A=false,j=false,L,Z=0,ae=[],nt=w.setInterval(()=>{ae.length>0?ae.shift().resolve():Z++;},G),We=a(()=>{U.signal.removeEventListener("abort",We),w.abortListenerMap.delete(We),w.clearInterval(nt),A=true;for(let pe of ae)pe.resolve();},"abort");return U.signal&&(U.signal.aborted?A=true:(U.signal.addEventListener("abort",We),w.abortListenerMap.set(We,U.signal))),{next:a(async()=>{if(U.signal?.aborted&&!j)throw j=true,U.signal.reason;if(A)return {done:true,value:void 0};if(Z>0)return Z--,{done:false,value:z};let pe=R();if(ae.push(pe),await pe,L&&ae.length===0&&L.resolve(),U.signal?.aborted&&!j)throw j=true,U.signal.reason;return A?{done:true,value:void 0}:{done:false,value:z}},"next"),return:a(async()=>A?{done:true,value:void 0}:(ae.length>0&&(L=R(),await L),w.clearInterval(nt),A=true,U.signal&&(U.signal.removeEventListener("abort",We),w.abortListenerMap.delete(We)),{done:true,value:void 0}),"return")}}})));}return w}return a(Af,"install"),{timers:Se,createClock:Os,install:Af,withGlobal:r}}a(r,"withGlobal");let o=r(e);return Ut.timers=o.timers,Ut.createClock=o.createClock,Ut.install=o.install,Ut.withGlobal=r,Ut}a(_b,"requireFakeTimersSrc");var Ob=_b(),Ms=class{static{a(this,"FakeTimers");}_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=Be.now;constructor({global:t,config:n}){this._userConfig=n,this._fakingDate=null,this._fakingTime=false,this._fakeTimers=Ob.withGlobal(t),this._global=t;}clearAllTimers(){this._fakingTime&&this._clock.reset();}dispose(){this.useRealTimers();}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll();}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync();}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast();}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync();}advanceTimersToNextTimer(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t);}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t);}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame();}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks();}useRealTimers(){this._fakingDate&&(os(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=false);}useFakeTimers(){let t=this._fakingDate||Date.now();this._fakingDate&&(os(),this._fakingDate=null),this._fakingTime&&this._clock.uninstall();let n=Object.keys(this._fakeTimers.timers).filter(r=>r!=="nextTick"&&r!=="queueMicrotask");if(this._userConfig?.toFake?.includes("nextTick")&&Ui())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:t,...this._userConfig,toFake:this._userConfig?.toFake||n,ignoreMissingTimers:true}),this._fakingTime=true;}reset(){if(this._checkFakeTimers()){let{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t);}}setSystemTime(t){let n=typeof t>"u"||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(n):(this._fakingDate=n??new Date(this.getRealSystemTime()),Ku(this._fakingDate));}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(t){this._userConfig=t;}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error("A function to advance timers was called but the timers APIs are not mocked. Call `vi.useFakeTimers()` in the test file first.");return this._fakingTime}};function bf(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(bf,"copyStackTrace");function Ib(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=at(),{interval:s=50,timeout:c=1e3}=typeof t=="number"?{timeout:t}:t,u=new Error("STACK_TRACE_ERROR");return new Promise((l,f)=>{let h,d="idle",p,m,y=a(M=>{p&&o(p),m&&i(m),l(M);},"onResolve"),v=a(()=>{m&&i(m);let M=h;M||(M=bf(new Error("Timed out in waitFor!"),u)),f(M);},"handleTimeout"),S=a(()=>{if(In.isFakeTimers()&&In.advanceTimersByTime(s),d!=="pending")try{let M=e();if(M!==null&&typeof M=="object"&&typeof M.then=="function"){let $=M;d="pending",$.then(O=>{d="resolved",y(O);},O=>{d="rejected",h=O;});}else return y(M),true}catch(M){h=M;}},"checkCallback");S()!==true&&(p=n(v,c),m=r(S,s));})}a(Ib,"waitFor");function Cb(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=at(),{interval:s=50,timeout:c=1e3}=typeof t=="number"?{timeout:t}:t,u=new Error("STACK_TRACE_ERROR");return new Promise((l,f)=>{let h="idle",d,p,m=a(S=>{p&&i(p),S||(S=bf(new Error("Timed out in waitUntil!"),u)),f(S);},"onReject"),y=a(S=>{if(S)return d&&o(d),p&&i(p),l(S),true},"onResolve"),v=a(()=>{if(In.isFakeTimers()&&In.advanceTimersByTime(s),h!=="pending")try{let S=e();if(S!==null&&typeof S=="object"&&typeof S.then=="function"){let M=S;h="pending",M.then($=>{h="resolved",y($);},$=>{h="rejected",m($);});}else return y(S)}catch(S){m(S);}},"checkCallback");v()!==true&&(d=n(m,c),p=r(v,s));})}a(Cb,"waitUntil");function kb(){let e=null,t=a(()=>vn(),"state"),n,r=a(()=>n||=new Ms({global:globalThis,config:t().config.fakeTimers}),"timers"),o=new Map,i=new Map,s=["PROD","DEV","SSR"],c={useFakeTimers(u){if(Ui()&&(u?.toFake?.includes("nextTick")||t().config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return u?r().configure({...t().config.fakeTimers,...u}):r().configure(t().config.fakeTimers),r().useFakeTimers(),c},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),c},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),c},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),c},runAllTimers(){return r().runAllTimers(),c},async runAllTimersAsync(){return await r().runAllTimersAsync(),c},runAllTicks(){return r().runAllTicks(),c},advanceTimersByTime(u){return r().advanceTimersByTime(u),c},async advanceTimersByTimeAsync(u){return await r().advanceTimersByTimeAsync(u),c},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),c},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),c},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),c},getTimerCount(){return r().getTimerCount()},setSystemTime(u){return r().setSystemTime(u),c},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),c},spyOn:sc,fn:ic,waitFor:Ib,waitUntil:Cb,hoisted(u){return me(u,'"vi.hoisted" factory',["function"]),u()},mock(u,l){if(typeof u!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof u}`);let f=Wt("mock");ze().queueMock(u,f,typeof l=="function"?()=>l(()=>ze().importActual(u,f,ze().getMockContext().callstack)):l);},unmock(u){if(typeof u!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof u}`);ze().queueUnmock(u,Wt("unmock"));},doMock(u,l){if(typeof u!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof u}`);let f=Wt("doMock");ze().queueMock(u,f,typeof l=="function"?()=>l(()=>ze().importActual(u,f,ze().getMockContext().callstack)):l);},doUnmock(u){if(typeof u!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof u}`);let l=Wt("doUnmock");ze().queueUnmock(u,l);},async importActual(u){let l=Wt("importActual");return ze().importActual(u,l,ze().getMockContext().callstack)},async importMock(u){let l=Wt("importMock");return ze().importMock(u,l)},mockObject(u,l){return ze().mockObject({value:u},void 0,l?.spy?"autospy":"automock").value},mocked(u,l={}){return u},isMockFunction(u){return ot(u)},clearAllMocks(){return lc(),c},resetAllMocks(){return uc(),c},restoreAllMocks(){return cc(),c},stubGlobal(u,l){return o.has(u)||o.set(u,Object.getOwnPropertyDescriptor(globalThis,u)),Object.defineProperty(globalThis,u,{value:l,writable:true,configurable:true,enumerable:true}),c},stubEnv(u,l){let f=t().metaEnv;return i.has(u)||i.set(u,f[u]),s.includes(u)?f[u]=l?"1":"":l===void 0?delete f[u]:f[u]=String(l),c},unstubAllGlobals(){return o.forEach((u,l)=>{u?Object.defineProperty(globalThis,l,u):Reflect.deleteProperty(globalThis,l);}),o.clear(),c},unstubAllEnvs(){let u=t().metaEnv;return i.forEach((l,f)=>{l===void 0?delete u[f]:u[f]=l;}),i.clear(),c},resetModules(){return yu(t().evaluatedModules),c},async dynamicImportSettled(){return Wi()},setConfig(u){e||(e={...t().config}),Object.assign(t().config,u);},resetConfig(){e&&Object.assign(t().config,e);}};return c}a(kb,"createVitest");var wf=kb(),In=wf;function ze(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(e,t){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}a(ze,"_mocker");function Wt(e){let t=_a({stackTraceLimit:5}).split(`
164
- `);return Er(t[t.findLastIndex(n=>n.includes(` at Object.${e}`)||n.includes(`${e}@`)||n.includes(` at ${e} (`))+1])?.file||""}a(Wt,"getImporter");var vf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$b=new Uint8Array(64),Nb=new Uint8Array(128);for(let e=0;e<vf.length;e++){let t=vf.charCodeAt(e);$b[e]=t,Nb[t]=e;}var Ab=new Set,Pb=new Set,Ef=a(e=>((...t)=>{for(let n of e){let r=n(...t);if(r)return r}return null}),"createExecHandlers");Ef(Ab);Ef(Pb);var Sf="vite-module-runner:import-meta-resolve/v1/";`
155
+ `,s=await e.readSnapshotFile(n);s!=null&&s===o||await e.saveSnapshotFile(n,o);}i(dw,"saveSnapshotFile");function $i(e=[],t=[]){let n=Array.from(e);return t.forEach((r,o)=>{let s=n[o];Array.isArray(e[o])?n[o]=$i(e[o],r):Le(s)?n[o]=ji(e[o],r):n[o]=r;}),n}i($i,"deepMergeArray");function ji(e,t){if(Le(e)&&Le(t)){let n={...e};return Object.keys(t).forEach(r=>{Le(t[r])&&!t[r].$$typeof?r in e?n[r]=ji(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=$i(e[r],t[r]):Object.assign(n,{[r]:t[r]});}),n}else if(Array.isArray(e)&&Array.isArray(t))return $i(e,t);return e}i(ji,"deepMergeSnapshot");var Qr=class extends Map{static{i(this,"DefaultMap");}constructor(t,n){super(n),this.defaultFn=t;}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},Nt=class extends Qr{static{i(this,"CounterMap");}constructor(){super(()=>0);}_total;valueOf(){return this._total=this.total()}increment(t){typeof this._total<"u"&&this._total++,this.set(t,this.get(t)+1);}total(){if(typeof this._total<"u")return this._total;let t=0;for(let n of this.values())t+=n;return t}};function Of(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}i(Of,"isSameStackPosition");var Ni=class e{static{i(this,"SnapshotState");}_counters=new Nt;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new Qr(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new Nt;_matched=new Nt;_unmatched=new Nt;_updated=new Nt;get added(){return this._added}set added(t){this._added._total=t;}get matched(){return this._matched}set matched(t){this._matched._total=t;}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t;}get updated(){return this._updated}set updated(t){this._updated._total=t;}constructor(t,n,r,o){this.testFilePath=t,this.snapshotPath=n;let{data:s,dirty:a}=cw(r,o);this._fileExists=r!=null,this._initialData={...s},this._snapshotData={...s},this._dirty=a,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=o.expand||false,this._updateSnapshot=o.updateSnapshot,this._snapshotFormat={printBasicPrototype:false,escapeString:false,...o.snapshotFormat},this._environment=o.snapshotEnvironment;}static async create(t,n){let r=await n.snapshotEnvironment.resolvePath(t),o=await n.snapshotEnvironment.readSnapshotFile(r);return new e(t,r,o,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(t.length))&&this._uncheckedKeys.delete(n);});}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==t);for(let n of this._testIdToKeys.get(t)){let r=aw(n),o=this._counters.get(r);o>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(r,o-1));}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t);}_inferInlineSnapshotStack(t){let n=t.findIndex(o=>o.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return t[n+3];for(let o=0;o<t.length;o++){let s=t[o].method.match(/__INLINE_SNAPSHOT_OFFSET_(\d+)__/);if(s)return t[o+Number(s[1])]??null}let r=t.findIndex(o=>o.method.includes("__INLINE_SNAPSHOT__"));return r!==-1?t[r+2]:null}_addSnapshot(t,n,r){this._dirty=true,r.stack?this._inlineSnapshots.push({snapshot:n,testId:r.testId,...r.stack}):r.rawSnapshot?this._rawSnapshots.push({...r.rawSnapshot,snapshot:n}):this._snapshotData[t]=n;}async save(){let t=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,r=this._rawSnapshots.length,o=!t&&!n&&!r,s={deleted:false,saved:false};return (this._dirty||this._uncheckedKeys.size)&&!o?(t&&(await dw(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=true),n&&await Fy(this._environment,this._inlineSnapshots),r&&await Vy(this._environment,this._rawSnapshots),s.saved=true):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=false),s.deleted=true),s}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=true,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear());}match({testId:t,testName:n,received:r,key:o,inlineSnapshot:s,isInline:a,error:l,rawSnapshot:c}){this._counters.increment(n);let u=this._counters.get(n);o||(o=iw(n,u)),this._testIdToKeys.get(t).push(o),a&&this._snapshotData[o]!==void 0||this._uncheckedKeys.delete(o);let f=c&&typeof r=="string"?r:hw(r,void 0,this._snapshotFormat);c||(f=lw(f)),c&&c.content&&c.content.match(/\r\n/)&&!f.match(/\r\n/)&&(c.content=Ri(c.content));let h=a?s:c?c.content:this._snapshotData[o],d=c?h:h?.trim(),p=d===(c?f:f.trim()),g=h!==void 0,m=a||this._fileExists||c&&c.content!=null;p&&!a&&!c&&(this._snapshotData[o]=f);let b;if(a){let E=il(l||new Error("snapshot"),{ignoreStackEntries:[]}),M=this._inferInlineSnapshotStack(E);if(!M)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
156
+ ${JSON.stringify(E)}`);b=this.environment.processStackTrace?.(M)||M,b.column--;let A=this._inlineSnapshotStacks.filter(C=>Of(C,b));if(A.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(O=>!Of(O,b));let C=A.find(O=>O.snapshot!==f);if(C)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:C.snapshot})}this._inlineSnapshotStacks.push({...b,testId:t,snapshot:f});}return g&&this._updateSnapshot==="all"||(!g||!m)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?p?this.matched.increment(t):(g?this.updated.increment(t):this.added.increment(t),this._addSnapshot(o,f,{stack:b,testId:t,rawSnapshot:c})):(this._addSnapshot(o,f,{stack:b,testId:t,rawSnapshot:c}),this.added.increment(t)),{actual:"",count:u,expected:"",key:o,pass:true}):p?(this.matched.increment(t),{actual:"",count:u,expected:"",key:o,pass:true}):(this.unmatched.increment(t),{actual:c?f:Cf(f),count:u,expected:d!==void 0?c?d:Cf(d):void 0,key:o,pass:false})}async pack(){let t={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),r=this.getUncheckedKeys();n&&this.removeUncheckedKeys();let o=await this.save();return t.fileDeleted=o.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=o.deleted?0:n,t.uncheckedKeys=Array.from(r),t}};function If(e,t,n,r){let o=new Error(e);return Object.defineProperty(o,"actual",{value:n,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"expected",{value:r,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}i(If,"createMismatchError");var eo=class{static{i(this,"SnapshotClient");}snapshotStateMap=new Map;constructor(t={}){this.options=t;}async setup(t,n){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await Ni.create(t,n));}async finish(t){let r=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),r}skipTest(t,n){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(n);}clearTest(t,n){this.getSnapshotState(t).clearTest(n);}getSnapshotState(t){let n=this.snapshotStateMap.get(t);if(!n)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(t){let{filepath:n,name:r,testId:o=r,message:s,isInline:a=false,properties:l,inlineSnapshot:c,error:u,errorMessage:f,rawSnapshot:h}=t,{received:d}=t;if(!n)throw new Error("Snapshot cannot be used outside of test");let p=this.getSnapshotState(n);if(typeof l=="object"){if(typeof d!="object"||!d)throw new Error("Received value must be an object when the matcher has properties");try{if(this.options.isEqual?.(d,l)??false)d=ji(d,l);else throw If("Snapshot properties mismatched",p.expand,d,l)}catch(A){throw A.message=f||"Snapshot mismatched",A}}let g=[r,...s?[s]:[]].join(" > "),{actual:m,expected:b,key:E,pass:M}=p.match({testId:o,testName:g,received:d,isInline:a,error:u,inlineSnapshot:c,rawSnapshot:h});if(!M)throw If(`Snapshot \`${E||"unknown"}\` mismatched`,p.expand,h?m:m?.trim(),h?b:b?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");let{filepath:n,rawSnapshot:r}=t;if(r.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");let o=this.getSnapshotState(n);t.filepath||=n,r.file=await o.environment.resolveRawPath(n,r.file),r.content=await o.environment.readSnapshotFile(r.file)??void 0;}return this.assert(t)}clear(){this.snapshotStateMap.clear();}};var to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var Je=Date,Fi=null,Et=class e extends Je{static{i(this,"MockDate");}constructor(t,n,r,o,s,a,l){super();let c;switch(arguments.length){case 0:Fi!==null?c=new Je(Fi.valueOf()):c=new Je;break;case 1:c=new Je(t);break;default:r=typeof r>"u"?1:r,o=o||0,s=s||0,a=a||0,l=l||0,c=new Je(t,n,r,o,s,a,l);break}return Object.setPrototypeOf(c,e.prototype),c}};Et.UTC=Je.UTC;Et.now=function(){return new Et().valueOf()};Et.parse=function(e){return Je.parse(e)};Et.toString=function(){return Je.toString()};function Nf(e){let t=new Je(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=Et,Fi=t.valueOf();}i(Nf,"mockDate");function Di(){globalThis.Date=Je;}i(Di,"resetDate");var mw=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function gw(e,t){throw e.cause==null&&(e.cause=new Error("Matcher did not succeed in time.")),nh(e,t)}i(gw,"throwWithCause");function yw(e){return i(function(n,r={}){let o=wn().config.expect?.poll??{},{interval:s=o.interval??50,timeout:a=o.timeout??1e3,message:l}=r,c=e(null,l).withContext({poll:true});n=n.bind(c);let u=oe.util.flag(c,"vitest-test");if(!u)throw new Error("expect.poll() must be called inside a test");let f=new Proxy(c,{get(h,d,p){let g=Reflect.get(h,d,p);if(typeof g!="function")return g instanceof oe.Assertion?f:g;if(d==="assert")return g;if(typeof d=="string"&&mw.includes(d))throw new SyntaxError(`expect.poll() is not supported in combination with .${d}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...m){let b=new Error("STACK_TRACE_ERROR"),E=i(async()=>{let{setTimeout:C,clearTimeout:O}=ft(),N="fn",_=false,q=C(()=>{_=true;},a);oe.util.flag(c,"_name",d);let Q=oe.util.flag(c,"_poll.onSettled");try{for(;;){let R=_;R&&oe.util.flag(c,"_isLastPollAttempt",true);try{N="fn";let V=await n();oe.util.flag(c,"object",V),N="assertion";let Y=await g.call(c,...m);return await Q?.({assertion:c,status:"pass"}),Y}catch(V){(R||N==="assertion"&&oe.util.flag(c,"_poll.assert_once"))&&(await Q?.({assertion:c,status:"fail"}),gw(V,b)),await Yc(s,C);}}}finally{O(q);}},"promise"),M=false;u.onFinished??=[],u.onFinished.push(()=>{if(!M){let C=oe.util.flag(c,"negate")?"not.":"",O=`expect.${oe.util.flag(c,"_poll.element")?"element(locator)":"poll(assertion)"}.${C}${String(d)}()`;throw nh(new Error(`${O} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
157
+
158
+ await ${O}
159
+ `),b)}});let A;return {then(C,O){return M=true,(A||=E()).then(C,O)},catch(C){return M=true,(A||=E()).catch(C)},finally(C){return M=true,(A||=E()).finally(C)},[Symbol.toStringTag]:"Promise"}}}});return f},"poll")}i(yw,"createExpectPoll");function nh(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}i(nh,"copyStackTrace$1");var Li;function jn(){return Li||(Li=new eo({isEqual:i((e,t)=>K(e,t,[ke,At]),"isEqual")})),Li}i(jn,"getSnapshotClient");function Pf(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e();}catch(n){return n}throw new Error("snapshot function didn't throw")}i(Pf,"getError");function Fn(e){return {filepath:e.file.filepath,name:as(e).slice(1).join(" > "),testId:e.id}}i(Fn,"getTestNames");var ww=i((e,t)=>{function n(r,o){let s=t.flag(o,"vitest-test");if(!s)throw new Error(`'${r}' cannot be used without test context`);return s}i(n,"getTest");for(let r of ["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,$t(t,r,function(o,s){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);let a=t.flag(this,"object"),l=n(r,this);typeof o=="string"&&typeof s>"u"&&(s=o,o=void 0);let c=t.flag(this,"message");jn().assert({received:a,message:s,isInline:false,properties:o,errorMessage:c,...Fn(l)});}));t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,o){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');let s=new Error("resolves"),a=t.flag(this,"object"),l=n("toMatchFileSnapshot",this),c=t.flag(this,"message");return zr(l,jn().assertRaw({received:a,message:o,isInline:false,rawSnapshot:{file:r},errorMessage:c,...Fn(l)}),Ur(t,this,true),s,t.flag(this,"soft"))}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",$t(t,"toMatchInlineSnapshot",i(function(o,s,a){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');let l=n("toMatchInlineSnapshot",this),c=t.flag(this,"object"),u=t.flag(this,"error");typeof o=="string"&&(a=s,s=o,o=void 0),s&&(s=Pi(s));let f=t.flag(this,"message");jn().assert({received:c,message:a,isInline:true,properties:o,inlineSnapshot:s,error:u,errorMessage:f,...Fn(l)});},"__INLINE_SNAPSHOT_OFFSET_3__"))),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",$t(t,"toThrowErrorMatchingSnapshot",function(r,o){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let s=t.flag(this,"object"),a=n("toThrowErrorMatchingSnapshot",this),l=t.flag(this,"promise"),c=t.flag(this,"message");jn().assert({received:Pf(s,l),message:o,errorMessage:c,...Fn(a)});})),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",$t(t,"toThrowErrorMatchingInlineSnapshot",i(function(o,s){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let a=n("toThrowErrorMatchingInlineSnapshot",this),l=t.flag(this,"object"),c=t.flag(this,"error"),u=t.flag(this,"promise"),f=t.flag(this,"message");o&&(o=Pi(o)),jn().assert({received:Pf(l,u),message:s,inlineSnapshot:o,isInline:true,error:c,errorMessage:f,...Fn(a)});},"__INLINE_SNAPSHOT_OFFSET_3__"))),t.addMethod(e.expect,"addSnapshotSerializer",$f);},"SnapshotPlugin");oe.use(uf);oe.use(lf);oe.use(Zu);oe.use(ww);oe.use(cf);function rh(e){let t=i(((s,a)=>{let{assertionCalls:l}=Gt(t);Gr({assertionCalls:l+1},t);let c=oe.expect(s,a),u=e||Ut();return u?c.withTest(u):c}),"expect");Object.assign(t,oe.expect),Object.assign(t,globalThis[Vr]),t.getState=()=>Gt(t),t.setState=s=>Gr(s,t);let n=Gt(globalThis[An])||{};Gr({...n,assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return wn().filepath},currentTestName:e?e.fullTestName??"":n.currentTestName},t),t.assert=oe.assert,t.extend=s=>oe.expect.extend(t,s),t.addEqualityTesters=s=>nf(s),t.soft=(...s)=>t(...s).withContext({soft:true}),t.poll=yw(t),t.unreachable=s=>{oe.assert.fail(`expected${s?` "${s}" `:" "}not to be reached`);};function r(s){let a=i(()=>new Error(`expected number of assertions to be ${s}, but got ${t.getState().assertionCalls}`),"errorGen");Error.captureStackTrace&&Error.captureStackTrace(a(),r),t.setState({expectedAssertionsNumber:s,expectedAssertionsNumberErrorGen:a});}i(r,"assertions");function o(){let s=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(s,o),t.setState({isExpectingAssertions:true,isExpectingAssertionsError:s});}return i(o,"hasAssertions"),oe.util.addMethod(t,"assertions",r),oe.util.addMethod(t,"hasAssertions",o),t.extend(Qu),t}i(rh,"createExpect");var Re=rh();Object.defineProperty(globalThis,An,{value:Re,writable:true,configurable:true});var Yt={},Bi,Rf;function Sw(){if(Rf)return Bi;Rf=1;var e;return typeof to<"u"?e=to:typeof window<"u"?e=window:e=self,Bi=e,Bi}i(Sw,"requireGlobal");var qi,jf;function Ew(){if(jf)return qi;jf=1;let e;try{e=false;}catch{e=true;}return qi=e,qi}i(Ew,"requireThrowsOnProto");var Ui,Ff;function Zt(){if(Ff)return Ui;Ff=1;var e=Function.call,t=Ew(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),Ui=i(function(o){return Object.getOwnPropertyNames(o).reduce(function(s,a){return n.includes(a)||typeof o[a]!="function"||(s[a]=e.bind(o[a])),s},Object.create(null))},"copyPrototypeMethods"),Ui}i(Zt,"requireCopyPrototypeMethods");var zi,Df;function ro(){if(Df)return zi;Df=1;var e=Zt();return zi=e(Array.prototype),zi}i(ro,"requireArray");var Wi,Lf;function vw(){if(Lf)return Wi;Lf=1;var e=ro().every;function t(o,s){return o[s.id]===void 0&&(o[s.id]=0),o[s.id]<s.callCount}i(t,"hasCallsLeft");function n(o,s,a,l){var c=true;return a!==l.length-1&&(c=s.calledBefore(l[a+1])),t(o,s)&&c?(o[s.id]+=1,true):false}i(n,"checkAdjacentCalls");function r(o){var s={},a=arguments.length>1?arguments:o;return e(a,n.bind(null,s))}return i(r,"calledInOrder"),Wi=r,Wi}i(vw,"requireCalledInOrder");var Vi,Bf;function xw(){if(Bf)return Vi;Bf=1;function e(t){return t.constructor&&t.constructor.name||null}return i(e,"className"),Vi=e,Vi}i(xw,"requireClassName");var Ki={},qf;function kw(){return qf||(qf=1,(function(e){e.wrap=function(t,n){var r=i(function(){return e.printWarning(n),t.apply(this,arguments)},"wrapped");return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(t,n){return `${t}.${n} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t);};})(Ki)),Ki}i(kw,"requireDeprecated");var Hi,Uf;function Mw(){return Uf||(Uf=1,Hi=i(function(t,n){var r=true;try{t.forEach(function(){if(!n.apply(this,arguments))throw new Error});}catch{r=false;}return r},"every")),Hi}i(Mw,"requireEvery");var Gi,zf;function Cw(){return zf||(zf=1,Gi=i(function(t){if(!t)return "";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}},"functionName")),Gi}i(Cw,"requireFunctionName");var Ji,Wf;function _w(){if(Wf)return Ji;Wf=1;var e=ro().sort,t=ro().slice;function n(o,s){var a=o.getCall(0),l=s.getCall(0),c=a&&a.callId||-1,u=l&&l.callId||-1;return c<u?-1:1}i(n,"comparator");function r(o){return e(t(o),n)}return i(r,"orderByFirstCall"),Ji=r,Ji}i(_w,"requireOrderByFirstCall");var Yi,Vf;function Ow(){if(Vf)return Yi;Vf=1;var e=Zt();return Yi=e(Function.prototype),Yi}i(Ow,"require_function");var Xi,Kf;function Iw(){if(Kf)return Xi;Kf=1;var e=Zt();return Xi=e(Map.prototype),Xi}i(Iw,"requireMap");var Zi,Hf;function Aw(){if(Hf)return Zi;Hf=1;var e=Zt();return Zi=e(Object.prototype),Zi}i(Aw,"requireObject");var Qi,Gf;function $w(){if(Gf)return Qi;Gf=1;var e=Zt();return Qi=e(Set.prototype),Qi}i($w,"requireSet");var ea,Jf;function Nw(){if(Jf)return ea;Jf=1;var e=Zt();return ea=e(String.prototype),ea}i(Nw,"requireString");var ta,Yf;function Pw(){return Yf||(Yf=1,ta={array:ro(),function:Ow(),map:Iw(),object:Aw(),set:$w(),string:Nw()}),ta}i(Pw,"requirePrototypes");var no={exports:{}},Rw=no.exports,Xf;function jw(){return Xf||(Xf=1,(function(e,t){(function(n,r){e.exports=r();})(Rw,(function(){var n=typeof Promise=="function",r=typeof self=="object"?self:to,o=typeof Symbol<"u",s=typeof Map<"u",a=typeof Set<"u",l=typeof WeakMap<"u",c=typeof WeakSet<"u",u=typeof DataView<"u",f=o&&typeof Symbol.iterator<"u",h=o&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",p=s&&typeof Map.prototype.entries=="function",g=d&&Object.getPrototypeOf(new Set().entries()),m=p&&Object.getPrototypeOf(new Map().entries()),b=f&&typeof Array.prototype[Symbol.iterator]=="function",E=b&&Object.getPrototypeOf([][Symbol.iterator]()),M=f&&typeof String.prototype[Symbol.iterator]=="function",A=M&&Object.getPrototypeOf(""[Symbol.iterator]()),C=8,O=-1;function N(_){var q=typeof _;if(q!=="object")return q;if(_===null)return "null";if(_===r)return "global";if(Array.isArray(_)&&(h===false||!(Symbol.toStringTag in _)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&_===window.location)return "Location";if(typeof window.document=="object"&&_===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&_===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&_===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&_ instanceof window.HTMLElement){if(_.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if(_.tagName==="TD")return "HTMLTableDataCellElement";if(_.tagName==="TH")return "HTMLTableHeaderCellElement"}}var Q=h&&_[Symbol.toStringTag];if(typeof Q=="string")return Q;var R=Object.getPrototypeOf(_);return R===RegExp.prototype?"RegExp":R===Date.prototype?"Date":n&&R===Promise.prototype?"Promise":a&&R===Set.prototype?"Set":s&&R===Map.prototype?"Map":c&&R===WeakSet.prototype?"WeakSet":l&&R===WeakMap.prototype?"WeakMap":u&&R===DataView.prototype?"DataView":s&&R===m?"Map Iterator":a&&R===g?"Set Iterator":b&&R===E?"Array Iterator":M&&R===A?"String Iterator":R===null?"Object":Object.prototype.toString.call(_).slice(C,O)}return i(N,"typeDetect"),N}));})(no)),no.exports}i(jw,"requireTypeDetect");var na,Zf;function Fw(){if(Zf)return na;Zf=1;var e=jw();return na=i(function(n){return e(n).toLowerCase()},"typeOf"),na}i(Fw,"requireTypeOf");var ra,Qf;function Dw(){if(Qf)return ra;Qf=1;function e(t){return t&&t.toString?t.toString():String(t)}return i(e,"valueToString"),ra=e,ra}i(Dw,"requireValueToString");var oa,eh;function Lw(){return eh||(eh=1,oa={global:Sw(),calledInOrder:vw(),className:xw(),deprecated:kw(),every:Mw(),functionName:Cw(),orderByFirstCall:_w(),prototypes:Pw(),typeOf:Fw(),valueToString:Dw()}),oa}i(Lw,"requireLib");var th;function Bw(){if(th)return Yt;th=1;let e=Lw().global,t,n;if(typeof __vitest_required__<"u"){try{t=__vitest_required__.timers;}catch{}try{n=__vitest_required__.timersPromises;}catch{}}function r(s){let a=Math.pow(2,31)-1,l=1e12,c=i(function(){},"NOOP"),u=i(function(){return []},"NOOP_ARRAY"),f={},h,d=false;s.setTimeout&&(f.setTimeout=true,h=s.setTimeout(c,0),d=typeof h=="object"),f.clearTimeout=!!s.clearTimeout,f.setInterval=!!s.setInterval,f.clearInterval=!!s.clearInterval,f.hrtime=s.process&&typeof s.process.hrtime=="function",f.hrtimeBigint=f.hrtime&&typeof s.process.hrtime.bigint=="function",f.nextTick=s.process&&typeof s.process.nextTick=="function";let p=s.process&&s.__vitest_required__&&s.__vitest_required__.util.promisify;f.performance=s.performance&&typeof s.performance.now=="function";let g=s.Performance&&(typeof s.Performance).match(/^(function|object)$/),m=s.performance&&s.performance.constructor&&s.performance.constructor.prototype;f.queueMicrotask=s.hasOwnProperty("queueMicrotask"),f.requestAnimationFrame=s.requestAnimationFrame&&typeof s.requestAnimationFrame=="function",f.cancelAnimationFrame=s.cancelAnimationFrame&&typeof s.cancelAnimationFrame=="function",f.requestIdleCallback=s.requestIdleCallback&&typeof s.requestIdleCallback=="function",f.cancelIdleCallbackPresent=s.cancelIdleCallback&&typeof s.cancelIdleCallback=="function",f.setImmediate=s.setImmediate&&typeof s.setImmediate=="function",f.clearImmediate=s.clearImmediate&&typeof s.clearImmediate=="function",f.Intl=s.Intl&&typeof s.Intl=="object",s.clearTimeout&&s.clearTimeout(h);let b=s.Date,E=f.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(s.Intl)):void 0,M=l;if(b===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");f.Date=true;class A{static{i(this,"FakePerformanceEntry");}constructor(k,I,j,T){this.name=k,this.entryType=I,this.startTime=j,this.duration=T;}toJSON(){return JSON.stringify({...this})}}function C(v){return Number.isFinite?Number.isFinite(v):isFinite(v)}i(C,"isNumberFinite");let O=false;function N(v,k){v.loopLimit&&k===v.loopLimit-1&&(O=true);}i(N,"checkIsNearInfiniteLimit");function _(){O=false;}i(_,"resetIsNearInfiniteLimit");function q(v){if(!v)return 0;let k=v.split(":"),I=k.length,j=I,T=0,L;if(I>3||!/^(\d\d:){0,2}\d\d?$/.test(v))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;j--;){if(L=parseInt(k[j],10),L>=60)throw new Error(`Invalid time ${v}`);T+=L*Math.pow(60,I-j-1);}return T*1e3}i(q,"parseTime");function Q(v){let I=v*1e6%1e6,j=I<0?I+1e6:I;return Math.floor(j)}i(Q,"nanoRemainder");function R(v){if(!v)return 0;if(typeof v.getTime=="function")return v.getTime();if(typeof v=="number")return v;throw new TypeError("now should be milliseconds since UNIX epoch")}i(R,"getEpoch");function V(v,k,I){return I&&I.callAt>=v&&I.callAt<=k}i(V,"inRange");function Y(v,k){let I=new Error(`Aborting after running ${v.loopLimit} timers, assuming an infinite loop!`);if(!k.error)return I;let j=/target\.*[<|(|[].*?[>|\]|)]\s*/,T=new RegExp(String(Object.keys(v).join("|")));d&&(T=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(v).join("|")})\\s+`));let L=-1;k.error.stack.split(`
160
+ `).some(function(J,te){return J.match(j)?(L=te,true):J.match(T)?(L=te,false):L>=0});let B=`${I}
161
+ ${k.type||"Microtask"} - ${k.func.name||"anonymous"}
162
+ ${k.error.stack.split(`
163
+ `).slice(L+1).join(`
164
+ `)}`;try{Object.defineProperty(I,"stack",{value:B});}catch{}return I}i(Y,"getInfiniteLoopError");function Te(){class v extends b{static{i(this,"ClockDate");}constructor(j,T,L,B,J,te,Fe){arguments.length===0?super(v.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:b,enumerable:false});}static[Symbol.hasInstance](j){return j instanceof b}}return v.isFake=true,b.now&&(v.now=i(function(){return v.clock.now},"now")),b.toSource&&(v.toSource=i(function(){return b.toSource()},"toSource")),v.toString=i(function(){return b.toString()},"toString"),new Proxy(v,{apply(){if(this instanceof v)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new b(v.clock.now).toString()}})}i(Te,"createDate");function le(){let v={};return Object.getOwnPropertyNames(E).forEach(k=>v[k]=E[k]),v.DateTimeFormat=function(...k){let I=new E.DateTimeFormat(...k),j={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(T=>{j[T]=I[T].bind(I);}),["format","formatToParts"].forEach(T=>{j[T]=function(L){return I[T](L||v.clock.now)};}),j},v.DateTimeFormat.prototype=Object.create(E.DateTimeFormat.prototype),v.DateTimeFormat.supportedLocalesOf=E.DateTimeFormat.supportedLocalesOf,v}i(le,"createIntl");function W(v,k){v.jobs||(v.jobs=[]),v.jobs.push(k);}i(W,"enqueueJob");function U(v){if(v.jobs){for(let k=0;k<v.jobs.length;k++){let I=v.jobs[k];if(I.func.apply(null,I.args),N(v,k),v.loopLimit&&k>v.loopLimit)throw Y(v,I)}_(),v.jobs=[];}}i(U,"runJobs");function ee(v,k){if(k.func===void 0)throw new Error("Callback must be provided to timer calls");if(d&&typeof k.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${k.func} of type ${typeof k.func}`);if(O&&(k.error=new Error),k.type=k.immediate?"Immediate":"Timeout",k.hasOwnProperty("delay")&&(typeof k.delay!="number"&&(k.delay=parseInt(k.delay,10)),C(k.delay)||(k.delay=0),k.delay=k.delay>a?1:k.delay,k.delay=Math.max(0,k.delay)),k.hasOwnProperty("interval")&&(k.type="Interval",k.interval=k.interval>a?1:k.interval),k.hasOwnProperty("animation")&&(k.type="AnimationFrame",k.animation=true),k.hasOwnProperty("idleCallback")&&(k.type="IdleCallback",k.idleCallback=true),v.timers||(v.timers={}),k.id=M++,k.createdAt=v.now,k.callAt=v.now+(parseInt(k.delay)||(v.duringTick?1:0)),v.timers[k.id]=k,d){let I={refed:true,ref:i(function(){return this.refed=true,I},"ref"),unref:i(function(){return this.refed=false,I},"unref"),hasRef:i(function(){return this.refed},"hasRef"),refresh:i(function(){return k.callAt=v.now+(parseInt(k.delay)||(v.duringTick?1:0)),v.timers[k.id]=k,I},"refresh"),[Symbol.toPrimitive]:function(){return k.id}};return I}return k.id}i(ee,"addTimer");function Me(v,k){if(v.callAt<k.callAt)return -1;if(v.callAt>k.callAt)return 1;if(v.immediate&&!k.immediate)return -1;if(!v.immediate&&k.immediate)return 1;if(v.createdAt<k.createdAt)return -1;if(v.createdAt>k.createdAt)return 1;if(v.id<k.id)return -1;if(v.id>k.id)return 1}i(Me,"compareTimers");function fe(v,k,I){let j=v.timers,T=null,L,B;for(L in j)j.hasOwnProperty(L)&&(B=V(k,I,j[L]),B&&(!T||Me(T,j[L])===1)&&(T=j[L]));return T}i(fe,"firstTimerInRange");function me(v){let k=v.timers,I=null,j;for(j in k)k.hasOwnProperty(j)&&(!I||Me(I,k[j])===1)&&(I=k[j]);return I}i(me,"firstTimer");function je(v){let k=v.timers,I=null,j;for(j in k)k.hasOwnProperty(j)&&(!I||Me(I,k[j])===-1)&&(I=k[j]);return I}i(je,"lastTimer");function xe(v,k){if(typeof k.interval=="number"?v.timers[k.id].callAt+=k.interval:delete v.timers[k.id],typeof k.func=="function")k.func.apply(null,k.args);else {let I=eval;(function(){I(k.func);})();}}i(xe,"callTimer");function Ce(v){return v==="IdleCallback"||v==="AnimationFrame"?`cancel${v}`:`clear${v}`}i(Ce,"getClearHandler");function it(v){return v==="IdleCallback"||v==="AnimationFrame"?`request${v}`:`set${v}`}i(it,"getScheduleHandler");function ze(){let v=0;return function(k){!v++&&console.warn(k);}}i(ze,"createWarnOnce");let _e=ze();function Oe(v,k,I){if(!k)return;v.timers||(v.timers={});let j=Number(k);if(Number.isNaN(j)||j<l){let T=Ce(I);if(v.shouldClearNativeTimers===true){let L=v[`_${T}`];return typeof L=="function"?L(k):void 0}_e(`FakeTimers: ${T} was invoked to clear a native timer instead of one created by this library.
165
+ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(v.timers.hasOwnProperty(j)){let T=v.timers[j];if(T.type===I||T.type==="Timeout"&&I==="Interval"||T.type==="Interval"&&I==="Timeout")delete v.timers[j];else {let L=Ce(I),B=it(T.type);throw new Error(`Cannot clear timer: timer created with ${B}() but cleared with ${L}()`)}}}i(Oe,"clearTimer");function Rt(v){let k,I,j,T="_hrtime",L="_nextTick";for(I=0,j=v.methods.length;I<j;I++){if(k=v.methods[I],k==="hrtime"&&s.process)s.process.hrtime=v[T];else if(k==="nextTick"&&s.process)s.process.nextTick=v[L];else if(k==="performance"){let B=Object.getOwnPropertyDescriptor(v,`_${k}`);B&&B.get&&!B.set?Object.defineProperty(s,k,B):B.configurable&&(s[k]=v[`_${k}`]);}else if(s[k]&&s[k].hadOwnProperty)s[k]=v[`_${k}`];else try{delete s[k];}catch{}if(v.timersModuleMethods!==void 0)for(let B=0;B<v.timersModuleMethods.length;B++){let J=v.timersModuleMethods[B];t[J.methodName]=J.original;}if(v.timersPromisesModuleMethods!==void 0)for(let B=0;B<v.timersPromisesModuleMethods.length;B++){let J=v.timersPromisesModuleMethods[B];n[J.methodName]=J.original;}}v.setTickMode("manual"),v.methods=[];for(let[B,J]of v.abortListenerMap.entries())J.removeEventListener("abort",B),v.abortListenerMap.delete(B);return v.timers?Object.keys(v.timers).map(i(function(J){return v.timers[J]},"mapper")):[]}i(Rt,"uninstall");function Qe(v,k,I){if(I[k].hadOwnProperty=Object.prototype.hasOwnProperty.call(v,k),I[`_${k}`]=v[k],k==="Date")v[k]=I[k];else if(k==="Intl")v[k]=I[k];else if(k==="performance"){let j=Object.getOwnPropertyDescriptor(v,k);if(j&&j.get&&!j.set){Object.defineProperty(I,`_${k}`,j);let T=Object.getOwnPropertyDescriptor(I,k);Object.defineProperty(v,k,T);}else v[k]=I[k];}else v[k]=function(){return I[k].apply(I,arguments)},Object.defineProperties(v[k],Object.getOwnPropertyDescriptors(I[k]));v[k].clock=I;}i(Qe,"hijackMethod");function tn(v,k){v.tick(k);}i(tn,"doIntervalTick");let Se={setTimeout:s.setTimeout,clearTimeout:s.clearTimeout,setInterval:s.setInterval,clearInterval:s.clearInterval,Date:s.Date};f.setImmediate&&(Se.setImmediate=s.setImmediate),f.clearImmediate&&(Se.clearImmediate=s.clearImmediate),f.hrtime&&(Se.hrtime=s.process.hrtime),f.nextTick&&(Se.nextTick=s.process.nextTick),f.performance&&(Se.performance=s.performance),f.requestAnimationFrame&&(Se.requestAnimationFrame=s.requestAnimationFrame),f.queueMicrotask&&(Se.queueMicrotask=s.queueMicrotask),f.cancelAnimationFrame&&(Se.cancelAnimationFrame=s.cancelAnimationFrame),f.requestIdleCallback&&(Se.requestIdleCallback=s.requestIdleCallback),f.cancelIdleCallback&&(Se.cancelIdleCallback=s.cancelIdleCallback),f.Intl&&(Se.Intl=E);let et=s.setImmediate||s.setTimeout,wh=s.clearInterval,bh=s.setInterval;function ca(v,k){v=Math.floor(R(v)),k=k||1e3;let I=0,j=[0,0],T={now:v,Date:Te(),loopLimit:k,tickMode:{mode:"manual",counter:0,delta:void 0}};T.Date.clock=T;function L(){return 16-(T.now-v)%16}i(L,"getTimeToNextFrame");function B(P){let $=T.now-j[0]-v,F=Math.floor($/1e3),D=($-F*1e3)*1e6+I-j[1];if(Array.isArray(P)){if(P[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let X=P[0],ae=D-P[1],Ie=F-X;return ae<0&&(ae+=1e9,Ie-=1),[Ie,ae]}return [F,D]}i(B,"hrtime");function J(){let P=B();return P[0]*1e3+P[1]/1e6}i(J,"fakePerformanceNow"),f.hrtimeBigint&&(B.bigint=function(){let P=B();return BigInt(P[0])*BigInt(1e9)+BigInt(P[1])}),f.Intl&&(T.Intl=le(),T.Intl.clock=T),T.setTickMode=function(P){let{mode:$,delta:F}=P,{mode:D,delta:X}=T.tickMode;$===D&&F===X||(D==="interval"&&wh(T.attachedInterval),T.tickMode={counter:T.tickMode.counter+1,mode:$,delta:F},$==="nextAsync"?te():$==="interval"&&Th(T,F||20));};async function te(){async function P(){let F=new MessageChannel;await new Promise(D=>{F.port1.onmessage=()=>{D(),F.port1.close();},F.port2.postMessage(void 0);}),F.port1.close(),F.port2.close(),await new Promise(D=>{et(D);});}i(P,"newMacrotask");let{counter:$}=T.tickMode;for(;T.tickMode.counter===$;){if(await P(),T.tickMode.counter!==$)return;T.next();}}i(te,"advanceUntilModeChanges");function Fe(P){return T.tickMode.mode!=="nextAsync"?P:(T.setTickMode({mode:"manual"}),P.finally(()=>{T.setTickMode({mode:"nextAsync"});}))}i(Fe,"pauseAutoTickUntilFinished"),T.requestIdleCallback=i(function($,F){let D=0;T.countTimers()>0&&(D=50);let X=ee(T,{func:$,args:Array.prototype.slice.call(arguments,2),delay:typeof F>"u"?D:Math.min(F,D),idleCallback:true});return Number(X)},"requestIdleCallback"),T.cancelIdleCallback=i(function($){return Oe(T,$,"IdleCallback")},"cancelIdleCallback"),T.setTimeout=i(function($,F){return ee(T,{func:$,args:Array.prototype.slice.call(arguments,2),delay:F})},"setTimeout"),typeof s.Promise<"u"&&p&&(T.setTimeout[p.custom]=i(function($,F){return new s.Promise(i(function(X){ee(T,{func:X,args:[F],delay:$});},"setTimeoutExecutor"))},"promisifiedSetTimeout")),T.clearTimeout=i(function($){return Oe(T,$,"Timeout")},"clearTimeout"),T.nextTick=i(function($){return W(T,{func:$,args:Array.prototype.slice.call(arguments,1),error:O?new Error:null})},"nextTick"),T.queueMicrotask=i(function($){return T.nextTick($)},"queueMicrotask"),T.setInterval=i(function($,F){return F=parseInt(F,10),ee(T,{func:$,args:Array.prototype.slice.call(arguments,2),delay:F,interval:F})},"setInterval"),T.clearInterval=i(function($){return Oe(T,$,"Interval")},"clearInterval"),f.setImmediate&&(T.setImmediate=i(function($){return ee(T,{func:$,args:Array.prototype.slice.call(arguments,1),immediate:true})},"setImmediate"),typeof s.Promise<"u"&&p&&(T.setImmediate[p.custom]=i(function($){return new s.Promise(i(function(D){ee(T,{func:D,args:[$],immediate:true});},"setImmediateExecutor"))},"promisifiedSetImmediate")),T.clearImmediate=i(function($){return Oe(T,$,"Immediate")},"clearImmediate")),T.countTimers=i(function(){return Object.keys(T.timers||{}).length+(T.jobs||[]).length},"countTimers"),T.requestAnimationFrame=i(function($){let F=ee(T,{func:$,delay:L(),get args(){return [J()]},animation:true});return Number(F)},"requestAnimationFrame"),T.cancelAnimationFrame=i(function($){return Oe(T,$,"AnimationFrame")},"cancelAnimationFrame"),T.runMicrotasks=i(function(){U(T);},"runMicrotasks");function he(P,$,F,D){let X=typeof P=="number"?P:q(P),ae=Math.floor(X),Ie=Q(X),vt=I+Ie,Ae=T.now+ae;if(X<0)throw new TypeError("Negative ticks are not supported");vt>=1e6&&(Ae+=1,vt-=1e6),I=vt;let tt=T.now,nn=T.now,at,jt,De,la,io,ao;T.duringTick=true,De=T.now,U(T),De!==T.now&&(tt+=T.now-De,Ae+=T.now-De);function ua(){for(at=fe(T,tt,Ae);at&&tt<=Ae;){if(T.timers[at.id]){tt=at.callAt,T.now=at.callAt,De=T.now;try{U(T),xe(T,at);}catch(rn){jt=jt||rn;}if($){et(la);return}io();}ao();}if(De=T.now,U(T),De!==T.now&&(tt+=T.now-De,Ae+=T.now-De),T.duringTick=false,at=fe(T,tt,Ae),at)try{T.tick(Ae-T.now);}catch(rn){jt=jt||rn;}else T.now=Ae,I=vt;if(jt)throw jt;if($)F(T.now);else return T.now}return i(ua,"doTickInner"),la=$&&function(){try{io(),ao(),ua();}catch(rn){D(rn);}},io=i(function(){De!==T.now&&(tt+=T.now-De,Ae+=T.now-De,nn+=T.now-De);},"compensationCheck"),ao=i(function(){at=fe(T,nn,Ae),nn=tt;},"postTimerCall"),ua()}return i(he,"doTick"),T.tick=i(function($){return he($,false)},"tick"),typeof s.Promise<"u"&&(T.tickAsync=i(function($){return Fe(new s.Promise(function(F,D){et(function(){try{he($,true,F,D);}catch(X){D(X);}});}))},"tickAsync")),T.next=i(function(){U(T);let $=me(T);if(!$)return T.now;T.duringTick=true;try{return T.now=$.callAt,xe(T,$),U(T),T.now}finally{T.duringTick=false;}},"next"),typeof s.Promise<"u"&&(T.nextAsync=i(function(){return Fe(new s.Promise(function($,F){et(function(){try{let D=me(T);if(!D){$(T.now);return}let X;T.duringTick=true,T.now=D.callAt;try{xe(T,D);}catch(ae){X=ae;}T.duringTick=false,et(function(){X?F(X):$(T.now);});}catch(D){F(D);}});}))},"nextAsync")),T.runAll=i(function(){let $,F;for(U(T),F=0;F<T.loopLimit;F++){if(!T.timers||($=Object.keys(T.timers).length,$===0))return _(),T.now;T.next(),N(T,F);}let D=me(T);throw Y(T,D)},"runAll"),T.runToFrame=i(function(){return T.tick(L())},"runToFrame"),typeof s.Promise<"u"&&(T.runAllAsync=i(function(){return Fe(new s.Promise(function($,F){let D=0;function X(){et(function(){try{U(T);let ae;if(D<T.loopLimit){if(!T.timers){_(),$(T.now);return}if(ae=Object.keys(T.timers).length,ae===0){_(),$(T.now);return}T.next(),D++,X(),N(T,D);return}let Ie=me(T);F(Y(T,Ie));}catch(ae){F(ae);}});}i(X,"doRun"),X();}))},"runAllAsync")),T.runToLast=i(function(){let $=je(T);return $?T.tick($.callAt-T.now):(U(T),T.now)},"runToLast"),typeof s.Promise<"u"&&(T.runToLastAsync=i(function(){return Fe(new s.Promise(function($,F){et(function(){try{let D=je(T);D||(U(T),$(T.now)),$(T.tickAsync(D.callAt-T.now));}catch(D){F(D);}});}))},"runToLastAsync")),T.reset=i(function(){I=0,T.timers={},T.jobs=[],T.now=v;},"reset"),T.setSystemTime=i(function($){let F=R($),D=F-T.now,X,ae;j[0]=j[0]+D,j[1]=j[1]+I,T.now=F,I=0;for(X in T.timers)T.timers.hasOwnProperty(X)&&(ae=T.timers[X],ae.createdAt+=D,ae.callAt+=D);},"setSystemTime"),T.jump=i(function($){let F=typeof $=="number"?$:q($),D=Math.floor(F);for(let X of Object.values(T.timers))T.now+D>X.callAt&&(X.callAt=T.now+D);T.tick(D);},"jump"),f.performance&&(T.performance=Object.create(null),T.performance.now=J),f.hrtime&&(T.hrtime=B),T}i(ca,"createClock");function Th(v,k){let I=tn.bind(null,v,k),j=bh(I,k);v.attachedInterval=j;}i(Th,"createIntervalTick");function Sh(v){if(arguments.length>1||v instanceof Date||Array.isArray(v)||typeof v=="number")throw new TypeError(`FakeTimers.install called with ${String(v)} install requires an object parameter`);if(s.Date.isFake===true)throw new TypeError("Can't install fake timers twice on the same global object.");if(v=typeof v<"u"?v:{},v.shouldAdvanceTime=v.shouldAdvanceTime||false,v.advanceTimeDelta=v.advanceTimeDelta||20,v.shouldClearNativeTimers=v.shouldClearNativeTimers||false,v.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function k(L){if(!v.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${L}'`)}i(k,"handleMissingTimer");let I,j,T=ca(v.now,v.loopLimit);if(T.shouldClearNativeTimers=v.shouldClearNativeTimers,T.uninstall=function(){return Rt(T)},T.abortListenerMap=new Map,T.methods=v.toFake||[],T.methods.length===0&&(T.methods=Object.keys(Se)),v.shouldAdvanceTime===true&&T.setTickMode({mode:"interval",delta:v.advanceTimeDelta}),T.methods.includes("performance")){let L=(()=>{if(m)return s.performance.constructor.prototype;if(g)return s.Performance.prototype})();if(L)Object.getOwnPropertyNames(L).forEach(function(B){B!=="now"&&(T.performance[B]=B.indexOf("getEntries")===0?u:c);}),T.performance.mark=B=>new A(B,"mark",0,0),T.performance.measure=B=>new A(B,"measure",0,100),T.performance.timeOrigin=R(v.now);else if((v.toFake||[]).includes("performance"))return k("performance")}for(s===e&&t&&(T.timersModuleMethods=[]),s===e&&n&&(T.timersPromisesModuleMethods=[]),I=0,j=T.methods.length;I<j;I++){let L=T.methods[I];if(!f[L]){k(L);continue}if(L==="hrtime"?s.process&&typeof s.process.hrtime=="function"&&Qe(s.process,L,T):L==="nextTick"?s.process&&typeof s.process.nextTick=="function"&&Qe(s.process,L,T):Qe(s,L,T),T.timersModuleMethods!==void 0&&t[L]){let B=t[L];T.timersModuleMethods.push({methodName:L,original:B}),t[L]=s[L];}T.timersPromisesModuleMethods!==void 0&&(L==="setTimeout"?(T.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(B,J,te={})=>new Promise((Fe,he)=>{let P=i(()=>{te.signal.removeEventListener("abort",P),T.abortListenerMap.delete(P),T.clearTimeout($),he(te.signal.reason);},"abort"),$=T.setTimeout(()=>{te.signal&&(te.signal.removeEventListener("abort",P),T.abortListenerMap.delete(P)),Fe(J);},B);te.signal&&(te.signal.aborted?P():(te.signal.addEventListener("abort",P),T.abortListenerMap.set(P,te.signal)));})):L==="setImmediate"?(T.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(B,J={})=>new Promise((te,Fe)=>{let he=i(()=>{J.signal.removeEventListener("abort",he),T.abortListenerMap.delete(he),T.clearImmediate(P),Fe(J.signal.reason);},"abort"),P=T.setImmediate(()=>{J.signal&&(J.signal.removeEventListener("abort",he),T.abortListenerMap.delete(he)),te(B);});J.signal&&(J.signal.aborted?he():(J.signal.addEventListener("abort",he),T.abortListenerMap.set(he,J.signal)));})):L==="setInterval"&&(T.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(B,J,te={})=>({[Symbol.asyncIterator]:()=>{let Fe=i(()=>{let Ie,vt,Ae=new Promise((tt,nn)=>{Ie=tt,vt=nn;});return Ae.resolve=Ie,Ae.reject=vt,Ae},"createResolvable"),he=false,P=false,$,F=0,D=[],X=T.setInterval(()=>{D.length>0?D.shift().resolve():F++;},B),ae=i(()=>{te.signal.removeEventListener("abort",ae),T.abortListenerMap.delete(ae),T.clearInterval(X),he=true;for(let Ie of D)Ie.resolve();},"abort");return te.signal&&(te.signal.aborted?he=true:(te.signal.addEventListener("abort",ae),T.abortListenerMap.set(ae,te.signal))),{next:i(async()=>{if(te.signal?.aborted&&!P)throw P=true,te.signal.reason;if(he)return {done:true,value:void 0};if(F>0)return F--,{done:false,value:J};let Ie=Fe();if(D.push(Ie),await Ie,$&&D.length===0&&$.resolve(),te.signal?.aborted&&!P)throw P=true,te.signal.reason;return he?{done:true,value:void 0}:{done:false,value:J}},"next"),return:i(async()=>he?{done:true,value:void 0}:(D.length>0&&($=Fe(),await $),T.clearInterval(X),he=true,te.signal&&(te.signal.removeEventListener("abort",ae),T.abortListenerMap.delete(ae)),{done:true,value:void 0}),"return")}}})));}return T}return i(Sh,"install"),{timers:Se,createClock:ca,install:Sh,withGlobal:r}}i(r,"withGlobal");let o=r(e);return Yt.timers=o.timers,Yt.createClock=o.createClock,Yt.install=o.install,Yt.withGlobal=r,Yt}i(Bw,"requireFakeTimersSrc");var qw=Bw(),sa=class{static{i(this,"FakeTimers");}_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=Je.now;constructor({global:t,config:n}){this._userConfig=n,this._fakingDate=null,this._fakingTime=false,this._fakeTimers=qw.withGlobal(t),this._global=t;}clearAllTimers(){this._fakingTime&&this._clock.reset();}dispose(){this.useRealTimers();}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll();}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync();}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast();}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync();}advanceTimersToNextTimer(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t);}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t);}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame();}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks();}useRealTimers(){this._fakingDate&&(Di(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=false);}useFakeTimers(){let t=this._fakingDate||Date.now();this._fakingDate&&(Di(),this._fakingDate=null),this._fakingTime&&this._clock.uninstall();let n=Object.keys(this._fakeTimers.timers).filter(r=>r!=="nextTick"&&r!=="queueMicrotask");if(this._userConfig?.toFake?.includes("nextTick")&&ps())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:t,...this._userConfig,toFake:this._userConfig?.toFake||n,ignoreMissingTimers:true}),this._fakingTime=true;}reset(){if(this._checkFakeTimers()){let{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t);}}setSystemTime(t){let n=typeof t>"u"||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(n):(this._fakingDate=n??new Date(this.getRealSystemTime()),Nf(this._fakingDate));}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}setTimerTickMode(t,n){if(this._checkFakeTimers())if(t==="manual")this._clock.setTickMode({mode:"manual"});else if(t==="nextTimerAsync")this._clock.setTickMode({mode:"nextAsync"});else if(t==="interval")this._clock.setTickMode({mode:"interval",delta:n});else throw new Error(`Invalid tick mode: ${t}`)}configure(t){this._userConfig=t;}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error("A function to advance timers was called but the timers APIs are not mocked. Call `vi.useFakeTimers()` in the test file first.");return this._fakingTime}};function oh(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}i(oh,"copyStackTrace");function Uw(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:s}=ft(),{interval:a=50,timeout:l=1e3}=typeof t=="number"?{timeout:t}:t,c=new Error("STACK_TRACE_ERROR");return new Promise((u,f)=>{let h,d="idle",p,g,m=i(M=>{p&&o(p),g&&s(g),u(M);},"onResolve"),b=i(()=>{g&&s(g);let M=h;M||(M=oh(new Error("Timed out in waitFor!"),c)),f(M);},"handleTimeout"),E=i(()=>{if(Dn.isFakeTimers()&&Dn.advanceTimersByTime(a),d!=="pending")try{let M=e();if(M!==null&&typeof M=="object"&&typeof M.then=="function"){let A=M;d="pending",A.then(C=>{d="resolved",m(C);},C=>{d="rejected",h=C;});}else return m(M),true}catch(M){h=M;}},"checkCallback");E()!==true&&(p=n(b,l),g=r(E,a));})}i(Uw,"waitFor");function zw(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:s}=ft(),{interval:a=50,timeout:l=1e3}=typeof t=="number"?{timeout:t}:t,c=new Error("STACK_TRACE_ERROR");return new Promise((u,f)=>{let h="idle",d,p,g=i(E=>{p&&s(p),E||(E=oh(new Error("Timed out in waitUntil!"),c)),f(E);},"onReject"),m=i(E=>{if(E)return d&&o(d),p&&s(p),u(E),true},"onResolve"),b=i(()=>{if(Dn.isFakeTimers()&&Dn.advanceTimersByTime(a),h!=="pending")try{let E=e();if(E!==null&&typeof E=="object"&&typeof E.then=="function"){let M=E;h="pending",M.then(A=>{h="resolved",m(A);},A=>{h="rejected",g(A);});}else return m(E)}catch(E){g(E);}},"checkCallback");b()!==true&&(d=n(g,l),p=r(b,a));})}i(zw,"waitUntil");function Ww(){let e=null,t=i(()=>wn(),"state"),n,r=i(()=>n||=new sa({global:globalThis,config:t().config.fakeTimers}),"timers"),o=new Map,s=new Map,a=["PROD","DEV","SSR"],l={useFakeTimers(c){if(ps()&&(c?.toFake?.includes("nextTick")||t().config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return c?r().configure({...t().config.fakeTimers,...c}):r().configure(t().config.fakeTimers),r().useFakeTimers(),l},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),l},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),l},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),l},runAllTimers(){return r().runAllTimers(),l},async runAllTimersAsync(){return await r().runAllTimersAsync(),l},runAllTicks(){return r().runAllTicks(),l},advanceTimersByTime(c){return r().advanceTimersByTime(c),l},async advanceTimersByTimeAsync(c){return await r().advanceTimersByTimeAsync(c),l},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),l},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),l},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),l},getTimerCount(){return r().getTimerCount()},setSystemTime(c){return r().setSystemTime(c),l},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),l},setTimerTickMode(c,u){return r().setTimerTickMode(c,u),l},spyOn:jl,fn:Rl,waitFor:Uw,waitUntil:zw,defineHelper:i(c=>i(function(...f){let h=c(...f);return h&&typeof h=="object"&&typeof h.then=="function"?i((async function(){return await h}),"__VITEST_HELPER__")():h},"__VITEST_HELPER__"),"defineHelper"),hoisted(c){return pe(c,'"vi.hoisted" factory',["function"]),c()},mock(c,u){if(typeof c!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof c}`);let f=Xt("mock");Ue().queueMock(c,f,typeof u=="function"?()=>u(()=>Ue().importActual(c,f,Ue().getMockContext().callstack)):u);},unmock(c){if(typeof c!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof c}`);Ue().queueUnmock(c,Xt("unmock"));},doMock(c,u){if(typeof c!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof c}`);let f=Xt("doMock");Ue().queueMock(c,f,typeof u=="function"?()=>u(()=>Ue().importActual(c,f,Ue().getMockContext().callstack)):u);let h={};return Symbol.dispose&&(h[Symbol.dispose]=()=>{Ue().queueUnmock(c,f);}),h},doUnmock(c){if(typeof c!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof c}`);let u=Xt("doUnmock");Ue().queueUnmock(c,u);},async importActual(c){let u=Xt("importActual");return Ue().importActual(c,u,Ue().getMockContext().callstack)},async importMock(c){let u=Xt("importMock");return Ue().importMock(c,u)},mockObject(c,u){return Ue().mockObject({value:c},void 0,u?.spy?"autospy":"automock").value},mocked(c,u={}){return c},isMockFunction(c){return mt(c)},clearAllMocks(){return Ll(),l},resetAllMocks(){return Bl(),l},restoreAllMocks(){return Dl(),l},stubGlobal(c,u){return o.has(c)||o.set(c,Object.getOwnPropertyDescriptor(globalThis,c)),Object.defineProperty(globalThis,c,{value:u,writable:true,configurable:true,enumerable:true}),l},stubEnv(c,u){let f=t().metaEnv;return s.has(c)||s.set(c,f[c]),a.includes(c)?f[c]=u?"1":"":u===void 0?delete f[c]:f[c]=String(u),l},unstubAllGlobals(){return o.forEach((c,u)=>{c?Object.defineProperty(globalThis,u,c):Reflect.deleteProperty(globalThis,u);}),o.clear(),l},unstubAllEnvs(){let c=t().metaEnv;return s.forEach((u,f)=>{u===void 0?delete c[f]:c[f]=u;}),s.clear(),l},resetModules(){return Nl(t().evaluatedModules),l},async dynamicImportSettled(){return ds()},setConfig(c){e||(e={...t().config}),Object.assign(t().config,c);},resetConfig(){e&&Object.assign(t().config,e);}};return l}i(Ww,"createVitest");var sh=Ww(),Dn=sh;function Ue(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(e,t){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}i(Ue,"_mocker");function Xt(e){let t=dc({stackTraceLimit:5}).split(`
166
+ `);return ir(t[t.findLastIndex(n=>n.includes(` at Object.${e}`)||n.includes(`${e}@`)||n.includes(` at ${e} (`))+1])?.file||""}i(Xt,"getImporter");var ih="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vw=new Uint8Array(64),Kw=new Uint8Array(128);for(let e=0;e<ih.length;e++){let t=ih.charCodeAt(e);Vw[e]=t,Kw[t]=e;}var Hw=new Set,Gw=new Set,ch=i(e=>((...t)=>{for(let n of e){let r=n(...t);if(r)return r}return null}),"createExecHandlers");ch(Hw);ch(Gw);var ia="vite-module-runner:import-meta-resolve/v1/";`
165
167
 
166
168
  export async function resolve(specifier, context, nextResolve) {
167
- if (specifier.startsWith(${JSON.stringify(Sf)})) {
168
- const data = specifier.slice(${JSON.stringify(Sf)}.length)
169
+ if (specifier.startsWith(${JSON.stringify(ia)})) {
170
+ const data = specifier.slice(${JSON.stringify(ia)}.length)
169
171
  const [parsedSpecifier, parsedImporter] = JSON.parse(data)
170
172
  specifier = parsedSpecifier
171
173
  context.parentURL = parsedImporter
172
174
  }
173
-
174
175
  return nextResolve(specifier, context)
175
176
  }
176
177
 
177
- `;new Proxy({},{get(e,t){throw Error(`[module runner] Dynamic access of "import.meta.env" is not supported. Please, use "import.meta.env.${String(t)}" instead.`)}});var Kt=qf(Nf());zod.z.strictObject({path:zod.z.string().describe("Can contain glob patterns, relative paths, absolute paths, package paths, or package sub-paths"),filter:zod.z.custom(e=>typeof e=="function").optional().describe("A function that takes a path and returns a boolean")});function kt({rendererId:e,alias:t,path:n}){return (()=>{switch(e){case "react":case "angular":return {rendererId:e,codeSrcPath:n,exportName:t||"default"};case "vue":case "hbs":case "html":return {rendererId:e,codeSrcPath:n};case "twig":return {rendererId:e,namespacePath:t};case "web-components":return {rendererId:e,elementName:t};case "ios":return {rendererId:e,moduleName:n,symbolName:t};case "android":return {rendererId:e,packageName:n,componentName:t};default:{throw new Error(`Invalid renderer ID: ${e}`)}}})()}a(kt,"normalizeTemplateInfo");function Gt(e){switch(e.rendererId){case "react":case "angular":return {path:e.codeSrcPath,alias:e.exportName};case "hbs":case "html":case "vue":return {path:e.codeSrcPath};case "twig":return {alias:e.namespacePath};case "web-components":return {alias:e.elementName};case "ios":return {path:e.moduleName,alias:e.symbolName};case "android":return {path:e.packageName,alias:e.componentName};default:{throw new Error(`Invalid template info: ${JSON.stringify(e)}`)}}}a(Gt,"convertTemplateInfoToOldWay");Cr("normalizeTemplateInfo",()=>{je("should handle React template with default export",()=>{let e=kt({rendererId:"react",path:"@components/Button"});(0, Kt.expectTypeOf)(e.codeSrcPath).toEqualTypeOf(),(0, Kt.expectTypeOf)(e.rendererId).toMatchTypeOf(),(0, Kt.expectTypeOf)(e.rendererId).toEqualTypeOf(),(0, Kt.expectTypeOf)(e.exportName).toEqualTypeOf(),ke(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"default"});}),je("should handle React template with named export",()=>{let e=kt({rendererId:"react",path:"@components/Button",alias:"CustomButton"});ke(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});}),je("should handle Vue template",()=>{let e=kt({rendererId:"vue",path:"@components/Button.vue"});ke(e).toEqual({rendererId:"vue",codeSrcPath:"@components/Button.vue"});}),je("should handle web components",()=>{let e=kt({rendererId:"web-components",alias:"custom-button"});ke(e).toEqual({rendererId:"web-components",elementName:"custom-button"});}),je("should handle Twig template",()=>{let e=kt({rendererId:"twig",alias:"@namespace/button"});ke(e).toEqual({rendererId:"twig",namespacePath:"@namespace/button"});}),je("should throw error for invalid renderer ID",()=>{ke(()=>kt({rendererId:"invalid",path:"some/path"})).toThrow("Invalid renderer ID: invalid");});});Cr("convertTemplateInfoToOldWay",()=>{je("should convert React template info",()=>{let e=Gt({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});ke(e).toEqual({path:"@components/Button",alias:"CustomButton"});}),je("should convert Vue template info",()=>{let e=Gt({rendererId:"vue",codeSrcPath:"@components/Button.vue"});ke(e).toEqual({path:"@components/Button.vue"});}),je("should convert web components template info",()=>{let e=Gt({rendererId:"web-components",elementName:"custom-button"});ke(e).toEqual({alias:"custom-button"});}),je("should convert Twig template info",()=>{let e=Gt({rendererId:"twig",namespacePath:"@namespace/button"});ke(e).toEqual({alias:"@namespace/button"});}),je("should throw error for invalid template info",()=>{ke(()=>Gt({rendererId:"invalid"})).toThrow("Invalid template info:");});});
178
+ `;new Proxy({},{get(e,t){throw Error(`[module runner] Dynamic access of "import.meta.env" is not supported. Please, use "import.meta.env.${String(t)}" instead.`)}});var Qt=_h(yh());zod.z.strictObject({path:zod.z.string().describe("Can contain glob patterns, relative paths, absolute paths, package paths, or package sub-paths"),filter:zod.z.custom(e=>typeof e=="function").optional().describe("A function that takes a path and returns a boolean")});function Pt({rendererId:e,alias:t,path:n}){return (()=>{switch(e){case "react":case "angular":return {rendererId:e,codeSrcPath:n,exportName:t||"default"};case "vue":case "hbs":case "html":return {rendererId:e,codeSrcPath:n};case "twig":return {rendererId:e,namespacePath:t};case "web-components":return {rendererId:e,elementName:t};case "ios":return {rendererId:e,moduleName:n,symbolName:t};case "android":return {rendererId:e,packageName:n,componentName:t};default:{throw new Error(`Invalid renderer ID: ${e}`)}}})()}i(Pt,"normalizeTemplateInfo");function en(e){switch(e.rendererId){case "react":case "angular":return {path:e.codeSrcPath,alias:e.exportName};case "hbs":case "html":case "vue":return {path:e.codeSrcPath};case "twig":return {alias:e.namespacePath};case "web-components":return {alias:e.elementName};case "ios":return {path:e.moduleName,alias:e.symbolName};case "android":return {path:e.packageName,alias:e.componentName};default:{throw new Error(`Invalid template info: ${JSON.stringify(e)}`)}}}i(en,"convertTemplateInfoToOldWay");gn("normalizeTemplateInfo",()=>{Pe("should handle React template with default export",()=>{let e=Pt({rendererId:"react",path:"@components/Button"});(0, Qt.expectTypeOf)(e.codeSrcPath).toEqualTypeOf(),(0, Qt.expectTypeOf)(e.rendererId).toMatchTypeOf(),(0, Qt.expectTypeOf)(e.rendererId).toEqualTypeOf(),(0, Qt.expectTypeOf)(e.exportName).toEqualTypeOf(),Re(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"default"});}),Pe("should handle React template with named export",()=>{let e=Pt({rendererId:"react",path:"@components/Button",alias:"CustomButton"});Re(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});}),Pe("should handle Vue template",()=>{let e=Pt({rendererId:"vue",path:"@components/Button.vue"});Re(e).toEqual({rendererId:"vue",codeSrcPath:"@components/Button.vue"});}),Pe("should handle web components",()=>{let e=Pt({rendererId:"web-components",alias:"custom-button"});Re(e).toEqual({rendererId:"web-components",elementName:"custom-button"});}),Pe("should handle Twig template",()=>{let e=Pt({rendererId:"twig",alias:"@namespace/button"});Re(e).toEqual({rendererId:"twig",namespacePath:"@namespace/button"});}),Pe("should throw error for invalid renderer ID",()=>{Re(()=>Pt({rendererId:"invalid",path:"some/path"})).toThrow("Invalid renderer ID: invalid");});});gn("convertTemplateInfoToOldWay",()=>{Pe("should convert React template info",()=>{let e=en({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});Re(e).toEqual({path:"@components/Button",alias:"CustomButton"});}),Pe("should convert Vue template info",()=>{let e=en({rendererId:"vue",codeSrcPath:"@components/Button.vue"});Re(e).toEqual({path:"@components/Button.vue"});}),Pe("should convert web components template info",()=>{let e=en({rendererId:"web-components",elementName:"custom-button"});Re(e).toEqual({alias:"custom-button"});}),Pe("should convert Twig template info",()=>{let e=en({rendererId:"twig",namespacePath:"@namespace/button"});Re(e).toEqual({alias:"@namespace/button"});}),Pe("should throw error for invalid template info",()=>{Re(()=>en({rendererId:"invalid"})).toThrow("Invalid template info:");});});
178
179
  /*! Bundled license information:
179
180
 
180
181
  @vitest/pretty-format/dist/index.js: