@isdk/util 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/chunk-3TCMKKX2.mjs +1 -0
- package/dist/chunk-46TT3NZV.mjs +1 -0
- package/dist/chunk-7APJBRA7.mjs +1 -0
- package/dist/chunk-7AQU3PBW.mjs +1 -0
- package/dist/chunk-D3BCI5SM.mjs +1 -0
- package/dist/chunk-FXF2KJLF.mjs +1 -0
- package/dist/chunk-GGOKSJK4.mjs +1 -0
- package/dist/chunk-JTTOXXPG.mjs +1 -0
- package/dist/chunk-LOMQZH4U.mjs +292 -0
- package/dist/chunk-OTEAFARC.mjs +1 -0
- package/dist/chunk-UJZVJIGI.mjs +1 -0
- package/dist/config-file.d.mts +75 -0
- package/dist/config-file.d.ts +75 -0
- package/dist/config-file.js +1 -0
- package/dist/config-file.mjs +1 -0
- package/dist/config-file.test.d.mts +2 -0
- package/dist/config-file.test.d.ts +2 -0
- package/dist/config-file.test.js +292 -0
- package/dist/config-file.test.mjs +1 -0
- package/dist/front-matter.d.mts +6 -0
- package/dist/front-matter.d.ts +6 -0
- package/dist/front-matter.js +1 -0
- package/dist/front-matter.mjs +1 -0
- package/dist/front-matter.test.d.mts +2 -0
- package/dist/front-matter.test.d.ts +2 -0
- package/dist/front-matter.test.js +1 -0
- package/dist/front-matter.test.mjs +1 -0
- package/dist/get-multi-level-extname.d.mts +9 -0
- package/dist/get-multi-level-extname.d.ts +9 -0
- package/dist/get-multi-level-extname.js +1 -0
- package/dist/get-multi-level-extname.mjs +1 -0
- package/dist/glob.d.mts +28 -0
- package/dist/glob.d.ts +28 -0
- package/dist/glob.js +1 -0
- package/dist/glob.mjs +1 -0
- package/dist/glob.test.d.mts +2 -0
- package/dist/glob.test.d.ts +2 -0
- package/dist/glob.test.js +292 -0
- package/dist/glob.test.mjs +1 -0
- package/dist/include-files.d.mts +31 -0
- package/dist/include-files.d.ts +31 -0
- package/dist/include-files.js +1 -0
- package/dist/include-files.mjs +1 -0
- package/dist/include-files.test.d.mts +2 -0
- package/dist/include-files.test.d.ts +2 -0
- package/dist/include-files.test.js +292 -0
- package/dist/include-files.test.mjs +1 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/is-string-in.d.mts +19 -0
- package/dist/is-string-in.d.ts +19 -0
- package/dist/is-string-in.js +1 -0
- package/dist/is-string-in.mjs +1 -0
- package/dist/magic-string.es-TUA2PMWY.mjs +1 -0
- package/dist/remove-leading-empty-lines.d.mts +18 -0
- package/dist/remove-leading-empty-lines.d.ts +18 -0
- package/dist/remove-leading-empty-lines.js +1 -0
- package/dist/remove-leading-empty-lines.mjs +1 -0
- package/dist/remove-leading-empty-lines.test.d.mts +2 -0
- package/dist/remove-leading-empty-lines.test.d.ts +2 -0
- package/dist/remove-leading-empty-lines.test.js +1 -0
- package/dist/remove-leading-empty-lines.test.mjs +1 -0
- package/dist/traverse-folder.d.mts +56 -0
- package/dist/traverse-folder.d.ts +56 -0
- package/dist/traverse-folder.js +1 -0
- package/dist/traverse-folder.mjs +1 -0
- package/dist/traverse-folder.test.d.mts +2 -0
- package/dist/traverse-folder.test.d.ts +2 -0
- package/dist/traverse-folder.test.js +292 -0
- package/dist/traverse-folder.test.mjs +1 -0
- package/dist/yaml.d.mts +59 -0
- package/dist/yaml.d.ts +59 -0
- package/dist/yaml.js +1 -0
- package/dist/yaml.mjs +1 -0
- package/docs/README.md +10 -0
- package/docs/classes/ConfigFile.md +169 -0
- package/docs/functions/getMultiLevelExtname.md +33 -0
- package/docs/functions/glob.md +56 -0
- package/docs/functions/isStringIn.md +43 -0
- package/docs/functions/normalizeIncludeFiles.md +49 -0
- package/docs/functions/parseFrontMatter.md +33 -0
- package/docs/functions/parseYaml.md +45 -0
- package/docs/functions/registerYamlTag.md +37 -0
- package/docs/functions/removeLeadingEmptyLines.md +39 -0
- package/docs/functions/stringifyYaml.md +45 -0
- package/docs/functions/traverseFolder.md +44 -0
- package/docs/functions/traverseFolderSync.md +44 -0
- package/docs/globals.md +36 -0
- package/docs/interfaces/IncludeFiles.md +25 -0
- package/docs/type-aliases/TraverseFolderHandler.md +33 -0
- package/docs/type-aliases/TraverseFolderSyncHandler.md +33 -0
- package/docs/variables/DefaultAllTextFiles.md +11 -0
- package/package.json +68 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";var t,e,n,r,i,o,s,c=Object.create,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,d=(t,e)=>function(){return t&&(e=(0,t[l(t)[0]])(t=0)),e},p=(t,e)=>function(){return e||(0,t[l(t)[0]])((e={exports:{}}).exports,e),e.exports},b=(t,e,n)=>((t,e,n)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),m=d({"node_modules/.pnpm/tsup@8.4.0_postcss@8.5.3_tsx@4.19.3_typescript@5.8.2_yaml@2.7.1/node_modules/tsup/assets/cjs_shims.js"(){}});function y(t,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let e=31&i;i>>>=5,i>0&&(e|=32),t.write(r[e])}while(i>0);return e}var g,w,v,$,x,S,j,E,O,T,k,A,_=d({"node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs"(){m(),t=",".charCodeAt(0),e=";".charCodeAt(0),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64),i=new Uint8Array(128);for(let t=0;t<64;t++){const e=n.charCodeAt(t);r[t]=e,i[e]=t}o="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},s=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(t){const{buffer:e}=this;e[this.pos++]=t,16384===this.pos&&(this.out+=o.decode(e),this.pos=0)}flush(){const{buffer:t,out:e,pos:n}=this;return n>0?e+o.decode(t.subarray(0,n)):e}}}}),M={};function C(){return"undefined"!=typeof globalThis&&"function"==typeof globalThis.btoa?t=>globalThis.btoa(unescape(encodeURIComponent(t))):"function"==typeof Buffer?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function I(t,e){const n=t.split(/[/\\]/),r=e.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let t=n.length;for(;t--;)n[t]=".."}return n.concat(r).join("/")}function N(t){return"[object Object]"===x.call(t)}function P(t){const e=t.split("\n"),n=[];for(let t=0,r=0;t<e.length;t++)n.push(r),r+=e[t].length+1;return function(t){let e=0,r=n.length;for(;e<r;){const i=e+r>>1;t<n[i]?r=i:e=i+1}const i=e-1;return{line:i,column:t-n[i]}}}((t,e)=>{for(var n in e)a(t,n,{get:e[n],enumerable:!0})})(M,{Bundle:()=>A,SourceMap:()=>$,default:()=>T});var R=d({"node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs"(){m(),_(),g=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(31&t)}has(t){return!!(this.bits[t>>5]&1<<(31&t))}},w=class t{constructor(t,e,n){this.start=t,this.end=e,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(t){return this.start<t&&t<this.end}eachNext(t){let e=this;for(;e;)t(e),e=e.next}eachPrevious(t){let e=this;for(;e;)t(e),e=e.previous}edit(t,e,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,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=!1,this.edited=!1)}split(e){const n=e-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;const o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=r,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const e=this.content.replace(t,"");return e.length?(e!==this.content&&(this.split(this.start+e.length).edit("",void 0,!0),this.edited&&this.edit(e,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),!!this.intro.length||void 0)}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const e=this.content.replace(t,"");if(e.length){if(e!==this.content){const t=this.split(this.end-e.length);this.edited&&t.edit(e,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),!!this.outro.length||void 0}},v=C(),$=class{constructor(n){this.version=3,this.file=n.file,this.sources=n.sources,this.sourcesContent=n.sourcesContent,this.names=n.names,this.mappings=function(n){const r=new s;let i=0,o=0,c=0,a=0;for(let s=0;s<n.length;s++){const u=n[s];if(s>0&&r.write(e),0===u.length)continue;let l=0;for(let e=0;e<u.length;e++){const n=u[e];e>0&&r.write(t),l=y(r,n[0],l),1!==n.length&&(i=y(r,n[1],i),o=y(r,n[2],o),c=y(r,n[3],c),4!==n.length&&(a=y(r,n[4],a)))}}return r.flush()}(n.mappings),void 0!==n.x_google_ignoreList&&(this.x_google_ignoreList=n.x_google_ignoreList),void 0!==n.debugId&&(this.debugId=n.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+v(this.toString())}},x=Object.prototype.toString,S=/\w/,j=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,e,n,r){if(e.length){const i=e.length-1;let o=e.indexOf("\n",0),s=-1;for(;o>=0&&i>o;){const i=[this.generatedCodeColumn,t,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=o,o=e.indexOf("\n",o+1)}const c=[this.generatedCodeColumn,t,n.line,n.column];r>=0&&c.push(r),this.rawSegments.push(c),this.advance(e.slice(s+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(e));this.pending=null}addUneditedChunk(t,e,n,r,i){let o=e.start,s=!0,c=!1;for(;o<e.end;){if("\n"===n[o])r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=!0,c=!1;else{if(this.hires||s||i.has(o)){const e=[this.generatedCodeColumn,t,r.line,r.column];"boundary"===this.hires?S.test(n[o])?c||(this.rawSegments.push(e),c=!0):(this.rawSegments.push(e),c=!1):this.rawSegments.push(e)}r.column+=1,this.generatedCodeColumn+=1,s=!1}o+=1}this.pending=null}advance(t){if(!t)return;const e=t.split("\n");if(e.length>1){for(let t=0;t<e.length-1;t++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}},E="\n",O={insertLeft:!1,insertRight:!1,storeName:!1},T=class t{constructor(t,e={}){const n=new w(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new g},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:e.ignoreList},offset:{writable:!0,value:e.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.appendLeft(e):this.intro+=e,this}appendRight(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.appendRight(e):this.outro+=e,this}clone(){const e=new t(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[r.start]=r,e.byEnd[r.end]=r;const t=n.next,i=t&&t.clone();i&&(r.next=i,i.previous=r,r=i),n=t}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new g(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(t){t=t||{};const e=Object.keys(this.storedNames),n=new j(t.hires),r=P(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((t=>{const i=r(t.start);t.intro.length&&n.advance(t.intro),t.edited?n.addEdit(0,t.content,i,t.storeName?e.indexOf(t.original):-1):n.addUneditedChunk(0,t,this.original,i,this.sourcemapLocations),t.outro.length&&n.advance(t.outro)})),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?I(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:e,mappings:n.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(t){return new $(this.generateDecodedMap(t))}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=function(t){const e=t.split("\n"),n=e.filter((t=>/^\t+/.test(t))),r=e.filter((t=>/^ {2,}/.test(t)));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";const i=r.reduce(((t,e)=>{const n=/^ +/.exec(e)[0].length;return Math.min(n,t)}),1/0);return new Array(i+1).join(" ")}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),null===this.indentStr?"\t":this.indentStr}indent(t,e){const n=/^[^\r\n]/gm;if(N(t)&&(e=t,t=void 0),void 0===t&&(this._ensureindentStr(),t=this.indentStr||"\t"),""===t)return this;const r={};if((e=e||{}).exclude){("number"==typeof e.exclude[0]?[e.exclude]:e.exclude).forEach((t=>{for(let e=t[0];e<t[1];e+=1)r[e]=!0}))}let i=!1!==e.indentStart;const o=e=>i?`${t}${e}`:(i=!0,e);this.intro=this.intro.replace(n,o);let s=0,c=this.firstChunk;for(;c;){const e=c.end;if(c.edited)r[s]||(c.content=c.content.replace(n,o),c.content.length&&(i="\n"===c.content[c.content.length-1]));else for(s=c.start;s<e;){if(!r[s]){const e=this.original[s];"\n"===e?i=!0:"\r"!==e&&i&&(i=!1,s===c.start||(this._splitChunk(c,s),c=c.next),c.prependRight(t))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,e){return O.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),O.insertLeft=!0),this.appendLeft(t,e)}insertRight(t,e){return O.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),O.insertRight=!0),this.prependRight(t,e)}move(t,e,n){if(t+=this.offset,e+=this.offset,(n+=this.offset)>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);const r=this.byStart[t],i=this.byEnd[e],o=r.previous,s=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;const a=c?c.previous:this.lastChunk;return o&&(o.next=s),s&&(s.previous=o),a&&(a.next=r),c&&(c.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=a,i.next=c||null,a||(this.firstChunk=r),c||(this.lastChunk=i),this}overwrite(t,e,n,r){return r=r||{},this.update(t,e,n,{...r,overwrite:!r.contentOnly})}update(t,e,n,r){if(t+=this.offset,e+=this.offset,"string"!=typeof n)throw new TypeError("replacement content must be a string");if(0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(e),!0===r&&(O.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),O.storeName=!0),r={storeName:!0});const i=void 0!==r&&r.storeName,o=void 0!==r&&r.overwrite;if(i){const n=this.original.slice(t,e);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}const s=this.byStart[t],c=this.byEnd[e];if(s){let t=s;for(;t!==c;){if(t.next!==this.byStart[t.end])throw new Error("Cannot overwrite across a split point");t=t.next,t.edit("",!1)}s.edit(n,i,!o)}else{const r=new w(t,e,"").edit(n,i);c.next=r,r.previous=c}return this}prepend(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this}prependRight(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this}remove(t,e){if(t+=this.offset,e+=this.offset,0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this}reset(t,e){if(t+=this.offset,e+=this.offset,0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.reset(),n=e>n.end?this.byStart[n.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(E);if(-1!==t)return this.outro.substr(t+1);let e=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(E),-1!==t)return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(t=n.content.lastIndexOf(E),-1!==t)return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(t=n.intro.lastIndexOf(E),-1!==t)return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return t=this.intro.lastIndexOf(E),-1!==t?this.intro.substr(t+1)+e:this.intro+e}slice(t=0,e=this.original.length-this.offset){if(t+=this.offset,e+=this.offset,0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}let n="",r=this.firstChunk;for(;r&&(r.start>t||r.end<=t);){if(r.start<e&&r.end>=e)return n;r=r.next}if(r&&r.edited&&r.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const i=r;for(;r;){!r.intro||i===r&&r.start!==t||(n+=r.intro);const o=r.start<e&&r.end>=e;if(o&&r.edited&&r.end!==e)throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);const s=i===r?t-r.start:0,c=o?r.content.length+e-r.end:r.content.length;if(n+=r.content.slice(s,c),!r.outro||o&&r.end!==e||(n+=r.outro),o)break;r=r.next}return n}snip(t,e){const n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let e=this.lastSearchedChunk;const n=t>e.end;for(;e;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}}_splitChunk(t,e){if(t.edited&&t.content.length){const n=P(this.original)(e);throw new Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${t.original}")`)}const n=t.split(e);return this.byEnd[e]=t,this.byStart[e]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,e=this.firstChunk;for(;e;)t+=e.toString(),e=e.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!1}while(t=t.next);return!0}length(){let t=this.firstChunk,e=0;do{e+=t.intro.length+t.content.length+t.outro.length}while(t=t.next);return e}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let n=this.lastChunk;do{const t=n.end,r=n.trimEnd(e);if(n.end!==t&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let n=this.firstChunk;do{const t=n.end,r=n.trimStart(e);if(n.end!==t&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,e){function n(t,n){return"string"==typeof e?e.replace(/\$(\$|&|\d+)/g,((e,n)=>{if("$"===n)return"$";if("&"===n)return t[0];return+n<t.length?t[+n]:`$${n}`})):e(...t,t.index,n,t.groups)}if(t.global){(function(t,e){let n;const r=[];for(;n=t.exec(e);)r.push(n);return r})(t,this.original).forEach((t=>{if(null!=t.index){const e=n(t,this.original);e!==t[0]&&this.overwrite(t.index,t.index+t[0].length,e)}}))}else{const e=this.original.match(t);if(e&&null!=e.index){const t=n(e,this.original);t!==e[0]&&this.overwrite(e.index,e.index+e[0].length,t)}}return this}_replaceString(t,e){const{original:n}=this,r=n.indexOf(t);return-1!==r&&this.overwrite(r,r+t.length,e),this}replace(t,e){return"string"==typeof t?this._replaceString(t,e):this._replaceRegexp(t,e)}_replaceAllString(t,e){const{original:n}=this,r=t.length;for(let i=n.indexOf(t);-1!==i;i=n.indexOf(t,i+r)){n.slice(i,i+r)!==e&&this.overwrite(i,i+r,e)}return this}replaceAll(t,e){if("string"==typeof t)return this._replaceAllString(t,e);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,e)}},k=Object.prototype.hasOwnProperty,A=class t{constructor(t={}){this.intro=t.intro||"",this.separator=void 0!==t.separator?t.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(t){if(t instanceof T)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!N(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((e=>{k.call(t,e)||(t[e]=t.content[e])})),void 0===t.separator&&(t.separator=this.separator),t.filename)if(k.call(this.uniqueSourceIndexByFilename,t.filename)){const e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}else this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});return this.sources.push(t),this}append(t,e){return this.addSource({content:new T(t),separator:e&&e.separator||""}),this}clone(){const e=new t({intro:this.intro,separator:this.separator});return this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})})),e}generateDecodedMap(t={}){const e=[];let n;this.sources.forEach((t=>{Object.keys(t.content.storedNames).forEach((t=>{~e.indexOf(t)||e.push(t)}))}));const r=new j(t.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(((t,i)=>{i>0&&r.advance(this.separator);const o=t.filename?this.uniqueSourceIndexByFilename[t.filename]:-1,s=t.content,c=P(s.original);s.intro&&r.advance(s.intro),s.firstChunk.eachNext((n=>{const i=c(n.start);n.intro.length&&r.advance(n.intro),t.filename?n.edited?r.addEdit(o,n.content,i,n.storeName?e.indexOf(n.original):-1):r.addUneditedChunk(o,n,s.original,i,s.sourcemapLocations):r.advance(n.content),n.outro.length&&r.advance(n.outro)})),s.outro&&r.advance(s.outro),t.ignoreList&&-1!==o&&(void 0===n&&(n=[]),n.push(o))})),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map((e=>t.file?I(t.file,e.filename):e.filename)),sourcesContent:this.uniqueSources.map((e=>t.includeContent?e.content:null)),names:e,mappings:r.raw,x_google_ignoreList:n}}generateMap(t){return new $(this.generateDecodedMap(t))}getIndentString(){const t={};return this.sources.forEach((e=>{const n=e.content._getRawIndentString();null!==n&&(t[n]||(t[n]=0),t[n]+=1)})),Object.keys(t).sort(((e,n)=>t[e]-t[n]))[0]||"\t"}indent(t){if(arguments.length||(t=this.getIndentString()),""===t)return this;let e=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(((n,r)=>{const i=void 0!==n.separator?n.separator:this.separator,o=e||r>0&&/\r?\n$/.test(i);n.content.indent(t,{exclude:n.indentExclusionRanges,indentStart:o}),e="\n"===n.content.lastChar()})),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,((e,n)=>n>0?t+e:e))),this}prepend(t){return this.intro=t+this.intro,this}toString(){const t=this.sources.map(((t,e)=>{const n=void 0!==t.separator?t.separator:this.separator;return(e>0?n:"")+t.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,e)=>t+e.content.length()),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){const e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),!this.intro){let e,n=0;do{if(e=this.sources[n++],!e)break}while(!e.content.trimStartAborted(t))}return this}trimEnd(t){const e=new RegExp((t||"\\s")+"+$");let n,r=this.sources.length-1;do{if(n=this.sources[r--],!n){this.intro=this.intro.replace(e,"");break}}while(!n.content.trimEndAborted(t));return this}}}}),B=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/branding.js"(t){m(),Object.defineProperty(t,"__esModule",{value:!0})}}),D=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/messages.js"(t){m(),Object.defineProperty(t,"__esModule",{value:!0});Symbol("inverted"),Symbol("expectNull"),Symbol("expectUndefined"),Symbol("expectNumber"),Symbol("expectString"),Symbol("expectBoolean"),Symbol("expectVoid"),Symbol("expectFunction"),Symbol("expectObject"),Symbol("expectArray"),Symbol("expectSymbol"),Symbol("expectAny"),Symbol("expectUnknown"),Symbol("expectNever"),Symbol("expectNullable"),Symbol("expectBigInt")}}),L=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/overloads.js"(t){m(),Object.defineProperty(t,"__esModule",{value:!0})}}),F=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/utils.js"(t){m(),Object.defineProperty(t,"__esModule",{value:!0});Symbol("secret"),Symbol("mismatch"),Symbol("avalue")}}),q=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/index.js"(t){m();var e=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=t&&t.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.expectTypeOf=void 0,n(B(),t),n(D(),t),n(L(),t),n(F(),t);var r=()=>!0;t.expectTypeOf=e=>{const n={toBeAny:r,toBeUnknown:r,toBeNever:r,toBeFunction:r,toBeObject:r,toBeArray:r,toBeString:r,toBeNumber:r,toBeBoolean:r,toBeVoid:r,toBeSymbol:r,toBeNull:r,toBeUndefined:r,toBeNullable:r,toBeBigInt:r,toMatchTypeOf:r,toEqualTypeOf:r,toBeConstructibleWith:r,toMatchObjectType:r,toExtend:r,map:t.expectTypeOf,toBeCallableWith:t.expectTypeOf,extract:t.expectTypeOf,exclude:t.expectTypeOf,pick:t.expectTypeOf,omit:t.expectTypeOf,toHaveProperty:t.expectTypeOf,parameter:t.expectTypeOf};return["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"].forEach((e=>Object.defineProperty(n,e,{get:()=>(0,t.expectTypeOf)({})}))),n}}});m(),m(),m(),m(),m(),m(),m(),m(),m();var J=Object.entries({reset:[0,0],bold:[1,22,"[22m[1m"],dim:[2,22,"[22m[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 U(t){return String(t)}U.open="",U.close="";var W=require("tty"),H=function(t=!1){let e=function(t=!1){let e="undefined"!=typeof process?process:void 0,n=(null==e?void 0:e.env)||{},r=(null==e?void 0:e.argv)||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===(null==e?void 0:e.platform)||t&&"dumb"!==n.TERM||"CI"in n)||"undefined"!=typeof window&&!!window.chrome}(t),n=(t,e,n=t)=>{let r=r=>{let i=String(r),o=i.indexOf(e,t.length);return~o?t+((t,e,n,r)=>{let i="",o=0;do{i+=t.substring(o,r)+n,o=r+e.length,r=t.indexOf(e,o)}while(~r);return i+t.substring(o)})(i,e,n,o)+e:t+i+e};return r.open=t,r.close=e,r},r={isColorSupported:e},i=t=>`[${t}m`;for(let[t,o]of J)r[t]=e?n(i(o[0]),i(o[1]),o[2]):U;return r}(void 0!==process.env.FORCE_TTY||(0,W.isatty)(1));function X(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function z(t,e,n,r,i,o,s=": "){let c="",a=0,u=t.next();if(!u.done){c+=e.spacingOuter;const l=n+e.indent;for(;!u.done;){if(c+=l,a++===e.maxWidth){c+="…";break}c+=o(u.value[0],e,l,r,i)+s+o(u.value[1],e,l,r,i),u=t.next(),u.done?e.min||(c+=","):c+=`,${e.spacingInner}`}c+=e.spacingOuter+n}return c}function V(t,e,n,r,i,o){let s="",c=0,a=t.next();if(!a.done){s+=e.spacingOuter;const u=n+e.indent;for(;!a.done;){if(s+=u,c++===e.maxWidth){s+="…";break}s+=o(a.value,e,u,r,i),a=t.next(),a.done?e.min||(s+=","):s+=`,${e.spacingInner}`}s+=e.spacingOuter+n}return s}function K(t,e,n,r,i,o){let s="";const c=t=>t instanceof DataView,a=c(t=t instanceof ArrayBuffer?new DataView(t):t)?t.byteLength:t.length;if(a>0){s+=e.spacingOuter;const u=n+e.indent;for(let n=0;n<a;n++){if(s+=u,n===e.maxWidth){s+="…";break}(c(t)||n in t)&&(s+=o(c(t)?t.getInt8(n):t[n],e,u,r,i)),n<a-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}function G(t,e,n,r,i,o){let s="";const c=function(t,e){const n=Object.keys(t),r=null===e?n:n.sort(e);if(Object.getOwnPropertySymbols)for(const e of Object.getOwnPropertySymbols(t))Object.getOwnPropertyDescriptor(t,e).enumerable&&r.push(e);return r}(t,e.compareKeys);if(c.length>0){s+=e.spacingOuter;const a=n+e.indent;for(let n=0;n<c.length;n++){const u=c[n];s+=`${a+o(u,e,a,r,i)}: ${o(t[u],e,a,r,i)}`,n<c.length-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}var Z="function"==typeof Symbol&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Y=" ",Q={serialize:(t,e,n,r,i,o)=>{const s=t.toString();if("ArrayContaining"===s||"ArrayNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+Y}[${K(t.sample,e,n,r,i,o)}]`;if("ObjectContaining"===s||"ObjectNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+Y}{${G(t.sample,e,n,r,i,o)}}`;if("StringMatching"===s||"StringNotMatching"===s)return s+Y+o(t.sample,e,n,r,i);if("StringContaining"===s||"StringNotContaining"===s)return s+Y+o(t.sample,e,n,r,i);if("function"!=typeof t.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`);return t.toAsymmetricMatcher()},test:t=>t&&t.$$typeof===Z},tt=new Set(["DOMStringMap","NamedNodeMap"]),et=/^(?:HTML\w*Collection|NodeList)$/;var nt={serialize:(t,e,n,r,i,o)=>{const s=t.constructor.name;return++r>e.maxDepth?`[${s}]`:(e.min?"":s+" ")+(tt.has(s)?`{${G(function(t){return"NamedNodeMap"===t.constructor.name}(t)?[...t].reduce(((t,e)=>(t[e.name]=e.value,t)),{}):{...t},e,n,r,i,o)}}`:`[${K([...t],e,n,r,i,o)}]`)},test:t=>{return t&&t.constructor&&!!t.constructor.name&&(e=t.constructor.name,tt.has(e)||et.test(e));var e}};function rt(t){return t.replaceAll("<","<").replaceAll(">",">")}function it(t,e,n,r,i,o,s){const c=r+n.indent,a=n.colors;return t.map((t=>{const u=e[t];let l=s(u,n,c,i,o);return"string"!=typeof u&&(l.includes("\n")&&(l=n.spacingOuter+c+l+n.spacingOuter+r),l=`{${l}}`),`${n.spacingInner+r+a.prop.open+t+a.prop.close}=${a.value.open}${l}${a.value.close}`})).join("")}function ot(t,e,n,r,i,o){return t.map((t=>e.spacingOuter+n+("string"==typeof t?st(t,e):o(t,e,n,r,i)))).join("")}function st(t,e){const n=e.colors.content;return n.open+rt(t)+n.close}function ct(t,e,n,r,i){const o=r.colors.tag;return`${o.open}<${t}${e&&o.close+e+r.spacingOuter+i+o.open}${n?`>${o.close}${n}${r.spacingOuter}${i}${o.open}</${t}`:(e&&!r.min?"":" ")+"/"}>${o.close}`}function at(t,e){const n=e.colors.tag;return`${n.open}<${t}${n.close} …${n.open} />${n.close}`}var ut=/^(?:(?:HTML|SVG)\w*)?Element$/;function lt(t){return 11===t.nodeType}var ft={serialize:(t,e,n,r,i,o)=>{if(function(t){return 3===t.nodeType}(t))return st(t.data,e);if(function(t){return 8===t.nodeType}(t))return function(t,e){const n=e.colors.comment;return`${n.open}\x3c!--${rt(t)}--\x3e${n.close}`}(t.data,e);const s=lt(t)?"DocumentFragment":t.tagName.toLowerCase();return++r>e.maxDepth?at(s,e):ct(s,it(lt(t)?[]:Array.from(t.attributes,(t=>t.name)).sort(),lt(t)?{}:[...t.attributes].reduce(((t,e)=>(t[e.name]=e.value,t)),{}),e,n+e.indent,r,i,o),ot(Array.prototype.slice.call(t.childNodes||t.children),e,n+e.indent,r,i,o),e,n)},test:t=>{var e;return(null==(e=null==t?void 0:t.constructor)?void 0:e.name)&&function(t){const e=t.constructor.name,{nodeType:n,tagName:r}=t,i="string"==typeof r&&r.includes("-")||function(t){try{return"function"==typeof t.hasAttribute&&t.hasAttribute("is")}catch{return!1}}(t);return 1===n&&(ut.test(e)||i)||3===n&&"Text"===e||8===n&&"Comment"===e||11===n&&"DocumentFragment"===e}(t)}},ht="@@__IMMUTABLE_ORDERED__@@",dt=t=>`Immutable.${t}`,pt=t=>`[${t}]`,bt=" ";function mt(t,e,n,r,i,o,s){return++r>e.maxDepth?pt(dt(s)):`${dt(s)+bt}[${V(t.values(),e,n,r,i,o)}]`}var yt={serialize:(t,e,n,r,i,o)=>t["@@__IMMUTABLE_MAP__@@"]?function(t,e,n,r,i,o,s){return++r>e.maxDepth?pt(dt(s)):`${dt(s)+bt}{${z(t.entries(),e,n,r,i,o)}}`}(t,e,n,r,i,o,t[ht]?"OrderedMap":"Map"):t["@@__IMMUTABLE_LIST__@@"]?mt(t,e,n,r,i,o,"List"):t["@@__IMMUTABLE_SET__@@"]?mt(t,e,n,r,i,o,t[ht]?"OrderedSet":"Set"):t["@@__IMMUTABLE_STACK__@@"]?mt(t,e,n,r,i,o,"Stack"):t["@@__IMMUTABLE_SEQ__@@"]?function(t,e,n,r,i,o){const s=dt("Seq");return++r>e.maxDepth?pt(s):t["@@__IMMUTABLE_KEYED__@@"]?`${s+bt}{${t._iter||t._object?z(t.entries(),e,n,r,i,o):"…"}}`:`${s+bt}[${t._iter||t._array||t._collection||t._iterable?V(t.values(),e,n,r,i,o):"…"}]`}(t,e,n,r,i,o):function(t,e,n,r,i,o){const s=dt(t._name||"Record");return++r>e.maxDepth?pt(s):`${s+bt}{${z(function(t){let e=0;return{next(){if(e<t._keys.length){const n=t._keys[e++];return{done:!1,value:[n,t.get(n)]}}return{done:!0,value:void 0}}}}(t),e,n,r,i,o)}}`}(t,e,n,r,i,o),test:t=>t&&(!0===t["@@__IMMUTABLE_ITERABLE__@@"]||!0===t["@@__IMMUTABLE_RECORD__@@"])};function gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wt,vt={exports:{}},$t={};var xt,St,jt={};function Et(){return St||(St=1,"production"===process.env.NODE_ENV?vt.exports=function(){if(wt)return $t;wt=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),d=Symbol.for("react.client.reference");function p(h){if("object"==typeof h&&null!==h){var d=h.$$typeof;switch(d){case t:switch(h=h.type){case n:case i:case r:case a:case u:return h;default:switch(h=h&&h.$$typeof){case s:case c:case f:case l:case o:return h;default:return d}}case e:return d}}}return $t.ContextConsumer=o,$t.ContextProvider=s,$t.Element=t,$t.ForwardRef=c,$t.Fragment=n,$t.Lazy=f,$t.Memo=l,$t.Portal=e,$t.Profiler=i,$t.StrictMode=r,$t.Suspense=a,$t.SuspenseList=u,$t.isContextConsumer=function(t){return p(t)===o},$t.isContextProvider=function(t){return p(t)===s},$t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$t.isForwardRef=function(t){return p(t)===c},$t.isFragment=function(t){return p(t)===n},$t.isLazy=function(t){return p(t)===f},$t.isMemo=function(t){return p(t)===l},$t.isPortal=function(t){return p(t)===e},$t.isProfiler=function(t){return p(t)===i},$t.isStrictMode=function(t){return p(t)===r},$t.isSuspense=function(t){return p(t)===a},$t.isSuspenseList=function(t){return p(t)===u},$t.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===r||t===a||t===u||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===l||t.$$typeof===s||t.$$typeof===o||t.$$typeof===c||t.$$typeof===d||void 0!==t.getModuleId)},$t.typeOf=p,$t}():vt.exports=(xt||(xt=1,"production"!==process.env.NODE_ENV&&function(){function t(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:switch(t=t.type){case r:case o:case i:case u:case l:return t;default:switch(t=t&&t.$$typeof){case c:case a:case h:case f:case s:return t;default:return d}}case n:return d}}}var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),a=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.offscreen"),p=Symbol.for("react.client.reference");jt.ContextConsumer=s,jt.ContextProvider=c,jt.Element=e,jt.ForwardRef=a,jt.Fragment=r,jt.Lazy=h,jt.Memo=f,jt.Portal=n,jt.Profiler=o,jt.StrictMode=i,jt.Suspense=u,jt.SuspenseList=l,jt.isContextConsumer=function(e){return t(e)===s},jt.isContextProvider=function(e){return t(e)===c},jt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},jt.isForwardRef=function(e){return t(e)===a},jt.isFragment=function(e){return t(e)===r},jt.isLazy=function(e){return t(e)===h},jt.isMemo=function(e){return t(e)===f},jt.isPortal=function(e){return t(e)===n},jt.isProfiler=function(e){return t(e)===o},jt.isStrictMode=function(e){return t(e)===i},jt.isSuspense=function(e){return t(e)===u},jt.isSuspenseList=function(e){return t(e)===l},jt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===i||t===u||t===l||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===c||t.$$typeof===s||t.$$typeof===a||t.$$typeof===p||void 0!==t.getModuleId)},jt.typeOf=t}()),jt)),vt.exports}var Ot,Tt=Et(),kt=X({__proto__:null,default:gt(Tt)},[Tt]),At={exports:{}},_t={};var Mt,Ct,It={};var Nt=(Ct||(Ct=1,"production"===process.env.NODE_ENV?At.exports=function(){if(Ot)return _t;Ot=1;var t,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=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");function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case r:case o:case i:case l:case f:return t;default:switch(t=t&&t.$$typeof){case a:case c:case u:case d:case h:case s:return t;default:return p}}case n:return p}}}return t=Symbol.for("react.module.reference"),_t.ContextConsumer=c,_t.ContextProvider=s,_t.Element=e,_t.ForwardRef=u,_t.Fragment=r,_t.Lazy=d,_t.Memo=h,_t.Portal=n,_t.Profiler=o,_t.StrictMode=i,_t.Suspense=l,_t.SuspenseList=f,_t.isAsyncMode=function(){return!1},_t.isConcurrentMode=function(){return!1},_t.isContextConsumer=function(t){return b(t)===c},_t.isContextProvider=function(t){return b(t)===s},_t.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},_t.isForwardRef=function(t){return b(t)===u},_t.isFragment=function(t){return b(t)===r},_t.isLazy=function(t){return b(t)===d},_t.isMemo=function(t){return b(t)===h},_t.isPortal=function(t){return b(t)===n},_t.isProfiler=function(t){return b(t)===o},_t.isStrictMode=function(t){return b(t)===i},_t.isSuspense=function(t){return b(t)===l},_t.isSuspenseList=function(t){return b(t)===f},_t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===l||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===t||void 0!==e.getModuleId)},_t.typeOf=b,_t}():At.exports=(Mt||(Mt=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=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");function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var b=t.type;switch(b){case r:case o:case i:case l:case f:return b;default:var m=b&&b.$$typeof;switch(m){case a:case c:case u:case d:case h:case s:return m;default:return p}}case n:return p}}}t=Symbol.for("react.module.reference");var m=c,y=s,g=e,w=u,v=r,$=d,x=h,S=n,j=o,E=i,O=l,T=f,k=!1,A=!1;It.ContextConsumer=m,It.ContextProvider=y,It.Element=g,It.ForwardRef=w,It.Fragment=v,It.Lazy=$,It.Memo=x,It.Portal=S,It.Profiler=j,It.StrictMode=E,It.Suspense=O,It.SuspenseList=T,It.isAsyncMode=function(t){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},It.isConcurrentMode=function(t){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},It.isContextConsumer=function(t){return b(t)===c},It.isContextProvider=function(t){return b(t)===s},It.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},It.isForwardRef=function(t){return b(t)===u},It.isFragment=function(t){return b(t)===r},It.isLazy=function(t){return b(t)===d},It.isMemo=function(t){return b(t)===h},It.isPortal=function(t){return b(t)===n},It.isProfiler=function(t){return b(t)===o},It.isStrictMode=function(t){return b(t)===i},It.isSuspense=function(t){return b(t)===l},It.isSuspenseList=function(t){return b(t)===f},It.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===l||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===t||void 0!==e.getModuleId)},It.typeOf=b}()),It)),At.exports),Pt=X({__proto__:null,default:gt(Nt)},[Nt]),Rt=Object.fromEntries(["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"].map((t=>[t,e=>Pt[t](e)||kt[t](e)])));function Bt(t,e=[]){if(Array.isArray(t))for(const n of t)Bt(n,e);else null!=t&&!1!==t&&""!==t&&e.push(t);return e}function Dt(t){const e=t.type;if("string"==typeof e)return e;if("function"==typeof e)return e.displayName||e.name||"Unknown";if(Rt.isFragment(t))return"React.Fragment";if(Rt.isSuspense(t))return"React.Suspense";if("object"==typeof e&&null!==e){if(Rt.isContextProvider(t))return"Context.Provider";if(Rt.isContextConsumer(t))return"Context.Consumer";if(Rt.isForwardRef(t)){if(e.displayName)return e.displayName;const t=e.render.displayName||e.render.name||"";return""===t?"ForwardRef":`ForwardRef(${t})`}if(Rt.isMemo(t)){const t=e.displayName||e.type.displayName||e.type.name||"";return""===t?"Memo":`Memo(${t})`}}return"UNDEFINED"}var Lt={serialize:(t,e,n,r,i,o)=>++r>e.maxDepth?at(Dt(t),e):ct(Dt(t),it(function(t){const{props:e}=t;return Object.keys(e).filter((t=>"children"!==t&&void 0!==e[t])).sort()}(t),t.props,e,n+e.indent,r,i,o),ot(Bt(t.props.children),e,n+e.indent,r,i,o),e,n),test:t=>null!=t&&Rt.isElement(t)},Ft="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var qt={serialize:(t,e,n,r,i,o)=>++r>e.maxDepth?at(t.type,e):ct(t.type,t.props?it(function(t){const{props:e}=t;return e?Object.keys(e).filter((t=>void 0!==e[t])).sort():[]}(t),t.props,e,n+e.indent,r,i,o):"",t.children?ot(t.children,e,n+e.indent,r,i,o):"",e,n),test:t=>t&&t.$$typeof===Ft},Jt=Object.prototype.toString,Ut=Date.prototype.toISOString,Wt=Error.prototype.toString,Ht=RegExp.prototype.toString;function Xt(t){return"function"==typeof t.constructor&&t.constructor.name||"Object"}var zt=/^Symbol\((.*)\)(.*)$/,Vt=/\n/g,Kt=class extends Error{constructor(t,e){super(t),this.stack=e,this.name=this.constructor.name}};function Gt(t,e){return e?`[Function ${t.name||"anonymous"}]`:"[Function]"}function Zt(t){return String(t).replace(zt,"Symbol($1)")}function Yt(t){return`[${Wt.call(t)}]`}function Qt(t,e,n,r){if(!0===t||!1===t)return`${t}`;if(void 0===t)return"undefined";if(null===t)return"null";const i=typeof t;if("number"===i)return function(t){return Object.is(t,-0)?"-0":String(t)}(t);if("bigint"===i)return function(t){return String(`${t}n`)}(t);if("string"===i)return r?`"${t.replaceAll(/"|\\/g,"\\$&")}"`:`"${t}"`;if("function"===i)return Gt(t,e);if("symbol"===i)return Zt(t);const o=Jt.call(t);return"[object WeakMap]"===o?"WeakMap {}":"[object WeakSet]"===o?"WeakSet {}":"[object Function]"===o||"[object GeneratorFunction]"===o?Gt(t,e):"[object Symbol]"===o?Zt(t):"[object Date]"===o?Number.isNaN(+t)?"Date { NaN }":Ut.call(t):"[object Error]"===o?Yt(t):"[object RegExp]"===o?n?Ht.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Ht.call(t):t instanceof Error?Yt(t):null}function te(t,e,n,r,i,o){if(i.includes(t))return"[Circular]";(i=[...i]).push(t);const s=++r>e.maxDepth,c=e.min;if(e.callToJSON&&!s&&t.toJSON&&"function"==typeof t.toJSON&&!o)return ie(t.toJSON(),e,n,r,i,!0);const a=Jt.call(t);return"[object Arguments]"===a?s?"[Arguments]":`${c?"":"Arguments "}[${K(t,e,n,r,i,ie)}]`:function(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}(a)?s?`[${t.constructor.name}]`:`${c?"":e.printBasicPrototype||"Array"!==t.constructor.name?`${t.constructor.name} `:""}[${K(t,e,n,r,i,ie)}]`:"[object Map]"===a?s?"[Map]":`Map {${z(t.entries(),e,n,r,i,ie," => ")}}`:"[object Set]"===a?s?"[Set]":`Set {${V(t.values(),e,n,r,i,ie)}}`:s||function(t){return"undefined"!=typeof window&&t===window}(t)?`[${Xt(t)}]`:`${c?"":e.printBasicPrototype||"Object"!==Xt(t)?`${Xt(t)} `:""}{${G(t,e,n,r,i,ie)}}`}var ee={test:t=>t&&t instanceof Error,serialize(t,e,n,r,i,o){if(i.includes(t))return"[Circular]";i=[...i,t];const s=++r>e.maxDepth,{message:c,cause:a,...u}=t,l={message:c,...void 0!==a?{cause:a}:{},...t instanceof AggregateError?{errors:t.errors}:{},...u},f="Error"!==t.name?t.name:Xt(t);return s?`[${f}]`:`${f} {${z(Object.entries(l).values(),e,n,r,i,o)}}`}};function ne(t,e,n,r,i,o){let s;try{s=function(t){return null!=t.serialize}(t)?t.serialize(e,n,r,i,o,ie):t.print(e,(t=>ie(t,n,r,i,o)),(t=>{const e=r+n.indent;return e+t.replaceAll(Vt,`\n${e}`)}),{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(t){throw new Kt(t.message,t.stack)}if("string"!=typeof s)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function re(t,e){for(const n of t)try{if(n.test(e))return n}catch(t){throw new Kt(t.message,t.stack)}return null}function ie(t,e,n,r,i,o){const s=re(e.plugins,t);if(null!==s)return ne(s,t,e,n,r,i);const c=Qt(t,e.printFunctionName,e.escapeRegex,e.escapeString);return null!==c?c:te(t,e,n,r,i,o)}var oe={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},se=Object.keys(oe),ce={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:oe};function ae(t){return(null==t?void 0:t.printFunctionName)??ce.printFunctionName}function ue(t){return(null==t?void 0:t.escapeRegex)??ce.escapeRegex}function le(t){return(null==t?void 0:t.escapeString)??ce.escapeString}function fe(t){return{callToJSON:(null==t?void 0:t.callToJSON)??ce.callToJSON,colors:(null==t?void 0:t.highlight)?se.reduce(((t,e)=>{const n=oe[e],r=n&&H[n];if(!r||"string"!=typeof r.close||"string"!=typeof r.open)throw new Error(`pretty-format: Option "theme" has a key "${e}" whose value "${n}" is undefined in ansi-styles.`);return t[e]=r,t}),Object.create(null)):se.reduce(((t,e)=>(t[e]={close:"",open:""},t)),Object.create(null)),compareKeys:"function"==typeof(null==t?void 0:t.compareKeys)||null===(null==t?void 0:t.compareKeys)?t.compareKeys:ce.compareKeys,escapeRegex:ue(t),escapeString:le(t),indent:(null==t?void 0:t.min)?"":(e=(null==t?void 0:t.indent)??ce.indent,Array.from({length:e+1}).join(" ")),maxDepth:(null==t?void 0:t.maxDepth)??ce.maxDepth,maxWidth:(null==t?void 0:t.maxWidth)??ce.maxWidth,min:(null==t?void 0:t.min)??ce.min,plugins:(null==t?void 0:t.plugins)??ce.plugins,printBasicPrototype:(null==t?void 0:t.printBasicPrototype)??!0,printFunctionName:ae(t),spacingInner:(null==t?void 0:t.min)?" ":"\n",spacingOuter:(null==t?void 0:t.min)?"":"\n"};var e}function he(t,e){if(e&&(function(t){for(const e of Object.keys(t))if(!Object.prototype.hasOwnProperty.call(ce,e))throw new Error(`pretty-format: Unknown option "${e}".`);if(t.min&&void 0!==t.indent&&0!==t.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}(e),e.plugins)){const n=re(e.plugins,t);if(null!==n)return ne(n,t,fe(e),"",0,[])}const n=Qt(t,ae(e),ue(e),le(e));return null!==n?n:te(t,fe(e),"",0,[])}var de={AsymmetricMatcher:Q,DOMCollection:nt,DOMElement:ft,Immutable:yt,ReactElement:Lt,ReactTestComponent:qt,Error:ee};m(),m(),m();var pe={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"]},be={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},me="…";function ye(t,e){const n=pe[be[e]]||pe[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function ge(t,e,n=me){t=String(t);const r=n.length,i=t.length;if(r>e&&i>r)return n;if(i>e&&i>r){let i=e-r;return i>0&&((o=t[i-1])>="\ud800"&&o<="\udbff")&&(i-=1),`${t.slice(0,i)}${n}`}var o;return t}function we(t,e,n,r=", "){n=n||e.inspect;const i=t.length;if(0===i)return"";const o=e.truncate;let s="",c="",a="";for(let u=0;u<i;u+=1){const i=u+1===t.length,l=u+2===t.length;a=`${me}(${t.length-u})`;const f=t[u];e.truncate=o-s.length-(i?0:r.length);const h=c||n(f,e)+(i?"":r),d=s.length+h.length,p=d+a.length;if(i&&d>o&&s.length+a.length<=o)break;if(!i&&!l&&p>o)break;if(c=i?"":n(t[u+1],e)+(l?"":r),!i&&l&&p>o&&d+c.length>o)break;if(s+=h,!i&&!l&&d+c.length>=o){a=`${me}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function ve([t,e],n){return n.truncate-=2,"string"==typeof t?t=function(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(t):"number"!=typeof t&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,`${t}: ${e=n.inspect(e,n)}`}m();function $e(t,e){const n=(t=>"function"==typeof Buffer&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name)(t);e.truncate-=n.length+4;const r=Object.keys(t).slice(t.length);if(!t.length&&!r.length)return`${n}[]`;let i="";for(let n=0;n<t.length;n++){const r=`${e.stylize(ge(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){i+=`${me}(${t.length-t[n]+1})`;break}i+=r}let o="";return r.length&&(o=we(r.map((e=>[e,t[e]])),e,ve)),`${n}[ ${i}${o?`, ${o}`:""} ]`}function xe(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${ge(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function Se([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}m(),m(),m(),m();var je=Number.isNaN||(t=>t!=t);function Ee(t,e){return je(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):0===t?e.stylize(1/t==1/0?"+0":"-0","number"):e.stylize(ge(String(t),e.truncate),"number")}function Oe(t,e){let n=ge(t.toString(),e.truncate-1);return n!==me&&(n+="n"),e.stylize(n,"bigint")}m(),m(),m(),m();var Te=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ke={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function Ae(t){return ke[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function _e(t,e){return Te.test(t)&&(t=t.replace(Te,Ae)),e.stylize(`'${ge(t,e.truncate-2)}'`,"string")}function Me(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}m(),m();var Ce=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(Ce=(r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`})}catch(t){}var Ie=Ce;function Ne(t,e){const n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(0===n.length&&0===r.length)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const i=we(n.map((e=>[e,t[e]])),e,ve),o=we(r.map((e=>[e,t[e]])),e,ve);e.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}m(),m();var Pe=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;m(),m();var Re=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Be([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function De(t,e){return we(t,e,Le,"\n")}function Le(t,e){const n=t.getAttributeNames(),r=t.tagName.toLowerCase(),i=e.stylize(`<${r}`,"special"),o=e.stylize(">","special"),s=e.stylize(`</${r}>`,"special");e.truncate-=2*r.length+5;let c="";n.length>0&&(c+=" ",c+=we(n.map((e=>[e,t.getAttribute(e)])),e,Be," ")),e.truncate-=c.length;const a=e.truncate;let u=De(t.children,e);return u&&u.length>a&&(u=`${me}(${t.children.length})`),`${i}${c}${o}${u}${s}`}m();var Fe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",qe=!1;try{const t=require("util");qe=!!t.inspect&&t.inspect.custom}catch(t){qe=!1}var Je=new WeakMap,Ue={},We={undefined:(t,e)=>e.stylize("undefined","undefined"),null:(t,e)=>e.stylize("null","null"),boolean:(t,e)=>e.stylize(String(t),"boolean"),Boolean:(t,e)=>e.stylize(String(t),"boolean"),number:Ee,Number:Ee,bigint:Oe,BigInt:Oe,string:_e,String:_e,function:xe,Function:xe,symbol:Me,Symbol:Me,Array:function(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=we(t,e);e.truncate-=r.length;let i="";return n.length&&(i=we(n.map((e=>[e,t[e]])),e,ve)),`[ ${r}${i?`, ${i}`:""} ]`},Date:function(t,e){const n=t.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),i=r[0];return e.stylize(`${i}T${ge(r[1],e.truncate-i.length-1)}`,"date")},Map:function(t,e){return 0===t.size?"Map{}":(e.truncate-=7,`Map{ ${we(function(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}(t),e,Se)} }`)},Set:function(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${we(function(t){const e=[];return t.forEach((t=>{e.push(t)})),e}(t),e)} }`)},RegExp:function(t,e){const n=t.toString().split("/")[2],r=e.truncate-(2+n.length),i=t.source;return e.stylize(`/${ge(i,r)}/${n}`,"regexp")},Promise:Ie,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:function(t,e){return 0===t.length?"Arguments[]":(e.truncate-=13,`Arguments[ ${we(t,e)} ]`)},Int8Array:$e,Uint8Array:$e,Uint8ClampedArray:$e,Int16Array:$e,Uint16Array:$e,Int32Array:$e,Uint32Array:$e,Float32Array:$e,Float64Array:$e,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===Re.indexOf(t))),r=t.name;e.truncate-=r.length;let i="";if("string"==typeof t.message?i=ge(t.message,e.truncate):n.unshift("message"),i=i?`: ${i}`:"",e.truncate-=i.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const o=we(n.map((e=>[e,t[e]])),e,ve);return`${r}${i}${o?` { ${o} }`:""}`},HTMLCollection:De,NodeList:De},He=Object.prototype.toString;function Xe(t,e={}){const n=function({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:c=[],truncate:a=1/0,stylize:u=String}={},l){const f={showHidden:Boolean(t),depth:Number(e),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(i),maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(a),seen:c,inspect:l,stylize:u};return f.colors&&(f.stylize=ye),f}(e,Xe),{customInspect:r}=n;let i=null===t?"null":typeof t;if("object"===i&&(i=He.call(t).slice(8,-1)),i in We)return We[i](t,n);if(r&&t){const e=((t,e,n)=>Fe in t&&"function"==typeof t[Fe]?t[Fe](e):qe&&qe in t&&"function"==typeof t[qe]?t[qe](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&Je.has(t.constructor)?Je.get(t.constructor)(t,e):Ue[n]?Ue[n](t,e):"")(t,n,i);if(e)return"string"==typeof e?e:Xe(e,n)}const o=!!t&&Object.getPrototypeOf(t);return o===Object.prototype||null===o?Ne(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?Le(t,n):"constructor"in t?t.constructor!==Object?function(t,e){let n="";return Pe&&Pe in t&&(n=t[Pe]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${Ne(t,e)}`}(t,n):Ne(t,n):t===Object(t)?Ne(t,n):n.stylize(String(t),i)}var{AsymmetricMatcher:ze,DOMCollection:Ve,DOMElement:Ke,Immutable:Ge,ReactElement:Ze,ReactTestComponent:Ye}=de,Qe=[Ye,Ze,Ke,Ve,Ge,ze];function tn(t,e=10,{maxLength:n,...r}={}){const i=n??1e4;let o;try{o=he(t,{maxDepth:e,escapeString:!1,plugins:Qe,...r})}catch{o=he(t,{callToJSON:!1,maxDepth:e,escapeString:!1,plugins:Qe,...r})}return o.length>=i&&e>1?tn(t,Math.floor(Math.min(e,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):o}var en=/%[sdjifoOc%]/g;function nn(...t){if("string"!=typeof t[0]){const e=[];for(let n=0;n<t.length;n++)e.push(rn(t[n],{depth:0,colors:!1}));return e.join(" ")}const e=t.length;let n=1;const r=t[0];let i=String(r).replace(en,(r=>{if("%%"===r)return"%";if(n>=e)return r;switch(r){case"%s":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:"number"==typeof e&&0===e&&1/e<0?"-0":"object"==typeof e&&null!==e?"function"==typeof e.toString&&e.toString!==Object.prototype.toString?e.toString():rn(e,{depth:0,colors:!1}):String(e)}case"%d":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:Number(e).toString()}case"%i":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:Number.parseInt(String(e)).toString()}case"%f":return Number.parseFloat(String(t[n++])).toString();case"%o":return rn(t[n++],{showHidden:!0,showProxy:!0});case"%O":return rn(t[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(t[n++])}catch(t){const e=t.message;if(e.includes("circular structure")||e.includes("cyclic structures")||e.includes("cyclic object"))return"[Circular]";throw t}default:return r}}));for(let r=t[n];n<e;r=t[++n])i+=null===r||"object"!=typeof r?` ${r}`:` ${rn(r)}`;return i}function rn(t,e={}){return 0===e.truncate&&(e.truncate=Number.POSITIVE_INFINITY),Xe(t,e)}function on(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function sn(t,e,n){const r=typeof t;if(!n.includes(r))throw new TypeError(`${e} value must be ${n.join(" or ")}, received "${r}"`)}function cn(t){return null==t&&(t=[]),Array.isArray(t)?t:[t]}function an(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}function un(t){return Object.prototype.toString.apply(t).slice(8,-1)}function ln(t){const e=new Set;return function(t){return t===Object.prototype||t===Function.prototype||t===RegExp.prototype}(t)?[]:(function(t,e){const n="function"==typeof e?e:t=>e.add(t);Object.getOwnPropertyNames(t).forEach(n),Object.getOwnPropertySymbols(t).forEach(n)}(t,e),Array.from(e))}m();var fn,hn,dn={forceWritable:!1};function pn(t,e=dn){return bn(t,new WeakMap,e)}function bn(t,e,n=dn){let r,i;if(e.has(t))return e.get(t);if(Array.isArray(t)){for(i=Array.from({length:r=t.length}),e.set(t,i);r--;)i[r]=bn(t[r],e,n);return i}if("[object Object]"===Object.prototype.toString.call(t)){i=Object.create(Object.getPrototypeOf(t)),e.set(t,i);const r=ln(t);for(const o of r){const r=Object.getOwnPropertyDescriptor(t,o);if(!r)continue;const s=bn(t[o],e,n);n.forceWritable?Object.defineProperty(i,o,{enumerable:r.enumerable,configurable:!0,writable:!0,value:s}):"get"in r?Object.defineProperty(i,o,{...r,get:()=>s}):Object.defineProperty(i,o,{...r,value:s})}return i}return t}function mn(){let t=null,e=null;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n}hn||(hn=1,An=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,kn=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,yn=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,Mn=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,Tn=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,Cn=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,Pn=/[\t\v\f\ufeff\p{Zs}]+/uy,jn=/\r?\n|[\r\u2028\u2029]/y,En=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,_n=/\/\/.*/y,wn=/[<>.:={}]|\/(?![\/*])/y,gn=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,vn=/(['"])(?:(?!\1)[^])*(\1)?/y,$n=/[^<>{}]+/y,Nn=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,In=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,xn=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,Sn=/^(?:return|throw|yield)$/,On=RegExp(jn.source),fn=function*(t,{jsx:e=!1}={}){var n,r,i,o,s,c,a,u,l,f,h,d,p,b;for(({length:c}=t),o=0,s="",b=[{tag:"JS"}],n=[],h=0,d=!1;o<c;){switch((u=b[b.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===t[o]&&(Nn.test(s)||xn.test(s))&&(An.lastIndex=o,a=An.exec(t))){o=An.lastIndex,s=a[0],d=!0,yield{type:"RegularExpressionLiteral",value:a[0],closed:void 0!==a[1]&&"\\"!==a[1]};continue}if(kn.lastIndex=o,a=kn.exec(t)){switch(p=a[0],l=kn.lastIndex,f=p,p){case"(":"?NonExpressionParenKeyword"===s&&b.push({tag:"JSNonExpressionParen",nesting:h}),h++,d=!1;break;case")":h--,d=!0,"JSNonExpressionParen"===u.tag&&h===u.nesting&&(b.pop(),f="?NonExpressionParenEnd",d=!1);break;case"{":kn.lastIndex=0,i=!In.test(s)&&(Nn.test(s)||xn.test(s)),n.push(i),d=!1;break;case"}":switch(u.tag){case"InterpolationInTemplate":if(n.length===u.nesting){Cn.lastIndex=o,a=Cn.exec(t),o=Cn.lastIndex,s=a[0],"${"===a[1]?(s="?InterpolationInTemplate",d=!1,yield{type:"TemplateMiddle",value:a[0]}):(b.pop(),d=!0,yield{type:"TemplateTail",value:a[0],closed:"`"===a[1]});continue}break;case"InterpolationInJSX":if(n.length===u.nesting){b.pop(),o+=1,s="}",yield{type:"JSXPunctuator",value:"}"};continue}}f=(d=n.pop())?"?ExpressionBraceEnd":"}";break;case"]":d=!0;break;case"++":case"--":f=d?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(e&&(Nn.test(s)||xn.test(s))){b.push({tag:"JSXTag"}),o+=1,s="<",yield{type:"JSXPunctuator",value:p};continue}d=!1;break;default:d=!1}o=l,s=f,yield{type:"Punctuator",value:p};continue}if(yn.lastIndex=o,a=yn.exec(t)){switch(o=yn.lastIndex,f=a[0],a[0]){case"for":case"if":case"while":case"with":"."!==s&&"?."!==s&&(f="?NonExpressionParenKeyword")}s=f,d=!xn.test(a[0]),yield{type:"#"===a[1]?"PrivateIdentifier":"IdentifierName",value:a[0]};continue}if(Mn.lastIndex=o,a=Mn.exec(t)){o=Mn.lastIndex,s=a[0],d=!0,yield{type:"StringLiteral",value:a[0],closed:void 0!==a[2]};continue}if(Tn.lastIndex=o,a=Tn.exec(t)){o=Tn.lastIndex,s=a[0],d=!0,yield{type:"NumericLiteral",value:a[0]};continue}if(Cn.lastIndex=o,a=Cn.exec(t)){o=Cn.lastIndex,s=a[0],"${"===a[1]?(s="?InterpolationInTemplate",b.push({tag:"InterpolationInTemplate",nesting:n.length}),d=!1,yield{type:"TemplateHead",value:a[0]}):(d=!0,yield{type:"NoSubstitutionTemplate",value:a[0],closed:"`"===a[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(wn.lastIndex=o,a=wn.exec(t)){switch(o=wn.lastIndex,f=a[0],a[0]){case"<":b.push({tag:"JSXTag"});break;case">":b.pop(),"/"===s||"JSXTagEnd"===u.tag?(f="?JSX",d=!0):b.push({tag:"JSXChildren"});break;case"{":b.push({tag:"InterpolationInJSX",nesting:n.length}),f="?InterpolationInJSX",d=!1;break;case"/":"<"===s&&(b.pop(),"JSXChildren"===b[b.length-1].tag&&b.pop(),b.push({tag:"JSXTagEnd"}))}s=f,yield{type:"JSXPunctuator",value:a[0]};continue}if(gn.lastIndex=o,a=gn.exec(t)){o=gn.lastIndex,s=a[0],yield{type:"JSXIdentifier",value:a[0]};continue}if(vn.lastIndex=o,a=vn.exec(t)){o=vn.lastIndex,s=a[0],yield{type:"JSXString",value:a[0],closed:void 0!==a[2]};continue}break;case"JSXChildren":if($n.lastIndex=o,a=$n.exec(t)){o=$n.lastIndex,s=a[0],yield{type:"JSXText",value:a[0]};continue}switch(t[o]){case"<":b.push({tag:"JSXTag"}),o++,s="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":b.push({tag:"InterpolationInJSX",nesting:n.length}),o++,s="?InterpolationInJSX",d=!1,yield{type:"JSXPunctuator",value:"{"};continue}}Pn.lastIndex=o,(a=Pn.exec(t))?(o=Pn.lastIndex,yield{type:"WhiteSpace",value:a[0]}):(jn.lastIndex=o,(a=jn.exec(t))?(o=jn.lastIndex,d=!1,Sn.test(s)&&(s="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:a[0]}):(En.lastIndex=o,(a=En.exec(t))?(o=En.lastIndex,On.test(a[0])&&(d=!1,Sn.test(s)&&(s="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:a[0],closed:void 0!==a[1]}):(_n.lastIndex=o,(a=_n.exec(t))?(o=_n.lastIndex,d=!1,yield{type:"SingleLineComment",value:a[0]}):(o+=(r=String.fromCodePoint(t.codePointAt(o))).length,s=r,d=!1,yield{type:u.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r}))))}});var yn,gn,wn,vn,$n,xn,Sn,jn,En,On,Tn,kn,An,_n,Mn,Cn,In,Nn,Pn,Rn=["implements","interface","let","package","private","protected","public","static","yield"],Bn=(new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),new Set(Rn),Symbol("vitest:SAFE_TIMERS"));function Dn(){const{setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:o,queueMicrotask:s}=globalThis[Bn]||globalThis,{nextTick:c}=globalThis[Bn]||globalThis.process||{nextTick:t=>t()};return{nextTick:c,setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:o,queueMicrotask:s}}m();var Ln=-1,Fn=class{constructor(t,e){b(this,0),b(this,1),this[0]=t,this[1]=e}};function qn(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(o,i)===e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function Jn(t,e){if(!t||!e||t.charAt(t.length-1)!==e.charAt(e.length-1))return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(t.length-i,t.length-o)===e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function Un(t,e){const n=t.length,r=e.length;if(0===n||0===r)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));const i=Math.min(n,r);if(t===e)return i;let o=0,s=1;for(;;){const n=t.substring(i-s),r=e.indexOf(n);if(-1===r)return o;s+=r,0!==r&&t.substring(i-s)!==e.substring(0,s)||(o=s,s++)}}function Wn(t){let e=!1;const n=[];let r=0,i=null,o=0,s=0,c=0,a=0,u=0;for(;o<t.length;)0===t[o][0]?(n[r++]=o,s=a,c=u,a=0,u=0,i=t[o][1]):(1===t[o][0]?a+=t[o][1].length:u+=t[o][1].length,i&&i.length<=Math.max(s,c)&&i.length<=Math.max(a,u)&&(t.splice(n[r-1],0,new Fn(Ln,i)),t[n[r-1]+1][0]=1,r--,r--,o=r>0?n[r-1]:-1,s=0,c=0,a=0,u=0,i=null,e=!0)),o++;for(e&&Gn(t),function(t){let e=1;for(;e<t.length-1;){if(0===t[e-1][0]&&0===t[e+1][0]){let n=t[e-1][1],r=t[e][1],i=t[e+1][1];const o=Jn(n,r);if(o){const t=r.substring(r.length-o);n=n.substring(0,n.length-o),r=t+r.substring(0,r.length-o),i=t+i}let s=n,c=r,a=i,u=Zn(n,r)+Zn(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);const t=Zn(n,r)+Zn(r,i);t>=u&&(u=t,s=n,c=r,a=i)}t[e-1][1]!==s&&(s?t[e-1][1]=s:(t.splice(e-1,1),e--),t[e][1]=c,a?t[e+1][1]=a:(t.splice(e+1,1),e--))}e++}}(t),o=1;o<t.length;){if(t[o-1][0]===Ln&&1===t[o][0]){const e=t[o-1][1],n=t[o][1],r=Un(e,n),i=Un(n,e);r>=i?(r>=e.length/2||r>=n.length/2)&&(t.splice(o,0,new Fn(0,n.substring(0,r))),t[o-1][1]=e.substring(0,e.length-r),t[o+1][1]=n.substring(r),o++):(i>=e.length/2||i>=n.length/2)&&(t.splice(o,0,new Fn(0,e.substring(0,i))),t[o-1][0]=1,t[o-1][1]=n.substring(0,n.length-i),t[o+1][0]=Ln,t[o+1][1]=e.substring(i),o++),o++}o++}}var Hn=/[^a-z0-9]/i,Xn=/\s/,zn=/[\r\n]/,Vn=/\n\r?\n$/,Kn=/^\r?\n\r?\n/;function Gn(t){t.push(new Fn(0,""));let e,n=0,r=0,i=0,o="",s="";for(;n<t.length;)switch(t[n][0]){case 1:i++,s+=t[n][1],n++;break;case Ln:r++,o+=t[n][1],n++;break;case 0:r+i>1?(0!==r&&0!==i&&(e=qn(s,o),0!==e&&(n-r-i>0&&0===t[n-r-i-1][0]?t[n-r-i-1][1]+=s.substring(0,e):(t.splice(0,0,new Fn(0,s.substring(0,e))),n++),s=s.substring(e),o=o.substring(e)),e=Jn(s,o),0!==e&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),o=o.substring(0,o.length-e))),n-=r+i,t.splice(n,r+i),o.length&&(t.splice(n,0,new Fn(Ln,o)),n++),s.length&&(t.splice(n,0,new Fn(1,s)),n++),n++):0!==n&&0===t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,o="",s=""}""===t[t.length-1][1]&&t.pop();let c=!1;for(n=1;n<t.length-1;)0===t[n-1][0]&&0===t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&Gn(t)}function Zn(t,e){if(!t||!e)return 6;const n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(Hn),o=r.match(Hn),s=i&&n.match(Xn),c=o&&r.match(Xn),a=s&&n.match(zn),u=c&&r.match(zn),l=a&&t.match(Vn),f=u&&e.match(Kn);return l||f?5:a||u?4:i&&!s&&c?3:s||c?2:i||o?1:0}var Yn,Qn="Compared values have no visual difference.",tr={};var er=on(function(){if(Yn)return tr;Yn=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=function(t,i,o,s){u("aLength",t),u("bLength",i),l("isCommon",o),l("foundSubsequence",s);const c=n(0,t,0,i,o);0!==c&&s(c,0,0);if(t!==c||i!==c){const n=c,u=c,l=r(n,t-1,u,i-1,o),f=t-l,h=i-l,d=c+l;if(t!==d&&i!==d){a(0,n,f,u,h,!1,[{foundSubsequence:s,isCommon:o}],[e],[e],{aCommonFollowing:e,aCommonPreceding:e,aEndPreceding:e,aStartFollowing:e,bCommonFollowing:e,bCommonPreceding:e,bEndPreceding:e,bStartFollowing:e,nChangeFollowing:e,nChangePreceding:e,nCommonFollowing:e,nCommonPreceding:e})}0!==l&&s(l,f,h)}};const t="diff-sequences",e=0,n=(t,e,n,r,i)=>{let o=0;for(;t<e&&n<r&&i(t,n);)t+=1,n+=1,o+=1;return o},r=(t,e,n,r,i)=>{let o=0;for(;t<=e&&n<=r&&i(e,r);)e-=1,r-=1,o+=1;return o},i=(t,e,r,i,o,s,c)=>{let a=0,u=-t,l=s[a],f=l;s[a]+=n(l+1,e,i+l-u+1,r,o);const h=t<c?t:c;for(a+=1,u+=2;a<=h;a+=1,u+=2){if(a!==t&&f<s[a])l=s[a];else if(l=f+1,e<=l)return a-1;f=s[a],s[a]=l+n(l+1,e,i+l-u+1,r,o)}return c},o=(t,e,n,i,o,s,c)=>{let a=0,u=t,l=s[a],f=l;s[a]-=r(e,l-1,n,i+l-u-1,o);const h=t<c?t:c;for(a+=1,u-=2;a<=h;a+=1,u-=2){if(a!==t&&s[a]<f)l=s[a];else if(l=f-1,l<e)return a-1;f=s[a],s[a]=l-r(e,l-1,n,i+l-u-1,o)}return c},s=(t,i,o,s,c,a,u,l,f,h,d)=>{const p=s-i,b=c-s-(o-i),m=-b-(t-1),y=t-1-b;let g=e;const w=t<l?t:l;for(let e=0,l=-t;e<=w;e+=1,l+=2){const w=0===e||e!==t&&g<u[e],v=w?u[e]:g,$=w?v:v+1,x=p+$-l,S=n($+1,o,x+1,c,a),j=$+S;if(g=u[e],u[e]=j,m<=l&&l<=y){const e=(t-1-(l+b))/2;if(e<=h&&f[e]-1<=j){const e=p+v-(w?l+1:l-1),n=r(i,v,s,e,a),u=v-n+1,f=e-n+1;d.nChangePreceding=t-1,t-1==u+f-i-s?(d.aEndPreceding=i,d.bEndPreceding=s):(d.aEndPreceding=u,d.bEndPreceding=f),d.nCommonPreceding=n,0!==n&&(d.aCommonPreceding=u,d.bCommonPreceding=f),d.nCommonFollowing=S,0!==S&&(d.aCommonFollowing=$+1,d.bCommonFollowing=x+1);const h=j+1,b=x+S+1;return d.nChangeFollowing=t-1,t-1==o+c-h-b?(d.aStartFollowing=o,d.bStartFollowing=c):(d.aStartFollowing=h,d.bStartFollowing=b),!0}}}return!1},c=(t,i,o,s,c,a,u,l,f,h,d)=>{const p=c-o,b=c-s-(o-i),m=b-t,y=b+t;let g=e;const w=t<h?t:h;for(let e=0,h=t;e<=w;e+=1,h-=2){const w=0===e||e!==t&&f[e]<g,v=w?f[e]:g,$=w?v:v-1,x=p+$-h,S=r(i,$-1,s,x-1,a),j=$-S;if(g=f[e],f[e]=j,m<=h&&h<=y){const e=(t+(h-b))/2;if(e<=l&&j-1<=u[e]){const e=x-S;if(d.nChangePreceding=t,t===j+e-i-s?(d.aEndPreceding=i,d.bEndPreceding=s):(d.aEndPreceding=j,d.bEndPreceding=e),d.nCommonPreceding=S,0!==S&&(d.aCommonPreceding=j,d.bCommonPreceding=e),d.nChangeFollowing=t-1,1===t)d.nCommonFollowing=0,d.aStartFollowing=o,d.bStartFollowing=c;else{const e=p+v-(w?h-1:h+1),r=n(v,o,e,c,a);d.nCommonFollowing=r,0!==r&&(d.aCommonFollowing=v,d.bCommonFollowing=e);const i=v+r,s=e+r;t-1==o+c-i-s?(d.aStartFollowing=o,d.bStartFollowing=c):(d.aStartFollowing=i,d.bStartFollowing=s)}return!0}}}return!1},a=(e,n,r,u,l,f,h,d,p,b)=>{if(l-u<r-n){if((f=!f)&&1===h.length){const{foundSubsequence:t,isCommon:e}=h[0];h[1]={foundSubsequence:(e,n,r)=>{t(e,r,n)},isCommon:(t,n)=>e(n,t)}}const t=n,e=r;n=u,r=l,u=t,l=e}const{foundSubsequence:m,isCommon:y}=h[f?1:0];((e,n,r,a,u,l,f,h,d)=>{const p=a-n,b=u-r,m=r-n,y=u-a,g=y-m;let w=m,v=m;if(f[0]=n-1,h[0]=r,g%2==0){const t=(e||g)/2,s=(m+y)/2;for(let e=1;e<=s;e+=1)if(w=i(e,r,u,p,l,f,w),e<t)v=o(e,n,a,b,l,h,v);else if(c(e,n,r,a,u,l,f,w,h,v,d))return}else{const t=((e||g)+1)/2,c=(m+y+1)/2;let $=1;for(w=i($,r,u,p,l,f,w),$+=1;$<=c;$+=1)if(v=o($-1,n,a,b,l,h,v),$<t)w=i($,r,u,p,l,f,w);else if(s($,n,r,a,u,l,f,w,h,v,d))return}throw new Error(`${t}: no overlap aStart=${n} aEnd=${r} bStart=${a} bEnd=${u}`)})(e,n,r,u,l,y,d,p,b);const{nChangePreceding:g,aEndPreceding:w,bEndPreceding:v,nCommonPreceding:$,aCommonPreceding:x,bCommonPreceding:S,nCommonFollowing:j,aCommonFollowing:E,bCommonFollowing:O,nChangeFollowing:T,aStartFollowing:k,bStartFollowing:A}=b;n<w&&u<v&&a(g,n,w,u,v,f,h,d,p,b),0!==$&&m($,x,S),0!==j&&m(j,E,O),k<r&&A<l&&a(T,k,r,A,l,f,h,d,p,b)},u=(e,n)=>{if("number"!=typeof n)throw new TypeError(`${t}: ${e} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw new RangeError(`${t}: ${e} value ${n} is not a safe integer`);if(n<0)throw new RangeError(`${t}: ${e} value ${n} is a negative integer`)},l=(e,n)=>{const r=typeof n;if("function"!==r)throw new TypeError(`${t}: ${e} typeof ${r} is not a function`)};return tr}());function nr(t,e,n,r,i,o){return 0!==t.length?n(`${r} ${function(t,e){return t.replace(/\s+$/,(t=>e(t)))}(t,i)}`):" "!==r?n(r):e&&0!==o.length?n(`${r} ${o}`):""}function rr(t,e,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return nr(t,e,n,r,i,o)}function ir(t,e,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return nr(t,e,n,r,i,o)}function or(t,e,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return nr(t,e,n,r,i,o)}function sr(t,e,n,r,{patchColor:i}){return i(`@@ -${t+1},${e-t} +${n+1},${r-n} @@`)}var cr=t=>t;function ar(t={}){return{aAnnotation:"Expected",aColor:H.green,aIndicator:"-",bAnnotation:"Received",bColor:H.red,bIndicator:"+",changeColor:H.inverse,changeLineTrailingSpaceColor:cr,commonColor:H.dim,commonIndicator:" ",commonLineTrailingSpaceColor:cr,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:H.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:cr,...t,compareKeys:(n=t.compareKeys,n&&"function"==typeof n?n:void 0),contextLines:(e=t.contextLines,"number"==typeof e&&Number.isSafeInteger(e)&&e>=0?e:5)};var e,n}function ur(t){return 1===t.length&&0===t[0].length}function lr(t,e,n){return function({aAnnotation:t,aColor:e,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:o,includeChangeCounts:s,omitAnnotationLines:c},a){if(c)return"";let u="",l="";if(s){const e=String(a.a),i=String(a.b),s=r.length-t.length,c=" ".repeat(Math.max(0,s)),f=" ".repeat(Math.max(0,-s)),h=i.length-e.length;u=`${c} ${n} ${" ".repeat(Math.max(0,h))}${e}`,l=`${f} ${o} ${" ".repeat(Math.max(0,-h))}${i}`}const f=`${o} ${r}${l}`;return`${e(`${n} ${t}${u}`)}\n${i(f)}\n\n`}(n,function(t){let e=0,n=0;return t.forEach((t=>{switch(t[0]){case Ln:e+=1;break;case 1:n+=1}})),{a:e,b:n}}(t))+(n.expand?function(t,e){return t.map(((t,n,r)=>{const i=t[1],o=0===n||n===r.length-1;switch(t[0]){case Ln:return rr(i,o,e);case 1:return ir(i,o,e);default:return or(i,o,e)}})).join("\n")}(t,n):function(t,e){const n=t.length,r=e.contextLines,i=r+r;let o=n,s=!1,c=0,a=0;for(;a!==n;){const e=a;for(;a!==n&&0===t[a][0];)a+=1;if(e!==a)if(0===e)a>r&&(o-=a-r,s=!0);else if(a===n){const t=a-e;t>r&&(o-=t-r,s=!0)}else{const t=a-e;t>i&&(o-=t-i,c+=1)}for(;a!==n&&0!==t[a][0];)a+=1}const u=0!==c||s;0!==c?o+=c+1:s&&(o+=1);const l=o-1,f=[];let h=0;u&&f.push("");let d=0,p=0,b=0,m=0;const y=t=>{const n=f.length;f.push(or(t,0===n||n===l,e)),b+=1,m+=1},g=t=>{const n=f.length;f.push(rr(t,0===n||n===l,e)),b+=1},w=t=>{const n=f.length;f.push(ir(t,0===n||n===l,e)),m+=1};for(a=0;a!==n;){let o=a;for(;a!==n&&0===t[a][0];)a+=1;if(o!==a)if(0===o){a>r&&(o=a-r,d=o,p=o,b=d,m=p);for(let e=o;e!==a;e+=1)y(t[e][1])}else if(a===n){const e=a-o>r?o+r:a;for(let n=o;n!==e;n+=1)y(t[n][1])}else{const n=a-o;if(n>i){const s=o+r;for(let e=o;e!==s;e+=1)y(t[e][1]);f[h]=sr(d,b,p,m,e),h=f.length,f.push("");const c=n-i;d=b+c,p=m+c,b=d,m=p;for(let e=a-r;e!==a;e+=1)y(t[e][1])}else for(let e=o;e!==a;e+=1)y(t[e][1])}for(;a!==n&&t[a][0]===Ln;)g(t[a][1]),a+=1;for(;a!==n&&1===t[a][0];)w(t[a][1]),a+=1}return u&&(f[h]=sr(d,b,p,m,e)),f.join("\n")}(t,n))+(e?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):"")}function fr(t,e,n){const r=ar(n),[i,o]=hr(ur(t)?[]:t,ur(e)?[]:e,r);return lr(i,o,r)}function hr(t,e,n){const r=(null==n?void 0:n.truncateThreshold)??!1,i=Math.max(Math.floor((null==n?void 0:n.truncateThreshold)??0),0),o=r?Math.min(t.length,i):t.length,s=r?Math.min(e.length,i):e.length,c=o!==t.length||s!==e.length,a=[];let u=0,l=0;for(er(o,s,((n,r)=>t[n]===e[r]),((n,r,i)=>{for(;u!==r;u+=1)a.push(new Fn(Ln,t[u]));for(;l!==i;l+=1)a.push(new Fn(1,e[l]));for(;0!==n;n-=1,u+=1,l+=1)a.push(new Fn(0,e[l]))}));u!==o;u+=1)a.push(new Fn(Ln,t[u]));for(;l!==s;l+=1)a.push(new Fn(1,e[l]));return[a,c]}function dr(t){if(void 0===t)return"undefined";if(null===t)return"null";if(Array.isArray(t))return"array";if("boolean"==typeof t)return"boolean";if("function"==typeof t)return"function";if("number"==typeof t)return"number";if("string"==typeof t)return"string";if("bigint"==typeof t)return"bigint";if("object"==typeof t){if(null!=t){if(t.constructor===RegExp)return"regexp";if(t.constructor===Map)return"map";if(t.constructor===Set)return"set";if(t.constructor===Date)return"date"}return"object"}if("symbol"==typeof t)return"symbol";throw new Error(`value of unknown type: ${t}`)}function pr(t){return t.includes("\r\n")?"\r\n":"\n"}var br=class{constructor(t,e){b(this,"op"),b(this,"line"),b(this,"lines"),b(this,"changeColor"),this.op=t,this.line=[],this.lines=[],this.changeColor=e}pushSubstring(t){this.pushDiff(new Fn(this.op,t))}pushLine(){var t,e,n;this.lines.push(1!==this.line.length?new Fn(this.op,(t=this.op,e=this.line,n=this.changeColor,e.reduce(((e,r)=>e+(0===r[0]?r[1]:r[0]===t&&0!==r[1].length?n(r[1]):"")),""))):this.line[0][0]===this.op?this.line[0]:new Fn(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(t){this.line.push(t)}align(t){const e=t[1];if(e.includes("\n")){const t=e.split("\n"),n=t.length-1;t.forEach(((t,e)=>{e<n?(this.pushSubstring(t),this.pushLine()):0!==t.length&&this.pushSubstring(t)}))}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}},mr=class{constructor(t,e){b(this,"deleteBuffer"),b(this,"insertBuffer"),b(this,"lines"),this.deleteBuffer=t,this.insertBuffer=e,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){const e=0===t[1].length;e&&!this.deleteBuffer.isLineEmpty()||this.deleteBuffer.pushDiff(t),e&&!this.insertBuffer.isLineEmpty()||this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){const e=t[0],n=t[1];if(n.includes("\n")){const t=n.split("\n"),r=t.length-1;t.forEach(((t,n)=>{if(0===n){const n=new Fn(e,t);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new Fn(e,t)):0!==t.length&&this.pushDiffChangeLines(new Fn(e,t))}))}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};function yr(t,e,n){if(t!==e&&0!==t.length&&0!==e.length){const r=t.includes("\n")||e.includes("\n"),[i,o]=gr(r?`${t}\n`:t,r?`${e}\n`:e,!0,n);if(function(t,e){if(e){const e=t.length-1;return t.some(((t,n)=>0===t[0]&&(n!==e||"\n"!==t[1])))}return t.some((t=>0===t[0]))}(i,r)){const t=ar(n),e=function(t,e){const n=new br(Ln,e),r=new br(1,e),i=new mr(n,r);return t.forEach((t=>{switch(t[0]){case Ln:n.align(t);break;case 1:r.align(t);break;default:i.align(t)}})),i.getLines()}(i,t.changeColor);return lr(e,o,t)}}return fr(t.split("\n"),e.split("\n"),n)}function gr(t,e,n,r){const[i,o]=function(t,e,n){const r=(null==n?void 0:n.truncateThreshold)??!1,i=Math.max(Math.floor((null==n?void 0:n.truncateThreshold)??0),0);let o=t.length,s=e.length;if(r){const n=t.includes("\n"),r=e.includes("\n"),c=pr(t),a=pr(e),u=n?`${t.split(c,i).join(c)}\n`:t,l=r?`${e.split(a,i).join(a)}\n`:e;o=u.length,s=l.length}const c=o!==t.length||s!==e.length;let a=0,u=0;const l=[];return er(o,s,((n,r)=>t[n]===e[r]),((n,r,i)=>{a!==r&&l.push(new Fn(Ln,t.slice(a,r))),u!==i&&l.push(new Fn(1,e.slice(u,i))),a=r+n,u=i+n,l.push(new Fn(0,e.slice(i,u)))})),a!==o&&l.push(new Fn(Ln,t.slice(a))),u!==s&&l.push(new Fn(1,e.slice(u))),[l,c]}(t,e,r);return n&&Wn(i),[i,o]}function wr(t,e){const{commonColor:n}=ar(e);return n(t)}var{AsymmetricMatcher:vr,DOMCollection:$r,DOMElement:xr,Immutable:Sr,ReactElement:jr,ReactTestComponent:Er}=de,Or=[Er,jr,xr,$r,Sr,vr,de.Error],Tr={plugins:Or},kr={callToJSON:!1,maxDepth:8,plugins:Or};function Ar(t,e,n){if(Object.is(t,e))return"";const r=dr(t);let i=r,o=!1;if("object"===r&&"function"==typeof t.asymmetricMatch){if(t.$$typeof!==Symbol.for("jest.asymmetricMatcher"))return;if("function"!=typeof t.getExpectedType)return;i=t.getExpectedType(),o="string"===i}if(i!==dr(e)){let r=function(t){return t.length<=d?t:`${t.slice(0,d)}...`};const{aAnnotation:i,aColor:o,aIndicator:s,bAnnotation:c,bColor:a,bIndicator:u}=ar(n),l=Ir(kr,n);let f=he(t,l),h=he(e,l);const d=1e5;f=r(f),h=r(h);return`${`${o(`${s} ${i}:`)} \n${f}`}\n\n${`${a(`${u} ${c}:`)} \n${h}`}`}if(!o)switch(r){case"string":return fr(t.split("\n"),e.split("\n"),n);case"boolean":case"number":return function(t,e,n){const r=he(t,Tr),i=he(e,Tr);return r===i?"":fr(r.split("\n"),i.split("\n"),n)}(t,e,n);case"map":return Cr(_r(t),_r(e),n);case"set":return Cr(Mr(t),Mr(e),n);default:return Cr(t,e,n)}}function _r(t){return new Map(Array.from(t.entries()).sort())}function Mr(t){return new Set(Array.from(t.values()).sort())}function Cr(t,e,n){let r,i=!1;try{r=Nr(t,e,Ir(Tr,n),n)}catch{i=!0}const o=wr(Qn,n);if(void 0===r||r===o){r=Nr(t,e,Ir(kr,n),n),r===o||i||(r=`${wr("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${r}`)}return r}function Ir(t,e){const{compareKeys:n,printBasicPrototype:r}=ar(e);return{...t,compareKeys:n,printBasicPrototype:r}}function Nr(t,e,n,r){const i={...n,indent:0},o=he(t,i),s=he(e,i);if(o===s)return wr(Qn,r);{const i=he(t,n),c=he(e,n);return function(t,e,n,r,i){if(ur(t)&&ur(n)&&(t=[],n=[]),ur(e)&&ur(r)&&(e=[],r=[]),t.length!==n.length||e.length!==r.length)return fr(t,e,i);const[o,s]=hr(n,r,i);let c=0,a=0;return o.forEach((n=>{switch(n[0]){case Ln:n[1]=t[c],c+=1;break;case 1:n[1]=e[a],a+=1;break;default:n[1]=e[a],c+=1,a+=1}})),lr(o,s,ar(i))}(i.split("\n"),c.split("\n"),o.split("\n"),s.split("\n"),r)}}function Pr(t){return"Object"===un(t)&&"function"==typeof t.asymmetricMatch}function Rr(t,e){const n=un(t);return n===un(e)&&("Object"===n||"Array"===n)}function Br(t,e,n){const{aAnnotation:r,bAnnotation:i}=ar(n);if("string"==typeof e&&"string"==typeof t&&e.length>0&&t.length>0&&e.length<=2e4&&t.length<=2e4&&e!==t){if(e.includes("\n")||t.includes("\n"))return yr(e,t,n);const[c]=gr(e,t,!0),a=c.some((t=>0===t[0])),u=function(...t){const e=t.reduce(((t,e)=>e.length>t?e.length:t),0);return t=>`${t}: ${" ".repeat(e-t.length)}`}(r,i);return`${u(r)+(s=qr(c,Ln,a),H.green(Fr(tn(s))))}\n${u(i)+(o=qr(c,1,a),H.red(Fr(tn(o))))}`}var o,s;const c=pn(e,{forceWritable:!0}),a=pn(t,{forceWritable:!0}),{replacedExpected:u,replacedActual:l}=Dr(a,c);return Ar(u,l,n)}function Dr(t,e,n=new WeakSet,r=new WeakSet){return t instanceof Error&&e instanceof Error&&void 0!==t.cause&&void 0===e.cause?(delete t.cause,{replacedActual:t,replacedExpected:e}):Rr(t,e)?(n.has(t)||r.has(e)||(n.add(t),r.add(e),ln(e).forEach((i=>{const o=e[i],s=t[i];if(Pr(o))o.asymmetricMatch(s)&&(t[i]=o);else if(Pr(s))s.asymmetricMatch(o)&&(e[i]=s);else if(Rr(s,o)){const c=Dr(s,o,n,r);t[i]=c.replacedActual,e[i]=c.replacedExpected}}))),{replacedActual:t,replacedExpected:e}):{replacedActual:t,replacedExpected:e}}var Lr="·";function Fr(t){return t.replace(/\s+$/gm,(t=>Lr.repeat(t.length)))}function qr(t,e,n){return t.reduce(((t,r)=>t+(0===r[0]?r[1]:r[0]===e?n?H.inverse(r[1]):r[1]:"")),"")}function Jr(t,e){if(!t)throw new Error(e)}function Ur(t,e){return typeof e===t}function Wr(t,e,n){Object.defineProperty(t,e,n)}function Hr(t,e,n){Object.defineProperty(t,e,{value:n})}m(),m();var Xr=Symbol.for("tinyspy:spy"),zr=new Set,Vr=t=>t[Xr]||(t=>(Wr(t,Xr,{value:{reset:()=>(t=>{t.called=!1,t.callCount=0,t.calls=[],t.results=[],t.resolves=[],t.next=[]})(t[Xr])}}),t[Xr]))(t);function Kr(t){Jr(Ur("function",t)||Ur("undefined",t),"cannot spy on a non-function value");let e=function(...t){let n=Vr(e);n.called=!0,n.callCount++,n.calls.push(t);let r=n.next.shift();if(r){n.results.push(r);let[t,e]=r;if("ok"===t)return e;throw e}let i,o="ok",s=n.results.length;if(n.impl)try{i=new.target?Reflect.construct(n.impl,t,new.target):n.impl.apply(this,t),o="ok"}catch(t){throw i=t,o="error",n.results.push([o,t]),t}let c=[o,i];return function(t){return t instanceof Promise}(i)&&i.then((t=>n.resolves[s]=["ok",t]),(t=>n.resolves[s]=["error",t])),n.results.push(c),i};Hr(e,"_isMockFunction",!0),Hr(e,"length",t?t.length:0),Hr(e,"name",t&&t.name||"spy");let n=Vr(e);return n.reset(),n.impl=t,e}var Gr=(t,e)=>Object.getOwnPropertyDescriptor(t,e),Zr=(t,e)=>{null!=e&&"function"==typeof e&&null!=e.prototype&&Object.setPrototypeOf(t.prototype,e.prototype)};function Yr(t,e,n){Jr(!Ur("undefined",t),"spyOn could not find an object to spy upon"),Jr(Ur("object",t)||Ur("function",t),"cannot spyOn on a primitive value");let[r,i]=(()=>{if(!Ur("object",e))return[e,"value"];if("getter"in e&&"setter"in e)throw new Error("cannot spy on both getter and setter");if("getter"in e)return[e.getter,"get"];if("setter"in e)return[e.setter,"set"];throw new Error("specify getter or setter to spy on")})(),o=Gr(t,r),s=Object.getPrototypeOf(t),c=s&&Gr(s,r),a=o||c;Jr(a||r in t,`${String(r)} does not exist`);let u,l=!1;"value"===i&&a&&!a.value&&a.get&&(i="get",l=!0,n=a.get()),u=a?a[i]:"value"!==i?()=>t[r]:t[r];let f=e=>{let{value:n,...o}=a||{configurable:!0,writable:!0};"value"!==i&&delete o.writable,o[i]=e,Wr(t,r,o)};n||(n=u);let h=Kr(n);"value"===i&&Zr(h,u);let d=h[Xr];return Hr(d,"restore",(()=>a?Wr(t,r,a):f(u))),Hr(d,"getOriginal",(()=>l?u():u)),Hr(d,"willCall",(t=>(d.impl=t,h))),f(l?()=>(Zr(h,n),h):h),zr.add(h),h}var Qr=new Set;function ti(t){return"function"==typeof t&&"_isMockFunction"in t&&t._isMockFunction}function ei(t,e,n){return ri(Yr(t,n?{[{get:"getter",set:"setter"}[n]]:e}:e))}var ni=0;function ri(t){const e=t;let n,r=[],i=[],o=[];const s=Vr(t),c={get calls(){return s.calls},get contexts(){return i},get instances(){return r},get invocationCallOrder(){return o},get results(){return s.results.map((([t,e])=>({type:"error"===t?"throw":"return",value:e})))},get settledResults(){return s.resolves.map((([t,e])=>({type:"error"===t?"rejected":"fulfilled",value:e})))},get lastCall(){return s.calls[s.calls.length-1]}};let a=[],u=!1;function l(...t){r.push(this),i.push(this),o.push(++ni);return(u?n:a.shift()||n||s.getOriginal()||(()=>{})).apply(this,t)}let f=e.name;return e.getMockName=()=>f||"vi.fn()",e.mockName=t=>(f=t,e),e.mockClear=()=>(s.reset(),r=[],i=[],o=[],e),e.mockReset=()=>(e.mockClear(),n=void 0,a=[],e),e.mockRestore=()=>(e.mockReset(),s.restore(),e),e.getMockImplementation=()=>u?n:a.at(0)||n,e.mockImplementation=t=>(n=t,s.willCall(l),e),e.mockImplementationOnce=t=>(a.push(t),e),e.withImplementation=function(t,r){const i=n;n=t,s.willCall(l),u=!0;const o=()=>{n=i,u=!1},c=r();return c instanceof Promise?c.then((()=>(o(),e))):(o(),e)},e.mockReturnThis=()=>e.mockImplementation((function(){return this})),e.mockReturnValue=t=>e.mockImplementation((()=>t)),e.mockReturnValueOnce=t=>e.mockImplementationOnce((()=>t)),e.mockResolvedValue=t=>e.mockImplementation((()=>Promise.resolve(t))),e.mockResolvedValueOnce=t=>e.mockImplementationOnce((()=>Promise.resolve(t))),e.mockRejectedValue=t=>e.mockImplementation((()=>Promise.reject(t))),e.mockRejectedValueOnce=t=>e.mockImplementationOnce((()=>Promise.reject(t))),Object.defineProperty(e,"mock",{get:()=>c}),s.willCall(l),Qr.add(e),e}function ii(t){const e=ri(Yr({spy:t||function(){}},"spy"));return t&&e.mockImplementation(t),e}m();var oi=Object.getPrototypeOf({});function si(t){return t instanceof Error?`<unserializable>: ${t.message}`:"string"==typeof t?`<unserializable>: ${t}`:"<unserializable>"}function ci(t,e=new WeakMap){if(!t||"string"==typeof t)return t;if("function"==typeof t)return`Function<${t.name||"anonymous"}>`;if("symbol"==typeof t)return t.toString();if("object"!=typeof t)return t;if((n=t)&&(n["@@__IMMUTABLE_ITERABLE__@@"]||n["@@__IMMUTABLE_RECORD__@@"]))return ci(t.toJSON(),e);var n;if(t instanceof Promise||t.constructor&&"AsyncFunction"===t.constructor.prototype)return"Promise";if("undefined"!=typeof Element&&t instanceof Element)return t.tagName;if("function"==typeof t.asymmetricMatch)return`${t.toString()} ${nn(t.sample)}`;if("function"==typeof t.toJSON)return ci(t.toJSON(),e);if(e.has(t))return e.get(t);if(Array.isArray(t)){const n=new Array(t.length);return e.set(t,n),t.forEach(((t,r)=>{try{n[r]=ci(t,e)}catch(t){n[r]=si(t)}})),n}{const n=Object.create(null);e.set(t,n);let r=t;for(;r&&r!==oi;)Object.getOwnPropertyNames(r).forEach((r=>{if(!(r in n))try{n[r]=ci(t[r],e)}catch(t){delete n[r],n[r]=si(t)}})),r=Object.getPrototypeOf(r);return n}}function ai(t,e,n=new WeakSet){if(!t||"object"!=typeof t)return{message:String(t)};const r=t;r.stack&&(r.stackStr=String(r.stack)),r.name&&(r.nameStr=String(r.name)),(r.showDiff||void 0===r.showDiff&&void 0!==r.expected&&void 0!==r.actual)&&(r.diff=Br(r.actual,r.expected,{...e,...r.diffOptions})),"string"!=typeof r.expected&&(r.expected=tn(r.expected,10)),"string"!=typeof r.actual&&(r.actual=tn(r.actual,10));try{"string"==typeof r.message&&(r.message=r.message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,""))}catch{}try{n.has(r)||"object"!=typeof r.cause||(n.add(r),r.cause=ai(r.cause,e,n))}catch{}try{return ci(r)}catch(t){return ci(new Error(`Failed to fully serialize error: ${null==t?void 0:t.message}\nInner error message: ${null==r?void 0:r.message}`))}}m();var ui,li,fi=Object.defineProperty,hi=Object.getOwnPropertyNames,di=(t,e)=>fi(t,"name",{value:e,configurable:!0}),pi=(t,e)=>{for(var n in e)fi(t,n,{get:e[n],enumerable:!0})},bi=(ui={"(disabled):util"(){}},function(){return li||(0,ui[hi(ui)[0]])((li={exports:{}}).exports,li),li.exports}),mi={};pi(mi,{addChainableMethod:()=>Ss,addLengthGuard:()=>ls,addMethod:()=>bs,addProperty:()=>as,checkError:()=>yi,compareByInspect:()=>Es,eql:()=>Do,expectTypes:()=>Mi,flag:()=>Ei,getActual:()=>Ci,getMessage:()=>Mo,getName:()=>Ms,getOperator:()=>_s,getOwnEnumerableProperties:()=>Ts,getOwnEnumerablePropertySymbols:()=>Os,getPathInfo:()=>os,hasProperty:()=>ns,inspect:()=>Ao,isNaN:()=>ks,isNumeric:()=>Is,isProxyEnabled:()=>cs,isRegExp:()=>Cs,objDisplay:()=>_o,overwriteChainableMethod:()=>js,overwriteMethod:()=>ys,overwriteProperty:()=>ms,proxify:()=>ds,test:()=>Oi,transferFlags:()=>Co,type:()=>Ti});var yi={};function gi(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function wi(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function vi(t,e){return gi(e)&&t===e}function $i(t,e){return gi(e)?t.constructor===e.constructor||t instanceof e.constructor:!("object"!=typeof e&&"function"!=typeof e||!e.prototype)&&(t.constructor===e||t instanceof e)}function xi(t,e){const n="string"==typeof t?t:t.message;return wi(e)?e.test(n):"string"==typeof e&&-1!==n.indexOf(e)}function Si(t){let e=t;if(gi(t))e=t.constructor.name;else if("function"==typeof t&&(e=t.name,""===e)){e=(new t).name||e}return e}function ji(t){let e="";return t&&t.message?e=t.message:"string"==typeof t&&(e=t),e}function Ei(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));if(3!==arguments.length)return r[e];r[e]=n}function Oi(t,e){var n=Ei(t,"negate"),r=e[0];return n?!r:r}function Ti(t){if(void 0===t)return"undefined";if(null===t)return"null";const e=t[Symbol.toStringTag];if("string"==typeof e)return e;return Object.prototype.toString.call(t).slice(8,-1)}pi(yi,{compatibleConstructor:()=>$i,compatibleInstance:()=>vi,compatibleMessage:()=>xi,getConstructorName:()=>Si,getMessage:()=>ji}),di(gi,"isErrorInstance"),di(wi,"isRegExp"),di(vi,"compatibleInstance"),di($i,"compatibleConstructor"),di(xi,"compatibleMessage"),di(Si,"getConstructorName"),di(ji,"getMessage"),di(Ei,"flag"),di(Oi,"test"),di(Ti,"type");var ki,Ai="captureStackTrace"in Error,_i=(ki=class extends Error{constructor(t="Unspecified AssertionError",e,n){super(t),b(this,"message"),this.message=t,Ai&&Error.captureStackTrace(this,n||ki);for(const t in e)t in this||(this[t]=e[t])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:!1!==t?this.stack:void 0}}},di(ki,"AssertionError"),ki);function Mi(t,e){var n=Ei(t,"message"),r=Ei(t,"ssfi");n=n?n+": ":"",t=Ei(t,"object"),(e=e.map((function(t){return t.toLowerCase()}))).sort();var i=e.map((function(t,n){var r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a";return(e.length>1&&n===e.length-1?"or ":"")+r+" "+t})).join(", "),o=Ti(t).toLowerCase();if(!e.some((function(t){return o===t})))throw new _i(n+"object tested must be "+i+", but "+o+" given",void 0,r)}function Ci(t,e){return e.length>4?e[4]:t._obj}di(Mi,"expectTypes"),di(Ci,"getActual");var Ii={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"]},Ni={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Pi="…";function Ri(t,e){const n=Ii[Ni[e]]||Ii[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function Bi({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:c=[],truncate:a=1/0,stylize:u=String}={},l){const f={showHidden:Boolean(t),depth:Number(e),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(i),maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(a),seen:c,inspect:l,stylize:u};return f.colors&&(f.stylize=Ri),f}function Di(t){return t>="\ud800"&&t<="\udbff"}function Li(t,e,n=Pi){t=String(t);const r=n.length,i=t.length;if(r>e&&i>r)return n;if(i>e&&i>r){let i=e-r;return i>0&&Di(t[i-1])&&(i-=1),`${t.slice(0,i)}${n}`}return t}function Fi(t,e,n,r=", "){n=n||e.inspect;const i=t.length;if(0===i)return"";const o=e.truncate;let s="",c="",a="";for(let u=0;u<i;u+=1){const i=u+1===t.length,l=u+2===t.length;a=`${Pi}(${t.length-u})`;const f=t[u];e.truncate=o-s.length-(i?0:r.length);const h=c||n(f,e)+(i?"":r),d=s.length+h.length,p=d+a.length;if(i&&d>o&&s.length+a.length<=o)break;if(!i&&!l&&p>o)break;if(c=i?"":n(t[u+1],e)+(l?"":r),!i&&l&&p>o&&d+c.length>o)break;if(s+=h,!i&&!l&&d+c.length>=o){a=`${Pi}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function qi(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ji([t,e],n){return n.truncate-=2,"string"==typeof t?t=qi(t):"number"!=typeof t&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,`${t}: ${e=n.inspect(e,n)}`}function Ui(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=Fi(t,e);e.truncate-=r.length;let i="";return n.length&&(i=Fi(n.map((e=>[e,t[e]])),e,Ji)),`[ ${r}${i?`, ${i}`:""} ]`}di(Ri,"colorise"),di(Bi,"normaliseOptions"),di(Di,"isHighSurrogate"),di(Li,"truncate"),di(Fi,"inspectList"),di(qi,"quoteComplexKey"),di(Ji,"inspectProperty"),di(Ui,"inspectArray");var Wi=di((t=>"function"==typeof Buffer&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name),"getArrayName");function Hi(t,e){const n=Wi(t);e.truncate-=n.length+4;const r=Object.keys(t).slice(t.length);if(!t.length&&!r.length)return`${n}[]`;let i="";for(let n=0;n<t.length;n++){const r=`${e.stylize(Li(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){i+=`${Pi}(${t.length-t[n]+1})`;break}i+=r}let o="";return r.length&&(o=Fi(r.map((e=>[e,t[e]])),e,Ji)),`${n}[ ${i}${o?`, ${o}`:""} ]`}function Xi(t,e){const n=t.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),i=r[0];return e.stylize(`${i}T${Li(r[1],e.truncate-i.length-1)}`,"date")}function zi(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${Li(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function Vi([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}function Ki(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}function Gi(t,e){return t.size-1<=0?"Map{}":(e.truncate-=7,`Map{ ${Fi(Ki(t),e,Vi)} }`)}di(Hi,"inspectTypedArray"),di(Xi,"inspectDate"),di(zi,"inspectFunction"),di(Vi,"inspectMapEntry"),di(Ki,"mapToEntries"),di(Gi,"inspectMap");var Zi=Number.isNaN||(t=>t!=t);function Yi(t,e){return Zi(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):0===t?e.stylize(1/t==1/0?"+0":"-0","number"):e.stylize(Li(String(t),e.truncate),"number")}function Qi(t,e){let n=Li(t.toString(),e.truncate-1);return n!==Pi&&(n+="n"),e.stylize(n,"bigint")}function to(t,e){const n=t.toString().split("/")[2],r=e.truncate-(2+n.length),i=t.source;return e.stylize(`/${Li(i,r)}/${n}`,"regexp")}function eo(t){const e=[];return t.forEach((t=>{e.push(t)})),e}function no(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${Fi(eo(t),e)} }`)}di(Yi,"inspectNumber"),di(Qi,"inspectBigInt"),di(to,"inspectRegExp"),di(eo,"arrayFromSet"),di(no,"inspectSet");var ro=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),io={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function oo(t){return io[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function so(t,e){return ro.test(t)&&(t=t.replace(ro,oo)),e.stylize(`'${Li(t,e.truncate-2)}'`,"string")}function co(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}di(oo,"escape"),di(so,"inspectString"),di(co,"inspectSymbol");var ao=di((()=>"Promise{…}"),"getPromiseValue");try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(ao=di(((r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`}),"getPromiseValue"))}catch(t){}var uo=ao;function lo(t,e){const n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(0===n.length&&0===r.length)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const i=Fi(n.map((e=>[e,t[e]])),e,Ji),o=Fi(r.map((e=>[e,t[e]])),e,Ji);e.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}di(lo,"inspectObject");var fo=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;function ho(t,e){let n="";return fo&&fo in t&&(n=t[fo]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${lo(t,e)}`}function po(t,e){return 0===t.length?"Arguments[]":(e.truncate-=13,`Arguments[ ${Fi(t,e)} ]`)}di(ho,"inspectClass"),di(po,"inspectArguments");var bo=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function mo(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===bo.indexOf(t))),r=t.name;e.truncate-=r.length;let i="";if("string"==typeof t.message?i=Li(t.message,e.truncate):n.unshift("message"),i=i?`: ${i}`:"",e.truncate-=i.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const o=Fi(n.map((e=>[e,t[e]])),e,Ji);return`${r}${i}${o?` { ${o} }`:""}`}function yo([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function go(t,e){return Fi(t,e,wo,"\n")}function wo(t,e){const n=t.getAttributeNames(),r=t.tagName.toLowerCase(),i=e.stylize(`<${r}`,"special"),o=e.stylize(">","special"),s=e.stylize(`</${r}>`,"special");e.truncate-=2*r.length+5;let c="";n.length>0&&(c+=" ",c+=Fi(n.map((e=>[e,t.getAttribute(e)])),e,yo," ")),e.truncate-=c.length;const a=e.truncate;let u=go(t.children,e);return u&&u.length>a&&(u=`${Pi}(${t.children.length})`),`${i}${c}${o}${u}${s}`}di(mo,"inspectObject"),di(yo,"inspectAttribute"),di(go,"inspectHTMLCollection"),di(wo,"inspectHTML");var vo="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",$o=!1;try{const t=bi();$o=!!t.inspect&&t.inspect.custom}catch(t){$o=!1}var xo=new WeakMap,So={},jo={undefined:(t,e)=>e.stylize("undefined","undefined"),null:(t,e)=>e.stylize("null","null"),boolean:(t,e)=>e.stylize(String(t),"boolean"),Boolean:(t,e)=>e.stylize(String(t),"boolean"),number:Yi,Number:Yi,bigint:Qi,BigInt:Qi,string:so,String:so,function:zi,Function:zi,symbol:co,Symbol:co,Array:Ui,Date:Xi,Map:Gi,Set:no,RegExp:to,Promise:uo,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:po,Int8Array:Hi,Uint8Array:Hi,Uint8ClampedArray:Hi,Int16Array:Hi,Uint16Array:Hi,Int32Array:Hi,Uint32Array:Hi,Float32Array:Hi,Float64Array:Hi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:mo,HTMLCollection:go,NodeList:go},Eo=di(((t,e,n)=>vo in t&&"function"==typeof t[vo]?t[vo](e):$o&&$o in t&&"function"==typeof t[$o]?t[$o](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&xo.has(t.constructor)?xo.get(t.constructor)(t,e):So[n]?So[n](t,e):""),"inspectCustom"),Oo=Object.prototype.toString;function To(t,e={}){const n=Bi(e,To),{customInspect:r}=n;let i=null===t?"null":typeof t;if("object"===i&&(i=Oo.call(t).slice(8,-1)),i in jo)return jo[i](t,n);if(r&&t){const e=Eo(t,n,i);if(e)return"string"==typeof e?e:To(e,n)}const o=!!t&&Object.getPrototypeOf(t);return o===Object.prototype||null===o?lo(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?wo(t,n):"constructor"in t?t.constructor!==Object?ho(t,n):lo(t,n):t===Object(t)?lo(t,n):n.stylize(String(t),i)}di(To,"inspect");var ko={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Ao(t,e,n,r){return To(t,{colors:r,depth:void 0===n?2:n,showHidden:e,truncate:ko.truncateThreshold?ko.truncateThreshold:1/0})}function _o(t){var e=Ao(t),n=Object.prototype.toString.call(t);if(ko.truncateThreshold&&e.length>=ko.truncateThreshold){if("[object Function]"===n)return t.name&&""!==t.name?"[Function: "+t.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+t.length+") ]";if("[object Object]"===n){var r=Object.keys(t);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}return e}return e}function Mo(t,e){var n=Ei(t,"negate"),r=Ei(t,"object"),i=e[3],o=Ci(t,e),s=n?e[2]:e[1],c=Ei(t,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,(function(){return _o(r)})).replace(/#\{act\}/g,(function(){return _o(o)})).replace(/#\{exp\}/g,(function(){return _o(i)})),c?c+": "+s:s}function Co(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));for(var i in e.__flags||(e.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==i&&"ssfi"!==i&&"lockSsfi"!==i&&"message"!=i)&&(e.__flags[i]=r[i])}function Io(t){if(void 0===t)return"undefined";if(null===t)return"null";const e=t[Symbol.toStringTag];if("string"==typeof e)return e;return Object.prototype.toString.call(t).slice(8,-1)}function No(){this._key="chai/deep-eql__"+Math.random()+Date.now()}di(Ao,"inspect"),di(_o,"objDisplay"),di(Mo,"getMessage"),di(Co,"transferFlags"),di(Io,"type"),di(No,"FakeMap"),No.prototype={get:di((function(t){return t[this._key]}),"get"),set:di((function(t,e){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:e,configurable:!0})}),"set")};var Po="function"==typeof WeakMap?WeakMap:No;function Ro(t,e,n){if(!n||ts(t)||ts(e))return null;var r=n.get(t);if(r){var i=r.get(e);if("boolean"==typeof i)return i}return null}function Bo(t,e,n,r){if(n&&!ts(t)&&!ts(e)){var i=n.get(t);i?i.set(e,r):((i=new Po).set(e,r),n.set(t,i))}}di(Ro,"memoizeCompare"),di(Bo,"memoizeSet");var Do=Lo;function Lo(t,e,n){if(n&&n.comparator)return qo(t,e,n);var r=Fo(t,e);return null!==r?r:qo(t,e,n)}function Fo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e||!ts(t)&&!ts(e)&&null}function qo(t,e,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new Po);var r=n&&n.comparator,i=Ro(t,e,n.memoize);if(null!==i)return i;var o=Ro(e,t,n.memoize);if(null!==o)return o;if(r){var s=r(t,e);if(!1===s||!0===s)return Bo(t,e,n.memoize,s),s;var c=Fo(t,e);if(null!==c)return c}var a=Io(t);if(a!==Io(e))return Bo(t,e,n.memoize,!1),!1;Bo(t,e,n.memoize,!0);var u=Jo(t,e,a,n);return Bo(t,e,n.memoize,u),u}function Jo(t,e,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return Lo(t.valueOf(),e.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return t===e;case"Error":return Yo(t,e,["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 Ho(t,e,r);case"RegExp":return Uo(t,e);case"Generator":return Xo(t,e,r);case"DataView":return Ho(new Uint8Array(t.buffer),new Uint8Array(e.buffer),r);case"ArrayBuffer":return Ho(new Uint8Array(t),new Uint8Array(e),r);case"Set":case"Map":return Wo(t,e,r);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return t.equals(e);case"Temporal.Duration":return t.total("nanoseconds")===e.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return t.toString()===e.toString();default:return Qo(t,e,r)}}function Uo(t,e){return t.toString()===e.toString()}function Wo(t,e,n){try{if(t.size!==e.size)return!1;if(0===t.size)return!0}catch(t){return!1}var r=[],i=[];return t.forEach(di((function(t,e){r.push([t,e])}),"gatherEntries")),e.forEach(di((function(t,e){i.push([t,e])}),"gatherEntries")),Ho(r.sort(),i.sort(),n)}function Ho(t,e,n){var r=t.length;if(r!==e.length)return!1;if(0===r)return!0;for(var i=-1;++i<r;)if(!1===Lo(t[i],e[i],n))return!1;return!0}function Xo(t,e,n){return Ho(Ko(t),Ko(e),n)}function zo(t){return"undefined"!=typeof Symbol&&"object"==typeof t&&void 0!==Symbol.iterator&&"function"==typeof t[Symbol.iterator]}function Vo(t){if(zo(t))try{return Ko(t[Symbol.iterator]())}catch(t){return[]}return[]}function Ko(t){for(var e=t.next(),n=[e.value];!1===e.done;)e=t.next(),n.push(e.value);return n}function Go(t){var e=[];for(var n in t)e.push(n);return e}function Zo(t){for(var e=[],n=Object.getOwnPropertySymbols(t),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(t,i).enumerable&&e.push(i)}return e}function Yo(t,e,n,r){var i=n.length;if(0===i)return!0;for(var o=0;o<i;o+=1)if(!1===Lo(t[n[o]],e[n[o]],r))return!1;return!0}function Qo(t,e,n){var r=Go(t),i=Go(e),o=Zo(t),s=Zo(e);if(r=r.concat(o),i=i.concat(s),r.length&&r.length===i.length)return!1!==Ho(es(r).sort(),es(i).sort())&&Yo(t,e,r,n);var c=Vo(t),a=Vo(e);return c.length&&c.length===a.length?(c.sort(),a.sort(),Ho(c,a,n)):0===r.length&&0===c.length&&0===i.length&&0===a.length}function ts(t){return null===t||"object"!=typeof t}function es(t){return t.map(di((function(t){return"symbol"==typeof t?t.toString():t}),"mapSymbol"))}function ns(t,e){return null!=t&&e in Object(t)}function rs(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((t=>{if("constructor"===t||"__proto__"===t||"prototype"===t)return{};const e=/^\[(\d+)\]$/.exec(t);let n=null;return n=e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")},n}))}function is(t,e,n){let r=t,i=null;n=void 0===n?e.length:n;for(let t=0;t<n;t++){const o=e[t];r&&(r=void 0===o.p?r[o.i]:r[o.p],t===n-1&&(i=r))}return i}function os(t,e){const n=rs(e),r=n[n.length-1],i={parent:n.length>1?is(t,n,n.length-1):t,name:r.p||r.i,value:is(t,n)};return i.exists=ns(i.parent,i.name),i}function ss(t,e,n,r){return Ei(this,"ssfi",n||ss),Ei(this,"lockSsfi",r),Ei(this,"object",t),Ei(this,"message",e),Ei(this,"eql",ko.deepEqual||Do),ds(this)}function cs(){return ko.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}function as(t,e,n){n=void 0===n?function(){}:n,Object.defineProperty(t,e,{get:di((function t(){cs()||Ei(this,"lockSsfi")||Ei(this,"ssfi",t);var e=n.call(this);if(void 0!==e)return e;var r=new ss;return Co(this,r),r}),"propertyGetter"),configurable:!0})}di(Lo,"deepEqual"),di(Fo,"simpleEqual"),di(qo,"extensiveDeepEqual"),di(Jo,"extensiveDeepEqualByType"),di(Uo,"regexpEqual"),di(Wo,"entriesEqual"),di(Ho,"iterableEqual"),di(Xo,"generatorEqual"),di(zo,"hasIteratorFunction"),di(Vo,"getIteratorEntries"),di(Ko,"getGeneratorEntries"),di(Go,"getEnumerableKeys"),di(Zo,"getEnumerableSymbols"),di(Yo,"keysEqual"),di(Qo,"objectEqual"),di(ts,"isPrimitive"),di(es,"mapSymbols"),di(ns,"hasProperty"),di(rs,"parsePath"),di(is,"internalGetPathValue"),di(os,"getPathInfo"),di(ss,"Assertion"),Object.defineProperty(ss,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ko.includeStack},set:function(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ko.includeStack=t}}),Object.defineProperty(ss,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ko.showDiff},set:function(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ko.showDiff=t}}),ss.addProperty=function(t,e){as(this.prototype,t,e)},ss.addMethod=function(t,e){bs(this.prototype,t,e)},ss.addChainableMethod=function(t,e,n){Ss(this.prototype,t,e,n)},ss.overwriteProperty=function(t,e){ms(this.prototype,t,e)},ss.overwriteMethod=function(t,e){ys(this.prototype,t,e)},ss.overwriteChainableMethod=function(t,e,n){js(this.prototype,t,e,n)},ss.prototype.assert=function(t,e,n,r,i,o){var s=Oi(this,arguments);if(!1!==o&&(o=!0),void 0===r&&void 0===i&&(o=!1),!0!==ko.showDiff&&(o=!1),!s){e=Mo(this,arguments);var c={actual:Ci(this,arguments),expected:r,showDiff:o},a=_s(this,arguments);throw a&&(c.operator=a),new _i(e,c,ko.includeStack?this.assert:Ei(this,"ssfi"))}},Object.defineProperty(ss.prototype,"_obj",{get:function(){return Ei(this,"object")},set:function(t){Ei(this,"object",t)}}),di(cs,"isProxyEnabled"),di(as,"addProperty");var us=Object.getOwnPropertyDescriptor((function(){}),"length");function ls(t,e,n){return us.configurable?(Object.defineProperty(t,"length",{get:function(){if(n)throw Error("Invalid Chai property: "+e+'.length. Due to a compatibility issue, "length" cannot directly follow "'+e+'". Use "'+e+'.lengthOf" instead.');throw Error("Invalid Chai property: "+e+'.length. See docs for proper usage of "'+e+'".')}}),t):t}function fs(t){var e=Object.getOwnPropertyNames(t);function n(t){-1===e.indexOf(t)&&e.push(t)}di(n,"addProperty");for(var r=Object.getPrototypeOf(t);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return e}di(ls,"addLengthGuard"),di(fs,"getProperties");var hs=["__flags","__methods","_obj","assert"];function ds(t,e){return cs()?new Proxy(t,{get:di((function t(n,r){if("string"==typeof r&&-1===ko.proxyExcludedKeys.indexOf(r)&&!Reflect.has(n,r)){if(e)throw Error("Invalid Chai property: "+e+"."+r+'. See docs for proper usage of "'+e+'".');var i=null,o=4;throw fs(n).forEach((function(t){if(!Object.prototype.hasOwnProperty(t)&&-1===hs.indexOf(t)){var e=ps(r,t,o);e<o&&(i=t,o=e)}})),null!==i?Error("Invalid Chai property: "+r+'. Did you mean "'+i+'"?'):Error("Invalid Chai property: "+r)}return-1!==hs.indexOf(r)||Ei(n,"lockSsfi")||Ei(n,"ssfi",t),Reflect.get(n,r)}),"proxyGetter")}):t}function ps(t,e,n){if(Math.abs(t.length-e.length)>=n)return n;var r=[];for(let n=0;n<=t.length;n++)r[n]=Array(e.length+1).fill(0),r[n][0]=n;for(let t=0;t<e.length;t++)r[0][t]=t;for(let o=1;o<=t.length;o++){var i=t.charCodeAt(o-1);for(let t=1;t<=e.length;t++)Math.abs(o-t)>=n?r[o][t]=n:r[o][t]=Math.min(r[o-1][t]+1,r[o][t-1]+1,r[o-1][t-1]+(i===e.charCodeAt(t-1)?0:1))}return r[t.length][e.length]}function bs(t,e,n){var r=di((function(){Ei(this,"lockSsfi")||Ei(this,"ssfi",r);var t=n.apply(this,arguments);if(void 0!==t)return t;var e=new ss;return Co(this,e),e}),"methodWrapper");ls(r,e,!1),t[e]=ds(r,e)}function ms(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e),i=di((function(){}),"_super");r&&"function"==typeof r.get&&(i=r.get),Object.defineProperty(t,e,{get:di((function t(){cs()||Ei(this,"lockSsfi")||Ei(this,"ssfi",t);var e=Ei(this,"lockSsfi");Ei(this,"lockSsfi",!0);var r=n(i).call(this);if(Ei(this,"lockSsfi",e),void 0!==r)return r;var o=new ss;return Co(this,o),o}),"overwritingPropertyGetter"),configurable:!0})}function ys(t,e,n){var r=t[e],i=di((function(){throw new Error(e+" is not a function")}),"_super");r&&"function"==typeof r&&(i=r);var o=di((function(){Ei(this,"lockSsfi")||Ei(this,"ssfi",o);var t=Ei(this,"lockSsfi");Ei(this,"lockSsfi",!0);var e=n(i).apply(this,arguments);if(Ei(this,"lockSsfi",t),void 0!==e)return e;var r=new ss;return Co(this,r),r}),"overwritingMethodWrapper");ls(o,e,!1),t[e]=ds(o,e)}di(ds,"proxify"),di(ps,"stringDistanceCapped"),di(bs,"addMethod"),di(ms,"overwriteProperty"),di(ys,"overwriteMethod");var gs="function"==typeof Object.setPrototypeOf,ws=di((function(){}),"testFn"),vs=Object.getOwnPropertyNames(ws).filter((function(t){var e=Object.getOwnPropertyDescriptor(ws,t);return"object"!=typeof e||!e.configurable})),$s=Function.prototype.call,xs=Function.prototype.apply;function Ss(t,e,n,r){"function"!=typeof r&&(r=di((function(){}),"chainingBehavior"));var i={method:n,chainingBehavior:r};t.__methods||(t.__methods={}),t.__methods[e]=i,Object.defineProperty(t,e,{get:di((function(){i.chainingBehavior.call(this);var n=di((function(){Ei(this,"lockSsfi")||Ei(this,"ssfi",n);var t=i.method.apply(this,arguments);if(void 0!==t)return t;var e=new ss;return Co(this,e),e}),"chainableMethodWrapper");if(ls(n,e,!0),gs){var r=Object.create(this);r.call=$s,r.apply=xs,Object.setPrototypeOf(n,r)}else{Object.getOwnPropertyNames(t).forEach((function(e){if(-1===vs.indexOf(e)){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r)}}))}return Co(this,n),ds(n)}),"chainableMethodGetter"),configurable:!0})}function js(t,e,n,r){var i=t.__methods[e],o=i.chainingBehavior;i.chainingBehavior=di((function(){var t=r(o).call(this);if(void 0!==t)return t;var e=new ss;return Co(this,e),e}),"overwritingChainableMethodGetter");var s=i.method;i.method=di((function(){var t=n(s).apply(this,arguments);if(void 0!==t)return t;var e=new ss;return Co(this,e),e}),"overwritingChainableMethodWrapper")}function Es(t,e){return Ao(t)<Ao(e)?-1:1}function Os(t){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}function Ts(t){return Object.keys(t).concat(Os(t))}di(Ss,"addChainableMethod"),di(js,"overwriteChainableMethod"),di(Es,"compareByInspect"),di(Os,"getOwnEnumerablePropertySymbols"),di(Ts,"getOwnEnumerableProperties");var ks=Number.isNaN;function As(t){var e=Ti(t);return-1!==["Array","Object","Function"].indexOf(e)}function _s(t,e){var n=Ei(t,"operator"),r=Ei(t,"negate"),i=e[3],o=r?e[2]:e[1];if(n)return n;if("function"==typeof o&&(o=o()),(o=o||"")&&!/\shave\s/.test(o)){var s=As(i);return/\snot\s/.test(o)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}function Ms(t){return t.name}function Cs(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function Is(t){return["Number","BigInt"].includes(Ti(t))}di(As,"isObjectType"),di(_s,"getOperator"),di(Ms,"getName"),di(Cs,"isRegExp"),di(Is,"isNumeric");var{flag:Ns}=mi;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(t){ss.addProperty(t)})),ss.addProperty("not",(function(){Ns(this,"negate",!0)})),ss.addProperty("deep",(function(){Ns(this,"deep",!0)})),ss.addProperty("nested",(function(){Ns(this,"nested",!0)})),ss.addProperty("own",(function(){Ns(this,"own",!0)})),ss.addProperty("ordered",(function(){Ns(this,"ordered",!0)})),ss.addProperty("any",(function(){Ns(this,"any",!0),Ns(this,"all",!1)})),ss.addProperty("all",(function(){Ns(this,"all",!0),Ns(this,"any",!1)}));var Ps={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Rs(t,e){e&&Ns(this,"message",e),t=t.toLowerCase();var n=Ns(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";const i=Ti(n).toLowerCase();Ps.function.includes(t)?this.assert(Ps[t].includes(i),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t):this.assert(t===i,"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t)}function Bs(t,e){return ks(t)&&ks(e)||t===e}function Ds(){Ns(this,"contains",!0)}function Ls(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object"),r=Ti(n).toLowerCase(),i=Ns(this,"message"),o=Ns(this,"negate"),s=Ns(this,"ssfi"),c=Ns(this,"deep"),a=c?"deep ":"",u=c?Ns(this,"eql"):Bs;i=i?i+": ":"";var l=!1;switch(r){case"string":l=-1!==n.indexOf(t);break;case"weakset":if(c)throw new _i(i+"unable to use .deep.include with WeakSet",void 0,s);l=n.has(t);break;case"map":n.forEach((function(e){l=l||u(e,t)}));break;case"set":c?n.forEach((function(e){l=l||u(e,t)})):l=n.has(t);break;case"array":l=c?n.some((function(e){return u(e,t)})):-1!==n.indexOf(t);break;default:if(t!==Object(t))throw new _i(i+"the given combination of arguments ("+r+" and "+Ti(t).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 "+Ti(t).toLowerCase(),void 0,s);var f=Object.keys(t),h=null,d=0;if(f.forEach((function(e){var r=new ss(n);if(Co(this,r,!0),Ns(r,"lockSsfi",!0),o&&1!==f.length)try{r.property(e,t[e])}catch(t){if(!yi.compatibleConstructor(t,_i))throw t;null===h&&(h=t),d++}else r.property(e,t[e])}),this),o&&f.length>1&&d===f.length)throw h;return}this.assert(l,"expected #{this} to "+a+"include "+Ao(t),"expected #{this} to not "+a+"include "+Ao(t))}function Fs(){var t=Ns(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist")}function qs(){var t=Ti(Ns(this,"object"));this.assert("Arguments"===t,"expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}function Js(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object");if(Ns(this,"deep")){var r=Ns(this,"lockSsfi");Ns(this,"lockSsfi",!0),this.eql(t),Ns(this,"lockSsfi",r)}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}function Us(t,e){e&&Ns(this,"message",e);var n=Ns(this,"eql");this.assert(n(t,Ns(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}function Ws(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object"),r=Ns(this,"doLength"),i=Ns(this,"message"),o=i?i+": ":"",s=Ns(this,"ssfi"),c=Ti(n).toLowerCase(),a=Ti(t).toLowerCase();if(r&&"map"!==c&&"set"!==c&&new ss(n,i,s,!0).to.have.property("length"),!r&&"date"===c&&"date"!==a)throw new _i(o+"the argument to above must be a date",void 0,s);if(!Is(t)&&(r||Is(n)))throw new _i(o+"the argument to above must be a number",void 0,s);if(!r&&"date"!==c&&!Is(n))throw new _i(o+"expected "+("string"===c?"'"+n+"'":n)+" to be a number or a date",void 0,s);if(r){var u,l="length";"map"===c||"set"===c?(l="size",u=n.size):u=n.length,this.assert(u>t,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",t,u)}else this.assert(n>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t)}function Hs(t,e){e&&Ns(this,"message",e);var n,r=Ns(this,"object"),i=Ns(this,"doLength"),o=Ns(this,"message"),s=o?o+": ":"",c=Ns(this,"ssfi"),a=Ti(r).toLowerCase(),u=Ti(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new ss(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Is(t)||!i&&!Is(r))if(i||"date"===a||Is(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to least must be a number";else n=s+"the argument to least must be a date";if(l)throw new _i(n,void 0,c);if(i){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f>=t,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",t,f)}else this.assert(r>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t)}function Xs(t,e){e&&Ns(this,"message",e);var n,r=Ns(this,"object"),i=Ns(this,"doLength"),o=Ns(this,"message"),s=o?o+": ":"",c=Ns(this,"ssfi"),a=Ti(r).toLowerCase(),u=Ti(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new ss(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Is(t)||!i&&!Is(r))if(i||"date"===a||Is(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to below must be a number";else n=s+"the argument to below must be a date";if(l)throw new _i(n,void 0,c);if(i){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f<t,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",t,f)}else this.assert(r<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t)}function zs(t,e){e&&Ns(this,"message",e);var n,r=Ns(this,"object"),i=Ns(this,"doLength"),o=Ns(this,"message"),s=o?o+": ":"",c=Ns(this,"ssfi"),a=Ti(r).toLowerCase(),u=Ti(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new ss(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Is(t)||!i&&!Is(r))if(i||"date"===a||Is(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to most must be a number";else n=s+"the argument to most must be a date";if(l)throw new _i(n,void 0,c);if(i){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f<=t,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",t,f)}else this.assert(r<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t)}function Vs(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object"),r=Ns(this,"ssfi"),i=Ns(this,"message");try{var o=n instanceof t}catch(e){if(e instanceof TypeError)throw new _i((i=i?i+": ":"")+"The instanceof assertion needs a constructor but "+Ti(t)+" was given.",void 0,r);throw e}var s=Ms(t);null==s&&(s="an unnamed constructor"),this.assert(o,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s)}function Ks(t,e,n){n&&Ns(this,"message",n);var r=Ns(this,"nested"),i=Ns(this,"own"),o=Ns(this,"message"),s=Ns(this,"object"),c=Ns(this,"ssfi"),a=typeof t;if(o=o?o+": ":"",r){if("string"!==a)throw new _i(o+"the argument to property must be a string when using nested syntax",void 0,c)}else if("string"!==a&&"number"!==a&&"symbol"!==a)throw new _i(o+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&i)throw new _i(o+'The "nested" and "own" flags cannot be combined.',void 0,c);if(null==s)throw new _i(o+"Target cannot be null or undefined.",void 0,c);var u,l=Ns(this,"deep"),f=Ns(this,"negate"),h=r?os(s,t):null,d=r?h.value:s[t],p=l?Ns(this,"eql"):(t,e)=>t===e,b="";l&&(b+="deep "),i&&(b+="own "),r&&(b+="nested "),b+="property ",u=i?Object.prototype.hasOwnProperty.call(s,t):r?h.exists:ns(s,t),f&&1!==arguments.length||this.assert(u,"expected #{this} to have "+b+Ao(t),"expected #{this} to not have "+b+Ao(t)),arguments.length>1&&this.assert(u&&p(e,d),"expected #{this} to have "+b+Ao(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+Ao(t)+" of #{act}",e,d),Ns(this,"object",d)}function Gs(t,e,n){Ns(this,"own",!0),Ks.apply(this,arguments)}function Zs(t,e,n){"string"==typeof e&&(n=e,e=null),n&&Ns(this,"message",n);var r=Ns(this,"object"),i=Object.getOwnPropertyDescriptor(Object(r),t),o=Ns(this,"eql");i&&e?this.assert(o(e,i),"expected the own property descriptor for "+Ao(t)+" on #{this} to match "+Ao(e)+", got "+Ao(i),"expected the own property descriptor for "+Ao(t)+" on #{this} to not match "+Ao(e),e,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+Ao(t),"expected #{this} to not have an own property descriptor for "+Ao(t)),Ns(this,"object",i)}function Ys(){Ns(this,"doLength",!0)}function Qs(t,e){e&&Ns(this,"message",e);var n,r=Ns(this,"object"),i=Ti(r).toLowerCase(),o=Ns(this,"message"),s=Ns(this,"ssfi"),c="length";switch(i){case"map":case"set":c="size",n=r.size;break;default:new ss(r,o,s,!0).to.have.property("length"),n=r.length}this.assert(n==t,"expected #{this} to have a "+c+" of #{exp} but got #{act}","expected #{this} to not have a "+c+" of #{act}",t,n)}function tc(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t)}function ec(t){var e,n,r=Ns(this,"object"),i=Ti(r),o=Ti(t),s=Ns(this,"ssfi"),c=Ns(this,"deep"),a="",u=!0,l=Ns(this,"message"),f=(l=l?l+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===i||"Set"===i)a=c?"deeply ":"",n=[],r.forEach((function(t,e){n.push(e)})),"Array"!==o&&(t=Array.prototype.slice.call(arguments));else{switch(n=Ts(r),o){case"Array":if(arguments.length>1)throw new _i(f,void 0,s);break;case"Object":if(arguments.length>1)throw new _i(f,void 0,s);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments)}t=t.map((function(t){return"symbol"==typeof t?t:String(t)}))}if(!t.length)throw new _i(l+"keys required",void 0,s);var h=t.length,d=Ns(this,"any"),p=Ns(this,"all"),b=t,m=c?Ns(this,"eql"):(t,e)=>t===e;if(d||p||(p=!0),d&&(u=b.some((function(t){return n.some((function(e){return m(t,e)}))}))),p&&(u=b.every((function(t){return n.some((function(e){return m(t,e)}))})),Ns(this,"contains")||(u=u&&t.length==n.length)),h>1){var y=(t=t.map((function(t){return Ao(t)}))).pop();p&&(e=t.join(", ")+", and "+y),d&&(e=t.join(", ")+", or "+y)}else e=Ao(t[0]);e=(h>1?"keys ":"key ")+e,e=(Ns(this,"contains")?"contain ":"have ")+e,this.assert(u,"expected #{this} to "+a+e,"expected #{this} to not "+a+e,b.slice(0).sort(Es),n.sort(Es),!0)}function nc(t,e,n){n&&Ns(this,"message",n);var r=Ns(this,"object"),i=Ns(this,"ssfi"),o=Ns(this,"message"),s=Ns(this,"negate")||!1;let c;new ss(r,o,i,!0).is.a("function"),(Cs(t)||"string"==typeof t)&&(e=t,t=null);let a=!1;try{r()}catch(t){a=!0,c=t}var u=void 0===t&&void 0===e,l=Boolean(t&&e),f=!1,h=!1;if(u||!u&&!s){var d="an error";t instanceof Error?d="#{exp}":t&&(d=yi.getConstructorName(t));let e=c;if(c instanceof Error)e=c.toString();else if("string"==typeof c)e=c;else if(c&&("object"==typeof c||"function"==typeof c))try{e=yi.getConstructorName(c)}catch(t){}this.assert(a,"expected #{this} to throw "+d,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),e)}if(t&&c){if(t instanceof Error)yi.compatibleInstance(c,t)===s&&(l&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!s?" but #{act} was thrown":""),t.toString(),c.toString()));yi.compatibleConstructor(c,t)===s&&(l&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&yi.getConstructorName(t),c instanceof Error?c.toString():c&&yi.getConstructorName(c)))}if(c&&null!=e){var p="including";Cs(e)&&(p="matching"),yi.compatibleMessage(c,e)===s&&(l&&s?h=!0:this.assert(s,"expected #{this} to throw error "+p+" #{exp} but got #{act}","expected #{this} to throw error not "+p+" #{exp}",e,yi.getMessage(c)))}f&&h&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&yi.getConstructorName(t),c instanceof Error?c.toString():c&&yi.getConstructorName(c)),Ns(this,"object",c)}function rc(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object"),r=Ns(this,"itself"),i="function"!=typeof n||r?n[t]:n.prototype[t];this.assert("function"==typeof i,"expected #{this} to respond to "+Ao(t),"expected #{this} to not respond to "+Ao(t))}function ic(t,e){e&&Ns(this,"message",e);var n=t(Ns(this,"object"));this.assert(n,"expected #{this} to satisfy "+_o(t),"expected #{this} to not satisfy"+_o(t),!Ns(this,"negate"),n)}function oc(t,e,n){n&&Ns(this,"message",n);var r=Ns(this,"object"),i=Ns(this,"message"),o=Ns(this,"ssfi");new ss(r,i,o,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(null==e)throw new _i(i?`${i}: ${s}`:s,void 0,o);if(new ss(e,i,o,!0).is.numeric,s="A `expected` value is required for `closeTo`",null==t)throw new _i(i?`${i}: ${s}`:s,void 0,o);new ss(t,i,o,!0).is.numeric;const c=di((t=>t<0n?-t:t),"abs"),a=di((t=>parseFloat(parseFloat(t).toPrecision(12))),"strip");this.assert(a(c(r-t))<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e)}function sc(t,e,n,r,i){let o=Array.from(e),s=Array.from(t);if(!r){if(s.length!==o.length)return!1;o=o.slice()}return s.every((function(t,e){if(i)return n?n(t,o[e]):t===o[e];if(!n){var s=o.indexOf(t);return-1!==s&&(r||o.splice(s,1),!0)}return o.some((function(e,i){return!!n(t,e)&&(r||o.splice(i,1),!0)}))}))}function cc(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object"),r=Ns(this,"message"),i=Ns(this,"ssfi"),o=Ns(this,"contains"),s=Ns(this,"deep"),c=Ns(this,"eql");new ss(t,r,i,!0).to.be.an("array"),o?this.assert(t.some((function(t){return n.indexOf(t)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,n):s?this.assert(t.some((function(t){return c(n,t)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,n):this.assert(t.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,n)}function ac(t,e,n){n&&Ns(this,"message",n);var r,i=Ns(this,"object"),o=Ns(this,"message"),s=Ns(this,"ssfi");new ss(i,o,s,!0).is.a("function"),e?(new ss(t,o,s,!0).to.have.property(e),r=t[e]):(new ss(t,o,s,!0).is.a("function"),r=t()),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Ns(this,"deltaMsgObj",a),Ns(this,"initialDeltaValue",r),Ns(this,"finalDeltaValue",c),Ns(this,"deltaBehavior","change"),Ns(this,"realDelta",c!==r),this.assert(r!==c,"expected "+a+" to change","expected "+a+" to not change")}function uc(t,e,n){n&&Ns(this,"message",n);var r,i=Ns(this,"object"),o=Ns(this,"message"),s=Ns(this,"ssfi");new ss(i,o,s,!0).is.a("function"),e?(new ss(t,o,s,!0).to.have.property(e),r=t[e]):(new ss(t,o,s,!0).is.a("function"),r=t()),new ss(r,o,s,!0).is.a("number"),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Ns(this,"deltaMsgObj",a),Ns(this,"initialDeltaValue",r),Ns(this,"finalDeltaValue",c),Ns(this,"deltaBehavior","increase"),Ns(this,"realDelta",c-r),this.assert(c-r>0,"expected "+a+" to increase","expected "+a+" to not increase")}function lc(t,e,n){n&&Ns(this,"message",n);var r,i=Ns(this,"object"),o=Ns(this,"message"),s=Ns(this,"ssfi");new ss(i,o,s,!0).is.a("function"),e?(new ss(t,o,s,!0).to.have.property(e),r=t[e]):(new ss(t,o,s,!0).is.a("function"),r=t()),new ss(r,o,s,!0).is.a("number"),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Ns(this,"deltaMsgObj",a),Ns(this,"initialDeltaValue",r),Ns(this,"finalDeltaValue",c),Ns(this,"deltaBehavior","decrease"),Ns(this,"realDelta",r-c),this.assert(c-r<0,"expected "+a+" to decrease","expected "+a+" to not decrease")}function fc(t,e){e&&Ns(this,"message",e);var n,r=Ns(this,"deltaMsgObj"),i=Ns(this,"initialDeltaValue"),o=Ns(this,"finalDeltaValue"),s=Ns(this,"deltaBehavior"),c=Ns(this,"realDelta");n="change"===s?Math.abs(o-i)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+r+" to "+s+" by "+t,"expected "+r+" to not "+s+" by "+t)}function hc(t,e){return t===e||typeof e==typeof t&&("object"!=typeof t||null===t?t===e:!!e&&(Array.isArray(t)?!!Array.isArray(e)&&t.every((function(t){return e.some((function(e){return hc(t,e)}))})):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Object.keys(t).every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&null!==r&&null!==i?hc(r,i):"function"==typeof r?r(i):i===r}))))}function dc(t,e){return new ss(t,e)}di(Rs,"an"),ss.addChainableMethod("an",Rs),ss.addChainableMethod("a",Rs),di(Bs,"SameValueZero"),di(Ds,"includeChainingBehavior"),di(Ls,"include"),ss.addChainableMethod("include",Ls,Ds),ss.addChainableMethod("contain",Ls,Ds),ss.addChainableMethod("contains",Ls,Ds),ss.addChainableMethod("includes",Ls,Ds),ss.addProperty("ok",(function(){this.assert(Ns(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),ss.addProperty("true",(function(){this.assert(!0===Ns(this,"object"),"expected #{this} to be true","expected #{this} to be false",!Ns(this,"negate"))})),ss.addProperty("numeric",(function(){const t=Ns(this,"object");this.assert(["Number","BigInt"].includes(Ti(t)),"expected #{this} to be numeric","expected #{this} to not be numeric",!Ns(this,"negate"))})),ss.addProperty("callable",(function(){const t=Ns(this,"object"),e=Ns(this,"ssfi"),n=Ns(this,"message"),r=n?`${n}: `:"",i=Ns(this,"negate"),o=i?`${r}expected ${Ao(t)} not to be a callable function`:`${r}expected ${Ao(t)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Ti(t));if(s&&i||!s&&!i)throw new _i(o,void 0,e)})),ss.addProperty("false",(function(){this.assert(!1===Ns(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!Ns(this,"negate"))})),ss.addProperty("null",(function(){this.assert(null===Ns(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),ss.addProperty("undefined",(function(){this.assert(void 0===Ns(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),ss.addProperty("NaN",(function(){this.assert(ks(Ns(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),di(Fs,"assertExist"),ss.addProperty("exist",Fs),ss.addProperty("exists",Fs),ss.addProperty("empty",(function(){var t,e=Ns(this,"object"),n=Ns(this,"ssfi"),r=Ns(this,"message");switch(r=r?r+": ":"",Ti(e).toLowerCase()){case"array":case"string":t=e.length;break;case"map":case"set":t=e.size;break;case"weakmap":case"weakset":throw new _i(r+".empty was passed a weak collection",void 0,n);case"function":var i=r+".empty was passed a function "+Ms(e);throw new _i(i.trim(),void 0,n);default:if(e!==Object(e))throw new _i(r+".empty was passed non-string primitive "+Ao(e),void 0,n);t=Object.keys(e).length}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty")})),di(qs,"checkArguments"),ss.addProperty("arguments",qs),ss.addProperty("Arguments",qs),di(Js,"assertEqual"),ss.addMethod("equal",Js),ss.addMethod("equals",Js),ss.addMethod("eq",Js),di(Us,"assertEql"),ss.addMethod("eql",Us),ss.addMethod("eqls",Us),di(Ws,"assertAbove"),ss.addMethod("above",Ws),ss.addMethod("gt",Ws),ss.addMethod("greaterThan",Ws),di(Hs,"assertLeast"),ss.addMethod("least",Hs),ss.addMethod("gte",Hs),ss.addMethod("greaterThanOrEqual",Hs),di(Xs,"assertBelow"),ss.addMethod("below",Xs),ss.addMethod("lt",Xs),ss.addMethod("lessThan",Xs),di(zs,"assertMost"),ss.addMethod("most",zs),ss.addMethod("lte",zs),ss.addMethod("lessThanOrEqual",zs),ss.addMethod("within",(function(t,e,n){n&&Ns(this,"message",n);var r,i=Ns(this,"object"),o=Ns(this,"doLength"),s=Ns(this,"message"),c=s?s+": ":"",a=Ns(this,"ssfi"),u=Ti(i).toLowerCase(),l=Ti(t).toLowerCase(),f=Ti(e).toLowerCase(),h=!0,d="date"===l&&"date"===f?t.toISOString()+".."+e.toISOString():t+".."+e;if(o&&"map"!==u&&"set"!==u&&new ss(i,s,a,!0).to.have.property("length"),o||"date"!==u||"date"===l&&"date"===f)if(Is(t)&&Is(e)||!o&&!Is(i))if(o||"date"===u||Is(i))h=!1;else{r=c+"expected "+("string"===u?"'"+i+"'":i)+" to be a number or a date"}else r=c+"the arguments to within must be numbers";else r=c+"the arguments to within must be dates";if(h)throw new _i(r,void 0,a);if(o){var p,b="length";"map"===u||"set"===u?(b="size",p=i.size):p=i.length,this.assert(p>=t&&p<=e,"expected #{this} to have a "+b+" within "+d,"expected #{this} to not have a "+b+" within "+d)}else this.assert(i>=t&&i<=e,"expected #{this} to be within "+d,"expected #{this} to not be within "+d)})),di(Vs,"assertInstanceOf"),ss.addMethod("instanceof",Vs),ss.addMethod("instanceOf",Vs),di(Ks,"assertProperty"),ss.addMethod("property",Ks),di(Gs,"assertOwnProperty"),ss.addMethod("ownProperty",Gs),ss.addMethod("haveOwnProperty",Gs),di(Zs,"assertOwnPropertyDescriptor"),ss.addMethod("ownPropertyDescriptor",Zs),ss.addMethod("haveOwnPropertyDescriptor",Zs),di(Ys,"assertLengthChain"),di(Qs,"assertLength"),ss.addChainableMethod("length",Qs,Ys),ss.addChainableMethod("lengthOf",Qs,Ys),di(tc,"assertMatch"),ss.addMethod("match",tc),ss.addMethod("matches",tc),ss.addMethod("string",(function(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object");new ss(n,Ns(this,"message"),Ns(this,"ssfi"),!0).is.a("string"),this.assert(~n.indexOf(t),"expected #{this} to contain "+Ao(t),"expected #{this} to not contain "+Ao(t))})),di(ec,"assertKeys"),ss.addMethod("keys",ec),ss.addMethod("key",ec),di(nc,"assertThrows"),ss.addMethod("throw",nc),ss.addMethod("throws",nc),ss.addMethod("Throw",nc),di(rc,"respondTo"),ss.addMethod("respondTo",rc),ss.addMethod("respondsTo",rc),ss.addProperty("itself",(function(){Ns(this,"itself",!0)})),di(ic,"satisfy"),ss.addMethod("satisfy",ic),ss.addMethod("satisfies",ic),di(oc,"closeTo"),ss.addMethod("closeTo",oc),ss.addMethod("approximately",oc),di(sc,"isSubsetOf"),ss.addMethod("members",(function(t,e){e&&Ns(this,"message",e);var n=Ns(this,"object"),r=Ns(this,"message"),i=Ns(this,"ssfi");new ss(n,r,i,!0).to.be.iterable,new ss(t,r,i,!0).to.be.iterable;var o,s,c,a=Ns(this,"contains"),u=Ns(this,"ordered");a?(s="expected #{this} to be "+(o=u?"an ordered superset":"a superset")+" of #{exp}",c="expected #{this} to not be "+o+" of #{exp}"):(s="expected #{this} to have the same "+(o=u?"ordered members":"members")+" as #{exp}",c="expected #{this} to not have the same "+o+" as #{exp}");var l=Ns(this,"deep")?Ns(this,"eql"):void 0;this.assert(sc(t,n,l,a,u),s,c,t,n,!0)})),ss.addProperty("iterable",(function(t){t&&Ns(this,"message",t);var e=Ns(this,"object");this.assert(null!=e&&e[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",e)})),di(cc,"oneOf"),ss.addMethod("oneOf",cc),di(ac,"assertChanges"),ss.addMethod("change",ac),ss.addMethod("changes",ac),di(uc,"assertIncreases"),ss.addMethod("increase",uc),ss.addMethod("increases",uc),di(lc,"assertDecreases"),ss.addMethod("decrease",lc),ss.addMethod("decreases",lc),di(fc,"assertDelta"),ss.addMethod("by",fc),ss.addProperty("extensible",(function(){var t=Ns(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")})),ss.addProperty("sealed",(function(){var t=Ns(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")})),ss.addProperty("frozen",(function(){var t=Ns(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})),ss.addProperty("finite",(function(t){var e=Ns(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})),di(hc,"compareSubset"),ss.addMethod("containSubset",(function(t){const e=Ei(this,"object"),n=ko.showDiff;this.assert(hc(t,e),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",t,e,n)})),di(dc,"expect"),dc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new _i(n=n||"expect.fail()",{actual:t,expected:e,operator:r},dc.fail)};var pc={};function bc(){function t(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new ss(this.valueOf(),null,t):new ss(this,null,t)}function e(t){Object.defineProperty(this,"should",{value:t,enumerable:!0,configurable:!0,writable:!0})}di(t,"shouldGetter"),di(e,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:e,get:t,configurable:!0});var n={fail:function(t,e,r,i){throw arguments.length<2&&(r=t,t=void 0),new _i(r=r||"should.fail()",{actual:t,expected:e,operator:i},n.fail)},equal:function(t,e,n){new ss(t,n).to.equal(e)},Throw:function(t,e,n,r){new ss(t,r).to.Throw(e,n)},exist:function(t,e){new ss(t,e).to.exist},not:{}};return n.not.equal=function(t,e,n){new ss(t,n).to.not.equal(e)},n.not.Throw=function(t,e,n,r){new ss(t,r).to.not.Throw(e,n)},n.not.exist=function(t,e){new ss(t,e).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}pi(pc,{Should:()=>yc,should:()=>mc}),di(bc,"loadShould");var mc=bc,yc=bc;function gc(t,e){new ss(null,null,gc,!0).assert(t,e,"[ negation message unavailable ]")}di(gc,"assert"),gc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new _i(n=n||"assert.fail()",{actual:t,expected:e,operator:r},gc.fail)},gc.isOk=function(t,e){new ss(t,e,gc.isOk,!0).is.ok},gc.isNotOk=function(t,e){new ss(t,e,gc.isNotOk,!0).is.not.ok},gc.equal=function(t,e,n){var r=new ss(t,n,gc.equal,!0);r.assert(e==Ei(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",e,t,!0)},gc.notEqual=function(t,e,n){var r=new ss(t,n,gc.notEqual,!0);r.assert(e!=Ei(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",e,t,!0)},gc.strictEqual=function(t,e,n){new ss(t,n,gc.strictEqual,!0).to.equal(e)},gc.notStrictEqual=function(t,e,n){new ss(t,n,gc.notStrictEqual,!0).to.not.equal(e)},gc.deepEqual=gc.deepStrictEqual=function(t,e,n){new ss(t,n,gc.deepEqual,!0).to.eql(e)},gc.notDeepEqual=function(t,e,n){new ss(t,n,gc.notDeepEqual,!0).to.not.eql(e)},gc.isAbove=function(t,e,n){new ss(t,n,gc.isAbove,!0).to.be.above(e)},gc.isAtLeast=function(t,e,n){new ss(t,n,gc.isAtLeast,!0).to.be.least(e)},gc.isBelow=function(t,e,n){new ss(t,n,gc.isBelow,!0).to.be.below(e)},gc.isAtMost=function(t,e,n){new ss(t,n,gc.isAtMost,!0).to.be.most(e)},gc.isTrue=function(t,e){new ss(t,e,gc.isTrue,!0).is.true},gc.isNotTrue=function(t,e){new ss(t,e,gc.isNotTrue,!0).to.not.equal(!0)},gc.isFalse=function(t,e){new ss(t,e,gc.isFalse,!0).is.false},gc.isNotFalse=function(t,e){new ss(t,e,gc.isNotFalse,!0).to.not.equal(!1)},gc.isNull=function(t,e){new ss(t,e,gc.isNull,!0).to.equal(null)},gc.isNotNull=function(t,e){new ss(t,e,gc.isNotNull,!0).to.not.equal(null)},gc.isNaN=function(t,e){new ss(t,e,gc.isNaN,!0).to.be.NaN},gc.isNotNaN=function(t,e){new ss(t,e,gc.isNotNaN,!0).not.to.be.NaN},gc.exists=function(t,e){new ss(t,e,gc.exists,!0).to.exist},gc.notExists=function(t,e){new ss(t,e,gc.notExists,!0).to.not.exist},gc.isUndefined=function(t,e){new ss(t,e,gc.isUndefined,!0).to.equal(void 0)},gc.isDefined=function(t,e){new ss(t,e,gc.isDefined,!0).to.not.equal(void 0)},gc.isCallable=function(t,e){new ss(t,e,gc.isCallable,!0).is.callable},gc.isNotCallable=function(t,e){new ss(t,e,gc.isNotCallable,!0).is.not.callable},gc.isObject=function(t,e){new ss(t,e,gc.isObject,!0).to.be.a("object")},gc.isNotObject=function(t,e){new ss(t,e,gc.isNotObject,!0).to.not.be.a("object")},gc.isArray=function(t,e){new ss(t,e,gc.isArray,!0).to.be.an("array")},gc.isNotArray=function(t,e){new ss(t,e,gc.isNotArray,!0).to.not.be.an("array")},gc.isString=function(t,e){new ss(t,e,gc.isString,!0).to.be.a("string")},gc.isNotString=function(t,e){new ss(t,e,gc.isNotString,!0).to.not.be.a("string")},gc.isNumber=function(t,e){new ss(t,e,gc.isNumber,!0).to.be.a("number")},gc.isNotNumber=function(t,e){new ss(t,e,gc.isNotNumber,!0).to.not.be.a("number")},gc.isNumeric=function(t,e){new ss(t,e,gc.isNumeric,!0).is.numeric},gc.isNotNumeric=function(t,e){new ss(t,e,gc.isNotNumeric,!0).is.not.numeric},gc.isFinite=function(t,e){new ss(t,e,gc.isFinite,!0).to.be.finite},gc.isBoolean=function(t,e){new ss(t,e,gc.isBoolean,!0).to.be.a("boolean")},gc.isNotBoolean=function(t,e){new ss(t,e,gc.isNotBoolean,!0).to.not.be.a("boolean")},gc.typeOf=function(t,e,n){new ss(t,n,gc.typeOf,!0).to.be.a(e)},gc.notTypeOf=function(t,e,n){new ss(t,n,gc.notTypeOf,!0).to.not.be.a(e)},gc.instanceOf=function(t,e,n){new ss(t,n,gc.instanceOf,!0).to.be.instanceOf(e)},gc.notInstanceOf=function(t,e,n){new ss(t,n,gc.notInstanceOf,!0).to.not.be.instanceOf(e)},gc.include=function(t,e,n){new ss(t,n,gc.include,!0).include(e)},gc.notInclude=function(t,e,n){new ss(t,n,gc.notInclude,!0).not.include(e)},gc.deepInclude=function(t,e,n){new ss(t,n,gc.deepInclude,!0).deep.include(e)},gc.notDeepInclude=function(t,e,n){new ss(t,n,gc.notDeepInclude,!0).not.deep.include(e)},gc.nestedInclude=function(t,e,n){new ss(t,n,gc.nestedInclude,!0).nested.include(e)},gc.notNestedInclude=function(t,e,n){new ss(t,n,gc.notNestedInclude,!0).not.nested.include(e)},gc.deepNestedInclude=function(t,e,n){new ss(t,n,gc.deepNestedInclude,!0).deep.nested.include(e)},gc.notDeepNestedInclude=function(t,e,n){new ss(t,n,gc.notDeepNestedInclude,!0).not.deep.nested.include(e)},gc.ownInclude=function(t,e,n){new ss(t,n,gc.ownInclude,!0).own.include(e)},gc.notOwnInclude=function(t,e,n){new ss(t,n,gc.notOwnInclude,!0).not.own.include(e)},gc.deepOwnInclude=function(t,e,n){new ss(t,n,gc.deepOwnInclude,!0).deep.own.include(e)},gc.notDeepOwnInclude=function(t,e,n){new ss(t,n,gc.notDeepOwnInclude,!0).not.deep.own.include(e)},gc.match=function(t,e,n){new ss(t,n,gc.match,!0).to.match(e)},gc.notMatch=function(t,e,n){new ss(t,n,gc.notMatch,!0).to.not.match(e)},gc.property=function(t,e,n){new ss(t,n,gc.property,!0).to.have.property(e)},gc.notProperty=function(t,e,n){new ss(t,n,gc.notProperty,!0).to.not.have.property(e)},gc.propertyVal=function(t,e,n,r){new ss(t,r,gc.propertyVal,!0).to.have.property(e,n)},gc.notPropertyVal=function(t,e,n,r){new ss(t,r,gc.notPropertyVal,!0).to.not.have.property(e,n)},gc.deepPropertyVal=function(t,e,n,r){new ss(t,r,gc.deepPropertyVal,!0).to.have.deep.property(e,n)},gc.notDeepPropertyVal=function(t,e,n,r){new ss(t,r,gc.notDeepPropertyVal,!0).to.not.have.deep.property(e,n)},gc.ownProperty=function(t,e,n){new ss(t,n,gc.ownProperty,!0).to.have.own.property(e)},gc.notOwnProperty=function(t,e,n){new ss(t,n,gc.notOwnProperty,!0).to.not.have.own.property(e)},gc.ownPropertyVal=function(t,e,n,r){new ss(t,r,gc.ownPropertyVal,!0).to.have.own.property(e,n)},gc.notOwnPropertyVal=function(t,e,n,r){new ss(t,r,gc.notOwnPropertyVal,!0).to.not.have.own.property(e,n)},gc.deepOwnPropertyVal=function(t,e,n,r){new ss(t,r,gc.deepOwnPropertyVal,!0).to.have.deep.own.property(e,n)},gc.notDeepOwnPropertyVal=function(t,e,n,r){new ss(t,r,gc.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(e,n)},gc.nestedProperty=function(t,e,n){new ss(t,n,gc.nestedProperty,!0).to.have.nested.property(e)},gc.notNestedProperty=function(t,e,n){new ss(t,n,gc.notNestedProperty,!0).to.not.have.nested.property(e)},gc.nestedPropertyVal=function(t,e,n,r){new ss(t,r,gc.nestedPropertyVal,!0).to.have.nested.property(e,n)},gc.notNestedPropertyVal=function(t,e,n,r){new ss(t,r,gc.notNestedPropertyVal,!0).to.not.have.nested.property(e,n)},gc.deepNestedPropertyVal=function(t,e,n,r){new ss(t,r,gc.deepNestedPropertyVal,!0).to.have.deep.nested.property(e,n)},gc.notDeepNestedPropertyVal=function(t,e,n,r){new ss(t,r,gc.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(e,n)},gc.lengthOf=function(t,e,n){new ss(t,n,gc.lengthOf,!0).to.have.lengthOf(e)},gc.hasAnyKeys=function(t,e,n){new ss(t,n,gc.hasAnyKeys,!0).to.have.any.keys(e)},gc.hasAllKeys=function(t,e,n){new ss(t,n,gc.hasAllKeys,!0).to.have.all.keys(e)},gc.containsAllKeys=function(t,e,n){new ss(t,n,gc.containsAllKeys,!0).to.contain.all.keys(e)},gc.doesNotHaveAnyKeys=function(t,e,n){new ss(t,n,gc.doesNotHaveAnyKeys,!0).to.not.have.any.keys(e)},gc.doesNotHaveAllKeys=function(t,e,n){new ss(t,n,gc.doesNotHaveAllKeys,!0).to.not.have.all.keys(e)},gc.hasAnyDeepKeys=function(t,e,n){new ss(t,n,gc.hasAnyDeepKeys,!0).to.have.any.deep.keys(e)},gc.hasAllDeepKeys=function(t,e,n){new ss(t,n,gc.hasAllDeepKeys,!0).to.have.all.deep.keys(e)},gc.containsAllDeepKeys=function(t,e,n){new ss(t,n,gc.containsAllDeepKeys,!0).to.contain.all.deep.keys(e)},gc.doesNotHaveAnyDeepKeys=function(t,e,n){new ss(t,n,gc.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(e)},gc.doesNotHaveAllDeepKeys=function(t,e,n){new ss(t,n,gc.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(e)},gc.throws=function(t,e,n,r){return("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),Ei(new ss(t,r,gc.throws,!0).to.throw(e,n),"object")},gc.doesNotThrow=function(t,e,n,r){("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),new ss(t,r,gc.doesNotThrow,!0).to.not.throw(e,n)},gc.operator=function(t,e,n,r){var i;switch(e){case"==":i=t==n;break;case"===":i=t===n;break;case">":i=t>n;break;case">=":i=t>=n;break;case"<":i=t<n;break;case"<=":i=t<=n;break;case"!=":i=t!=n;break;case"!==":i=t!==n;break;default:throw new _i((r=r?r+": ":r)+'Invalid operator "'+e+'"',void 0,gc.operator)}var o=new ss(i,r,gc.operator,!0);o.assert(!0===Ei(o,"object"),"expected "+Ao(t)+" to be "+e+" "+Ao(n),"expected "+Ao(t)+" to not be "+e+" "+Ao(n))},gc.closeTo=function(t,e,n,r){new ss(t,r,gc.closeTo,!0).to.be.closeTo(e,n)},gc.approximately=function(t,e,n,r){new ss(t,r,gc.approximately,!0).to.be.approximately(e,n)},gc.sameMembers=function(t,e,n){new ss(t,n,gc.sameMembers,!0).to.have.same.members(e)},gc.notSameMembers=function(t,e,n){new ss(t,n,gc.notSameMembers,!0).to.not.have.same.members(e)},gc.sameDeepMembers=function(t,e,n){new ss(t,n,gc.sameDeepMembers,!0).to.have.same.deep.members(e)},gc.notSameDeepMembers=function(t,e,n){new ss(t,n,gc.notSameDeepMembers,!0).to.not.have.same.deep.members(e)},gc.sameOrderedMembers=function(t,e,n){new ss(t,n,gc.sameOrderedMembers,!0).to.have.same.ordered.members(e)},gc.notSameOrderedMembers=function(t,e,n){new ss(t,n,gc.notSameOrderedMembers,!0).to.not.have.same.ordered.members(e)},gc.sameDeepOrderedMembers=function(t,e,n){new ss(t,n,gc.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(e)},gc.notSameDeepOrderedMembers=function(t,e,n){new ss(t,n,gc.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(e)},gc.includeMembers=function(t,e,n){new ss(t,n,gc.includeMembers,!0).to.include.members(e)},gc.notIncludeMembers=function(t,e,n){new ss(t,n,gc.notIncludeMembers,!0).to.not.include.members(e)},gc.includeDeepMembers=function(t,e,n){new ss(t,n,gc.includeDeepMembers,!0).to.include.deep.members(e)},gc.notIncludeDeepMembers=function(t,e,n){new ss(t,n,gc.notIncludeDeepMembers,!0).to.not.include.deep.members(e)},gc.includeOrderedMembers=function(t,e,n){new ss(t,n,gc.includeOrderedMembers,!0).to.include.ordered.members(e)},gc.notIncludeOrderedMembers=function(t,e,n){new ss(t,n,gc.notIncludeOrderedMembers,!0).to.not.include.ordered.members(e)},gc.includeDeepOrderedMembers=function(t,e,n){new ss(t,n,gc.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(e)},gc.notIncludeDeepOrderedMembers=function(t,e,n){new ss(t,n,gc.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(e)},gc.oneOf=function(t,e,n){new ss(t,n,gc.oneOf,!0).to.be.oneOf(e)},gc.isIterable=function(t,e){if(null==t||!t[Symbol.iterator])throw e=e?`${e} expected ${Ao(t)} to be an iterable`:`expected ${Ao(t)} to be an iterable`,new _i(e,void 0,gc.isIterable)},gc.changes=function(t,e,n,r){3===arguments.length&&"function"==typeof e&&(r=n,n=null),new ss(t,r,gc.changes,!0).to.change(e,n)},gc.changesBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new ss(t,i,gc.changesBy,!0).to.change(e,n).by(r)},gc.doesNotChange=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new ss(t,r,gc.doesNotChange,!0).to.not.change(e,n)},gc.changesButNotBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new ss(t,i,gc.changesButNotBy,!0).to.change(e,n).but.not.by(r)},gc.increases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new ss(t,r,gc.increases,!0).to.increase(e,n)},gc.increasesBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new ss(t,i,gc.increasesBy,!0).to.increase(e,n).by(r)},gc.doesNotIncrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new ss(t,r,gc.doesNotIncrease,!0).to.not.increase(e,n)},gc.increasesButNotBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new ss(t,i,gc.increasesButNotBy,!0).to.increase(e,n).but.not.by(r)},gc.decreases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new ss(t,r,gc.decreases,!0).to.decrease(e,n)},gc.decreasesBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new ss(t,i,gc.decreasesBy,!0).to.decrease(e,n).by(r)},gc.doesNotDecrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new ss(t,r,gc.doesNotDecrease,!0).to.not.decrease(e,n)},gc.doesNotDecreaseBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);return new ss(t,i,gc.doesNotDecreaseBy,!0).to.not.decrease(e,n).by(r)},gc.decreasesButNotBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new ss(t,i,gc.decreasesButNotBy,!0).to.decrease(e,n).but.not.by(r)},gc.ifError=function(t){if(t)throw t},gc.isExtensible=function(t,e){new ss(t,e,gc.isExtensible,!0).to.be.extensible},gc.isNotExtensible=function(t,e){new ss(t,e,gc.isNotExtensible,!0).to.not.be.extensible},gc.isSealed=function(t,e){new ss(t,e,gc.isSealed,!0).to.be.sealed},gc.isNotSealed=function(t,e){new ss(t,e,gc.isNotSealed,!0).to.not.be.sealed},gc.isFrozen=function(t,e){new ss(t,e,gc.isFrozen,!0).to.be.frozen},gc.isNotFrozen=function(t,e){new ss(t,e,gc.isNotFrozen,!0).to.not.be.frozen},gc.isEmpty=function(t,e){new ss(t,e,gc.isEmpty,!0).to.be.empty},gc.isNotEmpty=function(t,e){new ss(t,e,gc.isNotEmpty,!0).to.not.be.empty},gc.containsSubset=function(t,e,n){new ss(t,n).to.containSubset(e)},gc.doesNotContainSubset=function(t,e,n){new ss(t,n).to.not.containSubset(e)};for(const[t,e]of[["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"]])gc[e]=gc[t];var wc=[];function vc(t){const e={use:vc,AssertionError:_i,util:mi,config:ko,expect:dc,assert:gc,Assertion:ss,...pc};return~wc.indexOf(t)||(t(e,mi),wc.push(t)),e}di(vc,"use");var $c=Symbol.for("matchers-object"),xc=Symbol.for("$$jest-matchers-object"),Sc=Symbol.for("expect-global"),jc=Symbol.for("asymmetric-matchers-object"),Ec={toSatisfy(t,e,n){const{printReceived:r,printExpected:i,matcherHint:o}=this.utils,s=e(t);return{pass:s,message:()=>s?`${o(".not.toSatisfy","received","")}\n\nExpected value to not satisfy:\n${n||i(e)}\nReceived:\n${r(t)}`:`${o(".toSatisfy","received","")}\n\nExpected value to satisfy:\n${n||i(e)}\n\nReceived:\n${r(t)}`}},toBeOneOf(t,e){const{equals:n,customTesters:r}=this,{printReceived:i,printExpected:o,matcherHint:s}=this.utils;if(!Array.isArray(e))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof e}'.`);const c=0===e.length||e.some((e=>n(e,t,r)));return{pass:c,message:()=>c?`${s(".not.toBeOneOf","received","")}\n\nExpected value to not be one of:\n${o(e)}\nReceived:\n${i(t)}`:`${s(".toBeOneOf","received","")}\n\nExpected value to be one of:\n${o(e)}\n\nReceived:\n${i(t)}`}}},Oc=H.green,Tc=H.red,kc=H.inverse,Ac=H.bold,_c=H.dim;function Mc(t,e="received",n="expected",r={}){const{comment:i="",isDirectExpectCall:o=!1,isNot:s=!1,promise:c="",secondArgument:a="",expectedColor:u=Oc,receivedColor:l=Tc,secondArgumentColor:f=Oc}=r;let h="",d="expect";return o||""===e||(h+=_c(`${d}(`)+l(e),d=")"),""!==c&&(h+=_c(`${d}.`)+c,d=""),s&&(h+=`${_c(`${d}.`)}not`,d=""),t.includes(".")?d+=t:(h+=_c(`${d}.`)+t,d=""),""===n?d+="()":(h+=_c(`${d}(`)+u(n),a&&(h+=_c(", ")+f(a)),d=")"),""!==i&&(d+=` // ${i}`),""!==d&&(h+=_c(d)),h}function Cc(t){return t.replace(/\s+$/gm,(t=>"·".repeat(t.length)))}function Ic(t){return Tc(Cc(tn(t)))}function Nc(t){return Oc(Cc(tn(t)))}function Pc(){return{EXPECTED_COLOR:Oc,RECEIVED_COLOR:Tc,INVERTED_COLOR:kc,BOLD_WEIGHT:Ac,DIM_COLOR:_c,diff:Ar,matcherHint:Mc,printReceived:Ic,printExpected:Nc,printDiffOrStringify:Br}}function Rc(){return globalThis[xc].customEqualityTesters}function Bc(t,e,n,r){return Lc(t,e,[],[],n=n||[],r?Jc:qc)}Function.prototype.toString;function Dc(t){return!!t&&"object"==typeof t&&"asymmetricMatch"in t&&Uc("Function",t.asymmetricMatch)}function Lc(t,e,n,r,i,o){let s=!0;const c=function(t,e){const n=Dc(t),r=Dc(e);if(!n||!r)return n?t.asymmetricMatch(e):r?e.asymmetricMatch(t):void 0}(t,e);if(void 0!==c)return c;const a={equals:Bc};for(let n=0;n<i.length;n++){const r=i[n].call(a,t,e,i);if(void 0!==r)return r}if("function"==typeof URL&&t instanceof URL&&e instanceof URL)return t.href===e.href;if(Object.is(t,e))return!0;if(null===t||null===e)return t===e;const u=Object.prototype.toString.call(t);if(u!==Object.prototype.toString.call(e))return!1;switch(u){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof t==typeof e&&("object"!=typeof t&&"object"!=typeof e?Object.is(t,e):Object.is(t.valueOf(),e.valueOf()));case"[object Date]":{const n=+t,r=+e;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case"[object RegExp]":return t.source===e.source&&t.flags===e.flags}if("object"!=typeof t||"object"!=typeof e)return!1;if(Wc(t)&&Wc(e))return t.isEqualNode(e);let l=n.length;for(;l--;){if(n[l]===t)return r[l]===e;if(r[l]===e)return!1}if(n.push(t),r.push(e),"[object Array]"===u&&t.length!==e.length)return!1;if(t instanceof Error&&e instanceof Error)try{return function(t,e,n,r,i,o){let s=Object.getPrototypeOf(t)===Object.getPrototypeOf(e)&&t.name===e.name&&t.message===e.message;void 0!==e.cause&&s&&(s=Lc(t.cause,e.cause,n,r,i,o));t instanceof AggregateError&&e instanceof AggregateError&&s&&(s=Lc(t.errors,e.errors,n,r,i,o));return s&&(s=Lc({...t},{...e},n,r,i,o)),s}(t,e,n,r,i,o)}finally{n.pop(),r.pop()}const f=Fc(t,o);let h,d=f.length;if(Fc(e,o).length!==d)return!1;for(;d--;)if(h=f[d],s=o(e,h)&&Lc(t[h],e[h],n,r,i,o),!s)return!1;return n.pop(),r.pop(),s}function Fc(t,e){const n=[];for(const r in t)e(t,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(t).filter((e=>Object.getOwnPropertyDescriptor(t,e).enumerable)))}function qc(t,e){return Jc(t,e)&&void 0!==t[e]}function Jc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Uc(t,e){return Object.prototype.toString.apply(e)===`[object ${t}]`}function Wc(t){return null!==t&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&"nodeName"in t&&"string"==typeof t.nodeName&&"isEqualNode"in t&&"function"==typeof t.isEqualNode}var Hc="@@__IMMUTABLE_KEYED__@@",Xc="@@__IMMUTABLE_SET__@@",zc="@@__IMMUTABLE_ORDERED__@@";function Vc(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var Kc=Symbol.iterator;function Gc(t){return!(null==t||!t[Kc])}function Zc(t,e,n=[],r=[],i=[]){if("object"!=typeof t||"object"!=typeof e||Array.isArray(t)||Array.isArray(e)||!Gc(t)||!Gc(e))return;if(t.constructor!==e.constructor)return!1;let o=r.length;for(;o--;)if(r[o]===t)return i[o]===e;r.push(t),i.push(e);const s=[...n.filter((t=>t!==Zc)),function(t,e){return Zc(t,e,[...n],[...r],[...i])}];if(void 0!==t.size){if(t.size!==e.size)return!1;if(Uc("Set",t)||(a=t)&&a[Xc]&&!a[zc]){let n=!0;for(const r of t)if(!e.has(r)){let t=!1;for(const n of e){!0===Bc(r,n,s)&&(t=!0)}if(!1===t){n=!1;break}}return r.pop(),i.pop(),n}if(Uc("Map",t)||(c=t)&&c[Hc]&&!c[zc]){let n=!0;for(const r of t)if(!e.has(r[0])||!Bc(r[1],e.get(r[0]),s)){let t=!1;for(const n of e){let e=!1;!0===Bc(r[0],n[0],s)&&(e=Bc(r[1],n[1],s)),!0===e&&(t=!0)}if(!1===t){n=!1;break}}return r.pop(),i.pop(),n}}var c,a;const u=e[Kc]();for(const e of t){const t=u.next();if(t.done||!Bc(e,t.value,s))return!1}if(!u.next().done)return!1;if(!(l=t,Boolean(l&&Vc(l)&&l["@@__IMMUTABLE_LIST__@@"])||function(t){return Boolean(t&&Vc(t)&&t[Hc]&&t[zc])}(t)||function(t){return Boolean(t&&Vc(t)&&t[Xc]&&t[zc])}(t)||function(t){return Boolean(t&&Vc(t)&&t["@@__IMMUTABLE_RECORD__@@"])}(t))){if(!Bc(Object.entries(t),Object.entries(e)))return!1}var l;return r.pop(),i.pop(),!0}function Yc(t,e){return!(!t||"object"!=typeof t||t===Object.prototype)&&(Object.prototype.hasOwnProperty.call(t,e)||Yc(Object.getPrototypeOf(t),e))}function Qc(t,e,n=[]){const r=n.filter((t=>t!==Qc)),i=(t=new WeakMap)=>(e,n)=>{var o;if(!(!an(o=n)||o instanceof Error||Array.isArray(o)||o instanceof Date))return Object.keys(n).every((o=>{if(null!=n[o]&&"object"==typeof n[o]){if(t.has(n[o]))return Bc(e[o],n[o],r);t.set(n[o],!0)}const s=null!=e&&Yc(e,o)&&Bc(e[o],n[o],[...r,i(t)]);return t.delete(n[o]),s}))};return i()(t,e)}function ta(t,e){if(null!=t&&null!=e&&t.constructor!==e.constructor)return!1}function ea(t,e){let n=t,r=e;if(!(t instanceof DataView&&e instanceof DataView)){if(!(t instanceof ArrayBuffer&&e instanceof ArrayBuffer))return;try{n=new DataView(t),r=new DataView(e)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let t=0;t<n.byteLength;t++)if(n.getUint8(t)!==r.getUint8(t))return!1;return!0}function na(t,e,n=[]){if(!Array.isArray(t)||!Array.isArray(e))return;const r=Object.keys(t),i=Object.keys(e);return Bc(t,e,n.filter((t=>t!==na)),!0)&&Bc(r,i)}function ra(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter((e=>{var n;return null==(n=Object.getOwnPropertyDescriptor(t,e))?void 0:n.enumerable}))]}if(!Object.prototype.hasOwnProperty.call(globalThis,$c)){const t=new WeakMap,e=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,$c,{get:()=>t}),Object.defineProperty(globalThis,xc,{configurable:!0,get:()=>({state:t.get(globalThis[Sc]),matchers:e,customEqualityTesters:n})}),Object.defineProperty(globalThis,jc,{get:()=>r})}function ia(t){return globalThis[$c].get(t)}function oa(t,e){const n=globalThis[$c],r=n.get(e)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(t)});n.set(e,i)}var sa=class{constructor(t,e=!1){b(this,"$$typeof",Symbol.for("jest.asymmetricMatcher")),this.sample=t,this.inverse=e}getMatcherContext(t){return{...ia(t||globalThis[Sc]),equals:Bc,isNot:this.inverse,customTesters:Rc(),utils:{...Pc(),diff:Ar,stringify:tn,iterableEquality:Zc,subsetEquality:Qc}}}};sa.prototype[Symbol.for("chai/inspect")]=function(t){const e=tn(this,t.depth,{min:!0});return e.length<=t.truncate?e:`${this.toString()}{…}`};var ca=class extends sa{constructor(t,e=!1){if(!Uc("String",t))throw new Error("Expected is not a string");super(t,e)}asymmetricMatch(t){const e=Uc("String",t)&&t.includes(this.sample);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},aa=class extends sa{asymmetricMatch(t){return null!=t}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},ua=class extends sa{constructor(t,e=!1){super(t,e)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,e){return!!t&&(!!Object.prototype.hasOwnProperty.call(t,e)||this.hasProperty(this.getPrototype(t),e))}asymmetricMatch(t){if("object"!=typeof this.sample)throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let e=!0;const n=this.getMatcherContext();for(const r in this.sample)if(!this.hasProperty(t,r)||!Bc(this.sample[r],t[r],n.customTesters)){e=!1;break}return this.inverse?!e:e}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},la=class extends sa{constructor(t,e=!1){super(t,e)}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const e=this.getMatcherContext(),n=0===this.sample.length||Array.isArray(t)&&this.sample.every((n=>t.some((t=>Bc(n,t,e.customTesters)))));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},fa=class extends sa{constructor(t){if(void 0===t)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;const e=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return e?e[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?"string"==typeof t||t instanceof String:this.sample===Number?"number"==typeof t||t instanceof Number:this.sample===Function?"function"==typeof t||"function"==typeof t:this.sample===Boolean?"boolean"==typeof t||t instanceof Boolean:this.sample===BigInt?"bigint"==typeof t||t instanceof BigInt:this.sample===Symbol?"symbol"==typeof t||t instanceof Symbol:this.sample===Object?"object"==typeof t: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)}>`}},ha=class extends sa{constructor(t,e=!1){if(!Uc("String",t)&&!Uc("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),e)}asymmetricMatch(t){const e=Uc("String",t)&&this.sample.test(t);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},da=class extends sa{constructor(t,e=2,n=!1){if(!Uc("Number",t))throw new Error("Expected is not a Number");if(!Uc("Number",e))throw new Error("Precision is not a Number");super(t),b(this,"precision"),this.inverse=n,this.precision=e}asymmetricMatch(t){if(!Uc("Number",t))return!1;let e=!1;return e=t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||(t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY||Math.abs(this.sample-t)<10**-this.precision/2),this.inverse?!e:e}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${t="digit",e=this.precision,`${e} ${t}${1===e?"":"s"}`})`].join(" ");var t,e}};function pa(t,e,n){const r=t.flag(e,"negate")?"not.":"",i=`${t.flag(e,"_name")}(${n?"expected":""})`,o=t.flag(e,"promise");return`expect(actual)${o?`.${o}`:""}.${r}${i}`}function ba(t,e,n,r){const i=t;if(i&&e instanceof Promise){e=e.finally((()=>{if(!i.promises)return;const t=i.promises.indexOf(e);-1!==t&&i.promises.splice(t,1)})),i.promises||(i.promises=[]),i.promises.push(e);let t=!1;return i.onFinished??(i.onFinished=[]),i.onFinished.push((()=>{var e;if(!t){const t=((null==(e=globalThis.__vitest_worker__)?void 0:e.onFilterStackTrace)||(t=>t||""))(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.\n",t].join(""))}})),{then:(n,r)=>(t=!0,e.then(n,r)),catch:t=>e.catch(t),finally:t=>e.finally(t),[Symbol.toStringTag]:"Promise"}}return e}function ma(t,e,n){return function(...r){var i;if("withTest"!==e&&t.flag(this,"_name",e),!t.flag(this,"soft"))return n.apply(this,r);const o=t.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{return n.apply(this,r)}catch(t){o.result||(o.result={state:"fail"}),o.result.state="fail",(i=o.result).errors||(i.errors=[]),o.result.errors.push(ai(t))}}}function ya(t){const e=t%10,n=t%100;return 1===e&&11!==n?`${t}st`:2===e&&12!==n?`${t}nd`:3===e&&13!==n?`${t}rd`:`${t}th`}function ga(t,e,n){return t.mock.calls&&(e+=H.gray(`\n\nReceived: \n\n${t.mock.calls.map(((e,r)=>{let i=H.bold(` ${ya(r+1)} ${t.getMockName()} call:\n\n`);return i+=n?Ar(n,e,{omitAnnotationLines:!0}):tn(e).split("\n").map((t=>` ${t}`)).join("\n"),i+="\n",i})).join("\n")}`)),e+=H.gray(`\n\nNumber of calls: ${H.bold(t.mock.calls.length)}\n`)}var wa=class extends Error{constructor(t,e,n){super(t),this.actual=e,this.expected=n}};function va(t,e,n){return(r,i)=>{Object.entries(n).forEach((([n,r])=>{const o=ma(i,n,(function(...t){const{state:n,isNot:i,obj:o}=function(t,e){const n=t._obj,r=mi.flag(t,"negate"),i=mi.flag(t,"promise")||"",o={...Pc(),diff:Ar,stringify:tn,iterableEquality:Zc,subsetEquality:Qc};return{state:{...ia(e),customTesters:Rc(),isNot:r,utils:o,promise:i,equals:Bc,suppressedErrors:[],soft:mi.flag(t,"soft"),poll:mi.flag(t,"poll")},isNot:r,obj:n}}(this,e),s=r.call(n,o,...t);if(s&&"object"==typeof s&&s instanceof Promise)return s.then((({pass:t,message:e,actual:n,expected:r})=>{if(t&&i||!t&&!i)throw new wa(e(),n,r)}));const{pass:c,message:a,actual:u,expected:l}=s;if(c&&i||!c&&!i)throw new wa(a(),u,l)}));i.addMethod(globalThis[xc].matchers,n,o),i.addMethod(t.Assertion.prototype,n,o);class s extends sa{constructor(t=!1,...e){super(e,t)}asymmetricMatch(t){const{pass:n}=r.call(this.getMatcherContext(e),t,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?"not.":""}${n}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map((t=>tn(t))).join(", ")}>`}}const c=(...t)=>new s(!1,...t);Object.defineProperty(e,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(e.not,n,{configurable:!0,enumerable:!0,value:(...t)=>new s(!0,...t),writable:!0}),Object.defineProperty(globalThis[jc],n,{configurable:!0,enumerable:!0,value:c,writable:!0})}))}}m(),m();",".charCodeAt(0);var $a,xa,Sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ja=new Uint8Array(64),Ea=new Uint8Array(128);for(let t=0;t<64;t++){const e=Sa.charCodeAt(t);ja[t]=e,Ea[e]=t}(xa=$a||($a={}))[xa.Empty=1]="Empty",xa[xa.Hash=2]="Hash",xa[xa.Query=3]="Query",xa[xa.RelativePath=4]="RelativePath",xa[xa.AbsolutePath=5]="AbsolutePath",xa[xa.SchemeRelative=6]="SchemeRelative",xa[xa.Absolute=7]="Absolute";var Oa=/^[A-Za-z]:\//;var Ta=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var ka=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(Oa,(t=>t.toUpperCase())):t}(t)))).length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/";i&&0!==i.length&&(e=`${i}/${e}`,n=Aa(i))}return e=function(t,e){let n="",r=0,i=-1,o=0,s=null;for(let c=0;c<=t.length;++c){if(c<t.length)s=t[c];else{if("/"===s)break;s="/"}if("/"===s){if(i===c-1||1===o);else if(2===o){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){if(n.length>2){const t=n.lastIndexOf("/");-1===t?(n="",r=0):(n=n.slice(0,t),r=n.length-1-n.lastIndexOf("/")),i=c,o=0;continue}if(n.length>0){n="",r=0,i=c,o=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(i+1,c)}`:n=t.slice(i+1,c),r=c-i-1;i=c,o=0}else"."===s&&-1!==o?++o:o=-1}return n}(e,!n),n&&!Aa(e)?`/${e}`:e.length>0?e:"."};var Aa=function(t){return Ta.test(t)},_a=/^\s*at .*(?:\S:\d+|\(native\))/m,Ma=/^(?:eval@)?(?:\[native code\])?$/;function Ca(t){if(!t.includes(":"))return[t];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!e)return[t];let n=e[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const t=new URL(n);t.searchParams.delete("import"),t.searchParams.delete("browserv"),n=t.pathname+t.hash+t.search}if(n.startsWith("/@fs/")){const t=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(t?5:4)}return[n,e[2]||void 0,e[3]||void 0]}function Ia(t){const e=t.trim();return _a.test(e)?function(t){let e=t.trim();if(!_a.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[i,o,s]=Ca(r?r[1]:n);let c=r&&n||"",a=i&&["eval","<anonymous>"].includes(i)?void 0:i;if(!a||!o||!s)return null;c.startsWith("async ")&&(c=c.slice(6));a.startsWith("file://")&&(a=a.slice(7));a=a.startsWith("node:")||a.startsWith("internal:")?a:ka(a),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,""));return{method:c,file:a,line:Number.parseInt(o),column:Number.parseInt(s)}}(e):function(t){let e=t.trim();if(Ma.test(e))return null;if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,r=e.match(n),i=r&&r[1]?r[1]:void 0,[o,s,c]=Ca(e.replace(n,""));return o&&s&&c?{file:o,method:i||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(e)}m(),m(),m();var Na=/^[A-Za-z]:\//;var Pa=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var Ra=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(Na,(t=>t.toUpperCase())):t}(t)))).length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/";i&&0!==i.length&&(e=`${i}/${e}`,n=Ba(i))}return e=function(t,e){let n="",r=0,i=-1,o=0,s=null;for(let c=0;c<=t.length;++c){if(c<t.length)s=t[c];else{if("/"===s)break;s="/"}if("/"===s){if(i===c-1||1===o);else if(2===o){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){if(n.length>2){const t=n.lastIndexOf("/");-1===t?(n="",r=0):(n=n.slice(0,t),r=n.length-1-n.lastIndexOf("/")),i=c,o=0;continue}if(n.length>0){n="",r=0,i=c,o=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(i+1,c)}`:n=t.slice(i+1,c),r=c-i-1;i=c,o=0}else"."===s&&-1!==o?++o:o=-1}return n}(e,!n),n&&!Ba(e)?`/${e}`:e.length>0?e:"."};var Ba=function(t){return Pa.test(t)};function Da(t,e){const n=function n(r){const i=function(...t){return e.apply(r,t)};Object.assign(i,e),i.withContext=()=>i.bind(r),i.setContext=(t,e)=>{r[t]=e},i.mergeContext=t=>{Object.assign(r,t)};for(const e of t)Object.defineProperty(i,e,{get:()=>n({...r,[e]:!0})});return i}({});return n.fn=e,n}function La(t){const e=[t.name];let n=t;for(;null==n?void 0:n.suite;)n=n.suite,(null==n?void 0:n.name)&&e.unshift(n.name);return n!==t.file&&e.unshift(t.file.name),e}function Fa(t,e=" > "){return La(t).slice(1).join(e)}var qa=class extends Error{constructor(t,e,n){super(t),b(this,"code","VITEST_PENDING"),b(this,"taskId"),this.message=t,this.note=n,this.taskId=e.id}},Ja=Date.now,Ua={tasks:[],currentSuite:null};function Wa(t,e,n=!1,r){if(e<=0||e===Number.POSITIVE_INFINITY)return t;const{setTimeout:i,clearTimeout:o}=Dn();return function(...s){const c=Ja();return new Promise(((a,u)=>{var l;const f=i((()=>{o(f),h()}),e);function h(){u(function(t,e,n){const r=`${t?"Hook":"Test"} timed out in ${e}ms.\nIf this is a long-running ${t?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${t?"hookTimeout":"testTimeout"}".`,i=new Error(r);(null==n?void 0:n.stack)&&(i.stack=n.stack.replace(i.message,n.message));return i}(n,e,r))}function d(t){o(f),Ja()-c>=e?h():a(t)}function p(t){o(f),u(t)}null==(l=f.unref)||l.call(f);try{const e=t(...s);"object"==typeof e&&null!=e&&"function"==typeof e.then?e.then(d,p):d(e)}catch(t){p(t)}}))}}var Ha=new WeakMap,Xa=new WeakMap,za=new WeakMap;var Va=new Map,Ka=new Map;function Ga(t,e){return n=>{const r=n||e;if(!r)return t({});const i=(o=r,Xa.get(o));var o;if(!(null==i?void 0:i.length))return t(r);const s=Qa(t),c=i.some((({auto:t})=>t));if(!s.length&&!c)return t(r);Va.get(r)||Va.set(r,new Map);const a=Va.get(r);Ka.has(r)||Ka.set(r,[]);const u=Ka.get(r),l=Ya(i.filter((({prop:t,auto:e})=>e||s.includes(t))));if(!l.length)return t(r);return async function(){for(const t of l){if(a.has(t))continue;const e=t.isFn?await Za(t.value,r,u):t.value;r[t.prop]=e,a.set(t,e),u.unshift((()=>{a.delete(t)}))}}().then((()=>t(r)))}}async function Za(t,e,n){const r=mn();let i=!1;const o=t(e,(async t=>{i=!0,r.resolve(t);const e=mn();n.push((async()=>{e.resolve(),await o})),await e})).catch((t=>{if(i)throw t;r.reject(t)}));return r}function Ya(t,e=new Set,n=[]){return t.forEach((t=>{if(!n.includes(t))if(t.isFn&&t.deps){if(e.has(t))throw new Error(`Circular fixture dependency detected: ${t.prop} <- ${[...e].reverse().map((t=>t.prop)).join(" <- ")}`);e.add(t),Ya(t.deps,e,n),n.push(t),e.clear()}else n.push(t)})),n}function Qa(t){let e=t.toString();/__async\(this, (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(e)&&(e=e.split("__async(this,")[1]);const n=e.match(/[^(]*\(([^)]*)/);if(!n)return[];const r=tu(n[1]);if(!r.length)return[];let i=r[0];if("__VITEST_FIXTURE_INDEX__"in t&&(i=r[t.__VITEST_FIXTURE_INDEX__],!i))return[];if(!i.startsWith("{")||!i.endsWith("}"))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${i}".`);const o=tu(i.slice(1,-1).replace(/\s/g,"")).map((t=>t.replace(/:.*|=.*/g,""))),s=o.at(-1);if(s&&s.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${s}".`);return o}function tu(t){const e=[],n=[];let r=0;for(let i=0;i<t.length;i++)if("{"===t[i]||"["===t[i])n.push("{"===t[i]?"}":"]");else if(t[i]===n[n.length-1])n.pop();else if(!n.length&&","===t[i]){const n=t.substring(r,i).trim();n&&e.push(n),r=i+1}const i=t.substring(r).trim();return i&&e.push(i),e}var eu,nu,ru,iu=function(){function t(t,e,n){var r;const i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",o=Ua.currentSuite||nu;let{options:s,handler:c}=fu(e,n);const a=s.concurrent||this.concurrent||!1===s.sequential,u=s.sequential||this.sequential||!1===s.concurrent;s={...null==o?void 0:o.options,...s,shuffle:this.shuffle??s.shuffle??(null==(r=null==o?void 0:o.options)?void 0:r.shuffle)??(null==eu?void 0:eu.config.sequence.shuffle)};const l=a||s.concurrent&&!u,f=u||s.sequential&&!a;return s.concurrent=l&&!f,s.sequential=f&&!l,function(t,e=()=>{},n,r,i){const o=[];let s;f(!0);const c=function(t="",e={}){var n;const r=(null==e?void 0:e.timeout)??eu.config.testTimeout,s={id:"",name:t,suite:null==(n=Ua.currentSuite)?void 0:n.suite,each:e.each,fails:e.fails,context:void 0,type:"test",file:void 0,timeout:r,retry:e.retry??eu.config.retry,repeats:e.repeats,mode:e.only?"only":e.skip?"skip":e.todo?"todo":"run",meta:e.meta??Object.create(null)},c=e.handler;(e.concurrent||!e.sequential&&eu.config.sequence.concurrent)&&(s.concurrent=!0),s.shuffle=null==i?void 0:i.shuffle;const a=function(t,e){var n;const r=function(){throw new Error("done() callback is deprecated, use promise instead")};return r.task=t,r.skip=e=>{throw t.result??(t.result={state:"skip"}),t.result.pending=!0,new qa("test is skipped; abort execution",t,e)},r.onTestFailed=(n,r)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Wa(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},r.onTestFinished=(n,r)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Wa(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},(null==(n=e.extendTaskContext)?void 0:n.call(e,r))||r}(s,eu);var u,l;if(Object.defineProperty(s,"context",{value:a,enumerable:!1}),u=a,l=e.fixtures,Xa.set(u,l),c&&function(t,e){Ha.set(t,e)}(s,Wa(function(t,e){return async(...n)=>{const r=await t(...n);if(e.promises){const t=(await Promise.allSettled(e.promises)).map((t=>"rejected"===t.status?t.reason:void 0)).filter(Boolean);if(t.length)throw t}return r}}(Ga(c,a),s),r)),eu.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=yu(e,s.each??!1);n&&(s.location=n)}return o.push(s),s},a=du((function(t,e,n){let{options:r,handler:o}=fu(e,n);"object"==typeof i&&(r=Object.assign({},i,r)),r.concurrent=this.concurrent||!this.sequential&&(null==r?void 0:r.concurrent),r.sequential=this.sequential||!this.concurrent&&(null==r?void 0:r.sequential);c(pu(t),{...this,...r,handler:o}).type="test"})),u={type:"collector",name:t,mode:n,suite:s,options:i,test:a,tasks:o,collect:d,task:c,clear:h,on:l};function l(t,...e){var n;(n=s,za.get(n))[t].push(...e)}function f(e){var o,c,a;if("number"==typeof i&&(i={timeout:i}),s={id:"",type:"suite",name:t,suite:null==(o=Ua.currentSuite)?void 0:o.suite,mode:n,each:r,file:void 0,shuffle:null==i?void 0:i.shuffle,tasks:[],meta:Object.create(null),concurrent:null==i?void 0:i.concurrent},eu&&e&&eu.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=yu(e,s.each??!1);n&&(s.location=n)}c=s,a={beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]},za.set(c,a)}function h(){o.length=0,f(!1)}async function d(t){if(!t)throw new TypeError("File is required to collect tasks.");e&&await async function(t,e){const n=Ua.currentSuite;Ua.currentSuite=t,await e(),Ua.currentSuite=n}(u,(()=>e(a)));const n=[];for(const e of o)n.push("collector"===e.type?await e.collect(t):e);return s.file=t,s.tasks=n,n.forEach((e=>{e.file=t})),s}return function(t){var e;null==(e=Ua.currentSuite)||e.tasks.push(t)}(u),u}(pu(t),c,i,this.each,s)}return t.each=function(t,...e){const n=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&e.length&&(t=mu(t,e)),(e,r,i)=>{const o=pu(e),s=t.every(Array.isArray),{options:c,handler:a}=fu(r,i),u="function"==typeof r&&"object"==typeof i;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(bu(o,r,e),s?()=>a(...r):()=>a(t),c):n(bu(o,r,e),c,s?()=>a(...r):()=>a(t))})),this.setContext("each",void 0)}},t.for=function(t,...e){return Array.isArray(t)&&e.length&&(t=mu(t,e)),(e,n,r)=>{const i=pu(e),{options:o,handler:s}=fu(n,r);t.forEach(((t,e)=>{iu(bu(i,cn(t),e),o,(()=>s(t)))}))}},t.skipIf=t=>t?iu.skip:iu,t.runIf=t=>t?iu:iu.skip,Da(["concurrent","sequential","shuffle","skip","only","todo"],t)}(),ou=du((function(t,e,n){lu().test.fn.call(this,pu(t),e,n)})),su=iu,cu=ou;function au(t,e){if(!t)throw new Error(`Vitest failed to find ${e}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function uu(){return au(eu,"the runner"),eu}function lu(){const t=Ua.currentSuite||nu;return au(t,"the current suite"),t}function fu(t,e){let n={},r=()=>{};if("object"==typeof e){if("object"==typeof t)throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=e}else"number"==typeof e?n={timeout:e}:"object"==typeof t&&(n=t);if("function"==typeof t){if("function"==typeof e)throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=t}else"function"==typeof e&&(r=e);return{options:n,handler:r}}function hu(t,e){const n=t;n.each=function(t,...e){const n=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&e.length&&(t=mu(t,e)),(e,r,i)=>{const o=pu(e),s=t.every(Array.isArray),{options:c,handler:a}=fu(r,i),u="function"==typeof r&&"object"==typeof i;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(bu(o,r,e),s?()=>a(...r):()=>a(t),c):n(bu(o,r,e),c,s?()=>a(...r):()=>a(t))})),this.setContext("each",void 0)}},n.for=function(t,...e){const n=this.withContext();return Array.isArray(t)&&e.length&&(t=mu(t,e)),(e,r,i)=>{const o=pu(e),{options:s,handler:c}=fu(r,i);t.forEach(((t,e)=>{const r=e=>c(t,e);r.__VITEST_FIXTURE_INDEX__=1,r.toString=()=>c.toString(),n(bu(o,cn(t),e),s,r)}))}},n.skipIf=function(t){return t?this.skip:this},n.runIf=function(t){return t?this:this.skip},n.extend=function(t){const n=function(t,e,n){const r=["auto","injected"],i=Object.entries(t).map((([t,e])=>{const i={value:e};if(Array.isArray(e)&&e.length>=2&&an(e[1])&&Object.keys(e[1]).some((t=>r.includes(t)))){Object.assign(i,e[1]);const r=e[0];i.value=i.injected?n(t)??r:r}return i.prop=t,i.isFn="function"==typeof i.value,i}));return Array.isArray(e.fixtures)?e.fixtures=e.fixtures.concat(i):e.fixtures=i,i.forEach((t=>{if(t.isFn){const n=Qa(t.value);n.length&&(t.deps=e.fixtures.filter((({prop:e})=>e!==t.prop&&n.includes(e))))}})),e}(t,e||{},(t=>{var e,n;return null==(n=(e=uu()).injectValue)?void 0:n.call(e,t)}));return du((function(t,e,n){lu().test.fn.call(this,pu(t),e,n)}),n)};const r=Da(["concurrent","sequential","skip","only","todo","fails"],n);return e&&r.mergeContext(e),r}function du(t,e){return hu(t,e)}function pu(t){return"string"==typeof t?t:"function"==typeof t?t.name||"<anonymous>":String(t)}function bu(t,e,n){t.includes("%#")&&(t=t.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/__vitest_escaped_%__/g,"%%"));const r=t.split("%").length-1;if(t.includes("%f")){(t.match(/%f/g)||[]).forEach(((n,r)=>{if(function(t){if(!Number.isNaN(t))return!1;const e=new Float64Array(1);return e[0]=t,new Uint32Array(e.buffer)[1]>>>31==1}(e[r])||Object.is(e[r],-0)){let e=0;t=t.replace(/%f/g,(t=>(e++,e===r+1?"-%f":t)))}}))}let i=nn(t,...e.slice(0,r));return an(e[0])&&(i=i.replace(/\$([$\w.]+)/g,((t,n)=>{var r,i;return function(t,e={}){void 0===e.truncate&&(e.truncate=40);const n=rn(t,e),r=Object.prototype.toString.call(t);if(e.truncate&&n.length>=e.truncate){if("[object Function]"===r){const e=t;return e.name?`[Function: ${e.name}]`:"[Function]"}if("[object Array]"===r)return`[ Array(${t.length}) ]`;if("[object Object]"===r){const e=Object.keys(t);return`{ Object (${e.length>2?`${e.splice(0,2).join(", ")}, ...`:e.join(", ")}) }`}return n}return n}(function(t,e,n){const r=e.replace(/\[(\d+)\]/g,".$1").split(".");let i=t;for(const t of r)if(i=new Object(i)[t],void 0===i)return n;return i}(e[0],n),{truncate:null==(i=null==(r=null==eu?void 0:eu.config)?void 0:r.chaiConfig)?void 0:i.truncateThreshold})}))),i}function mu(t,e){const n=t.join("").trim().replace(/ /g,"").split("\n").map((t=>t.split("|")))[0],r=[];for(let t=0;t<Math.floor(e.length/n.length);t++){const i={};for(let r=0;r<n.length;r++)i[n[r]]=e[t*n.length+r];r.push(i)}return r}function yu(t,e){const n=t.split("\n").slice(1);for(const t of n){const n=Ia(t);if(n&&n.file===ru)return{line:n.line,column:e?n.column+1:n.column}}}function gu(){return uu().config.hookTimeout}Symbol.for("VITEST_CLEANUP_TIMEOUT"),Symbol.for("VITEST_CLEANUP_STACK_TRACE"),wu("onTestFailed",((t,e,n)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Wa(e,n??gu(),!0,new Error("STACK_TRACE_ERROR")))})),wu("onTestFinished",((t,e,n)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Wa(e,n??gu(),!0,new Error("STACK_TRACE_ERROR")))}));function wu(t,e){return(e,n)=>{sn(e,`"${t}" callback`,["function"]);throw new Error(`Hook ${t}() can only be called inside a test`)}}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Date.now;m(),m();function vu(){const t=globalThis.__vitest_worker__;if(!t){throw new Error('Vitest failed to access its internal state.\n\nOne of the following is possible:\n- "vitest" is imported directly without running "vitest" command\n- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\n')}return t}function $u(){const t=vu();return t?.environment.name}function xu(){return"undefined"!=typeof process&&!!process.send}async function Su(){await function(){const{setTimeout:t}=Dn();return new Promise((e=>t(e,0)))}();const t=vu(),e=[];let n=0;for(const r of t.moduleCache.values())r.promise&&!r.evaluated&&e.push(r.promise),r.resolving&&n++;(e.length||n)&&(await Promise.allSettled(e),await Su())}m();var ju="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Eu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}m();var Ou=",".charCodeAt(0),Tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ku=new Uint8Array(64),Au=new Uint8Array(128);for(let t=0;t<64;t++){const e=Tu.charCodeAt(t);ku[t]=e,Au[e]=t}function _u(t,e){let n=0,r=0,i=0;do{const e=t.next();i=Au[e],n|=(31&i)<<r,r+=5}while(32&i);const o=1&n;return n>>>=1,o&&(n=-2147483648|-n),e+n}function Mu(t,e){return!(t.pos>=e)&&t.peek()!==Ou}var Cu=class{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,r=e.indexOf(t,n);return-1===r?e.length:r}};function Iu(t){t.sort(Nu)}function Nu(t,e){return t[0]-e[0]}var Pu,Ru=/^[\w+.-]+:\/\//,Bu=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Du=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Lu(t){return t.startsWith("/")}function Fu(t){return/^[.?#]/.test(t)}function qu(t){const e=Bu.exec(t);return Ju(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Ju(t,e,n,r,i,o,s){return{scheme:t,user:e,host:n,port:r,path:i,query:o,hash:s,type:Pu.Absolute}}function Uu(t){if(function(t){return t.startsWith("//")}(t)){const e=qu("http:"+t);return e.scheme="",e.type=Pu.SchemeRelative,e}if(Lu(t)){const e=qu("http://foo.com"+t);return e.scheme="",e.host="",e.type=Pu.AbsolutePath,e}if(function(t){return t.startsWith("file:")}(t))return function(t){const e=Du.exec(t),n=e[2];return Ju("file:","",e[1]||"","",Lu(n)?n:"/"+n,e[3]||"",e[4]||"")}(t);if(function(t){return Ru.test(t)}(t))return qu(t);const e=qu("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?Pu.Query:t.startsWith("#")?Pu.Hash:Pu.RelativePath:Pu.Empty,e}function Wu(t,e){const n=e<=Pu.RelativePath,r=t.path.split("/");let i=1,o=0,s=!1;for(let t=1;t<r.length;t++){const e=r[t];e?(s=!1,"."!==e&&(".."!==e?(r[i++]=e,o++):o?(s=!0,o--,i--):n&&(r[i++]=e))):s=!0}let c="";for(let t=1;t<i;t++)c+="/"+r[t];(!c||s&&!c.endsWith("/.."))&&(c+="/"),t.path=c}function Hu(t,e){if(!t&&!e)return"";const n=Uu(t);let r=n.type;if(e&&r!==Pu.Absolute){const t=Uu(e),i=t.type;switch(r){case Pu.Empty:n.hash=t.hash;case Pu.Hash:n.query=t.query;case Pu.Query:case Pu.RelativePath:!function(t,e){Wu(e,e.type),"/"===t.path?t.path=e.path:t.path=function(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}(e.path)+t.path}(n,t);case Pu.AbsolutePath:n.user=t.user,n.host=t.host,n.port=t.port;case Pu.SchemeRelative:n.scheme=t.scheme}i>r&&(r=i)}Wu(n,r);const i=n.query+n.hash;switch(r){case Pu.Hash:case Pu.Query:return i;case Pu.RelativePath:{const r=n.path.slice(1);return r?Fu(e||t)&&!Fu(r)?"./"+r+i:r+i:i||"."}case Pu.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function Xu(t,e){return e&&!e.endsWith("/")&&(e+="/"),Hu(t,e)}!function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"}(Pu||(Pu={}));function zu(t,e){for(let n=e;n<t.length;n++)if(!Vu(t[n]))return n;return t.length}function Vu(t){for(let e=1;e<t.length;e++)if(t[e][0]<t[e-1][0])return!1;return!0}function Ku(t,e){return e||(t=t.slice()),t.sort(Gu)}function Gu(t,e){return t[0]-e[0]}var Zu=!1;function Yu(t,e,n){for(let r=n+1;r<t.length&&t[r][0]===e;n=r++);return n}function Qu(t,e,n){for(let r=n-1;r>=0&&t[r][0]===e;n=r--);return n}function tl(t,e,n,r){const{lastKey:i,lastNeedle:o,lastIndex:s}=n;let c=0,a=t.length-1;if(r===i){if(e===o)return Zu=-1!==s&&t[s][0]===e,s;e>=o?c=-1===s?0:s:a=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=function(t,e,n,r){for(;n<=r;){const i=n+(r-n>>1),o=t[i][0]-e;if(0===o)return Zu=!0,i;o<0?n=i+1:r=i-1}return Zu=!1,n-1}(t,e,c,a)}var el=class{constructor(t,e){const n="string"==typeof t;if(!n&&t._decodedMemo)return t;const r=n?JSON.parse(t):t,{version:i,file:o,names:s,sourceRoot:c,sources:a,sourcesContent:u}=r;this.version=i,this.file=o,this.names=s||[],this.sourceRoot=c,this.sources=a,this.sourcesContent=u,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;const l=Xu(c||"",function(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}(e));this.resolvedSources=a.map((t=>Xu(t||"",l)));const{mappings:f}=r;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(t,e){const n=zu(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=zu(t,r+1))t[r]=Ku(t[r],e);return t}(f,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function nl(t){var e;return(e=t)._decoded||(e._decoded=function(t){const{length:e}=t,n=new Cu(t),r=[];let i=0,o=0,s=0,c=0,a=0;do{const t=n.indexOf(";"),e=[];let u=!0,l=0;for(i=0;n.pos<t;){let r;i=_u(n,i),i<l&&(u=!1),l=i,Mu(n,t)?(o=_u(n,o),s=_u(n,s),c=_u(n,c),Mu(n,t)?(a=_u(n,a),r=[i,o,s,c,a]):r=[i,o,s,c]):r=[i],e.push(r),n.pos++}u||Iu(e),r.push(e),n.pos=t+1}while(n.pos<=e);return r}(t._encoded))}function rl(t,e){let{line:n,column:r,bias:i}=e;if(n--,n<0)throw new Error("`line` must be greater than 0 (lines start at line 1)");if(r<0)throw new Error("`column` must be greater than or equal to 0 (columns start at column 0)");const o=nl(t);if(n>=o.length)return il(null,null,null,null);const s=o[n],c=function(t,e,n,r,i){let o=tl(t,r,e,n);Zu?o=(-1===i?Yu:Qu)(t,r,o):-1===i&&o++;return-1===o||o===t.length?-1:o}(s,t._decodedMemo,n,r,i||1);if(-1===c)return il(null,null,null,null);const a=s[c];if(1===a.length)return il(null,null,null,null);const{names:u,resolvedSources:l}=t;return il(l[a[1]],a[2]+1,a[3],5===a.length?u[a[4]]:null)}function il(t,e,n,r){return{source:t,line:e,column:n,name:r}}function ol(t){return null!=t}function sl(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var cl=/^\s*at .*(?:\S:\d+|\(native\))/m,al=/^(?:eval@)?(?:\[native code\])?$/,ul=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function ll(t){if(!t.includes(":"))return[t];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!e)return[t];let n=e[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const t=new URL(n);t.searchParams.delete("import"),t.searchParams.delete("browserv"),n=t.pathname+t.hash+t.search}if(n.startsWith("/@fs/")){const t=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(t?5:4)}return[n,e[2]||void 0,e[3]||void 0]}function fl(t,e={}){const{ignoreStackEntries:n=ul}=e,r=cl.test(t)?function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(!cl.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[i,o,s]=ll(r?r[1]:n);let c=r&&n||"",a=i&&["eval","<anonymous>"].includes(i)?void 0:i;return a&&o&&s?(c.startsWith("async ")&&(c=c.slice(6)),a.startsWith("file://")&&(a=a.slice(7)),a=a.startsWith("node:")||a.startsWith("internal:")?a:Ra(a),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"")),{method:c,file:a,line:Number.parseInt(o),column:Number.parseInt(s)}):null}(t))).filter(ol)}(t):function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(al.test(e))return null;if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,r=e.match(n),i=r&&r[1]?r[1]:void 0,[o,s,c]=ll(e.replace(n,""));return o&&s&&c?{file:o,method:i||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(t))).filter(ol)}(t);return r.map((t=>{var r;e.getUrlId&&(t.file=e.getUrlId(t.file));const i=null==(r=e.getSourceMap)?void 0:r.call(e,t.file);if(!i||"object"!=typeof i||!i.version)return hl(n,t.file)?null:t;const o=new el(i),{line:s,column:c,source:a,name:u}=rl(o,t);let l=t.file;if(a){const e=t.file.startsWith("file://")?t.file:`file://${t.file}`,n=i.sourceRoot?new URL(i.sourceRoot,e):e;l=new URL(a,n).pathname}return hl(n,l)?null:null!=s&&null!=c?{line:s,column:c,file:l,method:u||t.method}:t})).filter((t=>null!=t))}function hl(t,e){return t.some((t=>e.match(t)))}try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&((r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`})}catch(t){}try{const t=require("util");!!t.inspect&&t.inspect.custom}catch(t){0}var dl,pl,{AsymmetricMatcher:bl,DOMCollection:ml,DOMElement:yl,Immutable:gl,ReactElement:wl,ReactTestComponent:vl}=de;function $l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}!function(){return pl?dl:(pl=1,h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,p=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,l=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,b=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,g=/[\t\v\f\ufeff\p{Zs}]+/uy,c=/\r?\n|[\r\u2028\u2029]/y,a=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,r=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,y=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,m=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(c.source),dl=function*(w,{jsx:v=!1}={}){var $,x,S,j,E,O,T,k,A,_,M,C,I,N;for(({length:O}=w),j=0,E="",N=[{tag:"JS"}],$=[],M=0,C=!1;j<O;){switch((k=N[N.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===w[j]&&(y.test(E)||o.test(E))&&(h.lastIndex=j,T=h.exec(w))){j=h.lastIndex,E=T[0],C=!0,yield{type:"RegularExpressionLiteral",value:T[0],closed:void 0!==T[1]&&"\\"!==T[1]};continue}if(f.lastIndex=j,T=f.exec(w)){switch(I=T[0],A=f.lastIndex,_=I,I){case"(":"?NonExpressionParenKeyword"===E&&N.push({tag:"JSNonExpressionParen",nesting:M}),M++,C=!1;break;case")":M--,C=!0,"JSNonExpressionParen"===k.tag&&M===k.nesting&&(N.pop(),_="?NonExpressionParenEnd",C=!1);break;case"{":f.lastIndex=0,S=!m.test(E)&&(y.test(E)||o.test(E)),$.push(S),C=!1;break;case"}":switch(k.tag){case"InterpolationInTemplate":if($.length===k.nesting){b.lastIndex=j,T=b.exec(w),j=b.lastIndex,E=T[0],"${"===T[1]?(E="?InterpolationInTemplate",C=!1,yield{type:"TemplateMiddle",value:T[0]}):(N.pop(),C=!0,yield{type:"TemplateTail",value:T[0],closed:"`"===T[1]});continue}break;case"InterpolationInJSX":if($.length===k.nesting){N.pop(),j+=1,E="}",yield{type:"JSXPunctuator",value:"}"};continue}}_=(C=$.pop())?"?ExpressionBraceEnd":"}";break;case"]":C=!0;break;case"++":case"--":_=C?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(v&&(y.test(E)||o.test(E))){N.push({tag:"JSXTag"}),j+=1,E="<",yield{type:"JSXPunctuator",value:I};continue}C=!1;break;default:C=!1}j=A,E=_,yield{type:"Punctuator",value:I};continue}if(t.lastIndex=j,T=t.exec(w)){switch(j=t.lastIndex,_=T[0],T[0]){case"for":case"if":case"while":case"with":"."!==E&&"?."!==E&&(_="?NonExpressionParenKeyword")}E=_,C=!o.test(T[0]),yield{type:"#"===T[1]?"PrivateIdentifier":"IdentifierName",value:T[0]};continue}if(p.lastIndex=j,T=p.exec(w)){j=p.lastIndex,E=T[0],C=!0,yield{type:"StringLiteral",value:T[0],closed:void 0!==T[2]};continue}if(l.lastIndex=j,T=l.exec(w)){j=l.lastIndex,E=T[0],C=!0,yield{type:"NumericLiteral",value:T[0]};continue}if(b.lastIndex=j,T=b.exec(w)){j=b.lastIndex,E=T[0],"${"===T[1]?(E="?InterpolationInTemplate",N.push({tag:"InterpolationInTemplate",nesting:$.length}),C=!1,yield{type:"TemplateHead",value:T[0]}):(C=!0,yield{type:"NoSubstitutionTemplate",value:T[0],closed:"`"===T[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=j,T=n.exec(w)){switch(j=n.lastIndex,_=T[0],T[0]){case"<":N.push({tag:"JSXTag"});break;case">":N.pop(),"/"===E||"JSXTagEnd"===k.tag?(_="?JSX",C=!0):N.push({tag:"JSXChildren"});break;case"{":N.push({tag:"InterpolationInJSX",nesting:$.length}),_="?InterpolationInJSX",C=!1;break;case"/":"<"===E&&(N.pop(),"JSXChildren"===N[N.length-1].tag&&N.pop(),N.push({tag:"JSXTagEnd"}))}E=_,yield{type:"JSXPunctuator",value:T[0]};continue}if(e.lastIndex=j,T=e.exec(w)){j=e.lastIndex,E=T[0],yield{type:"JSXIdentifier",value:T[0]};continue}if(r.lastIndex=j,T=r.exec(w)){j=r.lastIndex,E=T[0],yield{type:"JSXString",value:T[0],closed:void 0!==T[2]};continue}break;case"JSXChildren":if(i.lastIndex=j,T=i.exec(w)){j=i.lastIndex,E=T[0],yield{type:"JSXText",value:T[0]};continue}switch(w[j]){case"<":N.push({tag:"JSXTag"}),j++,E="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":N.push({tag:"InterpolationInJSX",nesting:$.length}),j++,E="?InterpolationInJSX",C=!1,yield{type:"JSXPunctuator",value:"{"};continue}}g.lastIndex=j,(T=g.exec(w))?(j=g.lastIndex,yield{type:"WhiteSpace",value:T[0]}):(c.lastIndex=j,(T=c.exec(w))?(j=c.lastIndex,C=!1,s.test(E)&&(E="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:T[0]}):(a.lastIndex=j,(T=a.exec(w))?(j=a.lastIndex,u.test(T[0])&&(C=!1,s.test(E)&&(E="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:T[0],closed:void 0!==T[1]}):(d.lastIndex=j,(T=d.exec(w))?(j=d.lastIndex,C=!1,yield{type:"SingleLineComment",value:T[0]}):(j+=(x=String.fromCodePoint(w.codePointAt(j))).length,E=x,C=!1,yield{type:k.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:x}))))}});var t,e,n,r,i,o,s,c,a,u,l,f,h,d,p,b,m,y,g}();var xl=["implements","interface","let","package","private","protected","public","static","yield"];new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),new Set(xl);var Sl=Object.entries({reset:[0,0],bold:[1,22,"[22m[1m"],dim:[2,22,"[22m[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 jl(t){return String(t)}jl.open="",jl.close="",function(t=!1){let e=function(t=!1){let e="undefined"!=typeof process?process:void 0,n=(null==e?void 0:e.env)||{},r=(null==e?void 0:e.argv)||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===(null==e?void 0:e.platform)||t&&"dumb"!==n.TERM||"CI"in n)||"undefined"!=typeof window&&!!window.chrome}(t),n=(t,e,n=t)=>{let r=r=>{let i=String(r),o=i.indexOf(e,t.length);return~o?t+((t,e,n,r)=>{let i="",o=0;do{i+=t.substring(o,r)+n,o=r+e.length,r=t.indexOf(e,o)}while(~r);return i+t.substring(o)})(i,e,n,o)+e:t+i+e};return r.open=t,r.close=e,r},r={isColorSupported:e},i=t=>`[${t}m`;for(let[t,o]of Sl)r[t]=e?n(i(o[0]),i(o[1]),o[2]):jl}();var El=/\r?\n/;function Ol(t,e,n){const r=t.split(El),i=/\r\n/.test(t)?2:1;let o=0;if(e>r.length)return t.length;for(let t=0;t<e-1;t++)o+=r[t].length+i;return o+n}var Tl=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function kl(t,e,n){const r=function(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(El),r=/\r\n/.test(t)?2:1;let i=0,o=0;for(;o<n.length;o++){const t=n[o].length+r;if(i+t>=e)break;i+=t}return o+1}(e,n),i=e.split(El)[r-1].match(/^\s*/)[0]||"",o=i.includes("\t")?`${i}\t`:`${i} `,s=t.trim().replace(/\\/g,"\\\\").split(/\n/g),c="`";return s.length<=1?`${c}${s.join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}\n${s.map((t=>t?o+t:"")).join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\n${i}${c}`}var Al="toMatchInlineSnapshot",_l="toThrowErrorMatchingInlineSnapshot";var Ml=/(?: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 Cl(t,e,n,r){const{code:i,index:o}=function(t,e){const n=e-Al.length;if(t.slice(n,e)===Al)return{code:t.slice(n),index:n};const r=e-_l.length;return t.slice(e-r,e)===_l?{code:t.slice(e-r),index:e-r}:{code:t.slice(e),index:e}}(t,n),s=Ml.exec(i),c=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(i);if(!s||s.index!==(null==c?void 0:c.index))return function(t,e,n,r){let i=t.slice(n);const o=Tl.exec(i);if(!o)return!1;i=i.slice(o.index);let s=function(t){let e=-1,n=null,r=0,i=0,o=null;for(;e<=t.length;){o=t[e],e++;const s=t[e];if(('"'===s||"'"===s||"`"===s)&&"\\"!==o&&(n===s?n=null:n||(n=s)),n||("("===s&&r++,")"===s&&i++),r&&i&&r===i)return e}return null}(i);if(null===s)return!1;s+=n+o.index;const c=function(t,e){let n=1,r=0;for(;n!==r&&e<t.length;){const i=t[e++];"{"===i?n++:"}"===i&&r++}return e}(t,n+o.index+o[0].length),a=`, ${kl(r,t,n)}`;return c===s?e.appendLeft(s,a):e.overwrite(c,s,a),!0}(t,e,o,r);const a=s[1],u=o+s.index+s[0].length,l=kl(r,t,o);if(")"===a)return e.appendRight(u-1,l),!0;const f=new RegExp(`(?:^|[^\\\\])${a}`).exec(t.slice(u));if(!f)return!1;const h=u+f.index+f[0].length;return e.overwrite(u-1,h,l),!0}var Il=/^([^\S\n]*)\S/m;function Nl(t){const e=t.match(Il);if(!e||!e[1])return t;const n=e[1],r=t.split(/\n/g);if(r.length<=2)return t;if(""!==r[0].trim()||""!==r[r.length-1].trim())return t;for(let e=1;e<r.length-1;e++)if(""!==r[e]){if(0!==r[e].indexOf(n))return t;r[e]=r[e].substring(n.length)}return r[r.length-1]="",t=r.join("\n")}var Pl,Rl={exports:{}};var Bl=$l(function(){if(Pl)return Rl.exports;Pl=1;var t=function(t,e){var n,r,i=1,o=0,s=0,c=String.alphabet;function a(t,e,r){if(r){for(n=e;(r=a(t,n))<76&&r>65;)++n;return+t.slice(e-1,n)}return(r=c&&c.indexOf(t.charAt(e)))>-1?r+76:(r=t.charCodeAt(e)||0)<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63}if((t+="")!=(e+=""))for(;i;)if(r=a(t,o++),i=a(e,s++),r<76&&i<76&&r>66&&i>66&&(r=a(t,o,o),i=a(e,s,o=n),s=n),r!=i)return r<i?-1:1;return 0};try{Rl.exports=t}catch(e){String.naturalCompare=t}return Rl.exports}()),Dl={serialize:(t,e,n,r,i,o)=>{const s=t.getMockName(),c="vi.fn()"===s?"":` ${s}`;let a="";if(0!==t.mock.calls.length){const s=n+e.indent;a=` {${e.spacingOuter}${s}"calls": ${o(t.mock.calls,e,s,r,i)}${e.min?", ":","}${e.spacingOuter}${s}"results": ${o(t.mock.results,e,s,r,i)}${e.min?"":","}${e.spacingOuter}${n}}`}return`[MockFunction${c}]${a}`},test:t=>t&&!!t._isMockFunction},{DOMCollection:Ll,DOMElement:Fl,Immutable:ql,ReactElement:Jl,ReactTestComponent:Ul,AsymmetricMatcher:Wl}=de,Hl=[Ul,Jl,Fl,Ll,ql,Wl,Dl];function Xl(t){Hl=[t].concat(Hl)}function zl(t){if(!/ \d+$/.test(t))throw new Error("Snapshot keys must end with a number.");return t.replace(/ \d+$/,"")}function Vl(t){return t.length>2&&t.startsWith("\n")&&t.endsWith("\n")?t.slice(1,-1):t}function Kl(t){return`\`${function(t){return t.replace(/`|\\|\$\{/g,"\\$&")}(t)}\``}function Gl(t){return t.replace(/\r\n|\r/g,"\n")}function Zl(t){const e=function(){var e,n;const r=/^( +)\}\s+$/m.exec(t||""),i=null==(e=null==r?void 0:r[1])?void 0:e.length;if(i)return i;const o=/^\n( +)"/.exec(t||"");return(null==(n=null==o?void 0:o[1])?void 0:n.length)||0}();let n=null==t?void 0:t.trim();return e&&(n=null==n?void 0:n.replace(new RegExp(`^${" ".repeat(e)}`,"gm"),"").replace(/ +\}$/,"}")),n}function Yl(t=[],e=[]){const n=Array.from(t);return e.forEach(((e,r)=>{const i=n[r];Array.isArray(t[r])?n[r]=Yl(t[r],e):sl(i)?n[r]=Ql(t[r],e):n[r]=e})),n}function Ql(t,e){if(sl(t)&&sl(e)){const n={...t};return Object.keys(e).forEach((r=>{sl(e[r])&&!e[r].$$typeof?r in t?n[r]=Ql(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Array.isArray(e[r])?n[r]=Yl(t[r],e[r]):Object.assign(n,{[r]:e[r]})})),n}return Array.isArray(t)&&Array.isArray(e)?Yl(t,e):t}var tf=class extends Map{constructor(t,e){super(e),this.defaultFn=t}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},ef=class extends tf{constructor(){super((()=>0)),b(this,"_total")}valueOf(){return this._total=this.total()}increment(t){void 0!==this._total&&this._total++,this.set(t,this.get(t)+1)}total(){if(void 0!==this._total)return this._total;let t=0;for(const e of this.values())t+=e;return t}};function nf(t,e){return t.file===e.file&&t.column===e.column&&t.line===e.line}var rf=class t{constructor(t,e,n,r){b(this,"_counters",new ef),b(this,"_dirty"),b(this,"_updateSnapshot"),b(this,"_snapshotData"),b(this,"_initialData"),b(this,"_inlineSnapshots"),b(this,"_inlineSnapshotStacks"),b(this,"_testIdToKeys",new tf((()=>[]))),b(this,"_rawSnapshots"),b(this,"_uncheckedKeys"),b(this,"_snapshotFormat"),b(this,"_environment"),b(this,"_fileExists"),b(this,"expand"),b(this,"_added",new ef),b(this,"_matched",new ef),b(this,"_unmatched",new ef),b(this,"_updated",new ef),this.testFilePath=t,this.snapshotPath=e;const{data:i,dirty:o}=function(t,e){const n=e.updateSnapshot,r=Object.create(null);let i="",o=!1;if(null!=t)try{i=t,new Function("exports",i)(r)}catch{}return"all"!==n&&"new"!==n||!i||(o=!0),{data:r,dirty:o}}(n,r);this._fileExists=null!=n,this._initialData={...i},this._snapshotData={...i},this._dirty=o,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=r.expand||!1,this._updateSnapshot=r.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...r.snapshotFormat},this._environment=r.snapshotEnvironment}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}static async create(e,n){const r=await n.snapshotEnvironment.resolvePath(e),i=await n.snapshotEnvironment.readSnapshotFile(r);return new t(e,r,i,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach((e=>{/ \d+$| > /.test(e.slice(t.length))&&this._uncheckedKeys.delete(e)}))}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter((e=>e.testId!==t)),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter((e=>e.testId!==t));for(const e of this._testIdToKeys.get(t)){const t=zl(e),n=this._counters.get(t);n>0&&((e in this._snapshotData||e in this._initialData)&&(this._snapshotData[e]=this._initialData[e]),this._counters.set(t,n-1))}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t)}_inferInlineSnapshotStack(t){const e=t.findIndex((t=>t.method.match(/__VITEST_(RESOLVES|REJECTS)__/)));if(-1!==e)return t[e+3];const n=t.findIndex((t=>t.method.includes("__INLINE_SNAPSHOT__")));return-1!==n?t[n+2]:null}_addSnapshot(t,e,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({snapshot:e,testId:n.testId,...n.stack}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:e}):this._snapshotData[t]=e}async save(){const t=Object.keys(this._snapshotData).length,e=this._inlineSnapshots.length,n=this._rawSnapshots.length,r=!t&&!e&&!n,i={deleted:!1,saved:!1};return!this._dirty&&!this._uncheckedKeys.size||r?!t&&this._fileExists&&("all"===this._updateSnapshot&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),i.deleted=!0):(t&&(await async function(t,e,n){const r=Object.keys(e).sort(Bl).map((t=>`exports[${Kl(t)}] = ${Kl(Gl(e[t]))};`)),i=`${t.getHeader()}\n\n${r.join("\n\n")}\n`,o=await t.readSnapshotFile(n);null!=o&&o===i||await t.saveSnapshotFile(n,i)}(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),e&&await async function(t,e){const n=(await Promise.resolve().then((()=>(R(),M)))).default,r=new Set(e.map((t=>t.file)));await Promise.all(Array.from(r).map((async r=>{const i=e.filter((t=>t.file===r)),o=await t.readSnapshotFile(r),s=new n(o);for(const t of i)Cl(o,s,Ol(o,t.line,t.column),t.snapshot);const c=s.toString();c!==o&&await t.saveSnapshotFile(r,c)})))}(this._environment,this._inlineSnapshots),n&&await async function(t,e){await Promise.all(e.map((async e=>{e.readonly||await t.saveSnapshotFile(e.file,e.snapshot)})))}(this._environment,this._rawSnapshots),i.saved=!0),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){"all"===this._updateSnapshot&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach((t=>delete this._snapshotData[t])),this._uncheckedKeys.clear())}match({testId:t,testName:e,received:n,key:r,inlineSnapshot:i,isInline:o,error:s,rawSnapshot:c}){var a,u;this._counters.increment(e);const l=this._counters.get(e);r||(r=function(t,e){return`${t} ${e}`}(e,l)),this._testIdToKeys.get(t).push(r),o&&void 0!==this._snapshotData[r]||this._uncheckedKeys.delete(r);let f=c&&"string"==typeof n?n:function(t,e=2,n={}){return Gl(he(t,{escapeRegex:!0,indent:e,plugins:Hl,printFunctionName:!1,...n}))}(n,void 0,this._snapshotFormat);var h;c||(f=(h=f).includes("\n")?`\n${h}\n`:h),c&&c.content&&c.content.match(/\r\n/)&&!f.match(/\r\n/)&&(c.content=Gl(c.content));const d=o?i:c?c.content:this._snapshotData[r],p=c?d:Zl(d),b=p===(c?f:Zl(f)),m=void 0!==d,y=o||this._fileExists||c&&null!=c.content;let g;if(!b||o||c||(this._snapshotData[r]=f),o){const e=function(t,e={}){if(!t||null===(n=t)||"function"!=typeof n&&"object"!=typeof n)return[];var n;if(t.stacks)return t.stacks;let r=fl(t.stack||t.stackStr||"",e);return e.frameFilter&&(r=r.filter((n=>!1!==e.frameFilter(t,n)))),t.stacks=r,r}(s||new Error("snapshot"),{ignoreStackEntries:[]}),n=this._inferInlineSnapshotStack(e);if(!n)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${JSON.stringify(e)}`);g=(null==(u=(a=this.environment).processStackTrace)?void 0:u.call(a,n))||n,g.column--;const r=this._inlineSnapshotStacks.filter((t=>nf(t,g)));if(r.length>0){this._inlineSnapshots=this._inlineSnapshots.filter((t=>!nf(t,g)));const t=r.find((t=>t.snapshot!==f));if(t)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:t.snapshot})}this._inlineSnapshotStacks.push({...g,testId:t,snapshot:f})}return m&&"all"===this._updateSnapshot||!(m&&y||"new"!==this._updateSnapshot&&"all"!==this._updateSnapshot)?("all"===this._updateSnapshot?b?this.matched.increment(t):(m?this.updated.increment(t):this.added.increment(t),this._addSnapshot(r,f,{stack:g,testId:t,rawSnapshot:c})):(this._addSnapshot(r,f,{stack:g,testId:t,rawSnapshot:c}),this.added.increment(t)),{actual:"",count:l,expected:"",key:r,pass:!0}):b?(this.matched.increment(t),{actual:"",count:l,expected:"",key:r,pass:!0}):(this.unmatched.increment(t),{actual:c?f:Vl(f),count:l,expected:void 0!==p?c?p:Vl(p):void 0,key:r,pass:!1})}async pack(){const t={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},e=this.getUncheckedCount(),n=this.getUncheckedKeys();e&&this.removeUncheckedKeys();const r=await this.save();return t.fileDeleted=r.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=r.deleted?0:e,t.uncheckedKeys=Array.from(n),t}};function of(t,e,n,r){const i=new Error(t);return Object.defineProperty(i,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"expected",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"diffOptions",{value:{expand:e}}),i}var sf=class{constructor(t={}){b(this,"snapshotStateMap",new Map),this.options=t}async setup(t,e){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await rf.create(t,e))}async finish(t){const e=this.getSnapshotState(t),n=await e.pack();return this.snapshotStateMap.delete(t),n}skipTest(t,e){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(e)}clearTest(t,e){this.getSnapshotState(t).clearTest(e)}getSnapshotState(t){const e=this.snapshotStateMap.get(t);if(!e)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return e}assert(t){var e,n;const{filepath:r,name:i,testId:o=i,message:s,isInline:c=!1,properties:a,inlineSnapshot:u,error:l,errorMessage:f,rawSnapshot:h}=t;let{received:d}=t;if(!r)throw new Error("Snapshot cannot be used outside of test");const p=this.getSnapshotState(r);if("object"==typeof a){if("object"!=typeof d||!d)throw new Error("Received value must be an object when the matcher has properties");try{if(!((null==(n=(e=this.options).isEqual)?void 0:n.call(e,d,a))??!1))throw of("Snapshot properties mismatched",p.expand,d,a);d=Ql(d,a)}catch(t){throw t.message=f||"Snapshot mismatched",t}}const b=[i,...s?[s]:[]].join(" > "),{actual:m,expected:y,key:g,pass:w}=p.match({testId:o,testName:b,received:d,isInline:c,error:l,inlineSnapshot:u,rawSnapshot:h});if(!w)throw of(`Snapshot \`${g||"unknown"}\` mismatched`,p.expand,h?m:null==m?void 0:m.trim(),h?y:null==y?void 0:y.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:e,rawSnapshot:n}=t;if(null==n.content){if(!e)throw new Error("Snapshot cannot be used outside of test");const r=this.getSnapshotState(e);t.filepath||(t.filepath=e),n.file=await r.environment.resolveRawPath(e,n.file),n.content=await r.environment.readSnapshotFile(n.file)??void 0}return this.assert(t)}clear(){this.snapshotStateMap.clear()}};m();var cf=Date,af=null,uf=class t extends cf{constructor(e,n,r,i,o,s,c){let a;switch(super(),arguments.length){case 0:a=null!==af?new cf(af.valueOf()):new cf;break;case 1:a=new cf(e);break;default:a=new cf(e,n,r=void 0===r?1:r,i=i||0,o=o||0,s=s||0,c=c||0)}return Object.setPrototypeOf(a,t.prototype),a}};uf.UTC=cf.UTC,uf.now=function(){return(new uf).valueOf()},uf.parse=function(t){return cf.parse(t)},uf.toString=function(){return cf.toString()};var lf=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function ff(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}var hf,df={exports:{}};var pf,bf,mf=Eu((hf||(hf=1,pf=df,function(){var t;t=function(t,e){var n=t.Assertion,r=n.prototype;function i(t,e){if(t===e)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof t||null===t)return t===e;if(t&&!e)return!1;if(Array.isArray(t)){if("number"!=typeof e.length)return!1;var n=Array.prototype.slice.call(e);return t.every((function(t){return n.some((function(e){return i(t,e)}))}))}return t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Object.keys(t).every((function(n){var r=t[n],o=e[n];return"object"==typeof r&&null!==r&&null!==o?i(r,o):"function"==typeof r?r(o):o===r}))}n.addMethod("containSubset",(function(n){var o=e.flag(this,"object"),s=t.config.showDiff;r.assert.call(this,i(n,o),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",n,o,s)})),t.assert.containSubset=function(e,n,r){new t.Assertion(e,r).to.be.containSubset(n)}},pf.exports=t}.call(df.exports)),df.exports));function yf(){return bf||(bf=new sf({isEqual:(t,e)=>Bc(t,e,[Zc,Qc])})),bf}function gf(t,e){if("function"!=typeof t){if(!e)throw new Error("expected must be a function, received "+typeof t);return t}try{t()}catch(t){return t}throw new Error("snapshot function didn't throw")}function wf(t){return{filepath:t.file.filepath,name:La(t).slice(1).join(" > "),testId:t.id}}vc(((t,e)=>{e.addMethod(t.expect,"extend",((e,n)=>{vc(va(t,e,n))}))})),vc(((t,e)=>{const{AssertionError:n}=t,r=Rc();function i(n,r){const i=n=>{const i=ma(e,n,r);e.addMethod(t.Assertion.prototype,n,i),e.addMethod(globalThis[xc].matchers,n,i)};Array.isArray(n)?n.forEach((t=>i(t))):i(n)}function o(t){return function(t){if(!ti(t._obj))throw new TypeError(`${e.inspect(t._obj)} is not a spy or a call to a spy!`)}(t),t._obj}function s(t,e){return t.length===e.length&&t.every(((t,n)=>Bc(t,e[n],[...r,Zc])))}function c(t,e,n){const r=t.mock.invocationCallOrder,i=e.mock.invocationCallOrder;return 0===r.length?!n:0!==i.length&&r[0]<i[0]}["throw","throws","Throw"].forEach((r=>{e.overwriteMethod(t.Assertion.prototype,r,(t=>function(...r){const i=e.flag(this,"promise"),o=e.flag(this,"object"),s=e.flag(this,"negate");if("rejects"===i)e.flag(this,"object",(()=>{throw o}));else if("resolves"===i&&"function"!=typeof o){if(s)return;{const t=e.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}t.apply(this,r)}))})),i("withTest",(function(t){return e.flag(this,"vitest-test",t),this})),i("toEqual",(function(t){const n=e.flag(this,"object"),i=Bc(n,t,[...r,Zc]);return this.assert(i,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,n)})),i("toStrictEqual",(function(t){const n=e.flag(this,"object"),i=Bc(n,t,[...r,Zc,ta,na,ea],!0);return this.assert(i,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",t,n)})),i("toBe",(function(t){const e=this._obj,n=Object.is(e,t);let i="";if(!n){if(Bc(e,t,[...r,Zc,ta,na,ea],!0))i="toStrictEqual";else{Bc(e,t,[...r,Zc])&&(i="toEqual")}}return this.assert(n,function(t,e="#{this}",n="#{exp}"){const r=`expected ${e} to be ${n} // Object.is equality`;return["toStrictEqual","toEqual"].includes(t)?`${r}\n\nIf it should pass with deep equality, replace "toBe" with "${t}"\n\nExpected: ${e}\nReceived: serializes to the same string\n`:r}(i),"expected #{this} not to be #{exp} // Object.is equality",t,e)})),i("toMatchObject",(function(t){const i=this._obj,o=Bc(i,t,[...r,Zc,Qc]),s=e.flag(this,"negate"),{subset:c,stripped:a}=function(t,e,n){let r=0;const i=(t=new WeakMap)=>(e,o)=>{if(Array.isArray(e)){if(Array.isArray(o)&&o.length===e.length)return o.map(((n,r)=>i(t)(e[r],n)))}else{if(e instanceof Date)return e;if(an(e)&&an(o)){if(Bc(e,o,[...n,Zc,Qc]))return o;const s={};t.set(e,s),"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&Object.defineProperty(s,"constructor",{enumerable:!1,value:e.constructor});for(const n of ra(e))Yc(o,n)?s[n]=t.has(e[n])?t.get(e[n]):i(t)(e[n],o[n]):t.has(e[n])||(r+=1,an(e[n])&&(r+=ra(e[n]).length),i(t)(e[n],o[n]));if(ra(s).length>0)return s}}return e};return{subset:i()(t,e),stripped:r}}(i,t,r);if(o&&s||!o&&!s){const r=e.getMessage(this,[o,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",t,c,!1]);throw new n(0===a?r:`${r}\n(${a} matching ${1===a?"property":"properties"} omitted from actual)`,{showDiff:!0,expected:t,actual:c})}})),i("toMatch",(function(t){const e=this._obj;if("string"!=typeof e)throw new TypeError(".toMatch() expects to receive a string, but got "+typeof e);return this.assert("string"==typeof t?e.includes(t):e.match(t),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",t,e)})),i("toContain",(function(t){const n=this._obj;if("undefined"!=typeof Node&&n instanceof Node){if(!(t instanceof Node))throw new TypeError("toContain() expected a DOM node as the argument, but got "+typeof t);return this.assert(n.contains(t),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",t,n)}if("undefined"!=typeof DOMTokenList&&n instanceof DOMTokenList){sn(t,"class name",["string"]);const r=e.flag(this,"negate")?n.value.replace(t,"").trim():`${n.value} ${t}`;return this.assert(n.contains(t),`expected "${n.value}" to contain "${t}"`,`expected "${n.value}" not to contain "${t}"`,r,n.value)}return"string"==typeof n&&"string"==typeof t?this.assert(n.includes(t),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",t,n):(null!=n&&"string"!=typeof n&&e.flag(this,"object",Array.from(n)),this.contain(t))})),i("toContainEqual",(function(t){const n=e.flag(this,"object"),i=Array.from(n).findIndex((e=>Bc(e,t,r)));this.assert(-1!==i,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",t)})),i("toBeTruthy",(function(){const t=e.flag(this,"object");this.assert(Boolean(t),"expected #{this} to be truthy","expected #{this} to not be truthy",!0,t)})),i("toBeFalsy",(function(){const t=e.flag(this,"object");this.assert(!t,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,t)})),i("toBeGreaterThan",(function(t){const e=this._obj;return sn(e,"actual",["number","bigint"]),sn(t,"expected",["number","bigint"]),this.assert(e>t,`expected ${e} to be greater than ${t}`,`expected ${e} to be not greater than ${t}`,t,e,!1)})),i("toBeGreaterThanOrEqual",(function(t){const e=this._obj;return sn(e,"actual",["number","bigint"]),sn(t,"expected",["number","bigint"]),this.assert(e>=t,`expected ${e} to be greater than or equal to ${t}`,`expected ${e} to be not greater than or equal to ${t}`,t,e,!1)})),i("toBeLessThan",(function(t){const e=this._obj;return sn(e,"actual",["number","bigint"]),sn(t,"expected",["number","bigint"]),this.assert(e<t,`expected ${e} to be less than ${t}`,`expected ${e} to be not less than ${t}`,t,e,!1)})),i("toBeLessThanOrEqual",(function(t){const e=this._obj;return sn(e,"actual",["number","bigint"]),sn(t,"expected",["number","bigint"]),this.assert(e<=t,`expected ${e} to be less than or equal to ${t}`,`expected ${e} to be not less than or equal to ${t}`,t,e,!1)})),i("toBeNaN",(function(){const t=e.flag(this,"object");this.assert(Number.isNaN(t),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,t)})),i("toBeUndefined",(function(){const t=e.flag(this,"object");this.assert(void 0===t,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,t)})),i("toBeNull",(function(){const t=e.flag(this,"object");this.assert(null===t,"expected #{this} to be null","expected #{this} not to be null",null,t)})),i("toBeDefined",(function(){const t=e.flag(this,"object");this.assert(void 0!==t,"expected #{this} to be defined","expected #{this} to be undefined",t)})),i("toBeTypeOf",(function(t){const e=typeof this._obj,n=t===e;return this.assert(n,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",t,e)})),i("toBeInstanceOf",(function(t){return this.instanceOf(t)})),i("toHaveLength",(function(t){return this.have.length(t)})),i("toHaveProperty",(function(...t){Array.isArray(t[0])&&(t[0]=t[0].map((t=>String(t).replace(/([.[\]])/g,"\\$1"))).join("."));const n=this._obj,[i,o]=t,{value:s,exists:c}=Object.prototype.hasOwnProperty.call(n,i)?{value:n[i],exists:!0}:e.getPathInfo(n,i),a=c&&(1===t.length||Bc(o,s,r)),u=1===t.length?"":` with value ${e.objDisplay(o)}`;return this.assert(a,`expected #{this} to have property "${i}"${u}`,`expected #{this} to not have property "${i}"${u}`,o,c?s:void 0)})),i("toBeCloseTo",(function(t,e=2){const n=this._obj;let r=!1,i=0,o=0;return t===Number.POSITIVE_INFINITY&&n===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&n===Number.NEGATIVE_INFINITY?r=!0:(i=10**-e/2,o=Math.abs(n-t),r=o<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${o}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${o}, but expected ${i}`,t,n,!1)})),i(["toHaveBeenCalledTimes","toBeCalledTimes"],(function(t){const e=o(this),n=e.getMockName(),r=e.mock.calls.length;return this.assert(r===t,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,t,r,!1)})),i("toHaveBeenCalledOnce",(function(){const t=o(this),e=t.getMockName(),n=t.mock.calls.length;return this.assert(1===n,`expected "${e}" to be called once, but got ${n} times`,`expected "${e}" to not be called once`,1,n,!1)})),i(["toHaveBeenCalled","toBeCalled"],(function(){const t=o(this),r=t.getMockName(),i=t.mock.calls.length,s=i>0,c=e.flag(this,"negate");let a=e.getMessage(this,[s,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,s]);if(s&&c&&(a=ga(t,a)),s&&c||!s&&!c)throw new n(a)})),i(["toHaveBeenCalledWith","toBeCalledWith"],(function(...t){const r=o(this),i=r.getMockName(),c=r.mock.calls.some((e=>s(e,t))),a=e.flag(this,"negate"),u=e.getMessage(this,[c,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,t]);if(c&&a||!c&&!a)throw new n(ga(r,u,t))})),i("toHaveBeenCalledExactlyOnceWith",(function(...t){const r=o(this),i=r.getMockName(),c=r.mock.calls.length,a=r.mock.calls.some((e=>s(e,t)))&&1===c,u=e.flag(this,"negate"),l=e.getMessage(this,[a,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,t]);if(a&&u||!a&&!u)throw new n(ga(r,l,t))})),i(["toHaveBeenNthCalledWith","nthCalledWith"],(function(t,...e){const n=o(this),r=n.getMockName(),i=n.mock.calls[t-1],c=n.mock.calls.length,a=t<=c;this.assert(i&&s(i,e),`expected ${ya(t)} "${r}" call to have been called with #{exp}${a?"":`, but called only ${c} times`}`,`expected ${ya(t)} "${r}" call to not have been called with #{exp}`,e,i,a)})),i(["toHaveBeenLastCalledWith","lastCalledWith"],(function(...t){const e=o(this),n=e.getMockName(),r=e.mock.calls[e.mock.calls.length-1];this.assert(r&&s(r,t),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,t,r)})),i(["toHaveBeenCalledBefore"],(function(t,n=!0){const r=o(this);if(!ti(t))throw new TypeError(`${e.inspect(t)} is not a spy or a call to a spy`);this.assert(c(r,t,n),`expected "${r.getMockName()}" to have been called before "${t.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${t.getMockName()}"`,t,r)})),i(["toHaveBeenCalledAfter"],(function(t,n=!0){const r=o(this);if(!ti(t))throw new TypeError(`${e.inspect(t)} is not a spy or a call to a spy`);this.assert(c(t,r,n),`expected "${r.getMockName()}" to have been called after "${t.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${t.getMockName()}"`,t,r)})),i(["toThrow","toThrowError"],(function(t){if("string"==typeof t||void 0===t||t instanceof RegExp)return this.throws(""===t?/^$/:t);const i=this._obj,o=e.flag(this,"promise"),s=e.flag(this,"negate");let c=null;if("rejects"===o)c=i;else{if("resolves"===o&&"function"!=typeof i){if(s)return;{const t=e.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}{let t=!1;try{i()}catch(e){t=!0,c=e}if(!t&&!s){const t=e.flag(this,"message")||"expected function to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}}if("function"==typeof t){const e=t.name||t.prototype.constructor.name;return this.assert(c&&c instanceof t,`expected error to be instance of ${e}`,`expected error not to be instance of ${e}`,t,c)}if(t instanceof Error){const e=Bc(c,t,[...r,Zc]);return this.assert(e,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",t,c)}if("object"==typeof t&&"asymmetricMatch"in t&&"function"==typeof t.asymmetricMatch){const e=t;return this.assert(c&&e.asymmetricMatch(c),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",e,c)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof t}"`)})),[{name:"toHaveResolved",condition:t=>t.mock.settledResults.length>0&&t.mock.settledResults.some((({type:t})=>"fulfilled"===t)),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:t=>t.mock.calls.length>0&&t.mock.results.some((({type:t})=>"throw"!==t)),action:"called"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(){const t=o(this),r=t.getMockName(),i=e(t);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)}))})),[{name:"toHaveResolvedTimes",condition:(t,e)=>t.mock.settledResults.reduce(((t,{type:e})=>"fulfilled"===e?++t:t),0)===e,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(t,e)=>t.mock.results.reduce(((t,{type:e})=>"throw"===e?t:++t),0)===e,action:"called"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(t){const r=o(this),i=r.getMockName(),s=e(r,t);this.assert(s,`expected "${i}" to be successfully ${n} ${t} times`,`expected "${i}" to not be successfully ${n} ${t} times`,`expected resolved times: ${t}`,`received resolved times: ${s}`,!1)}))})),[{name:"toHaveResolvedWith",condition:(t,e)=>t.mock.settledResults.some((({type:t,value:n})=>"fulfilled"===t&&Bc(e,n))),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(t,e)=>t.mock.results.some((({type:t,value:n})=>"return"===t&&Bc(e,n))),action:"return"}].forEach((({name:t,condition:r,action:s})=>{i(t,(function(t){const i=o(this),c=r(i,t),a=e.flag(this,"negate");if(c&&a||!c&&!a){const r=i.getMockName(),o=e.getMessage(this,[c,`expected "${r}" to ${s} with: #{exp} at least once`,`expected "${r}" to not ${s} with: #{exp}`,t]),a="return"===s?i.mock.results:i.mock.settledResults;throw new n(function(t,e,n,r){return n+=H.gray(`\n\nReceived: \n\n${e.map(((e,n)=>{let i=H.bold(` ${ya(n+1)} ${t.getMockName()} call return:\n\n`);return i+=r?Ar(r,e.value,{omitAnnotationLines:!0}):tn(e).split("\n").map((t=>` ${t}`)).join("\n"),i+="\n",i})).join("\n")}`),n+=H.gray(`\n\nNumber of calls: ${H.bold(t.mock.calls.length)}\n`),n}(i,a,o,t))}}))})),[{name:"toHaveLastResolvedWith",condition:(t,e)=>{const n=t.mock.settledResults[t.mock.settledResults.length-1];return n&&"fulfilled"===n.type&&Bc(n.value,e)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(t,e)=>{const n=t.mock.results[t.mock.results.length-1];return n&&"return"===n.type&&Bc(n.value,e)},action:"return"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(t){const r=o(this),i="return"===n?r.mock.results:r.mock.settledResults,s=i[i.length-1],c=r.getMockName();this.assert(e(r,t),`expected last "${c}" call to ${n} #{exp}`,`expected last "${c}" call to not ${n} #{exp}`,t,null==s?void 0:s.value)}))})),[{name:"toHaveNthResolvedWith",condition:(t,e,n)=>{const r=t.mock.settledResults[e-1];return r&&"fulfilled"===r.type&&Bc(r.value,n)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(t,e,n)=>{const r=t.mock.results[e-1];return r&&"return"===r.type&&Bc(r.value,n)},action:"return"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(t,r){const i=o(this),s=i.getMockName(),c=("return"===n?i.mock.results:i.mock.settledResults)[t-1],a=`${ya(t)} call`;this.assert(e(i,t,r),`expected ${a} "${s}" call to ${n} #{exp}`,`expected ${a} "${s}" call to not ${n} #{exp}`,r,null==c?void 0:c.value)}))})),i("withContext",(function(t){for(const n in t)e.flag(this,n,t[n]);return this})),e.addProperty(t.Assertion.prototype,"resolves",(function(){const r=new Error("resolves");e.flag(this,"promise","resolves"),e.flag(this,"error",r);const i=e.flag(this,"vitest-test"),o=e.flag(this,"object");if(e.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if("function"!=typeof(null==o?void 0:o.then))throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof o}'.`);const s=new Proxy(this,{get:(c,a,u)=>{const l=Reflect.get(c,a,u);return"function"!=typeof l?l instanceof t.Assertion?s:l:(...t)=>{e.flag(this,"_name",a);const s=o.then((n=>(e.flag(this,"object",n),l.call(this,...t))),(t=>{const i=new n(`promise rejected "${e.inspect(t)}" instead of resolving`,{showDiff:!1});throw i.cause=t,i.stack=r.stack.replace(r.message,i.message),i}));return ba(i,s,pa(e,this,!!t.length),r)}}});return s})),e.addProperty(t.Assertion.prototype,"rejects",(function(){const r=new Error("rejects");e.flag(this,"promise","rejects"),e.flag(this,"error",r);const i=e.flag(this,"vitest-test"),o=e.flag(this,"object"),s="function"==typeof o?o():o;if(e.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if("function"!=typeof(null==s?void 0:s.then))throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof s}'.`);const c=new Proxy(this,{get:(o,a,u)=>{const l=Reflect.get(o,a,u);return"function"!=typeof l?l instanceof t.Assertion?c:l:(...t)=>{e.flag(this,"_name",a);const o=s.then((t=>{const i=new n(`promise resolved "${e.inspect(t)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:t});throw i.stack=r.stack.replace(r.message,i.message),i}),(n=>(e.flag(this,"object",n),l.call(this,...t))));return ba(i,o,pa(e,this,!!t.length),r)}}});return c}))})),vc(mf),vc(((t,e)=>{function n(t,n){const r=e.flag(n,"vitest-test");if(!r)throw new Error(`'${t}' cannot be used without test context`);return r}for(const r of["matchSnapshot","toMatchSnapshot"])e.addMethod(t.Assertion.prototype,r,(function(t,i){e.flag(this,"_name",r);if(e.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);const o=e.flag(this,"object"),s=n(r,this);"string"==typeof t&&void 0===i&&(i=t,t=void 0);const c=e.flag(this,"message");yf().assert({received:o,message:i,isInline:!1,properties:t,errorMessage:c,...wf(s)})}));e.addMethod(t.Assertion.prototype,"toMatchFileSnapshot",(function(t,r){e.flag(this,"_name","toMatchFileSnapshot");if(e.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const i=new Error("resolves"),o=e.flag(this,"object"),s=n("toMatchFileSnapshot",this),c=e.flag(this,"message");return function(t,e,n,r){const i=t;if(i&&e instanceof Promise){e=e.finally((()=>{if(!i.promises)return;const t=i.promises.indexOf(e);-1!==t&&i.promises.splice(t,1)})),i.promises||(i.promises=[]),i.promises.push(e);let t=!1;return i.onFinished??=[],i.onFinished.push((()=>{if(!t){const t=(globalThis.__vitest_worker__?.onFilterStackTrace||(t=>t||""))(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.\n",t].join(""))}})),{then:(n,r)=>(t=!0,e.then(n,r)),catch:t=>e.catch(t),finally:t=>e.finally(t),[Symbol.toStringTag]:"Promise"}}return e}(s,yf().assertRaw({received:o,message:r,isInline:!1,rawSnapshot:{file:t},errorMessage:c,...wf(s)}),function(t,e){const n=t.flag(e,"negate")?"not.":"",r=`${t.flag(e,"_name")}(expected)`,i=t.flag(e,"promise");return`expect(actual)${i?`.${i}`:""}.${n}${r}`}(e,this),i)})),e.addMethod(t.Assertion.prototype,"toMatchInlineSnapshot",(function(t,r,i){e.flag(this,"_name","toMatchInlineSnapshot");if(e.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const o=n("toMatchInlineSnapshot",this);if(o.each||o.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const s=e.flag(this,"object"),c=e.flag(this,"error");"string"==typeof t&&(i=r,r=t,t=void 0),r&&(r=Nl(r));const a=e.flag(this,"message");yf().assert({received:s,message:i,isInline:!0,properties:t,inlineSnapshot:r,error:c,errorMessage:a,...wf(o)})})),e.addMethod(t.Assertion.prototype,"toThrowErrorMatchingSnapshot",(function(t){e.flag(this,"_name","toThrowErrorMatchingSnapshot");if(e.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const r=e.flag(this,"object"),i=n("toThrowErrorMatchingSnapshot",this),o=e.flag(this,"promise"),s=e.flag(this,"message");yf().assert({received:gf(r,o),message:t,errorMessage:s,...wf(i)})})),e.addMethod(t.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",(function(t,r){if(e.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const i=n("toThrowErrorMatchingInlineSnapshot",this);if(i.each||i.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const o=e.flag(this,"object"),s=e.flag(this,"error"),c=e.flag(this,"promise"),a=e.flag(this,"message");t&&(t=Nl(t)),yf().assert({received:gf(o,c),message:r,inlineSnapshot:t,isInline:!0,error:s,errorMessage:a,...wf(i)})})),e.addMethod(t.expect,"addSnapshotSerializer",Xl)})),vc(((t,e)=>{e.addMethod(t.expect,"anything",(()=>new aa)),e.addMethod(t.expect,"any",(t=>new fa(t))),e.addMethod(t.expect,"stringContaining",(t=>new ca(t))),e.addMethod(t.expect,"objectContaining",(t=>new ua(t))),e.addMethod(t.expect,"arrayContaining",(t=>new la(t))),e.addMethod(t.expect,"stringMatching",(t=>new ha(t))),e.addMethod(t.expect,"closeTo",((t,e)=>new da(t,e))),t.expect.not={stringContaining:t=>new ca(t,!0),objectContaining:t=>new ua(t,!0),arrayContaining:t=>new la(t,!0),stringMatching:t=>new ha(t,!0),closeTo:(t,e)=>new da(t,e,!0)}}));var vf=function(t){const e=(n,r)=>{const{assertionCalls:i}=ia(e);oa({assertionCalls:i+1},e);const o=dc(n,r),s=t||void 0;return s?o.withTest(s):o};Object.assign(e,dc),Object.assign(e,globalThis[jc]),e.getState=()=>ia(e),e.setState=t=>oa(t,e);const n=ia(globalThis[Sc])||{};return oa({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:$u(),get testPath(){return vu().filepath},currentTestName:t?Fa(t):n.currentTestName},e),e.extend=t=>dc.extend(e,t),e.addEqualityTesters=t=>function(t){if(!Array.isArray(t))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${un(t)}"`);globalThis[xc].customEqualityTesters.push(...t)}(t),e.soft=(...t)=>e(...t).withContext({soft:!0}),e.poll=function(t){return function(e,n={}){const r=vu(),i=r.config.expect?.poll??{},{interval:o=i.interval??50,timeout:s=i.timeout??1e3,message:c}=n,a=t(null,c).withContext({poll:!0});e=e.bind(a);const u=mi.flag(a,"vitest-test");if(!u)throw new Error("expect.poll() must be called inside a test");const l=new Proxy(a,{get(t,n,r){const i=Reflect.get(t,n,r);if("function"!=typeof i)return i instanceof ss?l:i;if("assert"===n)return i;if("string"==typeof n&&lf.includes(n))throw new SyntaxError(`expect.poll() is not supported in combination with .${n}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...t){const r=new Error("STACK_TRACE_ERROR"),c=()=>new Promise(((c,u)=>{let l,f,h;const{setTimeout:d,clearTimeout:p}=Dn(),b=async()=>{try{mi.flag(a,"_name",n);const r=await e();mi.flag(a,"object",r),c(await i.call(a,...t)),p(l),p(f)}catch(t){h=t,mi.flag(a,"_isLastPollAttempt")||(l=d(b,o))}};f=d((()=>{p(l),mi.flag(a,"_isLastPollAttempt",!0);const t=t=>{u(ff(new Error("Matcher did not succeed in time.",{cause:t}),r))};b().then((()=>t(h))).catch((e=>t(e)))}),s),b()}));let l,f=!1;return u.onFinished??=[],u.onFinished.push((()=>{if(!f){const t=mi.flag(a,"negate")?"not.":"",e=`expect.${mi.flag(a,"_poll.element")?"element(locator)":"poll(assertion)"}.${t}${String(n)}()`;throw ff(new Error(`${e} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${e}\n`),r)}})),{then:(t,e)=>(f=!0,(l||=c()).then(t,e)),catch:t=>(l||=c()).catch(t),finally:t=>(l||=c()).finally(t),[Symbol.toStringTag]:"Promise"}}}});return l}}(e),e.unreachable=t=>{gc.fail(`expected${t?` "${t}" `:" "}not to be reached`)},mi.addMethod(e,"assertions",(function t(n){const r=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(r(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r})})),mi.addMethod(e,"hasAssertions",(function t(){const n=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(n,t),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})})),e.extend(Ec),e}();Object.defineProperty(globalThis,Sc,{value:vf,writable:!0,configurable:!0});var $f,xf,Sf,jf,Ef,Of,Tf,kf,Af,_f,Mf,Cf,If={};function Nf(){if(Of)return Ef;Of=1;var t=Function.call,e=function(){if(jf)return Sf;let t;jf=1;try{t=!1}catch(e){t=!0}return Sf=t}(),n=["size","caller","callee","arguments"];return e&&n.push("__proto__"),Ef=function(e){return Object.getOwnPropertyNames(e).reduce((function(r,i){return n.includes(i)||"function"!=typeof e[i]||(r[i]=t.bind(e[i])),r}),Object.create(null))}}function Pf(){if(kf)return Tf;kf=1;var t=Nf();return Tf=t(Array.prototype)}function Rf(){if(_f)return Af;_f=1;var t=Pf().every;function e(t,e,n,r){var i=!0;return n!==r.length-1&&(i=e.calledBefore(r[n+1])),!(!function(t,e){return void 0===t[e.id]&&(t[e.id]=0),t[e.id]<e.callCount}(t,e)||!i)&&(t[e.id]+=1,!0)}return Af=function(n){return t(arguments.length>1?arguments:n,e.bind(null,{}))},Af}function Bf(){if(Cf)return Mf;return Cf=1,Mf=function(t){return t.constructor&&t.constructor.name||null}}var Df,Lf,Ff,qf,Jf,Uf,Wf,Hf,Xf,zf,Vf,Kf,Gf,Zf,Yf,Qf,th,eh,nh,rh={};function ih(){if(Wf)return Uf;Wf=1;var t=Pf().sort,e=Pf().slice;function n(t,e){var n=t.getCall(0),r=e.getCall(0);return(n&&n.callId||-1)<(r&&r.callId||-1)?-1:1}return Uf=function(r){return t(e(r),n)}}function oh(){if(Xf)return Hf;Xf=1;var t=Nf();return Hf=t(Function.prototype)}function sh(){if(Vf)return zf;Vf=1;var t=Nf();return zf=t(Map.prototype)}function ch(){if(Gf)return Kf;Gf=1;var t=Nf();return Kf=t(Object.prototype)}function ah(){if(Yf)return Zf;Yf=1;var t=Nf();return Zf=t(Set.prototype)}function uh(){if(th)return Qf;th=1;var t=Nf();return Qf=t(String.prototype)}var lh,fh,hh,dh,ph,bh,mh,yh,gh={exports:{}};function wh(){return lh?gh.exports:(lh=1,gh.exports=function(){var t="function"==typeof Promise,e="object"==typeof self?self:ju,n="undefined"!=typeof Symbol,r="undefined"!=typeof Map,i="undefined"!=typeof Set,o="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,a=n&&void 0!==Symbol.iterator,u=n&&void 0!==Symbol.toStringTag,l=i&&"function"==typeof Set.prototype.entries,f=r&&"function"==typeof Map.prototype.entries,h=l&&Object.getPrototypeOf((new Set).entries()),d=f&&Object.getPrototypeOf((new Map).entries()),p=a&&"function"==typeof Array.prototype[Symbol.iterator],b=p&&Object.getPrototypeOf([][Symbol.iterator]()),m=a&&"function"==typeof String.prototype[Symbol.iterator],y=m&&Object.getPrototypeOf(""[Symbol.iterator]()),g=8,w=-1;function v(n){var a=typeof n;if("object"!==a)return a;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===u||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var l=u&&n[Symbol.toStringTag];if("string"==typeof l)return l;var f=Object.getPrototypeOf(n);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":t&&f===Promise.prototype?"Promise":i&&f===Set.prototype?"Set":r&&f===Map.prototype?"Map":s&&f===WeakSet.prototype?"WeakSet":o&&f===WeakMap.prototype?"WeakMap":c&&f===DataView.prototype?"DataView":r&&f===d?"Map Iterator":i&&f===h?"Set Iterator":p&&f===b?"Array Iterator":m&&f===y?"String Iterator":null===f?"Object":Object.prototype.toString.call(n).slice(g,w)}return v}())}function vh(){if(hh)return fh;hh=1;var t=wh();return fh=function(e){return t(e).toLowerCase()}}function $h(){if(ph)return dh;return ph=1,dh=function(t){return t&&t.toString?t.toString():String(t)}}var xh=function(){if(yh)return If;yh=1;const t=function(){return mh||(mh=1,bh={global:xf?$f:(xf=1,e=void 0!==ju?ju:"undefined"!=typeof window?window:self,$f=e),calledInOrder:Rf(),className:Bf(),deprecated:(Df||(Df=1,(t=rh).wrap=function(e,n){var r=function(){return t.printWarning(n),e.apply(this,arguments)};return e.prototype&&(r.prototype=e.prototype),r},t.defaultMsg=function(t,e){return`${t}.${e} is deprecated and will be removed from the public API in a future version of ${t}.`},t.printWarning=function(t){"object"==typeof process&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t)}),rh),every:(Ff||(Ff=1,Lf=function(t,e){var n=!0;try{t.forEach((function(){if(!e.apply(this,arguments))throw new Error}))}catch(t){n=!1}return n}),Lf),functionName:Jf?qf:(Jf=1,qf=function(t){if(!t)return"";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch(t){return""}}),orderByFirstCall:ih(),prototypes:nh?eh:(nh=1,eh={array:Pf(),function:oh(),map:sh(),object:ch(),set:ah(),string:uh()}),typeOf:vh(),valueToString:$h()}),bh;var t,e}().global;let e,n;if("undefined"!=typeof __vitest_required__){try{e=__vitest_required__.timers}catch(t){}try{n=__vitest_required__.timersPromises}catch(t){}}function r(i){const o=Math.pow(2,31)-1,s=1e12,c=function(){},a=function(){return[]},u={};let l,f=!1;i.setTimeout&&(u.setTimeout=!0,l=i.setTimeout(c,0),f="object"==typeof l),u.clearTimeout=Boolean(i.clearTimeout),u.setInterval=Boolean(i.setInterval),u.clearInterval=Boolean(i.clearInterval),u.hrtime=i.process&&"function"==typeof i.process.hrtime,u.hrtimeBigint=u.hrtime&&"function"==typeof i.process.hrtime.bigint,u.nextTick=i.process&&"function"==typeof i.process.nextTick;const h=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;u.performance=i.performance&&"function"==typeof i.performance.now;const d=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),p=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;u.queueMicrotask=i.hasOwnProperty("queueMicrotask"),u.requestAnimationFrame=i.requestAnimationFrame&&"function"==typeof i.requestAnimationFrame,u.cancelAnimationFrame=i.cancelAnimationFrame&&"function"==typeof i.cancelAnimationFrame,u.requestIdleCallback=i.requestIdleCallback&&"function"==typeof i.requestIdleCallback,u.cancelIdleCallbackPresent=i.cancelIdleCallback&&"function"==typeof i.cancelIdleCallback,u.setImmediate=i.setImmediate&&"function"==typeof i.setImmediate,u.clearImmediate=i.clearImmediate&&"function"==typeof i.clearImmediate,u.Intl=i.Intl&&"object"==typeof i.Intl,i.clearTimeout&&i.clearTimeout(l);const b=i.Date,m=u.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0;let y=s;if(void 0===b)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");u.Date=!0;class g{constructor(t,e,n,r){this.name=t,this.entryType=e,this.startTime=n,this.duration=r}toJSON(){return JSON.stringify({...this})}}let w=!1;function v(t,e){t.loopLimit&&e===t.loopLimit-1&&(w=!0)}function $(){w=!1}function x(t){if(!t)return 0;const e=t.split(":"),n=e.length;let r,i=n,o=0;if(n>3||!/^(\d\d:){0,2}\d\d?$/.test(t))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;i--;){if(r=parseInt(e[i],10),r>=60)throw new Error(`Invalid time ${t}`);o+=r*Math.pow(60,n-i-1)}return 1e3*o}function S(t){if(!t)return 0;if("function"==typeof t.getTime)return t.getTime();if("number"==typeof t)return t;throw new TypeError("now should be milliseconds since UNIX epoch")}function j(t,e,n){return n&&n.callAt>=t&&n.callAt<=e}function E(t,e){const n=new Error(`Aborting after running ${t.loopLimit} timers, assuming an infinite loop!`);if(!e.error)return n;const r=/target\.*[<|(|[].*?[>|\]|)]\s*/;let i=new RegExp(String(Object.keys(t).join("|")));f&&(i=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(t).join("|")})\\s+`));let o=-1;e.error.stack.split("\n").some((function(t,e){if(t.match(r))return o=e,!0;return t.match(i)?(o=e,!1):o>=0}));const s=`${n}\n${e.type||"Microtask"} - ${e.func.name||"anonymous"}\n${e.error.stack.split("\n").slice(o+1).join("\n")}`;try{Object.defineProperty(n,"stack",{value:s})}catch(t){}return n}function O(){class t extends b{constructor(e,n,r,i,o,s,c){0===arguments.length?super(t.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:b,enumerable:!1})}static[Symbol.hasInstance](t){return t instanceof b}}t.isFake=!0,b.now&&(t.now=function(){return t.clock.now}),b.toSource&&(t.toSource=function(){return b.toSource()}),t.toString=function(){return b.toString()};return new Proxy(t,{apply(){if(this instanceof t)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(t.clock.now).toString()}})}function T(t){if(t.jobs){for(let e=0;e<t.jobs.length;e++){const n=t.jobs[e];if(n.func.apply(null,n.args),v(t,e),t.loopLimit&&e>t.loopLimit)throw E(t,n)}$(),t.jobs=[]}}function k(t,e){if(void 0===e.func)throw new Error("Callback must be provided to timer calls");if(f&&"function"!=typeof e.func)throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${e.func} of type ${typeof e.func}`);var n;if(w&&(e.error=new Error),e.type=e.immediate?"Immediate":"Timeout",e.hasOwnProperty("delay")&&("number"!=typeof e.delay&&(e.delay=parseInt(e.delay,10)),n=e.delay,(Number.isFinite?Number.isFinite(n):isFinite(n))||(e.delay=0),e.delay=e.delay>o?1:e.delay,e.delay=Math.max(0,e.delay)),e.hasOwnProperty("interval")&&(e.type="Interval",e.interval=e.interval>o?1:e.interval),e.hasOwnProperty("animation")&&(e.type="AnimationFrame",e.animation=!0),e.hasOwnProperty("idleCallback")&&(e.type="IdleCallback",e.idleCallback=!0),t.timers||(t.timers={}),e.id=y++,e.createdAt=t.now,e.callAt=t.now+(parseInt(e.delay)||(t.duringTick?1:0)),t.timers[e.id]=e,f){const n={refed:!0,ref:function(){return this.refed=!0,n},unref:function(){return this.refed=!1,n},hasRef:function(){return this.refed},refresh:function(){return e.callAt=t.now+(parseInt(e.delay)||(t.duringTick?1:0)),t.timers[e.id]=e,n},[Symbol.toPrimitive]:function(){return e.id}};return n}return e.id}function A(t,e){return t.callAt<e.callAt?-1:t.callAt>e.callAt?1:t.immediate&&!e.immediate?-1:!t.immediate&&e.immediate?1:t.createdAt<e.createdAt?-1:t.createdAt>e.createdAt?1:t.id<e.id?-1:t.id>e.id?1:void 0}function _(t,e,n){const r=t.timers;let i,o,s=null;for(i in r)r.hasOwnProperty(i)&&(o=j(e,n,r[i]),!o||s&&1!==A(s,r[i])||(s=r[i]));return s}function M(t){const e=t.timers;let n,r=null;for(n in e)e.hasOwnProperty(n)&&(r&&1!==A(r,e[n])||(r=e[n]));return r}function C(t){const e=t.timers;let n,r=null;for(n in e)e.hasOwnProperty(n)&&(r&&-1!==A(r,e[n])||(r=e[n]));return r}function I(t,e){if("number"==typeof e.interval?t.timers[e.id].callAt+=e.interval:delete t.timers[e.id],"function"==typeof e.func)e.func.apply(null,e.args);else{(0,eval)(e.func)}}function N(t){return"IdleCallback"===t||"AnimationFrame"===t?`cancel${t}`:`clear${t}`}const P=function(){let t=0;return function(e){!t++&&console.warn(e)}}();function R(t,e,n){if(!e)return;t.timers||(t.timers={});const r=Number(e);if(Number.isNaN(r)||r<s){const r=N(n);if(!0===t.shouldClearNativeTimers){const n=t[`_${r}`];return"function"==typeof n?n(e):void 0}P(`FakeTimers: ${r} was invoked to clear a native timer instead of one created by this library.\nTo automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(t.timers.hasOwnProperty(r)){const e=t.timers[r];if(!(e.type===n||"Timeout"===e.type&&"Interval"===n||"Interval"===e.type&&"Timeout"===n)){const t=N(n),r=function(t){return"IdleCallback"===t||"AnimationFrame"===t?`request${t}`:`set${t}`}(e.type);throw new Error(`Cannot clear timer: timer created with ${r}() but cleared with ${t}()`)}delete t.timers[r]}}function B(t,e,n){if(n[e].hadOwnProperty=Object.prototype.hasOwnProperty.call(t,e),n[`_${e}`]=t[e],"Date"===e)t[e]=n[e];else if("Intl"===e)t[e]=n[e];else if("performance"===e){const r=Object.getOwnPropertyDescriptor(t,e);if(r&&r.get&&!r.set){Object.defineProperty(n,`_${e}`,r);const i=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,i)}else t[e]=n[e]}else t[e]=function(){return n[e].apply(n,arguments)},Object.defineProperties(t[e],Object.getOwnPropertyDescriptors(n[e]));t[e].clock=n}function D(t,e){t.tick(e)}const L={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};u.setImmediate&&(L.setImmediate=i.setImmediate),u.clearImmediate&&(L.clearImmediate=i.clearImmediate),u.hrtime&&(L.hrtime=i.process.hrtime),u.nextTick&&(L.nextTick=i.process.nextTick),u.performance&&(L.performance=i.performance),u.requestAnimationFrame&&(L.requestAnimationFrame=i.requestAnimationFrame),u.queueMicrotask&&(L.queueMicrotask=i.queueMicrotask),u.cancelAnimationFrame&&(L.cancelAnimationFrame=i.cancelAnimationFrame),u.requestIdleCallback&&(L.requestIdleCallback=i.requestIdleCallback),u.cancelIdleCallback&&(L.cancelIdleCallback=i.cancelIdleCallback),u.Intl&&(L.Intl=m);const F=i.setImmediate||i.setTimeout;function q(t,e){t=Math.floor(S(t)),e=e||1e3;let n=0;const r=[0,0],o={now:t,Date:O(),loopLimit:e};function s(){return 16-(o.now-t)%16}function c(e){const i=o.now-r[0]-t,s=Math.floor(i/1e3),c=1e6*(i-1e3*s)+n-r[1];if(Array.isArray(e)){if(e[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const t=e[0];let n=c-e[1],r=s-t;return n<0&&(n+=1e9,r-=1),[r,n]}return[s,c]}function a(){const t=c();return 1e3*t[0]+t[1]/1e6}function l(t,e,r,i){const s="number"==typeof t?t:x(t),c=Math.floor(s),a=function(t){const e=1e6,n=1e6*t%e,r=n<0?n+e:n;return Math.floor(r)}(s);let u=n+a,l=o.now+c;if(s<0)throw new TypeError("Negative ticks are not supported");u>=1e6&&(l+=1,u-=1e6),n=u;let f,h,d,p,b,m,y=o.now,g=o.now;function w(){for(f=_(o,y,l);f&&y<=l;){if(o.timers[f.id]){y=f.callAt,o.now=f.callAt,d=o.now;try{T(o),I(o,f)}catch(t){h=h||t}if(e)return void F(p);b()}m()}if(d=o.now,T(o),d!==o.now&&(y+=o.now-d,l+=o.now-d),o.duringTick=!1,f=_(o,y,l),f)try{o.tick(l-o.now)}catch(t){h=h||t}else o.now=l,n=u;if(h)throw h;if(!e)return o.now;r(o.now)}return o.duringTick=!0,d=o.now,T(o),d!==o.now&&(y+=o.now-d,l+=o.now-d),p=e&&function(){try{b(),m(),w()}catch(t){i(t)}},b=function(){d!==o.now&&(y+=o.now-d,l+=o.now-d,g+=o.now-d)},m=function(){f=_(o,g,l),g=y},w()}return o.Date.clock=o,u.hrtimeBigint&&(c.bigint=function(){const t=c();return BigInt(t[0])*BigInt(1e9)+BigInt(t[1])}),u.Intl&&(o.Intl=function(){const t={};return Object.getOwnPropertyNames(m).forEach((e=>t[e]=m[e])),t.DateTimeFormat=function(...e){const n=new m.DateTimeFormat(...e),r={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach((t=>{r[t]=n[t].bind(n)})),["format","formatToParts"].forEach((e=>{r[e]=function(r){return n[e](r||t.clock.now)}})),r},t.DateTimeFormat.prototype=Object.create(m.DateTimeFormat.prototype),t.DateTimeFormat.supportedLocalesOf=m.DateTimeFormat.supportedLocalesOf,t}(),o.Intl.clock=o),o.requestIdleCallback=function(t,e){let n=0;o.countTimers()>0&&(n=50);const r=k(o,{func:t,args:Array.prototype.slice.call(arguments,2),delay:void 0===e?n:Math.min(e,n),idleCallback:!0});return Number(r)},o.cancelIdleCallback=function(t){return R(o,t,"IdleCallback")},o.setTimeout=function(t,e){return k(o,{func:t,args:Array.prototype.slice.call(arguments,2),delay:e})},void 0!==i.Promise&&h&&(o.setTimeout[h.custom]=function(t,e){return new i.Promise((function(n){k(o,{func:n,args:[e],delay:t})}))}),o.clearTimeout=function(t){return R(o,t,"Timeout")},o.nextTick=function(t){return function(t,e){t.jobs||(t.jobs=[]),t.jobs.push(e)}(o,{func:t,args:Array.prototype.slice.call(arguments,1),error:w?new Error:null})},o.queueMicrotask=function(t){return o.nextTick(t)},o.setInterval=function(t,e){return e=parseInt(e,10),k(o,{func:t,args:Array.prototype.slice.call(arguments,2),delay:e,interval:e})},o.clearInterval=function(t){return R(o,t,"Interval")},u.setImmediate&&(o.setImmediate=function(t){return k(o,{func:t,args:Array.prototype.slice.call(arguments,1),immediate:!0})},void 0!==i.Promise&&h&&(o.setImmediate[h.custom]=function(t){return new i.Promise((function(e){k(o,{func:e,args:[t],immediate:!0})}))}),o.clearImmediate=function(t){return R(o,t,"Immediate")}),o.countTimers=function(){return Object.keys(o.timers||{}).length+(o.jobs||[]).length},o.requestAnimationFrame=function(t){const e=k(o,{func:t,delay:s(),get args(){return[a()]},animation:!0});return Number(e)},o.cancelAnimationFrame=function(t){return R(o,t,"AnimationFrame")},o.runMicrotasks=function(){T(o)},o.tick=function(t){return l(t,!1)},void 0!==i.Promise&&(o.tickAsync=function(t){return new i.Promise((function(e,n){F((function(){try{l(t,!0,e,n)}catch(t){n(t)}}))}))}),o.next=function(){T(o);const t=M(o);if(!t)return o.now;o.duringTick=!0;try{return o.now=t.callAt,I(o,t),T(o),o.now}finally{o.duringTick=!1}},void 0!==i.Promise&&(o.nextAsync=function(){return new i.Promise((function(t,e){F((function(){try{const n=M(o);if(!n)return void t(o.now);let r;o.duringTick=!0,o.now=n.callAt;try{I(o,n)}catch(t){r=t}o.duringTick=!1,F((function(){r?e(r):t(o.now)}))}catch(t){e(t)}}))}))}),o.runAll=function(){let t,e;for(T(o),e=0;e<o.loopLimit;e++){if(!o.timers)return $(),o.now;if(t=Object.keys(o.timers).length,0===t)return $(),o.now;o.next(),v(o,e)}const n=M(o);throw E(o,n)},o.runToFrame=function(){return o.tick(s())},void 0!==i.Promise&&(o.runAllAsync=function(){return new i.Promise((function(t,e){let n=0;!function r(){F((function(){try{let i;if(T(o),n<o.loopLimit)return o.timers?(i=Object.keys(o.timers).length,0===i?($(),void t(o.now)):(o.next(),n++,r(),void v(o,n))):($(),void t(o.now));const s=M(o);e(E(o,s))}catch(t){e(t)}}))}()}))}),o.runToLast=function(){const t=C(o);return t?o.tick(t.callAt-o.now):(T(o),o.now)},void 0!==i.Promise&&(o.runToLastAsync=function(){return new i.Promise((function(t,e){F((function(){try{const e=C(o);e||(T(o),t(o.now)),t(o.tickAsync(e.callAt-o.now))}catch(t){e(t)}}))}))}),o.reset=function(){n=0,o.timers={},o.jobs=[],o.now=t},o.setSystemTime=function(t){const e=S(t),i=e-o.now;let s,c;for(s in r[0]=r[0]+i,r[1]=r[1]+n,o.now=e,n=0,o.timers)o.timers.hasOwnProperty(s)&&(c=o.timers[s],c.createdAt+=i,c.callAt+=i)},o.jump=function(t){const e="number"==typeof t?t:x(t),n=Math.floor(e);for(const t of Object.values(o.timers))o.now+n>t.callAt&&(t.callAt=o.now+n);o.tick(n)},u.performance&&(o.performance=Object.create(null),o.performance.now=a),u.hrtime&&(o.hrtime=c),o}return{timers:L,createClock:q,install:function(r){if(arguments.length>1||r instanceof Date||Array.isArray(r)||"number"==typeof r)throw new TypeError(`FakeTimers.install called with ${String(r)} install requires an object parameter`);if(!0===i.Date.isFake)throw new TypeError("Can't install fake timers twice on the same global object.");if((r=void 0!==r?r:{}).shouldAdvanceTime=r.shouldAdvanceTime||!1,r.advanceTimeDelta=r.advanceTimeDelta||20,r.shouldClearNativeTimers=r.shouldClearNativeTimers||!1,r.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function o(t){if(!r.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${t}'`)}let s,l;const f=q(r.now,r.loopLimit);if(f.shouldClearNativeTimers=r.shouldClearNativeTimers,f.uninstall=function(){return function(t,r){let o,s,c;for(s=0,c=t.methods.length;s<c;s++){if(o=t.methods[s],"hrtime"===o&&i.process)i.process.hrtime=t._hrtime;else if("nextTick"===o&&i.process)i.process.nextTick=t._nextTick;else if("performance"===o){const e=Object.getOwnPropertyDescriptor(t,`_${o}`);e&&e.get&&!e.set?Object.defineProperty(i,o,e):e.configurable&&(i[o]=t[`_${o}`])}else if(i[o]&&i[o].hadOwnProperty)i[o]=t[`_${o}`];else try{delete i[o]}catch(t){}if(void 0!==t.timersModuleMethods)for(let n=0;n<t.timersModuleMethods.length;n++){const r=t.timersModuleMethods[n];e[r.methodName]=r.original}if(void 0!==t.timersPromisesModuleMethods)for(let e=0;e<t.timersPromisesModuleMethods.length;e++){const r=t.timersPromisesModuleMethods[e];n[r.methodName]=r.original}}!0===r.shouldAdvanceTime&&i.clearInterval(t.attachedInterval),t.methods=[];for(const[e,n]of t.abortListenerMap.entries())n.removeEventListener("abort",e),t.abortListenerMap.delete(e);return t.timers?Object.keys(t.timers).map((function(e){return t.timers[e]})):[]}(f,r)},f.abortListenerMap=new Map,f.methods=r.toFake||[],0===f.methods.length&&(f.methods=Object.keys(L)),!0===r.shouldAdvanceTime){const t=D.bind(null,f,r.advanceTimeDelta),e=i.setInterval(t,r.advanceTimeDelta);f.attachedInterval=e}if(f.methods.includes("performance")){const t=p?i.performance.constructor.prototype:d?i.Performance.prototype:void 0;if(t)Object.getOwnPropertyNames(t).forEach((function(t){"now"!==t&&(f.performance[t]=0===t.indexOf("getEntries")?a:c)})),f.performance.mark=t=>new g(t,"mark",0,0),f.performance.measure=t=>new g(t,"measure",0,100),f.performance.timeOrigin=S(r.now);else if((r.toFake||[]).includes("performance"))return o("performance")}for(i===t&&e&&(f.timersModuleMethods=[]),i===t&&n&&(f.timersPromisesModuleMethods=[]),s=0,l=f.methods.length;s<l;s++){const t=f.methods[s];if(u[t]){if("hrtime"===t?i.process&&"function"==typeof i.process.hrtime&&B(i.process,t,f):"nextTick"===t?i.process&&"function"==typeof i.process.nextTick&&B(i.process,t,f):B(i,t,f),void 0!==f.timersModuleMethods&&e[t]){const n=e[t];f.timersModuleMethods.push({methodName:t,original:n}),e[t]=i[t]}void 0!==f.timersPromisesModuleMethods&&("setTimeout"===t?(f.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(t,e,n={})=>new Promise(((r,i)=>{const o=()=>{n.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o),f.clearTimeout(s),i(n.signal.reason)},s=f.setTimeout((()=>{n.signal&&(n.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o)),r(e)}),t);n.signal&&(n.signal.aborted?o():(n.signal.addEventListener("abort",o),f.abortListenerMap.set(o,n.signal)))}))):"setImmediate"===t?(f.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(t,e={})=>new Promise(((n,r)=>{const i=()=>{e.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i),f.clearImmediate(o),r(e.signal.reason)},o=f.setImmediate((()=>{e.signal&&(e.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i)),n(t)}));e.signal&&(e.signal.aborted?i():(e.signal.addEventListener("abort",i),f.abortListenerMap.set(i,e.signal)))}))):"setInterval"===t&&(f.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(t,e,n={})=>({[Symbol.asyncIterator]:()=>{const r=()=>{let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n};let i,o=!1,s=!1,c=0;const a=[],u=f.setInterval((()=>{a.length>0?a.shift().resolve():c++}),t),l=()=>{n.signal.removeEventListener("abort",l),f.abortListenerMap.delete(l),f.clearInterval(u),o=!0;for(const t of a)t.resolve()};return n.signal&&(n.signal.aborted?o=!0:(n.signal.addEventListener("abort",l),f.abortListenerMap.set(l,n.signal))),{next:async()=>{if(n.signal?.aborted&&!s)throw s=!0,n.signal.reason;if(o)return{done:!0,value:void 0};if(c>0)return c--,{done:!1,value:e};const t=r();if(a.push(t),await t,i&&0===a.length&&i.resolve(),n.signal?.aborted&&!s)throw s=!0,n.signal.reason;return o?{done:!0,value:void 0}:{done:!1,value:e}},return:async()=>(o||(a.length>0&&(i=r(),await i),f.clearInterval(u),o=!0,n.signal&&(n.signal.removeEventListener("abort",l),f.abortListenerMap.delete(l))),{done:!0,value:void 0})}}})))}else o(t)}return f},withGlobal:r}}const i=r(t);return If.timers=i.timers,If.createClock=i.createClock,If.install=i.install,If.withGlobal=r,If}(),Sh=class{constructor({global:t,config:e}){b(this,"_global"),b(this,"_clock"),b(this,"_fakingTime"),b(this,"_fakingDate"),b(this,"_fakeTimers"),b(this,"_userConfig"),b(this,"_now",cf.now),this._userConfig=e,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=xh.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 e=t;e>0&&(this._clock.next(),this._clock.tick(0),0!==this._clock.countTimers());e--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let e=t;e>0&&(await this._clock.nextAsync(),this._clock.tick(0),0!==this._clock.countTimers());e--);}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&&(globalThis.Date=cf,this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){const t=Object.keys(this._fakeTimers.timers).filter((t=>"nextTick"!==t&&"queueMicrotask"!==t));if(this._userConfig?.toFake?.includes("nextTick")&&xu())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:!0}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t)}}setSystemTime(t){const e=void 0===t||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(e):(this._fakingDate=e??new Date(this.getRealSystemTime()),function(t){const e=new cf(t.valueOf());if(Number.isNaN(e.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${t}`);globalThis.Date=uf,af=e.valueOf()}(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('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}};function jh(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}function Eh(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:o}=Dn(),{interval:s=50,timeout:c=1e3}="number"==typeof e?{timeout:e}:e,a=new Error("STACK_TRACE_ERROR");return new Promise(((e,u)=>{let l,f,h,d="idle";const p=t=>{f&&i(f),h&&o(h),e(t)},b=()=>{if(kh.isFakeTimers()&&kh.advanceTimersByTime(s),"pending"!==d)try{const e=t();if(null===e||"object"!=typeof e||"function"!=typeof e.then)return p(e),!0;d="pending",e.then((t=>{d="resolved",p(t)}),(t=>{d="rejected",l=t}))}catch(t){l=t}};!0!==b()&&(f=n((()=>{h&&o(h);let t=l;t||(t=jh(new Error("Timed out in waitFor!"),a)),u(t)}),c),h=r(b,s))}))}function Oh(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:o}=Dn(),{interval:s=50,timeout:c=1e3}="number"==typeof e?{timeout:e}:e,a=new Error("STACK_TRACE_ERROR");return new Promise(((e,u)=>{let l,f,h="idle";const d=t=>{f&&o(f),t||(t=jh(new Error("Timed out in waitUntil!"),a)),u(t)},p=t=>{if(t)return l&&i(l),f&&o(f),e(t),!0},b=()=>{if(kh.isFakeTimers()&&kh.advanceTimersByTime(s),"pending"!==h)try{const e=t();if(null===e||"object"!=typeof e||"function"!=typeof e.then)return p(e);h="pending",e.then((t=>{h="resolved",p(t)}),(t=>{h="rejected",d(t)}))}catch(t){d(t)}};!0!==b()&&(l=n(d,c),f=r(b,s))}))}var Th=function(){let t=null;const e=vu();let n;const r=()=>n||=new Sh({global:globalThis,config:e.config.fakeTimers}),i=new Map,o=new Map,s=["PROD","DEV","SSR"],c={useFakeTimers(t){if(xu()&&(t?.toFake?.includes("nextTick")||e.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 t?r().configure({...e.config.fakeTimers,...t}):r().configure(e.config.fakeTimers),r().useFakeTimers(),c},isFakeTimers:()=>r().isFakeTimers(),useRealTimers:()=>(r().useRealTimers(),c),runOnlyPendingTimers:()=>(r().runOnlyPendingTimers(),c),runOnlyPendingTimersAsync:async()=>(await r().runOnlyPendingTimersAsync(),c),runAllTimers:()=>(r().runAllTimers(),c),runAllTimersAsync:async()=>(await r().runAllTimersAsync(),c),runAllTicks:()=>(r().runAllTicks(),c),advanceTimersByTime:t=>(r().advanceTimersByTime(t),c),advanceTimersByTimeAsync:async t=>(await r().advanceTimersByTimeAsync(t),c),advanceTimersToNextTimer:()=>(r().advanceTimersToNextTimer(),c),advanceTimersToNextTimerAsync:async()=>(await r().advanceTimersToNextTimerAsync(),c),advanceTimersToNextFrame:()=>(r().advanceTimersToNextFrame(),c),getTimerCount:()=>r().getTimerCount(),setSystemTime:t=>(r().setSystemTime(t),c),getMockedSystemTime:()=>r().getMockedSystemTime(),getRealSystemTime:()=>r().getRealSystemTime(),clearAllTimers:()=>(r().clearAllTimers(),c),spyOn:ei,fn:ii,waitFor:Eh,waitUntil:Oh,hoisted:t=>(sn(t,'"vi.hoisted" factory',["function"]),t()),mock(t,e){if("string"!=typeof t)throw new TypeError("vi.mock() expects a string path, but received a "+typeof t);const n=_h("mock");Ah().queueMock(t,n,"function"==typeof e?()=>e((()=>Ah().importActual(t,n,Ah().getMockContext().callstack))):e)},unmock(t){if("string"!=typeof t)throw new TypeError("vi.unmock() expects a string path, but received a "+typeof t);Ah().queueUnmock(t,_h("unmock"))},doMock(t,e){if("string"!=typeof t)throw new TypeError("vi.doMock() expects a string path, but received a "+typeof t);const n=_h("doMock");Ah().queueMock(t,n,"function"==typeof e?()=>e((()=>Ah().importActual(t,n,Ah().getMockContext().callstack))):e)},doUnmock(t){if("string"!=typeof t)throw new TypeError("vi.doUnmock() expects a string path, but received a "+typeof t);Ah().queueUnmock(t,_h("doUnmock"))},importActual:async t=>Ah().importActual(t,_h("importActual"),Ah().getMockContext().callstack),importMock:async t=>Ah().importMock(t,_h("importMock")),mocked:(t,e={})=>t,isMockFunction:t=>ti(t),clearAllMocks:()=>([...Qr].reverse().forEach((t=>t.mockClear())),c),resetAllMocks:()=>([...Qr].reverse().forEach((t=>t.mockReset())),c),restoreAllMocks:()=>([...Qr].reverse().forEach((t=>t.mockRestore())),c),stubGlobal:(t,e)=>(i.has(t)||i.set(t,Object.getOwnPropertyDescriptor(globalThis,t)),Object.defineProperty(globalThis,t,{value:e,writable:!0,configurable:!0,enumerable:!0}),c),stubEnv:(t,e)=>(o.has(t)||o.set(t,process.env[t]),s.includes(t)?process.env[t]=e?"1":"":void 0===e?delete process.env[t]:process.env[t]=String(e),c),unstubAllGlobals:()=>(i.forEach(((t,e)=>{t?Object.defineProperty(globalThis,e,t):Reflect.deleteProperty(globalThis,e)})),i.clear(),c),unstubAllEnvs:()=>(o.forEach(((t,e)=>{void 0===t?delete process.env[e]:process.env[e]=t})),o.clear(),c),resetModules:()=>(function(t,e=!1){const n=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...e?[]:[/^mock:/]];t.forEach(((e,r)=>{n.some((t=>t.test(r)))||t.invalidateModule(e)}))}(e.moduleCache),c),dynamicImportSettled:async()=>Su(),setConfig(n){t||(t={...e.config}),Object.assign(e.config,n)},resetConfig(){t&&Object.assign(e.config,t)}};return c}(),kh=Th;function Ah(){return"undefined"!=typeof __vitest_mocker__?__vitest_mocker__:new Proxy({},{get(t,e){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(e)}() is forbidden.`)}})}function _h(t){const e=function(t){const{message:e="$$stack trace error",stackTraceLimit:n=1}=t||{},r=Error.stackTraceLimit,i=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=t=>t.stack;const o=new Error(e).stack||"";return Error.prepareStackTrace=i,Error.stackTraceLimit=r,o}({stackTraceLimit:5}).split("\n"),n=e.findIndex((e=>e.includes(` at Object.${t}`)||e.includes(`${t}@`))),r=Ia(e[n+1]);return r?.file||""}((t,e,n)=>{n=null!=t?c(f(t)):{},((t,e,n,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let i of l(e))h.call(t,i)||i===n||a(t,i,{get:()=>e[i],enumerable:!(r=u(e,i))||r.enumerable})})(!e&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)})(q(),1);m();var Mh=["**/*.((j|t)s?(x)|m(j|t)s)?(x)","**/*.(md|markdown|txt|?(x)htm?(l)|yaml|yml|xml|json|bat|sh|bash|zsh|ini|css|scss|less|sass|py|rb|php|go|java|c|cpp|h|hpp|hxx|rust|zig)"];function Ch(t,e=Mh){if(t)if(Array.isArray(t))t=[...t];else{const n=t.include||[],r=t.exclude||[];0===n.length&&n.push(...e),t=[...n];for(const e of r)t.push(`!${e}`)}else t=[...e];return 0===t.length&&t.push(...e),t}su("normalizeIncludeFiles",(()=>{cu("should use default files when no patterns are provided",(()=>{const t=Ch([]);vf(t).toEqual(Mh)})),cu("should handle a simple array of include patterns",(()=>{const t=Ch(["**/*.ts","**/*.js"]);vf(t).toEqual(["**/*.ts","**/*.js"])})),cu("should handle an object with include and exclude patterns",(()=>{const t=Ch({include:["**/*.ts","**/*.js"],exclude:["**/node_modules/**"]});vf(t).toEqual(["**/*.ts","**/*.js","!**/node_modules/**"])})),cu("should fallback to default files when include is empty",(()=>{const t=Ch({include:[],exclude:["**/node_modules/**"]});vf(t).toEqual([...Mh,"!**/node_modules/**"])})),cu("should handle only exclude patterns with default include",(()=>{const t=Ch({exclude:["**/dist/**","**/build/**"]});vf(t).toEqual([...Mh,"!**/dist/**","!**/build/**"])})),cu("should handle an empty object as input",(()=>{const t=Ch({});vf(t).toEqual(Mh)})),cu("should handle undefined input gracefully",(()=>{const t=Ch(void 0);vf(t).toEqual(Mh)}))}));
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
@vitest/pretty-format/dist/index.js:
|
|
5
|
+
(**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-is.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*)
|
|
14
|
+
(**
|
|
15
|
+
* @license React
|
|
16
|
+
* react-is.development.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*)
|
|
23
|
+
(**
|
|
24
|
+
* @license React
|
|
25
|
+
* react-is.production.min.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*)
|
|
32
|
+
(**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-is.development.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*)
|
|
41
|
+
|
|
42
|
+
chai/chai.js:
|
|
43
|
+
(*!
|
|
44
|
+
* Chai - flag utility
|
|
45
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
46
|
+
* MIT Licensed
|
|
47
|
+
*)
|
|
48
|
+
(*!
|
|
49
|
+
* Chai - test utility
|
|
50
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
51
|
+
* MIT Licensed
|
|
52
|
+
*)
|
|
53
|
+
(*!
|
|
54
|
+
* Chai - expectTypes utility
|
|
55
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
56
|
+
* MIT Licensed
|
|
57
|
+
*)
|
|
58
|
+
(*!
|
|
59
|
+
* Chai - getActual utility
|
|
60
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
61
|
+
* MIT Licensed
|
|
62
|
+
*)
|
|
63
|
+
(*!
|
|
64
|
+
* Chai - message composition utility
|
|
65
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
66
|
+
* MIT Licensed
|
|
67
|
+
*)
|
|
68
|
+
(*!
|
|
69
|
+
* Chai - transferFlags utility
|
|
70
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
71
|
+
* MIT Licensed
|
|
72
|
+
*)
|
|
73
|
+
(*!
|
|
74
|
+
* chai
|
|
75
|
+
* http://chaijs.com
|
|
76
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
77
|
+
* MIT Licensed
|
|
78
|
+
*)
|
|
79
|
+
(*!
|
|
80
|
+
* Chai - isProxyEnabled helper
|
|
81
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
82
|
+
* MIT Licensed
|
|
83
|
+
*)
|
|
84
|
+
(*!
|
|
85
|
+
* Chai - addProperty utility
|
|
86
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
87
|
+
* MIT Licensed
|
|
88
|
+
*)
|
|
89
|
+
(*!
|
|
90
|
+
* Chai - addLengthGuard utility
|
|
91
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
92
|
+
* MIT Licensed
|
|
93
|
+
*)
|
|
94
|
+
(*!
|
|
95
|
+
* Chai - getProperties utility
|
|
96
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
97
|
+
* MIT Licensed
|
|
98
|
+
*)
|
|
99
|
+
(*!
|
|
100
|
+
* Chai - proxify utility
|
|
101
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
102
|
+
* MIT Licensed
|
|
103
|
+
*)
|
|
104
|
+
(*!
|
|
105
|
+
* Chai - addMethod utility
|
|
106
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
107
|
+
* MIT Licensed
|
|
108
|
+
*)
|
|
109
|
+
(*!
|
|
110
|
+
* Chai - overwriteProperty utility
|
|
111
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
112
|
+
* MIT Licensed
|
|
113
|
+
*)
|
|
114
|
+
(*!
|
|
115
|
+
* Chai - overwriteMethod utility
|
|
116
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
117
|
+
* MIT Licensed
|
|
118
|
+
*)
|
|
119
|
+
(*!
|
|
120
|
+
* Chai - addChainingMethod utility
|
|
121
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
122
|
+
* MIT Licensed
|
|
123
|
+
*)
|
|
124
|
+
(*!
|
|
125
|
+
* Chai - overwriteChainableMethod utility
|
|
126
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
127
|
+
* MIT Licensed
|
|
128
|
+
*)
|
|
129
|
+
(*!
|
|
130
|
+
* Chai - compareByInspect utility
|
|
131
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
132
|
+
* MIT Licensed
|
|
133
|
+
*)
|
|
134
|
+
(*!
|
|
135
|
+
* Chai - getOwnEnumerablePropertySymbols utility
|
|
136
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
137
|
+
* MIT Licensed
|
|
138
|
+
*)
|
|
139
|
+
(*!
|
|
140
|
+
* Chai - getOwnEnumerableProperties utility
|
|
141
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
142
|
+
* MIT Licensed
|
|
143
|
+
*)
|
|
144
|
+
(*!
|
|
145
|
+
* Chai - isNaN utility
|
|
146
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
147
|
+
* MIT Licensed
|
|
148
|
+
*)
|
|
149
|
+
(*!
|
|
150
|
+
* chai
|
|
151
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
152
|
+
* MIT Licensed
|
|
153
|
+
*)
|
|
154
|
+
(*!
|
|
155
|
+
* chai
|
|
156
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
157
|
+
* MIT Licensed
|
|
158
|
+
*)
|
|
159
|
+
(*! Bundled license information:
|
|
160
|
+
|
|
161
|
+
deep-eql/index.js:
|
|
162
|
+
(*!
|
|
163
|
+
* deep-eql
|
|
164
|
+
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
165
|
+
* MIT Licensed
|
|
166
|
+
*)
|
|
167
|
+
(*!
|
|
168
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
169
|
+
*
|
|
170
|
+
* @param {Mixed} leftHandOperand
|
|
171
|
+
* @param {Mixed} rightHandOperand
|
|
172
|
+
* @param {MemoizeMap} memoizeMap
|
|
173
|
+
* @returns {Boolean|null} result
|
|
174
|
+
*)
|
|
175
|
+
(*!
|
|
176
|
+
* Set the result of the equality into the MemoizeMap
|
|
177
|
+
*
|
|
178
|
+
* @param {Mixed} leftHandOperand
|
|
179
|
+
* @param {Mixed} rightHandOperand
|
|
180
|
+
* @param {MemoizeMap} memoizeMap
|
|
181
|
+
* @param {Boolean} result
|
|
182
|
+
*)
|
|
183
|
+
(*!
|
|
184
|
+
* Primary Export
|
|
185
|
+
*)
|
|
186
|
+
(*!
|
|
187
|
+
* The main logic of the `deepEqual` function.
|
|
188
|
+
*
|
|
189
|
+
* @param {Mixed} leftHandOperand
|
|
190
|
+
* @param {Mixed} rightHandOperand
|
|
191
|
+
* @param {Object} [options] (optional) Additional options
|
|
192
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
193
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
194
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
195
|
+
references to blow the stack.
|
|
196
|
+
* @return {Boolean} equal match
|
|
197
|
+
*)
|
|
198
|
+
(*!
|
|
199
|
+
* Compare two Regular Expressions for equality.
|
|
200
|
+
*
|
|
201
|
+
* @param {RegExp} leftHandOperand
|
|
202
|
+
* @param {RegExp} rightHandOperand
|
|
203
|
+
* @return {Boolean} result
|
|
204
|
+
*)
|
|
205
|
+
(*!
|
|
206
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
207
|
+
*
|
|
208
|
+
* @param {Set} leftHandOperand
|
|
209
|
+
* @param {Set} rightHandOperand
|
|
210
|
+
* @param {Object} [options] (Optional)
|
|
211
|
+
* @return {Boolean} result
|
|
212
|
+
*)
|
|
213
|
+
(*!
|
|
214
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
215
|
+
*
|
|
216
|
+
* @param {Iterable} leftHandOperand
|
|
217
|
+
* @param {Iterable} rightHandOperand
|
|
218
|
+
* @param {Object} [options] (Optional)
|
|
219
|
+
* @return {Boolean} result
|
|
220
|
+
*)
|
|
221
|
+
(*!
|
|
222
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
|
223
|
+
*
|
|
224
|
+
* @param {Iterable} leftHandOperand
|
|
225
|
+
* @param {Iterable} rightHandOperand
|
|
226
|
+
* @param {Object} [options] (Optional)
|
|
227
|
+
* @return {Boolean} result
|
|
228
|
+
*)
|
|
229
|
+
(*!
|
|
230
|
+
* Determine if the given object has an @@iterator function.
|
|
231
|
+
*
|
|
232
|
+
* @param {Object} target
|
|
233
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
234
|
+
*)
|
|
235
|
+
(*!
|
|
236
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
237
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
238
|
+
*
|
|
239
|
+
* @param {Object} target
|
|
240
|
+
* @returns {Array} an array of entries from the @@iterator function
|
|
241
|
+
*)
|
|
242
|
+
(*!
|
|
243
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
244
|
+
*
|
|
245
|
+
* @param {Generator} target
|
|
246
|
+
* @returns {Array} an array of entries from the Generator.
|
|
247
|
+
*)
|
|
248
|
+
(*!
|
|
249
|
+
* Gets all own and inherited enumerable keys from a target.
|
|
250
|
+
*
|
|
251
|
+
* @param {Object} target
|
|
252
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
253
|
+
*)
|
|
254
|
+
(*!
|
|
255
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
256
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
257
|
+
*
|
|
258
|
+
* @param {Mixed} leftHandOperand
|
|
259
|
+
* @param {Mixed} rightHandOperand
|
|
260
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
261
|
+
* @param {Object} [options] (Optional)
|
|
262
|
+
* @return {Boolean} result
|
|
263
|
+
*)
|
|
264
|
+
(*!
|
|
265
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
266
|
+
* for each enumerable key in the object.
|
|
267
|
+
*
|
|
268
|
+
* @param {Mixed} leftHandOperand
|
|
269
|
+
* @param {Mixed} rightHandOperand
|
|
270
|
+
* @param {Object} [options] (Optional)
|
|
271
|
+
* @return {Boolean} result
|
|
272
|
+
*)
|
|
273
|
+
(*!
|
|
274
|
+
* Returns true if the argument is a primitive.
|
|
275
|
+
*
|
|
276
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
|
277
|
+
* including functions and symbols.
|
|
278
|
+
*
|
|
279
|
+
* @param {Mixed} value
|
|
280
|
+
* @return {Boolean} result
|
|
281
|
+
*)
|
|
282
|
+
*)
|
|
283
|
+
|
|
284
|
+
@vitest/snapshot/dist/index.js:
|
|
285
|
+
(*
|
|
286
|
+
* @version 1.4.0
|
|
287
|
+
* @date 2015-10-26
|
|
288
|
+
* @stability 3 - Stable
|
|
289
|
+
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
290
|
+
* @license MIT License
|
|
291
|
+
*)
|
|
292
|
+
*/
|