@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.
Files changed (96) hide show
  1. package/README.md +6 -0
  2. package/dist/chunk-3TCMKKX2.mjs +1 -0
  3. package/dist/chunk-46TT3NZV.mjs +1 -0
  4. package/dist/chunk-7APJBRA7.mjs +1 -0
  5. package/dist/chunk-7AQU3PBW.mjs +1 -0
  6. package/dist/chunk-D3BCI5SM.mjs +1 -0
  7. package/dist/chunk-FXF2KJLF.mjs +1 -0
  8. package/dist/chunk-GGOKSJK4.mjs +1 -0
  9. package/dist/chunk-JTTOXXPG.mjs +1 -0
  10. package/dist/chunk-LOMQZH4U.mjs +292 -0
  11. package/dist/chunk-OTEAFARC.mjs +1 -0
  12. package/dist/chunk-UJZVJIGI.mjs +1 -0
  13. package/dist/config-file.d.mts +75 -0
  14. package/dist/config-file.d.ts +75 -0
  15. package/dist/config-file.js +1 -0
  16. package/dist/config-file.mjs +1 -0
  17. package/dist/config-file.test.d.mts +2 -0
  18. package/dist/config-file.test.d.ts +2 -0
  19. package/dist/config-file.test.js +292 -0
  20. package/dist/config-file.test.mjs +1 -0
  21. package/dist/front-matter.d.mts +6 -0
  22. package/dist/front-matter.d.ts +6 -0
  23. package/dist/front-matter.js +1 -0
  24. package/dist/front-matter.mjs +1 -0
  25. package/dist/front-matter.test.d.mts +2 -0
  26. package/dist/front-matter.test.d.ts +2 -0
  27. package/dist/front-matter.test.js +1 -0
  28. package/dist/front-matter.test.mjs +1 -0
  29. package/dist/get-multi-level-extname.d.mts +9 -0
  30. package/dist/get-multi-level-extname.d.ts +9 -0
  31. package/dist/get-multi-level-extname.js +1 -0
  32. package/dist/get-multi-level-extname.mjs +1 -0
  33. package/dist/glob.d.mts +28 -0
  34. package/dist/glob.d.ts +28 -0
  35. package/dist/glob.js +1 -0
  36. package/dist/glob.mjs +1 -0
  37. package/dist/glob.test.d.mts +2 -0
  38. package/dist/glob.test.d.ts +2 -0
  39. package/dist/glob.test.js +292 -0
  40. package/dist/glob.test.mjs +1 -0
  41. package/dist/include-files.d.mts +31 -0
  42. package/dist/include-files.d.ts +31 -0
  43. package/dist/include-files.js +1 -0
  44. package/dist/include-files.mjs +1 -0
  45. package/dist/include-files.test.d.mts +2 -0
  46. package/dist/include-files.test.d.ts +2 -0
  47. package/dist/include-files.test.js +292 -0
  48. package/dist/include-files.test.mjs +1 -0
  49. package/dist/index.d.mts +11 -0
  50. package/dist/index.d.ts +11 -0
  51. package/dist/index.js +1 -0
  52. package/dist/index.mjs +1 -0
  53. package/dist/is-string-in.d.mts +19 -0
  54. package/dist/is-string-in.d.ts +19 -0
  55. package/dist/is-string-in.js +1 -0
  56. package/dist/is-string-in.mjs +1 -0
  57. package/dist/magic-string.es-TUA2PMWY.mjs +1 -0
  58. package/dist/remove-leading-empty-lines.d.mts +18 -0
  59. package/dist/remove-leading-empty-lines.d.ts +18 -0
  60. package/dist/remove-leading-empty-lines.js +1 -0
  61. package/dist/remove-leading-empty-lines.mjs +1 -0
  62. package/dist/remove-leading-empty-lines.test.d.mts +2 -0
  63. package/dist/remove-leading-empty-lines.test.d.ts +2 -0
  64. package/dist/remove-leading-empty-lines.test.js +1 -0
  65. package/dist/remove-leading-empty-lines.test.mjs +1 -0
  66. package/dist/traverse-folder.d.mts +56 -0
  67. package/dist/traverse-folder.d.ts +56 -0
  68. package/dist/traverse-folder.js +1 -0
  69. package/dist/traverse-folder.mjs +1 -0
  70. package/dist/traverse-folder.test.d.mts +2 -0
  71. package/dist/traverse-folder.test.d.ts +2 -0
  72. package/dist/traverse-folder.test.js +292 -0
  73. package/dist/traverse-folder.test.mjs +1 -0
  74. package/dist/yaml.d.mts +59 -0
  75. package/dist/yaml.d.ts +59 -0
  76. package/dist/yaml.js +1 -0
  77. package/dist/yaml.mjs +1 -0
  78. package/docs/README.md +10 -0
  79. package/docs/classes/ConfigFile.md +169 -0
  80. package/docs/functions/getMultiLevelExtname.md +33 -0
  81. package/docs/functions/glob.md +56 -0
  82. package/docs/functions/isStringIn.md +43 -0
  83. package/docs/functions/normalizeIncludeFiles.md +49 -0
  84. package/docs/functions/parseFrontMatter.md +33 -0
  85. package/docs/functions/parseYaml.md +45 -0
  86. package/docs/functions/registerYamlTag.md +37 -0
  87. package/docs/functions/removeLeadingEmptyLines.md +39 -0
  88. package/docs/functions/stringifyYaml.md +45 -0
  89. package/docs/functions/traverseFolder.md +44 -0
  90. package/docs/functions/traverseFolderSync.md +44 -0
  91. package/docs/globals.md +36 -0
  92. package/docs/interfaces/IncludeFiles.md +25 -0
  93. package/docs/type-aliases/TraverseFolderHandler.md +33 -0
  94. package/docs/type-aliases/TraverseFolderSyncHandler.md +33 -0
  95. package/docs/variables/DefaultAllTextFiles.md +11 -0
  96. 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)=>(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});return t})(!e&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)),m=(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),y=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 g(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 w,v,$,x,S,j,E,T,O,k,A,_,M=d({"node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs"(){y(),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}}}}),C={};function I(){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 N(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 P(t){return"[object Object]"===S.call(t)}function R(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})})(C,{Bundle:()=>_,SourceMap:()=>x,default:()=>k});var B=d({"node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs"(){y(),M(),w=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))}},v=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}},$=I(),x=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=g(r,n[0],l),1!==n.length&&(i=g(r,n[1],i),o=g(r,n[2],o),c=g(r,n[3],c),4!==n.length&&(a=g(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,"+$(this.toString())}},S=Object.prototype.toString,j=/\w/,E=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?j.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}},T="\n",O={insertLeft:!1,insertRight:!1,storeName:!1},k=class t{constructor(t,e={}){const n=new v(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 w},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 w(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(t){t=t||{};const e=Object.keys(this.storedNames),n=new E(t.hires),r=R(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?N(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 x(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(P(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 v(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(T);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(T),-1!==t)return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(t=n.content.lastIndexOf(T),-1!==t)return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(t=n.intro.lastIndexOf(T),-1!==t)return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return t=this.intro.lastIndexOf(T),-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=R(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)}},A=Object.prototype.hasOwnProperty,_=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 k)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!P(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=>{A.call(t,e)||(t[e]=t.content[e])})),void 0===t.separator&&(t.separator=this.separator),t.filename)if(A.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 k(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 E(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=R(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?N(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 x(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}}}}),D=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/branding.js"(t){y(),Object.defineProperty(t,"__esModule",{value:!0})}}),F=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/messages.js"(t){y(),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){y(),Object.defineProperty(t,"__esModule",{value:!0})}}),q=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/utils.js"(t){y(),Object.defineProperty(t,"__esModule",{value:!0});Symbol("secret"),Symbol("mismatch"),Symbol("avalue")}}),J=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/index.js"(t){y();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(D(),t),n(F(),t),n(L(),t),n(q(),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}}});y(),y(),y(),y(),y(),y(),y(),y(),y();var U=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],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 W(t){return String(t)}W.open="",W.close="";var H=require("tty"),X=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 U)r[t]=e?n(i(o[0]),i(o[1]),o[2]):W;return r}(void 0!==process.env.FORCE_TTY||(0,H.isatty)(1));function z(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 V(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 K(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 G(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 Z(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 Y="function"==typeof Symbol&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Q=" ",tt={serialize:(t,e,n,r,i,o)=>{const s=t.toString();if("ArrayContaining"===s||"ArrayNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+Q}[${G(t.sample,e,n,r,i,o)}]`;if("ObjectContaining"===s||"ObjectNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+Q}{${Z(t.sample,e,n,r,i,o)}}`;if("StringMatching"===s||"StringNotMatching"===s)return s+Q+o(t.sample,e,n,r,i);if("StringContaining"===s||"StringNotContaining"===s)return s+Q+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===Y},et=new Set(["DOMStringMap","NamedNodeMap"]),nt=/^(?:HTML\w*Collection|NodeList)$/;var rt={serialize:(t,e,n,r,i,o)=>{const s=t.constructor.name;return++r>e.maxDepth?`[${s}]`:(e.min?"":s+" ")+(et.has(s)?`{${Z(function(t){return"NamedNodeMap"===t.constructor.name}(t)?[...t].reduce(((t,e)=>(t[e.name]=e.value,t)),{}):{...t},e,n,r,i,o)}}`:`[${G([...t],e,n,r,i,o)}]`)},test:t=>{return t&&t.constructor&&!!t.constructor.name&&(e=t.constructor.name,et.has(e)||nt.test(e));var e}};function ot(t){return t.replaceAll("<","&lt;").replaceAll(">","&gt;")}function st(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 ct(t,e,n,r,i,o){return t.map((t=>e.spacingOuter+n+("string"==typeof t?at(t,e):o(t,e,n,r,i)))).join("")}function at(t,e){const n=e.colors.content;return n.open+ot(t)+n.close}function ut(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 lt(t,e){const n=e.colors.tag;return`${n.open}<${t}${n.close} …${n.open} />${n.close}`}var ft=/^(?:(?:HTML|SVG)\w*)?Element$/;function ht(t){return 11===t.nodeType}var dt={serialize:(t,e,n,r,i,o)=>{if(function(t){return 3===t.nodeType}(t))return at(t.data,e);if(function(t){return 8===t.nodeType}(t))return function(t,e){const n=e.colors.comment;return`${n.open}\x3c!--${ot(t)}--\x3e${n.close}`}(t.data,e);const s=ht(t)?"DocumentFragment":t.tagName.toLowerCase();return++r>e.maxDepth?lt(s,e):ut(s,st(ht(t)?[]:Array.from(t.attributes,(t=>t.name)).sort(),ht(t)?{}:[...t.attributes].reduce(((t,e)=>(t[e.name]=e.value,t)),{}),e,n+e.indent,r,i,o),ct(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&&(ft.test(e)||i)||3===n&&"Text"===e||8===n&&"Comment"===e||11===n&&"DocumentFragment"===e}(t)}},pt="@@__IMMUTABLE_ORDERED__@@",bt=t=>`Immutable.${t}`,mt=t=>`[${t}]`,yt=" ";function gt(t,e,n,r,i,o,s){return++r>e.maxDepth?mt(bt(s)):`${bt(s)+yt}[${K(t.values(),e,n,r,i,o)}]`}var wt={serialize:(t,e,n,r,i,o)=>t["@@__IMMUTABLE_MAP__@@"]?function(t,e,n,r,i,o,s){return++r>e.maxDepth?mt(bt(s)):`${bt(s)+yt}{${V(t.entries(),e,n,r,i,o)}}`}(t,e,n,r,i,o,t[pt]?"OrderedMap":"Map"):t["@@__IMMUTABLE_LIST__@@"]?gt(t,e,n,r,i,o,"List"):t["@@__IMMUTABLE_SET__@@"]?gt(t,e,n,r,i,o,t[pt]?"OrderedSet":"Set"):t["@@__IMMUTABLE_STACK__@@"]?gt(t,e,n,r,i,o,"Stack"):t["@@__IMMUTABLE_SEQ__@@"]?function(t,e,n,r,i,o){const s=bt("Seq");return++r>e.maxDepth?mt(s):t["@@__IMMUTABLE_KEYED__@@"]?`${s+yt}{${t._iter||t._object?V(t.entries(),e,n,r,i,o):"…"}}`:`${s+yt}[${t._iter||t._array||t._collection||t._iterable?K(t.values(),e,n,r,i,o):"…"}]`}(t,e,n,r,i,o):function(t,e,n,r,i,o){const s=bt(t._name||"Record");return++r>e.maxDepth?mt(s):`${s+yt}{${V(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 vt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $t,xt={exports:{}},St={};var jt,Et,Tt={};function Ot(){return Et||(Et=1,"production"===process.env.NODE_ENV?xt.exports=function(){if($t)return St;$t=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 St.ContextConsumer=o,St.ContextProvider=s,St.Element=t,St.ForwardRef=c,St.Fragment=n,St.Lazy=f,St.Memo=l,St.Portal=e,St.Profiler=i,St.StrictMode=r,St.Suspense=a,St.SuspenseList=u,St.isContextConsumer=function(t){return p(t)===o},St.isContextProvider=function(t){return p(t)===s},St.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},St.isForwardRef=function(t){return p(t)===c},St.isFragment=function(t){return p(t)===n},St.isLazy=function(t){return p(t)===f},St.isMemo=function(t){return p(t)===l},St.isPortal=function(t){return p(t)===e},St.isProfiler=function(t){return p(t)===i},St.isStrictMode=function(t){return p(t)===r},St.isSuspense=function(t){return p(t)===a},St.isSuspenseList=function(t){return p(t)===u},St.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)},St.typeOf=p,St}():xt.exports=(jt||(jt=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");Tt.ContextConsumer=s,Tt.ContextProvider=c,Tt.Element=e,Tt.ForwardRef=a,Tt.Fragment=r,Tt.Lazy=h,Tt.Memo=f,Tt.Portal=n,Tt.Profiler=o,Tt.StrictMode=i,Tt.Suspense=u,Tt.SuspenseList=l,Tt.isContextConsumer=function(e){return t(e)===s},Tt.isContextProvider=function(e){return t(e)===c},Tt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Tt.isForwardRef=function(e){return t(e)===a},Tt.isFragment=function(e){return t(e)===r},Tt.isLazy=function(e){return t(e)===h},Tt.isMemo=function(e){return t(e)===f},Tt.isPortal=function(e){return t(e)===n},Tt.isProfiler=function(e){return t(e)===o},Tt.isStrictMode=function(e){return t(e)===i},Tt.isSuspense=function(e){return t(e)===u},Tt.isSuspenseList=function(e){return t(e)===l},Tt.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)},Tt.typeOf=t}()),Tt)),xt.exports}var kt,At=Ot(),_t=z({__proto__:null,default:vt(At)},[At]),Mt={exports:{}},Ct={};var It,Nt,Pt={};var Rt=(Nt||(Nt=1,"production"===process.env.NODE_ENV?Mt.exports=function(){if(kt)return Ct;kt=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"),Ct.ContextConsumer=c,Ct.ContextProvider=s,Ct.Element=e,Ct.ForwardRef=u,Ct.Fragment=r,Ct.Lazy=d,Ct.Memo=h,Ct.Portal=n,Ct.Profiler=o,Ct.StrictMode=i,Ct.Suspense=l,Ct.SuspenseList=f,Ct.isAsyncMode=function(){return!1},Ct.isConcurrentMode=function(){return!1},Ct.isContextConsumer=function(t){return b(t)===c},Ct.isContextProvider=function(t){return b(t)===s},Ct.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ct.isForwardRef=function(t){return b(t)===u},Ct.isFragment=function(t){return b(t)===r},Ct.isLazy=function(t){return b(t)===d},Ct.isMemo=function(t){return b(t)===h},Ct.isPortal=function(t){return b(t)===n},Ct.isProfiler=function(t){return b(t)===o},Ct.isStrictMode=function(t){return b(t)===i},Ct.isSuspense=function(t){return b(t)===l},Ct.isSuspenseList=function(t){return b(t)===f},Ct.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)},Ct.typeOf=b,Ct}():Mt.exports=(It||(It=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,T=l,O=f,k=!1,A=!1;Pt.ContextConsumer=m,Pt.ContextProvider=y,Pt.Element=g,Pt.ForwardRef=w,Pt.Fragment=v,Pt.Lazy=$,Pt.Memo=x,Pt.Portal=S,Pt.Profiler=j,Pt.StrictMode=E,Pt.Suspense=T,Pt.SuspenseList=O,Pt.isAsyncMode=function(t){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Pt.isConcurrentMode=function(t){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Pt.isContextConsumer=function(t){return b(t)===c},Pt.isContextProvider=function(t){return b(t)===s},Pt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Pt.isForwardRef=function(t){return b(t)===u},Pt.isFragment=function(t){return b(t)===r},Pt.isLazy=function(t){return b(t)===d},Pt.isMemo=function(t){return b(t)===h},Pt.isPortal=function(t){return b(t)===n},Pt.isProfiler=function(t){return b(t)===o},Pt.isStrictMode=function(t){return b(t)===i},Pt.isSuspense=function(t){return b(t)===l},Pt.isSuspenseList=function(t){return b(t)===f},Pt.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)},Pt.typeOf=b}()),Pt)),Mt.exports),Bt=z({__proto__:null,default:vt(Rt)},[Rt]),Dt=Object.fromEntries(["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"].map((t=>[t,e=>Bt[t](e)||_t[t](e)])));function Ft(t,e=[]){if(Array.isArray(t))for(const n of t)Ft(n,e);else null!=t&&!1!==t&&""!==t&&e.push(t);return e}function Lt(t){const e=t.type;if("string"==typeof e)return e;if("function"==typeof e)return e.displayName||e.name||"Unknown";if(Dt.isFragment(t))return"React.Fragment";if(Dt.isSuspense(t))return"React.Suspense";if("object"==typeof e&&null!==e){if(Dt.isContextProvider(t))return"Context.Provider";if(Dt.isContextConsumer(t))return"Context.Consumer";if(Dt.isForwardRef(t)){if(e.displayName)return e.displayName;const t=e.render.displayName||e.render.name||"";return""===t?"ForwardRef":`ForwardRef(${t})`}if(Dt.isMemo(t)){const t=e.displayName||e.type.displayName||e.type.name||"";return""===t?"Memo":`Memo(${t})`}}return"UNDEFINED"}var qt={serialize:(t,e,n,r,i,o)=>++r>e.maxDepth?lt(Lt(t),e):ut(Lt(t),st(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),ct(Ft(t.props.children),e,n+e.indent,r,i,o),e,n),test:t=>null!=t&&Dt.isElement(t)},Jt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var Ut={serialize:(t,e,n,r,i,o)=>++r>e.maxDepth?lt(t.type,e):ut(t.type,t.props?st(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?ct(t.children,e,n+e.indent,r,i,o):"",e,n),test:t=>t&&t.$$typeof===Jt},Wt=Object.prototype.toString,Ht=Date.prototype.toISOString,Xt=Error.prototype.toString,zt=RegExp.prototype.toString;function Vt(t){return"function"==typeof t.constructor&&t.constructor.name||"Object"}var Kt=/^Symbol\((.*)\)(.*)$/,Gt=/\n/g,Zt=class extends Error{constructor(t,e){super(t),this.stack=e,this.name=this.constructor.name}};function Yt(t,e){return e?`[Function ${t.name||"anonymous"}]`:"[Function]"}function Qt(t){return String(t).replace(Kt,"Symbol($1)")}function te(t){return`[${Xt.call(t)}]`}function ee(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 Yt(t,e);if("symbol"===i)return Qt(t);const o=Wt.call(t);return"[object WeakMap]"===o?"WeakMap {}":"[object WeakSet]"===o?"WeakSet {}":"[object Function]"===o||"[object GeneratorFunction]"===o?Yt(t,e):"[object Symbol]"===o?Qt(t):"[object Date]"===o?Number.isNaN(+t)?"Date { NaN }":Ht.call(t):"[object Error]"===o?te(t):"[object RegExp]"===o?n?zt.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):zt.call(t):t instanceof Error?te(t):null}function ne(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 se(t.toJSON(),e,n,r,i,!0);const a=Wt.call(t);return"[object Arguments]"===a?s?"[Arguments]":`${c?"":"Arguments "}[${G(t,e,n,r,i,se)}]`: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} `:""}[${G(t,e,n,r,i,se)}]`:"[object Map]"===a?s?"[Map]":`Map {${V(t.entries(),e,n,r,i,se," => ")}}`:"[object Set]"===a?s?"[Set]":`Set {${K(t.values(),e,n,r,i,se)}}`:s||function(t){return"undefined"!=typeof window&&t===window}(t)?`[${Vt(t)}]`:`${c?"":e.printBasicPrototype||"Object"!==Vt(t)?`${Vt(t)} `:""}{${Z(t,e,n,r,i,se)}}`}var re={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:Vt(t);return s?`[${f}]`:`${f} {${V(Object.entries(l).values(),e,n,r,i,o)}}`}};function ie(t,e,n,r,i,o){let s;try{s=function(t){return null!=t.serialize}(t)?t.serialize(e,n,r,i,o,se):t.print(e,(t=>se(t,n,r,i,o)),(t=>{const e=r+n.indent;return e+t.replaceAll(Gt,`\n${e}`)}),{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(t){throw new Zt(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 oe(t,e){for(const n of t)try{if(n.test(e))return n}catch(t){throw new Zt(t.message,t.stack)}return null}function se(t,e,n,r,i,o){const s=oe(e.plugins,t);if(null!==s)return ie(s,t,e,n,r,i);const c=ee(t,e.printFunctionName,e.escapeRegex,e.escapeString);return null!==c?c:ne(t,e,n,r,i,o)}var ce={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},ae=Object.keys(ce),ue={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:ce};function le(t){return(null==t?void 0:t.printFunctionName)??ue.printFunctionName}function fe(t){return(null==t?void 0:t.escapeRegex)??ue.escapeRegex}function he(t){return(null==t?void 0:t.escapeString)??ue.escapeString}function de(t){return{callToJSON:(null==t?void 0:t.callToJSON)??ue.callToJSON,colors:(null==t?void 0:t.highlight)?ae.reduce(((t,e)=>{const n=ce[e],r=n&&X[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)):ae.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:ue.compareKeys,escapeRegex:fe(t),escapeString:he(t),indent:(null==t?void 0:t.min)?"":(e=(null==t?void 0:t.indent)??ue.indent,Array.from({length:e+1}).join(" ")),maxDepth:(null==t?void 0:t.maxDepth)??ue.maxDepth,maxWidth:(null==t?void 0:t.maxWidth)??ue.maxWidth,min:(null==t?void 0:t.min)??ue.min,plugins:(null==t?void 0:t.plugins)??ue.plugins,printBasicPrototype:(null==t?void 0:t.printBasicPrototype)??!0,printFunctionName:le(t),spacingInner:(null==t?void 0:t.min)?" ":"\n",spacingOuter:(null==t?void 0:t.min)?"":"\n"};var e}function pe(t,e){if(e&&(function(t){for(const e of Object.keys(t))if(!Object.prototype.hasOwnProperty.call(ue,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=oe(e.plugins,t);if(null!==n)return ie(n,t,de(e),"",0,[])}const n=ee(t,le(e),fe(e),he(e));return null!==n?n:ne(t,de(e),"",0,[])}var be={AsymmetricMatcher:tt,DOMCollection:rt,DOMElement:dt,Immutable:wt,ReactElement:qt,ReactTestComponent:Ut,Error:re};y(),y(),y();var me={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"]},ye={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ge="…";function we(t,e){const n=me[ye[e]]||me[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function ve(t,e,n=ge){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 $e(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=`${ge}(${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=`${ge}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function xe([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)}`}y();function Se(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(ve(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){i+=`${ge}(${t.length-t[n]+1})`;break}i+=r}let o="";return r.length&&(o=$e(r.map((e=>[e,t[e]])),e,xe)),`${n}[ ${i}${o?`, ${o}`:""} ]`}function je(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${ve(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function Ee([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}y(),y(),y(),y();var Te=Number.isNaN||(t=>t!=t);function Oe(t,e){return Te(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(ve(String(t),e.truncate),"number")}function ke(t,e){let n=ve(t.toString(),e.truncate-1);return n!==ge&&(n+="n"),e.stylize(n,"bigint")}y(),y(),y(),y();var Ae=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),_e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function Me(t){return _e[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function Ce(t,e){return Ae.test(t)&&(t=t.replace(Ae,Me)),e.stylize(`'${ve(t,e.truncate-2)}'`,"string")}function Ie(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}y(),y();var Ne=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(Ne=(r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`})}catch(t){}var Pe=Ne;function Re(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=$e(n.map((e=>[e,t[e]])),e,xe),o=$e(r.map((e=>[e,t[e]])),e,xe);e.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}y(),y();var Be=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;y(),y();var De=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Fe([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function Le(t,e){return $e(t,e,qe,"\n")}function qe(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+=$e(n.map((e=>[e,t.getAttribute(e)])),e,Fe," ")),e.truncate-=c.length;const a=e.truncate;let u=Le(t.children,e);return u&&u.length>a&&(u=`${ge}(${t.children.length})`),`${i}${c}${o}${u}${s}`}y();var Je="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",Ue=!1;try{const t=require("util");Ue=!!t.inspect&&t.inspect.custom}catch(t){Ue=!1}var We=new WeakMap,He={},Xe={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:Oe,Number:Oe,bigint:ke,BigInt:ke,string:Ce,String:Ce,function:je,Function:je,symbol:Ie,Symbol:Ie,Array:function(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=$e(t,e);e.truncate-=r.length;let i="";return n.length&&(i=$e(n.map((e=>[e,t[e]])),e,xe)),`[ ${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${ve(r[1],e.truncate-i.length-1)}`,"date")},Map:function(t,e){return 0===t.size?"Map{}":(e.truncate-=7,`Map{ ${$e(function(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}(t),e,Ee)} }`)},Set:function(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${$e(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(`/${ve(i,r)}/${n}`,"regexp")},Promise:Pe,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[ ${$e(t,e)} ]`)},Int8Array:Se,Uint8Array:Se,Uint8ClampedArray:Se,Int16Array:Se,Uint16Array:Se,Int32Array:Se,Uint32Array:Se,Float32Array:Se,Float64Array:Se,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===De.indexOf(t))),r=t.name;e.truncate-=r.length;let i="";if("string"==typeof t.message?i=ve(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=$e(n.map((e=>[e,t[e]])),e,xe);return`${r}${i}${o?` { ${o} }`:""}`},HTMLCollection:Le,NodeList:Le},ze=Object.prototype.toString;function Ve(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=we),f}(e,Ve),{customInspect:r}=n;let i=null===t?"null":typeof t;if("object"===i&&(i=ze.call(t).slice(8,-1)),i in Xe)return Xe[i](t,n);if(r&&t){const e=((t,e,n)=>Je in t&&"function"==typeof t[Je]?t[Je](e):Ue&&Ue in t&&"function"==typeof t[Ue]?t[Ue](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&We.has(t.constructor)?We.get(t.constructor)(t,e):He[n]?He[n](t,e):"")(t,n,i);if(e)return"string"==typeof e?e:Ve(e,n)}const o=!!t&&Object.getPrototypeOf(t);return o===Object.prototype||null===o?Re(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?qe(t,n):"constructor"in t?t.constructor!==Object?function(t,e){let n="";return Be&&Be in t&&(n=t[Be]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${Re(t,e)}`}(t,n):Re(t,n):t===Object(t)?Re(t,n):n.stylize(String(t),i)}var{AsymmetricMatcher:Ke,DOMCollection:Ge,DOMElement:Ze,Immutable:Ye,ReactElement:Qe,ReactTestComponent:tn}=be,en=[tn,Qe,Ze,Ge,Ye,Ke];function nn(t,e=10,{maxLength:n,...r}={}){const i=n??1e4;let o;try{o=pe(t,{maxDepth:e,escapeString:!1,plugins:en,...r})}catch{o=pe(t,{callToJSON:!1,maxDepth:e,escapeString:!1,plugins:en,...r})}return o.length>=i&&e>1?nn(t,Math.floor(Math.min(e,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):o}var rn=/%[sdjifoOc%]/g;function on(...t){if("string"!=typeof t[0]){const e=[];for(let n=0;n<t.length;n++)e.push(sn(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(rn,(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():sn(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 sn(t[n++],{showHidden:!0,showProxy:!0});case"%O":return sn(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}`:` ${sn(r)}`;return i}function sn(t,e={}){return 0===e.truncate&&(e.truncate=Number.POSITIVE_INFINITY),Ve(t,e)}function cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function an(t,e,n){const r=typeof t;if(!n.includes(r))throw new TypeError(`${e} value must be ${n.join(" or ")}, received "${r}"`)}function un(t){return null==t&&(t=[]),Array.isArray(t)?t:[t]}function ln(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}function fn(t){return Object.prototype.toString.apply(t).slice(8,-1)}function hn(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))}y();var dn,pn,bn={forceWritable:!1};function mn(t,e=bn){return yn(t,new WeakMap,e)}function yn(t,e,n=bn){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]=yn(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=hn(t);for(const o of r){const r=Object.getOwnPropertyDescriptor(t,o);if(!r)continue;const s=yn(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 gn(){let t=null,e=null;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n}pn||(pn=1,Mn=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,_n=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,wn=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,In=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,An=/(?: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,Nn=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,Bn=/[\t\v\f\ufeff\p{Zs}]+/uy,Tn=/\r?\n|[\r\u2028\u2029]/y,On=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,Cn=/\/\/.*/y,$n=/[<>.:={}]|\/(?![\/*])/y,vn=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,xn=/(['"])(?:(?!\1)[^])*(\1)?/y,Sn=/[^<>{}]+/y,Rn=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,Pn=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,jn=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,En=/^(?:return|throw|yield)$/,kn=RegExp(Tn.source),dn=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]&&(Rn.test(s)||jn.test(s))&&(Mn.lastIndex=o,a=Mn.exec(t))){o=Mn.lastIndex,s=a[0],d=!0,yield{type:"RegularExpressionLiteral",value:a[0],closed:void 0!==a[1]&&"\\"!==a[1]};continue}if(_n.lastIndex=o,a=_n.exec(t)){switch(p=a[0],l=_n.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"{":_n.lastIndex=0,i=!Pn.test(s)&&(Rn.test(s)||jn.test(s)),n.push(i),d=!1;break;case"}":switch(u.tag){case"InterpolationInTemplate":if(n.length===u.nesting){Nn.lastIndex=o,a=Nn.exec(t),o=Nn.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&&(Rn.test(s)||jn.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(wn.lastIndex=o,a=wn.exec(t)){switch(o=wn.lastIndex,f=a[0],a[0]){case"for":case"if":case"while":case"with":"."!==s&&"?."!==s&&(f="?NonExpressionParenKeyword")}s=f,d=!jn.test(a[0]),yield{type:"#"===a[1]?"PrivateIdentifier":"IdentifierName",value:a[0]};continue}if(In.lastIndex=o,a=In.exec(t)){o=In.lastIndex,s=a[0],d=!0,yield{type:"StringLiteral",value:a[0],closed:void 0!==a[2]};continue}if(An.lastIndex=o,a=An.exec(t)){o=An.lastIndex,s=a[0],d=!0,yield{type:"NumericLiteral",value:a[0]};continue}if(Nn.lastIndex=o,a=Nn.exec(t)){o=Nn.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($n.lastIndex=o,a=$n.exec(t)){switch(o=$n.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(vn.lastIndex=o,a=vn.exec(t)){o=vn.lastIndex,s=a[0],yield{type:"JSXIdentifier",value:a[0]};continue}if(xn.lastIndex=o,a=xn.exec(t)){o=xn.lastIndex,s=a[0],yield{type:"JSXString",value:a[0],closed:void 0!==a[2]};continue}break;case"JSXChildren":if(Sn.lastIndex=o,a=Sn.exec(t)){o=Sn.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}}Bn.lastIndex=o,(a=Bn.exec(t))?(o=Bn.lastIndex,yield{type:"WhiteSpace",value:a[0]}):(Tn.lastIndex=o,(a=Tn.exec(t))?(o=Tn.lastIndex,d=!1,En.test(s)&&(s="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:a[0]}):(On.lastIndex=o,(a=On.exec(t))?(o=On.lastIndex,kn.test(a[0])&&(d=!1,En.test(s)&&(s="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:a[0],closed:void 0!==a[1]}):(Cn.lastIndex=o,(a=Cn.exec(t))?(o=Cn.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 wn,vn,$n,xn,Sn,jn,En,Tn,On,kn,An,_n,Mn,Cn,In,Nn,Pn,Rn,Bn,Dn=["implements","interface","let","package","private","protected","public","static","yield"],Fn=(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(Dn),Symbol("vitest:SAFE_TIMERS"));function Ln(){const{setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:o,queueMicrotask:s}=globalThis[Fn]||globalThis,{nextTick:c}=globalThis[Fn]||globalThis.process||{nextTick:t=>t()};return{nextTick:c,setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:o,queueMicrotask:s}}y();var qn=-1,Jn=class{constructor(t,e){m(this,0),m(this,1),this[0]=t,this[1]=e}};function Un(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 Wn(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 Hn(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 Xn(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 Jn(qn,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&&Yn(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=Wn(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=Qn(n,r)+Qn(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=Qn(n,r)+Qn(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]===qn&&1===t[o][0]){const e=t[o-1][1],n=t[o][1],r=Hn(e,n),i=Hn(n,e);r>=i?(r>=e.length/2||r>=n.length/2)&&(t.splice(o,0,new Jn(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 Jn(0,e.substring(0,i))),t[o-1][0]=1,t[o-1][1]=n.substring(0,n.length-i),t[o+1][0]=qn,t[o+1][1]=e.substring(i),o++),o++}o++}}var zn=/[^a-z0-9]/i,Vn=/\s/,Kn=/[\r\n]/,Gn=/\n\r?\n$/,Zn=/^\r?\n\r?\n/;function Yn(t){t.push(new Jn(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 qn:r++,o+=t[n][1],n++;break;case 0:r+i>1?(0!==r&&0!==i&&(e=Un(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 Jn(0,s.substring(0,e))),n++),s=s.substring(e),o=o.substring(e)),e=Wn(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 Jn(qn,o)),n++),s.length&&(t.splice(n,0,new Jn(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&&Yn(t)}function Qn(t,e){if(!t||!e)return 6;const n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(zn),o=r.match(zn),s=i&&n.match(Vn),c=o&&r.match(Vn),a=s&&n.match(Kn),u=c&&r.match(Kn),l=a&&t.match(Gn),f=u&&e.match(Zn);return l||f?5:a||u?4:i&&!s&&c?3:s||c?2:i||o?1:0}var tr,er="Compared values have no visual difference.",nr={};var rr=cn(function(){if(tr)return nr;tr=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.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:T,nChangeFollowing:O,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,T),k<r&&A<l&&a(O,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 nr}());function ir(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 or(t,e,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return ir(t,e,n,r,i,o)}function sr(t,e,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return ir(t,e,n,r,i,o)}function cr(t,e,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return ir(t,e,n,r,i,o)}function ar(t,e,n,r,{patchColor:i}){return i(`@@ -${t+1},${e-t} +${n+1},${r-n} @@`)}var ur=t=>t;function lr(t={}){return{aAnnotation:"Expected",aColor:X.green,aIndicator:"-",bAnnotation:"Received",bColor:X.red,bIndicator:"+",changeColor:X.inverse,changeLineTrailingSpaceColor:ur,commonColor:X.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ur,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:X.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ur,...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 fr(t){return 1===t.length&&0===t[0].length}function hr(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 qn: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 qn:return or(i,o,e);case 1:return sr(i,o,e);default:return cr(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(cr(t,0===n||n===l,e)),b+=1,m+=1},g=t=>{const n=f.length;f.push(or(t,0===n||n===l,e)),b+=1},w=t=>{const n=f.length;f.push(sr(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]=ar(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]===qn;)g(t[a][1]),a+=1;for(;a!==n&&1===t[a][0];)w(t[a][1]),a+=1}return u&&(f[h]=ar(d,b,p,m,e)),f.join("\n")}(t,n))+(e?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):"")}function dr(t,e,n){const r=lr(n),[i,o]=pr(fr(t)?[]:t,fr(e)?[]:e,r);return hr(i,o,r)}function pr(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(rr(o,s,((n,r)=>t[n]===e[r]),((n,r,i)=>{for(;u!==r;u+=1)a.push(new Jn(qn,t[u]));for(;l!==i;l+=1)a.push(new Jn(1,e[l]));for(;0!==n;n-=1,u+=1,l+=1)a.push(new Jn(0,e[l]))}));u!==o;u+=1)a.push(new Jn(qn,t[u]));for(;l!==s;l+=1)a.push(new Jn(1,e[l]));return[a,c]}function br(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 mr(t){return t.includes("\r\n")?"\r\n":"\n"}var yr=class{constructor(t,e){m(this,"op"),m(this,"line"),m(this,"lines"),m(this,"changeColor"),this.op=t,this.line=[],this.lines=[],this.changeColor=e}pushSubstring(t){this.pushDiff(new Jn(this.op,t))}pushLine(){var t,e,n;this.lines.push(1!==this.line.length?new Jn(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 Jn(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}},gr=class{constructor(t,e){m(this,"deleteBuffer"),m(this,"insertBuffer"),m(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 Jn(e,t);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new Jn(e,t)):0!==t.length&&this.pushDiffChangeLines(new Jn(e,t))}))}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};function wr(t,e,n){if(t!==e&&0!==t.length&&0!==e.length){const r=t.includes("\n")||e.includes("\n"),[i,o]=vr(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=lr(n),e=function(t,e){const n=new yr(qn,e),r=new yr(1,e),i=new gr(n,r);return t.forEach((t=>{switch(t[0]){case qn:n.align(t);break;case 1:r.align(t);break;default:i.align(t)}})),i.getLines()}(i,t.changeColor);return hr(e,o,t)}}return dr(t.split("\n"),e.split("\n"),n)}function vr(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=mr(t),a=mr(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 rr(o,s,((n,r)=>t[n]===e[r]),((n,r,i)=>{a!==r&&l.push(new Jn(qn,t.slice(a,r))),u!==i&&l.push(new Jn(1,e.slice(u,i))),a=r+n,u=i+n,l.push(new Jn(0,e.slice(i,u)))})),a!==o&&l.push(new Jn(qn,t.slice(a))),u!==s&&l.push(new Jn(1,e.slice(u))),[l,c]}(t,e,r);return n&&Xn(i),[i,o]}function $r(t,e){const{commonColor:n}=lr(e);return n(t)}var{AsymmetricMatcher:xr,DOMCollection:Sr,DOMElement:jr,Immutable:Er,ReactElement:Tr,ReactTestComponent:Or}=be,kr=[Or,Tr,jr,Sr,Er,xr,be.Error],Ar={plugins:kr},_r={callToJSON:!1,maxDepth:8,plugins:kr};function Mr(t,e,n){if(Object.is(t,e))return"";const r=br(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!==br(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}=lr(n),l=Pr(_r,n);let f=pe(t,l),h=pe(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 dr(t.split("\n"),e.split("\n"),n);case"boolean":case"number":return function(t,e,n){const r=pe(t,Ar),i=pe(e,Ar);return r===i?"":dr(r.split("\n"),i.split("\n"),n)}(t,e,n);case"map":return Nr(Cr(t),Cr(e),n);case"set":return Nr(Ir(t),Ir(e),n);default:return Nr(t,e,n)}}function Cr(t){return new Map(Array.from(t.entries()).sort())}function Ir(t){return new Set(Array.from(t.values()).sort())}function Nr(t,e,n){let r,i=!1;try{r=Rr(t,e,Pr(Ar,n),n)}catch{i=!0}const o=$r(er,n);if(void 0===r||r===o){r=Rr(t,e,Pr(_r,n),n),r===o||i||(r=`${$r("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${r}`)}return r}function Pr(t,e){const{compareKeys:n,printBasicPrototype:r}=lr(e);return{...t,compareKeys:n,printBasicPrototype:r}}function Rr(t,e,n,r){const i={...n,indent:0},o=pe(t,i),s=pe(e,i);if(o===s)return $r(er,r);{const i=pe(t,n),c=pe(e,n);return function(t,e,n,r,i){if(fr(t)&&fr(n)&&(t=[],n=[]),fr(e)&&fr(r)&&(e=[],r=[]),t.length!==n.length||e.length!==r.length)return dr(t,e,i);const[o,s]=pr(n,r,i);let c=0,a=0;return o.forEach((n=>{switch(n[0]){case qn: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}})),hr(o,s,lr(i))}(i.split("\n"),c.split("\n"),o.split("\n"),s.split("\n"),r)}}function Br(t){return"Object"===fn(t)&&"function"==typeof t.asymmetricMatch}function Dr(t,e){const n=fn(t);return n===fn(e)&&("Object"===n||"Array"===n)}function Fr(t,e,n){const{aAnnotation:r,bAnnotation:i}=lr(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 wr(e,t,n);const[c]=vr(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=Ur(c,qn,a),X.green(Jr(nn(s))))}\n${u(i)+(o=Ur(c,1,a),X.red(Jr(nn(o))))}`}var o,s;const c=mn(e,{forceWritable:!0}),a=mn(t,{forceWritable:!0}),{replacedExpected:u,replacedActual:l}=Lr(a,c);return Mr(u,l,n)}function Lr(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}):Dr(t,e)?(n.has(t)||r.has(e)||(n.add(t),r.add(e),hn(e).forEach((i=>{const o=e[i],s=t[i];if(Br(o))o.asymmetricMatch(s)&&(t[i]=o);else if(Br(s))s.asymmetricMatch(o)&&(e[i]=s);else if(Dr(s,o)){const c=Lr(s,o,n,r);t[i]=c.replacedActual,e[i]=c.replacedExpected}}))),{replacedActual:t,replacedExpected:e}):{replacedActual:t,replacedExpected:e}}var qr="·";function Jr(t){return t.replace(/\s+$/gm,(t=>qr.repeat(t.length)))}function Ur(t,e,n){return t.reduce(((t,r)=>t+(0===r[0]?r[1]:r[0]===e?n?X.inverse(r[1]):r[1]:"")),"")}function Wr(t,e){if(!t)throw new Error(e)}function Hr(t,e){return typeof e===t}function Xr(t,e,n){Object.defineProperty(t,e,n)}function zr(t,e,n){Object.defineProperty(t,e,{value:n})}y(),y();var Vr=Symbol.for("tinyspy:spy"),Kr=new Set,Gr=t=>t[Vr]||(t=>(Xr(t,Vr,{value:{reset:()=>(t=>{t.called=!1,t.callCount=0,t.calls=[],t.results=[],t.resolves=[],t.next=[]})(t[Vr])}}),t[Vr]))(t);function Zr(t){Wr(Hr("function",t)||Hr("undefined",t),"cannot spy on a non-function value");let e=function(...t){let n=Gr(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};zr(e,"_isMockFunction",!0),zr(e,"length",t?t.length:0),zr(e,"name",t&&t.name||"spy");let n=Gr(e);return n.reset(),n.impl=t,e}var Yr=(t,e)=>Object.getOwnPropertyDescriptor(t,e),Qr=(t,e)=>{null!=e&&"function"==typeof e&&null!=e.prototype&&Object.setPrototypeOf(t.prototype,e.prototype)};function ti(t,e,n){Wr(!Hr("undefined",t),"spyOn could not find an object to spy upon"),Wr(Hr("object",t)||Hr("function",t),"cannot spyOn on a primitive value");let[r,i]=(()=>{if(!Hr("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=Yr(t,r),s=Object.getPrototypeOf(t),c=s&&Yr(s,r),a=o||c;Wr(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,Xr(t,r,o)};n||(n=u);let h=Zr(n);"value"===i&&Qr(h,u);let d=h[Vr];return zr(d,"restore",(()=>a?Xr(t,r,a):f(u))),zr(d,"getOriginal",(()=>l?u():u)),zr(d,"willCall",(t=>(d.impl=t,h))),f(l?()=>(Qr(h,n),h):h),Kr.add(h),h}var ei=new Set;function ni(t){return"function"==typeof t&&"_isMockFunction"in t&&t._isMockFunction}function ri(t,e,n){return oi(ti(t,n?{[{get:"getter",set:"setter"}[n]]:e}:e))}var ii=0;function oi(t){const e=t;let n,r=[],i=[],o=[];const s=Gr(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(++ii);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),ei.add(e),e}function si(t){const e=oi(ti({spy:t||function(){}},"spy"));return t&&e.mockImplementation(t),e}y();var ci=Object.getPrototypeOf({});function ai(t){return t instanceof Error?`<unserializable>: ${t.message}`:"string"==typeof t?`<unserializable>: ${t}`:"<unserializable>"}function ui(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 ui(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()} ${on(t.sample)}`;if("function"==typeof t.toJSON)return ui(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]=ui(t,e)}catch(t){n[r]=ai(t)}})),n}{const n=Object.create(null);e.set(t,n);let r=t;for(;r&&r!==ci;)Object.getOwnPropertyNames(r).forEach((r=>{if(!(r in n))try{n[r]=ui(t[r],e)}catch(t){delete n[r],n[r]=ai(t)}})),r=Object.getPrototypeOf(r);return n}}function li(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=Fr(r.actual,r.expected,{...e,...r.diffOptions})),"string"!=typeof r.expected&&(r.expected=nn(r.expected,10)),"string"!=typeof r.actual&&(r.actual=nn(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=li(r.cause,e,n))}catch{}try{return ui(r)}catch(t){return ui(new Error(`Failed to fully serialize error: ${null==t?void 0:t.message}\nInner error message: ${null==r?void 0:r.message}`))}}y();var fi,hi,di=Object.defineProperty,pi=Object.getOwnPropertyNames,bi=(t,e)=>di(t,"name",{value:e,configurable:!0}),mi=(t,e)=>{for(var n in e)di(t,n,{get:e[n],enumerable:!0})},yi=(fi={"(disabled):util"(){}},function(){return hi||(0,fi[pi(fi)[0]])((hi={exports:{}}).exports,hi),hi.exports}),gi={};mi(gi,{addChainableMethod:()=>Es,addLengthGuard:()=>hs,addMethod:()=>ys,addProperty:()=>ls,checkError:()=>wi,compareByInspect:()=>Os,eql:()=>Lo,expectTypes:()=>Ii,flag:()=>Oi,getActual:()=>Ni,getMessage:()=>Io,getName:()=>Is,getOperator:()=>Cs,getOwnEnumerableProperties:()=>As,getOwnEnumerablePropertySymbols:()=>ks,getPathInfo:()=>cs,hasProperty:()=>is,inspect:()=>Mo,isNaN:()=>_s,isNumeric:()=>Ps,isProxyEnabled:()=>us,isRegExp:()=>Ns,objDisplay:()=>Co,overwriteChainableMethod:()=>Ts,overwriteMethod:()=>ws,overwriteProperty:()=>gs,proxify:()=>bs,test:()=>ki,transferFlags:()=>No,type:()=>Ai});var wi={};function vi(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function $i(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function xi(t,e){return vi(e)&&t===e}function Si(t,e){return vi(e)?t.constructor===e.constructor||t instanceof e.constructor:!("object"!=typeof e&&"function"!=typeof e||!e.prototype)&&(t.constructor===e||t instanceof e)}function ji(t,e){const n="string"==typeof t?t:t.message;return $i(e)?e.test(n):"string"==typeof e&&-1!==n.indexOf(e)}function Ei(t){let e=t;if(vi(t))e=t.constructor.name;else if("function"==typeof t&&(e=t.name,""===e)){e=(new t).name||e}return e}function Ti(t){let e="";return t&&t.message?e=t.message:"string"==typeof t&&(e=t),e}function Oi(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));if(3!==arguments.length)return r[e];r[e]=n}function ki(t,e){var n=Oi(t,"negate"),r=e[0];return n?!r:r}function Ai(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)}mi(wi,{compatibleConstructor:()=>Si,compatibleInstance:()=>xi,compatibleMessage:()=>ji,getConstructorName:()=>Ei,getMessage:()=>Ti}),bi(vi,"isErrorInstance"),bi($i,"isRegExp"),bi(xi,"compatibleInstance"),bi(Si,"compatibleConstructor"),bi(ji,"compatibleMessage"),bi(Ei,"getConstructorName"),bi(Ti,"getMessage"),bi(Oi,"flag"),bi(ki,"test"),bi(Ai,"type");var _i,Mi="captureStackTrace"in Error,Ci=(_i=class extends Error{constructor(t="Unspecified AssertionError",e,n){super(t),m(this,"message"),this.message=t,Mi&&Error.captureStackTrace(this,n||_i);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}}},bi(_i,"AssertionError"),_i);function Ii(t,e){var n=Oi(t,"message"),r=Oi(t,"ssfi");n=n?n+": ":"",t=Oi(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=Ai(t).toLowerCase();if(!e.some((function(t){return o===t})))throw new Ci(n+"object tested must be "+i+", but "+o+" given",void 0,r)}function Ni(t,e){return e.length>4?e[4]:t._obj}bi(Ii,"expectTypes"),bi(Ni,"getActual");var Pi={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"]},Ri={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Bi="…";function Di(t,e){const n=Pi[Ri[e]]||Pi[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function Fi({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=Di),f}function Li(t){return t>="\ud800"&&t<="\udbff"}function qi(t,e,n=Bi){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&&Li(t[i-1])&&(i-=1),`${t.slice(0,i)}${n}`}return t}function Ji(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=`${Bi}(${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=`${Bi}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function Ui(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Wi([t,e],n){return n.truncate-=2,"string"==typeof t?t=Ui(t):"number"!=typeof t&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,`${t}: ${e=n.inspect(e,n)}`}function Hi(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=Ji(t,e);e.truncate-=r.length;let i="";return n.length&&(i=Ji(n.map((e=>[e,t[e]])),e,Wi)),`[ ${r}${i?`, ${i}`:""} ]`}bi(Di,"colorise"),bi(Fi,"normaliseOptions"),bi(Li,"isHighSurrogate"),bi(qi,"truncate"),bi(Ji,"inspectList"),bi(Ui,"quoteComplexKey"),bi(Wi,"inspectProperty"),bi(Hi,"inspectArray");var Xi=bi((t=>"function"==typeof Buffer&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name),"getArrayName");function zi(t,e){const n=Xi(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(qi(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){i+=`${Bi}(${t.length-t[n]+1})`;break}i+=r}let o="";return r.length&&(o=Ji(r.map((e=>[e,t[e]])),e,Wi)),`${n}[ ${i}${o?`, ${o}`:""} ]`}function Vi(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${qi(r[1],e.truncate-i.length-1)}`,"date")}function Ki(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${qi(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function Gi([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}function Zi(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}function Yi(t,e){return t.size-1<=0?"Map{}":(e.truncate-=7,`Map{ ${Ji(Zi(t),e,Gi)} }`)}bi(zi,"inspectTypedArray"),bi(Vi,"inspectDate"),bi(Ki,"inspectFunction"),bi(Gi,"inspectMapEntry"),bi(Zi,"mapToEntries"),bi(Yi,"inspectMap");var Qi=Number.isNaN||(t=>t!=t);function to(t,e){return Qi(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(qi(String(t),e.truncate),"number")}function eo(t,e){let n=qi(t.toString(),e.truncate-1);return n!==Bi&&(n+="n"),e.stylize(n,"bigint")}function no(t,e){const n=t.toString().split("/")[2],r=e.truncate-(2+n.length),i=t.source;return e.stylize(`/${qi(i,r)}/${n}`,"regexp")}function ro(t){const e=[];return t.forEach((t=>{e.push(t)})),e}function io(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${Ji(ro(t),e)} }`)}bi(to,"inspectNumber"),bi(eo,"inspectBigInt"),bi(no,"inspectRegExp"),bi(ro,"arrayFromSet"),bi(io,"inspectSet");var oo=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),so={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function co(t){return so[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function ao(t,e){return oo.test(t)&&(t=t.replace(oo,co)),e.stylize(`'${qi(t,e.truncate-2)}'`,"string")}function uo(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}bi(co,"escape"),bi(ao,"inspectString"),bi(uo,"inspectSymbol");var lo=bi((()=>"Promise{…}"),"getPromiseValue");try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(lo=bi(((r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`}),"getPromiseValue"))}catch(t){}var fo=lo;function ho(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=Ji(n.map((e=>[e,t[e]])),e,Wi),o=Ji(r.map((e=>[e,t[e]])),e,Wi);e.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}bi(ho,"inspectObject");var po=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;function bo(t,e){let n="";return po&&po in t&&(n=t[po]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${ho(t,e)}`}function mo(t,e){return 0===t.length?"Arguments[]":(e.truncate-=13,`Arguments[ ${Ji(t,e)} ]`)}bi(bo,"inspectClass"),bi(mo,"inspectArguments");var yo=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function go(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===yo.indexOf(t))),r=t.name;e.truncate-=r.length;let i="";if("string"==typeof t.message?i=qi(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=Ji(n.map((e=>[e,t[e]])),e,Wi);return`${r}${i}${o?` { ${o} }`:""}`}function wo([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function vo(t,e){return Ji(t,e,$o,"\n")}function $o(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+=Ji(n.map((e=>[e,t.getAttribute(e)])),e,wo," ")),e.truncate-=c.length;const a=e.truncate;let u=vo(t.children,e);return u&&u.length>a&&(u=`${Bi}(${t.children.length})`),`${i}${c}${o}${u}${s}`}bi(go,"inspectObject"),bi(wo,"inspectAttribute"),bi(vo,"inspectHTMLCollection"),bi($o,"inspectHTML");var xo="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",So=!1;try{const t=yi();So=!!t.inspect&&t.inspect.custom}catch(t){So=!1}var jo=new WeakMap,Eo={},To={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:to,Number:to,bigint:eo,BigInt:eo,string:ao,String:ao,function:Ki,Function:Ki,symbol:uo,Symbol:uo,Array:Hi,Date:Vi,Map:Yi,Set:io,RegExp:no,Promise:fo,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:mo,Int8Array:zi,Uint8Array:zi,Uint8ClampedArray:zi,Int16Array:zi,Uint16Array:zi,Int32Array:zi,Uint32Array:zi,Float32Array:zi,Float64Array:zi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:go,HTMLCollection:vo,NodeList:vo},Oo=bi(((t,e,n)=>xo in t&&"function"==typeof t[xo]?t[xo](e):So&&So in t&&"function"==typeof t[So]?t[So](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&jo.has(t.constructor)?jo.get(t.constructor)(t,e):Eo[n]?Eo[n](t,e):""),"inspectCustom"),ko=Object.prototype.toString;function Ao(t,e={}){const n=Fi(e,Ao),{customInspect:r}=n;let i=null===t?"null":typeof t;if("object"===i&&(i=ko.call(t).slice(8,-1)),i in To)return To[i](t,n);if(r&&t){const e=Oo(t,n,i);if(e)return"string"==typeof e?e:Ao(e,n)}const o=!!t&&Object.getPrototypeOf(t);return o===Object.prototype||null===o?ho(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?$o(t,n):"constructor"in t?t.constructor!==Object?bo(t,n):ho(t,n):t===Object(t)?ho(t,n):n.stylize(String(t),i)}bi(Ao,"inspect");var _o={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Mo(t,e,n,r){return Ao(t,{colors:r,depth:void 0===n?2:n,showHidden:e,truncate:_o.truncateThreshold?_o.truncateThreshold:1/0})}function Co(t){var e=Mo(t),n=Object.prototype.toString.call(t);if(_o.truncateThreshold&&e.length>=_o.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 Io(t,e){var n=Oi(t,"negate"),r=Oi(t,"object"),i=e[3],o=Ni(t,e),s=n?e[2]:e[1],c=Oi(t,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,(function(){return Co(r)})).replace(/#\{act\}/g,(function(){return Co(o)})).replace(/#\{exp\}/g,(function(){return Co(i)})),c?c+": "+s:s}function No(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 Po(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 Ro(){this._key="chai/deep-eql__"+Math.random()+Date.now()}bi(Mo,"inspect"),bi(Co,"objDisplay"),bi(Io,"getMessage"),bi(No,"transferFlags"),bi(Po,"type"),bi(Ro,"FakeMap"),Ro.prototype={get:bi((function(t){return t[this._key]}),"get"),set:bi((function(t,e){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:e,configurable:!0})}),"set")};var Bo="function"==typeof WeakMap?WeakMap:Ro;function Do(t,e,n){if(!n||ns(t)||ns(e))return null;var r=n.get(t);if(r){var i=r.get(e);if("boolean"==typeof i)return i}return null}function Fo(t,e,n,r){if(n&&!ns(t)&&!ns(e)){var i=n.get(t);i?i.set(e,r):((i=new Bo).set(e,r),n.set(t,i))}}bi(Do,"memoizeCompare"),bi(Fo,"memoizeSet");var Lo=qo;function qo(t,e,n){if(n&&n.comparator)return Uo(t,e,n);var r=Jo(t,e);return null!==r?r:Uo(t,e,n)}function Jo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e||!ns(t)&&!ns(e)&&null}function Uo(t,e,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new Bo);var r=n&&n.comparator,i=Do(t,e,n.memoize);if(null!==i)return i;var o=Do(e,t,n.memoize);if(null!==o)return o;if(r){var s=r(t,e);if(!1===s||!0===s)return Fo(t,e,n.memoize,s),s;var c=Jo(t,e);if(null!==c)return c}var a=Po(t);if(a!==Po(e))return Fo(t,e,n.memoize,!1),!1;Fo(t,e,n.memoize,!0);var u=Wo(t,e,a,n);return Fo(t,e,n.memoize,u),u}function Wo(t,e,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return qo(t.valueOf(),e.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return t===e;case"Error":return ts(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 zo(t,e,r);case"RegExp":return Ho(t,e);case"Generator":return Vo(t,e,r);case"DataView":return zo(new Uint8Array(t.buffer),new Uint8Array(e.buffer),r);case"ArrayBuffer":return zo(new Uint8Array(t),new Uint8Array(e),r);case"Set":case"Map":return Xo(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 es(t,e,r)}}function Ho(t,e){return t.toString()===e.toString()}function Xo(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(bi((function(t,e){r.push([t,e])}),"gatherEntries")),e.forEach(bi((function(t,e){i.push([t,e])}),"gatherEntries")),zo(r.sort(),i.sort(),n)}function zo(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===qo(t[i],e[i],n))return!1;return!0}function Vo(t,e,n){return zo(Zo(t),Zo(e),n)}function Ko(t){return"undefined"!=typeof Symbol&&"object"==typeof t&&void 0!==Symbol.iterator&&"function"==typeof t[Symbol.iterator]}function Go(t){if(Ko(t))try{return Zo(t[Symbol.iterator]())}catch(t){return[]}return[]}function Zo(t){for(var e=t.next(),n=[e.value];!1===e.done;)e=t.next(),n.push(e.value);return n}function Yo(t){var e=[];for(var n in t)e.push(n);return e}function Qo(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 ts(t,e,n,r){var i=n.length;if(0===i)return!0;for(var o=0;o<i;o+=1)if(!1===qo(t[n[o]],e[n[o]],r))return!1;return!0}function es(t,e,n){var r=Yo(t),i=Yo(e),o=Qo(t),s=Qo(e);if(r=r.concat(o),i=i.concat(s),r.length&&r.length===i.length)return!1!==zo(rs(r).sort(),rs(i).sort())&&ts(t,e,r,n);var c=Go(t),a=Go(e);return c.length&&c.length===a.length?(c.sort(),a.sort(),zo(c,a,n)):0===r.length&&0===c.length&&0===i.length&&0===a.length}function ns(t){return null===t||"object"!=typeof t}function rs(t){return t.map(bi((function(t){return"symbol"==typeof t?t.toString():t}),"mapSymbol"))}function is(t,e){return null!=t&&e in Object(t)}function os(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 ss(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 cs(t,e){const n=os(e),r=n[n.length-1],i={parent:n.length>1?ss(t,n,n.length-1):t,name:r.p||r.i,value:ss(t,n)};return i.exists=is(i.parent,i.name),i}function as(t,e,n,r){return Oi(this,"ssfi",n||as),Oi(this,"lockSsfi",r),Oi(this,"object",t),Oi(this,"message",e),Oi(this,"eql",_o.deepEqual||Lo),bs(this)}function us(){return _o.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}function ls(t,e,n){n=void 0===n?function(){}:n,Object.defineProperty(t,e,{get:bi((function t(){us()||Oi(this,"lockSsfi")||Oi(this,"ssfi",t);var e=n.call(this);if(void 0!==e)return e;var r=new as;return No(this,r),r}),"propertyGetter"),configurable:!0})}bi(qo,"deepEqual"),bi(Jo,"simpleEqual"),bi(Uo,"extensiveDeepEqual"),bi(Wo,"extensiveDeepEqualByType"),bi(Ho,"regexpEqual"),bi(Xo,"entriesEqual"),bi(zo,"iterableEqual"),bi(Vo,"generatorEqual"),bi(Ko,"hasIteratorFunction"),bi(Go,"getIteratorEntries"),bi(Zo,"getGeneratorEntries"),bi(Yo,"getEnumerableKeys"),bi(Qo,"getEnumerableSymbols"),bi(ts,"keysEqual"),bi(es,"objectEqual"),bi(ns,"isPrimitive"),bi(rs,"mapSymbols"),bi(is,"hasProperty"),bi(os,"parsePath"),bi(ss,"internalGetPathValue"),bi(cs,"getPathInfo"),bi(as,"Assertion"),Object.defineProperty(as,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),_o.includeStack},set:function(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),_o.includeStack=t}}),Object.defineProperty(as,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),_o.showDiff},set:function(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),_o.showDiff=t}}),as.addProperty=function(t,e){ls(this.prototype,t,e)},as.addMethod=function(t,e){ys(this.prototype,t,e)},as.addChainableMethod=function(t,e,n){Es(this.prototype,t,e,n)},as.overwriteProperty=function(t,e){gs(this.prototype,t,e)},as.overwriteMethod=function(t,e){ws(this.prototype,t,e)},as.overwriteChainableMethod=function(t,e,n){Ts(this.prototype,t,e,n)},as.prototype.assert=function(t,e,n,r,i,o){var s=ki(this,arguments);if(!1!==o&&(o=!0),void 0===r&&void 0===i&&(o=!1),!0!==_o.showDiff&&(o=!1),!s){e=Io(this,arguments);var c={actual:Ni(this,arguments),expected:r,showDiff:o},a=Cs(this,arguments);throw a&&(c.operator=a),new Ci(e,c,_o.includeStack?this.assert:Oi(this,"ssfi"))}},Object.defineProperty(as.prototype,"_obj",{get:function(){return Oi(this,"object")},set:function(t){Oi(this,"object",t)}}),bi(us,"isProxyEnabled"),bi(ls,"addProperty");var fs=Object.getOwnPropertyDescriptor((function(){}),"length");function hs(t,e,n){return fs.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 ds(t){var e=Object.getOwnPropertyNames(t);function n(t){-1===e.indexOf(t)&&e.push(t)}bi(n,"addProperty");for(var r=Object.getPrototypeOf(t);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return e}bi(hs,"addLengthGuard"),bi(ds,"getProperties");var ps=["__flags","__methods","_obj","assert"];function bs(t,e){return us()?new Proxy(t,{get:bi((function t(n,r){if("string"==typeof r&&-1===_o.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 ds(n).forEach((function(t){if(!Object.prototype.hasOwnProperty(t)&&-1===ps.indexOf(t)){var e=ms(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!==ps.indexOf(r)||Oi(n,"lockSsfi")||Oi(n,"ssfi",t),Reflect.get(n,r)}),"proxyGetter")}):t}function ms(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 ys(t,e,n){var r=bi((function(){Oi(this,"lockSsfi")||Oi(this,"ssfi",r);var t=n.apply(this,arguments);if(void 0!==t)return t;var e=new as;return No(this,e),e}),"methodWrapper");hs(r,e,!1),t[e]=bs(r,e)}function gs(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e),i=bi((function(){}),"_super");r&&"function"==typeof r.get&&(i=r.get),Object.defineProperty(t,e,{get:bi((function t(){us()||Oi(this,"lockSsfi")||Oi(this,"ssfi",t);var e=Oi(this,"lockSsfi");Oi(this,"lockSsfi",!0);var r=n(i).call(this);if(Oi(this,"lockSsfi",e),void 0!==r)return r;var o=new as;return No(this,o),o}),"overwritingPropertyGetter"),configurable:!0})}function ws(t,e,n){var r=t[e],i=bi((function(){throw new Error(e+" is not a function")}),"_super");r&&"function"==typeof r&&(i=r);var o=bi((function(){Oi(this,"lockSsfi")||Oi(this,"ssfi",o);var t=Oi(this,"lockSsfi");Oi(this,"lockSsfi",!0);var e=n(i).apply(this,arguments);if(Oi(this,"lockSsfi",t),void 0!==e)return e;var r=new as;return No(this,r),r}),"overwritingMethodWrapper");hs(o,e,!1),t[e]=bs(o,e)}bi(bs,"proxify"),bi(ms,"stringDistanceCapped"),bi(ys,"addMethod"),bi(gs,"overwriteProperty"),bi(ws,"overwriteMethod");var vs="function"==typeof Object.setPrototypeOf,$s=bi((function(){}),"testFn"),xs=Object.getOwnPropertyNames($s).filter((function(t){var e=Object.getOwnPropertyDescriptor($s,t);return"object"!=typeof e||!e.configurable})),Ss=Function.prototype.call,js=Function.prototype.apply;function Es(t,e,n,r){"function"!=typeof r&&(r=bi((function(){}),"chainingBehavior"));var i={method:n,chainingBehavior:r};t.__methods||(t.__methods={}),t.__methods[e]=i,Object.defineProperty(t,e,{get:bi((function(){i.chainingBehavior.call(this);var n=bi((function(){Oi(this,"lockSsfi")||Oi(this,"ssfi",n);var t=i.method.apply(this,arguments);if(void 0!==t)return t;var e=new as;return No(this,e),e}),"chainableMethodWrapper");if(hs(n,e,!0),vs){var r=Object.create(this);r.call=Ss,r.apply=js,Object.setPrototypeOf(n,r)}else{Object.getOwnPropertyNames(t).forEach((function(e){if(-1===xs.indexOf(e)){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r)}}))}return No(this,n),bs(n)}),"chainableMethodGetter"),configurable:!0})}function Ts(t,e,n,r){var i=t.__methods[e],o=i.chainingBehavior;i.chainingBehavior=bi((function(){var t=r(o).call(this);if(void 0!==t)return t;var e=new as;return No(this,e),e}),"overwritingChainableMethodGetter");var s=i.method;i.method=bi((function(){var t=n(s).apply(this,arguments);if(void 0!==t)return t;var e=new as;return No(this,e),e}),"overwritingChainableMethodWrapper")}function Os(t,e){return Mo(t)<Mo(e)?-1:1}function ks(t){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}function As(t){return Object.keys(t).concat(ks(t))}bi(Es,"addChainableMethod"),bi(Ts,"overwriteChainableMethod"),bi(Os,"compareByInspect"),bi(ks,"getOwnEnumerablePropertySymbols"),bi(As,"getOwnEnumerableProperties");var _s=Number.isNaN;function Ms(t){var e=Ai(t);return-1!==["Array","Object","Function"].indexOf(e)}function Cs(t,e){var n=Oi(t,"operator"),r=Oi(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=Ms(i);return/\snot\s/.test(o)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}function Is(t){return t.name}function Ns(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function Ps(t){return["Number","BigInt"].includes(Ai(t))}bi(Ms,"isObjectType"),bi(Cs,"getOperator"),bi(Is,"getName"),bi(Ns,"isRegExp"),bi(Ps,"isNumeric");var{flag:Rs}=gi;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(t){as.addProperty(t)})),as.addProperty("not",(function(){Rs(this,"negate",!0)})),as.addProperty("deep",(function(){Rs(this,"deep",!0)})),as.addProperty("nested",(function(){Rs(this,"nested",!0)})),as.addProperty("own",(function(){Rs(this,"own",!0)})),as.addProperty("ordered",(function(){Rs(this,"ordered",!0)})),as.addProperty("any",(function(){Rs(this,"any",!0),Rs(this,"all",!1)})),as.addProperty("all",(function(){Rs(this,"all",!0),Rs(this,"any",!1)}));var Bs={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Ds(t,e){e&&Rs(this,"message",e),t=t.toLowerCase();var n=Rs(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";const i=Ai(n).toLowerCase();Bs.function.includes(t)?this.assert(Bs[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 Fs(t,e){return _s(t)&&_s(e)||t===e}function Ls(){Rs(this,"contains",!0)}function qs(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object"),r=Ai(n).toLowerCase(),i=Rs(this,"message"),o=Rs(this,"negate"),s=Rs(this,"ssfi"),c=Rs(this,"deep"),a=c?"deep ":"",u=c?Rs(this,"eql"):Fs;i=i?i+": ":"";var l=!1;switch(r){case"string":l=-1!==n.indexOf(t);break;case"weakset":if(c)throw new Ci(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 Ci(i+"the given combination of arguments ("+r+" and "+Ai(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 "+Ai(t).toLowerCase(),void 0,s);var f=Object.keys(t),h=null,d=0;if(f.forEach((function(e){var r=new as(n);if(No(this,r,!0),Rs(r,"lockSsfi",!0),o&&1!==f.length)try{r.property(e,t[e])}catch(t){if(!wi.compatibleConstructor(t,Ci))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 "+Mo(t),"expected #{this} to not "+a+"include "+Mo(t))}function Js(){var t=Rs(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist")}function Us(){var t=Ai(Rs(this,"object"));this.assert("Arguments"===t,"expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}function Ws(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object");if(Rs(this,"deep")){var r=Rs(this,"lockSsfi");Rs(this,"lockSsfi",!0),this.eql(t),Rs(this,"lockSsfi",r)}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}function Hs(t,e){e&&Rs(this,"message",e);var n=Rs(this,"eql");this.assert(n(t,Rs(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}function Xs(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object"),r=Rs(this,"doLength"),i=Rs(this,"message"),o=i?i+": ":"",s=Rs(this,"ssfi"),c=Ai(n).toLowerCase(),a=Ai(t).toLowerCase();if(r&&"map"!==c&&"set"!==c&&new as(n,i,s,!0).to.have.property("length"),!r&&"date"===c&&"date"!==a)throw new Ci(o+"the argument to above must be a date",void 0,s);if(!Ps(t)&&(r||Ps(n)))throw new Ci(o+"the argument to above must be a number",void 0,s);if(!r&&"date"!==c&&!Ps(n))throw new Ci(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 zs(t,e){e&&Rs(this,"message",e);var n,r=Rs(this,"object"),i=Rs(this,"doLength"),o=Rs(this,"message"),s=o?o+": ":"",c=Rs(this,"ssfi"),a=Ai(r).toLowerCase(),u=Ai(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new as(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Ps(t)||!i&&!Ps(r))if(i||"date"===a||Ps(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 Ci(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 Vs(t,e){e&&Rs(this,"message",e);var n,r=Rs(this,"object"),i=Rs(this,"doLength"),o=Rs(this,"message"),s=o?o+": ":"",c=Rs(this,"ssfi"),a=Ai(r).toLowerCase(),u=Ai(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new as(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Ps(t)||!i&&!Ps(r))if(i||"date"===a||Ps(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 Ci(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 Ks(t,e){e&&Rs(this,"message",e);var n,r=Rs(this,"object"),i=Rs(this,"doLength"),o=Rs(this,"message"),s=o?o+": ":"",c=Rs(this,"ssfi"),a=Ai(r).toLowerCase(),u=Ai(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new as(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Ps(t)||!i&&!Ps(r))if(i||"date"===a||Ps(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 Ci(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 Gs(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object"),r=Rs(this,"ssfi"),i=Rs(this,"message");try{var o=n instanceof t}catch(e){if(e instanceof TypeError)throw new Ci((i=i?i+": ":"")+"The instanceof assertion needs a constructor but "+Ai(t)+" was given.",void 0,r);throw e}var s=Is(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 Zs(t,e,n){n&&Rs(this,"message",n);var r=Rs(this,"nested"),i=Rs(this,"own"),o=Rs(this,"message"),s=Rs(this,"object"),c=Rs(this,"ssfi"),a=typeof t;if(o=o?o+": ":"",r){if("string"!==a)throw new Ci(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 Ci(o+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&i)throw new Ci(o+'The "nested" and "own" flags cannot be combined.',void 0,c);if(null==s)throw new Ci(o+"Target cannot be null or undefined.",void 0,c);var u,l=Rs(this,"deep"),f=Rs(this,"negate"),h=r?cs(s,t):null,d=r?h.value:s[t],p=l?Rs(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:is(s,t),f&&1!==arguments.length||this.assert(u,"expected #{this} to have "+b+Mo(t),"expected #{this} to not have "+b+Mo(t)),arguments.length>1&&this.assert(u&&p(e,d),"expected #{this} to have "+b+Mo(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+Mo(t)+" of #{act}",e,d),Rs(this,"object",d)}function Ys(t,e,n){Rs(this,"own",!0),Zs.apply(this,arguments)}function Qs(t,e,n){"string"==typeof e&&(n=e,e=null),n&&Rs(this,"message",n);var r=Rs(this,"object"),i=Object.getOwnPropertyDescriptor(Object(r),t),o=Rs(this,"eql");i&&e?this.assert(o(e,i),"expected the own property descriptor for "+Mo(t)+" on #{this} to match "+Mo(e)+", got "+Mo(i),"expected the own property descriptor for "+Mo(t)+" on #{this} to not match "+Mo(e),e,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+Mo(t),"expected #{this} to not have an own property descriptor for "+Mo(t)),Rs(this,"object",i)}function tc(){Rs(this,"doLength",!0)}function ec(t,e){e&&Rs(this,"message",e);var n,r=Rs(this,"object"),i=Ai(r).toLowerCase(),o=Rs(this,"message"),s=Rs(this,"ssfi"),c="length";switch(i){case"map":case"set":c="size",n=r.size;break;default:new as(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 nc(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t)}function rc(t){var e,n,r=Rs(this,"object"),i=Ai(r),o=Ai(t),s=Rs(this,"ssfi"),c=Rs(this,"deep"),a="",u=!0,l=Rs(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=As(r),o){case"Array":if(arguments.length>1)throw new Ci(f,void 0,s);break;case"Object":if(arguments.length>1)throw new Ci(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 Ci(l+"keys required",void 0,s);var h=t.length,d=Rs(this,"any"),p=Rs(this,"all"),b=t,m=c?Rs(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)}))})),Rs(this,"contains")||(u=u&&t.length==n.length)),h>1){var y=(t=t.map((function(t){return Mo(t)}))).pop();p&&(e=t.join(", ")+", and "+y),d&&(e=t.join(", ")+", or "+y)}else e=Mo(t[0]);e=(h>1?"keys ":"key ")+e,e=(Rs(this,"contains")?"contain ":"have ")+e,this.assert(u,"expected #{this} to "+a+e,"expected #{this} to not "+a+e,b.slice(0).sort(Os),n.sort(Os),!0)}function ic(t,e,n){n&&Rs(this,"message",n);var r=Rs(this,"object"),i=Rs(this,"ssfi"),o=Rs(this,"message"),s=Rs(this,"negate")||!1;let c;new as(r,o,i,!0).is.a("function"),(Ns(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=wi.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=wi.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)wi.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()));wi.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&&wi.getConstructorName(t),c instanceof Error?c.toString():c&&wi.getConstructorName(c)))}if(c&&null!=e){var p="including";Ns(e)&&(p="matching"),wi.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,wi.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&&wi.getConstructorName(t),c instanceof Error?c.toString():c&&wi.getConstructorName(c)),Rs(this,"object",c)}function oc(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object"),r=Rs(this,"itself"),i="function"!=typeof n||r?n[t]:n.prototype[t];this.assert("function"==typeof i,"expected #{this} to respond to "+Mo(t),"expected #{this} to not respond to "+Mo(t))}function sc(t,e){e&&Rs(this,"message",e);var n=t(Rs(this,"object"));this.assert(n,"expected #{this} to satisfy "+Co(t),"expected #{this} to not satisfy"+Co(t),!Rs(this,"negate"),n)}function cc(t,e,n){n&&Rs(this,"message",n);var r=Rs(this,"object"),i=Rs(this,"message"),o=Rs(this,"ssfi");new as(r,i,o,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(null==e)throw new Ci(i?`${i}: ${s}`:s,void 0,o);if(new as(e,i,o,!0).is.numeric,s="A `expected` value is required for `closeTo`",null==t)throw new Ci(i?`${i}: ${s}`:s,void 0,o);new as(t,i,o,!0).is.numeric;const c=bi((t=>t<0n?-t:t),"abs"),a=bi((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 ac(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 uc(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object"),r=Rs(this,"message"),i=Rs(this,"ssfi"),o=Rs(this,"contains"),s=Rs(this,"deep"),c=Rs(this,"eql");new as(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 lc(t,e,n){n&&Rs(this,"message",n);var r,i=Rs(this,"object"),o=Rs(this,"message"),s=Rs(this,"ssfi");new as(i,o,s,!0).is.a("function"),e?(new as(t,o,s,!0).to.have.property(e),r=t[e]):(new as(t,o,s,!0).is.a("function"),r=t()),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Rs(this,"deltaMsgObj",a),Rs(this,"initialDeltaValue",r),Rs(this,"finalDeltaValue",c),Rs(this,"deltaBehavior","change"),Rs(this,"realDelta",c!==r),this.assert(r!==c,"expected "+a+" to change","expected "+a+" to not change")}function fc(t,e,n){n&&Rs(this,"message",n);var r,i=Rs(this,"object"),o=Rs(this,"message"),s=Rs(this,"ssfi");new as(i,o,s,!0).is.a("function"),e?(new as(t,o,s,!0).to.have.property(e),r=t[e]):(new as(t,o,s,!0).is.a("function"),r=t()),new as(r,o,s,!0).is.a("number"),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Rs(this,"deltaMsgObj",a),Rs(this,"initialDeltaValue",r),Rs(this,"finalDeltaValue",c),Rs(this,"deltaBehavior","increase"),Rs(this,"realDelta",c-r),this.assert(c-r>0,"expected "+a+" to increase","expected "+a+" to not increase")}function hc(t,e,n){n&&Rs(this,"message",n);var r,i=Rs(this,"object"),o=Rs(this,"message"),s=Rs(this,"ssfi");new as(i,o,s,!0).is.a("function"),e?(new as(t,o,s,!0).to.have.property(e),r=t[e]):(new as(t,o,s,!0).is.a("function"),r=t()),new as(r,o,s,!0).is.a("number"),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Rs(this,"deltaMsgObj",a),Rs(this,"initialDeltaValue",r),Rs(this,"finalDeltaValue",c),Rs(this,"deltaBehavior","decrease"),Rs(this,"realDelta",r-c),this.assert(c-r<0,"expected "+a+" to decrease","expected "+a+" to not decrease")}function dc(t,e){e&&Rs(this,"message",e);var n,r=Rs(this,"deltaMsgObj"),i=Rs(this,"initialDeltaValue"),o=Rs(this,"finalDeltaValue"),s=Rs(this,"deltaBehavior"),c=Rs(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 pc(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 pc(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?pc(r,i):"function"==typeof r?r(i):i===r}))))}function bc(t,e){return new as(t,e)}bi(Ds,"an"),as.addChainableMethod("an",Ds),as.addChainableMethod("a",Ds),bi(Fs,"SameValueZero"),bi(Ls,"includeChainingBehavior"),bi(qs,"include"),as.addChainableMethod("include",qs,Ls),as.addChainableMethod("contain",qs,Ls),as.addChainableMethod("contains",qs,Ls),as.addChainableMethod("includes",qs,Ls),as.addProperty("ok",(function(){this.assert(Rs(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),as.addProperty("true",(function(){this.assert(!0===Rs(this,"object"),"expected #{this} to be true","expected #{this} to be false",!Rs(this,"negate"))})),as.addProperty("numeric",(function(){const t=Rs(this,"object");this.assert(["Number","BigInt"].includes(Ai(t)),"expected #{this} to be numeric","expected #{this} to not be numeric",!Rs(this,"negate"))})),as.addProperty("callable",(function(){const t=Rs(this,"object"),e=Rs(this,"ssfi"),n=Rs(this,"message"),r=n?`${n}: `:"",i=Rs(this,"negate"),o=i?`${r}expected ${Mo(t)} not to be a callable function`:`${r}expected ${Mo(t)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Ai(t));if(s&&i||!s&&!i)throw new Ci(o,void 0,e)})),as.addProperty("false",(function(){this.assert(!1===Rs(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!Rs(this,"negate"))})),as.addProperty("null",(function(){this.assert(null===Rs(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),as.addProperty("undefined",(function(){this.assert(void 0===Rs(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),as.addProperty("NaN",(function(){this.assert(_s(Rs(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),bi(Js,"assertExist"),as.addProperty("exist",Js),as.addProperty("exists",Js),as.addProperty("empty",(function(){var t,e=Rs(this,"object"),n=Rs(this,"ssfi"),r=Rs(this,"message");switch(r=r?r+": ":"",Ai(e).toLowerCase()){case"array":case"string":t=e.length;break;case"map":case"set":t=e.size;break;case"weakmap":case"weakset":throw new Ci(r+".empty was passed a weak collection",void 0,n);case"function":var i=r+".empty was passed a function "+Is(e);throw new Ci(i.trim(),void 0,n);default:if(e!==Object(e))throw new Ci(r+".empty was passed non-string primitive "+Mo(e),void 0,n);t=Object.keys(e).length}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty")})),bi(Us,"checkArguments"),as.addProperty("arguments",Us),as.addProperty("Arguments",Us),bi(Ws,"assertEqual"),as.addMethod("equal",Ws),as.addMethod("equals",Ws),as.addMethod("eq",Ws),bi(Hs,"assertEql"),as.addMethod("eql",Hs),as.addMethod("eqls",Hs),bi(Xs,"assertAbove"),as.addMethod("above",Xs),as.addMethod("gt",Xs),as.addMethod("greaterThan",Xs),bi(zs,"assertLeast"),as.addMethod("least",zs),as.addMethod("gte",zs),as.addMethod("greaterThanOrEqual",zs),bi(Vs,"assertBelow"),as.addMethod("below",Vs),as.addMethod("lt",Vs),as.addMethod("lessThan",Vs),bi(Ks,"assertMost"),as.addMethod("most",Ks),as.addMethod("lte",Ks),as.addMethod("lessThanOrEqual",Ks),as.addMethod("within",(function(t,e,n){n&&Rs(this,"message",n);var r,i=Rs(this,"object"),o=Rs(this,"doLength"),s=Rs(this,"message"),c=s?s+": ":"",a=Rs(this,"ssfi"),u=Ai(i).toLowerCase(),l=Ai(t).toLowerCase(),f=Ai(e).toLowerCase(),h=!0,d="date"===l&&"date"===f?t.toISOString()+".."+e.toISOString():t+".."+e;if(o&&"map"!==u&&"set"!==u&&new as(i,s,a,!0).to.have.property("length"),o||"date"!==u||"date"===l&&"date"===f)if(Ps(t)&&Ps(e)||!o&&!Ps(i))if(o||"date"===u||Ps(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 Ci(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)})),bi(Gs,"assertInstanceOf"),as.addMethod("instanceof",Gs),as.addMethod("instanceOf",Gs),bi(Zs,"assertProperty"),as.addMethod("property",Zs),bi(Ys,"assertOwnProperty"),as.addMethod("ownProperty",Ys),as.addMethod("haveOwnProperty",Ys),bi(Qs,"assertOwnPropertyDescriptor"),as.addMethod("ownPropertyDescriptor",Qs),as.addMethod("haveOwnPropertyDescriptor",Qs),bi(tc,"assertLengthChain"),bi(ec,"assertLength"),as.addChainableMethod("length",ec,tc),as.addChainableMethod("lengthOf",ec,tc),bi(nc,"assertMatch"),as.addMethod("match",nc),as.addMethod("matches",nc),as.addMethod("string",(function(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object");new as(n,Rs(this,"message"),Rs(this,"ssfi"),!0).is.a("string"),this.assert(~n.indexOf(t),"expected #{this} to contain "+Mo(t),"expected #{this} to not contain "+Mo(t))})),bi(rc,"assertKeys"),as.addMethod("keys",rc),as.addMethod("key",rc),bi(ic,"assertThrows"),as.addMethod("throw",ic),as.addMethod("throws",ic),as.addMethod("Throw",ic),bi(oc,"respondTo"),as.addMethod("respondTo",oc),as.addMethod("respondsTo",oc),as.addProperty("itself",(function(){Rs(this,"itself",!0)})),bi(sc,"satisfy"),as.addMethod("satisfy",sc),as.addMethod("satisfies",sc),bi(cc,"closeTo"),as.addMethod("closeTo",cc),as.addMethod("approximately",cc),bi(ac,"isSubsetOf"),as.addMethod("members",(function(t,e){e&&Rs(this,"message",e);var n=Rs(this,"object"),r=Rs(this,"message"),i=Rs(this,"ssfi");new as(n,r,i,!0).to.be.iterable,new as(t,r,i,!0).to.be.iterable;var o,s,c,a=Rs(this,"contains"),u=Rs(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=Rs(this,"deep")?Rs(this,"eql"):void 0;this.assert(ac(t,n,l,a,u),s,c,t,n,!0)})),as.addProperty("iterable",(function(t){t&&Rs(this,"message",t);var e=Rs(this,"object");this.assert(null!=e&&e[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",e)})),bi(uc,"oneOf"),as.addMethod("oneOf",uc),bi(lc,"assertChanges"),as.addMethod("change",lc),as.addMethod("changes",lc),bi(fc,"assertIncreases"),as.addMethod("increase",fc),as.addMethod("increases",fc),bi(hc,"assertDecreases"),as.addMethod("decrease",hc),as.addMethod("decreases",hc),bi(dc,"assertDelta"),as.addMethod("by",dc),as.addProperty("extensible",(function(){var t=Rs(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")})),as.addProperty("sealed",(function(){var t=Rs(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")})),as.addProperty("frozen",(function(){var t=Rs(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})),as.addProperty("finite",(function(t){var e=Rs(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})),bi(pc,"compareSubset"),as.addMethod("containSubset",(function(t){const e=Oi(this,"object"),n=_o.showDiff;this.assert(pc(t,e),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",t,e,n)})),bi(bc,"expect"),bc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new Ci(n=n||"expect.fail()",{actual:t,expected:e,operator:r},bc.fail)};var mc={};function yc(){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 as(this.valueOf(),null,t):new as(this,null,t)}function e(t){Object.defineProperty(this,"should",{value:t,enumerable:!0,configurable:!0,writable:!0})}bi(t,"shouldGetter"),bi(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 Ci(r=r||"should.fail()",{actual:t,expected:e,operator:i},n.fail)},equal:function(t,e,n){new as(t,n).to.equal(e)},Throw:function(t,e,n,r){new as(t,r).to.Throw(e,n)},exist:function(t,e){new as(t,e).to.exist},not:{}};return n.not.equal=function(t,e,n){new as(t,n).to.not.equal(e)},n.not.Throw=function(t,e,n,r){new as(t,r).to.not.Throw(e,n)},n.not.exist=function(t,e){new as(t,e).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}mi(mc,{Should:()=>wc,should:()=>gc}),bi(yc,"loadShould");var gc=yc,wc=yc;function vc(t,e){new as(null,null,vc,!0).assert(t,e,"[ negation message unavailable ]")}bi(vc,"assert"),vc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new Ci(n=n||"assert.fail()",{actual:t,expected:e,operator:r},vc.fail)},vc.isOk=function(t,e){new as(t,e,vc.isOk,!0).is.ok},vc.isNotOk=function(t,e){new as(t,e,vc.isNotOk,!0).is.not.ok},vc.equal=function(t,e,n){var r=new as(t,n,vc.equal,!0);r.assert(e==Oi(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",e,t,!0)},vc.notEqual=function(t,e,n){var r=new as(t,n,vc.notEqual,!0);r.assert(e!=Oi(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",e,t,!0)},vc.strictEqual=function(t,e,n){new as(t,n,vc.strictEqual,!0).to.equal(e)},vc.notStrictEqual=function(t,e,n){new as(t,n,vc.notStrictEqual,!0).to.not.equal(e)},vc.deepEqual=vc.deepStrictEqual=function(t,e,n){new as(t,n,vc.deepEqual,!0).to.eql(e)},vc.notDeepEqual=function(t,e,n){new as(t,n,vc.notDeepEqual,!0).to.not.eql(e)},vc.isAbove=function(t,e,n){new as(t,n,vc.isAbove,!0).to.be.above(e)},vc.isAtLeast=function(t,e,n){new as(t,n,vc.isAtLeast,!0).to.be.least(e)},vc.isBelow=function(t,e,n){new as(t,n,vc.isBelow,!0).to.be.below(e)},vc.isAtMost=function(t,e,n){new as(t,n,vc.isAtMost,!0).to.be.most(e)},vc.isTrue=function(t,e){new as(t,e,vc.isTrue,!0).is.true},vc.isNotTrue=function(t,e){new as(t,e,vc.isNotTrue,!0).to.not.equal(!0)},vc.isFalse=function(t,e){new as(t,e,vc.isFalse,!0).is.false},vc.isNotFalse=function(t,e){new as(t,e,vc.isNotFalse,!0).to.not.equal(!1)},vc.isNull=function(t,e){new as(t,e,vc.isNull,!0).to.equal(null)},vc.isNotNull=function(t,e){new as(t,e,vc.isNotNull,!0).to.not.equal(null)},vc.isNaN=function(t,e){new as(t,e,vc.isNaN,!0).to.be.NaN},vc.isNotNaN=function(t,e){new as(t,e,vc.isNotNaN,!0).not.to.be.NaN},vc.exists=function(t,e){new as(t,e,vc.exists,!0).to.exist},vc.notExists=function(t,e){new as(t,e,vc.notExists,!0).to.not.exist},vc.isUndefined=function(t,e){new as(t,e,vc.isUndefined,!0).to.equal(void 0)},vc.isDefined=function(t,e){new as(t,e,vc.isDefined,!0).to.not.equal(void 0)},vc.isCallable=function(t,e){new as(t,e,vc.isCallable,!0).is.callable},vc.isNotCallable=function(t,e){new as(t,e,vc.isNotCallable,!0).is.not.callable},vc.isObject=function(t,e){new as(t,e,vc.isObject,!0).to.be.a("object")},vc.isNotObject=function(t,e){new as(t,e,vc.isNotObject,!0).to.not.be.a("object")},vc.isArray=function(t,e){new as(t,e,vc.isArray,!0).to.be.an("array")},vc.isNotArray=function(t,e){new as(t,e,vc.isNotArray,!0).to.not.be.an("array")},vc.isString=function(t,e){new as(t,e,vc.isString,!0).to.be.a("string")},vc.isNotString=function(t,e){new as(t,e,vc.isNotString,!0).to.not.be.a("string")},vc.isNumber=function(t,e){new as(t,e,vc.isNumber,!0).to.be.a("number")},vc.isNotNumber=function(t,e){new as(t,e,vc.isNotNumber,!0).to.not.be.a("number")},vc.isNumeric=function(t,e){new as(t,e,vc.isNumeric,!0).is.numeric},vc.isNotNumeric=function(t,e){new as(t,e,vc.isNotNumeric,!0).is.not.numeric},vc.isFinite=function(t,e){new as(t,e,vc.isFinite,!0).to.be.finite},vc.isBoolean=function(t,e){new as(t,e,vc.isBoolean,!0).to.be.a("boolean")},vc.isNotBoolean=function(t,e){new as(t,e,vc.isNotBoolean,!0).to.not.be.a("boolean")},vc.typeOf=function(t,e,n){new as(t,n,vc.typeOf,!0).to.be.a(e)},vc.notTypeOf=function(t,e,n){new as(t,n,vc.notTypeOf,!0).to.not.be.a(e)},vc.instanceOf=function(t,e,n){new as(t,n,vc.instanceOf,!0).to.be.instanceOf(e)},vc.notInstanceOf=function(t,e,n){new as(t,n,vc.notInstanceOf,!0).to.not.be.instanceOf(e)},vc.include=function(t,e,n){new as(t,n,vc.include,!0).include(e)},vc.notInclude=function(t,e,n){new as(t,n,vc.notInclude,!0).not.include(e)},vc.deepInclude=function(t,e,n){new as(t,n,vc.deepInclude,!0).deep.include(e)},vc.notDeepInclude=function(t,e,n){new as(t,n,vc.notDeepInclude,!0).not.deep.include(e)},vc.nestedInclude=function(t,e,n){new as(t,n,vc.nestedInclude,!0).nested.include(e)},vc.notNestedInclude=function(t,e,n){new as(t,n,vc.notNestedInclude,!0).not.nested.include(e)},vc.deepNestedInclude=function(t,e,n){new as(t,n,vc.deepNestedInclude,!0).deep.nested.include(e)},vc.notDeepNestedInclude=function(t,e,n){new as(t,n,vc.notDeepNestedInclude,!0).not.deep.nested.include(e)},vc.ownInclude=function(t,e,n){new as(t,n,vc.ownInclude,!0).own.include(e)},vc.notOwnInclude=function(t,e,n){new as(t,n,vc.notOwnInclude,!0).not.own.include(e)},vc.deepOwnInclude=function(t,e,n){new as(t,n,vc.deepOwnInclude,!0).deep.own.include(e)},vc.notDeepOwnInclude=function(t,e,n){new as(t,n,vc.notDeepOwnInclude,!0).not.deep.own.include(e)},vc.match=function(t,e,n){new as(t,n,vc.match,!0).to.match(e)},vc.notMatch=function(t,e,n){new as(t,n,vc.notMatch,!0).to.not.match(e)},vc.property=function(t,e,n){new as(t,n,vc.property,!0).to.have.property(e)},vc.notProperty=function(t,e,n){new as(t,n,vc.notProperty,!0).to.not.have.property(e)},vc.propertyVal=function(t,e,n,r){new as(t,r,vc.propertyVal,!0).to.have.property(e,n)},vc.notPropertyVal=function(t,e,n,r){new as(t,r,vc.notPropertyVal,!0).to.not.have.property(e,n)},vc.deepPropertyVal=function(t,e,n,r){new as(t,r,vc.deepPropertyVal,!0).to.have.deep.property(e,n)},vc.notDeepPropertyVal=function(t,e,n,r){new as(t,r,vc.notDeepPropertyVal,!0).to.not.have.deep.property(e,n)},vc.ownProperty=function(t,e,n){new as(t,n,vc.ownProperty,!0).to.have.own.property(e)},vc.notOwnProperty=function(t,e,n){new as(t,n,vc.notOwnProperty,!0).to.not.have.own.property(e)},vc.ownPropertyVal=function(t,e,n,r){new as(t,r,vc.ownPropertyVal,!0).to.have.own.property(e,n)},vc.notOwnPropertyVal=function(t,e,n,r){new as(t,r,vc.notOwnPropertyVal,!0).to.not.have.own.property(e,n)},vc.deepOwnPropertyVal=function(t,e,n,r){new as(t,r,vc.deepOwnPropertyVal,!0).to.have.deep.own.property(e,n)},vc.notDeepOwnPropertyVal=function(t,e,n,r){new as(t,r,vc.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(e,n)},vc.nestedProperty=function(t,e,n){new as(t,n,vc.nestedProperty,!0).to.have.nested.property(e)},vc.notNestedProperty=function(t,e,n){new as(t,n,vc.notNestedProperty,!0).to.not.have.nested.property(e)},vc.nestedPropertyVal=function(t,e,n,r){new as(t,r,vc.nestedPropertyVal,!0).to.have.nested.property(e,n)},vc.notNestedPropertyVal=function(t,e,n,r){new as(t,r,vc.notNestedPropertyVal,!0).to.not.have.nested.property(e,n)},vc.deepNestedPropertyVal=function(t,e,n,r){new as(t,r,vc.deepNestedPropertyVal,!0).to.have.deep.nested.property(e,n)},vc.notDeepNestedPropertyVal=function(t,e,n,r){new as(t,r,vc.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(e,n)},vc.lengthOf=function(t,e,n){new as(t,n,vc.lengthOf,!0).to.have.lengthOf(e)},vc.hasAnyKeys=function(t,e,n){new as(t,n,vc.hasAnyKeys,!0).to.have.any.keys(e)},vc.hasAllKeys=function(t,e,n){new as(t,n,vc.hasAllKeys,!0).to.have.all.keys(e)},vc.containsAllKeys=function(t,e,n){new as(t,n,vc.containsAllKeys,!0).to.contain.all.keys(e)},vc.doesNotHaveAnyKeys=function(t,e,n){new as(t,n,vc.doesNotHaveAnyKeys,!0).to.not.have.any.keys(e)},vc.doesNotHaveAllKeys=function(t,e,n){new as(t,n,vc.doesNotHaveAllKeys,!0).to.not.have.all.keys(e)},vc.hasAnyDeepKeys=function(t,e,n){new as(t,n,vc.hasAnyDeepKeys,!0).to.have.any.deep.keys(e)},vc.hasAllDeepKeys=function(t,e,n){new as(t,n,vc.hasAllDeepKeys,!0).to.have.all.deep.keys(e)},vc.containsAllDeepKeys=function(t,e,n){new as(t,n,vc.containsAllDeepKeys,!0).to.contain.all.deep.keys(e)},vc.doesNotHaveAnyDeepKeys=function(t,e,n){new as(t,n,vc.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(e)},vc.doesNotHaveAllDeepKeys=function(t,e,n){new as(t,n,vc.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(e)},vc.throws=function(t,e,n,r){return("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),Oi(new as(t,r,vc.throws,!0).to.throw(e,n),"object")},vc.doesNotThrow=function(t,e,n,r){("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),new as(t,r,vc.doesNotThrow,!0).to.not.throw(e,n)},vc.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 Ci((r=r?r+": ":r)+'Invalid operator "'+e+'"',void 0,vc.operator)}var o=new as(i,r,vc.operator,!0);o.assert(!0===Oi(o,"object"),"expected "+Mo(t)+" to be "+e+" "+Mo(n),"expected "+Mo(t)+" to not be "+e+" "+Mo(n))},vc.closeTo=function(t,e,n,r){new as(t,r,vc.closeTo,!0).to.be.closeTo(e,n)},vc.approximately=function(t,e,n,r){new as(t,r,vc.approximately,!0).to.be.approximately(e,n)},vc.sameMembers=function(t,e,n){new as(t,n,vc.sameMembers,!0).to.have.same.members(e)},vc.notSameMembers=function(t,e,n){new as(t,n,vc.notSameMembers,!0).to.not.have.same.members(e)},vc.sameDeepMembers=function(t,e,n){new as(t,n,vc.sameDeepMembers,!0).to.have.same.deep.members(e)},vc.notSameDeepMembers=function(t,e,n){new as(t,n,vc.notSameDeepMembers,!0).to.not.have.same.deep.members(e)},vc.sameOrderedMembers=function(t,e,n){new as(t,n,vc.sameOrderedMembers,!0).to.have.same.ordered.members(e)},vc.notSameOrderedMembers=function(t,e,n){new as(t,n,vc.notSameOrderedMembers,!0).to.not.have.same.ordered.members(e)},vc.sameDeepOrderedMembers=function(t,e,n){new as(t,n,vc.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(e)},vc.notSameDeepOrderedMembers=function(t,e,n){new as(t,n,vc.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(e)},vc.includeMembers=function(t,e,n){new as(t,n,vc.includeMembers,!0).to.include.members(e)},vc.notIncludeMembers=function(t,e,n){new as(t,n,vc.notIncludeMembers,!0).to.not.include.members(e)},vc.includeDeepMembers=function(t,e,n){new as(t,n,vc.includeDeepMembers,!0).to.include.deep.members(e)},vc.notIncludeDeepMembers=function(t,e,n){new as(t,n,vc.notIncludeDeepMembers,!0).to.not.include.deep.members(e)},vc.includeOrderedMembers=function(t,e,n){new as(t,n,vc.includeOrderedMembers,!0).to.include.ordered.members(e)},vc.notIncludeOrderedMembers=function(t,e,n){new as(t,n,vc.notIncludeOrderedMembers,!0).to.not.include.ordered.members(e)},vc.includeDeepOrderedMembers=function(t,e,n){new as(t,n,vc.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(e)},vc.notIncludeDeepOrderedMembers=function(t,e,n){new as(t,n,vc.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(e)},vc.oneOf=function(t,e,n){new as(t,n,vc.oneOf,!0).to.be.oneOf(e)},vc.isIterable=function(t,e){if(null==t||!t[Symbol.iterator])throw e=e?`${e} expected ${Mo(t)} to be an iterable`:`expected ${Mo(t)} to be an iterable`,new Ci(e,void 0,vc.isIterable)},vc.changes=function(t,e,n,r){3===arguments.length&&"function"==typeof e&&(r=n,n=null),new as(t,r,vc.changes,!0).to.change(e,n)},vc.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 as(t,i,vc.changesBy,!0).to.change(e,n).by(r)},vc.doesNotChange=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new as(t,r,vc.doesNotChange,!0).to.not.change(e,n)},vc.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 as(t,i,vc.changesButNotBy,!0).to.change(e,n).but.not.by(r)},vc.increases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new as(t,r,vc.increases,!0).to.increase(e,n)},vc.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 as(t,i,vc.increasesBy,!0).to.increase(e,n).by(r)},vc.doesNotIncrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new as(t,r,vc.doesNotIncrease,!0).to.not.increase(e,n)},vc.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 as(t,i,vc.increasesButNotBy,!0).to.increase(e,n).but.not.by(r)},vc.decreases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new as(t,r,vc.decreases,!0).to.decrease(e,n)},vc.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 as(t,i,vc.decreasesBy,!0).to.decrease(e,n).by(r)},vc.doesNotDecrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new as(t,r,vc.doesNotDecrease,!0).to.not.decrease(e,n)},vc.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 as(t,i,vc.doesNotDecreaseBy,!0).to.not.decrease(e,n).by(r)},vc.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 as(t,i,vc.decreasesButNotBy,!0).to.decrease(e,n).but.not.by(r)},vc.ifError=function(t){if(t)throw t},vc.isExtensible=function(t,e){new as(t,e,vc.isExtensible,!0).to.be.extensible},vc.isNotExtensible=function(t,e){new as(t,e,vc.isNotExtensible,!0).to.not.be.extensible},vc.isSealed=function(t,e){new as(t,e,vc.isSealed,!0).to.be.sealed},vc.isNotSealed=function(t,e){new as(t,e,vc.isNotSealed,!0).to.not.be.sealed},vc.isFrozen=function(t,e){new as(t,e,vc.isFrozen,!0).to.be.frozen},vc.isNotFrozen=function(t,e){new as(t,e,vc.isNotFrozen,!0).to.not.be.frozen},vc.isEmpty=function(t,e){new as(t,e,vc.isEmpty,!0).to.be.empty},vc.isNotEmpty=function(t,e){new as(t,e,vc.isNotEmpty,!0).to.not.be.empty},vc.containsSubset=function(t,e,n){new as(t,n).to.containSubset(e)},vc.doesNotContainSubset=function(t,e,n){new as(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"]])vc[e]=vc[t];var $c=[];function xc(t){const e={use:xc,AssertionError:Ci,util:gi,config:_o,expect:bc,assert:vc,Assertion:as,...mc};return~$c.indexOf(t)||(t(e,gi),$c.push(t)),e}bi(xc,"use");var Sc=Symbol.for("matchers-object"),jc=Symbol.for("$$jest-matchers-object"),Ec=Symbol.for("expect-global"),Tc=Symbol.for("asymmetric-matchers-object"),Oc={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)}`}}},kc=X.green,Ac=X.red,_c=X.inverse,Mc=X.bold,Cc=X.dim;function Ic(t,e="received",n="expected",r={}){const{comment:i="",isDirectExpectCall:o=!1,isNot:s=!1,promise:c="",secondArgument:a="",expectedColor:u=kc,receivedColor:l=Ac,secondArgumentColor:f=kc}=r;let h="",d="expect";return o||""===e||(h+=Cc(`${d}(`)+l(e),d=")"),""!==c&&(h+=Cc(`${d}.`)+c,d=""),s&&(h+=`${Cc(`${d}.`)}not`,d=""),t.includes(".")?d+=t:(h+=Cc(`${d}.`)+t,d=""),""===n?d+="()":(h+=Cc(`${d}(`)+u(n),a&&(h+=Cc(", ")+f(a)),d=")"),""!==i&&(d+=` // ${i}`),""!==d&&(h+=Cc(d)),h}function Nc(t){return t.replace(/\s+$/gm,(t=>"·".repeat(t.length)))}function Pc(t){return Ac(Nc(nn(t)))}function Rc(t){return kc(Nc(nn(t)))}function Bc(){return{EXPECTED_COLOR:kc,RECEIVED_COLOR:Ac,INVERTED_COLOR:_c,BOLD_WEIGHT:Mc,DIM_COLOR:Cc,diff:Mr,matcherHint:Ic,printReceived:Pc,printExpected:Rc,printDiffOrStringify:Fr}}function Dc(){return globalThis[jc].customEqualityTesters}function Fc(t,e,n,r){return qc(t,e,[],[],n=n||[],r?Wc:Uc)}Function.prototype.toString;function Lc(t){return!!t&&"object"==typeof t&&"asymmetricMatch"in t&&Hc("Function",t.asymmetricMatch)}function qc(t,e,n,r,i,o){let s=!0;const c=function(t,e){const n=Lc(t),r=Lc(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:Fc};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(Xc(t)&&Xc(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=qc(t.cause,e.cause,n,r,i,o));t instanceof AggregateError&&e instanceof AggregateError&&s&&(s=qc(t.errors,e.errors,n,r,i,o));return s&&(s=qc({...t},{...e},n,r,i,o)),s}(t,e,n,r,i,o)}finally{n.pop(),r.pop()}const f=Jc(t,o);let h,d=f.length;if(Jc(e,o).length!==d)return!1;for(;d--;)if(h=f[d],s=o(e,h)&&qc(t[h],e[h],n,r,i,o),!s)return!1;return n.pop(),r.pop(),s}function Jc(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 Uc(t,e){return Wc(t,e)&&void 0!==t[e]}function Wc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Hc(t,e){return Object.prototype.toString.apply(e)===`[object ${t}]`}function Xc(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 zc="@@__IMMUTABLE_KEYED__@@",Vc="@@__IMMUTABLE_SET__@@",Kc="@@__IMMUTABLE_ORDERED__@@";function Gc(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var Zc=Symbol.iterator;function Yc(t){return!(null==t||!t[Zc])}function Qc(t,e,n=[],r=[],i=[]){if("object"!=typeof t||"object"!=typeof e||Array.isArray(t)||Array.isArray(e)||!Yc(t)||!Yc(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!==Qc)),function(t,e){return Qc(t,e,[...n],[...r],[...i])}];if(void 0!==t.size){if(t.size!==e.size)return!1;if(Hc("Set",t)||(a=t)&&a[Vc]&&!a[Kc]){let n=!0;for(const r of t)if(!e.has(r)){let t=!1;for(const n of e){!0===Fc(r,n,s)&&(t=!0)}if(!1===t){n=!1;break}}return r.pop(),i.pop(),n}if(Hc("Map",t)||(c=t)&&c[zc]&&!c[Kc]){let n=!0;for(const r of t)if(!e.has(r[0])||!Fc(r[1],e.get(r[0]),s)){let t=!1;for(const n of e){let e=!1;!0===Fc(r[0],n[0],s)&&(e=Fc(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[Zc]();for(const e of t){const t=u.next();if(t.done||!Fc(e,t.value,s))return!1}if(!u.next().done)return!1;if(!(l=t,Boolean(l&&Gc(l)&&l["@@__IMMUTABLE_LIST__@@"])||function(t){return Boolean(t&&Gc(t)&&t[zc]&&t[Kc])}(t)||function(t){return Boolean(t&&Gc(t)&&t[Vc]&&t[Kc])}(t)||function(t){return Boolean(t&&Gc(t)&&t["@@__IMMUTABLE_RECORD__@@"])}(t))){if(!Fc(Object.entries(t),Object.entries(e)))return!1}var l;return r.pop(),i.pop(),!0}function ta(t,e){return!(!t||"object"!=typeof t||t===Object.prototype)&&(Object.prototype.hasOwnProperty.call(t,e)||ta(Object.getPrototypeOf(t),e))}function ea(t,e,n=[]){const r=n.filter((t=>t!==ea)),i=(t=new WeakMap)=>(e,n)=>{var o;if(!(!ln(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 Fc(e[o],n[o],r);t.set(n[o],!0)}const s=null!=e&&ta(e,o)&&Fc(e[o],n[o],[...r,i(t)]);return t.delete(n[o]),s}))};return i()(t,e)}function na(t,e){if(null!=t&&null!=e&&t.constructor!==e.constructor)return!1}function ra(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 ia(t,e,n=[]){if(!Array.isArray(t)||!Array.isArray(e))return;const r=Object.keys(t),i=Object.keys(e);return Fc(t,e,n.filter((t=>t!==ia)),!0)&&Fc(r,i)}function oa(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,Sc)){const t=new WeakMap,e=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Sc,{get:()=>t}),Object.defineProperty(globalThis,jc,{configurable:!0,get:()=>({state:t.get(globalThis[Ec]),matchers:e,customEqualityTesters:n})}),Object.defineProperty(globalThis,Tc,{get:()=>r})}function sa(t){return globalThis[Sc].get(t)}function ca(t,e){const n=globalThis[Sc],r=n.get(e)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(t)});n.set(e,i)}var aa=class{constructor(t,e=!1){m(this,"$$typeof",Symbol.for("jest.asymmetricMatcher")),this.sample=t,this.inverse=e}getMatcherContext(t){return{...sa(t||globalThis[Ec]),equals:Fc,isNot:this.inverse,customTesters:Dc(),utils:{...Bc(),diff:Mr,stringify:nn,iterableEquality:Qc,subsetEquality:ea}}}};aa.prototype[Symbol.for("chai/inspect")]=function(t){const e=nn(this,t.depth,{min:!0});return e.length<=t.truncate?e:`${this.toString()}{…}`};var ua=class extends aa{constructor(t,e=!1){if(!Hc("String",t))throw new Error("Expected is not a string");super(t,e)}asymmetricMatch(t){const e=Hc("String",t)&&t.includes(this.sample);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},la=class extends aa{asymmetricMatch(t){return null!=t}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},fa=class extends aa{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)||!Fc(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"}},ha=class extends aa{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=>Fc(n,t,e.customTesters)))));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},da=class extends aa{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)}>`}},pa=class extends aa{constructor(t,e=!1){if(!Hc("String",t)&&!Hc("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),e)}asymmetricMatch(t){const e=Hc("String",t)&&this.sample.test(t);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},ba=class extends aa{constructor(t,e=2,n=!1){if(!Hc("Number",t))throw new Error("Expected is not a Number");if(!Hc("Number",e))throw new Error("Precision is not a Number");super(t),m(this,"precision"),this.inverse=n,this.precision=e}asymmetricMatch(t){if(!Hc("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 ma(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 ya(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 ga(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(li(t))}}}function wa(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 va(t,e,n){return t.mock.calls&&(e+=X.gray(`\n\nReceived: \n\n${t.mock.calls.map(((e,r)=>{let i=X.bold(` ${wa(r+1)} ${t.getMockName()} call:\n\n`);return i+=n?Mr(n,e,{omitAnnotationLines:!0}):nn(e).split("\n").map((t=>` ${t}`)).join("\n"),i+="\n",i})).join("\n")}`)),e+=X.gray(`\n\nNumber of calls: ${X.bold(t.mock.calls.length)}\n`)}var $a=class extends Error{constructor(t,e,n){super(t),this.actual=e,this.expected=n}};function xa(t,e,n){return(r,i)=>{Object.entries(n).forEach((([n,r])=>{const o=ga(i,n,(function(...t){const{state:n,isNot:i,obj:o}=function(t,e){const n=t._obj,r=gi.flag(t,"negate"),i=gi.flag(t,"promise")||"",o={...Bc(),diff:Mr,stringify:nn,iterableEquality:Qc,subsetEquality:ea};return{state:{...sa(e),customTesters:Dc(),isNot:r,utils:o,promise:i,equals:Fc,suppressedErrors:[],soft:gi.flag(t,"soft"),poll:gi.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 $a(e(),n,r)}));const{pass:c,message:a,actual:u,expected:l}=s;if(c&&i||!c&&!i)throw new $a(a(),u,l)}));i.addMethod(globalThis[jc].matchers,n,o),i.addMethod(t.Assertion.prototype,n,o);class s extends aa{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=>nn(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[Tc],n,{configurable:!0,enumerable:!0,value:c,writable:!0})}))}}y(),y();",".charCodeAt(0);var Sa,ja,Ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ta=new Uint8Array(64),Oa=new Uint8Array(128);for(let t=0;t<64;t++){const e=Ea.charCodeAt(t);Ta[t]=e,Oa[e]=t}(ja=Sa||(Sa={}))[ja.Empty=1]="Empty",ja[ja.Hash=2]="Hash",ja[ja.Query=3]="Query",ja[ja.RelativePath=4]="RelativePath",ja[ja.AbsolutePath=5]="AbsolutePath",ja[ja.SchemeRelative=6]="SchemeRelative",ja[ja.Absolute=7]="Absolute";var ka=/^[A-Za-z]:\//;var Aa=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var _a=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(ka,(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=Ma(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&&!Ma(e)?`/${e}`:e.length>0?e:"."};var Ma=function(t){return Aa.test(t)},Ca=/^\s*at .*(?:\S:\d+|\(native\))/m,Ia=/^(?:eval@)?(?:\[native code\])?$/;function Na(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 Pa(t){const e=t.trim();return Ca.test(e)?function(t){let e=t.trim();if(!Ca.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]=Na(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:_a(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(Ia.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]=Na(e.replace(n,""));return o&&s&&c?{file:o,method:i||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(e)}y(),y(),y();var Ra=/^[A-Za-z]:\//;var Ba=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var Da=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(Ra,(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=Fa(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&&!Fa(e)?`/${e}`:e.length>0?e:"."};var Fa=function(t){return Ba.test(t)};function La(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 qa(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 Ja(t,e=" > "){return qa(t).slice(1).join(e)}var Ua=class extends Error{constructor(t,e,n){super(t),m(this,"code","VITEST_PENDING"),m(this,"taskId"),this.message=t,this.note=n,this.taskId=e.id}},Wa=Date.now,Ha={tasks:[],currentSuite:null};function Xa(t,e,n=!1,r){if(e<=0||e===Number.POSITIVE_INFINITY)return t;const{setTimeout:i,clearTimeout:o}=Ln();return function(...s){const c=Wa();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),Wa()-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 za=new WeakMap,Va=new WeakMap,Ka=new WeakMap;var Ga=new Map,Za=new Map;function Ya(t,e){return n=>{const r=n||e;if(!r)return t({});const i=(o=r,Va.get(o));var o;if(!(null==i?void 0:i.length))return t(r);const s=eu(t),c=i.some((({auto:t})=>t));if(!s.length&&!c)return t(r);Ga.get(r)||Ga.set(r,new Map);const a=Ga.get(r);Za.has(r)||Za.set(r,[]);const u=Za.get(r),l=tu(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 Qa(t.value,r,u):t.value;r[t.prop]=e,a.set(t,e),u.unshift((()=>{a.delete(t)}))}}().then((()=>t(r)))}}async function Qa(t,e,n){const r=gn();let i=!1;const o=t(e,(async t=>{i=!0,r.resolve(t);const e=gn();n.push((async()=>{e.resolve(),await o})),await e})).catch((t=>{if(i)throw t;r.reject(t)}));return r}function tu(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),tu(t.deps,e,n),n.push(t),e.clear()}else n.push(t)})),n}function eu(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=nu(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=nu(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 nu(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 ru,iu,ou,su=function(){function t(t,e,n){var r;const i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",o=Ha.currentSuite||iu;let{options:s,handler:c}=lu(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==ru?void 0:ru.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)??ru.config.testTimeout,s={id:"",name:t,suite:null==(n=Ha.currentSuite)?void 0:n.suite,each:e.each,fails:e.fails,context:void 0,type:"test",file:void 0,timeout:r,retry:e.retry??ru.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&&ru.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 Ua("test is skipped; abort execution",t,e)},r.onTestFailed=(n,r)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Xa(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},r.onTestFinished=(n,r)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Xa(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},(null==(n=e.extendTaskContext)?void 0:n.call(e,r))||r}(s,ru);var u,l;if(Object.defineProperty(s,"context",{value:a,enumerable:!1}),u=a,l=e.fixtures,Va.set(u,l),c&&function(t,e){za.set(t,e)}(s,Xa(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}}(Ya(c,a),s),r)),ru.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=mu(e,s.each??!1);n&&(s.location=n)}return o.push(s),s},a=hu((function(t,e,n){let{options:r,handler:o}=lu(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(du(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,Ka.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=Ha.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},ru&&e&&ru.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=mu(e,s.each??!1);n&&(s.location=n)}c=s,a={beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]},Ka.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=Ha.currentSuite;Ha.currentSuite=t,await e(),Ha.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=Ha.currentSuite)||e.tasks.push(t)}(u),u}(du(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=bu(t,e)),(e,r,i)=>{const o=du(e),s=t.every(Array.isArray),{options:c,handler:a}=lu(r,i),u="function"==typeof r&&"object"==typeof i;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(pu(o,r,e),s?()=>a(...r):()=>a(t),c):n(pu(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=bu(t,e)),(e,n,r)=>{const i=du(e),{options:o,handler:s}=lu(n,r);t.forEach(((t,e)=>{su(pu(i,un(t),e),o,(()=>s(t)))}))}},t.skipIf=t=>t?su.skip:su,t.runIf=t=>t?su:su.skip,La(["concurrent","sequential","shuffle","skip","only","todo"],t)}();hu((function(t,e,n){uu().test.fn.call(this,du(t),e,n)}));function cu(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 au(){return cu(ru,"the runner"),ru}function uu(){const t=Ha.currentSuite||iu;return cu(t,"the current suite"),t}function lu(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 fu(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=bu(t,e)),(e,r,i)=>{const o=du(e),s=t.every(Array.isArray),{options:c,handler:a}=lu(r,i),u="function"==typeof r&&"object"==typeof i;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(pu(o,r,e),s?()=>a(...r):()=>a(t),c):n(pu(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=bu(t,e)),(e,r,i)=>{const o=du(e),{options:s,handler:c}=lu(r,i);t.forEach(((t,e)=>{const r=e=>c(t,e);r.__VITEST_FIXTURE_INDEX__=1,r.toString=()=>c.toString(),n(pu(o,un(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&&ln(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=eu(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=au()).injectValue)?void 0:n.call(e,t)}));return hu((function(t,e,n){uu().test.fn.call(this,du(t),e,n)}),n)};const r=La(["concurrent","sequential","skip","only","todo","fails"],n);return e&&r.mergeContext(e),r}function hu(t,e){return fu(t,e)}function du(t){return"string"==typeof t?t:"function"==typeof t?t.name||"<anonymous>":String(t)}function pu(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=on(t,...e.slice(0,r));return ln(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=sn(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==ru?void 0:ru.config)?void 0:r.chaiConfig)?void 0:i.truncateThreshold})}))),i}function bu(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 mu(t,e){const n=t.split("\n").slice(1);for(const t of n){const n=Pa(t);if(n&&n.file===ou)return{line:n.line,column:e?n.column+1:n.column}}}function yu(){return au().config.hookTimeout}Symbol.for("VITEST_CLEANUP_TIMEOUT"),Symbol.for("VITEST_CLEANUP_STACK_TRACE"),gu("onTestFailed",((t,e,n)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Xa(e,n??yu(),!0,new Error("STACK_TRACE_ERROR")))})),gu("onTestFinished",((t,e,n)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Xa(e,n??yu(),!0,new Error("STACK_TRACE_ERROR")))}));function gu(t,e){return(e,n)=>{an(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;y(),y();function wu(){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 vu(){const t=wu();return t?.environment.name}function $u(){return"undefined"!=typeof process&&!!process.send}async function xu(){await function(){const{setTimeout:t}=Ln();return new Promise((e=>t(e,0)))}();const t=wu(),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 xu())}y();var Su="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ju(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}y();var Eu=",".charCodeAt(0),Tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ou=new Uint8Array(64),ku=new Uint8Array(128);for(let t=0;t<64;t++){const e=Tu.charCodeAt(t);Ou[t]=e,ku[e]=t}function Au(t,e){let n=0,r=0,i=0;do{const e=t.next();i=ku[e],n|=(31&i)<<r,r+=5}while(32&i);const o=1&n;return n>>>=1,o&&(n=-2147483648|-n),e+n}function _u(t,e){return!(t.pos>=e)&&t.peek()!==Eu}var Mu=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 Cu(t){t.sort(Iu)}function Iu(t,e){return t[0]-e[0]}var Nu,Pu=/^[\w+.-]+:\/\//,Ru=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Bu=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Du(t){return t.startsWith("/")}function Fu(t){return/^[.?#]/.test(t)}function Lu(t){const e=Ru.exec(t);return qu(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function qu(t,e,n,r,i,o,s){return{scheme:t,user:e,host:n,port:r,path:i,query:o,hash:s,type:Nu.Absolute}}function Ju(t){if(function(t){return t.startsWith("//")}(t)){const e=Lu("http:"+t);return e.scheme="",e.type=Nu.SchemeRelative,e}if(Du(t)){const e=Lu("http://foo.com"+t);return e.scheme="",e.host="",e.type=Nu.AbsolutePath,e}if(function(t){return t.startsWith("file:")}(t))return function(t){const e=Bu.exec(t),n=e[2];return qu("file:","",e[1]||"","",Du(n)?n:"/"+n,e[3]||"",e[4]||"")}(t);if(function(t){return Pu.test(t)}(t))return Lu(t);const e=Lu("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?Nu.Query:t.startsWith("#")?Nu.Hash:Nu.RelativePath:Nu.Empty,e}function Uu(t,e){const n=e<=Nu.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 Wu(t,e){if(!t&&!e)return"";const n=Ju(t);let r=n.type;if(e&&r!==Nu.Absolute){const t=Ju(e),i=t.type;switch(r){case Nu.Empty:n.hash=t.hash;case Nu.Hash:n.query=t.query;case Nu.Query:case Nu.RelativePath:!function(t,e){Uu(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 Nu.AbsolutePath:n.user=t.user,n.host=t.host,n.port=t.port;case Nu.SchemeRelative:n.scheme=t.scheme}i>r&&(r=i)}Uu(n,r);const i=n.query+n.hash;switch(r){case Nu.Hash:case Nu.Query:return i;case Nu.RelativePath:{const r=n.path.slice(1);return r?Fu(e||t)&&!Fu(r)?"./"+r+i:r+i:i||"."}case Nu.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function Hu(t,e){return e&&!e.endsWith("/")&&(e+="/"),Wu(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"}(Nu||(Nu={}));function Xu(t,e){for(let n=e;n<t.length;n++)if(!zu(t[n]))return n;return t.length}function zu(t){for(let e=1;e<t.length;e++)if(t[e][0]<t[e-1][0])return!1;return!0}function Vu(t,e){return e||(t=t.slice()),t.sort(Ku)}function Ku(t,e){return t[0]-e[0]}var Gu=!1;function Zu(t,e,n){for(let r=n+1;r<t.length&&t[r][0]===e;n=r++);return n}function Yu(t,e,n){for(let r=n-1;r>=0&&t[r][0]===e;n=r--);return n}function Qu(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 Gu=-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 Gu=!0,i;o<0?n=i+1:r=i-1}return Gu=!1,n-1}(t,e,c,a)}var tl=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=Hu(c||"",function(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}(e));this.resolvedSources=a.map((t=>Hu(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=Xu(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=Xu(t,r+1))t[r]=Vu(t[r],e);return t}(f,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function el(t){var e;return(e=t)._decoded||(e._decoded=function(t){const{length:e}=t,n=new Mu(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=Au(n,i),i<l&&(u=!1),l=i,_u(n,t)?(o=Au(n,o),s=Au(n,s),c=Au(n,c),_u(n,t)?(a=Au(n,a),r=[i,o,s,c,a]):r=[i,o,s,c]):r=[i],e.push(r),n.pos++}u||Cu(e),r.push(e),n.pos=t+1}while(n.pos<=e);return r}(t._encoded))}function nl(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=el(t);if(n>=o.length)return rl(null,null,null,null);const s=o[n],c=function(t,e,n,r,i){let o=Qu(t,r,e,n);Gu?o=(-1===i?Zu:Yu)(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 rl(null,null,null,null);const a=s[c];if(1===a.length)return rl(null,null,null,null);const{names:u,resolvedSources:l}=t;return rl(l[a[1]],a[2]+1,a[3],5===a.length?u[a[4]]:null)}function rl(t,e,n,r){return{source:t,line:e,column:n,name:r}}function il(t){return null!=t}function ol(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var sl=/^\s*at .*(?:\S:\d+|\(native\))/m,cl=/^(?:eval@)?(?:\[native code\])?$/,al=["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 ul(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 ll(t,e={}){const{ignoreStackEntries:n=al}=e,r=sl.test(t)?function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(!sl.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]=ul(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:Da(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(il)}(t):function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(cl.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]=ul(e.replace(n,""));return o&&s&&c?{file:o,method:i||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(t))).filter(il)}(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 fl(n,t.file)?null:t;const o=new tl(i),{line:s,column:c,source:a,name:u}=nl(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 fl(n,l)?null:null!=s&&null!=c?{line:s,column:c,file:l,method:u||t.method}:t})).filter((t=>null!=t))}function fl(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 hl,dl,{AsymmetricMatcher:pl,DOMCollection:bl,DOMElement:ml,Immutable:yl,ReactElement:gl,ReactTestComponent:wl}=be;function vl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}!function(){return dl?hl:(dl=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),hl=function*(w,{jsx:v=!1}={}){var $,x,S,j,E,T,O,k,A,_,M,C,I,N;for(({length:T}=w),j=0,E="",N=[{tag:"JS"}],$=[],M=0,C=!1;j<T;){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,O=h.exec(w))){j=h.lastIndex,E=O[0],C=!0,yield{type:"RegularExpressionLiteral",value:O[0],closed:void 0!==O[1]&&"\\"!==O[1]};continue}if(f.lastIndex=j,O=f.exec(w)){switch(I=O[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,O=b.exec(w),j=b.lastIndex,E=O[0],"${"===O[1]?(E="?InterpolationInTemplate",C=!1,yield{type:"TemplateMiddle",value:O[0]}):(N.pop(),C=!0,yield{type:"TemplateTail",value:O[0],closed:"`"===O[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,O=t.exec(w)){switch(j=t.lastIndex,_=O[0],O[0]){case"for":case"if":case"while":case"with":"."!==E&&"?."!==E&&(_="?NonExpressionParenKeyword")}E=_,C=!o.test(O[0]),yield{type:"#"===O[1]?"PrivateIdentifier":"IdentifierName",value:O[0]};continue}if(p.lastIndex=j,O=p.exec(w)){j=p.lastIndex,E=O[0],C=!0,yield{type:"StringLiteral",value:O[0],closed:void 0!==O[2]};continue}if(l.lastIndex=j,O=l.exec(w)){j=l.lastIndex,E=O[0],C=!0,yield{type:"NumericLiteral",value:O[0]};continue}if(b.lastIndex=j,O=b.exec(w)){j=b.lastIndex,E=O[0],"${"===O[1]?(E="?InterpolationInTemplate",N.push({tag:"InterpolationInTemplate",nesting:$.length}),C=!1,yield{type:"TemplateHead",value:O[0]}):(C=!0,yield{type:"NoSubstitutionTemplate",value:O[0],closed:"`"===O[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=j,O=n.exec(w)){switch(j=n.lastIndex,_=O[0],O[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:O[0]};continue}if(e.lastIndex=j,O=e.exec(w)){j=e.lastIndex,E=O[0],yield{type:"JSXIdentifier",value:O[0]};continue}if(r.lastIndex=j,O=r.exec(w)){j=r.lastIndex,E=O[0],yield{type:"JSXString",value:O[0],closed:void 0!==O[2]};continue}break;case"JSXChildren":if(i.lastIndex=j,O=i.exec(w)){j=i.lastIndex,E=O[0],yield{type:"JSXText",value:O[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,(O=g.exec(w))?(j=g.lastIndex,yield{type:"WhiteSpace",value:O[0]}):(c.lastIndex=j,(O=c.exec(w))?(j=c.lastIndex,C=!1,s.test(E)&&(E="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:O[0]}):(a.lastIndex=j,(O=a.exec(w))?(j=a.lastIndex,u.test(O[0])&&(C=!1,s.test(E)&&(E="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:O[0],closed:void 0!==O[1]}):(d.lastIndex=j,(O=d.exec(w))?(j=d.lastIndex,C=!1,yield{type:"SingleLineComment",value:O[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 $l=["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($l);var xl=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],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 Sl(t){return String(t)}Sl.open="",Sl.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 xl)r[t]=e?n(i(o[0]),i(o[1]),o[2]):Sl}();var jl=/\r?\n/;function El(t,e,n){const r=t.split(jl),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 Ol(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(jl),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(jl)[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 kl="toMatchInlineSnapshot",Al="toThrowErrorMatchingInlineSnapshot";var _l=/(?: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 Ml(t,e,n,r){const{code:i,index:o}=function(t,e){const n=e-kl.length;if(t.slice(n,e)===kl)return{code:t.slice(n),index:n};const r=e-Al.length;return t.slice(e-r,e)===Al?{code:t.slice(e-r),index:e-r}:{code:t.slice(e),index:e}}(t,n),s=_l.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=`, ${Ol(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=Ol(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 Cl=/^([^\S\n]*)\S/m;function Il(t){const e=t.match(Cl);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 Nl,Pl={exports:{}};var Rl=vl(function(){if(Nl)return Pl.exports;Nl=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{Pl.exports=t}catch(e){String.naturalCompare=t}return Pl.exports}()),Bl={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:Dl,DOMElement:Fl,Immutable:Ll,ReactElement:ql,ReactTestComponent:Jl,AsymmetricMatcher:Ul}=be,Wl=[Jl,ql,Fl,Dl,Ll,Ul,Bl];function Hl(t){Wl=[t].concat(Wl)}function Xl(t){if(!/ \d+$/.test(t))throw new Error("Snapshot keys must end with a number.");return t.replace(/ \d+$/,"")}function zl(t){return t.length>2&&t.startsWith("\n")&&t.endsWith("\n")?t.slice(1,-1):t}function Vl(t){return`\`${function(t){return t.replace(/`|\\|\$\{/g,"\\$&")}(t)}\``}function Kl(t){return t.replace(/\r\n|\r/g,"\n")}function Gl(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 Zl(t=[],e=[]){const n=Array.from(t);return e.forEach(((e,r)=>{const i=n[r];Array.isArray(t[r])?n[r]=Zl(t[r],e):ol(i)?n[r]=Yl(t[r],e):n[r]=e})),n}function Yl(t,e){if(ol(t)&&ol(e)){const n={...t};return Object.keys(e).forEach((r=>{ol(e[r])&&!e[r].$$typeof?r in t?n[r]=Yl(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Array.isArray(e[r])?n[r]=Zl(t[r],e[r]):Object.assign(n,{[r]:e[r]})})),n}return Array.isArray(t)&&Array.isArray(e)?Zl(t,e):t}var Ql=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)}},tf=class extends Ql{constructor(){super((()=>0)),m(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 ef(t,e){return t.file===e.file&&t.column===e.column&&t.line===e.line}var nf=class t{constructor(t,e,n,r){m(this,"_counters",new tf),m(this,"_dirty"),m(this,"_updateSnapshot"),m(this,"_snapshotData"),m(this,"_initialData"),m(this,"_inlineSnapshots"),m(this,"_inlineSnapshotStacks"),m(this,"_testIdToKeys",new Ql((()=>[]))),m(this,"_rawSnapshots"),m(this,"_uncheckedKeys"),m(this,"_snapshotFormat"),m(this,"_environment"),m(this,"_fileExists"),m(this,"expand"),m(this,"_added",new tf),m(this,"_matched",new tf),m(this,"_unmatched",new tf),m(this,"_updated",new tf),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=Xl(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(Rl).map((t=>`exports[${Vl(t)}] = ${Vl(Kl(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((()=>(B(),C)))).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)Ml(o,s,El(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 Kl(pe(t,{escapeRegex:!0,indent:e,plugins:Wl,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=Kl(c.content));const d=o?i:c?c.content:this._snapshotData[r],p=c?d:Gl(d),b=p===(c?f:Gl(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=ll(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=>ef(t,g)));if(r.length>0){this._inlineSnapshots=this._inlineSnapshots.filter((t=>!ef(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:zl(f),count:l,expected:void 0!==p?c?p:zl(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 rf(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 of=class{constructor(t={}){m(this,"snapshotStateMap",new Map),this.options=t}async setup(t,e){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await nf.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 rf("Snapshot properties mismatched",p.expand,d,a);d=Yl(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 rf(`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()}};y();var sf=Date,cf=null,af=class t extends sf{constructor(e,n,r,i,o,s,c){let a;switch(super(),arguments.length){case 0:a=null!==cf?new sf(cf.valueOf()):new sf;break;case 1:a=new sf(e);break;default:a=new sf(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}};af.UTC=sf.UTC,af.now=function(){return(new af).valueOf()},af.parse=function(t){return sf.parse(t)},af.toString=function(){return sf.toString()};var uf=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function lf(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}var ff,hf={exports:{}};var df,pf,bf=ju((ff||(ff=1,df=hf,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)}},df.exports=t}.call(hf.exports)),hf.exports));function mf(){return pf||(pf=new of({isEqual:(t,e)=>Fc(t,e,[Qc,ea])})),pf}function yf(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 gf(t){return{filepath:t.file.filepath,name:qa(t).slice(1).join(" > "),testId:t.id}}xc(((t,e)=>{e.addMethod(t.expect,"extend",((e,n)=>{xc(xa(t,e,n))}))})),xc(((t,e)=>{const{AssertionError:n}=t,r=Dc();function i(n,r){const i=n=>{const i=ga(e,n,r);e.addMethod(t.Assertion.prototype,n,i),e.addMethod(globalThis[jc].matchers,n,i)};Array.isArray(n)?n.forEach((t=>i(t))):i(n)}function o(t){return function(t){if(!ni(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)=>Fc(t,e[n],[...r,Qc])))}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=Fc(n,t,[...r,Qc]);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=Fc(n,t,[...r,Qc,na,ia,ra],!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(Fc(e,t,[...r,Qc,na,ia,ra],!0))i="toStrictEqual";else{Fc(e,t,[...r,Qc])&&(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=Fc(i,t,[...r,Qc,ea]),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(ln(e)&&ln(o)){if(Fc(e,o,[...n,Qc,ea]))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 oa(e))ta(o,n)?s[n]=t.has(e[n])?t.get(e[n]):i(t)(e[n],o[n]):t.has(e[n])||(r+=1,ln(e[n])&&(r+=oa(e[n]).length),i(t)(e[n],o[n]));if(oa(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){an(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=>Fc(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 an(e,"actual",["number","bigint"]),an(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 an(e,"actual",["number","bigint"]),an(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 an(e,"actual",["number","bigint"]),an(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 an(e,"actual",["number","bigint"]),an(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||Fc(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=va(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(va(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(va(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 ${wa(t)} "${r}" call to have been called with #{exp}${a?"":`, but called only ${c} times`}`,`expected ${wa(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(!ni(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(!ni(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=Fc(c,t,[...r,Qc]);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&&Fc(e,n))),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(t,e)=>t.mock.results.some((({type:t,value:n})=>"return"===t&&Fc(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+=X.gray(`\n\nReceived: \n\n${e.map(((e,n)=>{let i=X.bold(` ${wa(n+1)} ${t.getMockName()} call return:\n\n`);return i+=r?Mr(r,e.value,{omitAnnotationLines:!0}):nn(e).split("\n").map((t=>` ${t}`)).join("\n"),i+="\n",i})).join("\n")}`),n+=X.gray(`\n\nNumber of calls: ${X.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&&Fc(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&&Fc(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&&Fc(r.value,n)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(t,e,n)=>{const r=t.mock.results[e-1];return r&&"return"===r.type&&Fc(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=`${wa(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 ya(i,s,ma(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 ya(i,o,ma(e,this,!!t.length),r)}}});return c}))})),xc(bf),xc(((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");mf().assert({received:o,message:i,isInline:!1,properties:t,errorMessage:c,...gf(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,mf().assertRaw({received:o,message:r,isInline:!1,rawSnapshot:{file:t},errorMessage:c,...gf(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=Il(r));const a=e.flag(this,"message");mf().assert({received:s,message:i,isInline:!0,properties:t,inlineSnapshot:r,error:c,errorMessage:a,...gf(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");mf().assert({received:yf(r,o),message:t,errorMessage:s,...gf(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=Il(t)),mf().assert({received:yf(o,c),message:r,inlineSnapshot:t,isInline:!0,error:s,errorMessage:a,...gf(i)})})),e.addMethod(t.expect,"addSnapshotSerializer",Hl)})),xc(((t,e)=>{e.addMethod(t.expect,"anything",(()=>new la)),e.addMethod(t.expect,"any",(t=>new da(t))),e.addMethod(t.expect,"stringContaining",(t=>new ua(t))),e.addMethod(t.expect,"objectContaining",(t=>new fa(t))),e.addMethod(t.expect,"arrayContaining",(t=>new ha(t))),e.addMethod(t.expect,"stringMatching",(t=>new pa(t))),e.addMethod(t.expect,"closeTo",((t,e)=>new ba(t,e))),t.expect.not={stringContaining:t=>new ua(t,!0),objectContaining:t=>new fa(t,!0),arrayContaining:t=>new ha(t,!0),stringMatching:t=>new pa(t,!0),closeTo:(t,e)=>new ba(t,e,!0)}}));var wf=function(t){const e=(n,r)=>{const{assertionCalls:i}=sa(e);ca({assertionCalls:i+1},e);const o=bc(n,r),s=t||void 0;return s?o.withTest(s):o};Object.assign(e,bc),Object.assign(e,globalThis[Tc]),e.getState=()=>sa(e),e.setState=t=>ca(t,e);const n=sa(globalThis[Ec])||{};return ca({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:vu(),get testPath(){return wu().filepath},currentTestName:t?Ja(t):n.currentTestName},e),e.extend=t=>bc.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 "${fn(t)}"`);globalThis[jc].customEqualityTesters.push(...t)}(t),e.soft=(...t)=>e(...t).withContext({soft:!0}),e.poll=function(t){return function(e,n={}){const r=wu(),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=gi.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 as?l:i;if("assert"===n)return i;if("string"==typeof n&&uf.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}=Ln(),b=async()=>{try{gi.flag(a,"_name",n);const r=await e();gi.flag(a,"object",r),c(await i.call(a,...t)),p(l),p(f)}catch(t){h=t,gi.flag(a,"_isLastPollAttempt")||(l=d(b,o))}};f=d((()=>{p(l),gi.flag(a,"_isLastPollAttempt",!0);const t=t=>{u(lf(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=gi.flag(a,"negate")?"not.":"",e=`expect.${gi.flag(a,"_poll.element")?"element(locator)":"poll(assertion)"}.${t}${String(n)}()`;throw lf(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=>{vc.fail(`expected${t?` "${t}" `:" "}not to be reached`)},gi.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})})),gi.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(Oc),e}();Object.defineProperty(globalThis,Ec,{value:wf,writable:!0,configurable:!0});var vf,$f,xf,Sf,jf,Ef,Tf,Of,kf,Af,_f,Mf,Cf={};function If(){if(Ef)return jf;Ef=1;var t=Function.call,e=function(){if(Sf)return xf;let t;Sf=1;try{t=!1}catch(e){t=!0}return xf=t}(),n=["size","caller","callee","arguments"];return e&&n.push("__proto__"),jf=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 Nf(){if(Of)return Tf;Of=1;var t=If();return Tf=t(Array.prototype)}function Pf(){if(Af)return kf;Af=1;var t=Nf().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 kf=function(n){return t(arguments.length>1?arguments:n,e.bind(null,{}))},kf}function Rf(){if(Mf)return _f;return Mf=1,_f=function(t){return t.constructor&&t.constructor.name||null}}var Bf,Df,Ff,Lf,qf,Jf,Uf,Wf,Hf,Xf,zf,Vf,Kf,Gf,Zf,Yf,Qf,th,eh,nh={};function rh(){if(Uf)return Jf;Uf=1;var t=Nf().sort,e=Nf().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 Jf=function(r){return t(e(r),n)}}function ih(){if(Hf)return Wf;Hf=1;var t=If();return Wf=t(Function.prototype)}function oh(){if(zf)return Xf;zf=1;var t=If();return Xf=t(Map.prototype)}function sh(){if(Kf)return Vf;Kf=1;var t=If();return Vf=t(Object.prototype)}function ch(){if(Zf)return Gf;Zf=1;var t=If();return Gf=t(Set.prototype)}function ah(){if(Qf)return Yf;Qf=1;var t=If();return Yf=t(String.prototype)}var uh,lh,fh,hh,dh,ph,bh,mh,yh={exports:{}};function gh(){return uh?yh.exports:(uh=1,yh.exports=function(){var t="function"==typeof Promise,e="object"==typeof self?self:Su,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 wh(){if(fh)return lh;fh=1;var t=gh();return lh=function(e){return t(e).toLowerCase()}}function vh(){if(dh)return hh;return dh=1,hh=function(t){return t&&t.toString?t.toString():String(t)}}var $h=function(){if(mh)return Cf;mh=1;const t=function(){return bh||(bh=1,ph={global:$f?vf:($f=1,e=void 0!==Su?Su:"undefined"!=typeof window?window:self,vf=e),calledInOrder:Pf(),className:Rf(),deprecated:(Bf||(Bf=1,(t=nh).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)}),nh),every:(Ff||(Ff=1,Df=function(t,e){var n=!0;try{t.forEach((function(){if(!e.apply(this,arguments))throw new Error}))}catch(t){n=!1}return n}),Df),functionName:qf?Lf:(qf=1,Lf=function(t){if(!t)return"";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch(t){return""}}),orderByFirstCall:rh(),prototypes:eh?th:(eh=1,th={array:Nf(),function:ih(),map:oh(),object:sh(),set:ch(),string:ah()}),typeOf:wh(),valueToString:vh()}),ph;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 T(){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 O(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 F={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};u.setImmediate&&(F.setImmediate=i.setImmediate),u.clearImmediate&&(F.clearImmediate=i.clearImmediate),u.hrtime&&(F.hrtime=i.process.hrtime),u.nextTick&&(F.nextTick=i.process.nextTick),u.performance&&(F.performance=i.performance),u.requestAnimationFrame&&(F.requestAnimationFrame=i.requestAnimationFrame),u.queueMicrotask&&(F.queueMicrotask=i.queueMicrotask),u.cancelAnimationFrame&&(F.cancelAnimationFrame=i.cancelAnimationFrame),u.requestIdleCallback&&(F.requestIdleCallback=i.requestIdleCallback),u.cancelIdleCallback&&(F.cancelIdleCallback=i.cancelIdleCallback),u.Intl&&(F.Intl=m);const L=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:T(),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{O(o),I(o,f)}catch(t){h=h||t}if(e)return void L(p);b()}m()}if(d=o.now,O(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,O(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(){O(o)},o.tick=function(t){return l(t,!1)},void 0!==i.Promise&&(o.tickAsync=function(t){return new i.Promise((function(e,n){L((function(){try{l(t,!0,e,n)}catch(t){n(t)}}))}))}),o.next=function(){O(o);const t=M(o);if(!t)return o.now;o.duringTick=!0;try{return o.now=t.callAt,I(o,t),O(o),o.now}finally{o.duringTick=!1}},void 0!==i.Promise&&(o.nextAsync=function(){return new i.Promise((function(t,e){L((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,L((function(){r?e(r):t(o.now)}))}catch(t){e(t)}}))}))}),o.runAll=function(){let t,e;for(O(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(){L((function(){try{let i;if(O(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):(O(o),o.now)},void 0!==i.Promise&&(o.runToLastAsync=function(){return new i.Promise((function(t,e){L((function(){try{const e=C(o);e||(O(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:F,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(F)),!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 Cf.timers=i.timers,Cf.createClock=i.createClock,Cf.install=i.install,Cf.withGlobal=r,Cf}(),xh=class{constructor({global:t,config:e}){m(this,"_global"),m(this,"_clock"),m(this,"_fakingTime"),m(this,"_fakingDate"),m(this,"_fakeTimers"),m(this,"_userConfig"),m(this,"_now",sf.now),this._userConfig=e,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=$h.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=sf,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")&&$u())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 sf(t.valueOf());if(Number.isNaN(e.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${t}`);globalThis.Date=af,cf=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 Sh(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}function jh(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:o}=Ln(),{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(Oh.isFakeTimers()&&Oh.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=Sh(new Error("Timed out in waitFor!"),a)),u(t)}),c),h=r(b,s))}))}function Eh(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:o}=Ln(),{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=Sh(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(Oh.isFakeTimers()&&Oh.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=wu();let n;const r=()=>n||=new xh({global:globalThis,config:e.config.fakeTimers}),i=new Map,o=new Map,s=["PROD","DEV","SSR"],c={useFakeTimers(t){if($u()&&(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:ri,fn:si,waitFor:jh,waitUntil:Eh,hoisted:t=>(an(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=Ah("mock");kh().queueMock(t,n,"function"==typeof e?()=>e((()=>kh().importActual(t,n,kh().getMockContext().callstack))):e)},unmock(t){if("string"!=typeof t)throw new TypeError("vi.unmock() expects a string path, but received a "+typeof t);kh().queueUnmock(t,Ah("unmock"))},doMock(t,e){if("string"!=typeof t)throw new TypeError("vi.doMock() expects a string path, but received a "+typeof t);const n=Ah("doMock");kh().queueMock(t,n,"function"==typeof e?()=>e((()=>kh().importActual(t,n,kh().getMockContext().callstack))):e)},doUnmock(t){if("string"!=typeof t)throw new TypeError("vi.doUnmock() expects a string path, but received a "+typeof t);kh().queueUnmock(t,Ah("doUnmock"))},importActual:async t=>kh().importActual(t,Ah("importActual"),kh().getMockContext().callstack),importMock:async t=>kh().importMock(t,Ah("importMock")),mocked:(t,e={})=>t,isMockFunction:t=>ni(t),clearAllMocks:()=>([...ei].reverse().forEach((t=>t.mockClear())),c),resetAllMocks:()=>([...ei].reverse().forEach((t=>t.mockReset())),c),restoreAllMocks:()=>([...ei].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()=>xu(),setConfig(n){t||(t={...e.config}),Object.assign(e.config,n)},resetConfig(){t&&Object.assign(e.config,t)}};return c}(),Oh=Th;function kh(){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 Ah(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=Pa(e[n+1]);return r?.file||""}b(J(),1);y();var _h=require("fs/promises"),Mh=require("fs"),Ch=b(require("path"));async function Ih(t,e){const n=await(0,_h.readdir)(t,{withFileTypes:!0,recursive:!0});for(const r of n){const n=Ch.default.join(t,r.name);if(!0===await e(n,r))break}}function Nh(t,e){const n=(0,Mh.readdirSync)(t,{withFileTypes:!0,recursive:!0});for(const r of n){if(!0===e(Ch.default.join(t,r.name),r))break}}var Ph=require("fs"),Rh=require("fs/promises"),Bh=b(require("path")),Dh=Ph.Dirent;Oh.mock("fs/promises",(()=>({readdir:Oh.fn()}))),Oh.mock("fs",(()=>({readdirSync:Oh.fn(),Dirent:class{constructor(t){this.isFile=()=>!0,this.name=t}}}))),describe("traverseFolder",(()=>{it("should traverse all files and directories asynchronously",(async()=>{const t=[new Dh("file1.txt"),new Dh("file2.txt"),new Dh("subdir")];Rh.readdir.mockResolvedValue(t);const e=Oh.fn().mockImplementation((()=>!1));await Ih("/mock/path",e),expect(e).toHaveBeenCalledTimes(3),expect(e).toHaveBeenCalledWith(Bh.default.join("/mock/path","file1.txt"),t[0]),expect(e).toHaveBeenCalledWith(Bh.default.join("/mock/path","file2.txt"),t[1]),expect(e).toHaveBeenCalledWith(Bh.default.join("/mock/path","subdir"),t[2])})),it("should stop traversal when handler returns true",(async()=>{const t=[new Dh("file1.txt"),new Dh("file2.txt"),new Dh("file3.txt")];Rh.readdir.mockResolvedValue(t);const e=Oh.fn().mockImplementation((t=>t.endsWith("file2.txt")));await Ih("/mock/path",e),expect(e).toHaveBeenCalledTimes(2)}))})),describe("traverseFolderSync",(()=>{it("should traverse all files and directories synchronously",(()=>{const t=[new Dh("file1.txt"),new Dh("file2.txt"),new Dh("subdir")];Ph.readdirSync.mockReturnValue(t);const e=Oh.fn().mockImplementation((()=>!1));Nh("/mock/path",e),expect(e).toHaveBeenCalledTimes(3),expect(e).toHaveBeenCalledWith(Bh.default.join("/mock/path","file1.txt"),t[0]),expect(e).toHaveBeenCalledWith(Bh.default.join("/mock/path","file2.txt"),t[1]),expect(e).toHaveBeenCalledWith(Bh.default.join("/mock/path","subdir"),t[2])})),it("should stop traversal when handler returns true",(()=>{const t=[new Dh("file1.txt"),new Dh("file2.txt"),new Dh("file3.txt")];Ph.readdirSync.mockReturnValue(t);const e=Oh.fn().mockImplementation((t=>t.endsWith("file2.txt")));Nh("/mock/path",e),expect(e).toHaveBeenCalledTimes(2)}))}));
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
+ */