@knapsack/types 5.0.0--canary.6593.4738696.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/.lintstagedrc.mjs +2 -2
  2. package/CHANGELOG.md +174 -0
  3. package/convert-types-to-json-schemas.ts +3 -1
  4. package/dist/acd-test-fixtures/empty.d.ts +1 -1
  5. package/dist/acd-test-fixtures/empty.d.ts.map +1 -1
  6. package/dist/acd-test-fixtures/index.js.map +1 -1
  7. package/dist/acd-test-fixtures/index.mjs.map +1 -1
  8. package/dist/api-routes.js.map +1 -1
  9. package/dist/api-routes.mjs.map +1 -1
  10. package/dist/app-client-data/blocks.d.ts +2 -1
  11. package/dist/app-client-data/blocks.d.ts.map +1 -1
  12. package/dist/app-client-data/blocks.settings.d.ts +2 -2
  13. package/dist/app-client-data/blocks.settings.d.ts.map +1 -1
  14. package/dist/app-client-data/design-tokens-types/token-data.d.ts +7 -7
  15. package/dist/app-client-data/design-tokens-types/token-data.d.ts.map +1 -1
  16. package/dist/app-client-data/design-tokens-types/token-definitions.d.ts.map +1 -1
  17. package/dist/app-client-data/design-tokens-types/token-src-value-info.d.ts +2 -2
  18. package/dist/app-client-data/design-tokens-types/token-src-value-info.d.ts.map +1 -1
  19. package/dist/app-client-data/design-tokens-types/token-src.d.ts +3 -3
  20. package/dist/app-client-data/design-tokens-types/token-src.d.ts.map +1 -1
  21. package/dist/app-client-data/index.d.ts +14 -6
  22. package/dist/app-client-data/index.d.ts.map +1 -1
  23. package/dist/app-client-data/page.d.ts +0 -6
  24. package/dist/app-client-data/page.d.ts.map +1 -1
  25. package/dist/app-client-data/page.header.d.ts +1 -1
  26. package/dist/app-client-data/page.header.d.ts.map +1 -1
  27. package/dist/app-client-data/patterns.d.ts +74 -0
  28. package/dist/app-client-data/patterns.d.ts.map +1 -1
  29. package/dist/app-client-data/types-to-json-schemas.d.ts.map +1 -1
  30. package/dist/app-client-data/validation.test.d.ts +2 -0
  31. package/dist/app-client-data/validation.test.d.ts.map +1 -0
  32. package/dist/app-client-data-migrations/4.1.7-demos.d.ts.map +1 -1
  33. package/dist/app-client-data-migrations/migration.types.d.ts +1 -1
  34. package/dist/app-client-data-migrations/migration.types.d.ts.map +1 -1
  35. package/dist/app-client-data-v3/index.d.ts +1 -1
  36. package/dist/app-client-data-v3/index.d.ts.map +1 -1
  37. package/dist/app-client-data-v3/page.header.d.ts +1 -1
  38. package/dist/app-client-data-v3/page.header.d.ts.map +1 -1
  39. package/dist/app-client-data-v3/types-to-json-schemas.d.ts.map +1 -1
  40. package/dist/app-sections.d.ts +2 -1
  41. package/dist/app-sections.d.ts.map +1 -1
  42. package/dist/app-sections.js +1 -1
  43. package/dist/app-sections.js.map +1 -1
  44. package/dist/app-sections.mjs +1 -1
  45. package/dist/app-sections.mjs.map +1 -1
  46. package/dist/changes.js.map +1 -1
  47. package/dist/changes.mjs.map +1 -1
  48. package/dist/color-config.d.ts +1 -1
  49. package/dist/color-config.d.ts.map +1 -1
  50. package/dist/color-config.js +1 -1
  51. package/dist/color-config.js.map +1 -1
  52. package/dist/color-config.mjs +1 -1
  53. package/dist/color-config.mjs.map +1 -1
  54. package/dist/e2e-session-config.d.ts +20 -0
  55. package/dist/e2e-session-config.d.ts.map +1 -0
  56. package/dist/e2e-session-config.js +2 -0
  57. package/dist/e2e-session-config.js.map +1 -0
  58. package/dist/e2e-session-config.mjs +2 -0
  59. package/dist/e2e-session-config.mjs.map +1 -0
  60. package/dist/git-providers.js.map +1 -1
  61. package/dist/git-providers.mjs.map +1 -1
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +1 -1
  65. package/dist/index.js.map +1 -1
  66. package/dist/index.mjs +1 -1
  67. package/dist/index.mjs.map +1 -1
  68. package/dist/intercepts.d.ts +1 -1
  69. package/dist/intercepts.d.ts.map +1 -1
  70. package/dist/json-schema.js.map +1 -1
  71. package/dist/json-schema.mjs.map +1 -1
  72. package/dist/misc.d.ts +2 -2
  73. package/dist/misc.d.ts.map +1 -1
  74. package/dist/nav-customization-config.d.ts +3 -3
  75. package/dist/nav-customization-config.d.ts.map +1 -1
  76. package/dist/nav-customization-config.js +1 -1
  77. package/dist/nav-customization-config.js.map +1 -1
  78. package/dist/nav-customization-config.mjs +1 -1
  79. package/dist/nav-customization-config.mjs.map +1 -1
  80. package/dist/renderer-client-types.js.map +1 -1
  81. package/dist/renderer-client-types.mjs.map +1 -1
  82. package/dist/renderers.d.ts +28 -0
  83. package/dist/renderers.d.ts.map +1 -1
  84. package/dist/renderers.js +1 -1
  85. package/dist/renderers.js.map +1 -1
  86. package/dist/renderers.mjs +1 -1
  87. package/dist/renderers.mjs.map +1 -1
  88. package/dist/renderers.test.d.ts +2 -0
  89. package/dist/renderers.test.d.ts.map +1 -0
  90. package/dist/typography-config.d.ts +2 -2
  91. package/dist/typography-config.d.ts.map +1 -1
  92. package/dist/typography-config.js +1 -1
  93. package/dist/typography-config.js.map +1 -1
  94. package/dist/typography-config.mjs +1 -1
  95. package/dist/typography-config.mjs.map +1 -1
  96. package/dist/ui-config.d.ts +5 -5
  97. package/dist/ui-config.d.ts.map +1 -1
  98. package/dist/ui-config.js +1 -1
  99. package/dist/ui-config.js.map +1 -1
  100. package/dist/ui-config.mjs +1 -1
  101. package/dist/ui-config.mjs.map +1 -1
  102. package/dist/user-roles.d.ts +1 -0
  103. package/dist/user-roles.d.ts.map +1 -1
  104. package/dist/user-roles.js +1 -1
  105. package/dist/user-roles.js.map +1 -1
  106. package/dist/user-roles.mjs +1 -1
  107. package/dist/user-roles.mjs.map +1 -1
  108. package/dist/web-sockets.js.map +1 -1
  109. package/dist/web-sockets.mjs.map +1 -1
  110. package/package.json +16 -18
  111. package/vitest.config.mjs +1 -2
  112. package/.eslintrc.js +0 -6
  113. package/ava.config.cjs +0 -3
  114. package/dist/app-client-data/validation.vtest.d.ts +0 -2
  115. package/dist/app-client-data/validation.vtest.d.ts.map +0 -1
  116. package/dist/cypress-session-config.d.ts +0 -20
  117. package/dist/cypress-session-config.d.ts.map +0 -1
  118. package/dist/cypress-session-config.js +0 -2
  119. package/dist/cypress-session-config.js.map +0 -1
  120. package/dist/cypress-session-config.mjs +0 -2
  121. package/dist/cypress-session-config.mjs.map +0 -1
  122. package/dist/renderers.vitest.d.ts +0 -2
  123. package/dist/renderers.vitest.d.ts.map +0 -1
  124. package/dist/renderers.vitest.js +0 -451
  125. package/dist/renderers.vitest.js.map +0 -1
  126. package/dist/renderers.vitest.mjs +0 -451
  127. package/dist/renderers.vitest.mjs.map +0 -1
@@ -1,451 +0,0 @@
1
- import {isatty}from'tty';import {z}from'zod';var Th=Object.create;var Bn=Object.defineProperty;var xh=Object.getOwnPropertyDescriptor;var vh=Object.getOwnPropertyNames;var Eh=Object.getPrototypeOf,Ih=Object.prototype.hasOwnProperty;var a=(e,t)=>Bn(e,"name",{value:t,configurable:true});var pa=(e,t)=>()=>(e&&(t=e(e=0)),t);var Wt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ch=(e,t)=>{for(var n in t)Bn(e,n,{get:t[n],enumerable:true});},_h=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vh(t))!Ih.call(e,o)&&o!==n&&Bn(e,o,{get:()=>t[o],enumerable:!(r=xh(t,o))||r.enumerable});return e};var ma=(e,t,n)=>(n=e!=null?Th(Eh(e)):{},_h(Bn(n,"default",{value:e,enumerable:true}),e));var vu=Wt((t0,xu)=>{var wu,Vr,Kr,Xr,Gr,Yr,Cn,ps,On,Hr,Su,Zr,_n,Qr,eo,to,Dt,Tu,no,ro;Qr=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;_n=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;Vr=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;to=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;Zr=/(?: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;Dt=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;ro=/[\t\v\f\ufeff\p{Zs}]+/yu;On=/\r?\n|[\r\u2028\u2029]/y;Hr=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;eo=/\/\/.*/y;wu=/^#!.*/;Xr=/[<>.:={}]|\/(?![\/*])/y;Kr=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;Gr=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;Yr=/[^<>{}]+/y;no=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;Tu=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;Cn=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;ps=/^(?:return|throw|yield)$/;Su=RegExp(On.source);xu.exports=a(function*(e,{jsx:t=false}={}){var n,r,o,i,s,l,c,u,f,h,m,d,g,p;for({length:l}=e,i=0,s="",p=[{tag:"JS"}],n=[],m=0,d=false,(c=wu.exec(e))&&(yield {type:"HashbangComment",value:c[0]},i=c[0].length);i<l;){switch(u=p[p.length-1],u.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(e[i]==="/"&&(no.test(s)||Cn.test(s))&&(Qr.lastIndex=i,c=Qr.exec(e))){i=Qr.lastIndex,s=c[0],d=true,yield {type:"RegularExpressionLiteral",value:c[0],closed:c[1]!==void 0&&c[1]!=="\\"};continue}if(_n.lastIndex=i,c=_n.exec(e)){switch(g=c[0],f=_n.lastIndex,h=g,g){case "(":s==="?NonExpressionParenKeyword"&&p.push({tag:"JSNonExpressionParen",nesting:m}),m++,d=false;break;case ")":m--,d=true,u.tag==="JSNonExpressionParen"&&m===u.nesting&&(p.pop(),h="?NonExpressionParenEnd",d=false);break;case "{":_n.lastIndex=0,o=!Tu.test(s)&&(no.test(s)||Cn.test(s)),n.push(o),d=false;break;case "}":switch(u.tag){case "InterpolationInTemplate":if(n.length===u.nesting){Dt.lastIndex=i,c=Dt.exec(e),i=Dt.lastIndex,s=c[0],c[1]==="${"?(s="?InterpolationInTemplate",d=false,yield {type:"TemplateMiddle",value:c[0]}):(p.pop(),d=true,yield {type:"TemplateTail",value:c[0],closed:c[1]==="`"});continue}break;case "InterpolationInJSX":if(n.length===u.nesting){p.pop(),i+=1,s="}",yield {type:"JSXPunctuator",value:"}"};continue}}d=n.pop(),h=d?"?ExpressionBraceEnd":"}";break;case "]":d=true;break;case "++":case "--":h=d?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(t&&(no.test(s)||Cn.test(s))){p.push({tag:"JSXTag"}),i+=1,s="<",yield {type:"JSXPunctuator",value:g};continue}d=false;break;default:d=false;}i=f,s=h,yield {type:"Punctuator",value:g};continue}if(Vr.lastIndex=i,c=Vr.exec(e)){switch(i=Vr.lastIndex,h=c[0],c[0]){case "for":case "if":case "while":case "with":s!=="."&&s!=="?."&&(h="?NonExpressionParenKeyword");}s=h,d=!Cn.test(c[0]),yield {type:c[1]==="#"?"PrivateIdentifier":"IdentifierName",value:c[0]};continue}if(to.lastIndex=i,c=to.exec(e)){i=to.lastIndex,s=c[0],d=true,yield {type:"StringLiteral",value:c[0],closed:c[2]!==void 0};continue}if(Zr.lastIndex=i,c=Zr.exec(e)){i=Zr.lastIndex,s=c[0],d=true,yield {type:"NumericLiteral",value:c[0]};continue}if(Dt.lastIndex=i,c=Dt.exec(e)){i=Dt.lastIndex,s=c[0],c[1]==="${"?(s="?InterpolationInTemplate",p.push({tag:"InterpolationInTemplate",nesting:n.length}),d=false,yield {type:"TemplateHead",value:c[0]}):(d=true,yield {type:"NoSubstitutionTemplate",value:c[0],closed:c[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(Xr.lastIndex=i,c=Xr.exec(e)){switch(i=Xr.lastIndex,h=c[0],c[0]){case "<":p.push({tag:"JSXTag"});break;case ">":p.pop(),s==="/"||u.tag==="JSXTagEnd"?(h="?JSX",d=true):p.push({tag:"JSXChildren"});break;case "{":p.push({tag:"InterpolationInJSX",nesting:n.length}),h="?InterpolationInJSX",d=false;break;case "/":s==="<"&&(p.pop(),p[p.length-1].tag==="JSXChildren"&&p.pop(),p.push({tag:"JSXTagEnd"}));}s=h,yield {type:"JSXPunctuator",value:c[0]};continue}if(Kr.lastIndex=i,c=Kr.exec(e)){i=Kr.lastIndex,s=c[0],yield {type:"JSXIdentifier",value:c[0]};continue}if(Gr.lastIndex=i,c=Gr.exec(e)){i=Gr.lastIndex,s=c[0],yield {type:"JSXString",value:c[0],closed:c[2]!==void 0};continue}break;case "JSXChildren":if(Yr.lastIndex=i,c=Yr.exec(e)){i=Yr.lastIndex,s=c[0],yield {type:"JSXText",value:c[0]};continue}switch(e[i]){case "<":p.push({tag:"JSXTag"}),i++,s="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":p.push({tag:"InterpolationInJSX",nesting:n.length}),i++,s="?InterpolationInJSX",d=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(ro.lastIndex=i,c=ro.exec(e)){i=ro.lastIndex,yield {type:"WhiteSpace",value:c[0]};continue}if(On.lastIndex=i,c=On.exec(e)){i=On.lastIndex,d=false,ps.test(s)&&(s="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:c[0]};continue}if(Hr.lastIndex=i,c=Hr.exec(e)){i=Hr.lastIndex,Su.test(c[0])&&(d=false,ps.test(s)&&(s="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:c[0],closed:c[1]!==void 0};continue}if(eo.lastIndex=i,c=eo.exec(e)){i=eo.lastIndex,d=false,yield {type:"SingleLineComment",value:c[0]};continue}r=String.fromCodePoint(e.codePointAt(i)),i+=r.length,s=r,d=false,yield {type:u.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r};}},"jsTokens");});function kn(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),e.write(nf[o]);}while(r>0);return t}function rf(e){let t=new gy,n=0,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let l=e[s];if(s>0&&t.write(py),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){let f=l[u];u>0&&t.write(dy),c=kn(t,f[0],c),f.length!==1&&(n=kn(t,f[1],n),r=kn(t,f[2],r),o=kn(t,f[3],o),f.length!==4&&(i=kn(t,f[4],i)));}}return t.flush()}var dy,py,Qu,nf,my,ef,tf,gy,of=pa(()=>{dy=44,py=59,Qu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nf=new Uint8Array(64),my=new Uint8Array(128);for(let e=0;e<Qu.length;e++){let t=Qu.charCodeAt(e);nf[e]=t,my[t]=e;}a(kn,"encodeInteger");ef=1024*16,tf=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},gy=class{static{a(this,"StringWriter");}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ef);}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===ef&&(this.out+=tf.decode(t),this.pos=0);}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+tf.decode(e.subarray(0,n)):t}};a(rf,"encode");});var lf={};Ch(lf,{Bundle:()=>Ps,SourceMap:()=>Mn,default:()=>Rn});function yy(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function wy(e){let t=e.split(`
2
- `),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return " ";let o=r.reduce((i,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function af(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let o=n.length;for(;o--;)n[o]="..";}return n.concat(r).join("/")}function cf(e){return Sy.call(e)==="[object Object]"}function Os(e){let t=e.split(`
3
- `),n=[];for(let r=0,o=0;r<t.length;r++)n.push(o),o+=t[r].length+1;return a(function(o){let i=0,s=n.length;for(;i<s;){let u=i+s>>1;o<n[u]?s=u:i=u+1;}let l=i-1,c=o-n[l];return {line:l,column:c}},"locate")}var uo,fo,by,Mn,Sy,Ty,ho,Nn,tn,Rn,sf,Ps,uf=pa(()=>{of();uo=class e{static{a(this,"BitSet");}constructor(t){this.bits=t instanceof e?t.bits.slice():[];}add(t){this.bits[t>>5]|=1<<(t&31);}has(t){return !!(this.bits[t>>5]&1<<(t&31))}},fo=class e{static{a(this,"Chunk");}constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=false,this.edited=false,this.previous=null,this.next=null;}appendLeft(t){this.outro+=t;}appendRight(t){this.intro=this.intro+t;}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next;}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous;}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=true,this}prependLeft(t){this.outro=t+this.outro;}prependRight(t){this.intro=t+this.intro;}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=false,this.edited=false);}split(t){let n=t-this.start,r=this.original.slice(0,n),o=this.original.slice(n);this.original=r;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",false),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return true;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,true),this.edited&&this.edit(n,this.storeName,true)),true;if(this.edit("",void 0,true),this.intro=this.intro.replace(t,""),this.intro.length)return true}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return true;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,true),this.edit("",void 0,true);}return true}else if(this.edit("",void 0,true),this.outro=this.outro.replace(t,""),this.outro.length)return true}};a(yy,"getBtoa");by=yy(),Mn=class{static{a(this,"SourceMap");}constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=rf(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId);}toString(){return JSON.stringify(this)}toUrl(){return "data:application/json;charset=utf-8;base64,"+by(this.toString())}};a(wy,"guessIndent");a(af,"getRelativePath");Sy=Object.prototype.toString;a(cf,"isObject");a(Os,"getLocator");Ty=/\w/,ho=class{static{a(this,"Mappings");}constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null;}addEdit(t,n,r,o){if(n.length){let i=n.length-1,s=n.indexOf(`
4
- `,0),l=-1;for(;s>=0&&i>s;){let u=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=s,s=n.indexOf(`
5
- `,s+1);}let c=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&c.push(o),this.rawSegments.push(c),this.advance(n.slice(l+1));}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null;}addUneditedChunk(t,n,r,o,i){let s=n.start,l=true,c=false;for(;s<n.end;){if(r[s]===`
6
- `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=true,c=false;else {if(this.hires||l||i.has(s)){let u=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?Ty.test(r[s])?c||(this.rawSegments.push(u),c=true):(this.rawSegments.push(u),c=false):this.rawSegments.push(u);}o.column+=1,this.generatedCodeColumn+=1,l=false;}s+=1;}this.pending=null;}advance(t){if(!t)return;let n=t.split(`
7
- `);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;}this.generatedCodeColumn+=n[n.length-1].length;}},Nn=`
8
- `,tn={insertLeft:false,insertRight:false,storeName:false},Rn=class e{static{a(this,"MagicString");}constructor(t,n={}){let r=new fo(0,t.length,t);Object.defineProperties(this,{original:{writable:true,value:t},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:n.filename},indentExclusionRanges:{writable:true,value:n.indentExclusionRanges},sourcemapLocations:{writable:true,value:new uo},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:void 0},ignoreList:{writable:true,value:n.ignoreList},offset:{writable:true,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r;}addSourcemapLocation(t){this.sourcemapLocations.add(t);}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let o=n.next,i=o&&o.clone();i&&(r.next=i,i.previous=r,r=i),n=o;}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new uo(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),o=new ho(t.hires),i=Os(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let l=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(n,s.content,l,s.storeName?r.indexOf(s.original):-1):o.addUneditedChunk(n,s,this.original,l,this.sourcemapLocations),s.outro.length&&o.advance(s.outro);}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?af(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new Mn(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=wy(this.original));}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(cf(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(f=>{for(let h=f[0];h<f[1];h+=1)o[h]=true;});let i=n.indentStart!==false,s=a(u=>i?`${t}${u}`:(i=true,u),"replacer");this.intro=this.intro.replace(r,s);let l=0,c=this.firstChunk;for(;c;){let u=c.end;if(c.edited)o[l]||(c.content=c.content.replace(r,s),c.content.length&&(i=c.content[c.content.length-1]===`
9
- `));else for(l=c.start;l<u;){if(!o[l]){let f=this.original[l];f===`
10
- `?i=true:f!=="\r"&&i&&(i=false,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(t));}l+=1;}l=c.end,c=c.next;}return this.outro=this.outro.replace(r,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return tn.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),tn.insertLeft=true),this.appendLeft(t,n)}insertRight(t,n){return tn.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),tn.insertRight=true),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let o=this.byStart[t],i=this.byEnd[n],s=o.previous,l=i.next,c=this.byStart[r];if(!c&&i===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return s&&(s.next=l),l&&(l.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(this.lastChunk=i),this}overwrite(t,n,r,o){return o=o||{},this.update(t,n,r,{...o,overwrite:!o.contentOnly})}update(t,n,r,o){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),o===true&&(tn.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),tn.storeName=true),o={storeName:true});let i=o!==void 0?o.storeName:false,s=o!==void 0?o.overwrite:false;if(i){let u=this.original.slice(t,n);Object.defineProperty(this.storedNames,u,{writable:true,value:true,enumerable:true});}let l=this.byStart[t],c=this.byEnd[n];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",false);}l.edit(r,i,!s);}else {let u=new fo(t,n,"").edit(r,i);c.next=u,u.previous=c;}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Nn);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Nn),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n;}if(r.content.length>0){if(t=r.content.lastIndexOf(Nn),t!==-1)return r.content.substr(t+1)+n;n=r.content+n;}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Nn),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n;}}while(r=r.previous);return t=this.intro.lastIndexOf(Nn),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}let r="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<n&&o.end>=n)return r;o=o.next;}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(r+=o.intro);let s=o.start<n&&o.end>=n;if(s&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let l=i===o?t-o.start:0,c=s?o.content.length+n-o.end:o.content.length;if(r+=o.content.slice(l,c),o.outro&&(!s||o.end===n)&&(r+=o.outro),s)break;o=o.next;}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);n=r?this.byStart[n.end]:this.byEnd[n.start];}}_splitChunk(t,n){if(t.edited&&t.content.length){let o=Os(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,true}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return false;while(t=t.next);return true}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return true;let r=this.lastChunk;do{let o=r.end,i=r.trimEnd(n);if(r.end!==o&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.previous;}while(r);return false}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return true;let r=this.firstChunk;do{let o=r.end,i=r.trimStart(n);if(r.end!==o&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.next;}while(r);return false}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,s){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(l,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):n(...i,i.index,s,i.groups)}a(r,"getReplacement");function o(i,s){let l,c=[];for(;l=i.exec(s);)c.push(l);return c}if(a(o,"matchAll"),t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let l=r(s,this.original);l!==s[0]&&this.overwrite(s.index,s.index+s[0].length,l);}});else {let i=this.original.match(t);if(i&&i.index!=null){let s=r(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s);}}return this}_replaceString(t,n){let{original:r}=this,o=r.indexOf(t);return o!==-1&&this.overwrite(o,o+t.length,n),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,o=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+o))r.slice(i,i+o)!==n&&this.overwrite(i,i+o,n);return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}},sf=Object.prototype.hasOwnProperty,Ps=class e{static{a(this,"Bundle");}constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
- `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={};}addSource(t){if(t instanceof Rn)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!cf(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{sf.call(t,n)||(t[n]=t.content[n]);}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!sf.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else {let n=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==n.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,n){return this.addSource({content:new Rn(t),separator:n&&n.separator||""}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{t.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator});}),t}generateDecodedMap(t={}){let n=[],r;this.sources.forEach(i=>{Object.keys(i.content.storedNames).forEach(s=>{~n.indexOf(s)||n.push(s);});});let o=new ho(t.hires);return this.intro&&o.advance(this.intro),this.sources.forEach((i,s)=>{s>0&&o.advance(this.separator);let l=i.filename?this.uniqueSourceIndexByFilename[i.filename]:-1,c=i.content,u=Os(c.original);c.intro&&o.advance(c.intro),c.firstChunk.eachNext(f=>{let h=u(f.start);f.intro.length&&o.advance(f.intro),i.filename?f.edited?o.addEdit(l,f.content,h,f.storeName?n.indexOf(f.original):-1):o.addUneditedChunk(l,f,c.original,h,c.sourcemapLocations):o.advance(f.content),f.outro.length&&o.advance(f.outro);}),c.outro&&o.advance(c.outro),i.ignoreList&&l!==-1&&(r===void 0&&(r=[]),r.push(l));}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(i=>t.file?af(t.file,i.filename):i.filename),sourcesContent:this.uniqueSources.map(i=>t.includeContent?i.content:null),names:n,mappings:o.raw,x_google_ignoreList:r}}generateMap(t){return new Mn(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(n=>{let r=n.content._getRawIndentString();r!==null&&(t[r]||(t[r]=0),t[r]+=1);}),Object.keys(t).sort((n,r)=>t[n]-t[r])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let n=!this.intro||this.intro.slice(-1)===`
12
- `;return this.sources.forEach((r,o)=>{let i=r.separator!==void 0?r.separator:this.separator,s=n||o>0&&/\r?\n$/.test(i);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:s}),n=r.content.lastChar()===`
13
- `;}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(r,o)=>o>0?t+r:r)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((n,r)=>{let o=n.separator!==void 0?n.separator:this.separator;return (r>0?o:"")+n.content.toString()}).join("");return this.intro+t}isEmpty(){return !(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,n)=>t+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let r,o=0;do if(r=this.sources[o++],!r)break;while(!r.content.trimStartAborted(t))}return this}trimEnd(t){let n=new RegExp((t||"\\s")+"+$"),r,o=this.sources.length-1;do if(r=this.sources[o--],!r){this.intro=this.intro.replace(n,"");break}while(!r.content.trimEndAborted(t));return this}};});var dh=Wt(hh=>{Object.defineProperty(hh,"__esModule",{value:true});});var mh=Wt(ph=>{Object.defineProperty(ph,"__esModule",{value:true});});var yh=Wt(gh=>{Object.defineProperty(gh,"__esModule",{value:true});});var wh=Wt(bh=>{Object.defineProperty(bh,"__esModule",{value:true});});var Sh=Wt(ye=>{var kw=ye&&ye.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:true,get:a(function(){return t[n]},"get")}),Object.defineProperty(e,r,o);}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];}),vo=ye&&ye.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&kw(t,e,n);};Object.defineProperty(ye,"__esModule",{value:true});ye.expectTypeOf=void 0;vo(dh(),ye);vo(mh(),ye);vo(yh(),ye);vo(wh(),ye);var be=a(()=>true,"fn"),Nw=a(e=>{let t=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],n={toBeAny:be,toBeUnknown:be,toBeNever:be,toBeFunction:be,toBeObject:be,toBeArray:be,toBeString:be,toBeNumber:be,toBeBoolean:be,toBeVoid:be,toBeSymbol:be,toBeNull:be,toBeUndefined:be,toBeNullable:be,toBeBigInt:be,toMatchTypeOf:be,toEqualTypeOf:be,toBeConstructibleWith:be,toMatchObjectType:be,toExtend:be,map:ye.expectTypeOf,toBeCallableWith:ye.expectTypeOf,extract:ye.expectTypeOf,exclude:ye.expectTypeOf,pick:ye.expectTypeOf,omit:ye.expectTypeOf,toHaveProperty:ye.expectTypeOf,parameter:ye.expectTypeOf};return t.forEach(o=>Object.defineProperty(n,o,{get:a(()=>(0, ye.expectTypeOf)({}),"get")})),n},"expectTypeOf");ye.expectTypeOf=Nw;});var Oh={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Ph=Object.entries(Oh);function Co(e){return String(e)}a(Co,"a");Co.open="";Co.close="";function ga(e=false){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return !("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}a(ga,"C");function ya(e=false){let t=ga(e),n=a((s,l,c,u)=>{let f="",h=0;do f+=s.substring(h,u)+c,h=u+l.length,u=s.indexOf(l,h);while(~u);return f+s.substring(h)},"i"),r=a((s,l,c=s)=>{let u=a(f=>{let h=String(f),m=h.indexOf(l,s.length);return ~m?s+n(h,l,c,m)+l:s+h+l},"o");return u.open=s,u.close=l,u},"g"),o={isColorSupported:t},i=a(s=>`\x1B[${s}m`,"d");for(let[s,l]of Ph)o[s]=t?r(i(l[0]),i(l[1]),l[2]):Co;return o}a(ya,"p");var Ah=process.env.FORCE_TTY!==void 0||isatty(1);var ue=ya(Ah);function ka(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:true,get:a(function(){return n[r]},"get")});}});}),Object.freeze(e)}a(ka,"_mergeNamespaces");function kh(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}a(kh,"getKeysOfEnumerableProperties");function un(e,t,n,r,o,i,s=": "){let l="",c=0,u=e.next();if(!u.done){l+=t.spacingOuter;let f=n+t.indent;for(;!u.done;){if(l+=f,c++===t.maxWidth){l+="\u2026";break}let h=i(u.value[0],t,f,r,o),m=i(u.value[1],t,f,r,o);l+=h+s+m,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`;}l+=t.spacingOuter+n;}return l}a(un,"printIteratorEntries");function Po(e,t,n,r,o,i){let s="",l=0,c=e.next();if(!c.done){s+=t.spacingOuter;let u=n+t.indent;for(;!c.done;){if(s+=u,l++===t.maxWidth){s+="\u2026";break}s+=i(c.value,t,u,r,o),c=e.next(),c.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+n;}return s}a(Po,"printIteratorValues");function Vn(e,t,n,r,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=a(u=>u instanceof DataView,"isDataView"),c=l(e)?e.byteLength:e.length;if(c>0){s+=t.spacingOuter;let u=n+t.indent;for(let f=0;f<c;f++){if(s+=u,f===t.maxWidth){s+="\u2026";break}(l(e)||f in e)&&(s+=i(l(e)?e.getInt8(f):e[f],t,u,r,o)),f<c-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a(Vn,"printListItems");function $o(e,t,n,r,o,i){let s="",l=kh(e,t.compareKeys);if(l.length>0){s+=t.spacingOuter;let c=n+t.indent;for(let u=0;u<l.length;u++){let f=l[u],h=i(f,t,c,r,o),m=i(e[f],t,c,r,o);s+=`${c+h}: ${m}`,u<l.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a($o,"printObjectProperties");var Nh=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,zn=" ",Mh=a((e,t,n,r,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+zn}[${Vn(e.sample,t,n,r,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+zn}{${$o(e.sample,t,n,r,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+zn+i(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),Rh=a(e=>e&&e.$$typeof===Nh,"test$5"),jh={serialize:Mh,test:Rh},Fh=" ",Na=new Set(["DOMStringMap","NamedNodeMap"]),Lh=/^(?:HTML\w*Collection|NodeList)$/;function Dh(e){return Na.has(e)||Lh.test(e)}a(Dh,"testName");var qh=a(e=>e&&e.constructor&&!!e.constructor.name&&Dh(e.constructor.name),"test$4");function Bh(e){return e.constructor.name==="NamedNodeMap"}a(Bh,"isNamedNodeMap");var zh=a((e,t,n,r,o,i)=>{let s=e.constructor.name;return ++r>t.maxDepth?`[${s}]`:(t.min?"":s+Fh)+(Na.has(s)?`{${$o(Bh(e)?[...e].reduce((l,c)=>(l[c.name]=c.value,l),{}):{...e},t,n,r,o,i)}}`:`[${Vn([...e],t,n,r,o,i)}]`)},"serialize$4"),Wh={serialize:zh,test:qh};function Ma(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}a(Ma,"escapeHTML");function Ao(e,t,n,r,o,i,s){let l=r+n.indent,c=n.colors;return e.map(u=>{let f=t[u],h=s(f,n,l,o,i);return typeof f!="string"&&(h.includes(`
14
- `)&&(h=n.spacingOuter+l+h+n.spacingOuter+r),h=`{${h}}`),`${n.spacingInner+r+c.prop.open+u+c.prop.close}=${c.value.open}${h}${c.value.close}`}).join("")}a(Ao,"printProps");function ko(e,t,n,r,o,i){return e.map(s=>t.spacingOuter+n+(typeof s=="string"?Ra(s,t):i(s,t,n,r,o))).join("")}a(ko,"printChildren");function Ra(e,t){let n=t.colors.content;return n.open+Ma(e)+n.close}a(Ra,"printText");function Uh(e,t){let n=t.colors.comment;return `${n.open}<!--${Ma(e)}-->${n.close}`}a(Uh,"printComment");function No(e,t,n,r,o){let i=r.colors.tag;return `${i.open}<${e}${t&&i.close+t+r.spacingOuter+o+i.open}${n?`>${i.close}${n}${r.spacingOuter}${o}${i.open}</${e}`:`${t&&!r.min?"":" "}/`}>${i.close}`}a(No,"printElement");function Mo(e,t){let n=t.colors.tag;return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}a(Mo,"printElementAsLeaf");var Jh=1,ja=3,Fa=8,La=11,Vh=/^(?:(?:HTML|SVG)\w*)?Element$/;function Kh(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return false}}a(Kh,"testHasAttribute");function Xh(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||Kh(e);return n===Jh&&(Vh.test(t)||o)||n===ja&&t==="Text"||n===Fa&&t==="Comment"||n===La&&t==="DocumentFragment"}a(Xh,"testNode");var Gh=a(e=>{var t;return (e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&Xh(e)},"test$3");function Yh(e){return e.nodeType===ja}a(Yh,"nodeIsText");function Hh(e){return e.nodeType===Fa}a(Hh,"nodeIsComment");function _o(e){return e.nodeType===La}a(_o,"nodeIsFragment");var Zh=a((e,t,n,r,o,i)=>{if(Yh(e))return Ra(e.data,t);if(Hh(e))return Uh(e.data,t);let s=_o(e)?"DocumentFragment":e.tagName.toLowerCase();return ++r>t.maxDepth?Mo(s,t):No(s,Ao(_o(e)?[]:Array.from(e.attributes,l=>l.name).sort(),_o(e)?{}:[...e.attributes].reduce((l,c)=>(l[c.name]=c.value,l),{}),t,n+t.indent,r,o,i),ko(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,i),t,n)},"serialize$3"),Qh={serialize:Zh,test:Gh},ed="@@__IMMUTABLE_ITERABLE__@@",td="@@__IMMUTABLE_LIST__@@",nd="@@__IMMUTABLE_KEYED__@@",rd="@@__IMMUTABLE_MAP__@@",ba="@@__IMMUTABLE_ORDERED__@@",od="@@__IMMUTABLE_RECORD__@@",id="@@__IMMUTABLE_SEQ__@@",sd="@@__IMMUTABLE_SET__@@",ad="@@__IMMUTABLE_STACK__@@",Ut=a(e=>`Immutable.${e}`,"getImmutableName"),Xn=a(e=>`[${e}]`,"printAsLeaf"),ln=" ",wa="\u2026";function cd(e,t,n,r,o,i,s){return ++r>t.maxDepth?Xn(Ut(s)):`${Ut(s)+ln}{${un(e.entries(),t,n,r,o,i)}}`}a(cd,"printImmutableEntries");function ld(e){let t=0;return {next(){if(t<e._keys.length){let n=e._keys[t++];return {done:false,value:[n,e.get(n)]}}return {done:true,value:void 0}}}}a(ld,"getRecordEntries");function ud(e,t,n,r,o,i){let s=Ut(e._name||"Record");return ++r>t.maxDepth?Xn(s):`${s+ln}{${un(ld(e),t,n,r,o,i)}}`}a(ud,"printImmutableRecord");function fd(e,t,n,r,o,i){let s=Ut("Seq");return ++r>t.maxDepth?Xn(s):e[nd]?`${s+ln}{${e._iter||e._object?un(e.entries(),t,n,r,o,i):wa}}`:`${s+ln}[${e._iter||e._array||e._collection||e._iterable?Po(e.values(),t,n,r,o,i):wa}]`}a(fd,"printImmutableSeq");function Oo(e,t,n,r,o,i,s){return ++r>t.maxDepth?Xn(Ut(s)):`${Ut(s)+ln}[${Po(e.values(),t,n,r,o,i)}]`}a(Oo,"printImmutableValues");var hd=a((e,t,n,r,o,i)=>e[rd]?cd(e,t,n,r,o,i,e[ba]?"OrderedMap":"Map"):e[td]?Oo(e,t,n,r,o,i,"List"):e[sd]?Oo(e,t,n,r,o,i,e[ba]?"OrderedSet":"Set"):e[ad]?Oo(e,t,n,r,o,i,"Stack"):e[id]?fd(e,t,n,r,o,i):ud(e,t,n,r,o,i),"serialize$2"),dd=a(e=>e&&(e[ed]===true||e[od]===true),"test$2"),pd={serialize:hd,test:dd};function Da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Da,"getDefaultExportFromCjs");var Wn={exports:{}},se={};var Sa;function md(){if(Sa)return se;Sa=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),d=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var S=p.$$typeof;switch(S){case e:switch(p=p.type,p){case n:case o:case r:case c:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case h:case f:return p;case i:return p;default:return S}}case t:return S}}}return a(g,"typeOf"),se.ContextConsumer=i,se.ContextProvider=s,se.Element=e,se.ForwardRef=l,se.Fragment=n,se.Lazy=h,se.Memo=f,se.Portal=t,se.Profiler=o,se.StrictMode=r,se.Suspense=c,se.SuspenseList=u,se.isContextConsumer=function(p){return g(p)===i},se.isContextProvider=function(p){return g(p)===s},se.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},se.isForwardRef=function(p){return g(p)===l},se.isFragment=function(p){return g(p)===n},se.isLazy=function(p){return g(p)===h},se.isMemo=function(p){return g(p)===f},se.isPortal=function(p){return g(p)===t},se.isProfiler=function(p){return g(p)===o},se.isStrictMode=function(p){return g(p)===r},se.isSuspense=function(p){return g(p)===c},se.isSuspenseList=function(p){return g(p)===u},se.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===f||p.$$typeof===s||p.$$typeof===i||p.$$typeof===l||p.$$typeof===d||p.getModuleId!==void 0)},se.typeOf=g,se}a(md,"requireReactIs_production");var ae={};var Ta;function gd(){return Ta||(Ta=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var S=p.$$typeof;switch(S){case t:switch(p=p.type,p){case r:case i:case o:case u:case f:case d:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case m:case h:return p;case s:return p;default:return S}}case n:return S}}}a(e,"typeOf");var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ae.ContextConsumer=s,ae.ContextProvider=l,ae.Element=t,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=m,ae.Memo=h,ae.Portal=n,ae.Profiler=i,ae.StrictMode=o,ae.Suspense=u,ae.SuspenseList=f,ae.isContextConsumer=function(p){return e(p)===s},ae.isContextProvider=function(p){return e(p)===l},ae.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ae.isForwardRef=function(p){return e(p)===c},ae.isFragment=function(p){return e(p)===r},ae.isLazy=function(p){return e(p)===m},ae.isMemo=function(p){return e(p)===h},ae.isPortal=function(p){return e(p)===n},ae.isProfiler=function(p){return e(p)===i},ae.isStrictMode=function(p){return e(p)===o},ae.isSuspense=function(p){return e(p)===u},ae.isSuspenseList=function(p){return e(p)===f},ae.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===u||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===h||p.$$typeof===l||p.$$typeof===s||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},ae.typeOf=e;}()),ae}a(gd,"requireReactIs_development$1");var xa;function yd(){return xa||(xa=1,process.env.NODE_ENV==="production"?Wn.exports=md():Wn.exports=gd()),Wn.exports}a(yd,"requireReactIs$1");var qa=yd(),bd=Da(qa),wd=ka({__proto__:null,default:bd},[qa]),Un={exports:{}},re={};var va;function Sd(){if(va)return re;va=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case e:switch(S=S.type,S){case n:case o:case r:case u:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case s:case c:case m:case h:case i:return S;default:return T}}case t:return T}}}return a(p,"v"),re.ContextConsumer=s,re.ContextProvider=i,re.Element=e,re.ForwardRef=c,re.Fragment=n,re.Lazy=m,re.Memo=h,re.Portal=t,re.Profiler=o,re.StrictMode=r,re.Suspense=u,re.SuspenseList=f,re.isAsyncMode=function(){return false},re.isConcurrentMode=function(){return false},re.isContextConsumer=function(S){return p(S)===s},re.isContextProvider=function(S){return p(S)===i},re.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},re.isForwardRef=function(S){return p(S)===c},re.isFragment=function(S){return p(S)===n},re.isLazy=function(S){return p(S)===m},re.isMemo=function(S){return p(S)===h},re.isPortal=function(S){return p(S)===t},re.isProfiler=function(S){return p(S)===o},re.isStrictMode=function(S){return p(S)===r},re.isSuspense=function(S){return p(S)===u},re.isSuspenseList=function(S){return p(S)===f},re.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===u||S===f||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===h||S.$$typeof===i||S.$$typeof===s||S.$$typeof===c||S.$$typeof===g||S.getModuleId!==void 0)},re.typeOf=p,re}a(Sd,"requireReactIs_production_min");var oe={};var Ea;function Td(){return Ea||(Ea=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),g=false,p=false,S=false,T=false,I=false,P;P=Symbol.for("react.module.reference");function A(B){return !!(typeof B=="string"||typeof B=="function"||B===n||B===o||I||B===r||B===u||B===f||T||B===d||g||p||S||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===h||B.$$typeof===i||B.$$typeof===s||B.$$typeof===c||B.$$typeof===P||B.getModuleId!==void 0))}a(A,"isValidElementType");function $(B){if(typeof B=="object"&&B!==null){var v=B.$$typeof;switch(v){case e:var C=B.type;switch(C){case n:case o:case r:case u:case f:return C;default:var N=C&&C.$$typeof;switch(N){case l:case s:case c:case m:case h:case i:return N;default:return v}}case t:return v}}}a($,"typeOf");var j=s,k=i,O=e,M=c,K=n,_=m,V=h,le=t,U=o,Z=r,R=u,Y=f,L=false,de=false;function Te(B){return L||(L=true,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),false}a(Te,"isAsyncMode");function qe(B){return de||(de=true,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),false}a(qe,"isConcurrentMode");function Ie(B){return $(B)===s}a(Ie,"isContextConsumer");function Oe(B){return $(B)===i}a(Oe,"isContextProvider");function Xe(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}a(Xe,"isElement");function Re(B){return $(B)===c}a(Re,"isForwardRef");function Pe(B){return $(B)===n}a(Pe,"isFragment");function $e(B){return $(B)===m}a($e,"isLazy");function dt(B){return $(B)===h}a(dt,"isMemo");function We(B){return $(B)===t}a(We,"isPortal");function Ot(B){return $(B)===o}a(Ot,"isProfiler");function xe(B){return $(B)===r}a(xe,"isStrictMode");function Ge(B){return $(B)===u}a(Ge,"isSuspense");function qn(B){return $(B)===f}a(qn,"isSuspenseList"),oe.ContextConsumer=j,oe.ContextProvider=k,oe.Element=O,oe.ForwardRef=M,oe.Fragment=K,oe.Lazy=_,oe.Memo=V,oe.Portal=le,oe.Profiler=U,oe.StrictMode=Z,oe.Suspense=R,oe.SuspenseList=Y,oe.isAsyncMode=Te,oe.isConcurrentMode=qe,oe.isContextConsumer=Ie,oe.isContextProvider=Oe,oe.isElement=Xe,oe.isForwardRef=Re,oe.isFragment=Pe,oe.isLazy=$e,oe.isMemo=dt,oe.isPortal=We,oe.isProfiler=Ot,oe.isStrictMode=xe,oe.isSuspense=Ge,oe.isSuspenseList=qn,oe.isValidElementType=A,oe.typeOf=$;}()),oe}a(Td,"requireReactIs_development");var Ia;function xd(){return Ia||(Ia=1,process.env.NODE_ENV==="production"?Un.exports=Sd():Un.exports=Td()),Un.exports}a(xd,"requireReactIs");var Ba=xd(),vd=Da(Ba),Ed=ka({__proto__:null,default:vd},[Ba]),Id=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],$t=Object.fromEntries(Id.map(e=>[e,t=>Ed[e](t)||wd[e](t)]));function za(e,t=[]){if(Array.isArray(e))for(let n of e)za(n,t);else e!=null&&e!==false&&e!==""&&t.push(e);return t}a(za,"getChildren");function Ca(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if($t.isFragment(e))return "React.Fragment";if($t.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if($t.isContextProvider(e))return "Context.Provider";if($t.isContextConsumer(e))return "Context.Consumer";if($t.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if($t.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return "UNDEFINED"}a(Ca,"getType");function Cd(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}a(Cd,"getPropKeys$1");var _d=a((e,t,n,r,o,i)=>++r>t.maxDepth?Mo(Ca(e),t):No(Ca(e),Ao(Cd(e),e.props,t,n+t.indent,r,o,i),ko(za(e.props.children),t,n+t.indent,r,o,i),t,n),"serialize$1"),Od=a(e=>e!=null&&$t.isElement(e),"test$1"),Pd={serialize:_d,test:Od},$d=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Ad(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}a(Ad,"getPropKeys");var kd=a((e,t,n,r,o,i)=>++r>t.maxDepth?Mo(e.type,t):No(e.type,e.props?Ao(Ad(e),e.props,t,n+t.indent,r,o,i):"",e.children?ko(e.children,t,n+t.indent,r,o,i):"",t,n),"serialize"),Nd=a(e=>e&&e.$$typeof===$d,"test"),Md={serialize:kd,test:Nd},Wa=Object.prototype.toString,Rd=Date.prototype.toISOString,jd=Error.prototype.toString,_a=RegExp.prototype.toString;function Jn(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}a(Jn,"getConstructorName");function Fd(e){return typeof window<"u"&&e===window}a(Fd,"isWindow");var Ld=/^Symbol\((.*)\)(.*)$/,Dd=/\n/g,Kn=class extends Error{static{a(this,"PrettyFormatPluginError");}constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name;}};function qd(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}a(qd,"isToStringedArrayType");function Bd(e){return Object.is(e,-0)?"-0":String(e)}a(Bd,"printNumber");function zd(e){return `${e}n`}a(zd,"printBigInt");function Oa(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}a(Oa,"printFunction");function Pa(e){return String(e).replace(Ld,"Symbol($1)")}a(Pa,"printSymbol");function $a(e){return `[${jd.call(e)}]`}a($a,"printError");function Ua(e,t,n,r){if(e===true||e===false)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return Bd(e);if(o==="bigint")return zd(e);if(o==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Oa(e,t);if(o==="symbol")return Pa(e);let i=Wa.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Oa(e,t):i==="[object Symbol]"?Pa(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Rd.call(e):i==="[object Error]"?$a(e):i==="[object RegExp]"?n?_a.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):_a.call(e):e instanceof Error?$a(e):null}a(Ua,"printBasicValue");function Ja(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++r>t.maxDepth,l=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return mt(e.toJSON(),t,n,r,o,true);let c=Wa.call(e);return c==="[object Arguments]"?s?"[Arguments]":`${l?"":"Arguments "}[${Vn(e,t,n,r,o,mt)}]`:qd(c)?s?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Vn(e,t,n,r,o,mt)}]`:c==="[object Map]"?s?"[Map]":`Map {${un(e.entries(),t,n,r,o,mt," => ")}}`:c==="[object Set]"?s?"[Set]":`Set {${Po(e.values(),t,n,r,o,mt)}}`:s||Fd(e)?`[${Jn(e)}]`:`${l||!t.printBasicPrototype&&Jn(e)==="Object"?"":`${Jn(e)} `}{${$o(e,t,n,r,o,mt)}}`}a(Ja,"printComplexValue");var Wd={test:a(e=>e&&e instanceof Error,"test"),serialize(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o,e];let s=++r>t.maxDepth,{message:l,cause:c,...u}=e,f={message:l,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},h=e.name!=="Error"?e.name:Jn(e);return s?`[${h}]`:`${h} {${un(Object.entries(f).values(),t,n,r,o,i)}}`}};function Ud(e){return e.serialize!=null}a(Ud,"isNewPlugin");function Va(e,t,n,r,o,i){let s;try{s=Ud(e)?e.serialize(t,n,r,o,i,mt):e.print(t,l=>mt(l,n,r,o,i),l=>{let c=r+n.indent;return c+l.replaceAll(Dd,`
15
- ${c}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors);}catch(l){throw new Kn(l.message,l.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(Va,"printPlugin");function Ka(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Kn(r.message,r.stack)}return null}a(Ka,"findPlugin");function mt(e,t,n,r,o,i){let s=Ka(t.plugins,e);if(s!==null)return Va(s,e,t,n,r,o);let l=Ua(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:Ja(e,t,n,r,o,i)}a(mt,"printer");var Ro={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Xa=Object.keys(Ro),Qe={callToJSON:true,compareKeys:void 0,escapeRegex:false,escapeString:true,highlight:false,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:false,plugins:[],printBasicPrototype:true,printFunctionName:true,theme:Ro};function Jd(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Qe,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(Jd,"validateOptions");function Vd(){return Xa.reduce((e,t)=>{let n=Ro[t],r=n&&ue[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}a(Vd,"getColorsHighlight");function Kd(){return Xa.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}a(Kd,"getColorsEmpty");function Ga(e){return e?.printFunctionName??Qe.printFunctionName}a(Ga,"getPrintFunctionName");function Ya(e){return e?.escapeRegex??Qe.escapeRegex}a(Ya,"getEscapeRegex");function Ha(e){return e?.escapeString??Qe.escapeString}a(Ha,"getEscapeString");function Aa(e){return {callToJSON:e?.callToJSON??Qe.callToJSON,colors:e?.highlight?Vd():Kd(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Qe.compareKeys,escapeRegex:Ya(e),escapeString:Ha(e),indent:e?.min?"":Xd(e?.indent??Qe.indent),maxDepth:e?.maxDepth??Qe.maxDepth,maxWidth:e?.maxWidth??Qe.maxWidth,min:e?.min??Qe.min,plugins:e?.plugins??Qe.plugins,printBasicPrototype:e?.printBasicPrototype??true,printFunctionName:Ga(e),spacingInner:e?.min?" ":`
16
- `,spacingOuter:e?.min?"":`
17
- `}}a(Aa,"getConfig");function Xd(e){return Array.from({length:e+1}).join(" ")}a(Xd,"createIndent");function je(e,t){if(t&&(Jd(t),t.plugins)){let r=Ka(t.plugins,e);if(r!==null)return Va(r,e,Aa(t),"",0,[])}let n=Ua(e,Ga(t),Ya(t),Ha(t));return n!==null?n:Ja(e,Aa(t),"",0,[])}a(je,"format");var gt={AsymmetricMatcher:jh,DOMCollection:Wh,DOMElement:Qh,Immutable:pd,ReactElement:Pd,ReactTestComponent:Md,Error:Wd};var Za={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"]},Gd={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ct="\u2026";function Yd(e,t){let n=Za[Gd[t]]||Za[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(Yd,"colorise");function Qa({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:l,inspect:f,stylize:u};return h.colors&&(h.stylize=Yd),h}a(Qa,"normaliseOptions");function Hd(e){return e>="\uD800"&&e<="\uDBFF"}a(Hd,"isHighSurrogate");function Ae(e,t,n=ct){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&Hd(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(Ae,"truncate");function we(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",l="",c="";for(let u=0;u<o;u+=1){let f=u+1===e.length,h=u+2===e.length;c=`${ct}(${e.length-u})`;let m=e[u];t.truncate=i-s.length-(f?0:r.length);let d=l||n(m,t)+(f?"":r),g=s.length+d.length,p=g+c.length;if(f&&g>i&&s.length+c.length<=i||!f&&!h&&p>i||(l=f?"":n(e[u+1],t)+(h?"":r),!f&&h&&p>i&&g+l.length>i))break;if(s+=d,!f&&!h&&g+l.length>=i){c=`${ct}(${e.length-u-1})`;break}c="";}return `${s}${c}`}a(we,"inspectList");function Zd(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(Zd,"quoteComplexKey");function lt([e,t],n){return n.truncate-=2,typeof e=="string"?e=Zd(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(lt,"inspectProperty");function jo(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=we(e,t);t.truncate-=r.length;let o="";return n.length&&(o=we(n.map(i=>[i,e[i]]),t,lt)),`[ ${r}${o?`, ${o}`:""} ]`}a(jo,"inspectArray");var Qd=a(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function et(e,t){let n=Qd(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(Ae(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${ct}(${e.length-e[s]+1})`;break}o+=l;}let i="";return r.length&&(i=we(r.map(s=>[s,e[s]]),t,lt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(et,"inspectTypedArray");function Fo(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${Ae(r[1],t.truncate-o.length-1)}`,"date")}a(Fo,"inspectDate");function Gn(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${Ae(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(Gn,"inspectFunction");function ep([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(ep,"inspectMapEntry");function tp(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(tp,"mapToEntries");function Lo(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${we(tp(e),t,ep)} }`)}a(Lo,"inspectMap");var np=Number.isNaN||(e=>e!==e);function Yn(e,t){return np(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Ae(String(e),t.truncate),"number")}a(Yn,"inspectNumber");function Hn(e,t){let n=Ae(e.toString(),t.truncate-1);return n!==ct&&(n+="n"),t.stylize(n,"bigint")}a(Hn,"inspectBigInt");function Do(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${Ae(o,r)}/${n}`,"regexp")}a(Do,"inspectRegExp");function rp(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(rp,"arrayFromSet");function qo(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${we(rp(e),t)} }`)}a(qo,"inspectSet");var ec=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),op={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},ip=16;function ap(e){return op[e]||`\\u${`0000${e.charCodeAt(0).toString(ip)}`.slice(-4)}`}a(ap,"escape");function Zn(e,t){return ec.test(e)&&(e=e.replace(ec,ap)),t.stylize(`'${Ae(e,t.truncate-2)}'`,"string")}a(Zn,"inspectString");function Qn(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(Qn,"inspectSymbol");var cp=a(()=>"Promise{\u2026}","getPromiseValue"),tc=cp;function At(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=we(n.map(l=>[l,e[l]]),t,lt),i=we(r.map(l=>[l,e[l]]),t,lt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(At,"inspectObject");var Bo=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function zo(e,t){let n="";return Bo&&Bo in e&&(n=e[Bo]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${At(e,t)}`}a(zo,"inspectClass");function Wo(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${we(e,t)} ]`)}a(Wo,"inspectArguments");var lp=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Uo(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>lp.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=Ae(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=we(n.map(s=>[s,e[s]]),t,lt);return `${r}${o}${i?` { ${i} }`:""}`}a(Uo,"inspectObject");function up([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(up,"inspectAttribute");function er(e,t){return we(e,t,fp,`
18
- `)}a(er,"inspectNodeCollection");function fp(e,t){switch(e.nodeType){case 1:return tr(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(fp,"inspectNode");function tr(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let l="";n.length>0&&(l+=" ",l+=we(n.map(f=>[f,e.getAttribute(f)]),t,up," ")),t.truncate-=l.length;let c=t.truncate,u=er(e.children,t);return u&&u.length>c&&(u=`${ct}(${e.children.length})`),`${o}${l}${i}${u}${s}`}a(tr,"inspectHTML");var hp=typeof Symbol=="function"&&typeof Symbol.for=="function",Jo=hp?Symbol.for("chai/inspect"):"@@chai/inspect",Vo=Symbol.for("nodejs.util.inspect.custom"),nc=new WeakMap,rc={},oc={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Yn,Number:Yn,bigint:Hn,BigInt:Hn,string:Zn,String:Zn,function:Gn,Function:Gn,symbol:Qn,Symbol:Qn,Array:jo,Date:Fo,Map:Lo,Set:qo,RegExp:Do,Promise:tc,WeakSet:a((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Wo,Int8Array:et,Uint8Array:et,Uint8ClampedArray:et,Int16Array:et,Uint16Array:et,Int32Array:et,Uint32Array:et,Float32Array:et,Float64Array:et,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Uo,HTMLCollection:er,NodeList:er},dp=a((e,t,n)=>Jo in e&&typeof e[Jo]=="function"?e[Jo](t):Vo in e&&typeof e[Vo]=="function"?e[Vo](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&nc.has(e.constructor)?nc.get(e.constructor)(e,t):rc[n]?rc[n](e,t):"","inspectCustom"),pp=Object.prototype.toString;function nr(e,t={}){let n=Qa(t,nr),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=pp.call(e).slice(8,-1)),o in oc)return oc[o](e,n);if(r&&e){let s=dp(e,n,o);if(s)return typeof s=="string"?s:nr(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?At(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?tr(e,n):"constructor"in e?e.constructor!==Object?zo(e,n):At(e,n):e===Object(e)?At(e,n):n.stylize(String(e),o)}a(nr,"inspect");var{AsymmetricMatcher:gp,DOMCollection:yp,DOMElement:bp,Immutable:wp,ReactElement:Sp,ReactTestComponent:Tp}=gt,ic=[Tp,Sp,bp,yp,wp,gp];function Ce(e,t=10,{maxLength:n,...r}={}){let o=n??1e4,i;try{i=je(e,{maxDepth:t,escapeString:false,plugins:ic,...r});}catch{i=je(e,{callToJSON:false,maxDepth:t,escapeString:false,plugins:ic,...r});}return i.length>=o&&t>1?Ce(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):i}a(Ce,"stringify");var xp=/%[sdjifoOc%]/g;function fn(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(kt(e[s],{depth:0,colors:false}));return i.join(" ")}let t=e.length,n=1,r=e[0],o=String(r).replace(xp,i=>{if(i==="%%")return "%";if(n>=t)return i;switch(i){case "%s":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():kt(s,{depth:0,colors:false}):String(s)}case "%d":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case "%i":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case "%f":return Number.parseFloat(String(e[n++])).toString();case "%o":return kt(e[n++],{showHidden:true,showProxy:true});case "%O":return kt(e[n++]);case "%c":return n++,"";case "%j":try{return JSON.stringify(e[n++])}catch(s){let l=s.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return "[Circular]";throw s}default:return i}});for(let i=e[n];n<t;i=e[++n])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${kt(i)}`;return o}a(fn,"format");function kt(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),nr(e,t)}a(kt,"inspect");function Ko(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);let n=kt(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r==="[object Function]"){let o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else {if(r==="[object Array]")return `[ Array(${e.length}) ]`;if(r==="[object Object]"){let o=Object.keys(e);return `{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}a(Ko,"objDisplay");function sc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(sc,"getDefaultExportFromCjs");function Xo(e){let{message:t="$$stack trace error",stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=l=>l.stack;let s=new Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,s}a(Xo,"createSimpleStackTrace");function Ne(e,t,n){let r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}a(Ne,"assertTypes");function or(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}a(or,"toArray");function ut(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(ut,"isObject");function vp(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}a(vp,"isFinalObj");function yt(e){return Object.prototype.toString.apply(e).slice(8,-1)}a(yt,"getType");function Ep(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n);}a(Ep,"collectOwnProperties");function ir(e){let t=new Set;return vp(e)?[]:(Ep(e,t),Array.from(t))}a(ir,"getOwnProperties");var ac={forceWritable:false};function sr(e,t=ac){return rr(e,new WeakMap,t)}a(sr,"deepClone");function rr(e,t,n=ac){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=rr(e[r],t,n);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=ir(e);for(let s of i){let l=Object.getOwnPropertyDescriptor(e,s);if(!l)continue;let c=rr(e[s],t,n);n.forceWritable?Object.defineProperty(o,s,{enumerable:l.enumerable,configurable:true,writable:true,value:c}):"get"in l?Object.defineProperty(o,s,{...l,get(){return c}}):Object.defineProperty(o,s,{...l,value:c});}return o}return e}a(rr,"clone");function Go(){}a(Go,"noop");function ar(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let i of r)if(o=new Object(o)[i],o===void 0)return n;return o}a(ar,"objectAttr");function cr(){let e=null,t=null,n=new Promise((r,o)=>{e=r,t=o;});return n.resolve=e,n.reject=t,n}a(cr,"createDefer");function Yo(e){if(!Number.isNaN(e))return false;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}a(Yo,"isNegativeNaN");var Ho,cc;function Ip(){if(cc)return Ho;cc=1;var e,t,n,r,o,i,s,l,c,u,f,h,m,d,g,p,S,T,I;return m=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,h=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,g=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?: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,p=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,I=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,r=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,T=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,S=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(l.source),Ho=a(function*(P,{jsx:A=false}={}){var $,j,k,O,M,K,_,V,le,U,Z,R,Y,L;for({length:K}=P,O=0,M="",L=[{tag:"JS"}],$=[],Z=0,R=false;O<K;){switch(V=L[L.length-1],V.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(P[O]==="/"&&(T.test(M)||i.test(M))&&(m.lastIndex=O,_=m.exec(P))){O=m.lastIndex,M=_[0],R=true,yield {type:"RegularExpressionLiteral",value:_[0],closed:_[1]!==void 0&&_[1]!=="\\"};continue}if(h.lastIndex=O,_=h.exec(P)){switch(Y=_[0],le=h.lastIndex,U=Y,Y){case "(":M==="?NonExpressionParenKeyword"&&L.push({tag:"JSNonExpressionParen",nesting:Z}),Z++,R=false;break;case ")":Z--,R=true,V.tag==="JSNonExpressionParen"&&Z===V.nesting&&(L.pop(),U="?NonExpressionParenEnd",R=false);break;case "{":h.lastIndex=0,k=!S.test(M)&&(T.test(M)||i.test(M)),$.push(k),R=false;break;case "}":switch(V.tag){case "InterpolationInTemplate":if($.length===V.nesting){p.lastIndex=O,_=p.exec(P),O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",R=false,yield {type:"TemplateMiddle",value:_[0]}):(L.pop(),R=true,yield {type:"TemplateTail",value:_[0],closed:_[1]==="`"});continue}break;case "InterpolationInJSX":if($.length===V.nesting){L.pop(),O+=1,M="}",yield {type:"JSXPunctuator",value:"}"};continue}}R=$.pop(),U=R?"?ExpressionBraceEnd":"}";break;case "]":R=true;break;case "++":case "--":U=R?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(A&&(T.test(M)||i.test(M))){L.push({tag:"JSXTag"}),O+=1,M="<",yield {type:"JSXPunctuator",value:Y};continue}R=false;break;default:R=false;}O=le,M=U,yield {type:"Punctuator",value:Y};continue}if(e.lastIndex=O,_=e.exec(P)){switch(O=e.lastIndex,U=_[0],_[0]){case "for":case "if":case "while":case "with":M!=="."&&M!=="?."&&(U="?NonExpressionParenKeyword");}M=U,R=!i.test(_[0]),yield {type:_[1]==="#"?"PrivateIdentifier":"IdentifierName",value:_[0]};continue}if(g.lastIndex=O,_=g.exec(P)){O=g.lastIndex,M=_[0],R=true,yield {type:"StringLiteral",value:_[0],closed:_[2]!==void 0};continue}if(f.lastIndex=O,_=f.exec(P)){O=f.lastIndex,M=_[0],R=true,yield {type:"NumericLiteral",value:_[0]};continue}if(p.lastIndex=O,_=p.exec(P)){O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",L.push({tag:"InterpolationInTemplate",nesting:$.length}),R=false,yield {type:"TemplateHead",value:_[0]}):(R=true,yield {type:"NoSubstitutionTemplate",value:_[0],closed:_[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(n.lastIndex=O,_=n.exec(P)){switch(O=n.lastIndex,U=_[0],_[0]){case "<":L.push({tag:"JSXTag"});break;case ">":L.pop(),M==="/"||V.tag==="JSXTagEnd"?(U="?JSX",R=true):L.push({tag:"JSXChildren"});break;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),U="?InterpolationInJSX",R=false;break;case "/":M==="<"&&(L.pop(),L[L.length-1].tag==="JSXChildren"&&L.pop(),L.push({tag:"JSXTagEnd"}));}M=U,yield {type:"JSXPunctuator",value:_[0]};continue}if(t.lastIndex=O,_=t.exec(P)){O=t.lastIndex,M=_[0],yield {type:"JSXIdentifier",value:_[0]};continue}if(r.lastIndex=O,_=r.exec(P)){O=r.lastIndex,M=_[0],yield {type:"JSXString",value:_[0],closed:_[2]!==void 0};continue}break;case "JSXChildren":if(o.lastIndex=O,_=o.exec(P)){O=o.lastIndex,M=_[0],yield {type:"JSXText",value:_[0]};continue}switch(P[O]){case "<":L.push({tag:"JSXTag"}),O++,M="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),O++,M="?InterpolationInJSX",R=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(I.lastIndex=O,_=I.exec(P)){O=I.lastIndex,yield {type:"WhiteSpace",value:_[0]};continue}if(l.lastIndex=O,_=l.exec(P)){O=l.lastIndex,R=false,s.test(M)&&(M="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:_[0]};continue}if(c.lastIndex=O,_=c.exec(P)){O=c.lastIndex,u.test(_[0])&&(R=false,s.test(M)&&(M="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:_[0],closed:_[1]!==void 0};continue}if(d.lastIndex=O,_=d.exec(P)){O=d.lastIndex,R=false,yield {type:"SingleLineComment",value:_[0]};continue}j=String.fromCodePoint(P.codePointAt(O)),O+=j.length,M=j,R=false,yield {type:V.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:j};}},"jsTokens_1"),Ho}a(Ip,"requireJsTokens");Ip();var uc={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(uc.keyword);new Set(uc.strict);var lc=Symbol("vitest:SAFE_TIMERS");function ft(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}=globalThis[lc]||globalThis,{nextTick:l}=globalThis[lc]||globalThis.process||{nextTick:a(c=>c(),"nextTick")};return {nextTick:l,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}}a(ft,"getSafeTimers");var ke=-1,_e=1,pe=0,fe=class{static{a(this,"Diff");}0;1;constructor(t,n){this[0]=t,this[1]=n;}};function Cp(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(i,o)===t.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(Cp,"diff_commonPrefix");function Cc(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(Cc,"diff_commonSuffix");function fc(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let o=Math.min(n,r);if(e===t)return o;let i=0,s=1;for(;;){let l=e.substring(o-s),c=t.indexOf(l);if(c===-1)return i;s+=c,(c===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}}a(fc,"diff_commonOverlap_");function _p(e){let t=false,n=[],r=0,o=null,i=0,s=0,l=0,c=0,u=0;for(;i<e.length;)e[i][0]===pe?(n[r++]=i,s=c,l=u,c=0,u=0,o=e[i][1]):(e[i][0]===_e?c+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(c,u)&&(e.splice(n[r-1],0,new fe(ke,o)),e[n[r-1]+1][0]=_e,r--,r--,i=r>0?n[r-1]:-1,s=0,l=0,c=0,u=0,o=null,t=true)),i++;for(t&&_c(e),$p(e),i=1;i<e.length;){if(e[i-1][0]===ke&&e[i][0]===_e){let f=e[i-1][1],h=e[i][1],m=fc(f,h),d=fc(h,f);m>=d?(m>=f.length/2||m>=h.length/2)&&(e.splice(i,0,new fe(pe,h.substring(0,m))),e[i-1][1]=f.substring(0,f.length-m),e[i+1][1]=h.substring(m),i++):(d>=f.length/2||d>=h.length/2)&&(e.splice(i,0,new fe(pe,f.substring(0,d))),e[i-1][0]=_e,e[i-1][1]=h.substring(0,h.length-d),e[i+1][0]=ke,e[i+1][1]=f.substring(d),i++),i++;}i++;}}a(_p,"diff_cleanupSemantic");var hc=/[^a-z0-9]/i,dc=/\s/,pc=/[\r\n]/,Op=/\n\r?\n$/,Pp=/^\r?\n\r?\n/;function $p(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===pe&&e[t+1][0]===pe){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],i=Cc(n,r);if(i){let f=r.substring(r.length-i);n=n.substring(0,n.length-i),r=f+r.substring(0,r.length-i),o=f+o;}let s=n,l=r,c=o,u=lr(n,r)+lr(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let f=lr(n,r)+lr(r,o);f>=u&&(u=f,s=n,l=r,c=o);}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=l,c?e[t+1][1]=c:(e.splice(t+1,1),t--));}t++;}}a($p,"diff_cleanupSemanticLossless");function _c(e){e.push(new fe(pe,""));let t=0,n=0,r=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case _e:r++,i+=e[t][1],t++;break;case ke:n++,o+=e[t][1],t++;break;case pe:n+r>1?(n!==0&&r!==0&&(s=Cp(i,o),s!==0&&(t-n-r>0&&e[t-n-r-1][0]===pe?e[t-n-r-1][1]+=i.substring(0,s):(e.splice(0,0,new fe(pe,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=Cc(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=n+r,e.splice(t,n+r),o.length&&(e.splice(t,0,new fe(ke,o)),t++),i.length&&(e.splice(t,0,new fe(_e,i)),t++),t++):t!==0&&e[t-1][0]===pe?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=false;for(t=1;t<e.length-1;)e[t-1][0]===pe&&e[t+1][0]===pe&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=true):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=true)),t++;l&&_c(e);}a(_c,"diff_cleanupMerge");function lr(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(hc),i=r.match(hc),s=o&&n.match(dc),l=i&&r.match(dc),c=s&&n.match(pc),u=l&&r.match(pc),f=c&&e.match(Op),h=u&&t.match(Pp);return f||h?5:c||u?4:o&&!s&&l?3:s||l?2:o||i?1:0}a(lr,"diff_cleanupSemanticScore_");var Oc="Compared values have no visual difference.",Ap="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",ur={},mc;function kp(){if(mc)return ur;mc=1,Object.defineProperty(ur,"__esModule",{value:true}),ur.default=m;let e="diff-sequences",t=0,n=a((d,g,p,S,T)=>{let I=0;for(;d<g&&p<S&&T(d,p);)d+=1,p+=1,I+=1;return I},"countCommonItemsF"),r=a((d,g,p,S,T)=>{let I=0;for(;d<=g&&p<=S&&T(g,S);)g-=1,S-=1,I+=1;return I},"countCommonItemsR"),o=a((d,g,p,S,T,I,P)=>{let A=0,$=-d,j=I[A],k=j;I[A]+=n(j+1,g,S+j-$+1,p,T);let O=d<P?d:P;for(A+=1,$+=2;A<=O;A+=1,$+=2){if(A!==d&&k<I[A])j=I[A];else if(j=k+1,g<=j)return A-1;k=I[A],I[A]=j+n(j+1,g,S+j-$+1,p,T);}return P},"extendPathsF"),i=a((d,g,p,S,T,I,P)=>{let A=0,$=d,j=I[A],k=j;I[A]-=r(g,j-1,p,S+j-$-1,T);let O=d<P?d:P;for(A+=1,$-=2;A<=O;A+=1,$-=2){if(A!==d&&I[A]<k)j=I[A];else if(j=k-1,j<g)return A-1;k=I[A],I[A]=j-r(g,j-1,p,S+j-$-1,T);}return P},"extendPathsR"),s=a((d,g,p,S,T,I,P,A,$,j,k)=>{let O=S-g,M=p-g,_=T-S-M,V=-_-(d-1),le=-_+(d-1),U=t,Z=d<A?d:A;for(let R=0,Y=-d;R<=Z;R+=1,Y+=2){let L=R===0||R!==d&&U<P[R],de=L?P[R]:U,Te=L?de:de+1,qe=O+Te-Y,Ie=n(Te+1,p,qe+1,T,I),Oe=Te+Ie;if(U=P[R],P[R]=Oe,V<=Y&&Y<=le){let Xe=(d-1-(Y+_))/2;if(Xe<=j&&$[Xe]-1<=Oe){let Re=O+de-(L?Y+1:Y-1),Pe=r(g,de,S,Re,I),$e=de-Pe,dt=Re-Pe,We=$e+1,Ot=dt+1;k.nChangePreceding=d-1,d-1===We+Ot-g-S?(k.aEndPreceding=g,k.bEndPreceding=S):(k.aEndPreceding=We,k.bEndPreceding=Ot),k.nCommonPreceding=Pe,Pe!==0&&(k.aCommonPreceding=We,k.bCommonPreceding=Ot),k.nCommonFollowing=Ie,Ie!==0&&(k.aCommonFollowing=Te+1,k.bCommonFollowing=qe+1);let xe=Oe+1,Ge=qe+Ie+1;return k.nChangeFollowing=d-1,d-1===p+T-xe-Ge?(k.aStartFollowing=p,k.bStartFollowing=T):(k.aStartFollowing=xe,k.bStartFollowing=Ge),true}}}return false},"extendOverlappablePathsF"),l=a((d,g,p,S,T,I,P,A,$,j,k)=>{let O=T-p,M=p-g,_=T-S-M,V=_-d,le=_+d,U=t,Z=d<j?d:j;for(let R=0,Y=d;R<=Z;R+=1,Y-=2){let L=R===0||R!==d&&$[R]<U,de=L?$[R]:U,Te=L?de:de-1,qe=O+Te-Y,Ie=r(g,Te-1,S,qe-1,I),Oe=Te-Ie;if(U=$[R],$[R]=Oe,V<=Y&&Y<=le){let Xe=(d+(Y-_))/2;if(Xe<=A&&Oe-1<=P[Xe]){let Re=qe-Ie;if(k.nChangePreceding=d,d===Oe+Re-g-S?(k.aEndPreceding=g,k.bEndPreceding=S):(k.aEndPreceding=Oe,k.bEndPreceding=Re),k.nCommonPreceding=Ie,Ie!==0&&(k.aCommonPreceding=Oe,k.bCommonPreceding=Re),k.nChangeFollowing=d-1,d===1)k.nCommonFollowing=0,k.aStartFollowing=p,k.bStartFollowing=T;else {let Pe=O+de-(L?Y-1:Y+1),$e=n(de,p,Pe,T,I);k.nCommonFollowing=$e,$e!==0&&(k.aCommonFollowing=de,k.bCommonFollowing=Pe);let dt=de+$e,We=Pe+$e;d-1===p+T-dt-We?(k.aStartFollowing=p,k.bStartFollowing=T):(k.aStartFollowing=dt,k.bStartFollowing=We);}return true}}}return false},"extendOverlappablePathsR"),c=a((d,g,p,S,T,I,P,A,$)=>{let j=S-g,k=T-p,O=p-g,M=T-S,K=M-O,_=O,V=O;if(P[0]=g-1,A[0]=p,K%2===0){let le=(d||K)/2,U=(O+M)/2;for(let Z=1;Z<=U;Z+=1)if(_=o(Z,p,T,j,I,P,_),Z<le)V=i(Z,g,S,k,I,A,V);else if(l(Z,g,p,S,T,I,P,_,A,V,$))return}else {let le=((d||K)+1)/2,U=(O+M+1)/2,Z=1;for(_=o(Z,p,T,j,I,P,_),Z+=1;Z<=U;Z+=1)if(V=i(Z-1,g,S,k,I,A,V),Z<le)_=o(Z,p,T,j,I,P,_);else if(s(Z,g,p,S,T,I,P,_,A,V,$))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${p} bStart=${S} bEnd=${T}`)},"divide"),u=a((d,g,p,S,T,I,P,A,$,j)=>{if(T-S<p-g){if(I=!I,I&&P.length===1){let{foundSubsequence:Oe,isCommon:Xe}=P[0];P[1]={foundSubsequence:a((Re,Pe,$e)=>{Oe(Re,$e,Pe);},"foundSubsequence"),isCommon:a((Re,Pe)=>Xe(Pe,Re),"isCommon")};}let qe=g,Ie=p;g=S,p=T,S=qe,T=Ie;}let{foundSubsequence:k,isCommon:O}=P[I?1:0];c(d,g,p,S,T,O,A,$,j);let{nChangePreceding:M,aEndPreceding:K,bEndPreceding:_,nCommonPreceding:V,aCommonPreceding:le,bCommonPreceding:U,nCommonFollowing:Z,aCommonFollowing:R,bCommonFollowing:Y,nChangeFollowing:L,aStartFollowing:de,bStartFollowing:Te}=j;g<K&&S<_&&u(M,g,K,S,_,I,P,A,$,j),V!==0&&k(V,le,U),Z!==0&&k(Z,R,Y),de<p&&Te<T&&u(L,de,p,Te,T,I,P,A,$,j);},"findSubsequences"),f=a((d,g)=>{if(typeof g!="number")throw new TypeError(`${e}: ${d} typeof ${typeof g} is not a number`);if(!Number.isSafeInteger(g))throw new RangeError(`${e}: ${d} value ${g} is not a safe integer`);if(g<0)throw new RangeError(`${e}: ${d} value ${g} is a negative integer`)},"validateLength"),h=a((d,g)=>{let p=typeof g;if(p!=="function")throw new TypeError(`${e}: ${d} typeof ${p} is not a function`)},"validateCallback");function m(d,g,p,S){f("aLength",d),f("bLength",g),h("isCommon",p),h("foundSubsequence",S);let T=n(0,d,0,g,p);if(T!==0&&S(T,0,0),d!==T||g!==T){let I=T,P=T,A=r(I,d-1,P,g-1,p),$=d-A,j=g-A,k=T+A;d!==k&&g!==k&&u(0,I,$,P,j,false,[{foundSubsequence:S,isCommon:p}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),A!==0&&S(A,$,j);}}return a(m,"diffSequence"),ur}a(kp,"requireBuild");var Np=kp(),Pc=sc(Np);function Mp(e,t){return e.replace(/\s+$/,n=>t(n))}a(Mp,"formatTrailingSpaces");function oi(e,t,n,r,o,i){return e.length!==0?n(`${r} ${Mp(e,o)}`):r!==" "?n(r):t&&i.length!==0?n(`${r} ${i}`):""}a(oi,"printDiffLine");function $c(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return oi(e,t,n,r,o,i)}a($c,"printDeleteLine");function Ac(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return oi(e,t,n,r,o,i)}a(Ac,"printInsertLine");function kc(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return oi(e,t,n,r,o,i)}a(kc,"printCommonLine");function gc(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}a(gc,"createPatchMark");function Rp(e,t){let n=e.length,r=t.contextLines,o=r+r,i=n,s=false,l=0,c=0;for(;c!==n;){let A=c;for(;c!==n&&e[c][0]===pe;)c+=1;if(A!==c)if(A===0)c>r&&(i-=c-r,s=true);else if(c===n){let $=c-A;$>r&&(i-=$-r,s=true);}else {let $=c-A;$>o&&(i-=$-o,l+=1);}for(;c!==n&&e[c][0]!==pe;)c+=1;}let u=l!==0||s;l!==0?i+=l+1:s&&(i+=1);let f=i-1,h=[],m=0;u&&h.push("");let d=0,g=0,p=0,S=0,T=a(A=>{let $=h.length;h.push(kc(A,$===0||$===f,t)),p+=1,S+=1;},"pushCommonLine"),I=a(A=>{let $=h.length;h.push($c(A,$===0||$===f,t)),p+=1;},"pushDeleteLine"),P=a(A=>{let $=h.length;h.push(Ac(A,$===0||$===f,t)),S+=1;},"pushInsertLine");for(c=0;c!==n;){let A=c;for(;c!==n&&e[c][0]===pe;)c+=1;if(A!==c)if(A===0){c>r&&(A=c-r,d=A,g=A,p=d,S=g);for(let $=A;$!==c;$+=1)T(e[$][1]);}else if(c===n){let $=c-A>r?A+r:c;for(let j=A;j!==$;j+=1)T(e[j][1]);}else {let $=c-A;if($>o){let j=A+r;for(let O=A;O!==j;O+=1)T(e[O][1]);h[m]=gc(d,p,g,S,t),m=h.length,h.push("");let k=$-o;d=p+k,g=S+k,p=d,S=g;for(let O=c-r;O!==c;O+=1)T(e[O][1]);}else for(let j=A;j!==c;j+=1)T(e[j][1]);}for(;c!==n&&e[c][0]===ke;)I(e[c][1]),c+=1;for(;c!==n&&e[c][0]===_e;)P(e[c][1]),c+=1;}return u&&(h[m]=gc(d,p,g,S,t)),h.join(`
19
- `)}a(Rp,"joinAlignedDiffsNoExpand");function jp(e,t){return e.map((n,r,o)=>{let i=n[1],s=r===0||r===o.length-1;switch(n[0]){case ke:return $c(i,s,t);case _e:return Ac(i,s,t);default:return kc(i,s,t)}}).join(`
20
- `)}a(jp,"joinAlignedDiffsExpand");var Zo=a(e=>e,"noColor"),Nc=5,Fp=0;function Lp(){return {aAnnotation:"Expected",aColor:ue.green,aIndicator:"-",bAnnotation:"Received",bColor:ue.red,bIndicator:"+",changeColor:ue.inverse,changeLineTrailingSpaceColor:Zo,commonColor:ue.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Zo,compareKeys:void 0,contextLines:Nc,emptyFirstOrLastLinePlaceholder:"",expand:false,includeChangeCounts:false,omitAnnotationLines:false,patchColor:ue.yellow,printBasicPrototype:false,truncateThreshold:Fp,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Zo}}a(Lp,"getDefaultOptions");function Dp(e){return e&&typeof e=="function"?e:void 0}a(Dp,"getCompareKeys");function qp(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Nc}a(qp,"getContextLines");function Nt(e={}){return {...Lp(),...e,compareKeys:Dp(e.compareKeys),contextLines:qp(e.contextLines)}}a(Nt,"normalizeDiffOptions");function Jt(e){return e.length===1&&e[0].length===0}a(Jt,"isEmptyString");function Bp(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case ke:t+=1;break;case _e:n+=1;break}}),{a:t,b:n}}a(Bp,"countChanges");function zp({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:l},c){if(l)return "";let u="",f="";if(s){let d=String(c.a),g=String(c.b),p=r.length-e.length,S=" ".repeat(Math.max(0,p)),T=" ".repeat(Math.max(0,-p)),I=g.length-d.length,P=" ".repeat(Math.max(0,I)),A=" ".repeat(Math.max(0,-I));u=`${S} ${n} ${P}${d}`,f=`${T} ${i} ${A}${g}`;}let h=`${n} ${e}${u}`,m=`${i} ${r}${f}`;return `${t(h)}
21
- ${o(m)}
22
-
23
- `}a(zp,"printAnnotation");function ii(e,t,n){return zp(n,Bp(e))+(n.expand?jp(e,n):Rp(e,n))+(t?n.truncateAnnotationColor(`
24
- ${n.truncateAnnotation}`):"")}a(ii,"printDiffLines");function hr(e,t,n){let r=Nt(n),[o,i]=Mc(Jt(e)?[]:e,Jt(t)?[]:t,r);return ii(o,i,r)}a(hr,"diffLinesUnified");function Wp(e,t,n,r,o){if(Jt(e)&&Jt(n)&&(e=[],n=[]),Jt(t)&&Jt(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return hr(e,t,o);let[i,s]=Mc(n,r,o),l=0,c=0;return i.forEach(u=>{switch(u[0]){case ke:u[1]=e[l],l+=1;break;case _e:u[1]=t[c],c+=1;break;default:u[1]=t[c],l+=1,c+=1;}}),ii(i,s,Nt(o))}a(Wp,"diffLinesUnified2");function Mc(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=r?Math.min(e.length,o):e.length,s=r?Math.min(t.length,o):t.length,l=i!==e.length||s!==t.length,c=a((d,g)=>e[d]===t[g],"isCommon"),u=[],f=0,h=0;for(Pc(i,s,c,a((d,g,p)=>{for(;f!==g;f+=1)u.push(new fe(ke,e[f]));for(;h!==p;h+=1)u.push(new fe(_e,t[h]));for(;d!==0;d-=1,f+=1,h+=1)u.push(new fe(pe,t[h]));},"foundSubsequence"));f!==i;f+=1)u.push(new fe(ke,e[f]));for(;h!==s;h+=1)u.push(new fe(_e,t[h]));return [u,l]}a(Mc,"diffLinesRaw");function yc(e){if(e===void 0)return "undefined";if(e===null)return "null";if(Array.isArray(e))return "array";if(typeof e=="boolean")return "boolean";if(typeof e=="function")return "function";if(typeof e=="number")return "number";if(typeof e=="string")return "string";if(typeof e=="bigint")return "bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return "regexp";if(e.constructor===Map)return "map";if(e.constructor===Set)return "set";if(e.constructor===Date)return "date"}return "object"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}a(yc,"getType");function bc(e){return e.includes(`\r
25
- `)?`\r
26
- `:`
27
- `}a(bc,"getNewLineSymbol");function Up(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=e.length,s=t.length;if(r){let d=e.includes(`
28
- `),g=t.includes(`
29
- `),p=bc(e),S=bc(t),T=d?`${e.split(p,o).join(p)}
30
- `:e,I=g?`${t.split(S,o).join(S)}
31
- `:t;i=T.length,s=I.length;}let l=i!==e.length||s!==t.length,c=a((d,g)=>e[d]===t[g],"isCommon"),u=0,f=0,h=[];return Pc(i,s,c,a((d,g,p)=>{u!==g&&h.push(new fe(ke,e.slice(u,g))),f!==p&&h.push(new fe(_e,t.slice(f,p))),u=g+d,f=p+d,h.push(new fe(pe,t.slice(p,f)));},"foundSubsequence")),u!==i&&h.push(new fe(ke,e.slice(u))),f!==s&&h.push(new fe(_e,t.slice(f))),[h,l]}a(Up,"diffStrings");function Jp(e,t,n){return t.reduce((r,o)=>r+(o[0]===pe?o[1]:o[0]===e&&o[1].length!==0?n(o[1]):""),"")}a(Jp,"concatenateRelevantDiffs");var fr=class{static{a(this,"ChangeBuffer");}op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n;}pushSubstring(t){this.pushDiff(new fe(this.op,t));}pushLine(){this.lines.push(this.line.length!==1?new fe(this.op,Jp(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new fe(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t);}align(t){let n=t[1];if(n.includes(`
32
- `)){let r=n.split(`
33
- `),o=r.length-1;r.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i);});}else this.pushDiff(t);}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0;}},ei=class{static{a(this,"CommonBuffer");}deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[];}pushDiffCommonLine(t){this.lines.push(t);}pushDiffChangeLines(t){let n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t);}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines);}align(t){let n=t[0],r=t[1];if(r.includes(`
34
- `)){let o=r.split(`
35
- `),i=o.length-1;o.forEach((s,l)=>{if(l===0){let c=new fe(n,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(c)):(this.pushDiffChangeLines(c),this.flushChangeLines());}else l<i?this.pushDiffCommonLine(new fe(n,s)):s.length!==0&&this.pushDiffChangeLines(new fe(n,s));});}else this.pushDiffChangeLines(t);}getLines(){return this.flushChangeLines(),this.lines}};function Vp(e,t){let n=new fr(ke,t),r=new fr(_e,t),o=new ei(n,r);return e.forEach(i=>{switch(i[0]){case ke:n.align(i);break;case _e:r.align(i);break;default:o.align(i);}}),o.getLines()}a(Vp,"getAlignedDiffs");function Kp(e,t){if(t){let n=e.length-1;return e.some((r,o)=>r[0]===pe&&(o!==n||r[1]!==`
36
- `))}return e.some(n=>n[0]===pe)}a(Kp,"hasCommonDiff");function Xp(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
37
- `)||t.includes(`
38
- `),[o,i]=Rc(r?`${e}
39
- `:e,r?`${t}
40
- `:t,true,n);if(Kp(o,r)){let s=Nt(n),l=Vp(o,s.changeColor);return ii(l,i,s)}}return hr(e.split(`
41
- `),t.split(`
42
- `),n)}a(Xp,"diffStringsUnified");function Rc(e,t,n,r){let[o,i]=Up(e,t,r);return n&&_p(o),[o,i]}a(Rc,"diffStringsRaw");function ti(e,t){let{commonColor:n}=Nt(t);return n(e)}a(ti,"getCommonMessage");var{AsymmetricMatcher:Gp,DOMCollection:Yp,DOMElement:Hp,Immutable:Zp,ReactElement:Qp,ReactTestComponent:em}=gt,jc=[em,Qp,Hp,Yp,Zp,Gp,gt.Error],ni={maxDepth:20,plugins:jc},Fc={callToJSON:false,maxDepth:8,plugins:jc};function Mt(e,t,n){if(Object.is(e,t))return "";let r=yc(e),o=r,i=false;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==yc(t)){let S=function(P){return P.length<=p?P:`${P.slice(0,p)}...`};a(S,"truncate");let{aAnnotation:s,aColor:l,aIndicator:c,bAnnotation:u,bColor:f,bIndicator:h}=Nt(n),m=ri(Fc,n),d=je(e,m),g=je(t,m),p=1e5;d=S(d),g=S(g);let T=`${l(`${c} ${s}:`)}
43
- ${d}`,I=`${f(`${h} ${u}:`)}
44
- ${g}`;return `${T}
45
-
46
- ${I}`}if(!i)switch(r){case "string":return hr(e.split(`
47
- `),t.split(`
48
- `),n);case "boolean":case "number":return tm(e,t,n);case "map":return Qo(wc(e),wc(t),n);case "set":return Qo(Sc(e),Sc(t),n);default:return Qo(e,t,n)}}a(Mt,"diff");function tm(e,t,n){let r=je(e,ni),o=je(t,ni);return r===o?"":hr(r.split(`
49
- `),o.split(`
50
- `),n)}a(tm,"comparePrimitive");function wc(e){return new Map(Array.from(e.entries()).sort())}a(wc,"sortMap");function Sc(e){return new Set(Array.from(e.values()).sort())}a(Sc,"sortSet");function Qo(e,t,n){let r,o=false;try{let s=ri(ni,n);r=Tc(e,t,s,n);}catch{o=true;}let i=ti(Oc,n);if(r===void 0||r===i){let s=ri(Fc,n);r=Tc(e,t,s,n),r!==i&&!o&&(r=`${ti(Ap,n)}
51
-
52
- ${r}`);}return r}a(Qo,"compareObjects");function ri(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=Nt(t);return {...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}a(ri,"getFormatOptions");function Tc(e,t,n,r){let o={...n,indent:0},i=je(e,o),s=je(t,o);if(i===s)return ti(Oc,r);{let l=je(e,n),c=je(t,n);return Wp(l.split(`
53
- `),c.split(`
54
- `),i.split(`
55
- `),s.split(`
56
- `),r)}}a(Tc,"getObjectsDifference");var xc=2e4;function vc(e){return yt(e)==="Object"&&typeof e.asymmetricMatch=="function"}a(vc,"isAsymmetricMatcher");function Ec(e,t){let n=yt(e),r=yt(t);return n===r&&(n==="Object"||n==="Array")}a(Ec,"isReplaceable");function dr(e,t,n){let{aAnnotation:r,bAnnotation:o}=Nt(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=xc&&e.length<=xc&&t!==e){if(t.includes(`
57
- `)||e.includes(`
58
- `))return Xp(t,e,n);let[f]=Rc(t,e,true),h=f.some(p=>p[0]===pe),m=nm(r,o),d=m(r)+im(Ic(f,ke,h)),g=m(o)+om(Ic(f,_e,h));return `${d}
59
- ${g}`}let i=sr(t,{forceWritable:true}),s=sr(e,{forceWritable:true}),{replacedExpected:l,replacedActual:c}=Lc(s,i);return Mt(l,c,n)}a(dr,"printDiffOrStringify");function Lc(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Ec(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),ir(t).forEach(o=>{let i=t[o],s=e[o];if(vc(i))i.asymmetricMatch(s)&&(e[o]=i);else if(vc(s))s.asymmetricMatch(i)&&(t[o]=s);else if(Ec(s,i)){let l=Lc(s,i,n,r);e[o]=l.replacedActual,t[o]=l.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}a(Lc,"replaceAsymmetricMatcher");function nm(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}a(nm,"getLabelPrinter");var rm="\xB7";function Dc(e){return e.replace(/\s+$/gm,t=>rm.repeat(t.length))}a(Dc,"replaceTrailingSpaces");function om(e){return ue.red(Dc(Ce(e)))}a(om,"printReceived");function im(e){return ue.green(Dc(Ce(e)))}a(im,"printExpected");function Ic(e,t,n){return e.reduce((r,o)=>r+(o[0]===pe?o[1]:o[0]===t?n?ue.inverse(o[1]):o[1]:""),"")}a(Ic,"getCommonAndChangedSubstrings");function pr(e,t){if(!e)throw new Error(t)}a(pr,"assert");function Vt(e,t){return typeof t===e}a(Vt,"isType");function sm(e){return e instanceof Promise}a(sm,"isPromise");function hn(e,t,n){Object.defineProperty(e,t,n);}a(hn,"define");function Kt(e,t,n){hn(e,t,{value:n,configurable:true,writable:true});}a(Kt,"defineValue");var bt=Symbol.for("tinyspy:spy"),am=new Set,cm=a(e=>{e.called=false,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[];},"reset"),lm=a(e=>(hn(e,bt,{value:{reset:a(()=>cm(e[bt]),"reset")}}),e[bt]),"defineState"),mr=a(e=>e[bt]||lm(e),"getInternalState");function um(e){pr(Vt("function",e)||Vt("undefined",e),"cannot spy on a non-function value");let t=a(function(...r){let o=mr(t);o.called=true,o.callCount++,o.calls.push(r);let i=o.next.shift();if(i){o.results.push(i);let[f,h]=i;if(f==="ok")return h;throw h}let s,l="ok",c=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,r,new.target):s=o.impl.apply(this,r),l="ok";}catch(f){throw s=f,l="error",o.results.push([l,f]),f}let u=[l,s];return sm(s)&&s.then(f=>o.resolves[c]=["ok",f],f=>o.resolves[c]=["error",f]),o.results.push(u),s},"fn");Kt(t,"_isMockFunction",true),Kt(t,"length",e?e.length:0),Kt(t,"name",e&&e.name||"spy");let n=mr(t);return n.reset(),n.impl=e,t}a(um,"createInternalSpy");function fm(e){return !!e&&e._isMockFunction===true}a(fm,"isMockFunction");var Bc=a((e,t)=>{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return [e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return [r,o];r=Object.getPrototypeOf(r);}},"getDescriptor"),qc=a((e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype);},"setPototype");function si(e,t,n){pr(!Vt("undefined",e),"spyOn could not find an object to spy upon"),pr(Vt("object",e)||Vt("function",e),"cannot spyOn on a primitive value");let[r,o]=(()=>{if(!Vt("object",t))return [t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return [t.getter,"get"];if("setter"in t)return [t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[i,s]=Bc(e,r)||[];pr(s||r in e,`${String(r)} does not exist`);let l=false;o==="value"&&s&&!s.value&&s.get&&(o="get",l=true,n=s.get());let c;s?c=s[o]:o!=="value"?c=a(()=>e[r],"original"):c=e[r],c&&mm(c)&&(c=c[bt].getOriginal());let u=a(d=>{let{value:g,...p}=s||{configurable:true,writable:true};o!=="value"&&delete p.writable,p[o]=d,hn(e,r,p);},"reassign"),f=a(()=>{i!==e?Reflect.deleteProperty(e,r):s&&!c?hn(e,r,s):u(c);},"restore");n||(n=c);let h=pm(um(n),n);o==="value"&&qc(h,c);let m=h[bt];return Kt(m,"restore",f),Kt(m,"getOriginal",()=>l?c():c),Kt(m,"willCall",d=>(m.impl=d,h)),u(l?()=>(qc(h,n),h):h),am.add(h),h}a(si,"internalSpyOn");var hm=new Set(["length","name","prototype"]);function dm(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)n[o]||hm.has(o)||(t.add(o),n[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e);}return {properties:t,descriptors:n}}a(dm,"getAllProperties");function pm(e,t){if(!t||bt in t)return e;let{properties:n,descriptors:r}=dm(t);for(let o of n){let i=r[o];Bc(e,o)||hn(e,o,i);}return e}a(pm,"wrap");function mm(e){return fm(e)&&"getOriginal"in e[bt]}a(mm,"isSpyFunction");var dn=new Set;function Rt(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}a(Rt,"isMockFunction");function zc(e,t,n){let o=n?{[{get:"getter",set:"setter"}[n]]:t}:t,i,s=bm(e,t),l=s&&s[n||"value"];Rt(l)&&(i=l.mock._state());try{let c=si(e,o),u=Wc(c);return i&&u.mock._state(i),u}catch(c){throw c instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(c.message.includes("Cannot redefine property")||c.message.includes("Cannot replace module namespace")||c.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(o)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:c}):c}}a(zc,"spyOn");var ym=0;function Wc(e){let t=e,n,r=[],o=false,i=[],s=[],l=[],c=mr(e),u={get calls(){return c.calls},get contexts(){return s},get instances(){return i},get invocationCallOrder(){return l},get results(){return c.results.map(([d,g])=>({type:d==="error"?"throw":"return",value:g}))},get settledResults(){return c.resolves.map(([d,g])=>({type:d==="error"?"rejected":"fulfilled",value:g}))},get lastCall(){return c.calls[c.calls.length-1]},_state(d){return d&&(n=d.implementation,r=d.onceImplementations,o=d.implementationChangedTemporarily),{implementation:n,onceImplementations:r,implementationChangedTemporarily:o}}};function f(...d){return i.push(this),s.push(this),l.push(++ym),(o?n:r.shift()||n||c.getOriginal()||(()=>{})).apply(this,d)}a(f,"mockCall");let h=t.name;t.getMockName=()=>h||"vi.fn()",t.mockName=d=>(h=d,t),t.mockClear=()=>(c.reset(),i=[],s=[],l=[],t),t.mockReset=()=>(t.mockClear(),n=void 0,r=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?n:r.at(0)||n,t.mockImplementation=d=>(n=d,c.willCall(f),t),t.mockImplementationOnce=d=>(r.push(d),t);function m(d,g){let p=n;n=d,c.willCall(f),o=true;let S=a(()=>{n=p,o=false;},"reset"),T=g();return typeof T=="object"&&T&&typeof T.then=="function"?T.then(()=>(S(),t)):(S(),t)}return a(m,"withImplementation"),t.withImplementation=m,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=d=>t.mockImplementation(()=>d),t.mockReturnValueOnce=d=>t.mockImplementationOnce(()=>d),t.mockResolvedValue=d=>t.mockImplementation(()=>Promise.resolve(d)),t.mockResolvedValueOnce=d=>t.mockImplementationOnce(()=>Promise.resolve(d)),t.mockRejectedValue=d=>t.mockImplementation(()=>Promise.reject(d)),t.mockRejectedValueOnce=d=>t.mockImplementationOnce(()=>Promise.reject(d)),Object.defineProperty(t,"mock",{get:a(()=>u,"get")}),c.willCall(f),dn.add(t),t}a(Wc,"enhanceSpy");function Uc(e){let t=Wc(si({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}a(Uc,"fn");function bm(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r);}}a(bm,"getDescriptor");var wm="@@__IMMUTABLE_RECORD__@@",Sm="@@__IMMUTABLE_ITERABLE__@@";function Tm(e){return e&&(e[Sm]||e[wm])}a(Tm,"isImmutable");var xm=Object.getPrototypeOf({});function Jc(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}a(Jc,"getUnserializableMessage");function wt(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let n=e.toJSON();return n&&n!==e&&typeof n=="object"&&(typeof e.message=="string"&&gr(()=>n.message??(n.message=e.message)),typeof e.stack=="string"&&gr(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&gr(()=>n.name??(n.name=e.name)),e.cause!=null&&gr(()=>n.cause??(n.cause=wt(e.cause,t)))),wt(n,t)}if(typeof e=="function")return `Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return `<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return `<Uint8Array(${e.length}) ...>`;if(Tm(e))return wt(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return "Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return `${e.toString()} ${fn(e.sample)}`;if(typeof e.toJSON=="function")return wt(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,o)=>{try{n[o]=wt(r,t);}catch(i){n[o]=Jc(i);}}),n}else {let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==xm;)Object.getOwnPropertyNames(r).forEach(o=>{if(!(o in n))try{n[o]=wt(e[o],t);}catch(i){delete n[o],n[o]=Jc(i);}}),r=Object.getPrototypeOf(r);return n}}a(wt,"serializeValue");function gr(e){try{return e()}catch{}}a(gr,"safe");function vm(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a(vm,"normalizeErrorMessage");function ai(e,t,n=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=dr(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=Ce(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=Ce(r.actual,10));try{typeof r.message=="string"&&(r.message=vm(r.message));}catch{}try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=ai(r.cause,t,n));}catch{}try{return wt(r)}catch(o){return wt(new Error(`Failed to fully serialize error: ${o?.message}
60
- Inner error message: ${r?.message}`))}}a(ai,"processError");var tl=Object.defineProperty,Em=Object.getOwnPropertyNames,E=a((e,t)=>tl(e,"name",{value:t,configurable:true}),"__name"),Im=a((e,t)=>a(function(){return t||(0, e[Em(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),Ei=a((e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:true});},"__export"),Cm=Im({"(disabled):util"(){}}),Se={};Ei(Se,{addChainableMethod:a(()=>ji,"addChainableMethod"),addLengthGuard:a(()=>bn,"addLengthGuard"),addMethod:a(()=>Ni,"addMethod"),addProperty:a(()=>ki,"addProperty"),checkError:a(()=>ze,"checkError"),compareByInspect:a(()=>Sr,"compareByInspect"),eql:a(()=>Pl,"eql"),expectTypes:a(()=>ll,"expectTypes"),flag:a(()=>X,"flag"),getActual:a(()=>Ir,"getActual"),getMessage:a(()=>_i,"getMessage"),getName:a(()=>_r,"getName"),getOperator:a(()=>qi,"getOperator"),getOwnEnumerableProperties:a(()=>Di,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:a(()=>Li,"getOwnEnumerablePropertySymbols"),getPathInfo:a(()=>Ai,"getPathInfo"),hasProperty:a(()=>Cr,"hasProperty"),inspect:a(()=>Q,"inspect"),isNaN:a(()=>Tr,"isNaN"),isNumeric:a(()=>Ee,"isNumeric"),isProxyEnabled:a(()=>yn,"isProxyEnabled"),isRegExp:a(()=>xr,"isRegExp"),objDisplay:a(()=>jt,"objDisplay"),overwriteChainableMethod:a(()=>Fi,"overwriteChainableMethod"),overwriteMethod:a(()=>Ri,"overwriteMethod"),overwriteProperty:a(()=>Mi,"overwriteProperty"),proxify:a(()=>Ht,"proxify"),test:a(()=>Ii,"test"),transferFlags:a(()=>tt,"transferFlags"),type:a(()=>ce,"type")});var ze={};Ei(ze,{compatibleConstructor:a(()=>ol,"compatibleConstructor"),compatibleInstance:a(()=>rl,"compatibleInstance"),compatibleMessage:a(()=>il,"compatibleMessage"),getConstructorName:a(()=>sl,"getConstructorName"),getMessage:a(()=>al,"getMessage")});function Er(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}a(Er,"isErrorInstance");E(Er,"isErrorInstance");function nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(nl,"isRegExp");E(nl,"isRegExp");function rl(e,t){return Er(t)&&e===t}a(rl,"compatibleInstance");E(rl,"compatibleInstance");function ol(e,t){return Er(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:false}a(ol,"compatibleConstructor");E(ol,"compatibleConstructor");function il(e,t){let n=typeof e=="string"?e:e.message;return nl(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:false}a(il,"compatibleMessage");E(il,"compatibleMessage");function sl(e){let t=e;return Er(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}a(sl,"getConstructorName");E(sl,"getConstructorName");function al(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}a(al,"getMessage");E(al,"getMessage");function X(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)r[t]=n;else return r[t]}a(X,"flag");E(X,"flag");function Ii(e,t){let n=X(e,"negate"),r=t[0];return n?!r:r}a(Ii,"test");E(Ii,"test");function ce(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}a(ce,"type");E(ce,"type");var _m="captureStackTrace"in Error,ne=class cl extends Error{static{a(this,"_AssertionError");}static{E(this,"AssertionError");}message;get name(){return "AssertionError"}get ok(){return false}constructor(t="Unspecified AssertionError",n,r){super(t),this.message=t,_m&&Error.captureStackTrace(this,r||cl);for(let o in n)o in this||(this[o]=n[o]);}toJSON(t){return {...this,name:this.name,message:this.message,ok:false,stack:t!==false?this.stack:void 0}}};function ll(e,t){let n=X(e,"message"),r=X(e,"ssfi");n=n?n+": ":"",e=X(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();let o=t.map(function(s,l){let c=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a";return (t.length>1&&l===t.length-1?"or ":"")+c+" "+s}).join(", "),i=ce(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new ne(n+"object tested must be "+o+", but "+i+" given",void 0,r)}a(ll,"expectTypes");E(ll,"expectTypes");function Ir(e,t){return t.length>4?t[4]:e._obj}a(Ir,"getActual");E(Ir,"getActual");var Vc={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"]},Om={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Gt="\u2026";function ul(e,t){let n=Vc[Om[t]]||Vc[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(ul,"colorise");E(ul,"colorise");function fl({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:l,inspect:f,stylize:u};return h.colors&&(h.stylize=ul),h}a(fl,"normaliseOptions");E(fl,"normaliseOptions");function hl(e){return e>="\uD800"&&e<="\uDBFF"}a(hl,"isHighSurrogate");E(hl,"isHighSurrogate");function ht(e,t,n=Gt){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&hl(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(ht,"truncate");E(ht,"truncate");function Ue(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",l="",c="";for(let u=0;u<o;u+=1){let f=u+1===e.length,h=u+2===e.length;c=`${Gt}(${e.length-u})`;let m=e[u];t.truncate=i-s.length-(f?0:r.length);let d=l||n(m,t)+(f?"":r),g=s.length+d.length,p=g+c.length;if(f&&g>i&&s.length+c.length<=i||!f&&!h&&p>i||(l=f?"":n(e[u+1],t)+(h?"":r),!f&&h&&p>i&&g+l.length>i))break;if(s+=d,!f&&!h&&g+l.length>=i){c=`${Gt}(${e.length-u-1})`;break}c="";}return `${s}${c}`}a(Ue,"inspectList");E(Ue,"inspectList");function dl(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(dl,"quoteComplexKey");E(dl,"quoteComplexKey");function Yt([e,t],n){return n.truncate-=2,typeof e=="string"?e=dl(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(Yt,"inspectProperty");E(Yt,"inspectProperty");function pl(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=Ue(e,t);t.truncate-=r.length;let o="";return n.length&&(o=Ue(n.map(i=>[i,e[i]]),t,Yt)),`[ ${r}${o?`, ${o}`:""} ]`}a(pl,"inspectArray");E(pl,"inspectArray");var Pm=E(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function ot(e,t){let n=Pm(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(ht(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${Gt}(${e.length-e[s]+1})`;break}o+=l;}let i="";return r.length&&(i=Ue(r.map(s=>[s,e[s]]),t,Yt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(ot,"inspectTypedArray");E(ot,"inspectTypedArray");function ml(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${ht(r[1],t.truncate-o.length-1)}`,"date")}a(ml,"inspectDate");E(ml,"inspectDate");function ui(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${ht(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(ui,"inspectFunction");E(ui,"inspectFunction");function gl([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(gl,"inspectMapEntry");E(gl,"inspectMapEntry");function yl(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(yl,"mapToEntries");E(yl,"mapToEntries");function bl(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${Ue(yl(e),t,gl)} }`)}a(bl,"inspectMap");E(bl,"inspectMap");var $m=Number.isNaN||(e=>e!==e);function fi(e,t){return $m(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(ht(String(e),t.truncate),"number")}a(fi,"inspectNumber");E(fi,"inspectNumber");function hi(e,t){let n=ht(e.toString(),t.truncate-1);return n!==Gt&&(n+="n"),t.stylize(n,"bigint")}a(hi,"inspectBigInt");E(hi,"inspectBigInt");function wl(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${ht(o,r)}/${n}`,"regexp")}a(wl,"inspectRegExp");E(wl,"inspectRegExp");function Sl(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(Sl,"arrayFromSet");E(Sl,"arrayFromSet");function Tl(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ue(Sl(e),t)} }`)}a(Tl,"inspectSet");E(Tl,"inspectSet");var Kc=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Am={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},km=16;function xl(e){return Am[e]||`\\u${`0000${e.charCodeAt(0).toString(km)}`.slice(-4)}`}a(xl,"escape");E(xl,"escape");function di(e,t){return Kc.test(e)&&(e=e.replace(Kc,xl)),t.stylize(`'${ht(e,t.truncate-2)}'`,"string")}a(di,"inspectString");E(di,"inspectString");function pi(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(pi,"inspectSymbol");E(pi,"inspectSymbol");var vl=E(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(vl=E((r,o)=>{let[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"));}catch{}var Mm=vl;function mn(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=Ue(n.map(l=>[l,e[l]]),t,Yt),i=Ue(r.map(l=>[l,e[l]]),t,Yt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(mn,"inspectObject");E(mn,"inspectObject");var ci=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function El(e,t){let n="";return ci&&ci in e&&(n=e[ci]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${mn(e,t)}`}a(El,"inspectClass");E(El,"inspectClass");function Il(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ue(e,t)} ]`)}a(Il,"inspectArguments");E(Il,"inspectArguments");var Rm=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Cl(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>Rm.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=ht(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=Ue(n.map(s=>[s,e[s]]),t,Yt);return `${r}${o}${i?` { ${i} }`:""}`}a(Cl,"inspectObject2");E(Cl,"inspectObject");function _l([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(_l,"inspectAttribute");E(_l,"inspectAttribute");function yr(e,t){return Ue(e,t,Ci,`
61
- `)}a(yr,"inspectHTMLCollection");E(yr,"inspectHTMLCollection");function Ci(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let l="";n.length>0&&(l+=" ",l+=Ue(n.map(f=>[f,e.getAttribute(f)]),t,_l," ")),t.truncate-=l.length;let c=t.truncate,u=yr(e.children,t);return u&&u.length>c&&(u=`${Gt}(${e.children.length})`),`${o}${l}${i}${u}${s}`}a(Ci,"inspectHTML");E(Ci,"inspectHTML");var jm=typeof Symbol=="function"&&typeof Symbol.for=="function",li=jm?Symbol.for("chai/inspect"):"@@chai/inspect",Xt=false;try{let e=Cm();Xt=e.inspect?e.inspect.custom:false;}catch{Xt=false;}var Xc=new WeakMap,Gc={},Yc={undefined:E((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:E((e,t)=>t.stylize("null","null"),"null"),boolean:E((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:E((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:fi,Number:fi,bigint:hi,BigInt:hi,string:di,String:di,function:ui,Function:ui,symbol:pi,Symbol:pi,Array:pl,Date:ml,Map:bl,Set:Tl,RegExp:wl,Promise:Mm,WeakSet:E((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:E((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Il,Int8Array:ot,Uint8Array:ot,Uint8ClampedArray:ot,Int16Array:ot,Uint16Array:ot,Int32Array:ot,Uint32Array:ot,Float32Array:ot,Float64Array:ot,Generator:E(()=>"","Generator"),DataView:E(()=>"","DataView"),ArrayBuffer:E(()=>"","ArrayBuffer"),Error:Cl,HTMLCollection:yr,NodeList:yr},Fm=E((e,t,n)=>li in e&&typeof e[li]=="function"?e[li](t):Xt&&Xt in e&&typeof e[Xt]=="function"?e[Xt](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Xc.has(e.constructor)?Xc.get(e.constructor)(e,t):Gc[n]?Gc[n](e,t):"","inspectCustom"),Lm=Object.prototype.toString;function br(e,t={}){let n=fl(t,br),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Lm.call(e).slice(8,-1)),o in Yc)return Yc[o](e,n);if(r&&e){let s=Fm(e,n,o);if(s)return typeof s=="string"?s:br(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?mn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ci(e,n):"constructor"in e?e.constructor!==Object?El(e,n):mn(e,n):e===Object(e)?mn(e,n):n.stylize(String(e),o)}a(br,"inspect");E(br,"inspect");var Me={includeStack:false,showDiff:true,truncateThreshold:40,useProxy:true,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Q(e,t,n,r){let o={colors:r,depth:typeof n>"u"?2:n,showHidden:t,truncate:Me.truncateThreshold?Me.truncateThreshold:1/0};return br(e,o)}a(Q,"inspect2");E(Q,"inspect");function jt(e){let t=Q(e),n=Object.prototype.toString.call(e);if(Me.truncateThreshold&&t.length>=Me.truncateThreshold){if(n==="[object Function]")return !e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(n==="[object Array]")return "[ Array("+e.length+") ]";if(n==="[object Object]"){let r=Object.keys(e);return "{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}else return t}else return t}a(jt,"objDisplay");E(jt,"objDisplay");function _i(e,t){let n=X(e,"negate"),r=X(e,"object"),o=t[3],i=Ir(e,t),s=n?t[2]:t[1],l=X(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return jt(r)}).replace(/#\{act\}/g,function(){return jt(i)}).replace(/#\{exp\}/g,function(){return jt(o)}),l?l+": "+s:s}a(_i,"getMessage2");E(_i,"getMessage");function tt(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:true;for(let o in r)(n||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=r[o]);}a(tt,"transferFlags");E(tt,"transferFlags");function mi(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}a(mi,"type2");E(mi,"type");function Oi(){this._key="chai/deep-eql__"+Math.random()+Date.now();}a(Oi,"FakeMap");E(Oi,"FakeMap");Oi.prototype={get:E(a(function(t){return t[this._key]},"get"),"get"),set:E(a(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:true});},"set"),"set")};var Ol=typeof WeakMap=="function"?WeakMap:Oi;function gi(e,t,n){if(!n||Ft(e)||Ft(t))return null;var r=n.get(e);if(r){var o=r.get(t);if(typeof o=="boolean")return o}return null}a(gi,"memoizeCompare");E(gi,"memoizeCompare");function pn(e,t,n,r){if(!(!n||Ft(e)||Ft(t))){var o=n.get(e);o?o.set(t,r):(o=new Ol,o.set(t,r),n.set(e,o));}}a(pn,"memoizeSet");E(pn,"memoizeSet");var Pl=gn;function gn(e,t,n){if(n&&n.comparator)return yi(e,t,n);var r=Pi(e,t);return r!==null?r:yi(e,t,n)}a(gn,"deepEqual");E(gn,"deepEqual");function Pi(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?true:Ft(e)||Ft(t)?false:null}a(Pi,"simpleEqual");E(Pi,"simpleEqual");function yi(e,t,n){n=n||{},n.memoize=n.memoize===false?false:n.memoize||new Ol;var r=n&&n.comparator,o=gi(e,t,n.memoize);if(o!==null)return o;var i=gi(t,e,n.memoize);if(i!==null)return i;if(r){var s=r(e,t);if(s===false||s===true)return pn(e,t,n.memoize,s),s;var l=Pi(e,t);if(l!==null)return l}var c=mi(e);if(c!==mi(t))return pn(e,t,n.memoize,false),false;pn(e,t,n.memoize,true);var u=$l(e,t,c,n);return pn(e,t,n.memoize,u),u}a(yi,"extensiveDeepEqual");E(yi,"extensiveDeepEqual");function $l(e,t,n,r){switch(n){case "String":case "Number":case "Boolean":case "Date":return gn(e.valueOf(),t.valueOf());case "Promise":case "Symbol":case "function":case "WeakMap":case "WeakSet":return e===t;case "Error":return $i(e,t,["name","message","code"],r);case "Arguments":case "Int8Array":case "Uint8Array":case "Uint8ClampedArray":case "Int16Array":case "Uint16Array":case "Int32Array":case "Uint32Array":case "Float32Array":case "Float64Array":case "Array":return St(e,t,r);case "RegExp":return Al(e,t);case "Generator":return kl(e,t,r);case "DataView":return St(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case "ArrayBuffer":return St(new Uint8Array(e),new Uint8Array(t),r);case "Set":return bi(e,t,r);case "Map":return bi(e,t,r);case "Temporal.PlainDate":case "Temporal.PlainTime":case "Temporal.PlainDateTime":case "Temporal.Instant":case "Temporal.ZonedDateTime":case "Temporal.PlainYearMonth":case "Temporal.PlainMonthDay":return e.equals(t);case "Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case "Temporal.TimeZone":case "Temporal.Calendar":return e.toString()===t.toString();default:return Ml(e,t,r)}}a($l,"extensiveDeepEqualByType");E($l,"extensiveDeepEqualByType");function Al(e,t){return e.toString()===t.toString()}a(Al,"regexpEqual");E(Al,"regexpEqual");function bi(e,t,n){try{if(e.size!==t.size)return false;if(e.size===0)return true}catch{return false}var r=[],o=[];return e.forEach(E(a(function(s,l){r.push([s,l]);},"gatherEntries"),"gatherEntries")),t.forEach(E(a(function(s,l){o.push([s,l]);},"gatherEntries"),"gatherEntries")),St(r.sort(),o.sort(),n)}a(bi,"entriesEqual");E(bi,"entriesEqual");function St(e,t,n){var r=e.length;if(r!==t.length)return false;if(r===0)return true;for(var o=-1;++o<r;)if(gn(e[o],t[o],n)===false)return false;return true}a(St,"iterableEqual");E(St,"iterableEqual");function kl(e,t,n){return St(wr(e),wr(t),n)}a(kl,"generatorEqual");E(kl,"generatorEqual");function Nl(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}a(Nl,"hasIteratorFunction");E(Nl,"hasIteratorFunction");function wi(e){if(Nl(e))try{return wr(e[Symbol.iterator]())}catch{return []}return []}a(wi,"getIteratorEntries");E(wi,"getIteratorEntries");function wr(e){for(var t=e.next(),n=[t.value];t.done===false;)t=e.next(),n.push(t.value);return n}a(wr,"getGeneratorEntries");E(wr,"getGeneratorEntries");function Si(e){var t=[];for(var n in e)t.push(n);return t}a(Si,"getEnumerableKeys");E(Si,"getEnumerableKeys");function Ti(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}a(Ti,"getEnumerableSymbols");E(Ti,"getEnumerableSymbols");function $i(e,t,n,r){var o=n.length;if(o===0)return true;for(var i=0;i<o;i+=1)if(gn(e[n[i]],t[n[i]],r)===false)return false;return true}a($i,"keysEqual");E($i,"keysEqual");function Ml(e,t,n){var r=Si(e),o=Si(t),i=Ti(e),s=Ti(t);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return St(xi(r).sort(),xi(o).sort())===false?false:$i(e,t,r,n);var l=wi(e),c=wi(t);return l.length&&l.length===c.length?(l.sort(),c.sort(),St(l,c,n)):r.length===0&&l.length===0&&o.length===0&&c.length===0}a(Ml,"objectEqual");E(Ml,"objectEqual");function Ft(e){return e===null||typeof e!="object"}a(Ft,"isPrimitive");E(Ft,"isPrimitive");function xi(e){return e.map(E(a(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"),"mapSymbol"))}a(xi,"mapSymbols");E(xi,"mapSymbols");function Cr(e,t){return typeof e>"u"||e===null?false:t in Object(e)}a(Cr,"hasProperty");E(Cr,"hasProperty");function Rl(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(r=>{if(r==="constructor"||r==="__proto__"||r==="prototype")return {};let i=/^\[(\d+)\]$/.exec(r),s=null;return i?s={i:parseFloat(i[1])}:s={p:r.replace(/\\([.[\]])/g,"$1")},s})}a(Rl,"parsePath");E(Rl,"parsePath");function vi(e,t,n){let r=e,o=null;n=typeof n>"u"?t.length:n;for(let i=0;i<n;i++){let s=t[i];r&&(typeof s.p>"u"?r=r[s.i]:r=r[s.p],i===n-1&&(o=r));}return o}a(vi,"internalGetPathValue");E(vi,"internalGetPathValue");function Ai(e,t){let n=Rl(t),r=n[n.length-1],o={parent:n.length>1?vi(e,n,n.length-1):e,name:r.p||r.i,value:vi(e,n)};return o.exists=Cr(o.parent,o.name),o}a(Ai,"getPathInfo");E(Ai,"getPathInfo");var b=class jl{static{a(this,"_Assertion");}static{E(this,"Assertion");}__flags={};constructor(t,n,r,o){return X(this,"ssfi",r||jl),X(this,"lockSsfi",o),X(this,"object",t),X(this,"message",n),X(this,"eql",Me.deepEqual||Pl),Ht(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Me.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Me.includeStack=t;}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Me.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Me.showDiff=t;}static addProperty(t,n){ki(this.prototype,t,n);}static addMethod(t,n){Ni(this.prototype,t,n);}static addChainableMethod(t,n,r){ji(this.prototype,t,n,r);}static overwriteProperty(t,n){Mi(this.prototype,t,n);}static overwriteMethod(t,n){Ri(this.prototype,t,n);}static overwriteChainableMethod(t,n,r){Fi(this.prototype,t,n,r);}assert(t,n,r,o,i,s){let l=Ii(this,arguments);if(s!==false&&(s=true),o===void 0&&i===void 0&&(s=false),Me.showDiff!==true&&(s=false),!l){n=_i(this,arguments);let u={actual:Ir(this,arguments),expected:o,showDiff:s},f=qi(this,arguments);throw f&&(u.operator=f),new ne(n,u,Me.includeStack?this.assert:X(this,"ssfi"))}}get _obj(){return X(this,"object")}set _obj(t){X(this,"object",t);}};function yn(){return Me.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}a(yn,"isProxyEnabled");E(yn,"isProxyEnabled");function ki(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:E(a(function r(){!yn()&&!X(this,"lockSsfi")&&X(this,"ssfi",r);let o=n.call(this);if(o!==void 0)return o;let i=new b;return tt(this,i),i},"propertyGetter"),"propertyGetter"),configurable:true});}a(ki,"addProperty");E(ki,"addProperty");var Dm=Object.getOwnPropertyDescriptor(function(){},"length");function bn(e,t,n){return Dm.configurable&&Object.defineProperty(e,"length",{get:E(function(){throw Error(n?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}a(bn,"addLengthGuard");E(bn,"addLengthGuard");function Fl(e){let t=Object.getOwnPropertyNames(e);function n(o){t.indexOf(o)===-1&&t.push(o);}a(n,"addProperty2"),E(n,"addProperty");let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}a(Fl,"getProperties");E(Fl,"getProperties");var Hc=["__flags","__methods","_obj","assert"];function Ht(e,t){return yn()?new Proxy(e,{get:E(a(function n(r,o){if(typeof o=="string"&&Me.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(r,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,s=4;throw Fl(r).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&Hc.indexOf(l)===-1){let c=Ll(o,l,s);c<s&&(i=l,s=c);}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return Hc.indexOf(o)===-1&&!X(r,"lockSsfi")&&X(r,"ssfi",n),Reflect.get(r,o)},"proxyGetter"),"proxyGetter")}):e}a(Ht,"proxify");E(Ht,"proxify");function Ll(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let o=0;o<=e.length;o++)r[o]=Array(t.length+1).fill(0),r[o][0]=o;for(let o=0;o<t.length;o++)r[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let s=1;s<=t.length;s++){if(Math.abs(o-s)>=n){r[o][s]=n;continue}r[o][s]=Math.min(r[o-1][s]+1,r[o][s-1]+1,r[o-1][s-1]+(i===t.charCodeAt(s-1)?0:1));}}return r[e.length][t.length]}a(Ll,"stringDistanceCapped");E(Ll,"stringDistanceCapped");function Ni(e,t,n){let r=E(function(){X(this,"lockSsfi")||X(this,"ssfi",r);let o=n.apply(this,arguments);if(o!==void 0)return o;let i=new b;return tt(this,i),i},"methodWrapper");bn(r,t,false),e[t]=Ht(r,t);}a(Ni,"addMethod");E(Ni,"addMethod");function Mi(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),o=E(function(){},"_super");r&&typeof r.get=="function"&&(o=r.get),Object.defineProperty(e,t,{get:E(a(function i(){!yn()&&!X(this,"lockSsfi")&&X(this,"ssfi",i);let s=X(this,"lockSsfi");X(this,"lockSsfi",true);let l=n(o).call(this);if(X(this,"lockSsfi",s),l!==void 0)return l;let c=new b;return tt(this,c),c},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:true});}a(Mi,"overwriteProperty");E(Mi,"overwriteProperty");function Ri(e,t,n){let r=e[t],o=E(function(){throw new Error(t+" is not a function")},"_super");r&&typeof r=="function"&&(o=r);let i=E(function(){X(this,"lockSsfi")||X(this,"ssfi",i);let s=X(this,"lockSsfi");X(this,"lockSsfi",true);let l=n(o).apply(this,arguments);if(X(this,"lockSsfi",s),l!==void 0)return l;let c=new b;return tt(this,c),c},"overwritingMethodWrapper");bn(i,t,false),e[t]=Ht(i,t);}a(Ri,"overwriteMethod");E(Ri,"overwriteMethod");var qm=typeof Object.setPrototypeOf=="function",Zc=E(function(){},"testFn"),Bm=Object.getOwnPropertyNames(Zc).filter(function(e){let t=Object.getOwnPropertyDescriptor(Zc,e);return typeof t!="object"?true:!t.configurable}),zm=Function.prototype.call,Wm=Function.prototype.apply;function ji(e,t,n,r){typeof r!="function"&&(r=E(function(){},"chainingBehavior"));let o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:E(a(function(){o.chainingBehavior.call(this);let s=E(function(){X(this,"lockSsfi")||X(this,"ssfi",s);let l=o.method.apply(this,arguments);if(l!==void 0)return l;let c=new b;return tt(this,c),c},"chainableMethodWrapper");if(bn(s,t,true),qm){let l=Object.create(this);l.call=zm,l.apply=Wm,Object.setPrototypeOf(s,l);}else Object.getOwnPropertyNames(e).forEach(function(c){if(Bm.indexOf(c)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(s,c,u);});return tt(this,s),Ht(s)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:true});}a(ji,"addChainableMethod");E(ji,"addChainableMethod");function Fi(e,t,n,r){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=E(a(function(){let c=r(i).call(this);if(c!==void 0)return c;let u=new b;return tt(this,u),u},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");let s=o.method;o.method=E(a(function(){let c=n(s).apply(this,arguments);if(c!==void 0)return c;let u=new b;return tt(this,u),u},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper");}a(Fi,"overwriteChainableMethod");E(Fi,"overwriteChainableMethod");function Sr(e,t){return Q(e)<Q(t)?-1:1}a(Sr,"compareByInspect");E(Sr,"compareByInspect");function Li(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}a(Li,"getOwnEnumerablePropertySymbols");E(Li,"getOwnEnumerablePropertySymbols");function Di(e){return Object.keys(e).concat(Li(e))}a(Di,"getOwnEnumerableProperties");E(Di,"getOwnEnumerableProperties");var Tr=Number.isNaN;function Dl(e){let t=ce(e);return ["Array","Object","Function"].indexOf(t)!==-1}a(Dl,"isObjectType");E(Dl,"isObjectType");function qi(e,t){let n=X(e,"operator"),r=X(e,"negate"),o=t[3],i=r?t[2]:t[1];if(n)return n;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let s=Dl(o);return /\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}a(qi,"getOperator");E(qi,"getOperator");function _r(e){return e.name}a(_r,"getName");E(_r,"getName");function xr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(xr,"isRegExp2");E(xr,"isRegExp");function Ee(e){return ["Number","BigInt"].includes(ce(e))}a(Ee,"isNumeric");E(Ee,"isNumeric");var{flag:x}=Se;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){b.addProperty(e);});b.addProperty("not",function(){x(this,"negate",true);});b.addProperty("deep",function(){x(this,"deep",true);});b.addProperty("nested",function(){x(this,"nested",true);});b.addProperty("own",function(){x(this,"own",true);});b.addProperty("ordered",function(){x(this,"ordered",true);});b.addProperty("any",function(){x(this,"any",true),x(this,"all",false);});b.addProperty("all",function(){x(this,"all",true),x(this,"any",false);});var Qc={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Bi(e,t){t&&x(this,"message",t),e=e.toLowerCase();let n=x(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=ce(n).toLowerCase();Qc.function.includes(e)?this.assert(Qc[e].includes(o),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===o,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e);}a(Bi,"an");E(Bi,"an");b.addChainableMethod("an",Bi);b.addChainableMethod("a",Bi);function ql(e,t){return Tr(e)&&Tr(t)||e===t}a(ql,"SameValueZero");E(ql,"SameValueZero");function wn(){x(this,"contains",true);}a(wn,"includeChainingBehavior");E(wn,"includeChainingBehavior");function Sn(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=ce(n).toLowerCase(),o=x(this,"message"),i=x(this,"negate"),s=x(this,"ssfi"),l=x(this,"deep"),c=l?"deep ":"",u=l?x(this,"eql"):ql;o=o?o+": ":"";let f=false;switch(r){case "string":f=n.indexOf(e)!==-1;break;case "weakset":if(l)throw new ne(o+"unable to use .deep.include with WeakSet",void 0,s);f=n.has(e);break;case "map":n.forEach(function(h){f=f||u(h,e);});break;case "set":l?n.forEach(function(h){f=f||u(h,e);}):f=n.has(e);break;case "array":l?f=n.some(function(h){return u(h,e)}):f=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new ne(o+"the given combination of arguments ("+r+" and "+ce(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+ce(e).toLowerCase(),void 0,s);let h=Object.keys(e),m=null,d=0;if(h.forEach(function(g){let p=new b(n);if(tt(this,p,true),x(p,"lockSsfi",true),!i||h.length===1){p.property(g,e[g]);return}try{p.property(g,e[g]);}catch(S){if(!ze.compatibleConstructor(S,ne))throw S;m===null&&(m=S),d++;}},this),i&&h.length>1&&d===h.length)throw m;return}}this.assert(f,"expected #{this} to "+c+"include "+Q(e),"expected #{this} to not "+c+"include "+Q(e));}a(Sn,"include");E(Sn,"include");b.addChainableMethod("include",Sn,wn);b.addChainableMethod("contain",Sn,wn);b.addChainableMethod("contains",Sn,wn);b.addChainableMethod("includes",Sn,wn);b.addProperty("ok",function(){this.assert(x(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});b.addProperty("true",function(){this.assert(x(this,"object")===true,"expected #{this} to be true","expected #{this} to be false",!x(this,"negate"));});b.addProperty("numeric",function(){let e=x(this,"object");this.assert(["Number","BigInt"].includes(ce(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!x(this,"negate"));});b.addProperty("callable",function(){let e=x(this,"object"),t=x(this,"ssfi"),n=x(this,"message"),r=n?`${n}: `:"",o=x(this,"negate"),i=o?`${r}expected ${Q(e)} not to be a callable function`:`${r}expected ${Q(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ce(e));if(s&&o||!s&&!o)throw new ne(i,void 0,t)});b.addProperty("false",function(){this.assert(x(this,"object")===false,"expected #{this} to be false","expected #{this} to be true",!!x(this,"negate"));});b.addProperty("null",function(){this.assert(x(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});b.addProperty("undefined",function(){this.assert(x(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});b.addProperty("NaN",function(){this.assert(Tr(x(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function zi(){let e=x(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}a(zi,"assertExist");E(zi,"assertExist");b.addProperty("exist",zi);b.addProperty("exists",zi);b.addProperty("empty",function(){let e=x(this,"object"),t=x(this,"ssfi"),n=x(this,"message"),r;switch(n=n?n+": ":"",ce(e).toLowerCase()){case "array":case "string":r=e.length;break;case "map":case "set":r=e.size;break;case "weakmap":case "weakset":throw new ne(n+".empty was passed a weak collection",void 0,t);case "function":{let o=n+".empty was passed a function "+_r(e);throw new ne(o.trim(),void 0,t)}default:if(e!==Object(e))throw new ne(n+".empty was passed non-string primitive "+Q(e),void 0,t);r=Object.keys(e).length;}this.assert(r===0,"expected #{this} to be empty","expected #{this} not to be empty");});function Wi(){let e=x(this,"object"),t=ce(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}a(Wi,"checkArguments");E(Wi,"checkArguments");b.addProperty("arguments",Wi);b.addProperty("Arguments",Wi);function Or(e,t){t&&x(this,"message",t);let n=x(this,"object");if(x(this,"deep")){let r=x(this,"lockSsfi");x(this,"lockSsfi",true),this.eql(e),x(this,"lockSsfi",r);}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,true);}a(Or,"assertEqual");E(Or,"assertEqual");b.addMethod("equal",Or);b.addMethod("equals",Or);b.addMethod("eq",Or);function Ui(e,t){t&&x(this,"message",t);let n=x(this,"eql");this.assert(n(e,x(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,true);}a(Ui,"assertEql");E(Ui,"assertEql");b.addMethod("eql",Ui);b.addMethod("eqls",Ui);function Pr(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),l=ce(n).toLowerCase(),c=ce(e).toLowerCase();if(r&&l!=="map"&&l!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&l==="date"&&c!=="date")throw new ne(i+"the argument to above must be a date",void 0,s);if(!Ee(e)&&(r||Ee(n)))throw new ne(i+"the argument to above must be a number",void 0,s);if(!r&&l!=="date"&&!Ee(n)){let u=l==="string"?"'"+n+"'":n;throw new ne(i+"expected "+u+" to be a number or a date",void 0,s)}if(r){let u="length",f;l==="map"||l==="set"?(u="size",f=n.size):f=n.length,this.assert(f>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,f);}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}a(Pr,"assertAbove");E(Pr,"assertAbove");b.addMethod("above",Pr);b.addMethod("gt",Pr);b.addMethod("greaterThan",Pr);function $r(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),l=ce(n).toLowerCase(),c=ce(e).toLowerCase(),u,f=true;if(r&&l!=="map"&&l!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&l==="date"&&c!=="date")u=i+"the argument to least must be a date";else if(!Ee(e)&&(r||Ee(n)))u=i+"the argument to least must be a number";else if(!r&&l!=="date"&&!Ee(n)){let h=l==="string"?"'"+n+"'":n;u=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new ne(u,void 0,s);if(r){let h="length",m;l==="map"||l==="set"?(h="size",m=n.size):m=n.length,this.assert(m>=e,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",e,m);}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}a($r,"assertLeast");E($r,"assertLeast");b.addMethod("least",$r);b.addMethod("gte",$r);b.addMethod("greaterThanOrEqual",$r);function Ar(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),l=ce(n).toLowerCase(),c=ce(e).toLowerCase(),u,f=true;if(r&&l!=="map"&&l!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&l==="date"&&c!=="date")u=i+"the argument to below must be a date";else if(!Ee(e)&&(r||Ee(n)))u=i+"the argument to below must be a number";else if(!r&&l!=="date"&&!Ee(n)){let h=l==="string"?"'"+n+"'":n;u=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new ne(u,void 0,s);if(r){let h="length",m;l==="map"||l==="set"?(h="size",m=n.size):m=n.length,this.assert(m<e,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",e,m);}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}a(Ar,"assertBelow");E(Ar,"assertBelow");b.addMethod("below",Ar);b.addMethod("lt",Ar);b.addMethod("lessThan",Ar);function kr(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),l=ce(n).toLowerCase(),c=ce(e).toLowerCase(),u,f=true;if(r&&l!=="map"&&l!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&l==="date"&&c!=="date")u=i+"the argument to most must be a date";else if(!Ee(e)&&(r||Ee(n)))u=i+"the argument to most must be a number";else if(!r&&l!=="date"&&!Ee(n)){let h=l==="string"?"'"+n+"'":n;u=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new ne(u,void 0,s);if(r){let h="length",m;l==="map"||l==="set"?(h="size",m=n.size):m=n.length,this.assert(m<=e,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",e,m);}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}a(kr,"assertMost");E(kr,"assertMost");b.addMethod("most",kr);b.addMethod("lte",kr);b.addMethod("lessThanOrEqual",kr);b.addMethod("within",function(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"doLength"),i=x(this,"message"),s=i?i+": ":"",l=x(this,"ssfi"),c=ce(r).toLowerCase(),u=ce(e).toLowerCase(),f=ce(t).toLowerCase(),h,m=true,d=u==="date"&&f==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new b(r,i,l,true).to.have.property("length"),!o&&c==="date"&&(u!=="date"||f!=="date"))h=s+"the arguments to within must be dates";else if((!Ee(e)||!Ee(t))&&(o||Ee(r)))h=s+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!Ee(r)){let g=c==="string"?"'"+r+"'":r;h=s+"expected "+g+" to be a number or a date";}else m=false;if(m)throw new ne(h,void 0,l);if(o){let g="length",p;c==="map"||c==="set"?(g="size",p=r.size):p=r.length,this.assert(p>=e&&p<=t,"expected #{this} to have a "+g+" within "+d,"expected #{this} to not have a "+g+" within "+d);}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+d,"expected #{this} to not be within "+d);});function Ji(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"ssfi"),o=x(this,"message"),i;try{i=n instanceof e;}catch(l){throw l instanceof TypeError?(o=o?o+": ":"",new ne(o+"The instanceof assertion needs a constructor but "+ce(e)+" was given.",void 0,r)):l}let s=_r(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s);}a(Ji,"assertInstanceOf");E(Ji,"assertInstanceOf");b.addMethod("instanceof",Ji);b.addMethod("instanceOf",Ji);function Vi(e,t,n){n&&x(this,"message",n);let r=x(this,"nested"),o=x(this,"own"),i=x(this,"message"),s=x(this,"object"),l=x(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",r){if(c!=="string")throw new ne(i+"the argument to property must be a string when using nested syntax",void 0,l)}else if(c!=="string"&&c!=="number"&&c!=="symbol")throw new ne(i+"the argument to property must be a string, number, or symbol",void 0,l);if(r&&o)throw new ne(i+'The "nested" and "own" flags cannot be combined.',void 0,l);if(s==null)throw new ne(i+"Target cannot be null or undefined.",void 0,l);let u=x(this,"deep"),f=x(this,"negate"),h=r?Ai(s,e):null,m=r?h.value:s[e],d=u?x(this,"eql"):(S,T)=>S===T,g="";u&&(g+="deep "),o&&(g+="own "),r&&(g+="nested "),g+="property ";let p;o?p=Object.prototype.hasOwnProperty.call(s,e):r?p=h.exists:p=Cr(s,e),(!f||arguments.length===1)&&this.assert(p,"expected #{this} to have "+g+Q(e),"expected #{this} to not have "+g+Q(e)),arguments.length>1&&this.assert(p&&d(t,m),"expected #{this} to have "+g+Q(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+Q(e)+" of #{act}",t,m),x(this,"object",m);}a(Vi,"assertProperty");E(Vi,"assertProperty");b.addMethod("property",Vi);function Ki(e,t,n){x(this,"own",true),Vi.apply(this,arguments);}a(Ki,"assertOwnProperty");E(Ki,"assertOwnProperty");b.addMethod("ownProperty",Ki);b.addMethod("haveOwnProperty",Ki);function Xi(e,t,n){typeof t=="string"&&(n=t,t=null),n&&x(this,"message",n);let r=x(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),e),i=x(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Q(e)+" on #{this} to match "+Q(t)+", got "+Q(o),"expected the own property descriptor for "+Q(e)+" on #{this} to not match "+Q(t),t,o,true):this.assert(o,"expected #{this} to have an own property descriptor for "+Q(e),"expected #{this} to not have an own property descriptor for "+Q(e)),x(this,"object",o);}a(Xi,"assertOwnPropertyDescriptor");E(Xi,"assertOwnPropertyDescriptor");b.addMethod("ownPropertyDescriptor",Xi);b.addMethod("haveOwnPropertyDescriptor",Xi);function Gi(){x(this,"doLength",true);}a(Gi,"assertLengthChain");E(Gi,"assertLengthChain");function Yi(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=ce(n).toLowerCase(),o=x(this,"message"),i=x(this,"ssfi"),s="length",l;switch(r){case "map":case "set":s="size",l=n.size;break;default:new b(n,o,i,true).to.have.property("length"),l=n.length;}this.assert(l==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,l);}a(Yi,"assertLength");E(Yi,"assertLength");b.addChainableMethod("length",Yi,Gi);b.addChainableMethod("lengthOf",Yi,Gi);function Hi(e,t){t&&x(this,"message",t);let n=x(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e);}a(Hi,"assertMatch");E(Hi,"assertMatch");b.addMethod("match",Hi);b.addMethod("matches",Hi);b.addMethod("string",function(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"message"),o=x(this,"ssfi");new b(n,r,o,true).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+Q(e),"expected #{this} to not contain "+Q(e));});function Zi(e){let t=x(this,"object"),n=ce(t),r=ce(e),o=x(this,"ssfi"),i=x(this,"deep"),s,l="",c,u=true,f=x(this,"message");f=f?f+": ":"";let h=f+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(n==="Map"||n==="Set")l=i?"deeply ":"",c=[],t.forEach(function(T,I){c.push(I);}),r!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(c=Di(t),r){case "Array":if(arguments.length>1)throw new ne(h,void 0,o);break;case "Object":if(arguments.length>1)throw new ne(h,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(T){return typeof T=="symbol"?T:String(T)});}if(!e.length)throw new ne(f+"keys required",void 0,o);let m=e.length,d=x(this,"any"),g=x(this,"all"),p=e,S=i?x(this,"eql"):(T,I)=>T===I;if(!d&&!g&&(g=true),d&&(u=p.some(function(T){return c.some(function(I){return S(T,I)})})),g&&(u=p.every(function(T){return c.some(function(I){return S(T,I)})}),x(this,"contains")||(u=u&&e.length==c.length)),m>1){e=e.map(function(I){return Q(I)});let T=e.pop();g&&(s=e.join(", ")+", and "+T),d&&(s=e.join(", ")+", or "+T);}else s=Q(e[0]);s=(m>1?"keys ":"key ")+s,s=(x(this,"contains")?"contain ":"have ")+s,this.assert(u,"expected #{this} to "+l+s,"expected #{this} to not "+l+s,p.slice(0).sort(Sr),c.sort(Sr),true);}a(Zi,"assertKeys");E(Zi,"assertKeys");b.addMethod("keys",Zi);b.addMethod("key",Zi);function Nr(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"ssfi"),i=x(this,"message"),s=x(this,"negate")||false;new b(r,i,o,true).is.a("function"),(xr(e)||typeof e=="string")&&(t=e,e=null);let l,c=false;try{r();}catch(d){c=true,l=d;}let u=e===void 0&&t===void 0,f=!!(e&&t),h=false,m=false;if(u||!u&&!s){let d="an error";e instanceof Error?d="#{exp}":e&&(d=ze.getConstructorName(e));let g=l;if(l instanceof Error)g=l.toString();else if(typeof l=="string")g=l;else if(l&&(typeof l=="object"||typeof l=="function"))try{g=ze.getConstructorName(l);}catch{}this.assert(c,"expected #{this} to throw "+d,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),g);}if(e&&l&&(e instanceof Error&&ze.compatibleInstance(l,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l&&!s?" but #{act} was thrown":""),e.toString(),l.toString())),ze.compatibleConstructor(l,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ze.getConstructorName(e),l instanceof Error?l.toString():l&&ze.getConstructorName(l)))),l&&t!==void 0&&t!==null){let d="including";xr(t)&&(d="matching"),ze.compatibleMessage(l,t)===s&&(f&&s?m=true:this.assert(s,"expected #{this} to throw error "+d+" #{exp} but got #{act}","expected #{this} to throw error not "+d+" #{exp}",t,ze.getMessage(l)));}h&&m&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ze.getConstructorName(e),l instanceof Error?l.toString():l&&ze.getConstructorName(l)),x(this,"object",l);}a(Nr,"assertThrows");E(Nr,"assertThrows");b.addMethod("throw",Nr);b.addMethod("throws",Nr);b.addMethod("Throw",Nr);function Qi(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"itself"),o=typeof n=="function"&&!r?n.prototype[e]:n[e];this.assert(typeof o=="function","expected #{this} to respond to "+Q(e),"expected #{this} to not respond to "+Q(e));}a(Qi,"respondTo");E(Qi,"respondTo");b.addMethod("respondTo",Qi);b.addMethod("respondsTo",Qi);b.addProperty("itself",function(){x(this,"itself",true);});function es(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=e(n);this.assert(r,"expected #{this} to satisfy "+jt(e),"expected #{this} to not satisfy"+jt(e),!x(this,"negate"),r);}a(es,"satisfy");E(es,"satisfy");b.addMethod("satisfy",es);b.addMethod("satisfies",es);function ts(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new ne(o?`${o}: ${s}`:s,void 0,i);if(new b(t,o,i,true).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new ne(o?`${o}: ${s}`:s,void 0,i);new b(e,o,i,true).is.numeric;let l=E(u=>u<0n?-u:u,"abs"),c=E(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(c(l(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}a(ts,"closeTo");E(ts,"closeTo");b.addMethod("closeTo",ts);b.addMethod("approximately",ts);function Bl(e,t,n,r,o){let i=Array.from(t),s=Array.from(e);if(!r){if(s.length!==i.length)return false;i=i.slice();}return s.every(function(l,c){if(o)return n?n(l,i[c]):l===i[c];if(!n){let u=i.indexOf(l);return u===-1?false:(r||i.splice(u,1),true)}return i.some(function(u,f){return n(l,u)?(r||i.splice(f,1),true):false})})}a(Bl,"isSubsetOf");E(Bl,"isSubsetOf");b.addMethod("members",function(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"message"),o=x(this,"ssfi");new b(n,r,o,true).to.be.iterable,new b(e,r,o,true).to.be.iterable;let i=x(this,"contains"),s=x(this,"ordered"),l,c,u;i?(l=s?"an ordered superset":"a superset",c="expected #{this} to be "+l+" of #{exp}",u="expected #{this} to not be "+l+" of #{exp}"):(l=s?"ordered members":"members",c="expected #{this} to have the same "+l+" as #{exp}",u="expected #{this} to not have the same "+l+" as #{exp}");let f=x(this,"deep")?x(this,"eql"):void 0;this.assert(Bl(e,n,f,i,s),c,u,e,n,true);});b.addProperty("iterable",function(e){e&&x(this,"message",e);let t=x(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function zl(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"message"),o=x(this,"ssfi"),i=x(this,"contains"),s=x(this,"deep"),l=x(this,"eql");new b(e,r,o,true).to.be.an("array"),i?this.assert(e.some(function(c){return n.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):s?this.assert(e.some(function(c){return l(n,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n);}a(zl,"oneOf");E(zl,"oneOf");b.addMethod("oneOf",zl);function ns(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),r();let l=t==null?e():e[t],c=t==null?s:"."+t;x(this,"deltaMsgObj",c),x(this,"initialDeltaValue",s),x(this,"finalDeltaValue",l),x(this,"deltaBehavior","change"),x(this,"realDelta",l!==s),this.assert(s!==l,"expected "+c+" to change","expected "+c+" to not change");}a(ns,"assertChanges");E(ns,"assertChanges");b.addMethod("change",ns);b.addMethod("changes",ns);function rs(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let l=t==null?e():e[t],c=t==null?s:"."+t;x(this,"deltaMsgObj",c),x(this,"initialDeltaValue",s),x(this,"finalDeltaValue",l),x(this,"deltaBehavior","increase"),x(this,"realDelta",l-s),this.assert(l-s>0,"expected "+c+" to increase","expected "+c+" to not increase");}a(rs,"assertIncreases");E(rs,"assertIncreases");b.addMethod("increase",rs);b.addMethod("increases",rs);function os(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let l=t==null?e():e[t],c=t==null?s:"."+t;x(this,"deltaMsgObj",c),x(this,"initialDeltaValue",s),x(this,"finalDeltaValue",l),x(this,"deltaBehavior","decrease"),x(this,"realDelta",s-l),this.assert(l-s<0,"expected "+c+" to decrease","expected "+c+" to not decrease");}a(os,"assertDecreases");E(os,"assertDecreases");b.addMethod("decrease",os);b.addMethod("decreases",os);function Wl(e,t){t&&x(this,"message",t);let n=x(this,"deltaMsgObj"),r=x(this,"initialDeltaValue"),o=x(this,"finalDeltaValue"),i=x(this,"deltaBehavior"),s=x(this,"realDelta"),l;i==="change"?l=Math.abs(o-r)===Math.abs(e):l=s===Math.abs(e),this.assert(l,"expected "+n+" to "+i+" by "+e,"expected "+n+" to not "+i+" by "+e);}a(Wl,"assertDelta");E(Wl,"assertDelta");b.addMethod("by",Wl);b.addProperty("extensible",function(){let e=x(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});b.addProperty("sealed",function(){let e=x(this,"object"),t=e===Object(e)?Object.isSealed(e):true;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});b.addProperty("frozen",function(){let e=x(this,"object"),t=e===Object(e)?Object.isFrozen(e):true;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});b.addProperty("finite",function(e){let t=x(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});function vr(e,t){return e===t?true:typeof t!=typeof e?false:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(r){return vr(n,r)})}):false:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():false:Object.keys(e).every(function(n){let r=e[n],o=t[n];return typeof r=="object"&&r!==null&&o!==null?vr(r,o):typeof r=="function"?r(o):o===r}):false}a(vr,"compareSubset");E(vr,"compareSubset");b.addMethod("containSubset",function(e){let t=X(this,"object"),n=Me.showDiff;this.assert(vr(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n);});function Tt(e,t){return new b(e,t)}a(Tt,"expect");E(Tt,"expect");Tt.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new ne(n,{actual:e,expected:t,operator:r},Tt.fail)};var Ul={};Ei(Ul,{Should:a(()=>Um,"Should"),should:a(()=>Jl,"should")});function is(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new b(this.valueOf(),null,e):new b(this,null,e)}a(e,"shouldGetter"),E(e,"shouldGetter");function t(r){Object.defineProperty(this,"should",{value:r,enumerable:true,configurable:true,writable:true});}a(t,"shouldSetter"),E(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:true});let n={};return n.fail=function(r,o,i,s){throw arguments.length<2&&(i=r,r=void 0),i=i||"should.fail()",new ne(i,{actual:r,expected:o,operator:s},n.fail)},n.equal=function(r,o,i){new b(r,i).to.equal(o);},n.Throw=function(r,o,i,s){new b(r,s).to.Throw(o,i);},n.exist=function(r,o){new b(r,o).to.exist;},n.not={},n.not.equal=function(r,o,i){new b(r,i).to.not.equal(o);},n.not.Throw=function(r,o,i,s){new b(r,s).to.not.Throw(o,i);},n.not.exist=function(r,o){new b(r,o).to.not.exist;},n.throw=n.Throw,n.not.throw=n.not.Throw,n}a(is,"loadShould");E(is,"loadShould");var Jl=is,Um=is;function y(e,t){new b(null,null,y,true).assert(e,t,"[ negation message unavailable ]");}a(y,"assert");E(y,"assert");y.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new ne(n,{actual:e,expected:t,operator:r},y.fail)};y.isOk=function(e,t){new b(e,t,y.isOk,true).is.ok;};y.isNotOk=function(e,t){new b(e,t,y.isNotOk,true).is.not.ok;};y.equal=function(e,t,n){let r=new b(e,n,y.equal,true);r.assert(t==X(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,true);};y.notEqual=function(e,t,n){let r=new b(e,n,y.notEqual,true);r.assert(t!=X(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,true);};y.strictEqual=function(e,t,n){new b(e,n,y.strictEqual,true).to.equal(t);};y.notStrictEqual=function(e,t,n){new b(e,n,y.notStrictEqual,true).to.not.equal(t);};y.deepEqual=y.deepStrictEqual=function(e,t,n){new b(e,n,y.deepEqual,true).to.eql(t);};y.notDeepEqual=function(e,t,n){new b(e,n,y.notDeepEqual,true).to.not.eql(t);};y.isAbove=function(e,t,n){new b(e,n,y.isAbove,true).to.be.above(t);};y.isAtLeast=function(e,t,n){new b(e,n,y.isAtLeast,true).to.be.least(t);};y.isBelow=function(e,t,n){new b(e,n,y.isBelow,true).to.be.below(t);};y.isAtMost=function(e,t,n){new b(e,n,y.isAtMost,true).to.be.most(t);};y.isTrue=function(e,t){new b(e,t,y.isTrue,true).is.true;};y.isNotTrue=function(e,t){new b(e,t,y.isNotTrue,true).to.not.equal(true);};y.isFalse=function(e,t){new b(e,t,y.isFalse,true).is.false;};y.isNotFalse=function(e,t){new b(e,t,y.isNotFalse,true).to.not.equal(false);};y.isNull=function(e,t){new b(e,t,y.isNull,true).to.equal(null);};y.isNotNull=function(e,t){new b(e,t,y.isNotNull,true).to.not.equal(null);};y.isNaN=function(e,t){new b(e,t,y.isNaN,true).to.be.NaN;};y.isNotNaN=function(e,t){new b(e,t,y.isNotNaN,true).not.to.be.NaN;};y.exists=function(e,t){new b(e,t,y.exists,true).to.exist;};y.notExists=function(e,t){new b(e,t,y.notExists,true).to.not.exist;};y.isUndefined=function(e,t){new b(e,t,y.isUndefined,true).to.equal(void 0);};y.isDefined=function(e,t){new b(e,t,y.isDefined,true).to.not.equal(void 0);};y.isCallable=function(e,t){new b(e,t,y.isCallable,true).is.callable;};y.isNotCallable=function(e,t){new b(e,t,y.isNotCallable,true).is.not.callable;};y.isObject=function(e,t){new b(e,t,y.isObject,true).to.be.a("object");};y.isNotObject=function(e,t){new b(e,t,y.isNotObject,true).to.not.be.a("object");};y.isArray=function(e,t){new b(e,t,y.isArray,true).to.be.an("array");};y.isNotArray=function(e,t){new b(e,t,y.isNotArray,true).to.not.be.an("array");};y.isString=function(e,t){new b(e,t,y.isString,true).to.be.a("string");};y.isNotString=function(e,t){new b(e,t,y.isNotString,true).to.not.be.a("string");};y.isNumber=function(e,t){new b(e,t,y.isNumber,true).to.be.a("number");};y.isNotNumber=function(e,t){new b(e,t,y.isNotNumber,true).to.not.be.a("number");};y.isNumeric=function(e,t){new b(e,t,y.isNumeric,true).is.numeric;};y.isNotNumeric=function(e,t){new b(e,t,y.isNotNumeric,true).is.not.numeric;};y.isFinite=function(e,t){new b(e,t,y.isFinite,true).to.be.finite;};y.isBoolean=function(e,t){new b(e,t,y.isBoolean,true).to.be.a("boolean");};y.isNotBoolean=function(e,t){new b(e,t,y.isNotBoolean,true).to.not.be.a("boolean");};y.typeOf=function(e,t,n){new b(e,n,y.typeOf,true).to.be.a(t);};y.notTypeOf=function(e,t,n){new b(e,n,y.notTypeOf,true).to.not.be.a(t);};y.instanceOf=function(e,t,n){new b(e,n,y.instanceOf,true).to.be.instanceOf(t);};y.notInstanceOf=function(e,t,n){new b(e,n,y.notInstanceOf,true).to.not.be.instanceOf(t);};y.include=function(e,t,n){new b(e,n,y.include,true).include(t);};y.notInclude=function(e,t,n){new b(e,n,y.notInclude,true).not.include(t);};y.deepInclude=function(e,t,n){new b(e,n,y.deepInclude,true).deep.include(t);};y.notDeepInclude=function(e,t,n){new b(e,n,y.notDeepInclude,true).not.deep.include(t);};y.nestedInclude=function(e,t,n){new b(e,n,y.nestedInclude,true).nested.include(t);};y.notNestedInclude=function(e,t,n){new b(e,n,y.notNestedInclude,true).not.nested.include(t);};y.deepNestedInclude=function(e,t,n){new b(e,n,y.deepNestedInclude,true).deep.nested.include(t);};y.notDeepNestedInclude=function(e,t,n){new b(e,n,y.notDeepNestedInclude,true).not.deep.nested.include(t);};y.ownInclude=function(e,t,n){new b(e,n,y.ownInclude,true).own.include(t);};y.notOwnInclude=function(e,t,n){new b(e,n,y.notOwnInclude,true).not.own.include(t);};y.deepOwnInclude=function(e,t,n){new b(e,n,y.deepOwnInclude,true).deep.own.include(t);};y.notDeepOwnInclude=function(e,t,n){new b(e,n,y.notDeepOwnInclude,true).not.deep.own.include(t);};y.match=function(e,t,n){new b(e,n,y.match,true).to.match(t);};y.notMatch=function(e,t,n){new b(e,n,y.notMatch,true).to.not.match(t);};y.property=function(e,t,n){new b(e,n,y.property,true).to.have.property(t);};y.notProperty=function(e,t,n){new b(e,n,y.notProperty,true).to.not.have.property(t);};y.propertyVal=function(e,t,n,r){new b(e,r,y.propertyVal,true).to.have.property(t,n);};y.notPropertyVal=function(e,t,n,r){new b(e,r,y.notPropertyVal,true).to.not.have.property(t,n);};y.deepPropertyVal=function(e,t,n,r){new b(e,r,y.deepPropertyVal,true).to.have.deep.property(t,n);};y.notDeepPropertyVal=function(e,t,n,r){new b(e,r,y.notDeepPropertyVal,true).to.not.have.deep.property(t,n);};y.ownProperty=function(e,t,n){new b(e,n,y.ownProperty,true).to.have.own.property(t);};y.notOwnProperty=function(e,t,n){new b(e,n,y.notOwnProperty,true).to.not.have.own.property(t);};y.ownPropertyVal=function(e,t,n,r){new b(e,r,y.ownPropertyVal,true).to.have.own.property(t,n);};y.notOwnPropertyVal=function(e,t,n,r){new b(e,r,y.notOwnPropertyVal,true).to.not.have.own.property(t,n);};y.deepOwnPropertyVal=function(e,t,n,r){new b(e,r,y.deepOwnPropertyVal,true).to.have.deep.own.property(t,n);};y.notDeepOwnPropertyVal=function(e,t,n,r){new b(e,r,y.notDeepOwnPropertyVal,true).to.not.have.deep.own.property(t,n);};y.nestedProperty=function(e,t,n){new b(e,n,y.nestedProperty,true).to.have.nested.property(t);};y.notNestedProperty=function(e,t,n){new b(e,n,y.notNestedProperty,true).to.not.have.nested.property(t);};y.nestedPropertyVal=function(e,t,n,r){new b(e,r,y.nestedPropertyVal,true).to.have.nested.property(t,n);};y.notNestedPropertyVal=function(e,t,n,r){new b(e,r,y.notNestedPropertyVal,true).to.not.have.nested.property(t,n);};y.deepNestedPropertyVal=function(e,t,n,r){new b(e,r,y.deepNestedPropertyVal,true).to.have.deep.nested.property(t,n);};y.notDeepNestedPropertyVal=function(e,t,n,r){new b(e,r,y.notDeepNestedPropertyVal,true).to.not.have.deep.nested.property(t,n);};y.lengthOf=function(e,t,n){new b(e,n,y.lengthOf,true).to.have.lengthOf(t);};y.hasAnyKeys=function(e,t,n){new b(e,n,y.hasAnyKeys,true).to.have.any.keys(t);};y.hasAllKeys=function(e,t,n){new b(e,n,y.hasAllKeys,true).to.have.all.keys(t);};y.containsAllKeys=function(e,t,n){new b(e,n,y.containsAllKeys,true).to.contain.all.keys(t);};y.doesNotHaveAnyKeys=function(e,t,n){new b(e,n,y.doesNotHaveAnyKeys,true).to.not.have.any.keys(t);};y.doesNotHaveAllKeys=function(e,t,n){new b(e,n,y.doesNotHaveAllKeys,true).to.not.have.all.keys(t);};y.hasAnyDeepKeys=function(e,t,n){new b(e,n,y.hasAnyDeepKeys,true).to.have.any.deep.keys(t);};y.hasAllDeepKeys=function(e,t,n){new b(e,n,y.hasAllDeepKeys,true).to.have.all.deep.keys(t);};y.containsAllDeepKeys=function(e,t,n){new b(e,n,y.containsAllDeepKeys,true).to.contain.all.deep.keys(t);};y.doesNotHaveAnyDeepKeys=function(e,t,n){new b(e,n,y.doesNotHaveAnyDeepKeys,true).to.not.have.any.deep.keys(t);};y.doesNotHaveAllDeepKeys=function(e,t,n){new b(e,n,y.doesNotHaveAllDeepKeys,true).to.not.have.all.deep.keys(t);};y.throws=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let o=new b(e,r,y.throws,true).to.throw(t,n);return X(o,"object")};y.doesNotThrow=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new b(e,r,y.doesNotThrow,true).to.not.throw(t,n);};y.operator=function(e,t,n,r){let o;switch(t){case "==":o=e==n;break;case "===":o=e===n;break;case ">":o=e>n;break;case ">=":o=e>=n;break;case "<":o=e<n;break;case "<=":o=e<=n;break;case "!=":o=e!=n;break;case "!==":o=e!==n;break;default:throw r=r&&r+": ",new ne(r+'Invalid operator "'+t+'"',void 0,y.operator)}let i=new b(o,r,y.operator,true);i.assert(X(i,"object")===true,"expected "+Q(e)+" to be "+t+" "+Q(n),"expected "+Q(e)+" to not be "+t+" "+Q(n));};y.closeTo=function(e,t,n,r){new b(e,r,y.closeTo,true).to.be.closeTo(t,n);};y.approximately=function(e,t,n,r){new b(e,r,y.approximately,true).to.be.approximately(t,n);};y.sameMembers=function(e,t,n){new b(e,n,y.sameMembers,true).to.have.same.members(t);};y.notSameMembers=function(e,t,n){new b(e,n,y.notSameMembers,true).to.not.have.same.members(t);};y.sameDeepMembers=function(e,t,n){new b(e,n,y.sameDeepMembers,true).to.have.same.deep.members(t);};y.notSameDeepMembers=function(e,t,n){new b(e,n,y.notSameDeepMembers,true).to.not.have.same.deep.members(t);};y.sameOrderedMembers=function(e,t,n){new b(e,n,y.sameOrderedMembers,true).to.have.same.ordered.members(t);};y.notSameOrderedMembers=function(e,t,n){new b(e,n,y.notSameOrderedMembers,true).to.not.have.same.ordered.members(t);};y.sameDeepOrderedMembers=function(e,t,n){new b(e,n,y.sameDeepOrderedMembers,true).to.have.same.deep.ordered.members(t);};y.notSameDeepOrderedMembers=function(e,t,n){new b(e,n,y.notSameDeepOrderedMembers,true).to.not.have.same.deep.ordered.members(t);};y.includeMembers=function(e,t,n){new b(e,n,y.includeMembers,true).to.include.members(t);};y.notIncludeMembers=function(e,t,n){new b(e,n,y.notIncludeMembers,true).to.not.include.members(t);};y.includeDeepMembers=function(e,t,n){new b(e,n,y.includeDeepMembers,true).to.include.deep.members(t);};y.notIncludeDeepMembers=function(e,t,n){new b(e,n,y.notIncludeDeepMembers,true).to.not.include.deep.members(t);};y.includeOrderedMembers=function(e,t,n){new b(e,n,y.includeOrderedMembers,true).to.include.ordered.members(t);};y.notIncludeOrderedMembers=function(e,t,n){new b(e,n,y.notIncludeOrderedMembers,true).to.not.include.ordered.members(t);};y.includeDeepOrderedMembers=function(e,t,n){new b(e,n,y.includeDeepOrderedMembers,true).to.include.deep.ordered.members(t);};y.notIncludeDeepOrderedMembers=function(e,t,n){new b(e,n,y.notIncludeDeepOrderedMembers,true).to.not.include.deep.ordered.members(t);};y.oneOf=function(e,t,n){new b(e,n,y.oneOf,true).to.be.oneOf(t);};y.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Q(e)} to be an iterable`:`expected ${Q(e)} to be an iterable`,new ne(t,void 0,y.isIterable)};y.changes=function(e,t,n,r){arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.changes,true).to.change(t,n);};y.changesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.changesBy,true).to.change(t,n).by(r);};y.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.doesNotChange,true).to.not.change(t,n)};y.changesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.changesButNotBy,true).to.change(t,n).but.not.by(r);};y.increases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.increases,true).to.increase(t,n)};y.increasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.increasesBy,true).to.increase(t,n).by(r);};y.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.doesNotIncrease,true).to.not.increase(t,n)};y.increasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.increasesButNotBy,true).to.increase(t,n).but.not.by(r);};y.decreases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.decreases,true).to.decrease(t,n)};y.decreasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.decreasesBy,true).to.decrease(t,n).by(r);};y.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.doesNotDecrease,true).to.not.decrease(t,n)};y.doesNotDecreaseBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);return new b(e,o,y.doesNotDecreaseBy,true).to.not.decrease(t,n).by(r)};y.decreasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.decreasesButNotBy,true).to.decrease(t,n).but.not.by(r);};y.ifError=function(e){if(e)throw e};y.isExtensible=function(e,t){new b(e,t,y.isExtensible,true).to.be.extensible;};y.isNotExtensible=function(e,t){new b(e,t,y.isNotExtensible,true).to.not.be.extensible;};y.isSealed=function(e,t){new b(e,t,y.isSealed,true).to.be.sealed;};y.isNotSealed=function(e,t){new b(e,t,y.isNotSealed,true).to.not.be.sealed;};y.isFrozen=function(e,t){new b(e,t,y.isFrozen,true).to.be.frozen;};y.isNotFrozen=function(e,t){new b(e,t,y.isNotFrozen,true).to.not.be.frozen;};y.isEmpty=function(e,t){new b(e,t,y.isEmpty,true).to.be.empty;};y.isNotEmpty=function(e,t){new b(e,t,y.isNotEmpty,true).to.not.be.empty;};y.containsSubset=function(e,t,n){new b(e,n).to.containSubset(t);};y.doesNotContainSubset=function(e,t,n){new b(e,n).to.not.containSubset(t);};var Jm=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of Jm)y[t]=y[e];var el=[];function it(e){let t={use:it,AssertionError:ne,util:Se,config:Me,expect:Tt,assert:y,Assertion:b,...Ul};return ~el.indexOf(e)||(e(t,Se),el.push(e)),t}a(it,"use");E(it,"use");var Mr=Symbol.for("matchers-object"),vn=Symbol.for("$$jest-matchers-object"),En=Symbol.for("expect-global"),zr=Symbol.for("asymmetric-matchers-object"),nu={toSatisfy(e,t,n){let{printReceived:r,printExpected:o,matcherHint:i}=this.utils,s=t(e);return {pass:s,message:a(()=>s?`${i(".not.toSatisfy","received","")}
62
-
63
- Expected value to not satisfy:
64
- ${n||o(t)}
65
- Received:
66
- ${r(e)}`:`${i(".toSatisfy","received","")}
67
-
68
- Expected value to satisfy:
69
- ${n||o(t)}
70
-
71
- Received:
72
- ${r(e)}`,"message")}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:o,printExpected:i,matcherHint:s}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof t}'.`);let l=t.length===0||t.some(c=>n(c,e,r));return {pass:l,message:a(()=>l?`${s(".not.toBeOneOf","received","")}
73
-
74
- Expected value to not be one of:
75
- ${i(t)}
76
- Received:
77
- ${o(e)}`:`${s(".toBeOneOf","received","")}
78
-
79
- Expected value to be one of:
80
- ${i(t)}
81
-
82
- Received:
83
- ${o(e)}`,"message")}}},Rr=ue.green,fs=ue.red,Vm=ue.inverse,Km=ue.bold,xt=ue.dim;function Xm(e,t="received",n="expected",r={}){let{comment:o="",isDirectExpectCall:i=false,isNot:s=false,promise:l="",secondArgument:c="",expectedColor:u=Rr,receivedColor:f=fs,secondArgumentColor:h=Rr}=r,m="",d="expect";return !i&&t!==""&&(m+=xt(`${d}(`)+f(t),d=")"),l!==""&&(m+=xt(`${d}.`)+l,d=""),s&&(m+=`${xt(`${d}.`)}not`,d=""),e.includes(".")?d+=e:(m+=xt(`${d}.`)+e,d=""),n===""?d+="()":(m+=xt(`${d}(`)+u(n),c&&(m+=xt(", ")+h(c)),d=")"),o!==""&&(d+=` // ${o}`),d!==""&&(m+=xt(d)),m}a(Xm,"matcherHint");var Gm="\xB7";function ru(e){return e.replace(/\s+$/gm,t=>Gm.repeat(t.length))}a(ru,"replaceTrailingSpaces");function Ym(e){return fs(ru(Ce(e)))}a(Ym,"printReceived");function Hm(e){return Rr(ru(Ce(e)))}a(Hm,"printExpected");function ou(){return {EXPECTED_COLOR:Rr,RECEIVED_COLOR:fs,INVERTED_COLOR:Vm,BOLD_WEIGHT:Km,DIM_COLOR:xt,diff:Mt,matcherHint:Xm,printReceived:Ym,printExpected:Hm,printDiffOrStringify:dr,printWithType:Zm}}a(ou,"getMatcherUtils");function Zm(e,t,n){let r=yt(t),o=r!=="null"&&r!=="undefined"?`${e} has type: ${r}
84
- `:"",i=`${e} has value: ${n(t)}`;return o+i}a(Zm,"printWithType");function iu(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${yt(e)}"`);globalThis[vn].customEqualityTesters.push(...e);}a(iu,"addCustomEqualityTesters");function hs(){return globalThis[vn].customEqualityTesters}a(hs,"getCustomEqualityTesters");function ee(e,t,n,r){return n=n||[],Tn(e,t,[],[],n,r?su:tg)}a(ee,"equals");function Kl(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&nt("Function",e.asymmetricMatch)}a(Kl,"isAsymmetric");function Qm(e,t){let n=Kl(e),r=Kl(t);if(!(n&&r)){if(n)return e.asymmetricMatch(t);if(r)return t.asymmetricMatch(e)}}a(Qm,"asymmetricMatch");function Tn(e,t,n,r,o,i){let s=true,l=Qm(e,t);if(l!==void 0)return l;let c={equals:ee};for(let g=0;g<o.length;g++){let p=o[g].call(c,e,t,o);if(p!==void 0)return p}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return true;if(e===null||t===null)return e===t;let u=Object.prototype.toString.call(e);if(u!==Object.prototype.toString.call(t))return false;switch(u){case "[object Boolean]":case "[object String]":case "[object Number]":return typeof e!=typeof t?false:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case "[object Date]":{let g=+e,p=+t;return g===p||Number.isNaN(g)&&Number.isNaN(p)}case "[object RegExp]":return e.source===t.source&&e.flags===t.flags;case "[object Temporal.Instant]":case "[object Temporal.ZonedDateTime]":case "[object Temporal.PlainDateTime]":case "[object Temporal.PlainDate]":case "[object Temporal.PlainTime]":case "[object Temporal.PlainYearMonth]":case "[object Temporal.PlainMonthDay]":return e.equals(t);case "[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return false;if(Gl(e)&&Gl(t))return e.isEqualNode(t);let f=n.length;for(;f--;){if(n[f]===e)return r[f]===t;if(r[f]===t)return false}if(n.push(e),r.push(t),u==="[object Array]"&&e.length!==t.length)return false;if(e instanceof Error&&t instanceof Error)try{return eg(e,t,n,r,o,i)}finally{n.pop(),r.pop();}let h=Xl(e,i),m,d=h.length;if(Xl(t,i).length!==d)return false;for(;d--;)if(m=h[d],s=i(t,m)&&Tn(e[m],t[m],n,r,o,i),!s)return false;return n.pop(),r.pop(),s}a(Tn,"eq");function eg(e,t,n,r,o,i){let s=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&s&&(s=Tn(e.cause,t.cause,n,r,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=Tn(e.errors,t.errors,n,r,o,i)),s&&(s=Tn({...e},{...t},n,r,o,i)),s}a(eg,"isErrorEqual");function Xl(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(r=>Object.getOwnPropertyDescriptor(e,r).enumerable))}a(Xl,"keys");function tg(e,t){return su(e,t)&&e[t]!==void 0}a(tg,"hasDefinedKey");function su(e,t){return Object.prototype.hasOwnProperty.call(e,t)}a(su,"hasKey");function nt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}a(nt,"isA");function Gl(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}a(Gl,"isDomNode");var au="@@__IMMUTABLE_KEYED__@@",cu="@@__IMMUTABLE_SET__@@",ng="@@__IMMUTABLE_LIST__@@",Wr="@@__IMMUTABLE_ORDERED__@@",rg="@@__IMMUTABLE_RECORD__@@";function og(e){return !!(e&&e[au]&&!e[Wr])}a(og,"isImmutableUnorderedKeyed");function ig(e){return !!(e&&e[cu]&&!e[Wr])}a(ig,"isImmutableUnorderedSet");function Ur(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(Ur,"isObjectLiteral");function sg(e){return !!(e&&Ur(e)&&e[ng])}a(sg,"isImmutableList");function ag(e){return !!(e&&Ur(e)&&e[au]&&e[Wr])}a(ag,"isImmutableOrderedKeyed");function cg(e){return !!(e&&Ur(e)&&e[cu]&&e[Wr])}a(cg,"isImmutableOrderedSet");function lg(e){return !!(e&&Ur(e)&&e[rg])}a(lg,"isImmutableRecord");var lu=Symbol.iterator;function Yl(e){return !!(e!=null&&e[lu])}a(Yl,"hasIterator");function Fe(e,t,n=[],r=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Yl(e)||!Yl(t))return;if(e.constructor!==t.constructor)return false;let i=r.length;for(;i--;)if(r[i]===e)return o[i]===t;r.push(e),o.push(t);let s=[...n.filter(u=>u!==Fe),l];function l(u,f){return Fe(u,f,[...n],[...r],[...o])}if(a(l,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return false;if(nt("Set",e)||ig(e)){let u=true;for(let f of e)if(!t.has(f)){let h=false;for(let m of t)ee(f,m,s)===true&&(h=true);if(h===false){u=false;break}}return r.pop(),o.pop(),u}else if(nt("Map",e)||og(e)){let u=true;for(let f of e)if(!t.has(f[0])||!ee(f[1],t.get(f[0]),s)){let h=false;for(let m of t){let d=ee(f[0],m[0],s),g=false;d===true&&(g=ee(f[1],m[1],s)),g===true&&(h=true);}if(h===false){u=false;break}}return r.pop(),o.pop(),u}}let c=t[lu]();for(let u of e){let f=c.next();if(f.done||!ee(u,f.value,s))return false}if(!c.next().done)return false;if(!sg(e)&&!ag(e)&&!cg(e)&&!lg(e)){let u=Object.entries(e),f=Object.entries(t);if(!ee(u,f,s))return false}return r.pop(),o.pop(),true}a(Fe,"iterableEquality");function ds(e,t){return !e||typeof e!="object"||e===Object.prototype?false:Object.prototype.hasOwnProperty.call(e,t)||ds(Object.getPrototypeOf(e),t)}a(ds,"hasPropertyInObject");function ug(e){return ut(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}a(ug,"isObjectWithKeys");function Lt(e,t,n=[]){let r=n.filter(i=>i!==Lt),o=a((i=new WeakMap)=>(s,l)=>{if(ug(l))return Object.keys(l).every(c=>{if(l[c]!=null&&typeof l[c]=="object"){if(i.has(l[c]))return ee(s[c],l[c],r);i.set(l[c],true);}let u=s!=null&&ds(s,c)&&ee(s[c],l[c],[...r,o(i)]);return i.delete(l[c]),u})},"subsetEqualityWithContext");return o()(e,t)}a(Lt,"subsetEquality");function Hl(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return false}a(Hl,"typeEquality");function Zl(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t);}catch{return}}if(n.byteLength!==r.byteLength)return false;for(let o=0;o<n.byteLength;o++)if(n.getUint8(o)!==r.getUint8(o))return false;return true}a(Zl,"arrayBufferEquality");function cs(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),o=Object.keys(t),i=n.filter(s=>s!==cs);return ee(e,t,i,true)&&ee(r,o)}a(cs,"sparseArrayEquality");function fg(e,t="#{this}",n="#{exp}"){let r=`expected ${t} to be ${n} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${r}
85
-
86
- If it should pass with deep equality, replace "toBe" with "${e}"
87
-
88
- Expected: ${t}
89
- Received: serializes to the same string
90
- `:r}a(fg,"generateToBeMessage");function hg(e,t){return `${t} ${e}${t===1?"":"s"}`}a(hg,"pluralize");function ss(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return (n=Object.getOwnPropertyDescriptor(e,t))===null||n===void 0?void 0:n.enumerable})]}a(ss,"getObjectKeys");function dg(e,t,n){let r=0,o=a((i=new WeakMap)=>(s,l)=>{if(Array.isArray(s)){if(Array.isArray(l)&&l.length===s.length)return l.map((c,u)=>o(i)(s[u],c))}else {if(s instanceof Date)return s;if(ut(s)&&ut(l)){if(ee(s,l,[...n,Fe,Lt]))return l;let c={};i.set(s,c),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:false,value:s.constructor});for(let u of ss(s))ds(l,u)?c[u]=i.has(s[u])?i.get(s[u]):o(i)(s[u],l[u]):i.has(s[u])||(r+=1,ut(s[u])&&(r+=ss(s[u]).length),o(i)(s[u],l[u]));if(ss(c).length>0)return c}}return s},"getObjectSubsetWithContext");return {subset:o()(e,t),stripped:r}}a(dg,"getObjectSubset");if(!Object.prototype.hasOwnProperty.call(globalThis,Mr)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Mr,{get:a(()=>e,"get")}),Object.defineProperty(globalThis,vn,{configurable:true,get:a(()=>({state:e.get(globalThis[En]),matchers:t,customEqualityTesters:n}),"get")}),Object.defineProperty(globalThis,zr,{get:a(()=>r,"get")});}function Zt(e){return globalThis[Mr].get(e)}a(Zt,"getState");function Jr(e,t){let n=globalThis[Mr],r=n.get(t)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,o);}a(Jr,"setState");var rt=class{static{a(this,"AsymmetricMatcher");}$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,n=false){this.sample=t,this.inverse=n;}getMatcherContext(t){return {...Zt(t||globalThis[En]),equals:ee,isNot:this.inverse,customTesters:hs(),utils:{...ou(),diff:Mt,stringify:Ce,iterableEquality:Fe,subsetEquality:Lt}}}};rt.prototype[Symbol.for("chai/inspect")]=function(e){let t=Ce(this,e.depth,{min:true});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var jr=class extends rt{static{a(this,"StringContaining");}constructor(t,n=false){if(!nt("String",t))throw new Error("Expected is not a string");super(t,n);}asymmetricMatch(t){let n=nt("String",t)&&t.includes(this.sample);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},ls=class extends rt{static{a(this,"Anything");}asymmetricMatch(t){return t!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},Fr=class extends rt{static{a(this,"ObjectContaining");}constructor(t,n=false){super(t,n);}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,n){return t?Object.prototype.hasOwnProperty.call(t,n)?true:this.hasProperty(this.getPrototype(t),n):false}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let n=true,r=this.getMatcherContext();for(let o in this.sample)if(!this.hasProperty(t,o)||!ee(this.sample[o],t[o],r.customTesters)){n=false;break}return this.inverse?!n:n}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},Lr=class extends rt{static{a(this,"ArrayContaining");}constructor(t,n=false){super(t,n);}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let n=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(i=>ee(o,i,n.customTesters)));return this.inverse?!r:r}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},us=class extends rt{static{a(this,"Any");}constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t);}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return "Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return `Any<${this.fnNameFor(this.sample)}>`}},Dr=class extends rt{static{a(this,"StringMatching");}constructor(t,n=false){if(!nt("String",t)&&!nt("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),n);}asymmetricMatch(t){let n=nt("String",t)&&this.sample.test(t);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},qr=class extends rt{static{a(this,"CloseTo");}precision;constructor(t,n=2,r=false){if(!nt("Number",t))throw new Error("Expected is not a Number");if(!nt("Number",n))throw new Error("Precision is not a Number");super(t),this.inverse=r,this.precision=n;}asymmetricMatch(t){if(!nt("Number",t))return false;let n=false;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?n=true:n=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!n:n}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${hg("digit",this.precision)})`].join(" ")}},uu=a((e,t)=>{t.addMethod(e.expect,"anything",()=>new ls),t.addMethod(e.expect,"any",n=>new us(n)),t.addMethod(e.expect,"stringContaining",n=>new jr(n)),t.addMethod(e.expect,"objectContaining",n=>new Fr(n)),t.addMethod(e.expect,"arrayContaining",n=>new Lr(n)),t.addMethod(e.expect,"stringMatching",n=>new Dr(n)),t.addMethod(e.expect,"closeTo",(n,r)=>new qr(n,r)),e.expect.not={stringContaining:a(n=>new jr(n,true),"stringContaining"),objectContaining:a(n=>new Fr(n,true),"objectContaining"),arrayContaining:a(n=>new Lr(n,true),"arrayContaining"),stringMatching:a(n=>new Dr(n,true),"stringMatching"),closeTo:a((n,r)=>new qr(n,r,true),"closeTo")};},"JestAsymmetricMatchers");function Ql(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${n?"expected":""})`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(Ql,"createAssertionMessage");function eu(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var s;let c=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(u=>u||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
91
- `,c].join(""));}}),{then(s,l){return i=true,t.then(s,l)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(eu,"recordAsyncExpect");function tu(e,t){var n;e.result||(e.result={state:"fail"}),e.result.state="fail",(n=e.result).errors||(n.errors=[]),e.result.errors.push(ai(t));}a(tu,"handleTestError");function fu(e,t,n){return function(...r){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return n.apply(this,r);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=n.apply(this,r);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(Go,s=>{tu(o,s);}):i}catch(i){tu(o,i);}}}a(fu,"wrapAssertion");var hu=a((e,t)=>{let{AssertionError:n}=e,r=hs();function o(u,f){let h=a(m=>{let d=fu(t,m,f);t.addMethod(e.Assertion.prototype,m,d),t.addMethod(globalThis[vn].matchers,m,d);},"addMethod");Array.isArray(u)?u.forEach(m=>h(m)):h(u);}a(o,"def"),["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,f=>function(...h){let m=t.flag(this,"promise"),d=t.flag(this,"object"),g=t.flag(this,"negate");if(m==="rejects")t.flag(this,"object",()=>{throw d});else if(m==="resolves"&&typeof d!="function"){if(g)return;{let p=t.flag(this,"message")||"expected promise to throw an error, but it didn't",S={showDiff:false};throw new n(p,S,t.flag(this,"ssfi"))}}f.apply(this,h);});}),o("withTest",function(u){return t.flag(this,"vitest-test",u),this}),o("toEqual",function(u){let f=t.flag(this,"object"),h=ee(f,u,[...r,Fe]);return this.assert(h,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,f)}),o("toStrictEqual",function(u){let f=t.flag(this,"object"),h=ee(f,u,[...r,Fe,Hl,cs,Zl],true);return this.assert(h,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,f)}),o("toBe",function(u){let f=this._obj,h=Object.is(f,u),m="";return h||(ee(f,u,[...r,Fe,Hl,cs,Zl],true)?m="toStrictEqual":ee(f,u,[...r,Fe])&&(m="toEqual")),this.assert(h,fg(m),"expected #{this} not to be #{exp} // Object.is equality",u,f)}),o("toMatchObject",function(u){let f=this._obj,h=ee(f,u,[...r,Fe,Lt]),m=t.flag(this,"negate"),{subset:d,stripped:g}=dg(f,u,r);if(h&&m||!h&&!m){let p=t.getMessage(this,[h,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,d,false]),S=g===0?p:`${p}
92
- (${g} matching ${g===1?"property":"properties"} omitted from actual)`;throw new n(S,{showDiff:true,expected:u,actual:d})}}),o("toMatch",function(u){let f=this._obj;if(typeof f!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof f}`);return this.assert(typeof u=="string"?f.includes(u):f.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,f)}),o("toContain",function(u){let f=this._obj;if(typeof Node<"u"&&f instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(f.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,f)}if(typeof DOMTokenList<"u"&&f instanceof DOMTokenList){Ne(u,"class name",["string"]);let m=t.flag(this,"negate")?f.value.replace(u,"").trim():`${f.value} ${u}`;return this.assert(f.contains(u),`expected "${f.value}" to contain "${u}"`,`expected "${f.value}" not to contain "${u}"`,m,f.value)}return typeof f=="string"&&typeof u=="string"?this.assert(f.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,f):(f!=null&&typeof f!="string"&&t.flag(this,"object",Array.from(f)),this.contain(u))}),o("toContainEqual",function(u){let f=t.flag(this,"object"),h=Array.from(f).findIndex(m=>ee(m,u,r));this.assert(h!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u);}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",true,u);}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",false,u);}),o("toBeGreaterThan",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f>u,`expected ${f} to be greater than ${u}`,`expected ${f} to be not greater than ${u}`,u,f,false)}),o("toBeGreaterThanOrEqual",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f>=u,`expected ${f} to be greater than or equal to ${u}`,`expected ${f} to be not greater than or equal to ${u}`,u,f,false)}),o("toBeLessThan",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f<u,`expected ${f} to be less than ${u}`,`expected ${f} to be not less than ${u}`,u,f,false)}),o("toBeLessThanOrEqual",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f<=u,`expected ${f} to be less than or equal to ${u}`,`expected ${f} to be not less than or equal to ${u}`,u,f,false)}),o("toBeNaN",function(){let u=t.flag(this,"object");this.assert(Number.isNaN(u),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,u);}),o("toBeUndefined",function(){let u=t.flag(this,"object");this.assert(u===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,u);}),o("toBeNull",function(){let u=t.flag(this,"object");this.assert(u===null,"expected #{this} to be null","expected #{this} not to be null",null,u);}),o("toBeDefined",function(){let u=t.flag(this,"object");this.assert(typeof u<"u","expected #{this} to be defined","expected #{this} to be undefined",u);}),o("toBeTypeOf",function(u){let f=typeof this._obj,h=u===f;return this.assert(h,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,f)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(I=>String(I).replace(/([.[\]])/g,"\\$1")).join("."));let f=this._obj,[h,m]=u,d=a(()=>Object.prototype.hasOwnProperty.call(f,h)?{value:f[h],exists:true}:t.getPathInfo(f,h),"getValue"),{value:g,exists:p}=d(),S=p&&(u.length===1||ee(m,g,r)),T=u.length===1?"":` with value ${t.objDisplay(m)}`;return this.assert(S,`expected #{this} to have property "${h}"${T}`,`expected #{this} to not have property "${h}"${T}`,m,p?g:void 0)}),o("toBeCloseTo",function(u,f=2){let h=this._obj,m=false,d=0,g=0;return u===Number.POSITIVE_INFINITY&&h===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&h===Number.NEGATIVE_INFINITY?m=true:(d=10**-f/2,g=Math.abs(h-u),m=g<d),this.assert(m,`expected #{this} to be close to #{exp}, received difference is ${g}, but expected ${d}`,`expected #{this} to not be close to #{exp}, received difference is ${g}, but expected ${d}`,u,h,false)});function i(u){if(!Rt(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}a(i,"assertIsMock");function s(u){return i(u),u._obj}a(s,"getSpy"),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let f=s(this),h=f.getMockName(),m=f.mock.calls.length;return this.assert(m===u,`expected "${h}" to be called #{exp} times, but got ${m} times`,`expected "${h}" to not be called #{exp} times`,u,m,false)}),o("toHaveBeenCalledOnce",function(){let u=s(this),f=u.getMockName(),h=u.mock.calls.length;return this.assert(h===1,`expected "${f}" to be called once, but got ${h} times`,`expected "${f}" to not be called once`,1,h,false)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=s(this),f=u.getMockName(),h=u.mock.calls.length,m=h>0,d=t.flag(this,"negate"),g=t.getMessage(this,[m,`expected "${f}" to be called at least once`,`expected "${f}" to not be called at all, but actually been called ${h} times`,true,m]);if(m&&d&&(g=as(u,g)),m&&d||!m&&!d)throw new n(g)});function l(u,f){return u.length===f.length&&u.every((h,m)=>ee(h,f[m],[...r,Fe]))}a(l,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let f=s(this),h=f.getMockName(),m=f.mock.calls.some(p=>l(p,u)),d=t.flag(this,"negate"),g=t.getMessage(this,[m,`expected "${h}" to be called with arguments: #{exp}`,`expected "${h}" to not be called with arguments: #{exp}`,u]);if(m&&d||!m&&!d)throw new n(as(f,g,u))}),o("toHaveBeenCalledExactlyOnceWith",function(...u){let f=s(this),h=f.getMockName(),m=f.mock.calls.length,g=f.mock.calls.some(T=>l(T,u))&&m===1,p=t.flag(this,"negate"),S=t.getMessage(this,[g,`expected "${h}" to be called once with arguments: #{exp}`,`expected "${h}" to not be called once with arguments: #{exp}`,u]);if(g&&p||!g&&!p)throw new n(as(f,S,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...f){let h=s(this),m=h.getMockName(),d=h.mock.calls[u-1],g=h.mock.calls.length,p=u<=g;this.assert(d&&l(d,f),`expected ${xn(u)} "${m}" call to have been called with #{exp}${p?"":`, but called only ${g} times`}`,`expected ${xn(u)} "${m}" call to not have been called with #{exp}`,f,d,p);}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let f=s(this),h=f.getMockName(),m=f.mock.calls[f.mock.calls.length-1];this.assert(m&&l(m,u),`expected last "${h}" call to have been called with #{exp}`,`expected last "${h}" call to not have been called with #{exp}`,u,m);});function c(u,f,h){let m=u.mock.invocationCallOrder,d=f.mock.invocationCallOrder;return m.length===0?!h:d.length===0?false:m[0]<d[0]}a(c,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(u,f=true){let h=s(this);if(!Rt(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(h,u,f),`expected "${h.getMockName()}" to have been called before "${u.getMockName()}"`,`expected "${h.getMockName()}" to not have been called before "${u.getMockName()}"`,u,h);}),o(["toHaveBeenCalledAfter"],function(u,f=true){let h=s(this);if(!Rt(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(u,h,f),`expected "${h.getMockName()}" to have been called after "${u.getMockName()}"`,`expected "${h.getMockName()}" to not have been called after "${u.getMockName()}"`,u,h);}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u===""?/^$/:u);let f=this._obj,h=t.flag(this,"promise"),m=t.flag(this,"negate"),d=null;if(h==="rejects")d=f;else if(h==="resolves"&&typeof f!="function"){if(m)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",p={showDiff:false};throw new n(g,p,t.flag(this,"ssfi"))}}else {let g=false;try{f();}catch(p){g=true,d=p;}if(!g&&!m){let p=t.flag(this,"message")||"expected function to throw an error, but it didn't",S={showDiff:false};throw new n(p,S,t.flag(this,"ssfi"))}}if(typeof u=="function"){let g=u.name||u.prototype.constructor.name;return this.assert(d&&d instanceof u,`expected error to be instance of ${g}`,`expected error not to be instance of ${g}`,u,d)}if(u instanceof Error){let g=ee(d,u,[...r,Fe]);return this.assert(g,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,d)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let g=u;return this.assert(d&&g.asymmetricMatch(d),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",g,d)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:a(u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:f})=>f==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:a(u=>u.mock.calls.length>0&&u.mock.results.some(({type:f})=>f!=="throw"),"condition"),action:"called"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(){let m=s(this),d=m.getMockName(),g=f(m);this.assert(g,`expected "${d}" to be successfully ${h} at least once`,`expected "${d}" to not be successfully ${h}`,g,!g,false);});}),[{name:"toHaveResolvedTimes",condition:a((u,f)=>u.mock.settledResults.reduce((h,{type:m})=>m==="fulfilled"?++h:h,0)===f,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:a((u,f)=>u.mock.results.reduce((h,{type:m})=>m==="throw"?h:++h,0)===f,"condition"),action:"called"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m){let d=s(this),g=d.getMockName(),p=f(d,m);this.assert(p,`expected "${g}" to be successfully ${h} ${m} times`,`expected "${g}" to not be successfully ${h} ${m} times`,`expected resolved times: ${m}`,`received resolved times: ${p}`,false);});}),[{name:"toHaveResolvedWith",condition:a((u,f)=>u.mock.settledResults.some(({type:h,value:m})=>h==="fulfilled"&&ee(f,m)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:a((u,f)=>u.mock.results.some(({type:h,value:m})=>h==="return"&&ee(f,m)),"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m){let d=s(this),g=f(d,m),p=t.flag(this,"negate");if(g&&p||!g&&!p){let S=d.getMockName(),T=t.getMessage(this,[g,`expected "${S}" to ${h} with: #{exp} at least once`,`expected "${S}" to not ${h} with: #{exp}`,m]),I=h==="return"?d.mock.results:d.mock.settledResults;throw new n(pg(d,I,T,m))}});}),[{name:"toHaveLastResolvedWith",condition:a((u,f)=>{let h=u.mock.settledResults[u.mock.settledResults.length-1];return h&&h.type==="fulfilled"&&ee(h.value,f)},"condition"),action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:a((u,f)=>{let h=u.mock.results[u.mock.results.length-1];return h&&h.type==="return"&&ee(h.value,f)},"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m){let d=s(this),g=h==="return"?d.mock.results:d.mock.settledResults,p=g[g.length-1],S=d.getMockName();this.assert(f(d,m),`expected last "${S}" call to ${h} #{exp}`,`expected last "${S}" call to not ${h} #{exp}`,m,p?.value);});}),[{name:"toHaveNthResolvedWith",condition:a((u,f,h)=>{let m=u.mock.settledResults[f-1];return m&&m.type==="fulfilled"&&ee(m.value,h)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:a((u,f,h)=>{let m=u.mock.results[f-1];return m&&m.type==="return"&&ee(m.value,h)},"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m,d){let g=s(this),p=g.getMockName(),T=(h==="return"?g.mock.results:g.mock.settledResults)[m-1],I=`${xn(m)} call`;this.assert(f(g,m,d),`expected ${I} "${p}" call to ${h} #{exp}`,`expected ${I} "${p}" call to not ${h} #{exp}`,d,T?.value);});}),o("withContext",function(u){for(let f in u)t.flag(this,f,u[f]);return this}),t.addProperty(e.Assertion.prototype,"resolves",a(function(){let f=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),m=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof m?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof m}'.`);let d=new Proxy(this,{get:a((g,p,S)=>{let T=Reflect.get(g,p,S);return typeof T!="function"?T instanceof e.Assertion?d:T:(...I)=>{t.flag(this,"_name",p);let P=m.then(A=>(t.flag(this,"object",A),T.call(this,...I)),A=>{let $=new n(`promise rejected "${t.inspect(A)}" instead of resolving`,{showDiff:false});throw $.cause=A,$.stack=f.stack.replace(f.message,$.message),$});return eu(h,P,Ql(t,this,!!I.length),f)}},"get")});return d},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",a(function(){let f=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),m=t.flag(this,"object"),d=typeof m=="function"?m():m;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof d?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof d}'.`);let g=new Proxy(this,{get:a((p,S,T)=>{let I=Reflect.get(p,S,T);return typeof I!="function"?I instanceof e.Assertion?g:I:(...P)=>{t.flag(this,"_name",S);let A=d.then($=>{let j=new n(`promise resolved "${t.inspect($)}" instead of rejecting`,{showDiff:true,expected:new Error("rejected promise"),actual:$});throw j.stack=f.stack.replace(f.message,j.message),j},$=>(t.flag(this,"object",$),I.call(this,...P)));return eu(h,A,Ql(t,this,!!P.length),f)}},"get")});return g},"__VITEST_REJECTS__"));},"JestChaiExpect");function xn(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}a(xn,"ordinalOf");function as(e,t,n){return e.mock.calls.length&&(t+=ue.gray(`
93
-
94
- Received:
95
-
96
- ${e.mock.calls.map((r,o)=>{let i=ue.bold(` ${xn(o+1)} ${e.getMockName()} call:
97
-
98
- `);return n?i+=Mt(n,r,{omitAnnotationLines:true}):i+=Ce(r).split(`
99
- `).map(s=>` ${s}`).join(`
100
- `),i+=`
101
- `,i}).join(`
102
- `)}`)),t+=ue.gray(`
103
-
104
- Number of calls: ${ue.bold(e.mock.calls.length)}
105
- `),t}a(as,"formatCalls");function pg(e,t,n,r){return t.length&&(n+=ue.gray(`
106
-
107
- Received:
108
-
109
- ${t.map((o,i)=>{let s=ue.bold(` ${xn(i+1)} ${e.getMockName()} call return:
110
-
111
- `);return r?s+=Mt(r,o.value,{omitAnnotationLines:true}):s+=Ce(o).split(`
112
- `).map(l=>` ${l}`).join(`
113
- `),s+=`
114
- `,s}).join(`
115
- `)}`)),n+=ue.gray(`
116
-
117
- Number of calls: ${ue.bold(e.mock.calls.length)}
118
- `),n}a(pg,"formatReturns");function mg(e,t){let n=e._obj,r=Se.flag(e,"negate"),o=Se.flag(e,"promise")||"",i={...ou(),diff:Mt,stringify:Ce,iterableEquality:Fe,subsetEquality:Lt};return {state:{...Zt(t),customTesters:hs(),isNot:r,utils:i,promise:o,equals:ee,suppressedErrors:[],soft:Se.flag(e,"soft"),poll:Se.flag(e,"poll")},isNot:r,obj:n}}a(mg,"getMatcherState");var Br=class extends Error{static{a(this,"JestExtendError");}constructor(t,n,r){super(t),this.actual=n,this.expected=r;}};function gg(e,t,n){return (r,o)=>{Object.entries(n).forEach(([i,s])=>{function l(...h){let{state:m,isNot:d,obj:g}=mg(this,t),p=s.call(m,g,...h);if(p&&typeof p=="object"&&typeof p.then=="function")return p.then(({pass:$,message:j,actual:k,expected:O})=>{if($&&d||!$&&!d)throw new Br(j(),k,O)});let{pass:S,message:T,actual:I,expected:P}=p;if(S&&d||!S&&!d)throw new Br(T(),I,P)}a(l,"expectWrapper");let c=fu(o,i,l);o.addMethod(globalThis[vn].matchers,i,c),o.addMethod(e.Assertion.prototype,i,c);class u extends rt{static{a(this,"CustomMatcher");}constructor(m=false,...d){super(d,m);}asymmetricMatch(m){let{pass:d}=s.call(this.getMatcherContext(t),m,...this.sample);return this.inverse?!d:d}toString(){return `${this.inverse?"not.":""}${i}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(m=>Ce(m)).join(", ")}>`}}let f=a((...h)=>new u(false,...h),"customMatcher");Object.defineProperty(t,i,{configurable:true,enumerable:true,value:f,writable:true}),Object.defineProperty(t.not,i,{configurable:true,enumerable:true,value:a((...h)=>new u(true,...h),"value"),writable:true}),Object.defineProperty(globalThis[zr],i,{configurable:true,enumerable:true,value:f,writable:true});});}}a(gg,"JestExtendPlugin");var du=a((e,t)=>{t.addMethod(e.expect,"extend",(n,r)=>{it(gg(e,n,r));});},"JestExtend");var pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yg=new Uint8Array(64),bg=new Uint8Array(128);for(let e=0;e<pu.length;e++){let t=pu.charCodeAt(e);yg[e]=t,bg[t]=e;}var mu;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(mu||(mu={}));var wg=/^[A-Za-z]:\//;function Sg(e=""){return e&&e.replace(/\\/g,"/").replace(wg,t=>t.toUpperCase())}a(Sg,"normalizeWindowsPath");var Tg=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function xg(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(xg,"cwd");var vg=a(function(...e){e=e.map(r=>Sg(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:xg();!o||o.length===0||(t=`${o}/${t}`,n=gu(o));}return t=Eg(t,!n),n&&!gu(t)?`/${t}`:t.length>0?t:"."},"resolve");function Eg(e,t){let n="",r=0,o=-1,i=0,s=null;for(let l=0;l<=e.length;++l){if(l<e.length)s=e[l];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===l-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let c=n.lastIndexOf("/");c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}else if(n.length>0){n="",r=0,o=l,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,l)}`:n=e.slice(o+1,l),r=l-o-1;o=l,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(Eg,"normalizeString");var gu=a(function(e){return Tg.test(e)},"isAbsolute"),yu=/^\s*at .*(?:\S:\d+|\(native\))/m,Ig=/^(?:eval@)?(?:\[native code\])?$/;function bu(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(bu,"extractLocation");function Cg(e){let t=e.trim();if(Ig.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let n=/((.*".+"[^@]*)?[^@]*)(@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,[i,s,l]=bu(t.replace(n,""));return !i||!s||!l?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(l)}}a(Cg,"parseSingleFFOrSafariStack");function In(e){let t=e.trim();return yu.test(t)?_g(t):Cg(t)}a(In,"parseSingleStack");function _g(e){let t=e.trim();if(!yu.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let[o,i,s]=bu(r?r[1]:n),l=r&&n||"",c=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !c||!i||!s?null:(l.startsWith("async ")&&(l=l.slice(6)),c.startsWith("file://")&&(c=c.slice(7)),c=c.startsWith("node:")||c.startsWith("internal:")?c:vg(c),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:c,line:Number.parseInt(i),column:Number.parseInt(s)})}a(_g,"parseSingleV8Stack");var Eu=ma(vu());function Pg(e,t){let n=t?.fillChar??" ",r=" ",o="",i=t?.filter??(()=>true),s=[];for(let l of (0, Eu.default)(e,{jsx:false})){if(s.push(l),l.type==="SingleLineComment"){o+=r.repeat(l.value.length);continue}if(l.type==="MultiLineComment"){o+=l.value.replace(/[^\n]/g,r);continue}if(l.type==="StringLiteral"){if(!l.closed){o+=l.value;continue}let c=l.value.slice(1,-1);if(i(c)){o+=l.value[0]+n.repeat(c.length)+l.value[l.value.length-1];continue}}if(l.type==="NoSubstitutionTemplate"){let c=l.value.slice(1,-1);if(i(c)){o+=`\`${c.replace(/[^\n]/g,n)}\``;continue}}if(l.type==="RegularExpressionLiteral"){let c=l.value;if(i(c)){o+=c.replace(/\/(.*)\/(\w?)$/g,(u,f,h)=>`/${n.repeat(f.length)}/${h}`);continue}}if(l.type==="TemplateHead"){let c=l.value.slice(1,-2);if(i(c)){o+=`\`${c.replace(/[^\n]/g,n)}\${`;continue}}if(l.type==="TemplateTail"){let c=l.value.slice(0,-2);if(i(c)){o+=`}${c.replace(/[^\n]/g,n)}\``;continue}}if(l.type==="TemplateMiddle"){let c=l.value.slice(1,-2);if(i(c)){o+=`}${c.replace(/[^\n]/g,n)}\${`;continue}}o+=l.value;}return {result:o,tokens:s}}a(Pg,"stripLiteralJsTokens");function Iu(e,t){return $g(e,t).result}a(Iu,"stripLiteral");function $g(e,t){return Pg(e,t)}a($g,"stripLiteralDetailed");var Ag=/^[A-Za-z]:\//;function kg(e=""){return e&&e.replace(/\\/g,"/").replace(Ag,t=>t.toUpperCase())}a(kg,"normalizeWindowsPath");var Ng=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Mg(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(Mg,"cwd");var gs=a(function(...e){e=e.map(r=>kg(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:Mg();!o||o.length===0||(t=`${o}/${t}`,n=ms(o));}return t=Cu(t,!n),n&&!ms(t)?`/${t}`:t.length>0?t:"."},"resolve");function Cu(e,t){let n="",r=0,o=-1,i=0,s=null;for(let l=0;l<=e.length;++l){if(l<e.length)s=e[l];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===l-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let c=n.lastIndexOf("/");c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}else if(n.length>0){n="",r=0,o=l,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,l)}`:n=e.slice(o+1,l),r=l-o-1;o=l,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(Cu,"normalizeString");var ms=a(function(e){return Ng.test(e)},"isAbsolute");var ws=class extends Error{static{a(this,"PendingError");}code="VITEST_PENDING";taskId;constructor(t,n,r){super(t),this.message=t,this.note=r,this.taskId=n.id;}};var Rg=new WeakMap,Nu=new WeakMap,Mu=new WeakMap;function Ru(e,t){Rg.set(e,t);}a(Ru,"setFn");function jg(e,t){Nu.set(e,t);}a(jg,"setTestFixture");function Fg(e){return Nu.get(e)}a(Fg,"getTestFixture");function ju(e,t){Mu.set(e,t);}a(ju,"setHooks");function Fu(e){return Mu.get(e)}a(Fu,"getHooks");function Lg(e,t){let n=t.reduce((i,s)=>(i[s.prop]=s,i),{}),r={};e.forEach(i=>{let s=n[i.prop]||{...i};r[s.prop]=s;});for(let i in r){var o;let s=r[i];s.deps=(o=s.deps)===null||o===void 0?void 0:o.map(l=>r[l.prop]);}return Object.values(r)}a(Lg,"mergeScopedFixtures");function Lu(e,t,n){let r=["auto","injected","scope"],o=Object.entries(e).map(([i,s])=>{let l={value:s};if(Array.isArray(s)&&s.length>=2&&ut(s[1])&&Object.keys(s[1]).some(u=>r.includes(u))){var c;Object.assign(l,s[1]);let u=s[0];l.value=l.injected?((c=n.injectValue)===null||c===void 0?void 0:c.call(n,i))??u:u;}return l.scope=l.scope||"test",l.scope==="worker"&&!n.getWorkerContext&&(l.scope="file"),l.prop=i,l.isFn=typeof l.value=="function",l});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(o):t.fixtures=o,o.forEach(i=>{if(i.isFn){let l=qu(i.value);if(l.length&&(i.deps=t.fixtures.filter(({prop:c})=>c!==i.prop&&l.includes(c))),i.scope!=="test"){var s;(s=i.deps)===null||s===void 0||s.forEach(c=>{if(c.isFn&&!(i.scope==="worker"&&c.scope==="worker")&&!(i.scope==="file"&&c.scope!=="test"))throw new SyntaxError(`cannot use the ${c.scope} fixture "${c.prop}" inside the ${i.scope} fixture "${i.prop}"`)});}}}),t}a(Lu,"mergeContextFixtures");var ys=new Map,Qt=new Map;function Dg(e,t,n){return r=>{let o=r||n;if(!o)return t({});let i=Fg(o);if(!i?.length)return t(o);let s=qu(t),l=i.some(({auto:d})=>d);if(!s.length&&!l)return t(o);ys.get(o)||ys.set(o,new Map);let c=ys.get(o);Qt.has(o)||Qt.set(o,[]);let u=Qt.get(o),f=i.filter(({prop:d,auto:g})=>g||s.includes(d)),h=Du(f);if(!h.length)return t(o);async function m(){for(let d of h){if(c.has(d))continue;let g=await qg(e,d,o,u);o[d.prop]=g,c.set(d,g),d.scope==="test"&&u.unshift(()=>{c.delete(d);});}}return a(m,"resolveFixtures"),m().then(()=>t(o))}}a(Dg,"withFixtures");var oo=new WeakMap;function qg(e,t,n,r){var o;let i=iy(n.task.file),s=(o=e.getWorkerContext)===null||o===void 0?void 0:o.call(e);if(!t.isFn){var l;if(i[l=t.prop]??(i[l]=t.value),s){var c;s[c=t.prop]??(s[c]=t.value);}return t.value}if(t.scope==="test")return _u(t.value,n,r);if(oo.has(t))return oo.get(t);let u;if(t.scope==="worker"){if(!s)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");u=s;}else u=i;if(t.prop in u)return u[t.prop];Qt.has(u)||Qt.set(u,[]);let f=Qt.get(u),h=_u(t.value,u,f).then(m=>(u[t.prop]=m,oo.delete(t),m));return oo.set(t,h),h}a(qg,"resolveFixtureValue");async function _u(e,t,n){let r=cr(),o=false,i=e(t,async s=>{o=true,r.resolve(s);let l=cr();n.push(async()=>{l.resolve(),await i;}),await l;}).catch(s=>{if(!o){r.reject(s);return}throw s});return r}a(_u,"resolveFixtureFunction");function Du(e,t=new Set,n=[]){return e.forEach(r=>{if(!n.includes(r)){if(!r.isFn||!r.deps){n.push(r);return}if(t.has(r))throw new Error(`Circular fixture dependency detected: ${r.prop} <- ${[...t].reverse().map(o=>o.prop).join(" <- ")}`);t.add(r),Du(r.deps,t,n),n.push(r),t.clear();}}),n}a(Du,"resolveDeps");function qu(e){let t=Iu(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);let n=t.match(/[^(]*\(([^)]*)/);if(!n)return [];let r=Ou(n[1]);if(!r.length)return [];let o=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&(o=r[e.__VITEST_FIXTURE_INDEX__],!o))return [];if(!(o.startsWith("{")&&o.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${o}".`);let i=o.slice(1,-1).replace(/\s/g,""),s=Ou(i).map(c=>c.replace(/:.*|=.*/g,"")),l=s.at(-1);if(l&&l.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${l}".`);return s}a(qu,"getUsedProps");function Ou(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")n.push(e[i]==="{"?"}":"]");else if(e[i]===n[n.length-1])n.pop();else if(!n.length&&e[i]===","){let s=e.substring(r,i).trim();s&&t.push(s),r=i+1;}let o=e.substring(r).trim();return o&&t.push(o),t}a(Ou,"splitByComma");var Bg;function $n(){return Bg}a($n,"getCurrentTest");function Ts(e,t){function n(o){let i=a(function(...s){return t.apply(o,s)},"chain");Object.assign(i,t),i.withContext=()=>i.bind(o),i.setContext=(s,l)=>{o[s]=l;},i.mergeContext=s=>{Object.assign(o,s);};for(let s of e)Object.defineProperty(i,s,{get(){return n({...o,[s]:true})}});return i}a(n,"create");let r=n({});return r.fn=t,r}a(Ts,"createChainable");var vt=Kg(),xs=vs(function(e,t,n){so().test.fn.call(this,Et(e),t,n);}),An=vt,Le=xs,me,Bu,zg;function zu(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}a(zu,"assert");function Wg(){return zg}a(Wg,"getTestFilepath");function Wu(){return zu(me,"the runner"),me}a(Wu,"getRunner");function so(){let e=It.currentSuite||Bu;return zu(e,"the current suite"),e}a(so,"getCurrentSuite");function Ug(){return {beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}a(Ug,"createSuiteHooks");function qt(e,t){let n={},r=a(()=>{},"fn");if(typeof t=="object"){if(typeof e=="object")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=t;}else typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e;}else typeof t=="function"&&(r=t);return {options:n,handler:r}}a(qt,"parseArguments");function Jg(e,t=()=>{},n,r,o,i){let s=[],l;d();let c=a(function(S="",T={}){var I;let P=T?.timeout??me.config.testTimeout,A={id:"",name:S,suite:(I=It.currentSuite)===null||I===void 0?void 0:I.suite,each:T.each,fails:T.fails,context:void 0,type:"test",file:void 0,timeout:P,retry:T.retry??me.config.retry,repeats:T.repeats,mode:T.only?"only":T.skip?"skip":T.todo?"todo":"run",meta:T.meta??Object.create(null),annotations:[]},$=T.handler;(T.concurrent||!T.sequential&&me.config.sequence.concurrent)&&(A.concurrent=true),A.shuffle=o?.shuffle;let j=ny(A,me);Object.defineProperty(A,"context",{value:j,enumerable:false}),jg(j,T.fixtures);let k=Error.stackTraceLimit;Error.stackTraceLimit=15;let O=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=k,$&&Ru(A,Pn(Vg(Dg(me,$,j),A),P,false,O,(M,K)=>Is([j],K))),me.config.includeTaskLocation){let M=O.stack,K=Pu(M);K&&(A.location=K);}return s.push(A),A},"task"),u=vs(function(S,T,I){let{options:P,handler:A}=qt(T,I);typeof o=="object"&&(P=Object.assign({},o,P)),P.concurrent=this.concurrent||!this.sequential&&P?.concurrent,P.sequential=this.sequential||!this.concurrent&&P?.sequential;let $=c(Et(S),{...this,...P,handler:A});$.type="test";}),f=i,h={type:"collector",name:e,mode:n,suite:l,options:o,test:u,tasks:s,collect:p,task:c,clear:g,on:m,fixtures(){return f},scoped(S){let T=Lu(S,{fixtures:f},me);T.fixtures&&(f=T.fixtures);}};function m(S,...T){Fu(l)[S].push(...T);}a(m,"addHook");function d(S){var T;if(typeof o=="number"&&(o={timeout:o}),l={id:"",type:"suite",name:e,suite:(T=It.currentSuite)===null||T===void 0?void 0:T.suite,mode:n,each:r,file:void 0,shuffle:o?.shuffle,tasks:[],meta:Object.create(null),concurrent:o?.concurrent},me);ju(l,Ug());}a(d,"initSuite");function g(){s.length=0,d();}a(g,"clear");async function p(S){if(!S)throw new TypeError("File is required to collect tasks.");t&&await ey(h,()=>t(u));let T=[];for(let I of s)T.push(I.type==="collector"?await I.collect(S):I);return l.file=S,l.tasks=T,T.forEach(I=>{I.file=S;}),l}return a(p,"collect"),Qg(h),h}a(Jg,"createSuiteCollector");function Vg(e,t){return async(...n)=>{let r=await e(...n);if(t.promises){let i=(await Promise.allSettled(t.promises)).map(s=>s.status==="rejected"?s.reason:void 0).filter(Boolean);if(i.length)throw i}return r}}a(Vg,"withAwaitAsyncAssertions");function Kg(){function e(t,n,r){var o;let i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",s=It.currentSuite||Bu,{options:l,handler:c}=qt(n,r),u=l.concurrent||this.concurrent||l.sequential===false,f=l.sequential||this.sequential||l.concurrent===false;l={...s?.options,...l,shuffle:this.shuffle??l.shuffle??(s==null||(o=s.options)===null||o===void 0?void 0:o.shuffle)??me?.config.sequence.shuffle};let h=u||l.concurrent&&!f,m=f||l.sequential&&!u;return l.concurrent=h&&!m,l.sequential=m&&!h,Jg(Et(t),c,i,this.each,l,s?.fixtures())}return a(e,"suiteFn"),e.each=function(t,...n){let r=this.withContext();return this.setContext("each",true),Array.isArray(t)&&n.length&&(t=ao(t,n)),(o,i,s)=>{let l=Et(o),c=t.every(Array.isArray),{options:u,handler:f}=qt(i,s),h=typeof i=="function"&&typeof s=="object";t.forEach((m,d)=>{let g=Array.isArray(m)?m:[m];h?c?r(st(l,g,d),()=>f(...g),u):r(st(l,g,d),()=>f(m),u):c?r(st(l,g,d),u,()=>f(...g)):r(st(l,g,d),u,()=>f(m));}),this.setContext("each",void 0);}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=ao(t,n)),(r,o,i)=>{let s=Et(r),{options:l,handler:c}=qt(o,i);t.forEach((u,f)=>{vt(st(s,or(u),f),l,()=>c(u));});}},e.skipIf=t=>t?vt.skip:vt,e.runIf=t=>t?vt:vt.skip,Ts(["concurrent","sequential","shuffle","skip","only","todo"],e)}a(Kg,"createSuite");function Uu(e,t){let n=e;n.each=function(o,...i){let s=this.withContext();return this.setContext("each",true),Array.isArray(o)&&i.length&&(o=ao(o,i)),(l,c,u)=>{let f=Et(l),h=o.every(Array.isArray),{options:m,handler:d}=qt(c,u),g=typeof c=="function"&&typeof u=="object";o.forEach((p,S)=>{let T=Array.isArray(p)?p:[p];g?h?s(st(f,T,S),()=>d(...T),m):s(st(f,T,S),()=>d(p),m):h?s(st(f,T,S),m,()=>d(...T)):s(st(f,T,S),m,()=>d(p));}),this.setContext("each",void 0);}},n.for=function(o,...i){let s=this.withContext();return Array.isArray(o)&&i.length&&(o=ao(o,i)),(l,c,u)=>{let f=Et(l),{options:h,handler:m}=qt(c,u);o.forEach((d,g)=>{let p=a(S=>m(d,S),"handlerWrapper");p.__VITEST_FIXTURE_INDEX__=1,p.toString=()=>m.toString(),s(st(f,or(d),g),h,p);});}},n.skipIf=function(o){return o?this.skip:this},n.runIf=function(o){return o?this:this.skip},n.scoped=function(o){so().scoped(o);},n.extend=function(o){let i=Lu(o,t||{},me),s=e;return vs(function(l,c,u){let h=so().fixtures(),m={...this};h&&(m.fixtures=Lg(m.fixtures||[],h));let{handler:d,options:g}=qt(c,u),p=g.timeout??me?.config.testTimeout;s.call(m,Et(l),d,p);},i)};let r=Ts(["concurrent","sequential","skip","only","todo","fails"],n);return t&&r.mergeContext(t),r}a(Uu,"createTaskCollector");function vs(e,t){return Uu(e,t)}a(vs,"createTest");function Et(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}a(Et,"formatName");function st(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));let r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((l,c)=>{if(Yo(t[c])||Object.is(t[c],-0)){let u=0;e=e.replace(/%f/g,f=>(u++,u===c+1?"-%f":f));}});let o=fn(e,...t.slice(0,r)),i=ut(t[0]);return o=o.replace(/\$([$\w.]+)/g,(s,l)=>{let u=/^\d+$/.test(l);if(!i&&!u)return `$${l}`;let f=u?ar(t,l):void 0,h=i?ar(t[0],l,f):f;return Ko(h,{truncate:void 0})}),o}a(st,"formatTitle");function ao(e,t){let n=e.join("").trim().replace(/ /g,"").split(`
119
- `).map(o=>o.split("|"))[0],r=[];for(let o=0;o<Math.floor(t.length/n.length);o++){let i={};for(let s=0;s<n.length;s++)i[n[s]]=t[o*n.length+s];r.push(i);}return r}a(ao,"formatTemplateString");function Pu(e){let t=Wg(),n=e.split(`
120
- `).slice(1);for(let r of n){let o=In(r);if(o&&o.file===t)return {line:o.line,column:o.column}}}a(Pu,"findTestFileStackTrace");globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;function co(e){let t=[e.name],n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}a(co,"getNames");function Es(e,t=" > "){return co(e).slice(1).join(t)}a(Es,"getTestName");globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;var Xg=Date.now,{clearTimeout:Gg,setTimeout:Yg}=ft();var bs=new Map,$u=[],io=[];function Ju(e){if(bs.size){var t;let n=Array.from(bs).map(([o,i])=>[o,i[0],i[1]]),r=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,$u);r&&(io.push(r),r.then(()=>io.splice(io.indexOf(r),1),()=>{})),$u.length=0,bs.clear();}}a(Ju,"sendTasksUpdate");async function Hg(e){Ju(e),await Promise.all(io);}a(Hg,"finishSendTasksUpdate");function Zg(e,t){let n=0,r;return a(function o(...i){let s=Xg();if(s-n>t)return n=s,Gg(r),r=void 0,e.apply(this,i);r??(r=Yg(()=>o.bind(this)(...i),t));},"call")}a(Zg,"throttle");Zg(Ju,100);var Au=Date.now,It={currentSuite:null};function Qg(e){var t;(t=It.currentSuite)===null||t===void 0||t.tasks.push(e);}a(Qg,"collectTask");async function ey(e,t){let n=It.currentSuite;It.currentSuite=e,await t(),It.currentSuite=n;}a(ey,"runWithSuite");function Pn(e,t,n=false,r,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;let{setTimeout:i,clearTimeout:s}=ft();return a(function(...c){let u=Au(),f=Wu();return f._currentTaskStartTime=u,f._currentTaskTimeout=t,new Promise((h,m)=>{var d;let g=i(()=>{s(g),p();},t);(d=g.unref)===null||d===void 0||d.call(g);function p(){let I=ry(n,t,r);o?.(c,I),m(I);}a(p,"rejectTimeoutError");function S(I){if(f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(g),Au()-u>=t){p();return}h(I);}a(S,"resolve");function T(I){f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(g),m(I);}a(T,"reject");try{let I=e(...c);typeof I=="object"&&I!=null&&typeof I.then=="function"?I.then(S,T):S(I);}catch(I){T(I);}})},"runWithTimeout")}a(Pn,"withTimeout");var Ss=new WeakMap;function Is([e],t){e&&ty(e,t);}a(Is,"abortIfTimeout");function ty(e,t){let n=Ss.get(e);n?.abort(t);}a(ty,"abortContextSignal");function ny(e,t){var n;let r=a(function(){throw new Error("done() callback is deprecated, use promise instead")},"context"),o=Ss.get(r);o||(o=new AbortController,Ss.set(r,o)),r.signal=o.signal,r.task=e,r.skip=(s,l)=>{if(s!==false)throw e.result??(e.result={state:"skip"}),e.result.pending=true,new ws("test is skipped; abort execution",e,typeof s=="string"?s:l)};async function i(s,l,c,u){let f={message:s,type:c||"notice"};if(u){if(!u.body&&!u.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(u.body&&u.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');f.attachment=u,u.body instanceof Uint8Array&&(u.body=sy(u.body));}if(l&&(f.location=l),!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await Hg(t);let h=await t.onTestAnnotate(e,f);return e.annotations.push(h),h}return a(i,"annotate"),r.annotate=(s,l,c)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let u,f=new Error("STACK_TRACE").stack,h=f.includes("STACK_TRACE")?2:1,m=f.split(`
121
- `)[h],d=In(m);return d&&(u={file:d.file,line:d.line,column:d.column}),typeof l=="object"?ku(e,i(s,u,void 0,l)):ku(e,i(s,u,l,c))},r.onTestFailed=(s,l)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(Pn(s,l??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,u)=>o.abort(u)));},r.onTestFinished=(s,l)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(Pn(s,l??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,u)=>o.abort(u)));},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,r))||r}a(ny,"createTestContext");function ry(e,t,n){let r=`${e?"Hook":"Test"} timed out in ${t}ms.
122
- If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(r);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}a(ry,"makeTimeoutError");var oy=new WeakMap;function iy(e){let t=oy.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}a(iy,"getFileContext");var Je=[];for(let e=65;e<91;e++)Je.push(String.fromCharCode(e));for(let e=97;e<123;e++)Je.push(String.fromCharCode(e));for(let e=0;e<10;e++)Je.push(e.toString(10));function sy(e){let t="",n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let o=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=Je[o],t+=Je[i],t+="==";}else if(n===r+2){let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2;t+=Je[o],t+=Je[i],t+=Je[s],t+="=";}else {let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2|(e[r+2]&192)>>6,l=e[r+2]&63;t+=Je[o],t+=Je[i],t+=Je[s],t+=Je[l];}return t}a(sy,"encodeUint8Array");function ku(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1);}),e.promises||(e.promises=[]),e.promises.push(t),t}a(ku,"recordAsyncAnnotation");function Vu(){return Wu().config.hookTimeout}a(Vu,"getDefaultHookTimeout");function Gu(e,t){return (n,r)=>{Ne(n,`"${e}" callback`,["function"]);throw new Error(`Hook ${e}() can only be called inside a test`);}}a(Gu,"createTestHook");var fy="__vitest_worker__";function en(){let e=globalThis[fy];if(!e){let t=`Vitest failed to access its internal state.
123
-
124
- One of the following is possible:
125
- - "vitest" is imported directly without running "vitest" command
126
- - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
127
- - "vitest" is imported inside Vite / Vitest config file
128
- - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
129
- `;throw new Error(t)}return e}a(en,"getWorkerState");function Yu(){return en()?.environment.name}a(Yu,"getCurrentEnvironment");function Cs(){return typeof process<"u"&&!!process.send}a(Cs,"isChildProcess");function Hu(e,t=false){let n=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.forEach((r,o)=>{n.some(i=>i.test(o))||e.invalidateModule(r);});}a(Hu,"resetModules");function hy(){let{setTimeout:e}=ft();return new Promise(t=>e(t,0))}a(hy,"waitNextTick");async function _s(){await hy();let e=en(),t=[],n=0;for(let r of e.moduleCache.values())r.promise&&!r.evaluated&&t.push(r.promise),r.resolving&&n++;!t.length&&!n||(await Promise.allSettled(t),await _s());}a(_s,"waitForImportsToResolve");var lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Zu,"getDefaultExportFromCjs");var xy=44,ff="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vy=new Uint8Array(64),_f=new Uint8Array(128);for(let e=0;e<ff.length;e++){let t=ff.charCodeAt(e);vy[e]=t,_f[t]=e;}function jn(e,t){let n=0,r=0,o=0;do{let s=e.next();o=_f[s],n|=(o&31)<<r,r+=5;}while(o&32);let i=n&1;return n>>>=1,i&&(n=-2147483648|-n),t+n}a(jn,"decodeInteger");function hf(e,t){return e.pos>=t?false:e.peek()!==xy}a(hf,"hasMoreVlq");var Ns=class{static{a(this,"StringReader");}constructor(t){this.pos=0,this.buffer=t;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){let{buffer:n,pos:r}=this,o=n.indexOf(t,r);return o===-1?n.length:o}};function Ey(e){let{length:t}=e,n=new Ns(e),r=[],o=0,i=0,s=0,l=0,c=0;do{let u=n.indexOf(";"),f=[],h=true,m=0;for(o=0;n.pos<u;){let d;o=jn(n,o),o<m&&(h=false),m=o,hf(n,u)?(i=jn(n,i),s=jn(n,s),l=jn(n,l),hf(n,u)?(c=jn(n,c),d=[o,i,s,l,c]):d=[o,i,s,l]):d=[o],f.push(d),n.pos++;}h||Iy(f),r.push(f),n.pos=u+1;}while(n.pos<=t);return r}a(Ey,"decode");function Iy(e){e.sort(Cy);}a(Iy,"sort");function Cy(e,t){return e[0]-t[0]}a(Cy,"sortComparator$1");var _y=/^[\w+.-]+:\/\//,Oy=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Py=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i,ge;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(ge||(ge={}));function $y(e){return _y.test(e)}a($y,"isAbsoluteUrl");function Ay(e){return e.startsWith("//")}a(Ay,"isSchemeRelativeUrl");function Of(e){return e.startsWith("/")}a(Of,"isAbsolutePath");function ky(e){return e.startsWith("file:")}a(ky,"isFileUrl");function df(e){return /^[.?#]/.test(e)}a(df,"isRelative");function po(e){let t=Oy.exec(e);return Pf(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}a(po,"parseAbsoluteUrl");function Ny(e){let t=Py.exec(e),n=t[2];return Pf("file:","",t[1]||"","",Of(n)?n:"/"+n,t[3]||"",t[4]||"")}a(Ny,"parseFileUrl");function Pf(e,t,n,r,o,i,s){return {scheme:e,user:t,host:n,port:r,path:o,query:i,hash:s,type:ge.Absolute}}a(Pf,"makeUrl");function pf(e){if(Ay(e)){let n=po("http:"+e);return n.scheme="",n.type=ge.SchemeRelative,n}if(Of(e)){let n=po("http://foo.com"+e);return n.scheme="",n.host="",n.type=ge.AbsolutePath,n}if(ky(e))return Ny(e);if($y(e))return po(e);let t=po("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?ge.Query:e.startsWith("#")?ge.Hash:ge.RelativePath:ge.Empty,t}a(pf,"parseUrl");function My(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}a(My,"stripPathFilename");function Ry(e,t){$f(t,t.type),e.path==="/"?e.path=t.path:e.path=My(t.path)+e.path;}a(Ry,"mergePaths");function $f(e,t){let n=t<=ge.RelativePath,r=e.path.split("/"),o=1,i=0,s=false;for(let c=1;c<r.length;c++){let u=r[c];if(!u){s=true;continue}if(s=false,u!=="."){if(u===".."){i?(s=true,i--,o--):n&&(r[o++]=u);continue}r[o++]=u,i++;}}let l="";for(let c=1;c<o;c++)l+="/"+r[c];(!l||s&&!l.endsWith("/.."))&&(l+="/"),e.path=l;}a($f,"normalizePath");function jy(e,t){if(!e&&!t)return "";let n=pf(e),r=n.type;if(t&&r!==ge.Absolute){let i=pf(t),s=i.type;switch(r){case ge.Empty:n.hash=i.hash;case ge.Hash:n.query=i.query;case ge.Query:case ge.RelativePath:Ry(n,i);case ge.AbsolutePath:n.user=i.user,n.host=i.host,n.port=i.port;case ge.SchemeRelative:n.scheme=i.scheme;}s>r&&(r=s);}$f(n,r);let o=n.query+n.hash;switch(r){case ge.Hash:case ge.Query:return o;case ge.RelativePath:{let i=n.path.slice(1);return i?df(t||e)&&!df(i)?"./"+i+o:i+o:o||"."}case ge.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}a(jy,"resolve$1");function mf(e,t){return t&&!t.endsWith("/")&&(t+="/"),jy(e,t)}a(mf,"resolve");function Fy(e){if(!e)return "";let t=e.lastIndexOf("/");return e.slice(0,t+1)}a(Fy,"stripFilename");var Ct=0,Ly=1,Dy=2,qy=3,By=4;function zy(e,t){let n=gf(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=gf(e,r+1))e[r]=Uy(e[r],t);return e}a(zy,"maybeSort");function gf(e,t){for(let n=t;n<e.length;n++)if(!Wy(e[n]))return n;return e.length}a(gf,"nextUnsortedSegmentLine");function Wy(e){for(let t=1;t<e.length;t++)if(e[t][Ct]<e[t-1][Ct])return false;return true}a(Wy,"isSorted");function Uy(e,t){return t||(e=e.slice()),e.sort(Jy)}a(Uy,"sortSegments");function Jy(e,t){return e[Ct]-t[Ct]}a(Jy,"sortComparator");var yo=false;function Vy(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),i=e[o][Ct]-t;if(i===0)return yo=true,o;i<0?n=o+1:r=o-1;}return yo=false,n-1}a(Vy,"binarySearch");function Ky(e,t,n){for(let r=n+1;r<e.length&&e[r][Ct]===t;n=r++);return n}a(Ky,"upperBound");function Xy(e,t,n){for(let r=n-1;r>=0&&e[r][Ct]===t;n=r--);return n}a(Xy,"lowerBound");function Gy(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}a(Gy,"memoizedState");function Yy(e,t,n,r){let{lastKey:o,lastNeedle:i,lastIndex:s}=n,l=0,c=e.length-1;if(r===o){if(t===i)return yo=s!==-1&&e[s][Ct]===t,s;t>=i?l=s===-1?0:s:c=s;}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=Vy(e,t,l,c)}a(Yy,"memoizedBinarySearch");var Hy="`line` must be greater than 0 (lines start at line 1)",Zy="`column` must be greater than or equal to 0 (columns start at column 0)",yf=-1,Qy=1,Ms=class{static{a(this,"TraceMap");}constructor(t,n){let r=typeof t=="string";if(!r&&t._decodedMemo)return t;let o=r?JSON.parse(t):t,{version:i,file:s,names:l,sourceRoot:c,sources:u,sourcesContent:f}=o;this.version=i,this.file=s,this.names=l||[],this.sourceRoot=c,this.sources=u,this.sourcesContent=f,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;let h=mf(c||"",Fy(n));this.resolvedSources=u.map(d=>mf(d||"",h));let{mappings:m}=o;typeof m=="string"?(this._encoded=m,this._decoded=void 0):(this._encoded=void 0,this._decoded=zy(m,r)),this._decodedMemo=Gy(),this._bySources=void 0,this._bySourceMemos=void 0;}};function eb(e){var t;return (t=e)._decoded||(t._decoded=Ey(e._encoded))}a(eb,"decodedMappings");function tb(e,t){let{line:n,column:r,bias:o}=t;if(n--,n<0)throw new Error(Hy);if(r<0)throw new Error(Zy);let i=eb(e);if(n>=i.length)return mo(null,null,null,null);let s=i[n],l=nb(s,e._decodedMemo,n,r,o||Qy);if(l===-1)return mo(null,null,null,null);let c=s[l];if(c.length===1)return mo(null,null,null,null);let{names:u,resolvedSources:f}=e;return mo(f[c[Ly]],c[Dy]+1,c[qy],c.length===5?u[c[By]]:null)}a(tb,"originalPositionFor");function mo(e,t,n,r){return {source:e,line:t,column:n,name:r}}a(mo,"OMapping");function nb(e,t,n,r,o){let i=Yy(e,r,t,n);return yo?i=(o===yf?Ky:Xy)(e,r,i):o===yf&&i++,i===-1||i===e.length?-1:i}a(nb,"traceSegmentInternal");function Af(e){return e!=null}a(Af,"notNullish");function rb(e){return e===null||typeof e!="function"&&typeof e!="object"}a(rb,"isPrimitive");function go(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(go,"isObject");function ob(e){let t=-1,n=null,r=0,o=0,i=null;for(;t<=e.length;){i=e[t],t++;let s=e[t];if((s==='"'||s==="'"||s==="`")&&i!=="\\"&&(n===s?n=null:n||(n=s)),n||(s==="("&&r++,s===")"&&o++),r&&o&&r===o)return t}return null}a(ob,"getCallLastIndex");var kf=/^\s*at .*(?:\S:\d+|\(native\))/m,ib=/^(?:eval@)?(?:\[native code\])?$/,sb=["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 Nf(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(Nf,"extractLocation");function ab(e){let t=e.trim();if(ib.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let n=/((.*".+"[^@]*)?[^@]*)(@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,[i,s,l]=Nf(t.replace(n,""));return !i||!s||!l?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(l)}}a(ab,"parseSingleFFOrSafariStack");function cb(e){let t=e.trim();if(!kf.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let[o,i,s]=Nf(r?r[1]:n),l=r&&n||"",c=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !c||!i||!s?null:(l.startsWith("async ")&&(l=l.slice(6)),c.startsWith("file://")&&(c=c.slice(7)),c=c.startsWith("node:")||c.startsWith("internal:")?c:gs(c),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:c,line:Number.parseInt(i),column:Number.parseInt(s)})}a(cb,"parseSingleV8Stack");function $s(e,t={}){let{ignoreStackEntries:n=sb}=t;return (kf.test(e)?ub(e):lb(e)).map(o=>{var i;t.getUrlId&&(o.file=t.getUrlId(o.file));let s=(i=t.getSourceMap)===null||i===void 0?void 0:i.call(t,o.file);if(!s||typeof s!="object"||!s.version)return bf(n,o.file)?null:o;let l=new Ms(s),{line:c,column:u,source:f,name:h}=tb(l,o),m=o.file;if(f){let d=o.file.startsWith("file://")?o.file:`file://${o.file}`,g=s.sourceRoot?new URL(s.sourceRoot,d):d;m=new URL(f,g).pathname,m.match(/\/\w:\//)&&(m=m.slice(1));}return bf(n,m)?null:c!=null&&u!=null?{line:c,column:u,file:m,method:h||o.method}:o}).filter(o=>o!=null)}a($s,"parseStacktrace");function bf(e,t){return e.some(n=>t.match(n))}a(bf,"shouldFilter");function lb(e){return e.split(`
130
- `).map(t=>ab(t)).filter(Af)}a(lb,"parseFFOrSafariStackTrace");function ub(e){return e.split(`
131
- `).map(t=>cb(t)).filter(Af)}a(ub,"parseV8Stacktrace");function fb(e,t={}){if(!e||rb(e))return [];if(e.stacks)return e.stacks;let n=e.stack||"",r=typeof n=="string"?$s(n,t):[];if(!r.length){let o=e;o.fileName!=null&&o.lineNumber!=null&&o.columnNumber!=null&&(r=$s(`${o.fileName}:${o.lineNumber}:${o.columnNumber}`,t)),o.sourceURL!=null&&o.line!=null&&o._column!=null&&(r=$s(`${o.sourceURL}:${o.line}:${o.column}`,t));}return t.frameFilter&&(r=r.filter(o=>t.frameFilter(e,o)!==false)),e.stacks=r,r}a(fb,"parseErrorStacktrace");a(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(a((r,o)=>{let[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"));}catch{}function db(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(db,"getDefaultExportFromCjs");var As,wf;function pb(){if(wf)return As;wf=1;var e,t,n,r,o,i,s,l,c,u,f,h,m,d,g,p,S,T,I;return m=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,h=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,g=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?: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,p=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,I=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,r=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,T=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,S=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(l.source),As=a(function*(P,{jsx:A=false}={}){var $,j,k,O,M,K,_,V,le,U,Z,R,Y,L;for({length:K}=P,O=0,M="",L=[{tag:"JS"}],$=[],Z=0,R=false;O<K;){switch(V=L[L.length-1],V.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(P[O]==="/"&&(T.test(M)||i.test(M))&&(m.lastIndex=O,_=m.exec(P))){O=m.lastIndex,M=_[0],R=true,yield {type:"RegularExpressionLiteral",value:_[0],closed:_[1]!==void 0&&_[1]!=="\\"};continue}if(h.lastIndex=O,_=h.exec(P)){switch(Y=_[0],le=h.lastIndex,U=Y,Y){case "(":M==="?NonExpressionParenKeyword"&&L.push({tag:"JSNonExpressionParen",nesting:Z}),Z++,R=false;break;case ")":Z--,R=true,V.tag==="JSNonExpressionParen"&&Z===V.nesting&&(L.pop(),U="?NonExpressionParenEnd",R=false);break;case "{":h.lastIndex=0,k=!S.test(M)&&(T.test(M)||i.test(M)),$.push(k),R=false;break;case "}":switch(V.tag){case "InterpolationInTemplate":if($.length===V.nesting){p.lastIndex=O,_=p.exec(P),O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",R=false,yield {type:"TemplateMiddle",value:_[0]}):(L.pop(),R=true,yield {type:"TemplateTail",value:_[0],closed:_[1]==="`"});continue}break;case "InterpolationInJSX":if($.length===V.nesting){L.pop(),O+=1,M="}",yield {type:"JSXPunctuator",value:"}"};continue}}R=$.pop(),U=R?"?ExpressionBraceEnd":"}";break;case "]":R=true;break;case "++":case "--":U=R?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(A&&(T.test(M)||i.test(M))){L.push({tag:"JSXTag"}),O+=1,M="<",yield {type:"JSXPunctuator",value:Y};continue}R=false;break;default:R=false;}O=le,M=U,yield {type:"Punctuator",value:Y};continue}if(e.lastIndex=O,_=e.exec(P)){switch(O=e.lastIndex,U=_[0],_[0]){case "for":case "if":case "while":case "with":M!=="."&&M!=="?."&&(U="?NonExpressionParenKeyword");}M=U,R=!i.test(_[0]),yield {type:_[1]==="#"?"PrivateIdentifier":"IdentifierName",value:_[0]};continue}if(g.lastIndex=O,_=g.exec(P)){O=g.lastIndex,M=_[0],R=true,yield {type:"StringLiteral",value:_[0],closed:_[2]!==void 0};continue}if(f.lastIndex=O,_=f.exec(P)){O=f.lastIndex,M=_[0],R=true,yield {type:"NumericLiteral",value:_[0]};continue}if(p.lastIndex=O,_=p.exec(P)){O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",L.push({tag:"InterpolationInTemplate",nesting:$.length}),R=false,yield {type:"TemplateHead",value:_[0]}):(R=true,yield {type:"NoSubstitutionTemplate",value:_[0],closed:_[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(n.lastIndex=O,_=n.exec(P)){switch(O=n.lastIndex,U=_[0],_[0]){case "<":L.push({tag:"JSXTag"});break;case ">":L.pop(),M==="/"||V.tag==="JSXTagEnd"?(U="?JSX",R=true):L.push({tag:"JSXChildren"});break;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),U="?InterpolationInJSX",R=false;break;case "/":M==="<"&&(L.pop(),L[L.length-1].tag==="JSXChildren"&&L.pop(),L.push({tag:"JSXTagEnd"}));}M=U,yield {type:"JSXPunctuator",value:_[0]};continue}if(t.lastIndex=O,_=t.exec(P)){O=t.lastIndex,M=_[0],yield {type:"JSXIdentifier",value:_[0]};continue}if(r.lastIndex=O,_=r.exec(P)){O=r.lastIndex,M=_[0],yield {type:"JSXString",value:_[0],closed:_[2]!==void 0};continue}break;case "JSXChildren":if(o.lastIndex=O,_=o.exec(P)){O=o.lastIndex,M=_[0],yield {type:"JSXText",value:_[0]};continue}switch(P[O]){case "<":L.push({tag:"JSXTag"}),O++,M="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),O++,M="?InterpolationInJSX",R=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(I.lastIndex=O,_=I.exec(P)){O=I.lastIndex,yield {type:"WhiteSpace",value:_[0]};continue}if(l.lastIndex=O,_=l.exec(P)){O=l.lastIndex,R=false,s.test(M)&&(M="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:_[0]};continue}if(c.lastIndex=O,_=c.exec(P)){O=c.lastIndex,u.test(_[0])&&(R=false,s.test(M)&&(M="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:_[0],closed:_[1]!==void 0};continue}if(d.lastIndex=O,_=d.exec(P)){O=d.lastIndex,R=false,yield {type:"SingleLineComment",value:_[0]};continue}j=String.fromCodePoint(P.codePointAt(O)),O+=j.length,M=j,R=false,yield {type:V.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:j};}},"jsTokens_1"),As}a(pb,"requireJsTokens");pb();var Mf={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Mf.keyword);new Set(Mf.strict);var mb={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},gb=Object.entries(mb);function Ls(e){return String(e)}a(Ls,"a");Ls.open="";Ls.close="";function yb(e=false){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return !("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}a(yb,"C");function bb(e=false){let t=yb(e),n=a((s,l,c,u)=>{let f="",h=0;do f+=s.substring(h,u)+c,h=u+l.length,u=s.indexOf(l,h);while(~u);return f+s.substring(h)},"i"),r=a((s,l,c=s)=>{let u=a(f=>{let h=String(f),m=h.indexOf(l,s.length);return ~m?s+n(h,l,c,m)+l:s+h+l},"o");return u.open=s,u.close=l,u},"g"),o={isColorSupported:t},i=a(s=>`\x1B[${s}m`,"d");for(let[s,l]of gb)o[s]=t?r(i(l[0]),i(l[1]),l[2]):Ls;return o}a(bb,"p");bb();var Ds=/\r?\n/;function wb(e,t,n){let r=e.split(Ds),o=/\r\n/.test(e)?2:1,i=0;if(t>r.length)return e.length;for(let s=0;s<t-1;s++)i+=r[s].length+o;return i+n}a(wb,"positionToOffset");function Sb(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(Ds),r=/\r\n/.test(e)?2:1,o=0,i=0;for(;i<n.length;i++){let s=n[i].length+r;if(o+s>=t)break;o+=s;}return i+1}a(Sb,"offsetToLineNumber");async function Tb(e,t){let n=(await Promise.resolve().then(()=>(uf(),lf))).default,r=new Set(t.map(o=>o.file));await Promise.all(Array.from(r).map(async o=>{let i=t.filter(u=>u.file===o),s=await e.readSnapshotFile(o),l=new n(s);for(let u of i){let f=wb(s,u.line,u.column);_b(s,l,f,u.snapshot);}let c=l.toString();c!==s&&await e.saveSnapshotFile(o,c);}));}a(Tb,"saveInlineSnapshots");var xb=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function vb(e,t,n,r){let o=e.slice(n),i=xb.exec(o);if(!i)return false;o=o.slice(i.index);let s=ob(o);if(s===null)return false;s+=n+i.index;let l=n+i.index+i[0].length,c=Eb(e,l),u=`, ${Rf(r,e,n)}`;return c===s?t.appendLeft(s,u):t.overwrite(c,s,u),true}a(vb,"replaceObjectSnap");function Eb(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let o=e[t++];o==="{"?n++:o==="}"&&r++;}return t}a(Eb,"getObjectShapeEndIndex");function Rf(e,t,n){let r=Sb(t,n),i=t.split(Ds)[r-1].match(/^\s*/)[0]||"",s=i.includes(" ")?`${i} `:`${i} `,l=e.trim().replace(/\\/g,"\\\\").split(/\n/g),c=l.length<=1,u="`";return c?`${u}${l.join(`
132
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${u}`:`${u}
133
- ${l.map(f=>f?s+f:"").join(`
134
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
135
- ${i}${u}`}a(Rf,"prepareSnapString");var Sf="toMatchInlineSnapshot",Tf="toThrowErrorMatchingInlineSnapshot";function Ib(e,t){let n=t-Sf.length;if(e.slice(n,t)===Sf)return {code:e.slice(n),index:n};let r=t-Tf.length;return e.slice(t-r,t)===Tf?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}a(Ib,"getCodeStartingAtIndex");var Cb=/(?: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 _b(e,t,n,r){let{code:o,index:i}=Ib(e,n),s=Cb.exec(o),l=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==l?.index)return vb(e,t,i,r);let c=s[1],u=i+s.index+s[0].length,f=Rf(r,e,i);if(c===")")return t.appendRight(u-1,f),true;let m=new RegExp(`(?:^|[^\\\\])${c}`).exec(e.slice(u));if(!m)return false;let d=u+m.index+m[0].length;return t.overwrite(u-1,d,f),true}a(_b,"replaceInlineSnap");var Ob=/^([^\S\n]*)\S/m;function qs(e){let t=e.match(Ob);if(!t||!t[1])return e;let n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==""||r[r.length-1].trim()!=="")return e;for(let o=1;o<r.length-1;o++)if(r[o]!==""){if(r[o].indexOf(n)!==0)return e;r[o]=r[o].substring(n.length);}return r[r.length-1]="",e=r.join(`
136
- `),e}a(qs,"stripSnapshotIndentation");async function Pb(e,t){await Promise.all(t.map(async n=>{n.readonly||await e.saveSnapshotFile(n.file,n.snapshot);}));}a(Pb,"saveRawSnapshots");var ks={exports:{}},xf;function $b(){if(xf)return ks.exports;xf=1;var e=a(function(t,n){var r,o,i=1,s=0,l=0,c=String.alphabet;function u(f,h,m){if(m){for(r=h;m=u(f,r),m<76&&m>65;)++r;return +f.slice(h-1,r)}return m=c&&c.indexOf(f.charAt(h)),m>-1?m+76:(m=f.charCodeAt(h)||0,m<45||m>127?m:m<46?65:m<48?m-1:m<58?m+18:m<65?m-11:m<91?m+11:m<97?m-37:m<123?m+5:m-63)}if(a(u,"getCode"),(t+="")!=(n+="")){for(;i;)if(o=u(t,s++),i=u(n,l++),o<76&&i<76&&o>66&&i>66&&(o=u(t,s,s),i=u(n,l,s=r),l=r),o!=i)return o<i?-1:1}return 0},"naturalCompare");try{ks.exports=e;}catch{String.naturalCompare=e;}return ks.exports}a($b,"requireNaturalCompare");var Ab=$b(),kb=db(Ab),Nb=a((e,t,n,r,o,i)=>{let s=e.getMockName(),l=s==="vi.fn()"?"":` ${s}`,c="";if(e.mock.calls.length!==0){let u=n+t.indent;c=` {${t.spacingOuter}${u}"calls": ${i(e.mock.calls,t,u,r,o)}${t.min?", ":","}${t.spacingOuter}${u}"results": ${i(e.mock.results,t,u,r,o)}${t.min?"":","}${t.spacingOuter}${n}}`;}return `[MockFunction${l}]${c}`},"serialize$1"),Mb=a(e=>e&&!!e._isMockFunction,"test"),Rb={serialize:Nb,test:Mb},{DOMCollection:jb,DOMElement:Fb,Immutable:Lb,ReactElement:Db,ReactTestComponent:qb,AsymmetricMatcher:Bb}=gt,Rs=[qb,Db,Fb,jb,Lb,Bb,Rb];function jf(e){Rs=[e].concat(Rs);}a(jf,"addSerializer");function zb(){return Rs}a(zb,"getSerializers");function Wb(e,t){return `${e} ${t}`}a(Wb,"testNameToKey");function Ub(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}a(Ub,"keyToTestName");function Jb(e,t){let n=t.updateSnapshot,r=Object.create(null),o="",i=false;if(e!=null)try{o=e,new Function("exports",o)(r);}catch{}return (n==="all"||n==="new")&&o&&(i=true),{data:r,dirty:i}}a(Jb,"getSnapshotData");function Vb(e){return e.includes(`
137
- `)?`
138
- ${e}
139
- `:e}a(Vb,"addExtraLineBreaks");function vf(e){return e.length>2&&e.startsWith(`
140
- `)&&e.endsWith(`
141
- `)?e.slice(1,-1):e}a(vf,"removeExtraLineBreaks");var Kb=true,Xb=false;function Gb(e,t=2,n={}){return Bs(je(e,{escapeRegex:Kb,indent:t,plugins:zb(),printFunctionName:Xb,...n}))}a(Gb,"serialize");function Yb(e){return e.replace(/`|\\|\$\{/g,"\\$&")}a(Yb,"escapeBacktickString");function Ef(e){return `\`${Yb(e)}\``}a(Ef,"printBacktickString");function Bs(e){return e.replace(/\r\n|\r/g,`
142
- `)}a(Bs,"normalizeNewlines");async function Hb(e,t,n){let r=Object.keys(t).sort(kb).map(l=>`exports[${Ef(l)}] = ${Ef(Bs(t[l]))};`),o=`${e.getHeader()}
143
-
144
- ${r.join(`
145
-
146
- `)}
147
- `,i=await e.readSnapshotFile(n);i!=null&&i===o||await e.saveSnapshotFile(n,o);}a(Hb,"saveSnapshotFile");function js(e=[],t=[]){let n=Array.from(e);return t.forEach((r,o)=>{let i=n[o];Array.isArray(e[o])?n[o]=js(e[o],r):go(i)?n[o]=zs(e[o],r):n[o]=r;}),n}a(js,"deepMergeArray");function zs(e,t){if(go(e)&&go(t)){let n={...e};return Object.keys(t).forEach(r=>{go(t[r])&&!t[r].$$typeof?r in e?n[r]=zs(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=js(e[r],t[r]):Object.assign(n,{[r]:t[r]});}),n}else if(Array.isArray(e)&&Array.isArray(t))return js(e,t);return e}a(zs,"deepMergeSnapshot");var bo=class extends Map{static{a(this,"DefaultMap");}constructor(t,n){super(n),this.defaultFn=t;}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},Bt=class extends bo{static{a(this,"CounterMap");}constructor(){super(()=>0);}_total;valueOf(){return this._total=this.total()}increment(t){typeof this._total<"u"&&this._total++,this.set(t,this.get(t)+1);}total(){if(typeof this._total<"u")return this._total;let t=0;for(let n of this.values())t+=n;return t}};function If(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}a(If,"isSameStackPosition");var Fs=class e{static{a(this,"SnapshotState");}_counters=new Bt;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new bo(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new Bt;_matched=new Bt;_unmatched=new Bt;_updated=new Bt;get added(){return this._added}set added(t){this._added._total=t;}get matched(){return this._matched}set matched(t){this._matched._total=t;}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t;}get updated(){return this._updated}set updated(t){this._updated._total=t;}constructor(t,n,r,o){this.testFilePath=t,this.snapshotPath=n;let{data:i,dirty:s}=Jb(r,o);this._fileExists=r!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=s,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=o.expand||false,this._updateSnapshot=o.updateSnapshot,this._snapshotFormat={printBasicPrototype:false,escapeString:false,...o.snapshotFormat},this._environment=o.snapshotEnvironment;}static async create(t,n){let r=await n.snapshotEnvironment.resolvePath(t),o=await n.snapshotEnvironment.readSnapshotFile(r);return new e(t,r,o,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(t.length))&&this._uncheckedKeys.delete(n);});}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==t);for(let n of this._testIdToKeys.get(t)){let r=Ub(n),o=this._counters.get(r);o>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(r,o-1));}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t);}_inferInlineSnapshotStack(t){let n=t.findIndex(o=>o.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return t[n+3];let r=t.findIndex(o=>o.method.includes("__INLINE_SNAPSHOT__"));return r!==-1?t[r+2]:null}_addSnapshot(t,n,r){this._dirty=true,r.stack?this._inlineSnapshots.push({snapshot:n,testId:r.testId,...r.stack}):r.rawSnapshot?this._rawSnapshots.push({...r.rawSnapshot,snapshot:n}):this._snapshotData[t]=n;}async save(){let t=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,r=this._rawSnapshots.length,o=!t&&!n&&!r,i={deleted:false,saved:false};return (this._dirty||this._uncheckedKeys.size)&&!o?(t&&(await Hb(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=true),n&&await Tb(this._environment,this._inlineSnapshots),r&&await Pb(this._environment,this._rawSnapshots),i.saved=true):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=false),i.deleted=true),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=true,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear());}match({testId:t,testName:n,received:r,key:o,inlineSnapshot:i,isInline:s,error:l,rawSnapshot:c}){this._counters.increment(n);let u=this._counters.get(n);o||(o=Wb(n,u)),this._testIdToKeys.get(t).push(o),s&&this._snapshotData[o]!==void 0||this._uncheckedKeys.delete(o);let f=c&&typeof r=="string"?r:Gb(r,void 0,this._snapshotFormat);c||(f=Vb(f)),c&&c.content&&c.content.match(/\r\n/)&&!f.match(/\r\n/)&&(c.content=Bs(c.content));let h=s?i:c?c.content:this._snapshotData[o],m=c?h:h?.trim(),d=m===(c?f:f.trim()),g=h!==void 0,p=s||this._fileExists||c&&c.content!=null;d&&!s&&!c&&(this._snapshotData[o]=f);let S;if(s){var T,I;let P=fb(l||new Error("snapshot"),{ignoreStackEntries:[]}),A=this._inferInlineSnapshotStack(P);if(!A)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
148
- ${JSON.stringify(P)}`);S=((T=(I=this.environment).processStackTrace)===null||T===void 0?void 0:T.call(I,A))||A,S.column--;let $=this._inlineSnapshotStacks.filter(j=>If(j,S));if($.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(k=>!If(k,S));let j=$.find(k=>k.snapshot!==f);if(j)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:j.snapshot})}this._inlineSnapshotStacks.push({...S,testId:t,snapshot:f});}return g&&this._updateSnapshot==="all"||(!g||!p)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?d?this.matched.increment(t):(g?this.updated.increment(t):this.added.increment(t),this._addSnapshot(o,f,{stack:S,testId:t,rawSnapshot:c})):(this._addSnapshot(o,f,{stack:S,testId:t,rawSnapshot:c}),this.added.increment(t)),{actual:"",count:u,expected:"",key:o,pass:true}):d?(this.matched.increment(t),{actual:"",count:u,expected:"",key:o,pass:true}):(this.unmatched.increment(t),{actual:c?f:vf(f),count:u,expected:m!==void 0?c?m:vf(m):void 0,key:o,pass:false})}async pack(){let t={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),r=this.getUncheckedKeys();n&&this.removeUncheckedKeys();let o=await this.save();return t.fileDeleted=o.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=o.deleted?0:n,t.uncheckedKeys=Array.from(r),t}};function Cf(e,t,n,r){let o=new Error(e);return Object.defineProperty(o,"actual",{value:n,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"expected",{value:r,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}a(Cf,"createMismatchError");var wo=class{static{a(this,"SnapshotClient");}snapshotStateMap=new Map;constructor(t={}){this.options=t;}async setup(t,n){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await Fs.create(t,n));}async finish(t){let r=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),r}skipTest(t,n){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(n);}clearTest(t,n){this.getSnapshotState(t).clearTest(n);}getSnapshotState(t){let n=this.snapshotStateMap.get(t);if(!n)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(t){let{filepath:n,name:r,testId:o=r,message:i,isInline:s=false,properties:l,inlineSnapshot:c,error:u,errorMessage:f,rawSnapshot:h}=t,{received:m}=t;if(!n)throw new Error("Snapshot cannot be used outside of test");let d=this.getSnapshotState(n);if(typeof l=="object"){if(typeof m!="object"||!m)throw new Error("Received value must be an object when the matcher has properties");try{var g,p;if(((g=(p=this.options).isEqual)===null||g===void 0?void 0:g.call(p,m,l))??false)m=zs(m,l);else throw Cf("Snapshot properties mismatched",d.expand,m,l)}catch($){throw $.message=f||"Snapshot mismatched",$}}let S=[r,...i?[i]:[]].join(" > "),{actual:T,expected:I,key:P,pass:A}=d.match({testId:o,testName:S,received:m,isInline:s,error:u,inlineSnapshot:c,rawSnapshot:h});if(!A)throw Cf(`Snapshot \`${P||"unknown"}\` mismatched`,d.expand,h?T:T?.trim(),h?I:I?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");let{filepath:n,rawSnapshot:r}=t;if(r.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");let o=this.getSnapshotState(n);t.filepath||(t.filepath=n),r.file=await o.environment.resolveRawPath(n,r.file),r.content=await o.environment.readSnapshotFile(r.file)??void 0;}return this.assert(t)}clear(){this.snapshotStateMap.clear();}};var Ve=Date,Ws=null,_t=class e extends Ve{static{a(this,"MockDate");}constructor(t,n,r,o,i,s,l){super();let c;switch(arguments.length){case 0:Ws!==null?c=new Ve(Ws.valueOf()):c=new Ve;break;case 1:c=new Ve(t);break;default:r=typeof r>"u"?1:r,o=o||0,i=i||0,s=s||0,l=l||0,c=new Ve(t,n,r,o,i,s,l);break}return Object.setPrototypeOf(c,e.prototype),c}};_t.UTC=Ve.UTC;_t.now=function(){return new _t().valueOf()};_t.parse=function(e){return Ve.parse(e)};_t.toString=function(){return Ve.toString()};function Ff(e){let t=new Ve(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=_t,Ws=t.valueOf();}a(Ff,"mockDate");function Lf(){globalThis.Date=Ve;}a(Lf,"resetDate");var Zb=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function Qb(e){return a(function(n,r={}){let i=en().config.expect?.poll??{},{interval:s=i.interval??50,timeout:l=i.timeout??1e3,message:c}=r,u=e(null,c).withContext({poll:true});n=n.bind(u);let f=Se.flag(u,"vitest-test");if(!f)throw new Error("expect.poll() must be called inside a test");let h=new Proxy(u,{get(m,d,g){let p=Reflect.get(m,d,g);if(typeof p!="function")return p instanceof b?h:p;if(d==="assert")return p;if(typeof d=="string"&&Zb.includes(d))throw new SyntaxError(`expect.poll() is not supported in combination with .${d}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...S){let T=new Error("STACK_TRACE_ERROR"),I=a(()=>new Promise(($,j)=>{let k,O,M,{setTimeout:K,clearTimeout:_}=ft(),V=a(async()=>{try{Se.flag(u,"_name",d);let le=await n();Se.flag(u,"object",le),$(await p.call(u,...S)),_(k),_(O);}catch(le){M=le,Se.flag(u,"_isLastPollAttempt")||(k=K(V,s));}},"check");O=K(()=>{_(k),Se.flag(u,"_isLastPollAttempt",true);let le=a(U=>{j(Df(new Error("Matcher did not succeed in time.",{cause:U}),T));},"rejectWithCause");V().then(()=>le(M)).catch(U=>le(U));},l),V();}),"promise"),P=false;f.onFinished??=[],f.onFinished.push(()=>{if(!P){let $=Se.flag(u,"negate")?"not.":"",k=`expect.${Se.flag(u,"_poll.element")?"element(locator)":"poll(assertion)"}.${$}${String(d)}()`,O=new Error(`${k} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
149
-
150
- await ${k}
151
- `);throw Df(O,T)}});let A;return {then($,j){return P=true,(A||=I()).then($,j)},catch($){return (A||=I()).catch($)},finally($){return (A||=I()).finally($)},[Symbol.toStringTag]:"Promise"}}}});return h},"poll")}a(Qb,"createExpectPoll");function Df(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(Df,"copyStackTrace$1");function ew(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}a(ew,"commonjsRequire");var So={exports:{}},tw=So.exports,qf;function nw(){return qf||(qf=1,function(e,t){(function(){(function(n){return typeof ew=="function"?e.exports=n:chai.use(n)})(function(n,r){var o=n.Assertion,i=o.prototype;o.addMethod("containSubset",function(l){var c=r.flag(this,"object"),u=n.config.showDiff;i.assert.call(this,s(l,c),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",l,c,u);}),n.assert.containSubset=function(l,c,u){new n.Assertion(l,u).to.be.containSubset(c);};function s(l,c){if(l===c)return true;if(typeof c!=typeof l)return false;if(typeof l!="object"||l===null)return l===c;if(l&&!c)return false;if(Array.isArray(l)){if(typeof c.length!="number")return false;var u=Array.prototype.slice.call(c);return l.every(function(f){return u.some(function(h){return s(f,h)})})}return l instanceof Date?c instanceof Date?l.getTime()===c.getTime():false:Object.keys(l).every(function(f){var h=l[f],m=c[f];return typeof h=="object"&&h!==null&&m!==null?s(h,m):typeof h=="function"?h(m):m===h})}a(s,"compare");});}).call(tw);}(So)),So.exports}a(nw,"requireChaiSubset");var rw=nw(),ow=Zu(rw);function iw(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(expected)`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(iw,"createAssertionMessage");function sw(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??=[],o.onFinished.push(()=>{if(!i){let l=(globalThis.__vitest_worker__?.onFilterStackTrace||(c=>c||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
152
- `,l].join(""));}}),{then(s,l){return i=true,t.then(s,l)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(sw,"recordAsyncExpect");var Us;function Fn(){return Us||(Us=new wo({isEqual:a((e,t)=>ee(e,t,[Fe,Lt]),"isEqual")})),Us}a(Fn,"getSnapshotClient");function Bf(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e();}catch(n){return n}throw new Error("snapshot function didn't throw")}a(Bf,"getError");function Ln(e){return {filepath:e.file.filepath,name:co(e).slice(1).join(" > "),testId:e.id}}a(Ln,"getTestNames");var aw=a((e,t)=>{function n(r,o){let i=t.flag(o,"vitest-test");if(!i)throw new Error(`'${r}' cannot be used without test context`);return i}a(n,"getTest");for(let r of ["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,function(o,i){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);let l=t.flag(this,"object"),c=n(r,this);typeof o=="string"&&typeof i>"u"&&(i=o,o=void 0);let u=t.flag(this,"message");Fn().assert({received:l,message:i,isInline:false,properties:o,errorMessage:u,...Ln(c)});});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,o){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');let s=new Error("resolves"),l=t.flag(this,"object"),c=n("toMatchFileSnapshot",this),u=t.flag(this,"message"),f=Fn().assertRaw({received:l,message:o,isInline:false,rawSnapshot:{file:r},errorMessage:u,...Ln(c)});return sw(c,f,iw(t,this),s)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",a(function(o,i,s){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');let c=n("toMatchInlineSnapshot",this);if(c.each||c.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let f=t.flag(this,"object"),h=t.flag(this,"error");typeof o=="string"&&(s=i,i=o,o=void 0),i&&(i=qs(i));let m=t.flag(this,"message");Fn().assert({received:f,message:s,isInline:true,properties:o,inlineSnapshot:i,error:h,errorMessage:m,...Ln(c)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(r){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let i=t.flag(this,"object"),s=n("toThrowErrorMatchingSnapshot",this),l=t.flag(this,"promise"),c=t.flag(this,"message");Fn().assert({received:Bf(i,l),message:r,errorMessage:c,...Ln(s)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",a(function(o,i){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let l=n("toThrowErrorMatchingInlineSnapshot",this);if(l.each||l.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let u=t.flag(this,"object"),f=t.flag(this,"error"),h=t.flag(this,"promise"),m=t.flag(this,"message");o&&(o=qs(o)),Fn().assert({received:Bf(u,h),message:i,inlineSnapshot:o,isInline:true,error:f,errorMessage:m,...Ln(l)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.expect,"addSnapshotSerializer",jf);},"SnapshotPlugin");it(du);it(hu);it(ow);it(aw);it(uu);function lh(e){let t=a((i,s)=>{let{assertionCalls:l}=Zt(t);Jr({assertionCalls:l+1},t);let c=Tt(i,s),u=e||$n();return u?c.withTest(u):c},"expect");Object.assign(t,Tt),Object.assign(t,globalThis[zr]),t.getState=()=>Zt(t),t.setState=i=>Jr(i,t);let n=Zt(globalThis[En])||{};Jr({...n,assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:Yu(),get testPath(){return en().filepath},currentTestName:e?Es(e):n.currentTestName},t),t.extend=i=>Tt.extend(t,i),t.addEqualityTesters=i=>iu(i),t.soft=(...i)=>t(...i).withContext({soft:true}),t.poll=Qb(t),t.unreachable=i=>{y.fail(`expected${i?` "${i}" `:" "}not to be reached`);};function r(i){let s=a(()=>new Error(`expected number of assertions to be ${i}, but got ${t.getState().assertionCalls}`),"errorGen");Error.captureStackTrace&&Error.captureStackTrace(s(),r),t.setState({expectedAssertionsNumber:i,expectedAssertionsNumberErrorGen:s});}a(r,"assertions");function o(){let i=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(i,o),t.setState({isExpectingAssertions:true,isExpectingAssertionsError:i});}return a(o,"hasAssertions"),Se.addMethod(t,"assertions",r),Se.addMethod(t,"hasAssertions",o),t.extend(nu),t}a(lh,"createExpect");var De=lh();Object.defineProperty(globalThis,En,{value:De,writable:true,configurable:true});var nn={},Js,zf;function cw(){if(zf)return Js;zf=1;var e;return typeof lo<"u"?e=lo:typeof window<"u"?e=window:e=self,Js=e,Js}a(cw,"requireGlobal");var Vs,Wf;function lw(){if(Wf)return Vs;Wf=1;let e;try{e=false;}catch{e=true;}return Vs=e,Vs}a(lw,"requireThrowsOnProto");var Ks,Uf;function on(){if(Uf)return Ks;Uf=1;var e=Function.call,t=lw(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),Ks=a(function(o){return Object.getOwnPropertyNames(o).reduce(function(i,s){return n.includes(s)||typeof o[s]!="function"||(i[s]=e.bind(o[s])),i},Object.create(null))},"copyPrototypeMethods"),Ks}a(on,"requireCopyPrototypeMethods");var Xs,Jf;function xo(){if(Jf)return Xs;Jf=1;var e=on();return Xs=e(Array.prototype),Xs}a(xo,"requireArray");var Gs,Vf;function uw(){if(Vf)return Gs;Vf=1;var e=xo().every;function t(o,i){return o[i.id]===void 0&&(o[i.id]=0),o[i.id]<i.callCount}a(t,"hasCallsLeft");function n(o,i,s,l){var c=true;return s!==l.length-1&&(c=i.calledBefore(l[s+1])),t(o,i)&&c?(o[i.id]+=1,true):false}a(n,"checkAdjacentCalls");function r(o){var i={},s=arguments.length>1?arguments:o;return e(s,n.bind(null,i))}return a(r,"calledInOrder"),Gs=r,Gs}a(uw,"requireCalledInOrder");var Ys,Kf;function fw(){if(Kf)return Ys;Kf=1;function e(t){return t.constructor&&t.constructor.name||null}return a(e,"className"),Ys=e,Ys}a(fw,"requireClassName");var Hs={},Xf;function hw(){return Xf||(Xf=1,function(e){e.wrap=function(t,n){var r=a(function(){return e.printWarning(n),t.apply(this,arguments)},"wrapped");return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(t,n){return `${t}.${n} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t);};}(Hs)),Hs}a(hw,"requireDeprecated");var Zs,Gf;function dw(){return Gf||(Gf=1,Zs=a(function(t,n){var r=true;try{t.forEach(function(){if(!n.apply(this,arguments))throw new Error});}catch{r=false;}return r},"every")),Zs}a(dw,"requireEvery");var Qs,Yf;function pw(){return Yf||(Yf=1,Qs=a(function(t){if(!t)return "";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}},"functionName")),Qs}a(pw,"requireFunctionName");var ea,Hf;function mw(){if(Hf)return ea;Hf=1;var e=xo().sort,t=xo().slice;function n(o,i){var s=o.getCall(0),l=i.getCall(0),c=s&&s.callId||-1,u=l&&l.callId||-1;return c<u?-1:1}a(n,"comparator");function r(o){return e(t(o),n)}return a(r,"orderByFirstCall"),ea=r,ea}a(mw,"requireOrderByFirstCall");var ta,Zf;function gw(){if(Zf)return ta;Zf=1;var e=on();return ta=e(Function.prototype),ta}a(gw,"require_function");var na,Qf;function yw(){if(Qf)return na;Qf=1;var e=on();return na=e(Map.prototype),na}a(yw,"requireMap");var ra,eh;function bw(){if(eh)return ra;eh=1;var e=on();return ra=e(Object.prototype),ra}a(bw,"requireObject");var oa,th;function ww(){if(th)return oa;th=1;var e=on();return oa=e(Set.prototype),oa}a(ww,"requireSet");var ia,nh;function Sw(){if(nh)return ia;nh=1;var e=on();return ia=e(String.prototype),ia}a(Sw,"requireString");var sa,rh;function Tw(){return rh||(rh=1,sa={array:xo(),function:gw(),map:yw(),object:bw(),set:ww(),string:Sw()}),sa}a(Tw,"requirePrototypes");var To={exports:{}},xw=To.exports,oh;function vw(){return oh||(oh=1,function(e,t){(function(n,r){e.exports=r();})(xw,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:lo,o=typeof Symbol<"u",i=typeof Map<"u",s=typeof Set<"u",l=typeof WeakMap<"u",c=typeof WeakSet<"u",u=typeof DataView<"u",f=o&&typeof Symbol.iterator<"u",h=o&&typeof Symbol.toStringTag<"u",m=s&&typeof Set.prototype.entries=="function",d=i&&typeof Map.prototype.entries=="function",g=m&&Object.getPrototypeOf(new Set().entries()),p=d&&Object.getPrototypeOf(new Map().entries()),S=f&&typeof Array.prototype[Symbol.iterator]=="function",T=S&&Object.getPrototypeOf([][Symbol.iterator]()),I=f&&typeof String.prototype[Symbol.iterator]=="function",P=I&&Object.getPrototypeOf(""[Symbol.iterator]()),A=8,$=-1;function j(k){var O=typeof k;if(O!=="object")return O;if(k===null)return "null";if(k===r)return "global";if(Array.isArray(k)&&(h===false||!(Symbol.toStringTag in k)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return "Location";if(typeof window.document=="object"&&k===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if(k.tagName==="TD")return "HTMLTableDataCellElement";if(k.tagName==="TH")return "HTMLTableHeaderCellElement"}}var M=h&&k[Symbol.toStringTag];if(typeof M=="string")return M;var K=Object.getPrototypeOf(k);return K===RegExp.prototype?"RegExp":K===Date.prototype?"Date":n&&K===Promise.prototype?"Promise":s&&K===Set.prototype?"Set":i&&K===Map.prototype?"Map":c&&K===WeakSet.prototype?"WeakSet":l&&K===WeakMap.prototype?"WeakMap":u&&K===DataView.prototype?"DataView":i&&K===p?"Map Iterator":s&&K===g?"Set Iterator":S&&K===T?"Array Iterator":I&&K===P?"String Iterator":K===null?"Object":Object.prototype.toString.call(k).slice(A,$)}return a(j,"typeDetect"),j});}(To)),To.exports}a(vw,"requireTypeDetect");var aa,ih;function Ew(){if(ih)return aa;ih=1;var e=vw();return aa=a(function(n){return e(n).toLowerCase()},"typeOf"),aa}a(Ew,"requireTypeOf");var ca,sh;function Iw(){if(sh)return ca;sh=1;function e(t){return t&&t.toString?t.toString():String(t)}return a(e,"valueToString"),ca=e,ca}a(Iw,"requireValueToString");var la,ah;function Cw(){return ah||(ah=1,la={global:cw(),calledInOrder:uw(),className:fw(),deprecated:hw(),every:dw(),functionName:pw(),orderByFirstCall:mw(),prototypes:Tw(),typeOf:Ew(),valueToString:Iw()}),la}a(Cw,"requireLib");var ch;function _w(){if(ch)return nn;ch=1;let e=Cw().global,t,n;if(typeof __vitest_required__<"u"){try{t=__vitest_required__.timers;}catch{}try{n=__vitest_required__.timersPromises;}catch{}}function r(i){let s=Math.pow(2,31)-1,l=1e12,c=a(function(){},"NOOP"),u=a(function(){return []},"NOOP_ARRAY"),f={},h,m=false;i.setTimeout&&(f.setTimeout=true,h=i.setTimeout(c,0),m=typeof h=="object"),f.clearTimeout=!!i.clearTimeout,f.setInterval=!!i.setInterval,f.clearInterval=!!i.clearInterval,f.hrtime=i.process&&typeof i.process.hrtime=="function",f.hrtimeBigint=f.hrtime&&typeof i.process.hrtime.bigint=="function",f.nextTick=i.process&&typeof i.process.nextTick=="function";let d=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;f.performance=i.performance&&typeof i.performance.now=="function";let g=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),p=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;f.queueMicrotask=i.hasOwnProperty("queueMicrotask"),f.requestAnimationFrame=i.requestAnimationFrame&&typeof i.requestAnimationFrame=="function",f.cancelAnimationFrame=i.cancelAnimationFrame&&typeof i.cancelAnimationFrame=="function",f.requestIdleCallback=i.requestIdleCallback&&typeof i.requestIdleCallback=="function",f.cancelIdleCallbackPresent=i.cancelIdleCallback&&typeof i.cancelIdleCallback=="function",f.setImmediate=i.setImmediate&&typeof i.setImmediate=="function",f.clearImmediate=i.clearImmediate&&typeof i.clearImmediate=="function",f.Intl=i.Intl&&typeof i.Intl=="object",i.clearTimeout&&i.clearTimeout(h);let S=i.Date,T=f.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0,I=l;if(S===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");f.Date=true;class P{static{a(this,"FakePerformanceEntry");}constructor(C,N,D,w){this.name=C,this.entryType=N,this.startTime=D,this.duration=w;}toJSON(){return JSON.stringify({...this})}}function A(v){return Number.isFinite?Number.isFinite(v):isFinite(v)}a(A,"isNumberFinite");let $=false;function j(v,C){v.loopLimit&&C===v.loopLimit-1&&($=true);}a(j,"checkIsNearInfiniteLimit");function k(){$=false;}a(k,"resetIsNearInfiniteLimit");function O(v){if(!v)return 0;let C=v.split(":"),N=C.length,D=N,w=0,W;if(N>3||!/^(\d\d:){0,2}\d\d?$/.test(v))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;D--;){if(W=parseInt(C[D],10),W>=60)throw new Error(`Invalid time ${v}`);w+=W*Math.pow(60,N-D-1);}return w*1e3}a(O,"parseTime");function M(v){let N=v*1e6%1e6,D=N<0?N+1e6:N;return Math.floor(D)}a(M,"nanoRemainder");function K(v){if(!v)return 0;if(typeof v.getTime=="function")return v.getTime();if(typeof v=="number")return v;throw new TypeError("now should be milliseconds since UNIX epoch")}a(K,"getEpoch");function _(v,C,N){return N&&N.callAt>=v&&N.callAt<=C}a(_,"inRange");function V(v,C){let N=new Error(`Aborting after running ${v.loopLimit} timers, assuming an infinite loop!`);if(!C.error)return N;let D=/target\.*[<|(|[].*?[>|\]|)]\s*/,w=new RegExp(String(Object.keys(v).join("|")));m&&(w=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(v).join("|")})\\s+`));let W=-1;C.error.stack.split(`
153
- `).some(function(G,H){return G.match(D)?(W=H,true):G.match(w)?(W=H,false):W>=0});let te=`${N}
154
- ${C.type||"Microtask"} - ${C.func.name||"anonymous"}
155
- ${C.error.stack.split(`
156
- `).slice(W+1).join(`
157
- `)}`;try{Object.defineProperty(N,"stack",{value:te});}catch{}return N}a(V,"getInfiniteLoopError");function le(){class v extends S{static{a(this,"ClockDate");}constructor(D,w,W,te,G,H,z){arguments.length===0?super(v.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:S,enumerable:false});}static[Symbol.hasInstance](D){return D instanceof S}}return v.isFake=true,S.now&&(v.now=a(function(){return v.clock.now},"now")),S.toSource&&(v.toSource=a(function(){return S.toSource()},"toSource")),v.toString=a(function(){return S.toString()},"toString"),new Proxy(v,{apply(){if(this instanceof v)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new S(v.clock.now).toString()}})}a(le,"createDate");function U(){let v={};return Object.getOwnPropertyNames(T).forEach(C=>v[C]=T[C]),v.DateTimeFormat=function(...C){let N=new T.DateTimeFormat(...C),D={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(w=>{D[w]=N[w].bind(N);}),["format","formatToParts"].forEach(w=>{D[w]=function(W){return N[w](W||v.clock.now)};}),D},v.DateTimeFormat.prototype=Object.create(T.DateTimeFormat.prototype),v.DateTimeFormat.supportedLocalesOf=T.DateTimeFormat.supportedLocalesOf,v}a(U,"createIntl");function Z(v,C){v.jobs||(v.jobs=[]),v.jobs.push(C);}a(Z,"enqueueJob");function R(v){if(v.jobs){for(let C=0;C<v.jobs.length;C++){let N=v.jobs[C];if(N.func.apply(null,N.args),j(v,C),v.loopLimit&&C>v.loopLimit)throw V(v,N)}k(),v.jobs=[];}}a(R,"runJobs");function Y(v,C){if(C.func===void 0)throw new Error("Callback must be provided to timer calls");if(m&&typeof C.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${C.func} of type ${typeof C.func}`);if($&&(C.error=new Error),C.type=C.immediate?"Immediate":"Timeout",C.hasOwnProperty("delay")&&(typeof C.delay!="number"&&(C.delay=parseInt(C.delay,10)),A(C.delay)||(C.delay=0),C.delay=C.delay>s?1:C.delay,C.delay=Math.max(0,C.delay)),C.hasOwnProperty("interval")&&(C.type="Interval",C.interval=C.interval>s?1:C.interval),C.hasOwnProperty("animation")&&(C.type="AnimationFrame",C.animation=true),C.hasOwnProperty("idleCallback")&&(C.type="IdleCallback",C.idleCallback=true),v.timers||(v.timers={}),C.id=I++,C.createdAt=v.now,C.callAt=v.now+(parseInt(C.delay)||(v.duringTick?1:0)),v.timers[C.id]=C,m){let N={refed:true,ref:a(function(){return this.refed=true,N},"ref"),unref:a(function(){return this.refed=false,N},"unref"),hasRef:a(function(){return this.refed},"hasRef"),refresh:a(function(){return C.callAt=v.now+(parseInt(C.delay)||(v.duringTick?1:0)),v.timers[C.id]=C,N},"refresh"),[Symbol.toPrimitive]:function(){return C.id}};return N}return C.id}a(Y,"addTimer");function L(v,C){if(v.callAt<C.callAt)return -1;if(v.callAt>C.callAt)return 1;if(v.immediate&&!C.immediate)return -1;if(!v.immediate&&C.immediate)return 1;if(v.createdAt<C.createdAt)return -1;if(v.createdAt>C.createdAt)return 1;if(v.id<C.id)return -1;if(v.id>C.id)return 1}a(L,"compareTimers");function de(v,C,N){let D=v.timers,w=null,W,te;for(W in D)D.hasOwnProperty(W)&&(te=_(C,N,D[W]),te&&(!w||L(w,D[W])===1)&&(w=D[W]));return w}a(de,"firstTimerInRange");function Te(v){let C=v.timers,N=null,D;for(D in C)C.hasOwnProperty(D)&&(!N||L(N,C[D])===1)&&(N=C[D]);return N}a(Te,"firstTimer");function qe(v){let C=v.timers,N=null,D;for(D in C)C.hasOwnProperty(D)&&(!N||L(N,C[D])===-1)&&(N=C[D]);return N}a(qe,"lastTimer");function Ie(v,C){if(typeof C.interval=="number"?v.timers[C.id].callAt+=C.interval:delete v.timers[C.id],typeof C.func=="function")C.func.apply(null,C.args);else {let N=eval;(function(){N(C.func);})();}}a(Ie,"callTimer");function Oe(v){return v==="IdleCallback"||v==="AnimationFrame"?`cancel${v}`:`clear${v}`}a(Oe,"getClearHandler");function Xe(v){return v==="IdleCallback"||v==="AnimationFrame"?`request${v}`:`set${v}`}a(Xe,"getScheduleHandler");function Re(){let v=0;return function(C){!v++&&console.warn(C);}}a(Re,"createWarnOnce");let Pe=Re();function $e(v,C,N){if(!C)return;v.timers||(v.timers={});let D=Number(C);if(Number.isNaN(D)||D<l){let w=Oe(N);if(v.shouldClearNativeTimers===true){let W=v[`_${w}`];return typeof W=="function"?W(C):void 0}Pe(`FakeTimers: ${w} was invoked to clear a native timer instead of one created by this library.
158
- To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(v.timers.hasOwnProperty(D)){let w=v.timers[D];if(w.type===N||w.type==="Timeout"&&N==="Interval"||w.type==="Interval"&&N==="Timeout")delete v.timers[D];else {let W=Oe(N),te=Xe(w.type);throw new Error(`Cannot clear timer: timer created with ${te}() but cleared with ${W}()`)}}}a($e,"clearTimer");function dt(v,C){let N,D,w,W="_hrtime",te="_nextTick";for(D=0,w=v.methods.length;D<w;D++){if(N=v.methods[D],N==="hrtime"&&i.process)i.process.hrtime=v[W];else if(N==="nextTick"&&i.process)i.process.nextTick=v[te];else if(N==="performance"){let G=Object.getOwnPropertyDescriptor(v,`_${N}`);G&&G.get&&!G.set?Object.defineProperty(i,N,G):G.configurable&&(i[N]=v[`_${N}`]);}else if(i[N]&&i[N].hadOwnProperty)i[N]=v[`_${N}`];else try{delete i[N];}catch{}if(v.timersModuleMethods!==void 0)for(let G=0;G<v.timersModuleMethods.length;G++){let H=v.timersModuleMethods[G];t[H.methodName]=H.original;}if(v.timersPromisesModuleMethods!==void 0)for(let G=0;G<v.timersPromisesModuleMethods.length;G++){let H=v.timersPromisesModuleMethods[G];n[H.methodName]=H.original;}}C.shouldAdvanceTime===true&&i.clearInterval(v.attachedInterval),v.methods=[];for(let[G,H]of v.abortListenerMap.entries())H.removeEventListener("abort",G),v.abortListenerMap.delete(G);return v.timers?Object.keys(v.timers).map(a(function(H){return v.timers[H]},"mapper")):[]}a(dt,"uninstall");function We(v,C,N){if(N[C].hadOwnProperty=Object.prototype.hasOwnProperty.call(v,C),N[`_${C}`]=v[C],C==="Date")v[C]=N[C];else if(C==="Intl")v[C]=N[C];else if(C==="performance"){let D=Object.getOwnPropertyDescriptor(v,C);if(D&&D.get&&!D.set){Object.defineProperty(N,`_${C}`,D);let w=Object.getOwnPropertyDescriptor(N,C);Object.defineProperty(v,C,w);}else v[C]=N[C];}else v[C]=function(){return N[C].apply(N,arguments)},Object.defineProperties(v[C],Object.getOwnPropertyDescriptors(N[C]));v[C].clock=N;}a(We,"hijackMethod");function Ot(v,C){v.tick(C);}a(Ot,"doIntervalTick");let xe={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};f.setImmediate&&(xe.setImmediate=i.setImmediate),f.clearImmediate&&(xe.clearImmediate=i.clearImmediate),f.hrtime&&(xe.hrtime=i.process.hrtime),f.nextTick&&(xe.nextTick=i.process.nextTick),f.performance&&(xe.performance=i.performance),f.requestAnimationFrame&&(xe.requestAnimationFrame=i.requestAnimationFrame),f.queueMicrotask&&(xe.queueMicrotask=i.queueMicrotask),f.cancelAnimationFrame&&(xe.cancelAnimationFrame=i.cancelAnimationFrame),f.requestIdleCallback&&(xe.requestIdleCallback=i.requestIdleCallback),f.cancelIdleCallback&&(xe.cancelIdleCallback=i.cancelIdleCallback),f.Intl&&(xe.Intl=T);let Ge=i.setImmediate||i.setTimeout;function qn(v,C){v=Math.floor(K(v)),C=C||1e3;let N=0,D=[0,0],w={now:v,Date:le(),loopLimit:C};w.Date.clock=w;function W(){return 16-(w.now-v)%16}a(W,"getTimeToNextFrame");function te(z){let F=w.now-D[0]-v,q=Math.floor(F/1e3),J=(F-q*1e3)*1e6+N-D[1];if(Array.isArray(z)){if(z[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let ie=z[0],he=J-z[1],at=q-ie;return he<0&&(he+=1e9,at-=1),[at,he]}return [q,J]}a(te,"hrtime");function G(){let z=te();return z[0]*1e3+z[1]/1e6}a(G,"fakePerformanceNow"),f.hrtimeBigint&&(te.bigint=function(){let z=te();return BigInt(z[0])*BigInt(1e9)+BigInt(z[1])}),f.Intl&&(w.Intl=U(),w.Intl.clock=w),w.requestIdleCallback=a(function(F,q){let J=0;w.countTimers()>0&&(J=50);let ie=Y(w,{func:F,args:Array.prototype.slice.call(arguments,2),delay:typeof q>"u"?J:Math.min(q,J),idleCallback:true});return Number(ie)},"requestIdleCallback"),w.cancelIdleCallback=a(function(F){return $e(w,F,"IdleCallback")},"cancelIdleCallback"),w.setTimeout=a(function(F,q){return Y(w,{func:F,args:Array.prototype.slice.call(arguments,2),delay:q})},"setTimeout"),typeof i.Promise<"u"&&d&&(w.setTimeout[d.custom]=a(function(F,q){return new i.Promise(a(function(ie){Y(w,{func:ie,args:[q],delay:F});},"setTimeoutExecutor"))},"promisifiedSetTimeout")),w.clearTimeout=a(function(F){return $e(w,F,"Timeout")},"clearTimeout"),w.nextTick=a(function(F){return Z(w,{func:F,args:Array.prototype.slice.call(arguments,1),error:$?new Error:null})},"nextTick"),w.queueMicrotask=a(function(F){return w.nextTick(F)},"queueMicrotask"),w.setInterval=a(function(F,q){return q=parseInt(q,10),Y(w,{func:F,args:Array.prototype.slice.call(arguments,2),delay:q,interval:q})},"setInterval"),w.clearInterval=a(function(F){return $e(w,F,"Interval")},"clearInterval"),f.setImmediate&&(w.setImmediate=a(function(F){return Y(w,{func:F,args:Array.prototype.slice.call(arguments,1),immediate:true})},"setImmediate"),typeof i.Promise<"u"&&d&&(w.setImmediate[d.custom]=a(function(F){return new i.Promise(a(function(J){Y(w,{func:J,args:[F],immediate:true});},"setImmediateExecutor"))},"promisifiedSetImmediate")),w.clearImmediate=a(function(F){return $e(w,F,"Immediate")},"clearImmediate")),w.countTimers=a(function(){return Object.keys(w.timers||{}).length+(w.jobs||[]).length},"countTimers"),w.requestAnimationFrame=a(function(F){let q=Y(w,{func:F,delay:W(),get args(){return [G()]},animation:true});return Number(q)},"requestAnimationFrame"),w.cancelAnimationFrame=a(function(F){return $e(w,F,"AnimationFrame")},"cancelAnimationFrame"),w.runMicrotasks=a(function(){R(w);},"runMicrotasks");function H(z,F,q,J){let ie=typeof z=="number"?z:O(z),he=Math.floor(ie),at=M(ie),Ye=N+at,ve=w.now+he;if(ie<0)throw new TypeError("Negative ticks are not supported");Ye>=1e6&&(ve+=1,Ye-=1e6),N=Ye;let He=w.now,Pt=w.now,Ze,pt,Be,ha,Eo,Io;w.duringTick=true,Be=w.now,R(w),Be!==w.now&&(He+=w.now-Be,ve+=w.now-Be);function da(){for(Ze=de(w,He,ve);Ze&&He<=ve;){if(w.timers[Ze.id]){He=Ze.callAt,w.now=Ze.callAt,Be=w.now;try{R(w),Ie(w,Ze);}catch(cn){pt=pt||cn;}if(F){Ge(ha);return}Eo();}Io();}if(Be=w.now,R(w),Be!==w.now&&(He+=w.now-Be,ve+=w.now-Be),w.duringTick=false,Ze=de(w,He,ve),Ze)try{w.tick(ve-w.now);}catch(cn){pt=pt||cn;}else w.now=ve,N=Ye;if(pt)throw pt;if(F)q(w.now);else return w.now}return a(da,"doTickInner"),ha=F&&function(){try{Eo(),Io(),da();}catch(cn){J(cn);}},Eo=a(function(){Be!==w.now&&(He+=w.now-Be,ve+=w.now-Be,Pt+=w.now-Be);},"compensationCheck"),Io=a(function(){Ze=de(w,Pt,ve),Pt=He;},"postTimerCall"),da()}return a(H,"doTick"),w.tick=a(function(F){return H(F,false)},"tick"),typeof i.Promise<"u"&&(w.tickAsync=a(function(F){return new i.Promise(function(q,J){Ge(function(){try{H(F,true,q,J);}catch(ie){J(ie);}});})},"tickAsync")),w.next=a(function(){R(w);let F=Te(w);if(!F)return w.now;w.duringTick=true;try{return w.now=F.callAt,Ie(w,F),R(w),w.now}finally{w.duringTick=false;}},"next"),typeof i.Promise<"u"&&(w.nextAsync=a(function(){return new i.Promise(function(F,q){Ge(function(){try{let J=Te(w);if(!J){F(w.now);return}let ie;w.duringTick=true,w.now=J.callAt;try{Ie(w,J);}catch(he){ie=he;}w.duringTick=false,Ge(function(){ie?q(ie):F(w.now);});}catch(J){q(J);}});})},"nextAsync")),w.runAll=a(function(){let F,q;for(R(w),q=0;q<w.loopLimit;q++){if(!w.timers||(F=Object.keys(w.timers).length,F===0))return k(),w.now;w.next(),j(w,q);}let J=Te(w);throw V(w,J)},"runAll"),w.runToFrame=a(function(){return w.tick(W())},"runToFrame"),typeof i.Promise<"u"&&(w.runAllAsync=a(function(){return new i.Promise(function(F,q){let J=0;function ie(){Ge(function(){try{R(w);let he;if(J<w.loopLimit){if(!w.timers){k(),F(w.now);return}if(he=Object.keys(w.timers).length,he===0){k(),F(w.now);return}w.next(),J++,ie(),j(w,J);return}let at=Te(w);q(V(w,at));}catch(he){q(he);}});}a(ie,"doRun"),ie();})},"runAllAsync")),w.runToLast=a(function(){let F=qe(w);return F?w.tick(F.callAt-w.now):(R(w),w.now)},"runToLast"),typeof i.Promise<"u"&&(w.runToLastAsync=a(function(){return new i.Promise(function(F,q){Ge(function(){try{let J=qe(w);J||(R(w),F(w.now)),F(w.tickAsync(J.callAt-w.now));}catch(J){q(J);}});})},"runToLastAsync")),w.reset=a(function(){N=0,w.timers={},w.jobs=[],w.now=v;},"reset"),w.setSystemTime=a(function(F){let q=K(F),J=q-w.now,ie,he;D[0]=D[0]+J,D[1]=D[1]+N,w.now=q,N=0;for(ie in w.timers)w.timers.hasOwnProperty(ie)&&(he=w.timers[ie],he.createdAt+=J,he.callAt+=J);},"setSystemTime"),w.jump=a(function(F){let q=typeof F=="number"?F:O(F),J=Math.floor(q);for(let ie of Object.values(w.timers))w.now+J>ie.callAt&&(ie.callAt=w.now+J);w.tick(J);},"jump"),f.performance&&(w.performance=Object.create(null),w.performance.now=G),f.hrtime&&(w.hrtime=te),w}a(qn,"createClock");function B(v){if(arguments.length>1||v instanceof Date||Array.isArray(v)||typeof v=="number")throw new TypeError(`FakeTimers.install called with ${String(v)} install requires an object parameter`);if(i.Date.isFake===true)throw new TypeError("Can't install fake timers twice on the same global object.");if(v=typeof v<"u"?v:{},v.shouldAdvanceTime=v.shouldAdvanceTime||false,v.advanceTimeDelta=v.advanceTimeDelta||20,v.shouldClearNativeTimers=v.shouldClearNativeTimers||false,v.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function C(W){if(!v.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${W}'`)}a(C,"handleMissingTimer");let N,D,w=qn(v.now,v.loopLimit);if(w.shouldClearNativeTimers=v.shouldClearNativeTimers,w.uninstall=function(){return dt(w,v)},w.abortListenerMap=new Map,w.methods=v.toFake||[],w.methods.length===0&&(w.methods=Object.keys(xe)),v.shouldAdvanceTime===true){let W=Ot.bind(null,w,v.advanceTimeDelta),te=i.setInterval(W,v.advanceTimeDelta);w.attachedInterval=te;}if(w.methods.includes("performance")){let W=(()=>{if(p)return i.performance.constructor.prototype;if(g)return i.Performance.prototype})();if(W)Object.getOwnPropertyNames(W).forEach(function(te){te!=="now"&&(w.performance[te]=te.indexOf("getEntries")===0?u:c);}),w.performance.mark=te=>new P(te,"mark",0,0),w.performance.measure=te=>new P(te,"measure",0,100),w.performance.timeOrigin=K(v.now);else if((v.toFake||[]).includes("performance"))return C("performance")}for(i===e&&t&&(w.timersModuleMethods=[]),i===e&&n&&(w.timersPromisesModuleMethods=[]),N=0,D=w.methods.length;N<D;N++){let W=w.methods[N];if(!f[W]){C(W);continue}if(W==="hrtime"?i.process&&typeof i.process.hrtime=="function"&&We(i.process,W,w):W==="nextTick"?i.process&&typeof i.process.nextTick=="function"&&We(i.process,W,w):We(i,W,w),w.timersModuleMethods!==void 0&&t[W]){let te=t[W];w.timersModuleMethods.push({methodName:W,original:te}),t[W]=i[W];}w.timersPromisesModuleMethods!==void 0&&(W==="setTimeout"?(w.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(te,G,H={})=>new Promise((z,F)=>{let q=a(()=>{H.signal.removeEventListener("abort",q),w.abortListenerMap.delete(q),w.clearTimeout(J),F(H.signal.reason);},"abort"),J=w.setTimeout(()=>{H.signal&&(H.signal.removeEventListener("abort",q),w.abortListenerMap.delete(q)),z(G);},te);H.signal&&(H.signal.aborted?q():(H.signal.addEventListener("abort",q),w.abortListenerMap.set(q,H.signal)));})):W==="setImmediate"?(w.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(te,G={})=>new Promise((H,z)=>{let F=a(()=>{G.signal.removeEventListener("abort",F),w.abortListenerMap.delete(F),w.clearImmediate(q),z(G.signal.reason);},"abort"),q=w.setImmediate(()=>{G.signal&&(G.signal.removeEventListener("abort",F),w.abortListenerMap.delete(F)),H(te);});G.signal&&(G.signal.aborted?F():(G.signal.addEventListener("abort",F),w.abortListenerMap.set(F,G.signal)));})):W==="setInterval"&&(w.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(te,G,H={})=>({[Symbol.asyncIterator]:()=>{let z=a(()=>{let ve,He,Pt=new Promise((Ze,pt)=>{ve=Ze,He=pt;});return Pt.resolve=ve,Pt.reject=He,Pt},"createResolvable"),F=false,q=false,J,ie=0,he=[],at=w.setInterval(()=>{he.length>0?he.shift().resolve():ie++;},te),Ye=a(()=>{H.signal.removeEventListener("abort",Ye),w.abortListenerMap.delete(Ye),w.clearInterval(at),F=true;for(let ve of he)ve.resolve();},"abort");return H.signal&&(H.signal.aborted?F=true:(H.signal.addEventListener("abort",Ye),w.abortListenerMap.set(Ye,H.signal))),{next:a(async()=>{if(H.signal?.aborted&&!q)throw q=true,H.signal.reason;if(F)return {done:true,value:void 0};if(ie>0)return ie--,{done:false,value:G};let ve=z();if(he.push(ve),await ve,J&&he.length===0&&J.resolve(),H.signal?.aborted&&!q)throw q=true,H.signal.reason;return F?{done:true,value:void 0}:{done:false,value:G}},"next"),return:a(async()=>F?{done:true,value:void 0}:(he.length>0&&(J=z(),await J),w.clearInterval(at),F=true,H.signal&&(H.signal.removeEventListener("abort",Ye),w.abortListenerMap.delete(Ye)),{done:true,value:void 0}),"return")}}})));}return w}return a(B,"install"),{timers:xe,createClock:qn,install:B,withGlobal:r}}a(r,"withGlobal");let o=r(e);return nn.timers=o.timers,nn.createClock=o.createClock,nn.install=o.install,nn.withGlobal=r,nn}a(_w,"requireFakeTimersSrc");var Ow=_w(),ua=class{static{a(this,"FakeTimers");}_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=Ve.now;constructor({global:t,config:n}){this._userConfig=n,this._fakingDate=null,this._fakingTime=false,this._fakeTimers=Ow.withGlobal(t),this._global=t;}clearAllTimers(){this._fakingTime&&this._clock.reset();}dispose(){this.useRealTimers();}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll();}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync();}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast();}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync();}advanceTimersToNextTimer(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t);}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t);}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame();}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks();}useRealTimers(){this._fakingDate&&(Lf(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=false);}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){let t=Object.keys(this._fakeTimers.timers).filter(n=>n!=="nextTick"&&n!=="queueMicrotask");if(this._userConfig?.toFake?.includes("nextTick")&&Cs())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:true}),this._fakingTime=true;}}reset(){if(this._checkFakeTimers()){let{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t);}}setSystemTime(t){let n=typeof t>"u"||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(n):(this._fakingDate=n??new Date(this.getRealSystemTime()),Ff(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 uh(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(uh,"copyStackTrace");function Pw(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=ft(),{interval:s=50,timeout:l=1e3}=typeof t=="number"?{timeout:t}:t,c=new Error("STACK_TRACE_ERROR");return new Promise((u,f)=>{let h,m="idle",d,g,p=a(I=>{d&&o(d),g&&i(g),u(I);},"onResolve"),S=a(()=>{g&&i(g);let I=h;I||(I=uh(new Error("Timed out in waitFor!"),c)),f(I);},"handleTimeout"),T=a(()=>{if(Dn.isFakeTimers()&&Dn.advanceTimersByTime(s),m!=="pending")try{let I=e();if(I!==null&&typeof I=="object"&&typeof I.then=="function"){let P=I;m="pending",P.then(A=>{m="resolved",p(A);},A=>{m="rejected",h=A;});}else return p(I),true}catch(I){h=I;}},"checkCallback");T()!==true&&(d=n(S,l),g=r(T,s));})}a(Pw,"waitFor");function $w(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=ft(),{interval:s=50,timeout:l=1e3}=typeof t=="number"?{timeout:t}:t,c=new Error("STACK_TRACE_ERROR");return new Promise((u,f)=>{let h="idle",m,d,g=a(T=>{d&&i(d),T||(T=uh(new Error("Timed out in waitUntil!"),c)),f(T);},"onReject"),p=a(T=>{if(T)return m&&o(m),d&&i(d),u(T),true},"onResolve"),S=a(()=>{if(Dn.isFakeTimers()&&Dn.advanceTimersByTime(s),h!=="pending")try{let T=e();if(T!==null&&typeof T=="object"&&typeof T.then=="function"){let I=T;h="pending",I.then(P=>{h="resolved",p(P);},P=>{h="rejected",g(P);});}else return p(T)}catch(T){g(T);}},"checkCallback");S()!==true&&(m=n(g,l),d=r(S,s));})}a($w,"waitUntil");function Aw(){let e=null,t=en(),n,r=a(()=>n||=new ua({global:globalThis,config:t.config.fakeTimers}),"timers"),o=new Map,i=new Map,s=["PROD","DEV","SSR"],l={useFakeTimers(c){if(Cs()&&(c?.toFake?.includes("nextTick")||t.config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return c?r().configure({...t.config.fakeTimers,...c}):r().configure(t.config.fakeTimers),r().useFakeTimers(),l},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),l},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),l},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),l},runAllTimers(){return r().runAllTimers(),l},async runAllTimersAsync(){return await r().runAllTimersAsync(),l},runAllTicks(){return r().runAllTicks(),l},advanceTimersByTime(c){return r().advanceTimersByTime(c),l},async advanceTimersByTimeAsync(c){return await r().advanceTimersByTimeAsync(c),l},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),l},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),l},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),l},getTimerCount(){return r().getTimerCount()},setSystemTime(c){return r().setSystemTime(c),l},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),l},spyOn:zc,fn:Uc,waitFor:Pw,waitUntil:$w,hoisted(c){return Ne(c,'"vi.hoisted" factory',["function"]),c()},mock(c,u){if(typeof c!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof c}`);let f=rn("mock");Ke().queueMock(c,f,typeof u=="function"?()=>u(()=>Ke().importActual(c,f,Ke().getMockContext().callstack)):u);},unmock(c){if(typeof c!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof c}`);Ke().queueUnmock(c,rn("unmock"));},doMock(c,u){if(typeof c!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof c}`);let f=rn("doMock");Ke().queueMock(c,f,typeof u=="function"?()=>u(()=>Ke().importActual(c,f,Ke().getMockContext().callstack)):u);},doUnmock(c){if(typeof c!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof c}`);Ke().queueUnmock(c,rn("doUnmock"));},async importActual(c){return Ke().importActual(c,rn("importActual"),Ke().getMockContext().callstack)},async importMock(c){return Ke().importMock(c,rn("importMock"))},mockObject(c){return Ke().mockObject({value:c}).value},mocked(c,u={}){return c},isMockFunction(c){return Rt(c)},clearAllMocks(){return [...dn].reverse().forEach(c=>c.mockClear()),l},resetAllMocks(){return [...dn].reverse().forEach(c=>c.mockReset()),l},restoreAllMocks(){return [...dn].reverse().forEach(c=>c.mockRestore()),l},stubGlobal(c,u){return o.has(c)||o.set(c,Object.getOwnPropertyDescriptor(globalThis,c)),Object.defineProperty(globalThis,c,{value:u,writable:true,configurable:true,enumerable:true}),l},stubEnv(c,u){return i.has(c)||i.set(c,process.env[c]),s.includes(c)?process.env[c]=u?"1":"":u===void 0?delete process.env[c]:process.env[c]=String(u),l},unstubAllGlobals(){return o.forEach((c,u)=>{c?Object.defineProperty(globalThis,u,c):Reflect.deleteProperty(globalThis,u);}),o.clear(),l},unstubAllEnvs(){return i.forEach((c,u)=>{c===void 0?delete process.env[u]:process.env[u]=c;}),i.clear(),l},resetModules(){return Hu(t.moduleCache),l},async dynamicImportSettled(){return _s()},setConfig(c){e||(e={...t.config}),Object.assign(t.config,c);},resetConfig(){e&&Object.assign(t.config,e);}};return l}a(Aw,"createVitest");var fh=Aw(),Dn=fh;function Ke(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(e,t){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}a(Ke,"_mocker");function rn(e){let n=Xo({stackTraceLimit:5}).split(`
159
- `),r=n.findIndex(i=>i.includes(` at Object.${e}`)||i.includes(`${e}@`));return In(n[r+1])?.file||""}a(rn,"getImporter");var sn=ma(Sh());z.strictObject({path:z.string().describe("Can contain glob patterns, relative paths, absolute paths, package paths, or package sub-paths"),filter:z.custom(e=>typeof e=="function").optional().describe("A function that takes a path and returns a boolean")});function zt({rendererId:e,alias:t,path:n}){return (()=>{switch(e){case "react":case "angular":return {rendererId:e,codeSrcPath:n,exportName:t||"default"};case "vue":case "hbs":case "html":return {rendererId:e,codeSrcPath:n};case "twig":return {rendererId:e,namespacePath:t};case "web-components":return {rendererId:e,elementName:t};default:{throw new Error(`Invalid renderer ID: ${e}`)}}})()}a(zt,"normalizeTemplateInfo");function an(e){switch(e.rendererId){case "react":case "angular":return {path:e.codeSrcPath,alias:e.exportName};case "hbs":case "html":case "vue":return {path:e.codeSrcPath};case "twig":return {alias:e.namespacePath};case "web-components":return {alias:e.elementName};default:{throw new Error(`Invalid template info: ${JSON.stringify(e)}`)}}}a(an,"convertTemplateInfoToOldWay");An("normalizeTemplateInfo",()=>{Le("should handle React template with default export",()=>{let e=zt({rendererId:"react",path:"@components/Button"});(0, sn.expectTypeOf)(e.codeSrcPath).toEqualTypeOf(),(0, sn.expectTypeOf)(e.rendererId).toMatchTypeOf(),(0, sn.expectTypeOf)(e.rendererId).toEqualTypeOf(),(0, sn.expectTypeOf)(e.exportName).toEqualTypeOf(),De(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"default"});}),Le("should handle React template with named export",()=>{let e=zt({rendererId:"react",path:"@components/Button",alias:"CustomButton"});De(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});}),Le("should handle Vue template",()=>{let e=zt({rendererId:"vue",path:"@components/Button.vue"});De(e).toEqual({rendererId:"vue",codeSrcPath:"@components/Button.vue"});}),Le("should handle web components",()=>{let e=zt({rendererId:"web-components",alias:"custom-button"});De(e).toEqual({rendererId:"web-components",elementName:"custom-button"});}),Le("should handle Twig template",()=>{let e=zt({rendererId:"twig",alias:"@namespace/button"});De(e).toEqual({rendererId:"twig",namespacePath:"@namespace/button"});}),Le("should throw error for invalid renderer ID",()=>{De(()=>zt({rendererId:"invalid",path:"some/path"})).toThrow("Invalid renderer ID: invalid");});});An("convertTemplateInfoToOldWay",()=>{Le("should convert React template info",()=>{let e=an({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});De(e).toEqual({path:"@components/Button",alias:"CustomButton"});}),Le("should convert Vue template info",()=>{let e=an({rendererId:"vue",codeSrcPath:"@components/Button.vue"});De(e).toEqual({path:"@components/Button.vue"});}),Le("should convert web components template info",()=>{let e=an({rendererId:"web-components",elementName:"custom-button"});De(e).toEqual({alias:"custom-button"});}),Le("should convert Twig template info",()=>{let e=an({rendererId:"twig",namespacePath:"@namespace/button"});De(e).toEqual({alias:"@namespace/button"});}),Le("should throw error for invalid template info",()=>{De(()=>an({rendererId:"invalid"})).toThrow("Invalid template info:");});});
160
- /*! Bundled license information:
161
-
162
- @vitest/pretty-format/dist/index.js:
163
- (**
164
- * @license React
165
- * react-is.production.js
166
- *
167
- * Copyright (c) Meta Platforms, Inc. and affiliates.
168
- *
169
- * This source code is licensed under the MIT license found in the
170
- * LICENSE file in the root directory of this source tree.
171
- *)
172
- (**
173
- * @license React
174
- * react-is.development.js
175
- *
176
- * Copyright (c) Meta Platforms, Inc. and affiliates.
177
- *
178
- * This source code is licensed under the MIT license found in the
179
- * LICENSE file in the root directory of this source tree.
180
- *)
181
- (**
182
- * @license React
183
- * react-is.production.min.js
184
- *
185
- * Copyright (c) Facebook, Inc. and its affiliates.
186
- *
187
- * This source code is licensed under the MIT license found in the
188
- * LICENSE file in the root directory of this source tree.
189
- *)
190
- (**
191
- * @license React
192
- * react-is.development.js
193
- *
194
- * Copyright (c) Facebook, Inc. and its affiliates.
195
- *
196
- * This source code is licensed under the MIT license found in the
197
- * LICENSE file in the root directory of this source tree.
198
- *)
199
-
200
- chai/chai.js:
201
- (*!
202
- * Chai - flag utility
203
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
204
- * MIT Licensed
205
- *)
206
- (*!
207
- * Chai - test utility
208
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
209
- * MIT Licensed
210
- *)
211
- (*!
212
- * Chai - expectTypes utility
213
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
214
- * MIT Licensed
215
- *)
216
- (*!
217
- * Chai - getActual utility
218
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
219
- * MIT Licensed
220
- *)
221
- (*!
222
- * Chai - message composition utility
223
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
224
- * MIT Licensed
225
- *)
226
- (*!
227
- * Chai - transferFlags utility
228
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
229
- * MIT Licensed
230
- *)
231
- (*!
232
- * chai
233
- * http://chaijs.com
234
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
235
- * MIT Licensed
236
- *)
237
- (*!
238
- * Chai - isProxyEnabled helper
239
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
240
- * MIT Licensed
241
- *)
242
- (*!
243
- * Chai - addProperty utility
244
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
245
- * MIT Licensed
246
- *)
247
- (*!
248
- * Chai - addLengthGuard utility
249
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
250
- * MIT Licensed
251
- *)
252
- (*!
253
- * Chai - getProperties utility
254
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
255
- * MIT Licensed
256
- *)
257
- (*!
258
- * Chai - proxify utility
259
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
260
- * MIT Licensed
261
- *)
262
- (*!
263
- * Chai - addMethod utility
264
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
265
- * MIT Licensed
266
- *)
267
- (*!
268
- * Chai - overwriteProperty utility
269
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
270
- * MIT Licensed
271
- *)
272
- (*!
273
- * Chai - overwriteMethod utility
274
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
275
- * MIT Licensed
276
- *)
277
- (*!
278
- * Chai - addChainingMethod utility
279
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
280
- * MIT Licensed
281
- *)
282
- (*!
283
- * Chai - overwriteChainableMethod utility
284
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
285
- * MIT Licensed
286
- *)
287
- (*!
288
- * Chai - compareByInspect utility
289
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
290
- * MIT Licensed
291
- *)
292
- (*!
293
- * Chai - getOwnEnumerablePropertySymbols utility
294
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
295
- * MIT Licensed
296
- *)
297
- (*!
298
- * Chai - getOwnEnumerableProperties utility
299
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
300
- * MIT Licensed
301
- *)
302
- (*!
303
- * Chai - isNaN utility
304
- * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
305
- * MIT Licensed
306
- *)
307
- (*!
308
- * chai
309
- * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
310
- * MIT Licensed
311
- *)
312
- (*!
313
- * chai
314
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
315
- * MIT Licensed
316
- *)
317
- (*! Bundled license information:
318
-
319
- deep-eql/index.js:
320
- (*!
321
- * deep-eql
322
- * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
323
- * MIT Licensed
324
- *)
325
- (*!
326
- * Check to see if the MemoizeMap has recorded a result of the two operands
327
- *
328
- * @param {Mixed} leftHandOperand
329
- * @param {Mixed} rightHandOperand
330
- * @param {MemoizeMap} memoizeMap
331
- * @returns {Boolean|null} result
332
- *)
333
- (*!
334
- * Set the result of the equality into the MemoizeMap
335
- *
336
- * @param {Mixed} leftHandOperand
337
- * @param {Mixed} rightHandOperand
338
- * @param {MemoizeMap} memoizeMap
339
- * @param {Boolean} result
340
- *)
341
- (*!
342
- * Primary Export
343
- *)
344
- (*!
345
- * The main logic of the `deepEqual` function.
346
- *
347
- * @param {Mixed} leftHandOperand
348
- * @param {Mixed} rightHandOperand
349
- * @param {Object} [options] (optional) Additional options
350
- * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
351
- * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
352
- complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
353
- references to blow the stack.
354
- * @return {Boolean} equal match
355
- *)
356
- (*!
357
- * Compare two Regular Expressions for equality.
358
- *
359
- * @param {RegExp} leftHandOperand
360
- * @param {RegExp} rightHandOperand
361
- * @return {Boolean} result
362
- *)
363
- (*!
364
- * Compare two Sets/Maps for equality. Faster than other equality functions.
365
- *
366
- * @param {Set} leftHandOperand
367
- * @param {Set} rightHandOperand
368
- * @param {Object} [options] (Optional)
369
- * @return {Boolean} result
370
- *)
371
- (*!
372
- * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
373
- *
374
- * @param {Iterable} leftHandOperand
375
- * @param {Iterable} rightHandOperand
376
- * @param {Object} [options] (Optional)
377
- * @return {Boolean} result
378
- *)
379
- (*!
380
- * Simple equality for generator objects such as those returned by generator functions.
381
- *
382
- * @param {Iterable} leftHandOperand
383
- * @param {Iterable} rightHandOperand
384
- * @param {Object} [options] (Optional)
385
- * @return {Boolean} result
386
- *)
387
- (*!
388
- * Determine if the given object has an @@iterator function.
389
- *
390
- * @param {Object} target
391
- * @return {Boolean} `true` if the object has an @@iterator function.
392
- *)
393
- (*!
394
- * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
395
- * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
396
- *
397
- * @param {Object} target
398
- * @returns {Array} an array of entries from the @@iterator function
399
- *)
400
- (*!
401
- * Gets all entries from a Generator. This will consume the generator - which could have side effects.
402
- *
403
- * @param {Generator} target
404
- * @returns {Array} an array of entries from the Generator.
405
- *)
406
- (*!
407
- * Gets all own and inherited enumerable keys from a target.
408
- *
409
- * @param {Object} target
410
- * @returns {Array} an array of own and inherited enumerable keys from the target.
411
- *)
412
- (*!
413
- * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
414
- * each key. If any value of the given key is not equal, the function will return false (early).
415
- *
416
- * @param {Mixed} leftHandOperand
417
- * @param {Mixed} rightHandOperand
418
- * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
419
- * @param {Object} [options] (Optional)
420
- * @return {Boolean} result
421
- *)
422
- (*!
423
- * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
424
- * for each enumerable key in the object.
425
- *
426
- * @param {Mixed} leftHandOperand
427
- * @param {Mixed} rightHandOperand
428
- * @param {Object} [options] (Optional)
429
- * @return {Boolean} result
430
- *)
431
- (*!
432
- * Returns true if the argument is a primitive.
433
- *
434
- * This intentionally returns true for all objects that can be compared by reference,
435
- * including functions and symbols.
436
- *
437
- * @param {Mixed} value
438
- * @return {Boolean} result
439
- *)
440
- *)
441
-
442
- @vitest/snapshot/dist/index.js:
443
- (*
444
- * @version 1.4.0
445
- * @date 2015-10-26
446
- * @stability 3 - Stable
447
- * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
448
- * @license MIT License
449
- *)
450
- *///# sourceMappingURL=renderers.vitest.mjs.map
451
- //# sourceMappingURL=renderers.vitest.mjs.map