@isdk/util 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +6 -0
  2. package/dist/chunk-3TCMKKX2.mjs +1 -0
  3. package/dist/chunk-46TT3NZV.mjs +1 -0
  4. package/dist/chunk-7APJBRA7.mjs +1 -0
  5. package/dist/chunk-7AQU3PBW.mjs +1 -0
  6. package/dist/chunk-D3BCI5SM.mjs +1 -0
  7. package/dist/chunk-FXF2KJLF.mjs +1 -0
  8. package/dist/chunk-GGOKSJK4.mjs +1 -0
  9. package/dist/chunk-JTTOXXPG.mjs +1 -0
  10. package/dist/chunk-LOMQZH4U.mjs +292 -0
  11. package/dist/chunk-OTEAFARC.mjs +1 -0
  12. package/dist/chunk-UJZVJIGI.mjs +1 -0
  13. package/dist/config-file.d.mts +75 -0
  14. package/dist/config-file.d.ts +75 -0
  15. package/dist/config-file.js +1 -0
  16. package/dist/config-file.mjs +1 -0
  17. package/dist/config-file.test.d.mts +2 -0
  18. package/dist/config-file.test.d.ts +2 -0
  19. package/dist/config-file.test.js +292 -0
  20. package/dist/config-file.test.mjs +1 -0
  21. package/dist/front-matter.d.mts +6 -0
  22. package/dist/front-matter.d.ts +6 -0
  23. package/dist/front-matter.js +1 -0
  24. package/dist/front-matter.mjs +1 -0
  25. package/dist/front-matter.test.d.mts +2 -0
  26. package/dist/front-matter.test.d.ts +2 -0
  27. package/dist/front-matter.test.js +1 -0
  28. package/dist/front-matter.test.mjs +1 -0
  29. package/dist/get-multi-level-extname.d.mts +9 -0
  30. package/dist/get-multi-level-extname.d.ts +9 -0
  31. package/dist/get-multi-level-extname.js +1 -0
  32. package/dist/get-multi-level-extname.mjs +1 -0
  33. package/dist/glob.d.mts +28 -0
  34. package/dist/glob.d.ts +28 -0
  35. package/dist/glob.js +1 -0
  36. package/dist/glob.mjs +1 -0
  37. package/dist/glob.test.d.mts +2 -0
  38. package/dist/glob.test.d.ts +2 -0
  39. package/dist/glob.test.js +292 -0
  40. package/dist/glob.test.mjs +1 -0
  41. package/dist/include-files.d.mts +31 -0
  42. package/dist/include-files.d.ts +31 -0
  43. package/dist/include-files.js +1 -0
  44. package/dist/include-files.mjs +1 -0
  45. package/dist/include-files.test.d.mts +2 -0
  46. package/dist/include-files.test.d.ts +2 -0
  47. package/dist/include-files.test.js +292 -0
  48. package/dist/include-files.test.mjs +1 -0
  49. package/dist/index.d.mts +11 -0
  50. package/dist/index.d.ts +11 -0
  51. package/dist/index.js +1 -0
  52. package/dist/index.mjs +1 -0
  53. package/dist/is-string-in.d.mts +19 -0
  54. package/dist/is-string-in.d.ts +19 -0
  55. package/dist/is-string-in.js +1 -0
  56. package/dist/is-string-in.mjs +1 -0
  57. package/dist/magic-string.es-TUA2PMWY.mjs +1 -0
  58. package/dist/remove-leading-empty-lines.d.mts +18 -0
  59. package/dist/remove-leading-empty-lines.d.ts +18 -0
  60. package/dist/remove-leading-empty-lines.js +1 -0
  61. package/dist/remove-leading-empty-lines.mjs +1 -0
  62. package/dist/remove-leading-empty-lines.test.d.mts +2 -0
  63. package/dist/remove-leading-empty-lines.test.d.ts +2 -0
  64. package/dist/remove-leading-empty-lines.test.js +1 -0
  65. package/dist/remove-leading-empty-lines.test.mjs +1 -0
  66. package/dist/traverse-folder.d.mts +56 -0
  67. package/dist/traverse-folder.d.ts +56 -0
  68. package/dist/traverse-folder.js +1 -0
  69. package/dist/traverse-folder.mjs +1 -0
  70. package/dist/traverse-folder.test.d.mts +2 -0
  71. package/dist/traverse-folder.test.d.ts +2 -0
  72. package/dist/traverse-folder.test.js +292 -0
  73. package/dist/traverse-folder.test.mjs +1 -0
  74. package/dist/yaml.d.mts +59 -0
  75. package/dist/yaml.d.ts +59 -0
  76. package/dist/yaml.js +1 -0
  77. package/dist/yaml.mjs +1 -0
  78. package/docs/README.md +10 -0
  79. package/docs/classes/ConfigFile.md +169 -0
  80. package/docs/functions/getMultiLevelExtname.md +33 -0
  81. package/docs/functions/glob.md +56 -0
  82. package/docs/functions/isStringIn.md +43 -0
  83. package/docs/functions/normalizeIncludeFiles.md +49 -0
  84. package/docs/functions/parseFrontMatter.md +33 -0
  85. package/docs/functions/parseYaml.md +45 -0
  86. package/docs/functions/registerYamlTag.md +37 -0
  87. package/docs/functions/removeLeadingEmptyLines.md +39 -0
  88. package/docs/functions/stringifyYaml.md +45 -0
  89. package/docs/functions/traverseFolder.md +44 -0
  90. package/docs/functions/traverseFolderSync.md +44 -0
  91. package/docs/globals.md +36 -0
  92. package/docs/interfaces/IncludeFiles.md +25 -0
  93. package/docs/type-aliases/TraverseFolderHandler.md +33 -0
  94. package/docs/type-aliases/TraverseFolderSyncHandler.md +33 -0
  95. package/docs/variables/DefaultAllTextFiles.md +11 -0
  96. package/package.json +68 -0
@@ -0,0 +1,292 @@
1
+ import{__commonJS as t,__publicField as e,__require as n,__toESM as r,init_esm_shims as o}from"./chunk-UJZVJIGI.mjs";var i=t({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/branding.js"(t){o(),Object.defineProperty(t,"__esModule",{value:!0})}}),s=t({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/messages.js"(t){o(),Object.defineProperty(t,"__esModule",{value:!0});Symbol("inverted"),Symbol("expectNull"),Symbol("expectUndefined"),Symbol("expectNumber"),Symbol("expectString"),Symbol("expectBoolean"),Symbol("expectVoid"),Symbol("expectFunction"),Symbol("expectObject"),Symbol("expectArray"),Symbol("expectSymbol"),Symbol("expectAny"),Symbol("expectUnknown"),Symbol("expectNever"),Symbol("expectNullable"),Symbol("expectBigInt")}}),c=t({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/overloads.js"(t){o(),Object.defineProperty(t,"__esModule",{value:!0})}}),a=t({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/utils.js"(t){o(),Object.defineProperty(t,"__esModule",{value:!0});Symbol("secret"),Symbol("mismatch"),Symbol("avalue")}}),u=t({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/index.js"(t){o();var e=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=t&&t.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.expectTypeOf=void 0,n(i(),t),n(s(),t),n(c(),t),n(a(),t);var r=()=>!0;t.expectTypeOf=e=>{const n={toBeAny:r,toBeUnknown:r,toBeNever:r,toBeFunction:r,toBeObject:r,toBeArray:r,toBeString:r,toBeNumber:r,toBeBoolean:r,toBeVoid:r,toBeSymbol:r,toBeNull:r,toBeUndefined:r,toBeNullable:r,toBeBigInt:r,toMatchTypeOf:r,toEqualTypeOf:r,toBeConstructibleWith:r,toMatchObjectType:r,toExtend:r,map:t.expectTypeOf,toBeCallableWith:t.expectTypeOf,extract:t.expectTypeOf,exclude:t.expectTypeOf,pick:t.expectTypeOf,omit:t.expectTypeOf,toHaveProperty:t.expectTypeOf,parameter:t.expectTypeOf};return["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"].forEach((e=>Object.defineProperty(n,e,{get:()=>(0,t.expectTypeOf)({})}))),n}}});o(),o(),o(),o(),o(),o();var l=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function f(t){return String(t)}f.open="",f.close="";import{isatty as h}from"tty";var p=function(t=!1){let e=function(t=!1){let e="undefined"!=typeof process?process:void 0,n=(null==e?void 0:e.env)||{},r=(null==e?void 0:e.argv)||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===(null==e?void 0:e.platform)||t&&"dumb"!==n.TERM||"CI"in n)||"undefined"!=typeof window&&!!window.chrome}(t),n=(t,e,n=t)=>{let r=r=>{let o=String(r),i=o.indexOf(e,t.length);return~i?t+((t,e,n,r)=>{let o="",i=0;do{o+=t.substring(i,r)+n,i=r+e.length,r=t.indexOf(e,i)}while(~r);return o+t.substring(i)})(o,e,n,i)+e:t+o+e};return r.open=t,r.close=e,r},r={isColorSupported:e},o=t=>`[${t}m`;for(let[t,i]of l)r[t]=e?n(o(i[0]),o(i[1]),i[2]):f;return r}(void 0!==process.env.FORCE_TTY||h(1));function d(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function b(t,e,n,r,o,i,s=": "){let c="",a=0,u=t.next();if(!u.done){c+=e.spacingOuter;const l=n+e.indent;for(;!u.done;){if(c+=l,a++===e.maxWidth){c+="…";break}c+=i(u.value[0],e,l,r,o)+s+i(u.value[1],e,l,r,o),u=t.next(),u.done?e.min||(c+=","):c+=`,${e.spacingInner}`}c+=e.spacingOuter+n}return c}function m(t,e,n,r,o,i){let s="",c=0,a=t.next();if(!a.done){s+=e.spacingOuter;const u=n+e.indent;for(;!a.done;){if(s+=u,c++===e.maxWidth){s+="…";break}s+=i(a.value,e,u,r,o),a=t.next(),a.done?e.min||(s+=","):s+=`,${e.spacingInner}`}s+=e.spacingOuter+n}return s}function y(t,e,n,r,o,i){let s="";const c=t=>t instanceof DataView,a=c(t=t instanceof ArrayBuffer?new DataView(t):t)?t.byteLength:t.length;if(a>0){s+=e.spacingOuter;const u=n+e.indent;for(let n=0;n<a;n++){if(s+=u,n===e.maxWidth){s+="…";break}(c(t)||n in t)&&(s+=i(c(t)?t.getInt8(n):t[n],e,u,r,o)),n<a-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}function g(t,e,n,r,o,i){let s="";const c=function(t,e){const n=Object.keys(t),r=null===e?n:n.sort(e);if(Object.getOwnPropertySymbols)for(const e of Object.getOwnPropertySymbols(t))Object.getOwnPropertyDescriptor(t,e).enumerable&&r.push(e);return r}(t,e.compareKeys);if(c.length>0){s+=e.spacingOuter;const a=n+e.indent;for(let n=0;n<c.length;n++){const u=c[n];s+=`${a+i(u,e,a,r,o)}: ${i(t[u],e,a,r,o)}`,n<c.length-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}var w="function"==typeof Symbol&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,v=" ",$={serialize:(t,e,n,r,o,i)=>{const s=t.toString();if("ArrayContaining"===s||"ArrayNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+v}[${y(t.sample,e,n,r,o,i)}]`;if("ObjectContaining"===s||"ObjectNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+v}{${g(t.sample,e,n,r,o,i)}}`;if("StringMatching"===s||"StringNotMatching"===s)return s+v+i(t.sample,e,n,r,o);if("StringContaining"===s||"StringNotContaining"===s)return s+v+i(t.sample,e,n,r,o);if("function"!=typeof t.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`);return t.toAsymmetricMatcher()},test:t=>t&&t.$$typeof===w},x=new Set(["DOMStringMap","NamedNodeMap"]),S=/^(?:HTML\w*Collection|NodeList)$/;var j={serialize:(t,e,n,r,o,i)=>{const s=t.constructor.name;return++r>e.maxDepth?`[${s}]`:(e.min?"":s+" ")+(x.has(s)?`{${g(function(t){return"NamedNodeMap"===t.constructor.name}(t)?[...t].reduce(((t,e)=>(t[e.name]=e.value,t)),{}):{...t},e,n,r,o,i)}}`:`[${y([...t],e,n,r,o,i)}]`)},test:t=>{return t&&t.constructor&&!!t.constructor.name&&(e=t.constructor.name,x.has(e)||S.test(e));var e}};function E(t){return t.replaceAll("<","&lt;").replaceAll(">","&gt;")}function T(t,e,n,r,o,i,s){const c=r+n.indent,a=n.colors;return t.map((t=>{const u=e[t];let l=s(u,n,c,o,i);return"string"!=typeof u&&(l.includes("\n")&&(l=n.spacingOuter+c+l+n.spacingOuter+r),l=`{${l}}`),`${n.spacingInner+r+a.prop.open+t+a.prop.close}=${a.value.open}${l}${a.value.close}`})).join("")}function O(t,e,n,r,o,i){return t.map((t=>e.spacingOuter+n+("string"==typeof t?k(t,e):i(t,e,n,r,o)))).join("")}function k(t,e){const n=e.colors.content;return n.open+E(t)+n.close}function A(t,e,n,r,o){const i=r.colors.tag;return`${i.open}<${t}${e&&i.close+e+r.spacingOuter+o+i.open}${n?`>${i.close}${n}${r.spacingOuter}${o}${i.open}</${t}`:(e&&!r.min?"":" ")+"/"}>${i.close}`}function _(t,e){const n=e.colors.tag;return`${n.open}<${t}${n.close} …${n.open} />${n.close}`}var M=/^(?:(?:HTML|SVG)\w*)?Element$/;function I(t){return 11===t.nodeType}var C={serialize:(t,e,n,r,o,i)=>{if(function(t){return 3===t.nodeType}(t))return k(t.data,e);if(function(t){return 8===t.nodeType}(t))return function(t,e){const n=e.colors.comment;return`${n.open}\x3c!--${E(t)}--\x3e${n.close}`}(t.data,e);const s=I(t)?"DocumentFragment":t.tagName.toLowerCase();return++r>e.maxDepth?_(s,e):A(s,T(I(t)?[]:Array.from(t.attributes,(t=>t.name)).sort(),I(t)?{}:[...t.attributes].reduce(((t,e)=>(t[e.name]=e.value,t)),{}),e,n+e.indent,r,o,i),O(Array.prototype.slice.call(t.childNodes||t.children),e,n+e.indent,r,o,i),e,n)},test:t=>{var e;return(null==(e=null==t?void 0:t.constructor)?void 0:e.name)&&function(t){const e=t.constructor.name,{nodeType:n,tagName:r}=t,o="string"==typeof r&&r.includes("-")||function(t){try{return"function"==typeof t.hasAttribute&&t.hasAttribute("is")}catch{return!1}}(t);return 1===n&&(M.test(e)||o)||3===n&&"Text"===e||8===n&&"Comment"===e||11===n&&"DocumentFragment"===e}(t)}},N="@@__IMMUTABLE_ORDERED__@@",P=t=>`Immutable.${t}`,R=t=>`[${t}]`,B=" ";function D(t,e,n,r,o,i,s){return++r>e.maxDepth?R(P(s)):`${P(s)+B}[${m(t.values(),e,n,r,o,i)}]`}var F={serialize:(t,e,n,r,o,i)=>t["@@__IMMUTABLE_MAP__@@"]?function(t,e,n,r,o,i,s){return++r>e.maxDepth?R(P(s)):`${P(s)+B}{${b(t.entries(),e,n,r,o,i)}}`}(t,e,n,r,o,i,t[N]?"OrderedMap":"Map"):t["@@__IMMUTABLE_LIST__@@"]?D(t,e,n,r,o,i,"List"):t["@@__IMMUTABLE_SET__@@"]?D(t,e,n,r,o,i,t[N]?"OrderedSet":"Set"):t["@@__IMMUTABLE_STACK__@@"]?D(t,e,n,r,o,i,"Stack"):t["@@__IMMUTABLE_SEQ__@@"]?function(t,e,n,r,o,i){const s=P("Seq");return++r>e.maxDepth?R(s):t["@@__IMMUTABLE_KEYED__@@"]?`${s+B}{${t._iter||t._object?b(t.entries(),e,n,r,o,i):"…"}}`:`${s+B}[${t._iter||t._array||t._collection||t._iterable?m(t.values(),e,n,r,o,i):"…"}]`}(t,e,n,r,o,i):function(t,e,n,r,o,i){const s=P(t._name||"Record");return++r>e.maxDepth?R(s):`${s+B}{${b(function(t){let e=0;return{next(){if(e<t._keys.length){const n=t._keys[e++];return{done:!1,value:[n,t.get(n)]}}return{done:!0,value:void 0}}}}(t),e,n,r,o,i)}}`}(t,e,n,r,o,i),test:t=>t&&(!0===t["@@__IMMUTABLE_ITERABLE__@@"]||!0===t["@@__IMMUTABLE_RECORD__@@"])};function L(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var q,J={exports:{}},W={};var U,H,X={};function z(){return H||(H=1,"production"===process.env.NODE_ENV?J.exports=function(){if(q)return W;q=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.for("react.client.reference");function d(h){if("object"==typeof h&&null!==h){var p=h.$$typeof;switch(p){case t:switch(h=h.type){case n:case o:case r:case a:case u:return h;default:switch(h=h&&h.$$typeof){case s:case c:case f:case l:case i:return h;default:return p}}case e:return p}}}return W.ContextConsumer=i,W.ContextProvider=s,W.Element=t,W.ForwardRef=c,W.Fragment=n,W.Lazy=f,W.Memo=l,W.Portal=e,W.Profiler=o,W.StrictMode=r,W.Suspense=a,W.SuspenseList=u,W.isContextConsumer=function(t){return d(t)===i},W.isContextProvider=function(t){return d(t)===s},W.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},W.isForwardRef=function(t){return d(t)===c},W.isFragment=function(t){return d(t)===n},W.isLazy=function(t){return d(t)===f},W.isMemo=function(t){return d(t)===l},W.isPortal=function(t){return d(t)===e},W.isProfiler=function(t){return d(t)===o},W.isStrictMode=function(t){return d(t)===r},W.isSuspense=function(t){return d(t)===a},W.isSuspenseList=function(t){return d(t)===u},W.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===o||t===r||t===a||t===u||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===l||t.$$typeof===s||t.$$typeof===i||t.$$typeof===c||t.$$typeof===p||void 0!==t.getModuleId)},W.typeOf=d,W}():J.exports=(U||(U=1,"production"!==process.env.NODE_ENV&&function(){function t(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case r:case i:case o:case u:case l:return t;default:switch(t=t&&t.$$typeof){case c:case a:case h:case f:case s:return t;default:return p}}case n:return p}}}var e=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"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),d=Symbol.for("react.client.reference");X.ContextConsumer=s,X.ContextProvider=c,X.Element=e,X.ForwardRef=a,X.Fragment=r,X.Lazy=h,X.Memo=f,X.Portal=n,X.Profiler=i,X.StrictMode=o,X.Suspense=u,X.SuspenseList=l,X.isContextConsumer=function(e){return t(e)===s},X.isContextProvider=function(e){return t(e)===c},X.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},X.isForwardRef=function(e){return t(e)===a},X.isFragment=function(e){return t(e)===r},X.isLazy=function(e){return t(e)===h},X.isMemo=function(e){return t(e)===f},X.isPortal=function(e){return t(e)===n},X.isProfiler=function(e){return t(e)===i},X.isStrictMode=function(e){return t(e)===o},X.isSuspense=function(e){return t(e)===u},X.isSuspenseList=function(e){return t(e)===l},X.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===l||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===c||t.$$typeof===s||t.$$typeof===a||t.$$typeof===d||void 0!==t.getModuleId)},X.typeOf=t}()),X)),J.exports}var V,G=z(),K=d({__proto__:null,default:L(G)},[G]),Z={exports:{}},Y={};var Q,tt,et={};var nt=(tt||(tt=1,"production"===process.env.NODE_ENV?Z.exports=function(){if(V)return Y;V=1;var t,e=Symbol.for("react.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.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen");function b(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:switch(t=t.type){case r:case i:case o:case l:case f:return t;default:switch(t=t&&t.$$typeof){case a:case c:case u:case p:case h:case s:return t;default:return d}}case n:return d}}}return t=Symbol.for("react.module.reference"),Y.ContextConsumer=c,Y.ContextProvider=s,Y.Element=e,Y.ForwardRef=u,Y.Fragment=r,Y.Lazy=p,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=l,Y.SuspenseList=f,Y.isAsyncMode=function(){return!1},Y.isConcurrentMode=function(){return!1},Y.isContextConsumer=function(t){return b(t)===c},Y.isContextProvider=function(t){return b(t)===s},Y.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Y.isForwardRef=function(t){return b(t)===u},Y.isFragment=function(t){return b(t)===r},Y.isLazy=function(t){return b(t)===p},Y.isMemo=function(t){return b(t)===h},Y.isPortal=function(t){return b(t)===n},Y.isProfiler=function(t){return b(t)===i},Y.isStrictMode=function(t){return b(t)===o},Y.isSuspense=function(t){return b(t)===l},Y.isSuspenseList=function(t){return b(t)===f},Y.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===l||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===t||void 0!==e.getModuleId)},Y.typeOf=b,Y}():Z.exports=(Q||(Q=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.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.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen");function b(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:var b=t.type;switch(b){case r:case i:case o:case l:case f:return b;default:var m=b&&b.$$typeof;switch(m){case a:case c:case u:case p:case h:case s:return m;default:return d}}case n:return d}}}t=Symbol.for("react.module.reference");var m=c,y=s,g=e,w=u,v=r,$=p,x=h,S=n,j=i,E=o,T=l,O=f,k=!1,A=!1;et.ContextConsumer=m,et.ContextProvider=y,et.Element=g,et.ForwardRef=w,et.Fragment=v,et.Lazy=$,et.Memo=x,et.Portal=S,et.Profiler=j,et.StrictMode=E,et.Suspense=T,et.SuspenseList=O,et.isAsyncMode=function(t){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},et.isConcurrentMode=function(t){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},et.isContextConsumer=function(t){return b(t)===c},et.isContextProvider=function(t){return b(t)===s},et.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},et.isForwardRef=function(t){return b(t)===u},et.isFragment=function(t){return b(t)===r},et.isLazy=function(t){return b(t)===p},et.isMemo=function(t){return b(t)===h},et.isPortal=function(t){return b(t)===n},et.isProfiler=function(t){return b(t)===i},et.isStrictMode=function(t){return b(t)===o},et.isSuspense=function(t){return b(t)===l},et.isSuspenseList=function(t){return b(t)===f},et.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===l||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===t||void 0!==e.getModuleId)},et.typeOf=b}()),et)),Z.exports),rt=d({__proto__:null,default:L(nt)},[nt]),ot=Object.fromEntries(["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"].map((t=>[t,e=>rt[t](e)||K[t](e)])));function it(t,e=[]){if(Array.isArray(t))for(const n of t)it(n,e);else null!=t&&!1!==t&&""!==t&&e.push(t);return e}function st(t){const e=t.type;if("string"==typeof e)return e;if("function"==typeof e)return e.displayName||e.name||"Unknown";if(ot.isFragment(t))return"React.Fragment";if(ot.isSuspense(t))return"React.Suspense";if("object"==typeof e&&null!==e){if(ot.isContextProvider(t))return"Context.Provider";if(ot.isContextConsumer(t))return"Context.Consumer";if(ot.isForwardRef(t)){if(e.displayName)return e.displayName;const t=e.render.displayName||e.render.name||"";return""===t?"ForwardRef":`ForwardRef(${t})`}if(ot.isMemo(t)){const t=e.displayName||e.type.displayName||e.type.name||"";return""===t?"Memo":`Memo(${t})`}}return"UNDEFINED"}var ct={serialize:(t,e,n,r,o,i)=>++r>e.maxDepth?_(st(t),e):A(st(t),T(function(t){const{props:e}=t;return Object.keys(e).filter((t=>"children"!==t&&void 0!==e[t])).sort()}(t),t.props,e,n+e.indent,r,o,i),O(it(t.props.children),e,n+e.indent,r,o,i),e,n),test:t=>null!=t&&ot.isElement(t)},at="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var ut={serialize:(t,e,n,r,o,i)=>++r>e.maxDepth?_(t.type,e):A(t.type,t.props?T(function(t){const{props:e}=t;return e?Object.keys(e).filter((t=>void 0!==e[t])).sort():[]}(t),t.props,e,n+e.indent,r,o,i):"",t.children?O(t.children,e,n+e.indent,r,o,i):"",e,n),test:t=>t&&t.$$typeof===at},lt=Object.prototype.toString,ft=Date.prototype.toISOString,ht=Error.prototype.toString,pt=RegExp.prototype.toString;function dt(t){return"function"==typeof t.constructor&&t.constructor.name||"Object"}var bt=/^Symbol\((.*)\)(.*)$/,mt=/\n/g,yt=class extends Error{constructor(t,e){super(t),this.stack=e,this.name=this.constructor.name}};function gt(t,e){return e?`[Function ${t.name||"anonymous"}]`:"[Function]"}function wt(t){return String(t).replace(bt,"Symbol($1)")}function vt(t){return`[${ht.call(t)}]`}function $t(t,e,n,r){if(!0===t||!1===t)return`${t}`;if(void 0===t)return"undefined";if(null===t)return"null";const o=typeof t;if("number"===o)return function(t){return Object.is(t,-0)?"-0":String(t)}(t);if("bigint"===o)return function(t){return String(`${t}n`)}(t);if("string"===o)return r?`"${t.replaceAll(/"|\\/g,"\\$&")}"`:`"${t}"`;if("function"===o)return gt(t,e);if("symbol"===o)return wt(t);const i=lt.call(t);return"[object WeakMap]"===i?"WeakMap {}":"[object WeakSet]"===i?"WeakSet {}":"[object Function]"===i||"[object GeneratorFunction]"===i?gt(t,e):"[object Symbol]"===i?wt(t):"[object Date]"===i?Number.isNaN(+t)?"Date { NaN }":ft.call(t):"[object Error]"===i?vt(t):"[object RegExp]"===i?n?pt.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):pt.call(t):t instanceof Error?vt(t):null}function xt(t,e,n,r,o,i){if(o.includes(t))return"[Circular]";(o=[...o]).push(t);const s=++r>e.maxDepth,c=e.min;if(e.callToJSON&&!s&&t.toJSON&&"function"==typeof t.toJSON&&!i)return Tt(t.toJSON(),e,n,r,o,!0);const a=lt.call(t);return"[object Arguments]"===a?s?"[Arguments]":`${c?"":"Arguments "}[${y(t,e,n,r,o,Tt)}]`:function(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}(a)?s?`[${t.constructor.name}]`:`${c?"":e.printBasicPrototype||"Array"!==t.constructor.name?`${t.constructor.name} `:""}[${y(t,e,n,r,o,Tt)}]`:"[object Map]"===a?s?"[Map]":`Map {${b(t.entries(),e,n,r,o,Tt," => ")}}`:"[object Set]"===a?s?"[Set]":`Set {${m(t.values(),e,n,r,o,Tt)}}`:s||function(t){return"undefined"!=typeof window&&t===window}(t)?`[${dt(t)}]`:`${c?"":e.printBasicPrototype||"Object"!==dt(t)?`${dt(t)} `:""}{${g(t,e,n,r,o,Tt)}}`}var St={test:t=>t&&t instanceof Error,serialize(t,e,n,r,o,i){if(o.includes(t))return"[Circular]";o=[...o,t];const s=++r>e.maxDepth,{message:c,cause:a,...u}=t,l={message:c,...void 0!==a?{cause:a}:{},...t instanceof AggregateError?{errors:t.errors}:{},...u},f="Error"!==t.name?t.name:dt(t);return s?`[${f}]`:`${f} {${b(Object.entries(l).values(),e,n,r,o,i)}}`}};function jt(t,e,n,r,o,i){let s;try{s=function(t){return null!=t.serialize}(t)?t.serialize(e,n,r,o,i,Tt):t.print(e,(t=>Tt(t,n,r,o,i)),(t=>{const e=r+n.indent;return e+t.replaceAll(mt,`\n${e}`)}),{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(t){throw new yt(t.message,t.stack)}if("string"!=typeof s)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function Et(t,e){for(const n of t)try{if(n.test(e))return n}catch(t){throw new yt(t.message,t.stack)}return null}function Tt(t,e,n,r,o,i){const s=Et(e.plugins,t);if(null!==s)return jt(s,t,e,n,r,o);const c=$t(t,e.printFunctionName,e.escapeRegex,e.escapeString);return null!==c?c:xt(t,e,n,r,o,i)}var Ot={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},kt=Object.keys(Ot),At={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Ot};function _t(t){return(null==t?void 0:t.printFunctionName)??At.printFunctionName}function Mt(t){return(null==t?void 0:t.escapeRegex)??At.escapeRegex}function It(t){return(null==t?void 0:t.escapeString)??At.escapeString}function Ct(t){return{callToJSON:(null==t?void 0:t.callToJSON)??At.callToJSON,colors:(null==t?void 0:t.highlight)?kt.reduce(((t,e)=>{const n=Ot[e],r=n&&p[n];if(!r||"string"!=typeof r.close||"string"!=typeof r.open)throw new Error(`pretty-format: Option "theme" has a key "${e}" whose value "${n}" is undefined in ansi-styles.`);return t[e]=r,t}),Object.create(null)):kt.reduce(((t,e)=>(t[e]={close:"",open:""},t)),Object.create(null)),compareKeys:"function"==typeof(null==t?void 0:t.compareKeys)||null===(null==t?void 0:t.compareKeys)?t.compareKeys:At.compareKeys,escapeRegex:Mt(t),escapeString:It(t),indent:(null==t?void 0:t.min)?"":(e=(null==t?void 0:t.indent)??At.indent,Array.from({length:e+1}).join(" ")),maxDepth:(null==t?void 0:t.maxDepth)??At.maxDepth,maxWidth:(null==t?void 0:t.maxWidth)??At.maxWidth,min:(null==t?void 0:t.min)??At.min,plugins:(null==t?void 0:t.plugins)??At.plugins,printBasicPrototype:(null==t?void 0:t.printBasicPrototype)??!0,printFunctionName:_t(t),spacingInner:(null==t?void 0:t.min)?" ":"\n",spacingOuter:(null==t?void 0:t.min)?"":"\n"};var e}function Nt(t,e){if(e&&(function(t){for(const e of Object.keys(t))if(!Object.prototype.hasOwnProperty.call(At,e))throw new Error(`pretty-format: Unknown option "${e}".`);if(t.min&&void 0!==t.indent&&0!==t.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}(e),e.plugins)){const n=Et(e.plugins,t);if(null!==n)return jt(n,t,Ct(e),"",0,[])}const n=$t(t,_t(e),Mt(e),It(e));return null!==n?n:xt(t,Ct(e),"",0,[])}var Pt={AsymmetricMatcher:$,DOMCollection:j,DOMElement:C,Immutable:F,ReactElement:ct,ReactTestComponent:ut,Error:St};o(),o(),o();var Rt={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"]},Bt={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Dt="…";function Ft(t,e){const n=Rt[Bt[e]]||Rt[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function Lt(t,e,n=Dt){t=String(t);const r=n.length,o=t.length;if(r>e&&o>r)return n;if(o>e&&o>r){let o=e-r;return o>0&&((i=t[o-1])>="\ud800"&&i<="\udbff")&&(o-=1),`${t.slice(0,o)}${n}`}var i;return t}function qt(t,e,n,r=", "){n=n||e.inspect;const o=t.length;if(0===o)return"";const i=e.truncate;let s="",c="",a="";for(let u=0;u<o;u+=1){const o=u+1===t.length,l=u+2===t.length;a=`${Dt}(${t.length-u})`;const f=t[u];e.truncate=i-s.length-(o?0:r.length);const h=c||n(f,e)+(o?"":r),p=s.length+h.length,d=p+a.length;if(o&&p>i&&s.length+a.length<=i)break;if(!o&&!l&&d>i)break;if(c=o?"":n(t[u+1],e)+(l?"":r),!o&&l&&d>i&&p+c.length>i)break;if(s+=h,!o&&!l&&p+c.length>=i){a=`${Dt}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function Jt([t,e],n){return n.truncate-=2,"string"==typeof t?t=function(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(t):"number"!=typeof t&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,`${t}: ${e=n.inspect(e,n)}`}o();function Wt(t,e){const n=(t=>"function"==typeof Buffer&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name)(t);e.truncate-=n.length+4;const r=Object.keys(t).slice(t.length);if(!t.length&&!r.length)return`${n}[]`;let o="";for(let n=0;n<t.length;n++){const r=`${e.stylize(Lt(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){o+=`${Dt}(${t.length-t[n]+1})`;break}o+=r}let i="";return r.length&&(i=qt(r.map((e=>[e,t[e]])),e,Jt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}function Ut(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${Lt(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function Ht([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}o(),o(),o(),o();var Xt=Number.isNaN||(t=>t!=t);function zt(t,e){return Xt(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):0===t?e.stylize(1/t==1/0?"+0":"-0","number"):e.stylize(Lt(String(t),e.truncate),"number")}function Vt(t,e){let n=Lt(t.toString(),e.truncate-1);return n!==Dt&&(n+="n"),e.stylize(n,"bigint")}o(),o(),o(),o();var Gt=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Kt={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function Zt(t){return Kt[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function Yt(t,e){return Gt.test(t)&&(t=t.replace(Gt,Zt)),e.stylize(`'${Lt(t,e.truncate-2)}'`,"string")}function Qt(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}o(),o();var te=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(te=(r,o)=>{const[i,s]=t(r);return i===e?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`})}catch(t){}var ee=te;function ne(t,e){const n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(0===n.length&&0===r.length)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const o=qt(n.map((e=>[e,t[e]])),e,Jt),i=qt(r.map((e=>[e,t[e]])),e,Jt);e.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}o(),o();var re=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;o(),o();var oe=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function ie([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function se(t,e){return qt(t,e,ce,"\n")}function ce(t,e){const n=t.getAttributeNames(),r=t.tagName.toLowerCase(),o=e.stylize(`<${r}`,"special"),i=e.stylize(">","special"),s=e.stylize(`</${r}>`,"special");e.truncate-=2*r.length+5;let c="";n.length>0&&(c+=" ",c+=qt(n.map((e=>[e,t.getAttribute(e)])),e,ie," ")),e.truncate-=c.length;const a=e.truncate;let u=se(t.children,e);return u&&u.length>a&&(u=`${Dt}(${t.children.length})`),`${o}${c}${i}${u}${s}`}o();var ae="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",ue=!1;try{const t=n("util");ue=!!t.inspect&&t.inspect.custom}catch(t){ue=!1}var le=new WeakMap,fe={},he={undefined:(t,e)=>e.stylize("undefined","undefined"),null:(t,e)=>e.stylize("null","null"),boolean:(t,e)=>e.stylize(String(t),"boolean"),Boolean:(t,e)=>e.stylize(String(t),"boolean"),number:zt,Number:zt,bigint:Vt,BigInt:Vt,string:Yt,String:Yt,function:Ut,Function:Ut,symbol:Qt,Symbol:Qt,Array:function(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=qt(t,e);e.truncate-=r.length;let o="";return n.length&&(o=qt(n.map((e=>[e,t[e]])),e,Jt)),`[ ${r}${o?`, ${o}`:""} ]`},Date:function(t,e){const n=t.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),o=r[0];return e.stylize(`${o}T${Lt(r[1],e.truncate-o.length-1)}`,"date")},Map:function(t,e){return 0===t.size?"Map{}":(e.truncate-=7,`Map{ ${qt(function(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}(t),e,Ht)} }`)},Set:function(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${qt(function(t){const e=[];return t.forEach((t=>{e.push(t)})),e}(t),e)} }`)},RegExp:function(t,e){const n=t.toString().split("/")[2],r=e.truncate-(2+n.length),o=t.source;return e.stylize(`/${Lt(o,r)}/${n}`,"regexp")},Promise:ee,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:function(t,e){return 0===t.length?"Arguments[]":(e.truncate-=13,`Arguments[ ${qt(t,e)} ]`)},Int8Array:Wt,Uint8Array:Wt,Uint8ClampedArray:Wt,Int16Array:Wt,Uint16Array:Wt,Int32Array:Wt,Uint32Array:Wt,Float32Array:Wt,Float64Array:Wt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===oe.indexOf(t))),r=t.name;e.truncate-=r.length;let o="";if("string"==typeof t.message?o=Lt(t.message,e.truncate):n.unshift("message"),o=o?`: ${o}`:"",e.truncate-=o.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const i=qt(n.map((e=>[e,t[e]])),e,Jt);return`${r}${o}${i?` { ${i} }`:""}`},HTMLCollection:se,NodeList:se},pe=Object.prototype.toString;function de(t,e={}){const n=function({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:r=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:a=1/0,stylize:u=String}={},l){const f={showHidden:Boolean(t),depth:Number(e),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(o),maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(a),seen:c,inspect:l,stylize:u};return f.colors&&(f.stylize=Ft),f}(e,de),{customInspect:r}=n;let o=null===t?"null":typeof t;if("object"===o&&(o=pe.call(t).slice(8,-1)),o in he)return he[o](t,n);if(r&&t){const e=((t,e,n)=>ae in t&&"function"==typeof t[ae]?t[ae](e):ue&&ue in t&&"function"==typeof t[ue]?t[ue](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&le.has(t.constructor)?le.get(t.constructor)(t,e):fe[n]?fe[n](t,e):"")(t,n,o);if(e)return"string"==typeof e?e:de(e,n)}const i=!!t&&Object.getPrototypeOf(t);return i===Object.prototype||null===i?ne(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?ce(t,n):"constructor"in t?t.constructor!==Object?function(t,e){let n="";return re&&re in t&&(n=t[re]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${ne(t,e)}`}(t,n):ne(t,n):t===Object(t)?ne(t,n):n.stylize(String(t),o)}var{AsymmetricMatcher:be,DOMCollection:me,DOMElement:ye,Immutable:ge,ReactElement:we,ReactTestComponent:ve}=Pt,$e=[ve,we,ye,me,ge,be];function xe(t,e=10,{maxLength:n,...r}={}){const o=n??1e4;let i;try{i=Nt(t,{maxDepth:e,escapeString:!1,plugins:$e,...r})}catch{i=Nt(t,{callToJSON:!1,maxDepth:e,escapeString:!1,plugins:$e,...r})}return i.length>=o&&e>1?xe(t,Math.floor(Math.min(e,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):i}var Se=/%[sdjifoOc%]/g;function je(...t){if("string"!=typeof t[0]){const e=[];for(let n=0;n<t.length;n++)e.push(Ee(t[n],{depth:0,colors:!1}));return e.join(" ")}const e=t.length;let n=1;const r=t[0];let o=String(r).replace(Se,(r=>{if("%%"===r)return"%";if(n>=e)return r;switch(r){case"%s":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:"number"==typeof e&&0===e&&1/e<0?"-0":"object"==typeof e&&null!==e?"function"==typeof e.toString&&e.toString!==Object.prototype.toString?e.toString():Ee(e,{depth:0,colors:!1}):String(e)}case"%d":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:Number(e).toString()}case"%i":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:Number.parseInt(String(e)).toString()}case"%f":return Number.parseFloat(String(t[n++])).toString();case"%o":return Ee(t[n++],{showHidden:!0,showProxy:!0});case"%O":return Ee(t[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(t[n++])}catch(t){const e=t.message;if(e.includes("circular structure")||e.includes("cyclic structures")||e.includes("cyclic object"))return"[Circular]";throw t}default:return r}}));for(let r=t[n];n<e;r=t[++n])o+=null===r||"object"!=typeof r?` ${r}`:` ${Ee(r)}`;return o}function Ee(t,e={}){return 0===e.truncate&&(e.truncate=Number.POSITIVE_INFINITY),de(t,e)}function Te(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Oe(t,e,n){const r=typeof t;if(!n.includes(r))throw new TypeError(`${e} value must be ${n.join(" or ")}, received "${r}"`)}function ke(t){return null==t&&(t=[]),Array.isArray(t)?t:[t]}function Ae(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}function _e(t){return Object.prototype.toString.apply(t).slice(8,-1)}function Me(t){const e=new Set;return function(t){return t===Object.prototype||t===Function.prototype||t===RegExp.prototype}(t)?[]:(function(t,e){const n="function"==typeof e?e:t=>e.add(t);Object.getOwnPropertyNames(t).forEach(n),Object.getOwnPropertySymbols(t).forEach(n)}(t,e),Array.from(e))}o();var Ie,Ce,Ne={forceWritable:!1};function Pe(t,e=Ne){return Re(t,new WeakMap,e)}function Re(t,e,n=Ne){let r,o;if(e.has(t))return e.get(t);if(Array.isArray(t)){for(o=Array.from({length:r=t.length}),e.set(t,o);r--;)o[r]=Re(t[r],e,n);return o}if("[object Object]"===Object.prototype.toString.call(t)){o=Object.create(Object.getPrototypeOf(t)),e.set(t,o);const r=Me(t);for(const i of r){const r=Object.getOwnPropertyDescriptor(t,i);if(!r)continue;const s=Re(t[i],e,n);n.forceWritable?Object.defineProperty(o,i,{enumerable:r.enumerable,configurable:!0,writable:!0,value:s}):"get"in r?Object.defineProperty(o,i,{...r,get:()=>s}):Object.defineProperty(o,i,{...r,value:s})}return o}return t}function Be(){let t=null,e=null;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n}Ce||(Ce=1,Ke=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,Ge=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,De=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,Ye=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,Ve=/(?: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,Qe=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,nn=/[\t\v\f\ufeff\p{Zs}]+/uy,He=/\r?\n|[\r\u2028\u2029]/y,Xe=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,Ze=/\/\/.*/y,Le=/[<>.:={}]|\/(?![\/*])/y,Fe=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,qe=/(['"])(?:(?!\1)[^])*(\1)?/y,Je=/[^<>{}]+/y,en=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,tn=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,We=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,Ue=/^(?:return|throw|yield)$/,ze=RegExp(He.source),Ie=function*(t,{jsx:e=!1}={}){var n,r,o,i,s,c,a,u,l,f,h,p,d,b;for(({length:c}=t),i=0,s="",b=[{tag:"JS"}],n=[],h=0,p=!1;i<c;){switch((u=b[b.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===t[i]&&(en.test(s)||We.test(s))&&(Ke.lastIndex=i,a=Ke.exec(t))){i=Ke.lastIndex,s=a[0],p=!0,yield{type:"RegularExpressionLiteral",value:a[0],closed:void 0!==a[1]&&"\\"!==a[1]};continue}if(Ge.lastIndex=i,a=Ge.exec(t)){switch(d=a[0],l=Ge.lastIndex,f=d,d){case"(":"?NonExpressionParenKeyword"===s&&b.push({tag:"JSNonExpressionParen",nesting:h}),h++,p=!1;break;case")":h--,p=!0,"JSNonExpressionParen"===u.tag&&h===u.nesting&&(b.pop(),f="?NonExpressionParenEnd",p=!1);break;case"{":Ge.lastIndex=0,o=!tn.test(s)&&(en.test(s)||We.test(s)),n.push(o),p=!1;break;case"}":switch(u.tag){case"InterpolationInTemplate":if(n.length===u.nesting){Qe.lastIndex=i,a=Qe.exec(t),i=Qe.lastIndex,s=a[0],"${"===a[1]?(s="?InterpolationInTemplate",p=!1,yield{type:"TemplateMiddle",value:a[0]}):(b.pop(),p=!0,yield{type:"TemplateTail",value:a[0],closed:"`"===a[1]});continue}break;case"InterpolationInJSX":if(n.length===u.nesting){b.pop(),i+=1,s="}",yield{type:"JSXPunctuator",value:"}"};continue}}f=(p=n.pop())?"?ExpressionBraceEnd":"}";break;case"]":p=!0;break;case"++":case"--":f=p?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(e&&(en.test(s)||We.test(s))){b.push({tag:"JSXTag"}),i+=1,s="<",yield{type:"JSXPunctuator",value:d};continue}p=!1;break;default:p=!1}i=l,s=f,yield{type:"Punctuator",value:d};continue}if(De.lastIndex=i,a=De.exec(t)){switch(i=De.lastIndex,f=a[0],a[0]){case"for":case"if":case"while":case"with":"."!==s&&"?."!==s&&(f="?NonExpressionParenKeyword")}s=f,p=!We.test(a[0]),yield{type:"#"===a[1]?"PrivateIdentifier":"IdentifierName",value:a[0]};continue}if(Ye.lastIndex=i,a=Ye.exec(t)){i=Ye.lastIndex,s=a[0],p=!0,yield{type:"StringLiteral",value:a[0],closed:void 0!==a[2]};continue}if(Ve.lastIndex=i,a=Ve.exec(t)){i=Ve.lastIndex,s=a[0],p=!0,yield{type:"NumericLiteral",value:a[0]};continue}if(Qe.lastIndex=i,a=Qe.exec(t)){i=Qe.lastIndex,s=a[0],"${"===a[1]?(s="?InterpolationInTemplate",b.push({tag:"InterpolationInTemplate",nesting:n.length}),p=!1,yield{type:"TemplateHead",value:a[0]}):(p=!0,yield{type:"NoSubstitutionTemplate",value:a[0],closed:"`"===a[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(Le.lastIndex=i,a=Le.exec(t)){switch(i=Le.lastIndex,f=a[0],a[0]){case"<":b.push({tag:"JSXTag"});break;case">":b.pop(),"/"===s||"JSXTagEnd"===u.tag?(f="?JSX",p=!0):b.push({tag:"JSXChildren"});break;case"{":b.push({tag:"InterpolationInJSX",nesting:n.length}),f="?InterpolationInJSX",p=!1;break;case"/":"<"===s&&(b.pop(),"JSXChildren"===b[b.length-1].tag&&b.pop(),b.push({tag:"JSXTagEnd"}))}s=f,yield{type:"JSXPunctuator",value:a[0]};continue}if(Fe.lastIndex=i,a=Fe.exec(t)){i=Fe.lastIndex,s=a[0],yield{type:"JSXIdentifier",value:a[0]};continue}if(qe.lastIndex=i,a=qe.exec(t)){i=qe.lastIndex,s=a[0],yield{type:"JSXString",value:a[0],closed:void 0!==a[2]};continue}break;case"JSXChildren":if(Je.lastIndex=i,a=Je.exec(t)){i=Je.lastIndex,s=a[0],yield{type:"JSXText",value:a[0]};continue}switch(t[i]){case"<":b.push({tag:"JSXTag"}),i++,s="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":b.push({tag:"InterpolationInJSX",nesting:n.length}),i++,s="?InterpolationInJSX",p=!1,yield{type:"JSXPunctuator",value:"{"};continue}}nn.lastIndex=i,(a=nn.exec(t))?(i=nn.lastIndex,yield{type:"WhiteSpace",value:a[0]}):(He.lastIndex=i,(a=He.exec(t))?(i=He.lastIndex,p=!1,Ue.test(s)&&(s="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:a[0]}):(Xe.lastIndex=i,(a=Xe.exec(t))?(i=Xe.lastIndex,ze.test(a[0])&&(p=!1,Ue.test(s)&&(s="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:a[0],closed:void 0!==a[1]}):(Ze.lastIndex=i,(a=Ze.exec(t))?(i=Ze.lastIndex,p=!1,yield{type:"SingleLineComment",value:a[0]}):(i+=(r=String.fromCodePoint(t.codePointAt(i))).length,s=r,p=!1,yield{type:u.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r}))))}});var De,Fe,Le,qe,Je,We,Ue,He,Xe,ze,Ve,Ge,Ke,Ze,Ye,Qe,tn,en,nn,rn=["implements","interface","let","package","private","protected","public","static","yield"],on=(new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),new Set(rn),Symbol("vitest:SAFE_TIMERS"));function sn(){const{setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}=globalThis[on]||globalThis,{nextTick:c}=globalThis[on]||globalThis.process||{nextTick:t=>t()};return{nextTick:c,setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}}o();",".charCodeAt(0);var cn,an,un="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ln=new Uint8Array(64),fn=new Uint8Array(128);for(let t=0;t<64;t++){const e=un.charCodeAt(t);ln[t]=e,fn[e]=t}(an=cn||(cn={}))[an.Empty=1]="Empty",an[an.Hash=2]="Hash",an[an.Query=3]="Query",an[an.RelativePath=4]="RelativePath",an[an.AbsolutePath=5]="AbsolutePath",an[an.SchemeRelative=6]="SchemeRelative",an[an.Absolute=7]="Absolute";var hn=/^[A-Za-z]:\//;var pn=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var dn=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(hn,(t=>t.toUpperCase())):t}(t)))).length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/";o&&0!==o.length&&(e=`${o}/${e}`,n=bn(o))}return e=function(t,e){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=t.length;++c){if(c<t.length)s=t[c];else{if("/"===s)break;s="/"}if("/"===s){if(o===c-1||1===i);else if(2===i){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){if(n.length>2){const t=n.lastIndexOf("/");-1===t?(n="",r=0):(n=n.slice(0,t),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}if(n.length>0){n="",r=0,o=c,i=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(o+1,c)}`:n=t.slice(o+1,c),r=c-o-1;o=c,i=0}else"."===s&&-1!==i?++i:i=-1}return n}(e,!n),n&&!bn(e)?`/${e}`:e.length>0?e:"."};var bn=function(t){return pn.test(t)},mn=/^\s*at .*(?:\S:\d+|\(native\))/m,yn=/^(?:eval@)?(?:\[native code\])?$/;function gn(t){if(!t.includes(":"))return[t];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!e)return[t];let n=e[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const t=new URL(n);t.searchParams.delete("import"),t.searchParams.delete("browserv"),n=t.pathname+t.hash+t.search}if(n.startsWith("/@fs/")){const t=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(t?5:4)}return[n,e[2]||void 0,e[3]||void 0]}function wn(t){const e=t.trim();return mn.test(e)?function(t){let e=t.trim();if(!mn.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[o,i,s]=gn(r?r[1]:n);let c=r&&n||"",a=o&&["eval","<anonymous>"].includes(o)?void 0:o;if(!a||!i||!s)return null;c.startsWith("async ")&&(c=c.slice(6));a.startsWith("file://")&&(a=a.slice(7));a=a.startsWith("node:")||a.startsWith("internal:")?a:dn(a),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,""));return{method:c,file:a,line:Number.parseInt(i),column:Number.parseInt(s)}}(e):function(t){let e=t.trim();if(yn.test(e))return null;if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,r=e.match(n),o=r&&r[1]?r[1]:void 0,[i,s,c]=gn(e.replace(n,""));return i&&s&&c?{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(e)}o(),o(),o();var vn=-1,$n=class{constructor(t,n){e(this,0),e(this,1),this[0]=t,this[1]=n}};function xn(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;let n=0,r=Math.min(t.length,e.length),o=r,i=0;for(;n<o;)t.substring(i,o)===e.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function Sn(t,e){if(!t||!e||t.charAt(t.length-1)!==e.charAt(e.length-1))return 0;let n=0,r=Math.min(t.length,e.length),o=r,i=0;for(;n<o;)t.substring(t.length-o,t.length-i)===e.substring(e.length-o,e.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function jn(t,e){const n=t.length,r=e.length;if(0===n||0===r)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));const o=Math.min(n,r);if(t===e)return o;let i=0,s=1;for(;;){const n=t.substring(o-s),r=e.indexOf(n);if(-1===r)return i;s+=r,0!==r&&t.substring(o-s)!==e.substring(0,s)||(i=s,s++)}}function En(t){let e=!1;const n=[];let r=0,o=null,i=0,s=0,c=0,a=0,u=0;for(;i<t.length;)0===t[i][0]?(n[r++]=i,s=a,c=u,a=0,u=0,o=t[i][1]):(1===t[i][0]?a+=t[i][1].length:u+=t[i][1].length,o&&o.length<=Math.max(s,c)&&o.length<=Math.max(a,u)&&(t.splice(n[r-1],0,new $n(vn,o)),t[n[r-1]+1][0]=1,r--,r--,i=r>0?n[r-1]:-1,s=0,c=0,a=0,u=0,o=null,e=!0)),i++;for(e&&Mn(t),function(t){let e=1;for(;e<t.length-1;){if(0===t[e-1][0]&&0===t[e+1][0]){let n=t[e-1][1],r=t[e][1],o=t[e+1][1];const i=Sn(n,r);if(i){const t=r.substring(r.length-i);n=n.substring(0,n.length-i),r=t+r.substring(0,r.length-i),o=t+o}let s=n,c=r,a=o,u=In(n,r)+In(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);const t=In(n,r)+In(r,o);t>=u&&(u=t,s=n,c=r,a=o)}t[e-1][1]!==s&&(s?t[e-1][1]=s:(t.splice(e-1,1),e--),t[e][1]=c,a?t[e+1][1]=a:(t.splice(e+1,1),e--))}e++}}(t),i=1;i<t.length;){if(t[i-1][0]===vn&&1===t[i][0]){const e=t[i-1][1],n=t[i][1],r=jn(e,n),o=jn(n,e);r>=o?(r>=e.length/2||r>=n.length/2)&&(t.splice(i,0,new $n(0,n.substring(0,r))),t[i-1][1]=e.substring(0,e.length-r),t[i+1][1]=n.substring(r),i++):(o>=e.length/2||o>=n.length/2)&&(t.splice(i,0,new $n(0,e.substring(0,o))),t[i-1][0]=1,t[i-1][1]=n.substring(0,n.length-o),t[i+1][0]=vn,t[i+1][1]=e.substring(o),i++),i++}i++}}var Tn=/[^a-z0-9]/i,On=/\s/,kn=/[\r\n]/,An=/\n\r?\n$/,_n=/^\r?\n\r?\n/;function Mn(t){t.push(new $n(0,""));let e,n=0,r=0,o=0,i="",s="";for(;n<t.length;)switch(t[n][0]){case 1:o++,s+=t[n][1],n++;break;case vn:r++,i+=t[n][1],n++;break;case 0:r+o>1?(0!==r&&0!==o&&(e=xn(s,i),0!==e&&(n-r-o>0&&0===t[n-r-o-1][0]?t[n-r-o-1][1]+=s.substring(0,e):(t.splice(0,0,new $n(0,s.substring(0,e))),n++),s=s.substring(e),i=i.substring(e)),e=Sn(s,i),0!==e&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),i=i.substring(0,i.length-e))),n-=r+o,t.splice(n,r+o),i.length&&(t.splice(n,0,new $n(vn,i)),n++),s.length&&(t.splice(n,0,new $n(1,s)),n++),n++):0!==n&&0===t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",s=""}""===t[t.length-1][1]&&t.pop();let c=!1;for(n=1;n<t.length-1;)0===t[n-1][0]&&0===t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&Mn(t)}function In(t,e){if(!t||!e)return 6;const n=t.charAt(t.length-1),r=e.charAt(0),o=n.match(Tn),i=r.match(Tn),s=o&&n.match(On),c=i&&r.match(On),a=s&&n.match(kn),u=c&&r.match(kn),l=a&&t.match(An),f=u&&e.match(_n);return l||f?5:a||u?4:o&&!s&&c?3:s||c?2:o||i?1:0}var Cn,Nn="Compared values have no visual difference.",Pn={};var Rn=Te(function(){if(Cn)return Pn;Cn=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=function(t,o,i,s){u("aLength",t),u("bLength",o),l("isCommon",i),l("foundSubsequence",s);const c=n(0,t,0,o,i);0!==c&&s(c,0,0);if(t!==c||o!==c){const n=c,u=c,l=r(n,t-1,u,o-1,i),f=t-l,h=o-l,p=c+l;if(t!==p&&o!==p){a(0,n,f,u,h,!1,[{foundSubsequence:s,isCommon:i}],[e],[e],{aCommonFollowing:e,aCommonPreceding:e,aEndPreceding:e,aStartFollowing:e,bCommonFollowing:e,bCommonPreceding:e,bEndPreceding:e,bStartFollowing:e,nChangeFollowing:e,nChangePreceding:e,nCommonFollowing:e,nCommonPreceding:e})}0!==l&&s(l,f,h)}};const t="diff-sequences",e=0,n=(t,e,n,r,o)=>{let i=0;for(;t<e&&n<r&&o(t,n);)t+=1,n+=1,i+=1;return i},r=(t,e,n,r,o)=>{let i=0;for(;t<=e&&n<=r&&o(e,r);)e-=1,r-=1,i+=1;return i},o=(t,e,r,o,i,s,c)=>{let a=0,u=-t,l=s[a],f=l;s[a]+=n(l+1,e,o+l-u+1,r,i);const h=t<c?t:c;for(a+=1,u+=2;a<=h;a+=1,u+=2){if(a!==t&&f<s[a])l=s[a];else if(l=f+1,e<=l)return a-1;f=s[a],s[a]=l+n(l+1,e,o+l-u+1,r,i)}return c},i=(t,e,n,o,i,s,c)=>{let a=0,u=t,l=s[a],f=l;s[a]-=r(e,l-1,n,o+l-u-1,i);const h=t<c?t:c;for(a+=1,u-=2;a<=h;a+=1,u-=2){if(a!==t&&s[a]<f)l=s[a];else if(l=f-1,l<e)return a-1;f=s[a],s[a]=l-r(e,l-1,n,o+l-u-1,i)}return c},s=(t,o,i,s,c,a,u,l,f,h,p)=>{const d=s-o,b=c-s-(i-o),m=-b-(t-1),y=t-1-b;let g=e;const w=t<l?t:l;for(let e=0,l=-t;e<=w;e+=1,l+=2){const w=0===e||e!==t&&g<u[e],v=w?u[e]:g,$=w?v:v+1,x=d+$-l,S=n($+1,i,x+1,c,a),j=$+S;if(g=u[e],u[e]=j,m<=l&&l<=y){const e=(t-1-(l+b))/2;if(e<=h&&f[e]-1<=j){const e=d+v-(w?l+1:l-1),n=r(o,v,s,e,a),u=v-n+1,f=e-n+1;p.nChangePreceding=t-1,t-1==u+f-o-s?(p.aEndPreceding=o,p.bEndPreceding=s):(p.aEndPreceding=u,p.bEndPreceding=f),p.nCommonPreceding=n,0!==n&&(p.aCommonPreceding=u,p.bCommonPreceding=f),p.nCommonFollowing=S,0!==S&&(p.aCommonFollowing=$+1,p.bCommonFollowing=x+1);const h=j+1,b=x+S+1;return p.nChangeFollowing=t-1,t-1==i+c-h-b?(p.aStartFollowing=i,p.bStartFollowing=c):(p.aStartFollowing=h,p.bStartFollowing=b),!0}}}return!1},c=(t,o,i,s,c,a,u,l,f,h,p)=>{const d=c-i,b=c-s-(i-o),m=b-t,y=b+t;let g=e;const w=t<h?t:h;for(let e=0,h=t;e<=w;e+=1,h-=2){const w=0===e||e!==t&&f[e]<g,v=w?f[e]:g,$=w?v:v-1,x=d+$-h,S=r(o,$-1,s,x-1,a),j=$-S;if(g=f[e],f[e]=j,m<=h&&h<=y){const e=(t+(h-b))/2;if(e<=l&&j-1<=u[e]){const e=x-S;if(p.nChangePreceding=t,t===j+e-o-s?(p.aEndPreceding=o,p.bEndPreceding=s):(p.aEndPreceding=j,p.bEndPreceding=e),p.nCommonPreceding=S,0!==S&&(p.aCommonPreceding=j,p.bCommonPreceding=e),p.nChangeFollowing=t-1,1===t)p.nCommonFollowing=0,p.aStartFollowing=i,p.bStartFollowing=c;else{const e=d+v-(w?h-1:h+1),r=n(v,i,e,c,a);p.nCommonFollowing=r,0!==r&&(p.aCommonFollowing=v,p.bCommonFollowing=e);const o=v+r,s=e+r;t-1==i+c-o-s?(p.aStartFollowing=i,p.bStartFollowing=c):(p.aStartFollowing=o,p.bStartFollowing=s)}return!0}}}return!1},a=(e,n,r,u,l,f,h,p,d,b)=>{if(l-u<r-n){if((f=!f)&&1===h.length){const{foundSubsequence:t,isCommon:e}=h[0];h[1]={foundSubsequence:(e,n,r)=>{t(e,r,n)},isCommon:(t,n)=>e(n,t)}}const t=n,e=r;n=u,r=l,u=t,l=e}const{foundSubsequence:m,isCommon:y}=h[f?1:0];((e,n,r,a,u,l,f,h,p)=>{const d=a-n,b=u-r,m=r-n,y=u-a,g=y-m;let w=m,v=m;if(f[0]=n-1,h[0]=r,g%2==0){const t=(e||g)/2,s=(m+y)/2;for(let e=1;e<=s;e+=1)if(w=o(e,r,u,d,l,f,w),e<t)v=i(e,n,a,b,l,h,v);else if(c(e,n,r,a,u,l,f,w,h,v,p))return}else{const t=((e||g)+1)/2,c=(m+y+1)/2;let $=1;for(w=o($,r,u,d,l,f,w),$+=1;$<=c;$+=1)if(v=i($-1,n,a,b,l,h,v),$<t)w=o($,r,u,d,l,f,w);else if(s($,n,r,a,u,l,f,w,h,v,p))return}throw new Error(`${t}: no overlap aStart=${n} aEnd=${r} bStart=${a} bEnd=${u}`)})(e,n,r,u,l,y,p,d,b);const{nChangePreceding:g,aEndPreceding:w,bEndPreceding:v,nCommonPreceding:$,aCommonPreceding:x,bCommonPreceding:S,nCommonFollowing:j,aCommonFollowing:E,bCommonFollowing:T,nChangeFollowing:O,aStartFollowing:k,bStartFollowing:A}=b;n<w&&u<v&&a(g,n,w,u,v,f,h,p,d,b),0!==$&&m($,x,S),0!==j&&m(j,E,T),k<r&&A<l&&a(O,k,r,A,l,f,h,p,d,b)},u=(e,n)=>{if("number"!=typeof n)throw new TypeError(`${t}: ${e} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw new RangeError(`${t}: ${e} value ${n} is not a safe integer`);if(n<0)throw new RangeError(`${t}: ${e} value ${n} is a negative integer`)},l=(e,n)=>{const r=typeof n;if("function"!==r)throw new TypeError(`${t}: ${e} typeof ${r} is not a function`)};return Pn}());function Bn(t,e,n,r,o,i){return 0!==t.length?n(`${r} ${function(t,e){return t.replace(/\s+$/,(t=>e(t)))}(t,o)}`):" "!==r?n(r):e&&0!==i.length?n(`${r} ${i}`):""}function Dn(t,e,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Bn(t,e,n,r,o,i)}function Fn(t,e,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Bn(t,e,n,r,o,i)}function Ln(t,e,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Bn(t,e,n,r,o,i)}function qn(t,e,n,r,{patchColor:o}){return o(`@@ -${t+1},${e-t} +${n+1},${r-n} @@`)}var Jn=t=>t;function Wn(t={}){return{aAnnotation:"Expected",aColor:p.green,aIndicator:"-",bAnnotation:"Received",bColor:p.red,bIndicator:"+",changeColor:p.inverse,changeLineTrailingSpaceColor:Jn,commonColor:p.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Jn,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:p.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Jn,...t,compareKeys:(n=t.compareKeys,n&&"function"==typeof n?n:void 0),contextLines:(e=t.contextLines,"number"==typeof e&&Number.isSafeInteger(e)&&e>=0?e:5)};var e,n}function Un(t){return 1===t.length&&0===t[0].length}function Hn(t,e,n){return function({aAnnotation:t,aColor:e,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:c},a){if(c)return"";let u="",l="";if(s){const e=String(a.a),o=String(a.b),s=r.length-t.length,c=" ".repeat(Math.max(0,s)),f=" ".repeat(Math.max(0,-s)),h=o.length-e.length;u=`${c} ${n} ${" ".repeat(Math.max(0,h))}${e}`,l=`${f} ${i} ${" ".repeat(Math.max(0,-h))}${o}`}const f=`${i} ${r}${l}`;return`${e(`${n} ${t}${u}`)}\n${o(f)}\n\n`}(n,function(t){let e=0,n=0;return t.forEach((t=>{switch(t[0]){case vn:e+=1;break;case 1:n+=1}})),{a:e,b:n}}(t))+(n.expand?function(t,e){return t.map(((t,n,r)=>{const o=t[1],i=0===n||n===r.length-1;switch(t[0]){case vn:return Dn(o,i,e);case 1:return Fn(o,i,e);default:return Ln(o,i,e)}})).join("\n")}(t,n):function(t,e){const n=t.length,r=e.contextLines,o=r+r;let i=n,s=!1,c=0,a=0;for(;a!==n;){const e=a;for(;a!==n&&0===t[a][0];)a+=1;if(e!==a)if(0===e)a>r&&(i-=a-r,s=!0);else if(a===n){const t=a-e;t>r&&(i-=t-r,s=!0)}else{const t=a-e;t>o&&(i-=t-o,c+=1)}for(;a!==n&&0!==t[a][0];)a+=1}const u=0!==c||s;0!==c?i+=c+1:s&&(i+=1);const l=i-1,f=[];let h=0;u&&f.push("");let p=0,d=0,b=0,m=0;const y=t=>{const n=f.length;f.push(Ln(t,0===n||n===l,e)),b+=1,m+=1},g=t=>{const n=f.length;f.push(Dn(t,0===n||n===l,e)),b+=1},w=t=>{const n=f.length;f.push(Fn(t,0===n||n===l,e)),m+=1};for(a=0;a!==n;){let i=a;for(;a!==n&&0===t[a][0];)a+=1;if(i!==a)if(0===i){a>r&&(i=a-r,p=i,d=i,b=p,m=d);for(let e=i;e!==a;e+=1)y(t[e][1])}else if(a===n){const e=a-i>r?i+r:a;for(let n=i;n!==e;n+=1)y(t[n][1])}else{const n=a-i;if(n>o){const s=i+r;for(let e=i;e!==s;e+=1)y(t[e][1]);f[h]=qn(p,b,d,m,e),h=f.length,f.push("");const c=n-o;p=b+c,d=m+c,b=p,m=d;for(let e=a-r;e!==a;e+=1)y(t[e][1])}else for(let e=i;e!==a;e+=1)y(t[e][1])}for(;a!==n&&t[a][0]===vn;)g(t[a][1]),a+=1;for(;a!==n&&1===t[a][0];)w(t[a][1]),a+=1}return u&&(f[h]=qn(p,b,d,m,e)),f.join("\n")}(t,n))+(e?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):"")}function Xn(t,e,n){const r=Wn(n),[o,i]=zn(Un(t)?[]:t,Un(e)?[]:e,r);return Hn(o,i,r)}function zn(t,e,n){const r=(null==n?void 0:n.truncateThreshold)??!1,o=Math.max(Math.floor((null==n?void 0:n.truncateThreshold)??0),0),i=r?Math.min(t.length,o):t.length,s=r?Math.min(e.length,o):e.length,c=i!==t.length||s!==e.length,a=[];let u=0,l=0;for(Rn(i,s,((n,r)=>t[n]===e[r]),((n,r,o)=>{for(;u!==r;u+=1)a.push(new $n(vn,t[u]));for(;l!==o;l+=1)a.push(new $n(1,e[l]));for(;0!==n;n-=1,u+=1,l+=1)a.push(new $n(0,e[l]))}));u!==i;u+=1)a.push(new $n(vn,t[u]));for(;l!==s;l+=1)a.push(new $n(1,e[l]));return[a,c]}function Vn(t){if(void 0===t)return"undefined";if(null===t)return"null";if(Array.isArray(t))return"array";if("boolean"==typeof t)return"boolean";if("function"==typeof t)return"function";if("number"==typeof t)return"number";if("string"==typeof t)return"string";if("bigint"==typeof t)return"bigint";if("object"==typeof t){if(null!=t){if(t.constructor===RegExp)return"regexp";if(t.constructor===Map)return"map";if(t.constructor===Set)return"set";if(t.constructor===Date)return"date"}return"object"}if("symbol"==typeof t)return"symbol";throw new Error(`value of unknown type: ${t}`)}function Gn(t){return t.includes("\r\n")?"\r\n":"\n"}var Kn=class{constructor(t,n){e(this,"op"),e(this,"line"),e(this,"lines"),e(this,"changeColor"),this.op=t,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(t){this.pushDiff(new $n(this.op,t))}pushLine(){var t,e,n;this.lines.push(1!==this.line.length?new $n(this.op,(t=this.op,e=this.line,n=this.changeColor,e.reduce(((e,r)=>e+(0===r[0]?r[1]:r[0]===t&&0!==r[1].length?n(r[1]):"")),""))):this.line[0][0]===this.op?this.line[0]:new $n(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(t){this.line.push(t)}align(t){const e=t[1];if(e.includes("\n")){const t=e.split("\n"),n=t.length-1;t.forEach(((t,e)=>{e<n?(this.pushSubstring(t),this.pushLine()):0!==t.length&&this.pushSubstring(t)}))}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}},Zn=class{constructor(t,n){e(this,"deleteBuffer"),e(this,"insertBuffer"),e(this,"lines"),this.deleteBuffer=t,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){const e=0===t[1].length;e&&!this.deleteBuffer.isLineEmpty()||this.deleteBuffer.pushDiff(t),e&&!this.insertBuffer.isLineEmpty()||this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){const e=t[0],n=t[1];if(n.includes("\n")){const t=n.split("\n"),r=t.length-1;t.forEach(((t,n)=>{if(0===n){const n=new $n(e,t);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new $n(e,t)):0!==t.length&&this.pushDiffChangeLines(new $n(e,t))}))}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};function Yn(t,e,n){if(t!==e&&0!==t.length&&0!==e.length){const r=t.includes("\n")||e.includes("\n"),[o,i]=Qn(r?`${t}\n`:t,r?`${e}\n`:e,!0,n);if(function(t,e){if(e){const e=t.length-1;return t.some(((t,n)=>0===t[0]&&(n!==e||"\n"!==t[1])))}return t.some((t=>0===t[0]))}(o,r)){const t=Wn(n),e=function(t,e){const n=new Kn(vn,e),r=new Kn(1,e),o=new Zn(n,r);return t.forEach((t=>{switch(t[0]){case vn:n.align(t);break;case 1:r.align(t);break;default:o.align(t)}})),o.getLines()}(o,t.changeColor);return Hn(e,i,t)}}return Xn(t.split("\n"),e.split("\n"),n)}function Qn(t,e,n,r){const[o,i]=function(t,e,n){const r=(null==n?void 0:n.truncateThreshold)??!1,o=Math.max(Math.floor((null==n?void 0:n.truncateThreshold)??0),0);let i=t.length,s=e.length;if(r){const n=t.includes("\n"),r=e.includes("\n"),c=Gn(t),a=Gn(e),u=n?`${t.split(c,o).join(c)}\n`:t,l=r?`${e.split(a,o).join(a)}\n`:e;i=u.length,s=l.length}const c=i!==t.length||s!==e.length;let a=0,u=0;const l=[];return Rn(i,s,((n,r)=>t[n]===e[r]),((n,r,o)=>{a!==r&&l.push(new $n(vn,t.slice(a,r))),u!==o&&l.push(new $n(1,e.slice(u,o))),a=r+n,u=o+n,l.push(new $n(0,e.slice(o,u)))})),a!==i&&l.push(new $n(vn,t.slice(a))),u!==s&&l.push(new $n(1,e.slice(u))),[l,c]}(t,e,r);return n&&En(o),[o,i]}function tr(t,e){const{commonColor:n}=Wn(e);return n(t)}var{AsymmetricMatcher:er,DOMCollection:nr,DOMElement:rr,Immutable:or,ReactElement:ir,ReactTestComponent:sr}=Pt,cr=[sr,ir,rr,nr,or,er,Pt.Error],ar={plugins:cr},ur={callToJSON:!1,maxDepth:8,plugins:cr};function lr(t,e,n){if(Object.is(t,e))return"";const r=Vn(t);let o=r,i=!1;if("object"===r&&"function"==typeof t.asymmetricMatch){if(t.$$typeof!==Symbol.for("jest.asymmetricMatcher"))return;if("function"!=typeof t.getExpectedType)return;o=t.getExpectedType(),i="string"===o}if(o!==Vn(e)){let r=function(t){return t.length<=p?t:`${t.slice(0,p)}...`};const{aAnnotation:o,aColor:i,aIndicator:s,bAnnotation:c,bColor:a,bIndicator:u}=Wn(n),l=dr(ur,n);let f=Nt(t,l),h=Nt(e,l);const p=1e5;f=r(f),h=r(h);return`${`${i(`${s} ${o}:`)} \n${f}`}\n\n${`${a(`${u} ${c}:`)} \n${h}`}`}if(!i)switch(r){case"string":return Xn(t.split("\n"),e.split("\n"),n);case"boolean":case"number":return function(t,e,n){const r=Nt(t,ar),o=Nt(e,ar);return r===o?"":Xn(r.split("\n"),o.split("\n"),n)}(t,e,n);case"map":return pr(fr(t),fr(e),n);case"set":return pr(hr(t),hr(e),n);default:return pr(t,e,n)}}function fr(t){return new Map(Array.from(t.entries()).sort())}function hr(t){return new Set(Array.from(t.values()).sort())}function pr(t,e,n){let r,o=!1;try{r=br(t,e,dr(ar,n),n)}catch{o=!0}const i=tr(Nn,n);if(void 0===r||r===i){r=br(t,e,dr(ur,n),n),r===i||o||(r=`${tr("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${r}`)}return r}function dr(t,e){const{compareKeys:n,printBasicPrototype:r}=Wn(e);return{...t,compareKeys:n,printBasicPrototype:r}}function br(t,e,n,r){const o={...n,indent:0},i=Nt(t,o),s=Nt(e,o);if(i===s)return tr(Nn,r);{const o=Nt(t,n),c=Nt(e,n);return function(t,e,n,r,o){if(Un(t)&&Un(n)&&(t=[],n=[]),Un(e)&&Un(r)&&(e=[],r=[]),t.length!==n.length||e.length!==r.length)return Xn(t,e,o);const[i,s]=zn(n,r,o);let c=0,a=0;return i.forEach((n=>{switch(n[0]){case vn:n[1]=t[c],c+=1;break;case 1:n[1]=e[a],a+=1;break;default:n[1]=e[a],c+=1,a+=1}})),Hn(i,s,Wn(o))}(o.split("\n"),c.split("\n"),i.split("\n"),s.split("\n"),r)}}function mr(t){return"Object"===_e(t)&&"function"==typeof t.asymmetricMatch}function yr(t,e){const n=_e(t);return n===_e(e)&&("Object"===n||"Array"===n)}function gr(t,e,n){const{aAnnotation:r,bAnnotation:o}=Wn(n);if("string"==typeof e&&"string"==typeof t&&e.length>0&&t.length>0&&e.length<=2e4&&t.length<=2e4&&e!==t){if(e.includes("\n")||t.includes("\n"))return Yn(e,t,n);const[c]=Qn(e,t,!0),a=c.some((t=>0===t[0])),u=function(...t){const e=t.reduce(((t,e)=>e.length>t?e.length:t),0);return t=>`${t}: ${" ".repeat(e-t.length)}`}(r,o);return`${u(r)+(s=xr(c,vn,a),p.green($r(xe(s))))}\n${u(o)+(i=xr(c,1,a),p.red($r(xe(i))))}`}var i,s;const c=Pe(e,{forceWritable:!0}),a=Pe(t,{forceWritable:!0}),{replacedExpected:u,replacedActual:l}=wr(a,c);return lr(u,l,n)}function wr(t,e,n=new WeakSet,r=new WeakSet){return t instanceof Error&&e instanceof Error&&void 0!==t.cause&&void 0===e.cause?(delete t.cause,{replacedActual:t,replacedExpected:e}):yr(t,e)?(n.has(t)||r.has(e)||(n.add(t),r.add(e),Me(e).forEach((o=>{const i=e[o],s=t[o];if(mr(i))i.asymmetricMatch(s)&&(t[o]=i);else if(mr(s))s.asymmetricMatch(i)&&(e[o]=s);else if(yr(s,i)){const c=wr(s,i,n,r);t[o]=c.replacedActual,e[o]=c.replacedExpected}}))),{replacedActual:t,replacedExpected:e}):{replacedActual:t,replacedExpected:e}}var vr="·";function $r(t){return t.replace(/\s+$/gm,(t=>vr.repeat(t.length)))}function xr(t,e,n){return t.reduce(((t,r)=>t+(0===r[0]?r[1]:r[0]===e?n?p.inverse(r[1]):r[1]:"")),"")}var Sr=Object.getPrototypeOf({});function jr(t){return t instanceof Error?`<unserializable>: ${t.message}`:"string"==typeof t?`<unserializable>: ${t}`:"<unserializable>"}function Er(t,e=new WeakMap){if(!t||"string"==typeof t)return t;if("function"==typeof t)return`Function<${t.name||"anonymous"}>`;if("symbol"==typeof t)return t.toString();if("object"!=typeof t)return t;if((n=t)&&(n["@@__IMMUTABLE_ITERABLE__@@"]||n["@@__IMMUTABLE_RECORD__@@"]))return Er(t.toJSON(),e);var n;if(t instanceof Promise||t.constructor&&"AsyncFunction"===t.constructor.prototype)return"Promise";if("undefined"!=typeof Element&&t instanceof Element)return t.tagName;if("function"==typeof t.asymmetricMatch)return`${t.toString()} ${je(t.sample)}`;if("function"==typeof t.toJSON)return Er(t.toJSON(),e);if(e.has(t))return e.get(t);if(Array.isArray(t)){const n=new Array(t.length);return e.set(t,n),t.forEach(((t,r)=>{try{n[r]=Er(t,e)}catch(t){n[r]=jr(t)}})),n}{const n=Object.create(null);e.set(t,n);let r=t;for(;r&&r!==Sr;)Object.getOwnPropertyNames(r).forEach((r=>{if(!(r in n))try{n[r]=Er(t[r],e)}catch(t){delete n[r],n[r]=jr(t)}})),r=Object.getPrototypeOf(r);return n}}function Tr(t,e,n=new WeakSet){if(!t||"object"!=typeof t)return{message:String(t)};const r=t;r.stack&&(r.stackStr=String(r.stack)),r.name&&(r.nameStr=String(r.name)),(r.showDiff||void 0===r.showDiff&&void 0!==r.expected&&void 0!==r.actual)&&(r.diff=gr(r.actual,r.expected,{...e,...r.diffOptions})),"string"!=typeof r.expected&&(r.expected=xe(r.expected,10)),"string"!=typeof r.actual&&(r.actual=xe(r.actual,10));try{"string"==typeof r.message&&(r.message=r.message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,""))}catch{}try{n.has(r)||"object"!=typeof r.cause||(n.add(r),r.cause=Tr(r.cause,e,n))}catch{}try{return Er(r)}catch(t){return Er(new Error(`Failed to fully serialize error: ${null==t?void 0:t.message}\nInner error message: ${null==r?void 0:r.message}`))}}o(),o();var Or=/^[A-Za-z]:\//;var kr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var Ar=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(Or,(t=>t.toUpperCase())):t}(t)))).length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/";o&&0!==o.length&&(e=`${o}/${e}`,n=_r(o))}return e=function(t,e){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=t.length;++c){if(c<t.length)s=t[c];else{if("/"===s)break;s="/"}if("/"===s){if(o===c-1||1===i);else if(2===i){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){if(n.length>2){const t=n.lastIndexOf("/");-1===t?(n="",r=0):(n=n.slice(0,t),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}if(n.length>0){n="",r=0,o=c,i=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(o+1,c)}`:n=t.slice(o+1,c),r=c-o-1;o=c,i=0}else"."===s&&-1!==i?++i:i=-1}return n}(e,!n),n&&!_r(e)?`/${e}`:e.length>0?e:"."};var _r=function(t){return kr.test(t)};function Mr(t,e){const n=function n(r){const o=function(...t){return e.apply(r,t)};Object.assign(o,e),o.withContext=()=>o.bind(r),o.setContext=(t,e)=>{r[t]=e},o.mergeContext=t=>{Object.assign(r,t)};for(const e of t)Object.defineProperty(o,e,{get:()=>n({...r,[e]:!0})});return o}({});return n.fn=e,n}function Ir(t){const e=[t.name];let n=t;for(;null==n?void 0:n.suite;)n=n.suite,(null==n?void 0:n.name)&&e.unshift(n.name);return n!==t.file&&e.unshift(t.file.name),e}function Cr(t,e=" > "){return Ir(t).slice(1).join(e)}var Nr=class extends Error{constructor(t,n,r){super(t),e(this,"code","VITEST_PENDING"),e(this,"taskId"),this.message=t,this.note=r,this.taskId=n.id}},Pr=Date.now,Rr={tasks:[],currentSuite:null};function Br(t,e,n=!1,r){if(e<=0||e===Number.POSITIVE_INFINITY)return t;const{setTimeout:o,clearTimeout:i}=sn();return function(...s){const c=Pr();return new Promise(((a,u)=>{var l;const f=o((()=>{i(f),h()}),e);function h(){u(function(t,e,n){const r=`${t?"Hook":"Test"} timed out in ${e}ms.\nIf this is a long-running ${t?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${t?"hookTimeout":"testTimeout"}".`,o=new Error(r);(null==n?void 0:n.stack)&&(o.stack=n.stack.replace(o.message,n.message));return o}(n,e,r))}function p(t){i(f),Pr()-c>=e?h():a(t)}function d(t){i(f),u(t)}null==(l=f.unref)||l.call(f);try{const e=t(...s);"object"==typeof e&&null!=e&&"function"==typeof e.then?e.then(p,d):p(e)}catch(t){d(t)}}))}}var Dr=new WeakMap,Fr=new WeakMap,Lr=new WeakMap;var qr=new Map,Jr=new Map;function Wr(t,e){return n=>{const r=n||e;if(!r)return t({});const o=(i=r,Fr.get(i));var i;if(!(null==o?void 0:o.length))return t(r);const s=Xr(t),c=o.some((({auto:t})=>t));if(!s.length&&!c)return t(r);qr.get(r)||qr.set(r,new Map);const a=qr.get(r);Jr.has(r)||Jr.set(r,[]);const u=Jr.get(r),l=Hr(o.filter((({prop:t,auto:e})=>e||s.includes(t))));if(!l.length)return t(r);return async function(){for(const t of l){if(a.has(t))continue;const e=t.isFn?await Ur(t.value,r,u):t.value;r[t.prop]=e,a.set(t,e),u.unshift((()=>{a.delete(t)}))}}().then((()=>t(r)))}}async function Ur(t,e,n){const r=Be();let o=!1;const i=t(e,(async t=>{o=!0,r.resolve(t);const e=Be();n.push((async()=>{e.resolve(),await i})),await e})).catch((t=>{if(o)throw t;r.reject(t)}));return r}function Hr(t,e=new Set,n=[]){return t.forEach((t=>{if(!n.includes(t))if(t.isFn&&t.deps){if(e.has(t))throw new Error(`Circular fixture dependency detected: ${t.prop} <- ${[...e].reverse().map((t=>t.prop)).join(" <- ")}`);e.add(t),Hr(t.deps,e,n),n.push(t),e.clear()}else n.push(t)})),n}function Xr(t){let e=t.toString();/__async\(this, (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(e)&&(e=e.split("__async(this,")[1]);const n=e.match(/[^(]*\(([^)]*)/);if(!n)return[];const r=zr(n[1]);if(!r.length)return[];let o=r[0];if("__VITEST_FIXTURE_INDEX__"in t&&(o=r[t.__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}".`);const i=zr(o.slice(1,-1).replace(/\s/g,"")).map((t=>t.replace(/:.*|=.*/g,""))),s=i.at(-1);if(s&&s.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${s}".`);return i}function zr(t){const e=[],n=[];let r=0;for(let o=0;o<t.length;o++)if("{"===t[o]||"["===t[o])n.push("{"===t[o]?"}":"]");else if(t[o]===n[n.length-1])n.pop();else if(!n.length&&","===t[o]){const n=t.substring(r,o).trim();n&&e.push(n),r=o+1}const o=t.substring(r).trim();return o&&e.push(o),e}var Vr,Gr,Kr,Zr=function(){function t(t,e,n){var r;const o=this.only?"only":this.skip?"skip":this.todo?"todo":"run",i=Rr.currentSuite||Gr;let{options:s,handler:c}=oo(e,n);const a=s.concurrent||this.concurrent||!1===s.sequential,u=s.sequential||this.sequential||!1===s.concurrent;s={...null==i?void 0:i.options,...s,shuffle:this.shuffle??s.shuffle??(null==(r=null==i?void 0:i.options)?void 0:r.shuffle)??(null==Vr?void 0:Vr.config.sequence.shuffle)};const l=a||s.concurrent&&!u,f=u||s.sequential&&!a;return s.concurrent=l&&!f,s.sequential=f&&!l,function(t,e=()=>{},n,r,o){const i=[];let s;f(!0);const c=function(t="",e={}){var n;const r=(null==e?void 0:e.timeout)??Vr.config.testTimeout,s={id:"",name:t,suite:null==(n=Rr.currentSuite)?void 0:n.suite,each:e.each,fails:e.fails,context:void 0,type:"test",file:void 0,timeout:r,retry:e.retry??Vr.config.retry,repeats:e.repeats,mode:e.only?"only":e.skip?"skip":e.todo?"todo":"run",meta:e.meta??Object.create(null)},c=e.handler;(e.concurrent||!e.sequential&&Vr.config.sequence.concurrent)&&(s.concurrent=!0),s.shuffle=null==o?void 0:o.shuffle;const a=function(t,e){var n;const r=function(){throw new Error("done() callback is deprecated, use promise instead")};return r.task=t,r.skip=e=>{throw t.result??(t.result={state:"skip"}),t.result.pending=!0,new Nr("test is skipped; abort execution",t,e)},r.onTestFailed=(n,r)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Br(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},r.onTestFinished=(n,r)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Br(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},(null==(n=e.extendTaskContext)?void 0:n.call(e,r))||r}(s,Vr);var u,l;if(Object.defineProperty(s,"context",{value:a,enumerable:!1}),u=a,l=e.fixtures,Fr.set(u,l),c&&function(t,e){Dr.set(t,e)}(s,Br(function(t,e){return async(...n)=>{const r=await t(...n);if(e.promises){const t=(await Promise.allSettled(e.promises)).map((t=>"rejected"===t.status?t.reason:void 0)).filter(Boolean);if(t.length)throw t}return r}}(Wr(c,a),s),r)),Vr.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=lo(e,s.each??!1);n&&(s.location=n)}return i.push(s),s},a=so((function(t,e,n){let{options:r,handler:i}=oo(e,n);"object"==typeof o&&(r=Object.assign({},o,r)),r.concurrent=this.concurrent||!this.sequential&&(null==r?void 0:r.concurrent),r.sequential=this.sequential||!this.concurrent&&(null==r?void 0:r.sequential);c(co(t),{...this,...r,handler:i}).type="test"})),u={type:"collector",name:t,mode:n,suite:s,options:o,test:a,tasks:i,collect:p,task:c,clear:h,on:l};function l(t,...e){var n;(n=s,Lr.get(n))[t].push(...e)}function f(e){var i,c,a;if("number"==typeof o&&(o={timeout:o}),s={id:"",type:"suite",name:t,suite:null==(i=Rr.currentSuite)?void 0:i.suite,mode:n,each:r,file:void 0,shuffle:null==o?void 0:o.shuffle,tasks:[],meta:Object.create(null),concurrent:null==o?void 0:o.concurrent},Vr&&e&&Vr.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=lo(e,s.each??!1);n&&(s.location=n)}c=s,a={beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]},Lr.set(c,a)}function h(){i.length=0,f(!1)}async function p(t){if(!t)throw new TypeError("File is required to collect tasks.");e&&await async function(t,e){const n=Rr.currentSuite;Rr.currentSuite=t,await e(),Rr.currentSuite=n}(u,(()=>e(a)));const n=[];for(const e of i)n.push("collector"===e.type?await e.collect(t):e);return s.file=t,s.tasks=n,n.forEach((e=>{e.file=t})),s}return function(t){var e;null==(e=Rr.currentSuite)||e.tasks.push(t)}(u),u}(co(t),c,o,this.each,s)}return t.each=function(t,...e){const n=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&e.length&&(t=uo(t,e)),(e,r,o)=>{const i=co(e),s=t.every(Array.isArray),{options:c,handler:a}=oo(r,o),u="function"==typeof r&&"object"==typeof o;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(ao(i,r,e),s?()=>a(...r):()=>a(t),c):n(ao(i,r,e),c,s?()=>a(...r):()=>a(t))})),this.setContext("each",void 0)}},t.for=function(t,...e){return Array.isArray(t)&&e.length&&(t=uo(t,e)),(e,n,r)=>{const o=co(e),{options:i,handler:s}=oo(n,r);t.forEach(((t,e)=>{Zr(ao(o,ke(t),e),i,(()=>s(t)))}))}},t.skipIf=t=>t?Zr.skip:Zr,t.runIf=t=>t?Zr:Zr.skip,Mr(["concurrent","sequential","shuffle","skip","only","todo"],t)}(),Yr=so((function(t,e,n){ro().test.fn.call(this,co(t),e,n)})),Qr=Zr,to=Yr;function eo(t,e){if(!t)throw new Error(`Vitest failed to find ${e}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function no(){return eo(Vr,"the runner"),Vr}function ro(){const t=Rr.currentSuite||Gr;return eo(t,"the current suite"),t}function oo(t,e){let n={},r=()=>{};if("object"==typeof e){if("object"==typeof t)throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=e}else"number"==typeof e?n={timeout:e}:"object"==typeof t&&(n=t);if("function"==typeof t){if("function"==typeof e)throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=t}else"function"==typeof e&&(r=e);return{options:n,handler:r}}function io(t,e){const n=t;n.each=function(t,...e){const n=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&e.length&&(t=uo(t,e)),(e,r,o)=>{const i=co(e),s=t.every(Array.isArray),{options:c,handler:a}=oo(r,o),u="function"==typeof r&&"object"==typeof o;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(ao(i,r,e),s?()=>a(...r):()=>a(t),c):n(ao(i,r,e),c,s?()=>a(...r):()=>a(t))})),this.setContext("each",void 0)}},n.for=function(t,...e){const n=this.withContext();return Array.isArray(t)&&e.length&&(t=uo(t,e)),(e,r,o)=>{const i=co(e),{options:s,handler:c}=oo(r,o);t.forEach(((t,e)=>{const r=e=>c(t,e);r.__VITEST_FIXTURE_INDEX__=1,r.toString=()=>c.toString(),n(ao(i,ke(t),e),s,r)}))}},n.skipIf=function(t){return t?this.skip:this},n.runIf=function(t){return t?this:this.skip},n.extend=function(t){const n=function(t,e,n){const r=["auto","injected"],o=Object.entries(t).map((([t,e])=>{const o={value:e};if(Array.isArray(e)&&e.length>=2&&Ae(e[1])&&Object.keys(e[1]).some((t=>r.includes(t)))){Object.assign(o,e[1]);const r=e[0];o.value=o.injected?n(t)??r:r}return o.prop=t,o.isFn="function"==typeof o.value,o}));return Array.isArray(e.fixtures)?e.fixtures=e.fixtures.concat(o):e.fixtures=o,o.forEach((t=>{if(t.isFn){const n=Xr(t.value);n.length&&(t.deps=e.fixtures.filter((({prop:e})=>e!==t.prop&&n.includes(e))))}})),e}(t,e||{},(t=>{var e,n;return null==(n=(e=no()).injectValue)?void 0:n.call(e,t)}));return so((function(t,e,n){ro().test.fn.call(this,co(t),e,n)}),n)};const r=Mr(["concurrent","sequential","skip","only","todo","fails"],n);return e&&r.mergeContext(e),r}function so(t,e){return io(t,e)}function co(t){return"string"==typeof t?t:"function"==typeof t?t.name||"<anonymous>":String(t)}function ao(t,e,n){t.includes("%#")&&(t=t.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/__vitest_escaped_%__/g,"%%"));const r=t.split("%").length-1;if(t.includes("%f")){(t.match(/%f/g)||[]).forEach(((n,r)=>{if(function(t){if(!Number.isNaN(t))return!1;const e=new Float64Array(1);return e[0]=t,new Uint32Array(e.buffer)[1]>>>31==1}(e[r])||Object.is(e[r],-0)){let e=0;t=t.replace(/%f/g,(t=>(e++,e===r+1?"-%f":t)))}}))}let o=je(t,...e.slice(0,r));return Ae(e[0])&&(o=o.replace(/\$([$\w.]+)/g,((t,n)=>{var r,o;return function(t,e={}){void 0===e.truncate&&(e.truncate=40);const n=Ee(t,e),r=Object.prototype.toString.call(t);if(e.truncate&&n.length>=e.truncate){if("[object Function]"===r){const e=t;return e.name?`[Function: ${e.name}]`:"[Function]"}if("[object Array]"===r)return`[ Array(${t.length}) ]`;if("[object Object]"===r){const e=Object.keys(t);return`{ Object (${e.length>2?`${e.splice(0,2).join(", ")}, ...`:e.join(", ")}) }`}return n}return n}(function(t,e,n){const r=e.replace(/\[(\d+)\]/g,".$1").split(".");let o=t;for(const t of r)if(o=new Object(o)[t],void 0===o)return n;return o}(e[0],n),{truncate:null==(o=null==(r=null==Vr?void 0:Vr.config)?void 0:r.chaiConfig)?void 0:o.truncateThreshold})}))),o}function uo(t,e){const n=t.join("").trim().replace(/ /g,"").split("\n").map((t=>t.split("|")))[0],r=[];for(let t=0;t<Math.floor(e.length/n.length);t++){const o={};for(let r=0;r<n.length;r++)o[n[r]]=e[t*n.length+r];r.push(o)}return r}function lo(t,e){const n=t.split("\n").slice(1);for(const t of n){const n=wn(t);if(n&&n.file===Kr)return{line:n.line,column:e?n.column+1:n.column}}}function fo(){return no().config.hookTimeout}Symbol.for("VITEST_CLEANUP_TIMEOUT"),Symbol.for("VITEST_CLEANUP_STACK_TRACE"),ho("onTestFailed",((t,e,n)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Br(e,n??fo(),!0,new Error("STACK_TRACE_ERROR")))})),ho("onTestFinished",((t,e,n)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Br(e,n??fo(),!0,new Error("STACK_TRACE_ERROR")))}));function ho(t,e){return(e,n)=>{Oe(e,`"${t}" callback`,["function"]);throw new Error(`Hook ${t}() can only be called inside a test`)}}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Date.now;function po(t,e){if(!t)throw new Error(e)}function bo(t,e){return typeof e===t}function mo(t,e,n){Object.defineProperty(t,e,n)}function yo(t,e,n){Object.defineProperty(t,e,{value:n})}o(),o(),o(),o();var go=Symbol.for("tinyspy:spy"),wo=new Set,vo=t=>t[go]||(t=>(mo(t,go,{value:{reset:()=>(t=>{t.called=!1,t.callCount=0,t.calls=[],t.results=[],t.resolves=[],t.next=[]})(t[go])}}),t[go]))(t);function $o(t){po(bo("function",t)||bo("undefined",t),"cannot spy on a non-function value");let e=function(...t){let n=vo(e);n.called=!0,n.callCount++,n.calls.push(t);let r=n.next.shift();if(r){n.results.push(r);let[t,e]=r;if("ok"===t)return e;throw e}let o,i="ok",s=n.results.length;if(n.impl)try{o=new.target?Reflect.construct(n.impl,t,new.target):n.impl.apply(this,t),i="ok"}catch(t){throw o=t,i="error",n.results.push([i,t]),t}let c=[i,o];return function(t){return t instanceof Promise}(o)&&o.then((t=>n.resolves[s]=["ok",t]),(t=>n.resolves[s]=["error",t])),n.results.push(c),o};yo(e,"_isMockFunction",!0),yo(e,"length",t?t.length:0),yo(e,"name",t&&t.name||"spy");let n=vo(e);return n.reset(),n.impl=t,e}var xo=(t,e)=>Object.getOwnPropertyDescriptor(t,e),So=(t,e)=>{null!=e&&"function"==typeof e&&null!=e.prototype&&Object.setPrototypeOf(t.prototype,e.prototype)};function jo(t,e,n){po(!bo("undefined",t),"spyOn could not find an object to spy upon"),po(bo("object",t)||bo("function",t),"cannot spyOn on a primitive value");let[r,o]=(()=>{if(!bo("object",e))return[e,"value"];if("getter"in e&&"setter"in e)throw new Error("cannot spy on both getter and setter");if("getter"in e)return[e.getter,"get"];if("setter"in e)return[e.setter,"set"];throw new Error("specify getter or setter to spy on")})(),i=xo(t,r),s=Object.getPrototypeOf(t),c=s&&xo(s,r),a=i||c;po(a||r in t,`${String(r)} does not exist`);let u,l=!1;"value"===o&&a&&!a.value&&a.get&&(o="get",l=!0,n=a.get()),u=a?a[o]:"value"!==o?()=>t[r]:t[r];let f=e=>{let{value:n,...i}=a||{configurable:!0,writable:!0};"value"!==o&&delete i.writable,i[o]=e,mo(t,r,i)};n||(n=u);let h=$o(n);"value"===o&&So(h,u);let p=h[go];return yo(p,"restore",(()=>a?mo(t,r,a):f(u))),yo(p,"getOriginal",(()=>l?u():u)),yo(p,"willCall",(t=>(p.impl=t,h))),f(l?()=>(So(h,n),h):h),wo.add(h),h}var Eo=new Set;function To(t){return"function"==typeof t&&"_isMockFunction"in t&&t._isMockFunction}function Oo(t,e,n){return Ao(jo(t,n?{[{get:"getter",set:"setter"}[n]]:e}:e))}var ko=0;function Ao(t){const e=t;let n,r=[],o=[],i=[];const s=vo(t),c={get calls(){return s.calls},get contexts(){return o},get instances(){return r},get invocationCallOrder(){return i},get results(){return s.results.map((([t,e])=>({type:"error"===t?"throw":"return",value:e})))},get settledResults(){return s.resolves.map((([t,e])=>({type:"error"===t?"rejected":"fulfilled",value:e})))},get lastCall(){return s.calls[s.calls.length-1]}};let a=[],u=!1;function l(...t){r.push(this),o.push(this),i.push(++ko);return(u?n:a.shift()||n||s.getOriginal()||(()=>{})).apply(this,t)}let f=e.name;return e.getMockName=()=>f||"vi.fn()",e.mockName=t=>(f=t,e),e.mockClear=()=>(s.reset(),r=[],o=[],i=[],e),e.mockReset=()=>(e.mockClear(),n=void 0,a=[],e),e.mockRestore=()=>(e.mockReset(),s.restore(),e),e.getMockImplementation=()=>u?n:a.at(0)||n,e.mockImplementation=t=>(n=t,s.willCall(l),e),e.mockImplementationOnce=t=>(a.push(t),e),e.withImplementation=function(t,r){const o=n;n=t,s.willCall(l),u=!0;const i=()=>{n=o,u=!1},c=r();return c instanceof Promise?c.then((()=>(i(),e))):(i(),e)},e.mockReturnThis=()=>e.mockImplementation((function(){return this})),e.mockReturnValue=t=>e.mockImplementation((()=>t)),e.mockReturnValueOnce=t=>e.mockImplementationOnce((()=>t)),e.mockResolvedValue=t=>e.mockImplementation((()=>Promise.resolve(t))),e.mockResolvedValueOnce=t=>e.mockImplementationOnce((()=>Promise.resolve(t))),e.mockRejectedValue=t=>e.mockImplementation((()=>Promise.reject(t))),e.mockRejectedValueOnce=t=>e.mockImplementationOnce((()=>Promise.reject(t))),Object.defineProperty(e,"mock",{get:()=>c}),s.willCall(l),Eo.add(e),e}function _o(t){const e=Ao(jo({spy:t||function(){}},"spy"));return t&&e.mockImplementation(t),e}o();var Mo,Io,Co=Object.defineProperty,No=Object.getOwnPropertyNames,Po=(t,e)=>Co(t,"name",{value:e,configurable:!0}),Ro=(t,e)=>{for(var n in e)Co(t,n,{get:e[n],enumerable:!0})},Bo=(Mo={"(disabled):util"(){}},function(){return Io||(0,Mo[No(Mo)[0]])((Io={exports:{}}).exports,Io),Io.exports}),Do={};Ro(Do,{addChainableMethod:()=>Us,addLengthGuard:()=>Ms,addMethod:()=>Rs,addProperty:()=>As,checkError:()=>Fo,compareByInspect:()=>Xs,eql:()=>is,expectTypes:()=>Qo,flag:()=>zo,getActual:()=>ti,getMessage:()=>Yi,getName:()=>Ys,getOperator:()=>Zs,getOwnEnumerableProperties:()=>Vs,getOwnEnumerablePropertySymbols:()=>zs,getPathInfo:()=>Ts,hasProperty:()=>Ss,inspect:()=>Ki,isNaN:()=>Gs,isNumeric:()=>tc,isProxyEnabled:()=>ks,isRegExp:()=>Qs,objDisplay:()=>Zi,overwriteChainableMethod:()=>Hs,overwriteMethod:()=>Ds,overwriteProperty:()=>Bs,proxify:()=>Ns,test:()=>Vo,transferFlags:()=>Qi,type:()=>Go});var Fo={};function Lo(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function qo(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function Jo(t,e){return Lo(e)&&t===e}function Wo(t,e){return Lo(e)?t.constructor===e.constructor||t instanceof e.constructor:!("object"!=typeof e&&"function"!=typeof e||!e.prototype)&&(t.constructor===e||t instanceof e)}function Uo(t,e){const n="string"==typeof t?t:t.message;return qo(e)?e.test(n):"string"==typeof e&&-1!==n.indexOf(e)}function Ho(t){let e=t;if(Lo(t))e=t.constructor.name;else if("function"==typeof t&&(e=t.name,""===e)){e=(new t).name||e}return e}function Xo(t){let e="";return t&&t.message?e=t.message:"string"==typeof t&&(e=t),e}function zo(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));if(3!==arguments.length)return r[e];r[e]=n}function Vo(t,e){var n=zo(t,"negate"),r=e[0];return n?!r:r}function Go(t){if(void 0===t)return"undefined";if(null===t)return"null";const e=t[Symbol.toStringTag];if("string"==typeof e)return e;return Object.prototype.toString.call(t).slice(8,-1)}Ro(Fo,{compatibleConstructor:()=>Wo,compatibleInstance:()=>Jo,compatibleMessage:()=>Uo,getConstructorName:()=>Ho,getMessage:()=>Xo}),Po(Lo,"isErrorInstance"),Po(qo,"isRegExp"),Po(Jo,"compatibleInstance"),Po(Wo,"compatibleConstructor"),Po(Uo,"compatibleMessage"),Po(Ho,"getConstructorName"),Po(Xo,"getMessage"),Po(zo,"flag"),Po(Vo,"test"),Po(Go,"type");var Ko,Zo="captureStackTrace"in Error,Yo=(Ko=class extends Error{constructor(t="Unspecified AssertionError",n,r){super(t),e(this,"message"),this.message=t,Zo&&Error.captureStackTrace(this,r||Ko);for(const t in n)t in this||(this[t]=n[t])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:!1!==t?this.stack:void 0}}},Po(Ko,"AssertionError"),Ko);function Qo(t,e){var n=zo(t,"message"),r=zo(t,"ssfi");n=n?n+": ":"",t=zo(t,"object"),(e=e.map((function(t){return t.toLowerCase()}))).sort();var o=e.map((function(t,n){var r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a";return(e.length>1&&n===e.length-1?"or ":"")+r+" "+t})).join(", "),i=Go(t).toLowerCase();if(!e.some((function(t){return i===t})))throw new Yo(n+"object tested must be "+o+", but "+i+" given",void 0,r)}function ti(t,e){return e.length>4?e[4]:t._obj}Po(Qo,"expectTypes"),Po(ti,"getActual");var ei={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},ni={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ri="…";function oi(t,e){const n=ei[ni[e]]||ei[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function ii({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:r=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:a=1/0,stylize:u=String}={},l){const f={showHidden:Boolean(t),depth:Number(e),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(o),maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(a),seen:c,inspect:l,stylize:u};return f.colors&&(f.stylize=oi),f}function si(t){return t>="\ud800"&&t<="\udbff"}function ci(t,e,n=ri){t=String(t);const r=n.length,o=t.length;if(r>e&&o>r)return n;if(o>e&&o>r){let o=e-r;return o>0&&si(t[o-1])&&(o-=1),`${t.slice(0,o)}${n}`}return t}function ai(t,e,n,r=", "){n=n||e.inspect;const o=t.length;if(0===o)return"";const i=e.truncate;let s="",c="",a="";for(let u=0;u<o;u+=1){const o=u+1===t.length,l=u+2===t.length;a=`${ri}(${t.length-u})`;const f=t[u];e.truncate=i-s.length-(o?0:r.length);const h=c||n(f,e)+(o?"":r),p=s.length+h.length,d=p+a.length;if(o&&p>i&&s.length+a.length<=i)break;if(!o&&!l&&d>i)break;if(c=o?"":n(t[u+1],e)+(l?"":r),!o&&l&&d>i&&p+c.length>i)break;if(s+=h,!o&&!l&&p+c.length>=i){a=`${ri}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function ui(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function li([t,e],n){return n.truncate-=2,"string"==typeof t?t=ui(t):"number"!=typeof t&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,`${t}: ${e=n.inspect(e,n)}`}function fi(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=ai(t,e);e.truncate-=r.length;let o="";return n.length&&(o=ai(n.map((e=>[e,t[e]])),e,li)),`[ ${r}${o?`, ${o}`:""} ]`}Po(oi,"colorise"),Po(ii,"normaliseOptions"),Po(si,"isHighSurrogate"),Po(ci,"truncate"),Po(ai,"inspectList"),Po(ui,"quoteComplexKey"),Po(li,"inspectProperty"),Po(fi,"inspectArray");var hi=Po((t=>"function"==typeof Buffer&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name),"getArrayName");function pi(t,e){const n=hi(t);e.truncate-=n.length+4;const r=Object.keys(t).slice(t.length);if(!t.length&&!r.length)return`${n}[]`;let o="";for(let n=0;n<t.length;n++){const r=`${e.stylize(ci(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){o+=`${ri}(${t.length-t[n]+1})`;break}o+=r}let i="";return r.length&&(i=ai(r.map((e=>[e,t[e]])),e,li)),`${n}[ ${o}${i?`, ${i}`:""} ]`}function di(t,e){const n=t.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),o=r[0];return e.stylize(`${o}T${ci(r[1],e.truncate-o.length-1)}`,"date")}function bi(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${ci(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function mi([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}function yi(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}function gi(t,e){return t.size-1<=0?"Map{}":(e.truncate-=7,`Map{ ${ai(yi(t),e,mi)} }`)}Po(pi,"inspectTypedArray"),Po(di,"inspectDate"),Po(bi,"inspectFunction"),Po(mi,"inspectMapEntry"),Po(yi,"mapToEntries"),Po(gi,"inspectMap");var wi=Number.isNaN||(t=>t!=t);function vi(t,e){return wi(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):0===t?e.stylize(1/t==1/0?"+0":"-0","number"):e.stylize(ci(String(t),e.truncate),"number")}function $i(t,e){let n=ci(t.toString(),e.truncate-1);return n!==ri&&(n+="n"),e.stylize(n,"bigint")}function xi(t,e){const n=t.toString().split("/")[2],r=e.truncate-(2+n.length),o=t.source;return e.stylize(`/${ci(o,r)}/${n}`,"regexp")}function Si(t){const e=[];return t.forEach((t=>{e.push(t)})),e}function ji(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${ai(Si(t),e)} }`)}Po(vi,"inspectNumber"),Po($i,"inspectBigInt"),Po(xi,"inspectRegExp"),Po(Si,"arrayFromSet"),Po(ji,"inspectSet");var Ei=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Ti={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function Oi(t){return Ti[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function ki(t,e){return Ei.test(t)&&(t=t.replace(Ei,Oi)),e.stylize(`'${ci(t,e.truncate-2)}'`,"string")}function Ai(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}Po(Oi,"escape"),Po(ki,"inspectString"),Po(Ai,"inspectSymbol");var _i=Po((()=>"Promise{…}"),"getPromiseValue");try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(_i=Po(((r,o)=>{const[i,s]=t(r);return i===e?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`}),"getPromiseValue"))}catch(t){}var Mi=_i;function Ii(t,e){const n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(0===n.length&&0===r.length)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const o=ai(n.map((e=>[e,t[e]])),e,li),i=ai(r.map((e=>[e,t[e]])),e,li);e.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}Po(Ii,"inspectObject");var Ci=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;function Ni(t,e){let n="";return Ci&&Ci in t&&(n=t[Ci]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${Ii(t,e)}`}function Pi(t,e){return 0===t.length?"Arguments[]":(e.truncate-=13,`Arguments[ ${ai(t,e)} ]`)}Po(Ni,"inspectClass"),Po(Pi,"inspectArguments");var Ri=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Bi(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===Ri.indexOf(t))),r=t.name;e.truncate-=r.length;let o="";if("string"==typeof t.message?o=ci(t.message,e.truncate):n.unshift("message"),o=o?`: ${o}`:"",e.truncate-=o.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const i=ai(n.map((e=>[e,t[e]])),e,li);return`${r}${o}${i?` { ${i} }`:""}`}function Di([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function Fi(t,e){return ai(t,e,Li,"\n")}function Li(t,e){const n=t.getAttributeNames(),r=t.tagName.toLowerCase(),o=e.stylize(`<${r}`,"special"),i=e.stylize(">","special"),s=e.stylize(`</${r}>`,"special");e.truncate-=2*r.length+5;let c="";n.length>0&&(c+=" ",c+=ai(n.map((e=>[e,t.getAttribute(e)])),e,Di," ")),e.truncate-=c.length;const a=e.truncate;let u=Fi(t.children,e);return u&&u.length>a&&(u=`${ri}(${t.children.length})`),`${o}${c}${i}${u}${s}`}Po(Bi,"inspectObject"),Po(Di,"inspectAttribute"),Po(Fi,"inspectHTMLCollection"),Po(Li,"inspectHTML");var qi="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",Ji=!1;try{const t=Bo();Ji=!!t.inspect&&t.inspect.custom}catch(t){Ji=!1}var Wi=new WeakMap,Ui={},Hi={undefined:(t,e)=>e.stylize("undefined","undefined"),null:(t,e)=>e.stylize("null","null"),boolean:(t,e)=>e.stylize(String(t),"boolean"),Boolean:(t,e)=>e.stylize(String(t),"boolean"),number:vi,Number:vi,bigint:$i,BigInt:$i,string:ki,String:ki,function:bi,Function:bi,symbol:Ai,Symbol:Ai,Array:fi,Date:di,Map:gi,Set:ji,RegExp:xi,Promise:Mi,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:Pi,Int8Array:pi,Uint8Array:pi,Uint8ClampedArray:pi,Int16Array:pi,Uint16Array:pi,Int32Array:pi,Uint32Array:pi,Float32Array:pi,Float64Array:pi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Bi,HTMLCollection:Fi,NodeList:Fi},Xi=Po(((t,e,n)=>qi in t&&"function"==typeof t[qi]?t[qi](e):Ji&&Ji in t&&"function"==typeof t[Ji]?t[Ji](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&Wi.has(t.constructor)?Wi.get(t.constructor)(t,e):Ui[n]?Ui[n](t,e):""),"inspectCustom"),zi=Object.prototype.toString;function Vi(t,e={}){const n=ii(e,Vi),{customInspect:r}=n;let o=null===t?"null":typeof t;if("object"===o&&(o=zi.call(t).slice(8,-1)),o in Hi)return Hi[o](t,n);if(r&&t){const e=Xi(t,n,o);if(e)return"string"==typeof e?e:Vi(e,n)}const i=!!t&&Object.getPrototypeOf(t);return i===Object.prototype||null===i?Ii(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?Li(t,n):"constructor"in t?t.constructor!==Object?Ni(t,n):Ii(t,n):t===Object(t)?Ii(t,n):n.stylize(String(t),o)}Po(Vi,"inspect");var Gi={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Ki(t,e,n,r){return Vi(t,{colors:r,depth:void 0===n?2:n,showHidden:e,truncate:Gi.truncateThreshold?Gi.truncateThreshold:1/0})}function Zi(t){var e=Ki(t),n=Object.prototype.toString.call(t);if(Gi.truncateThreshold&&e.length>=Gi.truncateThreshold){if("[object Function]"===n)return t.name&&""!==t.name?"[Function: "+t.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+t.length+") ]";if("[object Object]"===n){var r=Object.keys(t);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}return e}return e}function Yi(t,e){var n=zo(t,"negate"),r=zo(t,"object"),o=e[3],i=ti(t,e),s=n?e[2]:e[1],c=zo(t,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,(function(){return Zi(r)})).replace(/#\{act\}/g,(function(){return Zi(i)})).replace(/#\{exp\}/g,(function(){return Zi(o)})),c?c+": "+s:s}function Qi(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));for(var o in e.__flags||(e.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==o&&"ssfi"!==o&&"lockSsfi"!==o&&"message"!=o)&&(e.__flags[o]=r[o])}function ts(t){if(void 0===t)return"undefined";if(null===t)return"null";const e=t[Symbol.toStringTag];if("string"==typeof e)return e;return Object.prototype.toString.call(t).slice(8,-1)}function es(){this._key="chai/deep-eql__"+Math.random()+Date.now()}Po(Ki,"inspect"),Po(Zi,"objDisplay"),Po(Yi,"getMessage"),Po(Qi,"transferFlags"),Po(ts,"type"),Po(es,"FakeMap"),es.prototype={get:Po((function(t){return t[this._key]}),"get"),set:Po((function(t,e){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:e,configurable:!0})}),"set")};var ns="function"==typeof WeakMap?WeakMap:es;function rs(t,e,n){if(!n||$s(t)||$s(e))return null;var r=n.get(t);if(r){var o=r.get(e);if("boolean"==typeof o)return o}return null}function os(t,e,n,r){if(n&&!$s(t)&&!$s(e)){var o=n.get(t);o?o.set(e,r):((o=new ns).set(e,r),n.set(t,o))}}Po(rs,"memoizeCompare"),Po(os,"memoizeSet");var is=ss;function ss(t,e,n){if(n&&n.comparator)return as(t,e,n);var r=cs(t,e);return null!==r?r:as(t,e,n)}function cs(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e||!$s(t)&&!$s(e)&&null}function as(t,e,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new ns);var r=n&&n.comparator,o=rs(t,e,n.memoize);if(null!==o)return o;var i=rs(e,t,n.memoize);if(null!==i)return i;if(r){var s=r(t,e);if(!1===s||!0===s)return os(t,e,n.memoize,s),s;var c=cs(t,e);if(null!==c)return c}var a=ts(t);if(a!==ts(e))return os(t,e,n.memoize,!1),!1;os(t,e,n.memoize,!0);var u=us(t,e,a,n);return os(t,e,n.memoize,u),u}function us(t,e,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return ss(t.valueOf(),e.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return t===e;case"Error":return ws(t,e,["name","message","code"],r);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return hs(t,e,r);case"RegExp":return ls(t,e);case"Generator":return ps(t,e,r);case"DataView":return hs(new Uint8Array(t.buffer),new Uint8Array(e.buffer),r);case"ArrayBuffer":return hs(new Uint8Array(t),new Uint8Array(e),r);case"Set":case"Map":return fs(t,e,r);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return t.equals(e);case"Temporal.Duration":return t.total("nanoseconds")===e.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return t.toString()===e.toString();default:return vs(t,e,r)}}function ls(t,e){return t.toString()===e.toString()}function fs(t,e,n){try{if(t.size!==e.size)return!1;if(0===t.size)return!0}catch(t){return!1}var r=[],o=[];return t.forEach(Po((function(t,e){r.push([t,e])}),"gatherEntries")),e.forEach(Po((function(t,e){o.push([t,e])}),"gatherEntries")),hs(r.sort(),o.sort(),n)}function hs(t,e,n){var r=t.length;if(r!==e.length)return!1;if(0===r)return!0;for(var o=-1;++o<r;)if(!1===ss(t[o],e[o],n))return!1;return!0}function ps(t,e,n){return hs(ms(t),ms(e),n)}function ds(t){return"undefined"!=typeof Symbol&&"object"==typeof t&&void 0!==Symbol.iterator&&"function"==typeof t[Symbol.iterator]}function bs(t){if(ds(t))try{return ms(t[Symbol.iterator]())}catch(t){return[]}return[]}function ms(t){for(var e=t.next(),n=[e.value];!1===e.done;)e=t.next(),n.push(e.value);return n}function ys(t){var e=[];for(var n in t)e.push(n);return e}function gs(t){for(var e=[],n=Object.getOwnPropertySymbols(t),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(t,o).enumerable&&e.push(o)}return e}function ws(t,e,n,r){var o=n.length;if(0===o)return!0;for(var i=0;i<o;i+=1)if(!1===ss(t[n[i]],e[n[i]],r))return!1;return!0}function vs(t,e,n){var r=ys(t),o=ys(e),i=gs(t),s=gs(e);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return!1!==hs(xs(r).sort(),xs(o).sort())&&ws(t,e,r,n);var c=bs(t),a=bs(e);return c.length&&c.length===a.length?(c.sort(),a.sort(),hs(c,a,n)):0===r.length&&0===c.length&&0===o.length&&0===a.length}function $s(t){return null===t||"object"!=typeof t}function xs(t){return t.map(Po((function(t){return"symbol"==typeof t?t.toString():t}),"mapSymbol"))}function Ss(t,e){return null!=t&&e in Object(t)}function js(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((t=>{if("constructor"===t||"__proto__"===t||"prototype"===t)return{};const e=/^\[(\d+)\]$/.exec(t);let n=null;return n=e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")},n}))}function Es(t,e,n){let r=t,o=null;n=void 0===n?e.length:n;for(let t=0;t<n;t++){const i=e[t];r&&(r=void 0===i.p?r[i.i]:r[i.p],t===n-1&&(o=r))}return o}function Ts(t,e){const n=js(e),r=n[n.length-1],o={parent:n.length>1?Es(t,n,n.length-1):t,name:r.p||r.i,value:Es(t,n)};return o.exists=Ss(o.parent,o.name),o}function Os(t,e,n,r){return zo(this,"ssfi",n||Os),zo(this,"lockSsfi",r),zo(this,"object",t),zo(this,"message",e),zo(this,"eql",Gi.deepEqual||is),Ns(this)}function ks(){return Gi.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}function As(t,e,n){n=void 0===n?function(){}:n,Object.defineProperty(t,e,{get:Po((function t(){ks()||zo(this,"lockSsfi")||zo(this,"ssfi",t);var e=n.call(this);if(void 0!==e)return e;var r=new Os;return Qi(this,r),r}),"propertyGetter"),configurable:!0})}Po(ss,"deepEqual"),Po(cs,"simpleEqual"),Po(as,"extensiveDeepEqual"),Po(us,"extensiveDeepEqualByType"),Po(ls,"regexpEqual"),Po(fs,"entriesEqual"),Po(hs,"iterableEqual"),Po(ps,"generatorEqual"),Po(ds,"hasIteratorFunction"),Po(bs,"getIteratorEntries"),Po(ms,"getGeneratorEntries"),Po(ys,"getEnumerableKeys"),Po(gs,"getEnumerableSymbols"),Po(ws,"keysEqual"),Po(vs,"objectEqual"),Po($s,"isPrimitive"),Po(xs,"mapSymbols"),Po(Ss,"hasProperty"),Po(js,"parsePath"),Po(Es,"internalGetPathValue"),Po(Ts,"getPathInfo"),Po(Os,"Assertion"),Object.defineProperty(Os,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Gi.includeStack},set:function(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Gi.includeStack=t}}),Object.defineProperty(Os,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Gi.showDiff},set:function(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Gi.showDiff=t}}),Os.addProperty=function(t,e){As(this.prototype,t,e)},Os.addMethod=function(t,e){Rs(this.prototype,t,e)},Os.addChainableMethod=function(t,e,n){Us(this.prototype,t,e,n)},Os.overwriteProperty=function(t,e){Bs(this.prototype,t,e)},Os.overwriteMethod=function(t,e){Ds(this.prototype,t,e)},Os.overwriteChainableMethod=function(t,e,n){Hs(this.prototype,t,e,n)},Os.prototype.assert=function(t,e,n,r,o,i){var s=Vo(this,arguments);if(!1!==i&&(i=!0),void 0===r&&void 0===o&&(i=!1),!0!==Gi.showDiff&&(i=!1),!s){e=Yi(this,arguments);var c={actual:ti(this,arguments),expected:r,showDiff:i},a=Zs(this,arguments);throw a&&(c.operator=a),new Yo(e,c,Gi.includeStack?this.assert:zo(this,"ssfi"))}},Object.defineProperty(Os.prototype,"_obj",{get:function(){return zo(this,"object")},set:function(t){zo(this,"object",t)}}),Po(ks,"isProxyEnabled"),Po(As,"addProperty");var _s=Object.getOwnPropertyDescriptor((function(){}),"length");function Ms(t,e,n){return _s.configurable?(Object.defineProperty(t,"length",{get:function(){if(n)throw Error("Invalid Chai property: "+e+'.length. Due to a compatibility issue, "length" cannot directly follow "'+e+'". Use "'+e+'.lengthOf" instead.');throw Error("Invalid Chai property: "+e+'.length. See docs for proper usage of "'+e+'".')}}),t):t}function Is(t){var e=Object.getOwnPropertyNames(t);function n(t){-1===e.indexOf(t)&&e.push(t)}Po(n,"addProperty");for(var r=Object.getPrototypeOf(t);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return e}Po(Ms,"addLengthGuard"),Po(Is,"getProperties");var Cs=["__flags","__methods","_obj","assert"];function Ns(t,e){return ks()?new Proxy(t,{get:Po((function t(n,r){if("string"==typeof r&&-1===Gi.proxyExcludedKeys.indexOf(r)&&!Reflect.has(n,r)){if(e)throw Error("Invalid Chai property: "+e+"."+r+'. See docs for proper usage of "'+e+'".');var o=null,i=4;throw Is(n).forEach((function(t){if(!Object.prototype.hasOwnProperty(t)&&-1===Cs.indexOf(t)){var e=Ps(r,t,i);e<i&&(o=t,i=e)}})),null!==o?Error("Invalid Chai property: "+r+'. Did you mean "'+o+'"?'):Error("Invalid Chai property: "+r)}return-1!==Cs.indexOf(r)||zo(n,"lockSsfi")||zo(n,"ssfi",t),Reflect.get(n,r)}),"proxyGetter")}):t}function Ps(t,e,n){if(Math.abs(t.length-e.length)>=n)return n;var r=[];for(let n=0;n<=t.length;n++)r[n]=Array(e.length+1).fill(0),r[n][0]=n;for(let t=0;t<e.length;t++)r[0][t]=t;for(let i=1;i<=t.length;i++){var o=t.charCodeAt(i-1);for(let t=1;t<=e.length;t++)Math.abs(i-t)>=n?r[i][t]=n:r[i][t]=Math.min(r[i-1][t]+1,r[i][t-1]+1,r[i-1][t-1]+(o===e.charCodeAt(t-1)?0:1))}return r[t.length][e.length]}function Rs(t,e,n){var r=Po((function(){zo(this,"lockSsfi")||zo(this,"ssfi",r);var t=n.apply(this,arguments);if(void 0!==t)return t;var e=new Os;return Qi(this,e),e}),"methodWrapper");Ms(r,e,!1),t[e]=Ns(r,e)}function Bs(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e),o=Po((function(){}),"_super");r&&"function"==typeof r.get&&(o=r.get),Object.defineProperty(t,e,{get:Po((function t(){ks()||zo(this,"lockSsfi")||zo(this,"ssfi",t);var e=zo(this,"lockSsfi");zo(this,"lockSsfi",!0);var r=n(o).call(this);if(zo(this,"lockSsfi",e),void 0!==r)return r;var i=new Os;return Qi(this,i),i}),"overwritingPropertyGetter"),configurable:!0})}function Ds(t,e,n){var r=t[e],o=Po((function(){throw new Error(e+" is not a function")}),"_super");r&&"function"==typeof r&&(o=r);var i=Po((function(){zo(this,"lockSsfi")||zo(this,"ssfi",i);var t=zo(this,"lockSsfi");zo(this,"lockSsfi",!0);var e=n(o).apply(this,arguments);if(zo(this,"lockSsfi",t),void 0!==e)return e;var r=new Os;return Qi(this,r),r}),"overwritingMethodWrapper");Ms(i,e,!1),t[e]=Ns(i,e)}Po(Ns,"proxify"),Po(Ps,"stringDistanceCapped"),Po(Rs,"addMethod"),Po(Bs,"overwriteProperty"),Po(Ds,"overwriteMethod");var Fs="function"==typeof Object.setPrototypeOf,Ls=Po((function(){}),"testFn"),qs=Object.getOwnPropertyNames(Ls).filter((function(t){var e=Object.getOwnPropertyDescriptor(Ls,t);return"object"!=typeof e||!e.configurable})),Js=Function.prototype.call,Ws=Function.prototype.apply;function Us(t,e,n,r){"function"!=typeof r&&(r=Po((function(){}),"chainingBehavior"));var o={method:n,chainingBehavior:r};t.__methods||(t.__methods={}),t.__methods[e]=o,Object.defineProperty(t,e,{get:Po((function(){o.chainingBehavior.call(this);var n=Po((function(){zo(this,"lockSsfi")||zo(this,"ssfi",n);var t=o.method.apply(this,arguments);if(void 0!==t)return t;var e=new Os;return Qi(this,e),e}),"chainableMethodWrapper");if(Ms(n,e,!0),Fs){var r=Object.create(this);r.call=Js,r.apply=Ws,Object.setPrototypeOf(n,r)}else{Object.getOwnPropertyNames(t).forEach((function(e){if(-1===qs.indexOf(e)){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r)}}))}return Qi(this,n),Ns(n)}),"chainableMethodGetter"),configurable:!0})}function Hs(t,e,n,r){var o=t.__methods[e],i=o.chainingBehavior;o.chainingBehavior=Po((function(){var t=r(i).call(this);if(void 0!==t)return t;var e=new Os;return Qi(this,e),e}),"overwritingChainableMethodGetter");var s=o.method;o.method=Po((function(){var t=n(s).apply(this,arguments);if(void 0!==t)return t;var e=new Os;return Qi(this,e),e}),"overwritingChainableMethodWrapper")}function Xs(t,e){return Ki(t)<Ki(e)?-1:1}function zs(t){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}function Vs(t){return Object.keys(t).concat(zs(t))}Po(Us,"addChainableMethod"),Po(Hs,"overwriteChainableMethod"),Po(Xs,"compareByInspect"),Po(zs,"getOwnEnumerablePropertySymbols"),Po(Vs,"getOwnEnumerableProperties");var Gs=Number.isNaN;function Ks(t){var e=Go(t);return-1!==["Array","Object","Function"].indexOf(e)}function Zs(t,e){var n=zo(t,"operator"),r=zo(t,"negate"),o=e[3],i=r?e[2]:e[1];if(n)return n;if("function"==typeof i&&(i=i()),(i=i||"")&&!/\shave\s/.test(i)){var s=Ks(o);return/\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}function Ys(t){return t.name}function Qs(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function tc(t){return["Number","BigInt"].includes(Go(t))}Po(Ks,"isObjectType"),Po(Zs,"getOperator"),Po(Ys,"getName"),Po(Qs,"isRegExp"),Po(tc,"isNumeric");var{flag:ec}=Do;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(t){Os.addProperty(t)})),Os.addProperty("not",(function(){ec(this,"negate",!0)})),Os.addProperty("deep",(function(){ec(this,"deep",!0)})),Os.addProperty("nested",(function(){ec(this,"nested",!0)})),Os.addProperty("own",(function(){ec(this,"own",!0)})),Os.addProperty("ordered",(function(){ec(this,"ordered",!0)})),Os.addProperty("any",(function(){ec(this,"any",!0),ec(this,"all",!1)})),Os.addProperty("all",(function(){ec(this,"all",!0),ec(this,"any",!1)}));var nc={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function rc(t,e){e&&ec(this,"message",e),t=t.toLowerCase();var n=ec(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";const o=Go(n).toLowerCase();nc.function.includes(t)?this.assert(nc[t].includes(o),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t):this.assert(t===o,"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t)}function oc(t,e){return Gs(t)&&Gs(e)||t===e}function ic(){ec(this,"contains",!0)}function sc(t,e){e&&ec(this,"message",e);var n=ec(this,"object"),r=Go(n).toLowerCase(),o=ec(this,"message"),i=ec(this,"negate"),s=ec(this,"ssfi"),c=ec(this,"deep"),a=c?"deep ":"",u=c?ec(this,"eql"):oc;o=o?o+": ":"";var l=!1;switch(r){case"string":l=-1!==n.indexOf(t);break;case"weakset":if(c)throw new Yo(o+"unable to use .deep.include with WeakSet",void 0,s);l=n.has(t);break;case"map":n.forEach((function(e){l=l||u(e,t)}));break;case"set":c?n.forEach((function(e){l=l||u(e,t)})):l=n.has(t);break;case"array":l=c?n.some((function(e){return u(e,t)})):-1!==n.indexOf(t);break;default:if(t!==Object(t))throw new Yo(o+"the given combination of arguments ("+r+" and "+Go(t).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+Go(t).toLowerCase(),void 0,s);var f=Object.keys(t),h=null,p=0;if(f.forEach((function(e){var r=new Os(n);if(Qi(this,r,!0),ec(r,"lockSsfi",!0),i&&1!==f.length)try{r.property(e,t[e])}catch(t){if(!Fo.compatibleConstructor(t,Yo))throw t;null===h&&(h=t),p++}else r.property(e,t[e])}),this),i&&f.length>1&&p===f.length)throw h;return}this.assert(l,"expected #{this} to "+a+"include "+Ki(t),"expected #{this} to not "+a+"include "+Ki(t))}function cc(){var t=ec(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist")}function ac(){var t=Go(ec(this,"object"));this.assert("Arguments"===t,"expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}function uc(t,e){e&&ec(this,"message",e);var n=ec(this,"object");if(ec(this,"deep")){var r=ec(this,"lockSsfi");ec(this,"lockSsfi",!0),this.eql(t),ec(this,"lockSsfi",r)}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}function lc(t,e){e&&ec(this,"message",e);var n=ec(this,"eql");this.assert(n(t,ec(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}function fc(t,e){e&&ec(this,"message",e);var n=ec(this,"object"),r=ec(this,"doLength"),o=ec(this,"message"),i=o?o+": ":"",s=ec(this,"ssfi"),c=Go(n).toLowerCase(),a=Go(t).toLowerCase();if(r&&"map"!==c&&"set"!==c&&new Os(n,o,s,!0).to.have.property("length"),!r&&"date"===c&&"date"!==a)throw new Yo(i+"the argument to above must be a date",void 0,s);if(!tc(t)&&(r||tc(n)))throw new Yo(i+"the argument to above must be a number",void 0,s);if(!r&&"date"!==c&&!tc(n))throw new Yo(i+"expected "+("string"===c?"'"+n+"'":n)+" to be a number or a date",void 0,s);if(r){var u,l="length";"map"===c||"set"===c?(l="size",u=n.size):u=n.length,this.assert(u>t,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",t,u)}else this.assert(n>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t)}function hc(t,e){e&&ec(this,"message",e);var n,r=ec(this,"object"),o=ec(this,"doLength"),i=ec(this,"message"),s=i?i+": ":"",c=ec(this,"ssfi"),a=Go(r).toLowerCase(),u=Go(t).toLowerCase(),l=!0;if(o&&"map"!==a&&"set"!==a&&new Os(r,i,c,!0).to.have.property("length"),o||"date"!==a||"date"===u)if(tc(t)||!o&&!tc(r))if(o||"date"===a||tc(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to least must be a number";else n=s+"the argument to least must be a date";if(l)throw new Yo(n,void 0,c);if(o){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f>=t,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",t,f)}else this.assert(r>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t)}function pc(t,e){e&&ec(this,"message",e);var n,r=ec(this,"object"),o=ec(this,"doLength"),i=ec(this,"message"),s=i?i+": ":"",c=ec(this,"ssfi"),a=Go(r).toLowerCase(),u=Go(t).toLowerCase(),l=!0;if(o&&"map"!==a&&"set"!==a&&new Os(r,i,c,!0).to.have.property("length"),o||"date"!==a||"date"===u)if(tc(t)||!o&&!tc(r))if(o||"date"===a||tc(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to below must be a number";else n=s+"the argument to below must be a date";if(l)throw new Yo(n,void 0,c);if(o){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f<t,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",t,f)}else this.assert(r<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t)}function dc(t,e){e&&ec(this,"message",e);var n,r=ec(this,"object"),o=ec(this,"doLength"),i=ec(this,"message"),s=i?i+": ":"",c=ec(this,"ssfi"),a=Go(r).toLowerCase(),u=Go(t).toLowerCase(),l=!0;if(o&&"map"!==a&&"set"!==a&&new Os(r,i,c,!0).to.have.property("length"),o||"date"!==a||"date"===u)if(tc(t)||!o&&!tc(r))if(o||"date"===a||tc(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to most must be a number";else n=s+"the argument to most must be a date";if(l)throw new Yo(n,void 0,c);if(o){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f<=t,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",t,f)}else this.assert(r<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t)}function bc(t,e){e&&ec(this,"message",e);var n=ec(this,"object"),r=ec(this,"ssfi"),o=ec(this,"message");try{var i=n instanceof t}catch(e){if(e instanceof TypeError)throw new Yo((o=o?o+": ":"")+"The instanceof assertion needs a constructor but "+Go(t)+" was given.",void 0,r);throw e}var s=Ys(t);null==s&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s)}function mc(t,e,n){n&&ec(this,"message",n);var r=ec(this,"nested"),o=ec(this,"own"),i=ec(this,"message"),s=ec(this,"object"),c=ec(this,"ssfi"),a=typeof t;if(i=i?i+": ":"",r){if("string"!==a)throw new Yo(i+"the argument to property must be a string when using nested syntax",void 0,c)}else if("string"!==a&&"number"!==a&&"symbol"!==a)throw new Yo(i+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&o)throw new Yo(i+'The "nested" and "own" flags cannot be combined.',void 0,c);if(null==s)throw new Yo(i+"Target cannot be null or undefined.",void 0,c);var u,l=ec(this,"deep"),f=ec(this,"negate"),h=r?Ts(s,t):null,p=r?h.value:s[t],d=l?ec(this,"eql"):(t,e)=>t===e,b="";l&&(b+="deep "),o&&(b+="own "),r&&(b+="nested "),b+="property ",u=o?Object.prototype.hasOwnProperty.call(s,t):r?h.exists:Ss(s,t),f&&1!==arguments.length||this.assert(u,"expected #{this} to have "+b+Ki(t),"expected #{this} to not have "+b+Ki(t)),arguments.length>1&&this.assert(u&&d(e,p),"expected #{this} to have "+b+Ki(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+Ki(t)+" of #{act}",e,p),ec(this,"object",p)}function yc(t,e,n){ec(this,"own",!0),mc.apply(this,arguments)}function gc(t,e,n){"string"==typeof e&&(n=e,e=null),n&&ec(this,"message",n);var r=ec(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),t),i=ec(this,"eql");o&&e?this.assert(i(e,o),"expected the own property descriptor for "+Ki(t)+" on #{this} to match "+Ki(e)+", got "+Ki(o),"expected the own property descriptor for "+Ki(t)+" on #{this} to not match "+Ki(e),e,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Ki(t),"expected #{this} to not have an own property descriptor for "+Ki(t)),ec(this,"object",o)}function wc(){ec(this,"doLength",!0)}function vc(t,e){e&&ec(this,"message",e);var n,r=ec(this,"object"),o=Go(r).toLowerCase(),i=ec(this,"message"),s=ec(this,"ssfi"),c="length";switch(o){case"map":case"set":c="size",n=r.size;break;default:new Os(r,i,s,!0).to.have.property("length"),n=r.length}this.assert(n==t,"expected #{this} to have a "+c+" of #{exp} but got #{act}","expected #{this} to not have a "+c+" of #{act}",t,n)}function $c(t,e){e&&ec(this,"message",e);var n=ec(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t)}function xc(t){var e,n,r=ec(this,"object"),o=Go(r),i=Go(t),s=ec(this,"ssfi"),c=ec(this,"deep"),a="",u=!0,l=ec(this,"message"),f=(l=l?l+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===o||"Set"===o)a=c?"deeply ":"",n=[],r.forEach((function(t,e){n.push(e)})),"Array"!==i&&(t=Array.prototype.slice.call(arguments));else{switch(n=Vs(r),i){case"Array":if(arguments.length>1)throw new Yo(f,void 0,s);break;case"Object":if(arguments.length>1)throw new Yo(f,void 0,s);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments)}t=t.map((function(t){return"symbol"==typeof t?t:String(t)}))}if(!t.length)throw new Yo(l+"keys required",void 0,s);var h=t.length,p=ec(this,"any"),d=ec(this,"all"),b=t,m=c?ec(this,"eql"):(t,e)=>t===e;if(p||d||(d=!0),p&&(u=b.some((function(t){return n.some((function(e){return m(t,e)}))}))),d&&(u=b.every((function(t){return n.some((function(e){return m(t,e)}))})),ec(this,"contains")||(u=u&&t.length==n.length)),h>1){var y=(t=t.map((function(t){return Ki(t)}))).pop();d&&(e=t.join(", ")+", and "+y),p&&(e=t.join(", ")+", or "+y)}else e=Ki(t[0]);e=(h>1?"keys ":"key ")+e,e=(ec(this,"contains")?"contain ":"have ")+e,this.assert(u,"expected #{this} to "+a+e,"expected #{this} to not "+a+e,b.slice(0).sort(Xs),n.sort(Xs),!0)}function Sc(t,e,n){n&&ec(this,"message",n);var r=ec(this,"object"),o=ec(this,"ssfi"),i=ec(this,"message"),s=ec(this,"negate")||!1;let c;new Os(r,i,o,!0).is.a("function"),(Qs(t)||"string"==typeof t)&&(e=t,t=null);let a=!1;try{r()}catch(t){a=!0,c=t}var u=void 0===t&&void 0===e,l=Boolean(t&&e),f=!1,h=!1;if(u||!u&&!s){var p="an error";t instanceof Error?p="#{exp}":t&&(p=Fo.getConstructorName(t));let e=c;if(c instanceof Error)e=c.toString();else if("string"==typeof c)e=c;else if(c&&("object"==typeof c||"function"==typeof c))try{e=Fo.getConstructorName(c)}catch(t){}this.assert(a,"expected #{this} to throw "+p,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),e)}if(t&&c){if(t instanceof Error)Fo.compatibleInstance(c,t)===s&&(l&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!s?" but #{act} was thrown":""),t.toString(),c.toString()));Fo.compatibleConstructor(c,t)===s&&(l&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&Fo.getConstructorName(t),c instanceof Error?c.toString():c&&Fo.getConstructorName(c)))}if(c&&null!=e){var d="including";Qs(e)&&(d="matching"),Fo.compatibleMessage(c,e)===s&&(l&&s?h=!0:this.assert(s,"expected #{this} to throw error "+d+" #{exp} but got #{act}","expected #{this} to throw error not "+d+" #{exp}",e,Fo.getMessage(c)))}f&&h&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&Fo.getConstructorName(t),c instanceof Error?c.toString():c&&Fo.getConstructorName(c)),ec(this,"object",c)}function jc(t,e){e&&ec(this,"message",e);var n=ec(this,"object"),r=ec(this,"itself"),o="function"!=typeof n||r?n[t]:n.prototype[t];this.assert("function"==typeof o,"expected #{this} to respond to "+Ki(t),"expected #{this} to not respond to "+Ki(t))}function Ec(t,e){e&&ec(this,"message",e);var n=t(ec(this,"object"));this.assert(n,"expected #{this} to satisfy "+Zi(t),"expected #{this} to not satisfy"+Zi(t),!ec(this,"negate"),n)}function Tc(t,e,n){n&&ec(this,"message",n);var r=ec(this,"object"),o=ec(this,"message"),i=ec(this,"ssfi");new Os(r,o,i,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(null==e)throw new Yo(o?`${o}: ${s}`:s,void 0,i);if(new Os(e,o,i,!0).is.numeric,s="A `expected` value is required for `closeTo`",null==t)throw new Yo(o?`${o}: ${s}`:s,void 0,i);new Os(t,o,i,!0).is.numeric;const c=Po((t=>t<0n?-t:t),"abs"),a=Po((t=>parseFloat(parseFloat(t).toPrecision(12))),"strip");this.assert(a(c(r-t))<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e)}function Oc(t,e,n,r,o){let i=Array.from(e),s=Array.from(t);if(!r){if(s.length!==i.length)return!1;i=i.slice()}return s.every((function(t,e){if(o)return n?n(t,i[e]):t===i[e];if(!n){var s=i.indexOf(t);return-1!==s&&(r||i.splice(s,1),!0)}return i.some((function(e,o){return!!n(t,e)&&(r||i.splice(o,1),!0)}))}))}function kc(t,e){e&&ec(this,"message",e);var n=ec(this,"object"),r=ec(this,"message"),o=ec(this,"ssfi"),i=ec(this,"contains"),s=ec(this,"deep"),c=ec(this,"eql");new Os(t,r,o,!0).to.be.an("array"),i?this.assert(t.some((function(t){return n.indexOf(t)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,n):s?this.assert(t.some((function(t){return c(n,t)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,n):this.assert(t.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,n)}function Ac(t,e,n){n&&ec(this,"message",n);var r,o=ec(this,"object"),i=ec(this,"message"),s=ec(this,"ssfi");new Os(o,i,s,!0).is.a("function"),e?(new Os(t,i,s,!0).to.have.property(e),r=t[e]):(new Os(t,i,s,!0).is.a("function"),r=t()),o();var c=null==e?t():t[e],a=null==e?r:"."+e;ec(this,"deltaMsgObj",a),ec(this,"initialDeltaValue",r),ec(this,"finalDeltaValue",c),ec(this,"deltaBehavior","change"),ec(this,"realDelta",c!==r),this.assert(r!==c,"expected "+a+" to change","expected "+a+" to not change")}function _c(t,e,n){n&&ec(this,"message",n);var r,o=ec(this,"object"),i=ec(this,"message"),s=ec(this,"ssfi");new Os(o,i,s,!0).is.a("function"),e?(new Os(t,i,s,!0).to.have.property(e),r=t[e]):(new Os(t,i,s,!0).is.a("function"),r=t()),new Os(r,i,s,!0).is.a("number"),o();var c=null==e?t():t[e],a=null==e?r:"."+e;ec(this,"deltaMsgObj",a),ec(this,"initialDeltaValue",r),ec(this,"finalDeltaValue",c),ec(this,"deltaBehavior","increase"),ec(this,"realDelta",c-r),this.assert(c-r>0,"expected "+a+" to increase","expected "+a+" to not increase")}function Mc(t,e,n){n&&ec(this,"message",n);var r,o=ec(this,"object"),i=ec(this,"message"),s=ec(this,"ssfi");new Os(o,i,s,!0).is.a("function"),e?(new Os(t,i,s,!0).to.have.property(e),r=t[e]):(new Os(t,i,s,!0).is.a("function"),r=t()),new Os(r,i,s,!0).is.a("number"),o();var c=null==e?t():t[e],a=null==e?r:"."+e;ec(this,"deltaMsgObj",a),ec(this,"initialDeltaValue",r),ec(this,"finalDeltaValue",c),ec(this,"deltaBehavior","decrease"),ec(this,"realDelta",r-c),this.assert(c-r<0,"expected "+a+" to decrease","expected "+a+" to not decrease")}function Ic(t,e){e&&ec(this,"message",e);var n,r=ec(this,"deltaMsgObj"),o=ec(this,"initialDeltaValue"),i=ec(this,"finalDeltaValue"),s=ec(this,"deltaBehavior"),c=ec(this,"realDelta");n="change"===s?Math.abs(i-o)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+r+" to "+s+" by "+t,"expected "+r+" to not "+s+" by "+t)}function Cc(t,e){return t===e||typeof e==typeof t&&("object"!=typeof t||null===t?t===e:!!e&&(Array.isArray(t)?!!Array.isArray(e)&&t.every((function(t){return e.some((function(e){return Cc(t,e)}))})):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Object.keys(t).every((function(n){var r=t[n],o=e[n];return"object"==typeof r&&null!==r&&null!==o?Cc(r,o):"function"==typeof r?r(o):o===r}))))}function Nc(t,e){return new Os(t,e)}Po(rc,"an"),Os.addChainableMethod("an",rc),Os.addChainableMethod("a",rc),Po(oc,"SameValueZero"),Po(ic,"includeChainingBehavior"),Po(sc,"include"),Os.addChainableMethod("include",sc,ic),Os.addChainableMethod("contain",sc,ic),Os.addChainableMethod("contains",sc,ic),Os.addChainableMethod("includes",sc,ic),Os.addProperty("ok",(function(){this.assert(ec(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),Os.addProperty("true",(function(){this.assert(!0===ec(this,"object"),"expected #{this} to be true","expected #{this} to be false",!ec(this,"negate"))})),Os.addProperty("numeric",(function(){const t=ec(this,"object");this.assert(["Number","BigInt"].includes(Go(t)),"expected #{this} to be numeric","expected #{this} to not be numeric",!ec(this,"negate"))})),Os.addProperty("callable",(function(){const t=ec(this,"object"),e=ec(this,"ssfi"),n=ec(this,"message"),r=n?`${n}: `:"",o=ec(this,"negate"),i=o?`${r}expected ${Ki(t)} not to be a callable function`:`${r}expected ${Ki(t)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Go(t));if(s&&o||!s&&!o)throw new Yo(i,void 0,e)})),Os.addProperty("false",(function(){this.assert(!1===ec(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!ec(this,"negate"))})),Os.addProperty("null",(function(){this.assert(null===ec(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),Os.addProperty("undefined",(function(){this.assert(void 0===ec(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),Os.addProperty("NaN",(function(){this.assert(Gs(ec(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),Po(cc,"assertExist"),Os.addProperty("exist",cc),Os.addProperty("exists",cc),Os.addProperty("empty",(function(){var t,e=ec(this,"object"),n=ec(this,"ssfi"),r=ec(this,"message");switch(r=r?r+": ":"",Go(e).toLowerCase()){case"array":case"string":t=e.length;break;case"map":case"set":t=e.size;break;case"weakmap":case"weakset":throw new Yo(r+".empty was passed a weak collection",void 0,n);case"function":var o=r+".empty was passed a function "+Ys(e);throw new Yo(o.trim(),void 0,n);default:if(e!==Object(e))throw new Yo(r+".empty was passed non-string primitive "+Ki(e),void 0,n);t=Object.keys(e).length}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty")})),Po(ac,"checkArguments"),Os.addProperty("arguments",ac),Os.addProperty("Arguments",ac),Po(uc,"assertEqual"),Os.addMethod("equal",uc),Os.addMethod("equals",uc),Os.addMethod("eq",uc),Po(lc,"assertEql"),Os.addMethod("eql",lc),Os.addMethod("eqls",lc),Po(fc,"assertAbove"),Os.addMethod("above",fc),Os.addMethod("gt",fc),Os.addMethod("greaterThan",fc),Po(hc,"assertLeast"),Os.addMethod("least",hc),Os.addMethod("gte",hc),Os.addMethod("greaterThanOrEqual",hc),Po(pc,"assertBelow"),Os.addMethod("below",pc),Os.addMethod("lt",pc),Os.addMethod("lessThan",pc),Po(dc,"assertMost"),Os.addMethod("most",dc),Os.addMethod("lte",dc),Os.addMethod("lessThanOrEqual",dc),Os.addMethod("within",(function(t,e,n){n&&ec(this,"message",n);var r,o=ec(this,"object"),i=ec(this,"doLength"),s=ec(this,"message"),c=s?s+": ":"",a=ec(this,"ssfi"),u=Go(o).toLowerCase(),l=Go(t).toLowerCase(),f=Go(e).toLowerCase(),h=!0,p="date"===l&&"date"===f?t.toISOString()+".."+e.toISOString():t+".."+e;if(i&&"map"!==u&&"set"!==u&&new Os(o,s,a,!0).to.have.property("length"),i||"date"!==u||"date"===l&&"date"===f)if(tc(t)&&tc(e)||!i&&!tc(o))if(i||"date"===u||tc(o))h=!1;else{r=c+"expected "+("string"===u?"'"+o+"'":o)+" to be a number or a date"}else r=c+"the arguments to within must be numbers";else r=c+"the arguments to within must be dates";if(h)throw new Yo(r,void 0,a);if(i){var d,b="length";"map"===u||"set"===u?(b="size",d=o.size):d=o.length,this.assert(d>=t&&d<=e,"expected #{this} to have a "+b+" within "+p,"expected #{this} to not have a "+b+" within "+p)}else this.assert(o>=t&&o<=e,"expected #{this} to be within "+p,"expected #{this} to not be within "+p)})),Po(bc,"assertInstanceOf"),Os.addMethod("instanceof",bc),Os.addMethod("instanceOf",bc),Po(mc,"assertProperty"),Os.addMethod("property",mc),Po(yc,"assertOwnProperty"),Os.addMethod("ownProperty",yc),Os.addMethod("haveOwnProperty",yc),Po(gc,"assertOwnPropertyDescriptor"),Os.addMethod("ownPropertyDescriptor",gc),Os.addMethod("haveOwnPropertyDescriptor",gc),Po(wc,"assertLengthChain"),Po(vc,"assertLength"),Os.addChainableMethod("length",vc,wc),Os.addChainableMethod("lengthOf",vc,wc),Po($c,"assertMatch"),Os.addMethod("match",$c),Os.addMethod("matches",$c),Os.addMethod("string",(function(t,e){e&&ec(this,"message",e);var n=ec(this,"object");new Os(n,ec(this,"message"),ec(this,"ssfi"),!0).is.a("string"),this.assert(~n.indexOf(t),"expected #{this} to contain "+Ki(t),"expected #{this} to not contain "+Ki(t))})),Po(xc,"assertKeys"),Os.addMethod("keys",xc),Os.addMethod("key",xc),Po(Sc,"assertThrows"),Os.addMethod("throw",Sc),Os.addMethod("throws",Sc),Os.addMethod("Throw",Sc),Po(jc,"respondTo"),Os.addMethod("respondTo",jc),Os.addMethod("respondsTo",jc),Os.addProperty("itself",(function(){ec(this,"itself",!0)})),Po(Ec,"satisfy"),Os.addMethod("satisfy",Ec),Os.addMethod("satisfies",Ec),Po(Tc,"closeTo"),Os.addMethod("closeTo",Tc),Os.addMethod("approximately",Tc),Po(Oc,"isSubsetOf"),Os.addMethod("members",(function(t,e){e&&ec(this,"message",e);var n=ec(this,"object"),r=ec(this,"message"),o=ec(this,"ssfi");new Os(n,r,o,!0).to.be.iterable,new Os(t,r,o,!0).to.be.iterable;var i,s,c,a=ec(this,"contains"),u=ec(this,"ordered");a?(s="expected #{this} to be "+(i=u?"an ordered superset":"a superset")+" of #{exp}",c="expected #{this} to not be "+i+" of #{exp}"):(s="expected #{this} to have the same "+(i=u?"ordered members":"members")+" as #{exp}",c="expected #{this} to not have the same "+i+" as #{exp}");var l=ec(this,"deep")?ec(this,"eql"):void 0;this.assert(Oc(t,n,l,a,u),s,c,t,n,!0)})),Os.addProperty("iterable",(function(t){t&&ec(this,"message",t);var e=ec(this,"object");this.assert(null!=e&&e[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",e)})),Po(kc,"oneOf"),Os.addMethod("oneOf",kc),Po(Ac,"assertChanges"),Os.addMethod("change",Ac),Os.addMethod("changes",Ac),Po(_c,"assertIncreases"),Os.addMethod("increase",_c),Os.addMethod("increases",_c),Po(Mc,"assertDecreases"),Os.addMethod("decrease",Mc),Os.addMethod("decreases",Mc),Po(Ic,"assertDelta"),Os.addMethod("by",Ic),Os.addProperty("extensible",(function(){var t=ec(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")})),Os.addProperty("sealed",(function(){var t=ec(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")})),Os.addProperty("frozen",(function(){var t=ec(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})),Os.addProperty("finite",(function(t){var e=ec(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})),Po(Cc,"compareSubset"),Os.addMethod("containSubset",(function(t){const e=zo(this,"object"),n=Gi.showDiff;this.assert(Cc(t,e),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",t,e,n)})),Po(Nc,"expect"),Nc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new Yo(n=n||"expect.fail()",{actual:t,expected:e,operator:r},Nc.fail)};var Pc={};function Rc(){function t(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new Os(this.valueOf(),null,t):new Os(this,null,t)}function e(t){Object.defineProperty(this,"should",{value:t,enumerable:!0,configurable:!0,writable:!0})}Po(t,"shouldGetter"),Po(e,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:e,get:t,configurable:!0});var n={fail:function(t,e,r,o){throw arguments.length<2&&(r=t,t=void 0),new Yo(r=r||"should.fail()",{actual:t,expected:e,operator:o},n.fail)},equal:function(t,e,n){new Os(t,n).to.equal(e)},Throw:function(t,e,n,r){new Os(t,r).to.Throw(e,n)},exist:function(t,e){new Os(t,e).to.exist},not:{}};return n.not.equal=function(t,e,n){new Os(t,n).to.not.equal(e)},n.not.Throw=function(t,e,n,r){new Os(t,r).to.not.Throw(e,n)},n.not.exist=function(t,e){new Os(t,e).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}Ro(Pc,{Should:()=>Dc,should:()=>Bc}),Po(Rc,"loadShould");var Bc=Rc,Dc=Rc;function Fc(t,e){new Os(null,null,Fc,!0).assert(t,e,"[ negation message unavailable ]")}Po(Fc,"assert"),Fc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new Yo(n=n||"assert.fail()",{actual:t,expected:e,operator:r},Fc.fail)},Fc.isOk=function(t,e){new Os(t,e,Fc.isOk,!0).is.ok},Fc.isNotOk=function(t,e){new Os(t,e,Fc.isNotOk,!0).is.not.ok},Fc.equal=function(t,e,n){var r=new Os(t,n,Fc.equal,!0);r.assert(e==zo(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",e,t,!0)},Fc.notEqual=function(t,e,n){var r=new Os(t,n,Fc.notEqual,!0);r.assert(e!=zo(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",e,t,!0)},Fc.strictEqual=function(t,e,n){new Os(t,n,Fc.strictEqual,!0).to.equal(e)},Fc.notStrictEqual=function(t,e,n){new Os(t,n,Fc.notStrictEqual,!0).to.not.equal(e)},Fc.deepEqual=Fc.deepStrictEqual=function(t,e,n){new Os(t,n,Fc.deepEqual,!0).to.eql(e)},Fc.notDeepEqual=function(t,e,n){new Os(t,n,Fc.notDeepEqual,!0).to.not.eql(e)},Fc.isAbove=function(t,e,n){new Os(t,n,Fc.isAbove,!0).to.be.above(e)},Fc.isAtLeast=function(t,e,n){new Os(t,n,Fc.isAtLeast,!0).to.be.least(e)},Fc.isBelow=function(t,e,n){new Os(t,n,Fc.isBelow,!0).to.be.below(e)},Fc.isAtMost=function(t,e,n){new Os(t,n,Fc.isAtMost,!0).to.be.most(e)},Fc.isTrue=function(t,e){new Os(t,e,Fc.isTrue,!0).is.true},Fc.isNotTrue=function(t,e){new Os(t,e,Fc.isNotTrue,!0).to.not.equal(!0)},Fc.isFalse=function(t,e){new Os(t,e,Fc.isFalse,!0).is.false},Fc.isNotFalse=function(t,e){new Os(t,e,Fc.isNotFalse,!0).to.not.equal(!1)},Fc.isNull=function(t,e){new Os(t,e,Fc.isNull,!0).to.equal(null)},Fc.isNotNull=function(t,e){new Os(t,e,Fc.isNotNull,!0).to.not.equal(null)},Fc.isNaN=function(t,e){new Os(t,e,Fc.isNaN,!0).to.be.NaN},Fc.isNotNaN=function(t,e){new Os(t,e,Fc.isNotNaN,!0).not.to.be.NaN},Fc.exists=function(t,e){new Os(t,e,Fc.exists,!0).to.exist},Fc.notExists=function(t,e){new Os(t,e,Fc.notExists,!0).to.not.exist},Fc.isUndefined=function(t,e){new Os(t,e,Fc.isUndefined,!0).to.equal(void 0)},Fc.isDefined=function(t,e){new Os(t,e,Fc.isDefined,!0).to.not.equal(void 0)},Fc.isCallable=function(t,e){new Os(t,e,Fc.isCallable,!0).is.callable},Fc.isNotCallable=function(t,e){new Os(t,e,Fc.isNotCallable,!0).is.not.callable},Fc.isObject=function(t,e){new Os(t,e,Fc.isObject,!0).to.be.a("object")},Fc.isNotObject=function(t,e){new Os(t,e,Fc.isNotObject,!0).to.not.be.a("object")},Fc.isArray=function(t,e){new Os(t,e,Fc.isArray,!0).to.be.an("array")},Fc.isNotArray=function(t,e){new Os(t,e,Fc.isNotArray,!0).to.not.be.an("array")},Fc.isString=function(t,e){new Os(t,e,Fc.isString,!0).to.be.a("string")},Fc.isNotString=function(t,e){new Os(t,e,Fc.isNotString,!0).to.not.be.a("string")},Fc.isNumber=function(t,e){new Os(t,e,Fc.isNumber,!0).to.be.a("number")},Fc.isNotNumber=function(t,e){new Os(t,e,Fc.isNotNumber,!0).to.not.be.a("number")},Fc.isNumeric=function(t,e){new Os(t,e,Fc.isNumeric,!0).is.numeric},Fc.isNotNumeric=function(t,e){new Os(t,e,Fc.isNotNumeric,!0).is.not.numeric},Fc.isFinite=function(t,e){new Os(t,e,Fc.isFinite,!0).to.be.finite},Fc.isBoolean=function(t,e){new Os(t,e,Fc.isBoolean,!0).to.be.a("boolean")},Fc.isNotBoolean=function(t,e){new Os(t,e,Fc.isNotBoolean,!0).to.not.be.a("boolean")},Fc.typeOf=function(t,e,n){new Os(t,n,Fc.typeOf,!0).to.be.a(e)},Fc.notTypeOf=function(t,e,n){new Os(t,n,Fc.notTypeOf,!0).to.not.be.a(e)},Fc.instanceOf=function(t,e,n){new Os(t,n,Fc.instanceOf,!0).to.be.instanceOf(e)},Fc.notInstanceOf=function(t,e,n){new Os(t,n,Fc.notInstanceOf,!0).to.not.be.instanceOf(e)},Fc.include=function(t,e,n){new Os(t,n,Fc.include,!0).include(e)},Fc.notInclude=function(t,e,n){new Os(t,n,Fc.notInclude,!0).not.include(e)},Fc.deepInclude=function(t,e,n){new Os(t,n,Fc.deepInclude,!0).deep.include(e)},Fc.notDeepInclude=function(t,e,n){new Os(t,n,Fc.notDeepInclude,!0).not.deep.include(e)},Fc.nestedInclude=function(t,e,n){new Os(t,n,Fc.nestedInclude,!0).nested.include(e)},Fc.notNestedInclude=function(t,e,n){new Os(t,n,Fc.notNestedInclude,!0).not.nested.include(e)},Fc.deepNestedInclude=function(t,e,n){new Os(t,n,Fc.deepNestedInclude,!0).deep.nested.include(e)},Fc.notDeepNestedInclude=function(t,e,n){new Os(t,n,Fc.notDeepNestedInclude,!0).not.deep.nested.include(e)},Fc.ownInclude=function(t,e,n){new Os(t,n,Fc.ownInclude,!0).own.include(e)},Fc.notOwnInclude=function(t,e,n){new Os(t,n,Fc.notOwnInclude,!0).not.own.include(e)},Fc.deepOwnInclude=function(t,e,n){new Os(t,n,Fc.deepOwnInclude,!0).deep.own.include(e)},Fc.notDeepOwnInclude=function(t,e,n){new Os(t,n,Fc.notDeepOwnInclude,!0).not.deep.own.include(e)},Fc.match=function(t,e,n){new Os(t,n,Fc.match,!0).to.match(e)},Fc.notMatch=function(t,e,n){new Os(t,n,Fc.notMatch,!0).to.not.match(e)},Fc.property=function(t,e,n){new Os(t,n,Fc.property,!0).to.have.property(e)},Fc.notProperty=function(t,e,n){new Os(t,n,Fc.notProperty,!0).to.not.have.property(e)},Fc.propertyVal=function(t,e,n,r){new Os(t,r,Fc.propertyVal,!0).to.have.property(e,n)},Fc.notPropertyVal=function(t,e,n,r){new Os(t,r,Fc.notPropertyVal,!0).to.not.have.property(e,n)},Fc.deepPropertyVal=function(t,e,n,r){new Os(t,r,Fc.deepPropertyVal,!0).to.have.deep.property(e,n)},Fc.notDeepPropertyVal=function(t,e,n,r){new Os(t,r,Fc.notDeepPropertyVal,!0).to.not.have.deep.property(e,n)},Fc.ownProperty=function(t,e,n){new Os(t,n,Fc.ownProperty,!0).to.have.own.property(e)},Fc.notOwnProperty=function(t,e,n){new Os(t,n,Fc.notOwnProperty,!0).to.not.have.own.property(e)},Fc.ownPropertyVal=function(t,e,n,r){new Os(t,r,Fc.ownPropertyVal,!0).to.have.own.property(e,n)},Fc.notOwnPropertyVal=function(t,e,n,r){new Os(t,r,Fc.notOwnPropertyVal,!0).to.not.have.own.property(e,n)},Fc.deepOwnPropertyVal=function(t,e,n,r){new Os(t,r,Fc.deepOwnPropertyVal,!0).to.have.deep.own.property(e,n)},Fc.notDeepOwnPropertyVal=function(t,e,n,r){new Os(t,r,Fc.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(e,n)},Fc.nestedProperty=function(t,e,n){new Os(t,n,Fc.nestedProperty,!0).to.have.nested.property(e)},Fc.notNestedProperty=function(t,e,n){new Os(t,n,Fc.notNestedProperty,!0).to.not.have.nested.property(e)},Fc.nestedPropertyVal=function(t,e,n,r){new Os(t,r,Fc.nestedPropertyVal,!0).to.have.nested.property(e,n)},Fc.notNestedPropertyVal=function(t,e,n,r){new Os(t,r,Fc.notNestedPropertyVal,!0).to.not.have.nested.property(e,n)},Fc.deepNestedPropertyVal=function(t,e,n,r){new Os(t,r,Fc.deepNestedPropertyVal,!0).to.have.deep.nested.property(e,n)},Fc.notDeepNestedPropertyVal=function(t,e,n,r){new Os(t,r,Fc.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(e,n)},Fc.lengthOf=function(t,e,n){new Os(t,n,Fc.lengthOf,!0).to.have.lengthOf(e)},Fc.hasAnyKeys=function(t,e,n){new Os(t,n,Fc.hasAnyKeys,!0).to.have.any.keys(e)},Fc.hasAllKeys=function(t,e,n){new Os(t,n,Fc.hasAllKeys,!0).to.have.all.keys(e)},Fc.containsAllKeys=function(t,e,n){new Os(t,n,Fc.containsAllKeys,!0).to.contain.all.keys(e)},Fc.doesNotHaveAnyKeys=function(t,e,n){new Os(t,n,Fc.doesNotHaveAnyKeys,!0).to.not.have.any.keys(e)},Fc.doesNotHaveAllKeys=function(t,e,n){new Os(t,n,Fc.doesNotHaveAllKeys,!0).to.not.have.all.keys(e)},Fc.hasAnyDeepKeys=function(t,e,n){new Os(t,n,Fc.hasAnyDeepKeys,!0).to.have.any.deep.keys(e)},Fc.hasAllDeepKeys=function(t,e,n){new Os(t,n,Fc.hasAllDeepKeys,!0).to.have.all.deep.keys(e)},Fc.containsAllDeepKeys=function(t,e,n){new Os(t,n,Fc.containsAllDeepKeys,!0).to.contain.all.deep.keys(e)},Fc.doesNotHaveAnyDeepKeys=function(t,e,n){new Os(t,n,Fc.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(e)},Fc.doesNotHaveAllDeepKeys=function(t,e,n){new Os(t,n,Fc.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(e)},Fc.throws=function(t,e,n,r){return("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),zo(new Os(t,r,Fc.throws,!0).to.throw(e,n),"object")},Fc.doesNotThrow=function(t,e,n,r){("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),new Os(t,r,Fc.doesNotThrow,!0).to.not.throw(e,n)},Fc.operator=function(t,e,n,r){var o;switch(e){case"==":o=t==n;break;case"===":o=t===n;break;case">":o=t>n;break;case">=":o=t>=n;break;case"<":o=t<n;break;case"<=":o=t<=n;break;case"!=":o=t!=n;break;case"!==":o=t!==n;break;default:throw new Yo((r=r?r+": ":r)+'Invalid operator "'+e+'"',void 0,Fc.operator)}var i=new Os(o,r,Fc.operator,!0);i.assert(!0===zo(i,"object"),"expected "+Ki(t)+" to be "+e+" "+Ki(n),"expected "+Ki(t)+" to not be "+e+" "+Ki(n))},Fc.closeTo=function(t,e,n,r){new Os(t,r,Fc.closeTo,!0).to.be.closeTo(e,n)},Fc.approximately=function(t,e,n,r){new Os(t,r,Fc.approximately,!0).to.be.approximately(e,n)},Fc.sameMembers=function(t,e,n){new Os(t,n,Fc.sameMembers,!0).to.have.same.members(e)},Fc.notSameMembers=function(t,e,n){new Os(t,n,Fc.notSameMembers,!0).to.not.have.same.members(e)},Fc.sameDeepMembers=function(t,e,n){new Os(t,n,Fc.sameDeepMembers,!0).to.have.same.deep.members(e)},Fc.notSameDeepMembers=function(t,e,n){new Os(t,n,Fc.notSameDeepMembers,!0).to.not.have.same.deep.members(e)},Fc.sameOrderedMembers=function(t,e,n){new Os(t,n,Fc.sameOrderedMembers,!0).to.have.same.ordered.members(e)},Fc.notSameOrderedMembers=function(t,e,n){new Os(t,n,Fc.notSameOrderedMembers,!0).to.not.have.same.ordered.members(e)},Fc.sameDeepOrderedMembers=function(t,e,n){new Os(t,n,Fc.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(e)},Fc.notSameDeepOrderedMembers=function(t,e,n){new Os(t,n,Fc.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(e)},Fc.includeMembers=function(t,e,n){new Os(t,n,Fc.includeMembers,!0).to.include.members(e)},Fc.notIncludeMembers=function(t,e,n){new Os(t,n,Fc.notIncludeMembers,!0).to.not.include.members(e)},Fc.includeDeepMembers=function(t,e,n){new Os(t,n,Fc.includeDeepMembers,!0).to.include.deep.members(e)},Fc.notIncludeDeepMembers=function(t,e,n){new Os(t,n,Fc.notIncludeDeepMembers,!0).to.not.include.deep.members(e)},Fc.includeOrderedMembers=function(t,e,n){new Os(t,n,Fc.includeOrderedMembers,!0).to.include.ordered.members(e)},Fc.notIncludeOrderedMembers=function(t,e,n){new Os(t,n,Fc.notIncludeOrderedMembers,!0).to.not.include.ordered.members(e)},Fc.includeDeepOrderedMembers=function(t,e,n){new Os(t,n,Fc.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(e)},Fc.notIncludeDeepOrderedMembers=function(t,e,n){new Os(t,n,Fc.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(e)},Fc.oneOf=function(t,e,n){new Os(t,n,Fc.oneOf,!0).to.be.oneOf(e)},Fc.isIterable=function(t,e){if(null==t||!t[Symbol.iterator])throw e=e?`${e} expected ${Ki(t)} to be an iterable`:`expected ${Ki(t)} to be an iterable`,new Yo(e,void 0,Fc.isIterable)},Fc.changes=function(t,e,n,r){3===arguments.length&&"function"==typeof e&&(r=n,n=null),new Os(t,r,Fc.changes,!0).to.change(e,n)},Fc.changesBy=function(t,e,n,r,o){if(4===arguments.length&&"function"==typeof e){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new Os(t,o,Fc.changesBy,!0).to.change(e,n).by(r)},Fc.doesNotChange=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new Os(t,r,Fc.doesNotChange,!0).to.not.change(e,n)},Fc.changesButNotBy=function(t,e,n,r,o){if(4===arguments.length&&"function"==typeof e){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new Os(t,o,Fc.changesButNotBy,!0).to.change(e,n).but.not.by(r)},Fc.increases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new Os(t,r,Fc.increases,!0).to.increase(e,n)},Fc.increasesBy=function(t,e,n,r,o){if(4===arguments.length&&"function"==typeof e){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new Os(t,o,Fc.increasesBy,!0).to.increase(e,n).by(r)},Fc.doesNotIncrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new Os(t,r,Fc.doesNotIncrease,!0).to.not.increase(e,n)},Fc.increasesButNotBy=function(t,e,n,r,o){if(4===arguments.length&&"function"==typeof e){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new Os(t,o,Fc.increasesButNotBy,!0).to.increase(e,n).but.not.by(r)},Fc.decreases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new Os(t,r,Fc.decreases,!0).to.decrease(e,n)},Fc.decreasesBy=function(t,e,n,r,o){if(4===arguments.length&&"function"==typeof e){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new Os(t,o,Fc.decreasesBy,!0).to.decrease(e,n).by(r)},Fc.doesNotDecrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new Os(t,r,Fc.doesNotDecrease,!0).to.not.decrease(e,n)},Fc.doesNotDecreaseBy=function(t,e,n,r,o){if(4===arguments.length&&"function"==typeof e){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);return new Os(t,o,Fc.doesNotDecreaseBy,!0).to.not.decrease(e,n).by(r)},Fc.decreasesButNotBy=function(t,e,n,r,o){if(4===arguments.length&&"function"==typeof e){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new Os(t,o,Fc.decreasesButNotBy,!0).to.decrease(e,n).but.not.by(r)},Fc.ifError=function(t){if(t)throw t},Fc.isExtensible=function(t,e){new Os(t,e,Fc.isExtensible,!0).to.be.extensible},Fc.isNotExtensible=function(t,e){new Os(t,e,Fc.isNotExtensible,!0).to.not.be.extensible},Fc.isSealed=function(t,e){new Os(t,e,Fc.isSealed,!0).to.be.sealed},Fc.isNotSealed=function(t,e){new Os(t,e,Fc.isNotSealed,!0).to.not.be.sealed},Fc.isFrozen=function(t,e){new Os(t,e,Fc.isFrozen,!0).to.be.frozen},Fc.isNotFrozen=function(t,e){new Os(t,e,Fc.isNotFrozen,!0).to.not.be.frozen},Fc.isEmpty=function(t,e){new Os(t,e,Fc.isEmpty,!0).to.be.empty},Fc.isNotEmpty=function(t,e){new Os(t,e,Fc.isNotEmpty,!0).to.not.be.empty},Fc.containsSubset=function(t,e,n){new Os(t,n).to.containSubset(e)},Fc.doesNotContainSubset=function(t,e,n){new Os(t,n).to.not.containSubset(e)};for(const[t,e]of[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]])Fc[e]=Fc[t];var Lc=[];function qc(t){const e={use:qc,AssertionError:Yo,util:Do,config:Gi,expect:Nc,assert:Fc,Assertion:Os,...Pc};return~Lc.indexOf(t)||(t(e,Do),Lc.push(t)),e}Po(qc,"use");var Jc=Symbol.for("matchers-object"),Wc=Symbol.for("$$jest-matchers-object"),Uc=Symbol.for("expect-global"),Hc=Symbol.for("asymmetric-matchers-object"),Xc={toSatisfy(t,e,n){const{printReceived:r,printExpected:o,matcherHint:i}=this.utils,s=e(t);return{pass:s,message:()=>s?`${i(".not.toSatisfy","received","")}\n\nExpected value to not satisfy:\n${n||o(e)}\nReceived:\n${r(t)}`:`${i(".toSatisfy","received","")}\n\nExpected value to satisfy:\n${n||o(e)}\n\nReceived:\n${r(t)}`}},toBeOneOf(t,e){const{equals:n,customTesters:r}=this,{printReceived:o,printExpected:i,matcherHint:s}=this.utils;if(!Array.isArray(e))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof e}'.`);const c=0===e.length||e.some((e=>n(e,t,r)));return{pass:c,message:()=>c?`${s(".not.toBeOneOf","received","")}\n\nExpected value to not be one of:\n${i(e)}\nReceived:\n${o(t)}`:`${s(".toBeOneOf","received","")}\n\nExpected value to be one of:\n${i(e)}\n\nReceived:\n${o(t)}`}}},zc=p.green,Vc=p.red,Gc=p.inverse,Kc=p.bold,Zc=p.dim;function Yc(t,e="received",n="expected",r={}){const{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:c="",secondArgument:a="",expectedColor:u=zc,receivedColor:l=Vc,secondArgumentColor:f=zc}=r;let h="",p="expect";return i||""===e||(h+=Zc(`${p}(`)+l(e),p=")"),""!==c&&(h+=Zc(`${p}.`)+c,p=""),s&&(h+=`${Zc(`${p}.`)}not`,p=""),t.includes(".")?p+=t:(h+=Zc(`${p}.`)+t,p=""),""===n?p+="()":(h+=Zc(`${p}(`)+u(n),a&&(h+=Zc(", ")+f(a)),p=")"),""!==o&&(p+=` // ${o}`),""!==p&&(h+=Zc(p)),h}function Qc(t){return t.replace(/\s+$/gm,(t=>"·".repeat(t.length)))}function ta(t){return Vc(Qc(xe(t)))}function ea(t){return zc(Qc(xe(t)))}function na(){return{EXPECTED_COLOR:zc,RECEIVED_COLOR:Vc,INVERTED_COLOR:Gc,BOLD_WEIGHT:Kc,DIM_COLOR:Zc,diff:lr,matcherHint:Yc,printReceived:ta,printExpected:ea,printDiffOrStringify:gr}}function ra(){return globalThis[Wc].customEqualityTesters}function oa(t,e,n,r){return sa(t,e,[],[],n=n||[],r?ua:aa)}Function.prototype.toString;function ia(t){return!!t&&"object"==typeof t&&"asymmetricMatch"in t&&la("Function",t.asymmetricMatch)}function sa(t,e,n,r,o,i){let s=!0;const c=function(t,e){const n=ia(t),r=ia(e);if(!n||!r)return n?t.asymmetricMatch(e):r?e.asymmetricMatch(t):void 0}(t,e);if(void 0!==c)return c;const a={equals:oa};for(let n=0;n<o.length;n++){const r=o[n].call(a,t,e,o);if(void 0!==r)return r}if("function"==typeof URL&&t instanceof URL&&e instanceof URL)return t.href===e.href;if(Object.is(t,e))return!0;if(null===t||null===e)return t===e;const u=Object.prototype.toString.call(t);if(u!==Object.prototype.toString.call(e))return!1;switch(u){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof t==typeof e&&("object"!=typeof t&&"object"!=typeof e?Object.is(t,e):Object.is(t.valueOf(),e.valueOf()));case"[object Date]":{const n=+t,r=+e;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case"[object RegExp]":return t.source===e.source&&t.flags===e.flags}if("object"!=typeof t||"object"!=typeof e)return!1;if(fa(t)&&fa(e))return t.isEqualNode(e);let l=n.length;for(;l--;){if(n[l]===t)return r[l]===e;if(r[l]===e)return!1}if(n.push(t),r.push(e),"[object Array]"===u&&t.length!==e.length)return!1;if(t instanceof Error&&e instanceof Error)try{return function(t,e,n,r,o,i){let s=Object.getPrototypeOf(t)===Object.getPrototypeOf(e)&&t.name===e.name&&t.message===e.message;void 0!==e.cause&&s&&(s=sa(t.cause,e.cause,n,r,o,i));t instanceof AggregateError&&e instanceof AggregateError&&s&&(s=sa(t.errors,e.errors,n,r,o,i));return s&&(s=sa({...t},{...e},n,r,o,i)),s}(t,e,n,r,o,i)}finally{n.pop(),r.pop()}const f=ca(t,i);let h,p=f.length;if(ca(e,i).length!==p)return!1;for(;p--;)if(h=f[p],s=i(e,h)&&sa(t[h],e[h],n,r,o,i),!s)return!1;return n.pop(),r.pop(),s}function ca(t,e){const n=[];for(const r in t)e(t,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(t).filter((e=>Object.getOwnPropertyDescriptor(t,e).enumerable)))}function aa(t,e){return ua(t,e)&&void 0!==t[e]}function ua(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function la(t,e){return Object.prototype.toString.apply(e)===`[object ${t}]`}function fa(t){return null!==t&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&"nodeName"in t&&"string"==typeof t.nodeName&&"isEqualNode"in t&&"function"==typeof t.isEqualNode}var ha="@@__IMMUTABLE_KEYED__@@",pa="@@__IMMUTABLE_SET__@@",da="@@__IMMUTABLE_ORDERED__@@";function ba(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var ma=Symbol.iterator;function ya(t){return!(null==t||!t[ma])}function ga(t,e,n=[],r=[],o=[]){if("object"!=typeof t||"object"!=typeof e||Array.isArray(t)||Array.isArray(e)||!ya(t)||!ya(e))return;if(t.constructor!==e.constructor)return!1;let i=r.length;for(;i--;)if(r[i]===t)return o[i]===e;r.push(t),o.push(e);const s=[...n.filter((t=>t!==ga)),function(t,e){return ga(t,e,[...n],[...r],[...o])}];if(void 0!==t.size){if(t.size!==e.size)return!1;if(la("Set",t)||(a=t)&&a[pa]&&!a[da]){let n=!0;for(const r of t)if(!e.has(r)){let t=!1;for(const n of e){!0===oa(r,n,s)&&(t=!0)}if(!1===t){n=!1;break}}return r.pop(),o.pop(),n}if(la("Map",t)||(c=t)&&c[ha]&&!c[da]){let n=!0;for(const r of t)if(!e.has(r[0])||!oa(r[1],e.get(r[0]),s)){let t=!1;for(const n of e){let e=!1;!0===oa(r[0],n[0],s)&&(e=oa(r[1],n[1],s)),!0===e&&(t=!0)}if(!1===t){n=!1;break}}return r.pop(),o.pop(),n}}var c,a;const u=e[ma]();for(const e of t){const t=u.next();if(t.done||!oa(e,t.value,s))return!1}if(!u.next().done)return!1;if(!(l=t,Boolean(l&&ba(l)&&l["@@__IMMUTABLE_LIST__@@"])||function(t){return Boolean(t&&ba(t)&&t[ha]&&t[da])}(t)||function(t){return Boolean(t&&ba(t)&&t[pa]&&t[da])}(t)||function(t){return Boolean(t&&ba(t)&&t["@@__IMMUTABLE_RECORD__@@"])}(t))){if(!oa(Object.entries(t),Object.entries(e)))return!1}var l;return r.pop(),o.pop(),!0}function wa(t,e){return!(!t||"object"!=typeof t||t===Object.prototype)&&(Object.prototype.hasOwnProperty.call(t,e)||wa(Object.getPrototypeOf(t),e))}function va(t,e,n=[]){const r=n.filter((t=>t!==va)),o=(t=new WeakMap)=>(e,n)=>{var i;if(!(!Ae(i=n)||i instanceof Error||Array.isArray(i)||i instanceof Date))return Object.keys(n).every((i=>{if(null!=n[i]&&"object"==typeof n[i]){if(t.has(n[i]))return oa(e[i],n[i],r);t.set(n[i],!0)}const s=null!=e&&wa(e,i)&&oa(e[i],n[i],[...r,o(t)]);return t.delete(n[i]),s}))};return o()(t,e)}function $a(t,e){if(null!=t&&null!=e&&t.constructor!==e.constructor)return!1}function xa(t,e){let n=t,r=e;if(!(t instanceof DataView&&e instanceof DataView)){if(!(t instanceof ArrayBuffer&&e instanceof ArrayBuffer))return;try{n=new DataView(t),r=new DataView(e)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let t=0;t<n.byteLength;t++)if(n.getUint8(t)!==r.getUint8(t))return!1;return!0}function Sa(t,e,n=[]){if(!Array.isArray(t)||!Array.isArray(e))return;const r=Object.keys(t),o=Object.keys(e);return oa(t,e,n.filter((t=>t!==Sa)),!0)&&oa(r,o)}function ja(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter((e=>{var n;return null==(n=Object.getOwnPropertyDescriptor(t,e))?void 0:n.enumerable}))]}if(!Object.prototype.hasOwnProperty.call(globalThis,Jc)){const t=new WeakMap,e=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Jc,{get:()=>t}),Object.defineProperty(globalThis,Wc,{configurable:!0,get:()=>({state:t.get(globalThis[Uc]),matchers:e,customEqualityTesters:n})}),Object.defineProperty(globalThis,Hc,{get:()=>r})}function Ea(t){return globalThis[Jc].get(t)}function Ta(t,e){const n=globalThis[Jc],r=n.get(e)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(t)});n.set(e,o)}var Oa=class{constructor(t,n=!1){e(this,"$$typeof",Symbol.for("jest.asymmetricMatcher")),this.sample=t,this.inverse=n}getMatcherContext(t){return{...Ea(t||globalThis[Uc]),equals:oa,isNot:this.inverse,customTesters:ra(),utils:{...na(),diff:lr,stringify:xe,iterableEquality:ga,subsetEquality:va}}}};Oa.prototype[Symbol.for("chai/inspect")]=function(t){const e=xe(this,t.depth,{min:!0});return e.length<=t.truncate?e:`${this.toString()}{…}`};var ka=class extends Oa{constructor(t,e=!1){if(!la("String",t))throw new Error("Expected is not a string");super(t,e)}asymmetricMatch(t){const e=la("String",t)&&t.includes(this.sample);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},Aa=class extends Oa{asymmetricMatch(t){return null!=t}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},_a=class extends Oa{constructor(t,e=!1){super(t,e)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,e){return!!t&&(!!Object.prototype.hasOwnProperty.call(t,e)||this.hasProperty(this.getPrototype(t),e))}asymmetricMatch(t){if("object"!=typeof this.sample)throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let e=!0;const n=this.getMatcherContext();for(const r in this.sample)if(!this.hasProperty(t,r)||!oa(this.sample[r],t[r],n.customTesters)){e=!1;break}return this.inverse?!e:e}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},Ma=class extends Oa{constructor(t,e=!1){super(t,e)}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const e=this.getMatcherContext(),n=0===this.sample.length||Array.isArray(t)&&this.sample.every((n=>t.some((t=>oa(n,t,e.customTesters)))));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},Ia=class extends Oa{constructor(t){if(void 0===t)throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t)}fnNameFor(t){if(t.name)return t.name;const e=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return e?e[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?"string"==typeof t||t instanceof String:this.sample===Number?"number"==typeof t||t instanceof Number:this.sample===Function?"function"==typeof t||"function"==typeof t:this.sample===Boolean?"boolean"==typeof t||t instanceof Boolean:this.sample===BigInt?"bigint"==typeof t||t instanceof BigInt:this.sample===Symbol?"symbol"==typeof t||t instanceof Symbol:this.sample===Object?"object"==typeof t:t instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},Ca=class extends Oa{constructor(t,e=!1){if(!la("String",t)&&!la("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),e)}asymmetricMatch(t){const e=la("String",t)&&this.sample.test(t);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},Na=class extends Oa{constructor(t,n=2,r=!1){if(!la("Number",t))throw new Error("Expected is not a Number");if(!la("Number",n))throw new Error("Precision is not a Number");super(t),e(this,"precision"),this.inverse=r,this.precision=n}asymmetricMatch(t){if(!la("Number",t))return!1;let e=!1;return e=t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||(t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY||Math.abs(this.sample-t)<10**-this.precision/2),this.inverse?!e:e}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${t="digit",e=this.precision,`${e} ${t}${1===e?"":"s"}`})`].join(" ");var t,e}};function Pa(t,e,n){const r=t.flag(e,"negate")?"not.":"",o=`${t.flag(e,"_name")}(${n?"expected":""})`,i=t.flag(e,"promise");return`expect(actual)${i?`.${i}`:""}.${r}${o}`}function Ra(t,e,n,r){const o=t;if(o&&e instanceof Promise){e=e.finally((()=>{if(!o.promises)return;const t=o.promises.indexOf(e);-1!==t&&o.promises.splice(t,1)})),o.promises||(o.promises=[]),o.promises.push(e);let t=!1;return o.onFinished??(o.onFinished=[]),o.onFinished.push((()=>{var e;if(!t){const t=((null==(e=globalThis.__vitest_worker__)?void 0:e.onFilterStackTrace)||(t=>t||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ","Please remember to await the assertion.\n",t].join(""))}})),{then:(n,r)=>(t=!0,e.then(n,r)),catch:t=>e.catch(t),finally:t=>e.finally(t),[Symbol.toStringTag]:"Promise"}}return e}function Ba(t,e,n){return function(...r){var o;if("withTest"!==e&&t.flag(this,"_name",e),!t.flag(this,"soft"))return n.apply(this,r);const i=t.flag(this,"vitest-test");if(!i)throw new Error("expect.soft() can only be used inside a test");try{return n.apply(this,r)}catch(t){i.result||(i.result={state:"fail"}),i.result.state="fail",(o=i.result).errors||(o.errors=[]),i.result.errors.push(Tr(t))}}}function Da(t){const e=t%10,n=t%100;return 1===e&&11!==n?`${t}st`:2===e&&12!==n?`${t}nd`:3===e&&13!==n?`${t}rd`:`${t}th`}function Fa(t,e,n){return t.mock.calls&&(e+=p.gray(`\n\nReceived: \n\n${t.mock.calls.map(((e,r)=>{let o=p.bold(` ${Da(r+1)} ${t.getMockName()} call:\n\n`);return o+=n?lr(n,e,{omitAnnotationLines:!0}):xe(e).split("\n").map((t=>` ${t}`)).join("\n"),o+="\n",o})).join("\n")}`)),e+=p.gray(`\n\nNumber of calls: ${p.bold(t.mock.calls.length)}\n`)}var La=class extends Error{constructor(t,e,n){super(t),this.actual=e,this.expected=n}};function qa(t,e,n){return(r,o)=>{Object.entries(n).forEach((([n,r])=>{const i=Ba(o,n,(function(...t){const{state:n,isNot:o,obj:i}=function(t,e){const n=t._obj,r=Do.flag(t,"negate"),o=Do.flag(t,"promise")||"",i={...na(),diff:lr,stringify:xe,iterableEquality:ga,subsetEquality:va};return{state:{...Ea(e),customTesters:ra(),isNot:r,utils:i,promise:o,equals:oa,suppressedErrors:[],soft:Do.flag(t,"soft"),poll:Do.flag(t,"poll")},isNot:r,obj:n}}(this,e),s=r.call(n,i,...t);if(s&&"object"==typeof s&&s instanceof Promise)return s.then((({pass:t,message:e,actual:n,expected:r})=>{if(t&&o||!t&&!o)throw new La(e(),n,r)}));const{pass:c,message:a,actual:u,expected:l}=s;if(c&&o||!c&&!o)throw new La(a(),u,l)}));o.addMethod(globalThis[Wc].matchers,n,i),o.addMethod(t.Assertion.prototype,n,i);class s extends Oa{constructor(t=!1,...e){super(e,t)}asymmetricMatch(t){const{pass:n}=r.call(this.getMatcherContext(e),t,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?"not.":""}${n}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map((t=>xe(t))).join(", ")}>`}}const c=(...t)=>new s(!1,...t);Object.defineProperty(e,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(e.not,n,{configurable:!0,enumerable:!0,value:(...t)=>new s(!0,...t),writable:!0}),Object.defineProperty(globalThis[Hc],n,{configurable:!0,enumerable:!0,value:c,writable:!0})}))}}o(),o();function Ja(){const t=globalThis.__vitest_worker__;if(!t){throw new Error('Vitest failed to access its internal state.\n\nOne of the following is possible:\n- "vitest" is imported directly without running "vitest" command\n- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\n')}return t}function Wa(){const t=Ja();return t?.environment.name}function Ua(){return"undefined"!=typeof process&&!!process.send}async function Ha(){await function(){const{setTimeout:t}=sn();return new Promise((e=>t(e,0)))}();const t=Ja(),e=[];let n=0;for(const r of t.moduleCache.values())r.promise&&!r.evaluated&&e.push(r.promise),r.resolving&&n++;(e.length||n)&&(await Promise.allSettled(e),await Ha())}o();var Xa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function za(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o();var Va=",".charCodeAt(0),Ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ka=new Uint8Array(64),Za=new Uint8Array(128);for(let t=0;t<64;t++){const e=Ga.charCodeAt(t);Ka[t]=e,Za[e]=t}function Ya(t,e){let n=0,r=0,o=0;do{const e=t.next();o=Za[e],n|=(31&o)<<r,r+=5}while(32&o);const i=1&n;return n>>>=1,i&&(n=-2147483648|-n),e+n}function Qa(t,e){return!(t.pos>=e)&&t.peek()!==Va}var tu=class{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,r=e.indexOf(t,n);return-1===r?e.length:r}};function eu(t){t.sort(nu)}function nu(t,e){return t[0]-e[0]}var ru,ou=/^[\w+.-]+:\/\//,iu=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,su=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function cu(t){return t.startsWith("/")}function au(t){return/^[.?#]/.test(t)}function uu(t){const e=iu.exec(t);return lu(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function lu(t,e,n,r,o,i,s){return{scheme:t,user:e,host:n,port:r,path:o,query:i,hash:s,type:ru.Absolute}}function fu(t){if(function(t){return t.startsWith("//")}(t)){const e=uu("http:"+t);return e.scheme="",e.type=ru.SchemeRelative,e}if(cu(t)){const e=uu("http://foo.com"+t);return e.scheme="",e.host="",e.type=ru.AbsolutePath,e}if(function(t){return t.startsWith("file:")}(t))return function(t){const e=su.exec(t),n=e[2];return lu("file:","",e[1]||"","",cu(n)?n:"/"+n,e[3]||"",e[4]||"")}(t);if(function(t){return ou.test(t)}(t))return uu(t);const e=uu("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?ru.Query:t.startsWith("#")?ru.Hash:ru.RelativePath:ru.Empty,e}function hu(t,e){const n=e<=ru.RelativePath,r=t.path.split("/");let o=1,i=0,s=!1;for(let t=1;t<r.length;t++){const e=r[t];e?(s=!1,"."!==e&&(".."!==e?(r[o++]=e,i++):i?(s=!0,i--,o--):n&&(r[o++]=e))):s=!0}let c="";for(let t=1;t<o;t++)c+="/"+r[t];(!c||s&&!c.endsWith("/.."))&&(c+="/"),t.path=c}function pu(t,e){if(!t&&!e)return"";const n=fu(t);let r=n.type;if(e&&r!==ru.Absolute){const t=fu(e),o=t.type;switch(r){case ru.Empty:n.hash=t.hash;case ru.Hash:n.query=t.query;case ru.Query:case ru.RelativePath:!function(t,e){hu(e,e.type),"/"===t.path?t.path=e.path:t.path=function(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}(e.path)+t.path}(n,t);case ru.AbsolutePath:n.user=t.user,n.host=t.host,n.port=t.port;case ru.SchemeRelative:n.scheme=t.scheme}o>r&&(r=o)}hu(n,r);const o=n.query+n.hash;switch(r){case ru.Hash:case ru.Query:return o;case ru.RelativePath:{const r=n.path.slice(1);return r?au(e||t)&&!au(r)?"./"+r+o:r+o:o||"."}case ru.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}function du(t,e){return e&&!e.endsWith("/")&&(e+="/"),pu(t,e)}!function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"}(ru||(ru={}));function bu(t,e){for(let n=e;n<t.length;n++)if(!mu(t[n]))return n;return t.length}function mu(t){for(let e=1;e<t.length;e++)if(t[e][0]<t[e-1][0])return!1;return!0}function yu(t,e){return e||(t=t.slice()),t.sort(gu)}function gu(t,e){return t[0]-e[0]}var wu=!1;function vu(t,e,n){for(let r=n+1;r<t.length&&t[r][0]===e;n=r++);return n}function $u(t,e,n){for(let r=n-1;r>=0&&t[r][0]===e;n=r--);return n}function xu(t,e,n,r){const{lastKey:o,lastNeedle:i,lastIndex:s}=n;let c=0,a=t.length-1;if(r===o){if(e===i)return wu=-1!==s&&t[s][0]===e,s;e>=i?c=-1===s?0:s:a=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=function(t,e,n,r){for(;n<=r;){const o=n+(r-n>>1),i=t[o][0]-e;if(0===i)return wu=!0,o;i<0?n=o+1:r=o-1}return wu=!1,n-1}(t,e,c,a)}var Su=class{constructor(t,e){const n="string"==typeof t;if(!n&&t._decodedMemo)return t;const r=n?JSON.parse(t):t,{version:o,file:i,names:s,sourceRoot:c,sources:a,sourcesContent:u}=r;this.version=o,this.file=i,this.names=s||[],this.sourceRoot=c,this.sources=a,this.sourcesContent=u,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;const l=du(c||"",function(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}(e));this.resolvedSources=a.map((t=>du(t||"",l)));const{mappings:f}=r;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(t,e){const n=bu(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=bu(t,r+1))t[r]=yu(t[r],e);return t}(f,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function ju(t){var e;return(e=t)._decoded||(e._decoded=function(t){const{length:e}=t,n=new tu(t),r=[];let o=0,i=0,s=0,c=0,a=0;do{const t=n.indexOf(";"),e=[];let u=!0,l=0;for(o=0;n.pos<t;){let r;o=Ya(n,o),o<l&&(u=!1),l=o,Qa(n,t)?(i=Ya(n,i),s=Ya(n,s),c=Ya(n,c),Qa(n,t)?(a=Ya(n,a),r=[o,i,s,c,a]):r=[o,i,s,c]):r=[o],e.push(r),n.pos++}u||eu(e),r.push(e),n.pos=t+1}while(n.pos<=e);return r}(t._encoded))}function Eu(t,e){let{line:n,column:r,bias:o}=e;if(n--,n<0)throw new Error("`line` must be greater than 0 (lines start at line 1)");if(r<0)throw new Error("`column` must be greater than or equal to 0 (columns start at column 0)");const i=ju(t);if(n>=i.length)return Tu(null,null,null,null);const s=i[n],c=function(t,e,n,r,o){let i=xu(t,r,e,n);wu?i=(-1===o?vu:$u)(t,r,i):-1===o&&i++;return-1===i||i===t.length?-1:i}(s,t._decodedMemo,n,r,o||1);if(-1===c)return Tu(null,null,null,null);const a=s[c];if(1===a.length)return Tu(null,null,null,null);const{names:u,resolvedSources:l}=t;return Tu(l[a[1]],a[2]+1,a[3],5===a.length?u[a[4]]:null)}function Tu(t,e,n,r){return{source:t,line:e,column:n,name:r}}function Ou(t){return null!=t}function ku(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var Au=/^\s*at .*(?:\S:\d+|\(native\))/m,_u=/^(?:eval@)?(?:\[native code\])?$/,Mu=["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 Iu(t){if(!t.includes(":"))return[t];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!e)return[t];let n=e[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const t=new URL(n);t.searchParams.delete("import"),t.searchParams.delete("browserv"),n=t.pathname+t.hash+t.search}if(n.startsWith("/@fs/")){const t=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(t?5:4)}return[n,e[2]||void 0,e[3]||void 0]}function Cu(t,e={}){const{ignoreStackEntries:n=Mu}=e,r=Au.test(t)?function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(!Au.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[o,i,s]=Iu(r?r[1]:n);let c=r&&n||"",a=o&&["eval","<anonymous>"].includes(o)?void 0:o;return a&&i&&s?(c.startsWith("async ")&&(c=c.slice(6)),a.startsWith("file://")&&(a=a.slice(7)),a=a.startsWith("node:")||a.startsWith("internal:")?a:Ar(a),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"")),{method:c,file:a,line:Number.parseInt(i),column:Number.parseInt(s)}):null}(t))).filter(Ou)}(t):function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(_u.test(e))return null;if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,r=e.match(n),o=r&&r[1]?r[1]:void 0,[i,s,c]=Iu(e.replace(n,""));return i&&s&&c?{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(t))).filter(Ou)}(t);return r.map((t=>{var r;e.getUrlId&&(t.file=e.getUrlId(t.file));const o=null==(r=e.getSourceMap)?void 0:r.call(e,t.file);if(!o||"object"!=typeof o||!o.version)return Nu(n,t.file)?null:t;const i=new Su(o),{line:s,column:c,source:a,name:u}=Eu(i,t);let l=t.file;if(a){const e=t.file.startsWith("file://")?t.file:`file://${t.file}`,n=o.sourceRoot?new URL(o.sourceRoot,e):e;l=new URL(a,n).pathname}return Nu(n,l)?null:null!=s&&null!=c?{line:s,column:c,file:l,method:u||t.method}:t})).filter((t=>null!=t))}function Nu(t,e){return t.some((t=>e.match(t)))}try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&((r,o)=>{const[i,s]=t(r);return i===e?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`})}catch(t){}try{const t=n("util");!!t.inspect&&t.inspect.custom}catch(t){0}var Pu,Ru,{AsymmetricMatcher:Bu,DOMCollection:Du,DOMElement:Fu,Immutable:Lu,ReactElement:qu,ReactTestComponent:Ju}=Pt;function Wu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}!function(){return Ru?Pu:(Ru=1,h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,d=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,l=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,b=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,g=/[\t\v\f\ufeff\p{Zs}]+/uy,c=/\r?\n|[\r\u2028\u2029]/y,a=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,p=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,r=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,y=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,m=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(c.source),Pu=function*(w,{jsx:v=!1}={}){var $,x,S,j,E,T,O,k,A,_,M,I,C,N;for(({length:T}=w),j=0,E="",N=[{tag:"JS"}],$=[],M=0,I=!1;j<T;){switch((k=N[N.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===w[j]&&(y.test(E)||i.test(E))&&(h.lastIndex=j,O=h.exec(w))){j=h.lastIndex,E=O[0],I=!0,yield{type:"RegularExpressionLiteral",value:O[0],closed:void 0!==O[1]&&"\\"!==O[1]};continue}if(f.lastIndex=j,O=f.exec(w)){switch(C=O[0],A=f.lastIndex,_=C,C){case"(":"?NonExpressionParenKeyword"===E&&N.push({tag:"JSNonExpressionParen",nesting:M}),M++,I=!1;break;case")":M--,I=!0,"JSNonExpressionParen"===k.tag&&M===k.nesting&&(N.pop(),_="?NonExpressionParenEnd",I=!1);break;case"{":f.lastIndex=0,S=!m.test(E)&&(y.test(E)||i.test(E)),$.push(S),I=!1;break;case"}":switch(k.tag){case"InterpolationInTemplate":if($.length===k.nesting){b.lastIndex=j,O=b.exec(w),j=b.lastIndex,E=O[0],"${"===O[1]?(E="?InterpolationInTemplate",I=!1,yield{type:"TemplateMiddle",value:O[0]}):(N.pop(),I=!0,yield{type:"TemplateTail",value:O[0],closed:"`"===O[1]});continue}break;case"InterpolationInJSX":if($.length===k.nesting){N.pop(),j+=1,E="}",yield{type:"JSXPunctuator",value:"}"};continue}}_=(I=$.pop())?"?ExpressionBraceEnd":"}";break;case"]":I=!0;break;case"++":case"--":_=I?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(v&&(y.test(E)||i.test(E))){N.push({tag:"JSXTag"}),j+=1,E="<",yield{type:"JSXPunctuator",value:C};continue}I=!1;break;default:I=!1}j=A,E=_,yield{type:"Punctuator",value:C};continue}if(t.lastIndex=j,O=t.exec(w)){switch(j=t.lastIndex,_=O[0],O[0]){case"for":case"if":case"while":case"with":"."!==E&&"?."!==E&&(_="?NonExpressionParenKeyword")}E=_,I=!i.test(O[0]),yield{type:"#"===O[1]?"PrivateIdentifier":"IdentifierName",value:O[0]};continue}if(d.lastIndex=j,O=d.exec(w)){j=d.lastIndex,E=O[0],I=!0,yield{type:"StringLiteral",value:O[0],closed:void 0!==O[2]};continue}if(l.lastIndex=j,O=l.exec(w)){j=l.lastIndex,E=O[0],I=!0,yield{type:"NumericLiteral",value:O[0]};continue}if(b.lastIndex=j,O=b.exec(w)){j=b.lastIndex,E=O[0],"${"===O[1]?(E="?InterpolationInTemplate",N.push({tag:"InterpolationInTemplate",nesting:$.length}),I=!1,yield{type:"TemplateHead",value:O[0]}):(I=!0,yield{type:"NoSubstitutionTemplate",value:O[0],closed:"`"===O[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=j,O=n.exec(w)){switch(j=n.lastIndex,_=O[0],O[0]){case"<":N.push({tag:"JSXTag"});break;case">":N.pop(),"/"===E||"JSXTagEnd"===k.tag?(_="?JSX",I=!0):N.push({tag:"JSXChildren"});break;case"{":N.push({tag:"InterpolationInJSX",nesting:$.length}),_="?InterpolationInJSX",I=!1;break;case"/":"<"===E&&(N.pop(),"JSXChildren"===N[N.length-1].tag&&N.pop(),N.push({tag:"JSXTagEnd"}))}E=_,yield{type:"JSXPunctuator",value:O[0]};continue}if(e.lastIndex=j,O=e.exec(w)){j=e.lastIndex,E=O[0],yield{type:"JSXIdentifier",value:O[0]};continue}if(r.lastIndex=j,O=r.exec(w)){j=r.lastIndex,E=O[0],yield{type:"JSXString",value:O[0],closed:void 0!==O[2]};continue}break;case"JSXChildren":if(o.lastIndex=j,O=o.exec(w)){j=o.lastIndex,E=O[0],yield{type:"JSXText",value:O[0]};continue}switch(w[j]){case"<":N.push({tag:"JSXTag"}),j++,E="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":N.push({tag:"InterpolationInJSX",nesting:$.length}),j++,E="?InterpolationInJSX",I=!1,yield{type:"JSXPunctuator",value:"{"};continue}}g.lastIndex=j,(O=g.exec(w))?(j=g.lastIndex,yield{type:"WhiteSpace",value:O[0]}):(c.lastIndex=j,(O=c.exec(w))?(j=c.lastIndex,I=!1,s.test(E)&&(E="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:O[0]}):(a.lastIndex=j,(O=a.exec(w))?(j=a.lastIndex,u.test(O[0])&&(I=!1,s.test(E)&&(E="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:O[0],closed:void 0!==O[1]}):(p.lastIndex=j,(O=p.exec(w))?(j=p.lastIndex,I=!1,yield{type:"SingleLineComment",value:O[0]}):(j+=(x=String.fromCodePoint(w.codePointAt(j))).length,E=x,I=!1,yield{type:k.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:x}))))}});var t,e,n,r,o,i,s,c,a,u,l,f,h,p,d,b,m,y,g}();var Uu=["implements","interface","let","package","private","protected","public","static","yield"];new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),new Set(Uu);var Hu=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function Xu(t){return String(t)}Xu.open="",Xu.close="",function(t=!1){let e=function(t=!1){let e="undefined"!=typeof process?process:void 0,n=(null==e?void 0:e.env)||{},r=(null==e?void 0:e.argv)||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===(null==e?void 0:e.platform)||t&&"dumb"!==n.TERM||"CI"in n)||"undefined"!=typeof window&&!!window.chrome}(t),n=(t,e,n=t)=>{let r=r=>{let o=String(r),i=o.indexOf(e,t.length);return~i?t+((t,e,n,r)=>{let o="",i=0;do{o+=t.substring(i,r)+n,i=r+e.length,r=t.indexOf(e,i)}while(~r);return o+t.substring(i)})(o,e,n,i)+e:t+o+e};return r.open=t,r.close=e,r},r={isColorSupported:e},o=t=>`[${t}m`;for(let[t,i]of Hu)r[t]=e?n(o(i[0]),o(i[1]),i[2]):Xu}();var zu=/\r?\n/;function Vu(t,e,n){const r=t.split(zu),o=/\r\n/.test(t)?2:1;let i=0;if(e>r.length)return t.length;for(let t=0;t<e-1;t++)i+=r[t].length+o;return i+n}var Gu=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Ku(t,e,n){const r=function(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(zu),r=/\r\n/.test(t)?2:1;let o=0,i=0;for(;i<n.length;i++){const t=n[i].length+r;if(o+t>=e)break;o+=t}return i+1}(e,n),o=e.split(zu)[r-1].match(/^\s*/)[0]||"",i=o.includes("\t")?`${o}\t`:`${o} `,s=t.trim().replace(/\\/g,"\\\\").split(/\n/g),c="`";return s.length<=1?`${c}${s.join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}\n${s.map((t=>t?i+t:"")).join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\n${o}${c}`}var Zu="toMatchInlineSnapshot",Yu="toThrowErrorMatchingInlineSnapshot";var Qu=/(?: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 tl(t,e,n,r){const{code:o,index:i}=function(t,e){const n=e-Zu.length;if(t.slice(n,e)===Zu)return{code:t.slice(n),index:n};const r=e-Yu.length;return t.slice(e-r,e)===Yu?{code:t.slice(e-r),index:e-r}:{code:t.slice(e),index:e}}(t,n),s=Qu.exec(o),c=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==(null==c?void 0:c.index))return function(t,e,n,r){let o=t.slice(n);const i=Gu.exec(o);if(!i)return!1;o=o.slice(i.index);let s=function(t){let e=-1,n=null,r=0,o=0,i=null;for(;e<=t.length;){i=t[e],e++;const s=t[e];if(('"'===s||"'"===s||"`"===s)&&"\\"!==i&&(n===s?n=null:n||(n=s)),n||("("===s&&r++,")"===s&&o++),r&&o&&r===o)return e}return null}(o);if(null===s)return!1;s+=n+i.index;const c=function(t,e){let n=1,r=0;for(;n!==r&&e<t.length;){const o=t[e++];"{"===o?n++:"}"===o&&r++}return e}(t,n+i.index+i[0].length),a=`, ${Ku(r,t,n)}`;return c===s?e.appendLeft(s,a):e.overwrite(c,s,a),!0}(t,e,i,r);const a=s[1],u=i+s.index+s[0].length,l=Ku(r,t,i);if(")"===a)return e.appendRight(u-1,l),!0;const f=new RegExp(`(?:^|[^\\\\])${a}`).exec(t.slice(u));if(!f)return!1;const h=u+f.index+f[0].length;return e.overwrite(u-1,h,l),!0}var el=/^([^\S\n]*)\S/m;function nl(t){const e=t.match(el);if(!e||!e[1])return t;const n=e[1],r=t.split(/\n/g);if(r.length<=2)return t;if(""!==r[0].trim()||""!==r[r.length-1].trim())return t;for(let e=1;e<r.length-1;e++)if(""!==r[e]){if(0!==r[e].indexOf(n))return t;r[e]=r[e].substring(n.length)}return r[r.length-1]="",t=r.join("\n")}var rl,ol={exports:{}};var il=Wu(function(){if(rl)return ol.exports;rl=1;var t=function(t,e){var n,r,o=1,i=0,s=0,c=String.alphabet;function a(t,e,r){if(r){for(n=e;(r=a(t,n))<76&&r>65;)++n;return+t.slice(e-1,n)}return(r=c&&c.indexOf(t.charAt(e)))>-1?r+76:(r=t.charCodeAt(e)||0)<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63}if((t+="")!=(e+=""))for(;o;)if(r=a(t,i++),o=a(e,s++),r<76&&o<76&&r>66&&o>66&&(r=a(t,i,i),o=a(e,s,i=n),s=n),r!=o)return r<o?-1:1;return 0};try{ol.exports=t}catch(e){String.naturalCompare=t}return ol.exports}()),sl={serialize:(t,e,n,r,o,i)=>{const s=t.getMockName(),c="vi.fn()"===s?"":` ${s}`;let a="";if(0!==t.mock.calls.length){const s=n+e.indent;a=` {${e.spacingOuter}${s}"calls": ${i(t.mock.calls,e,s,r,o)}${e.min?", ":","}${e.spacingOuter}${s}"results": ${i(t.mock.results,e,s,r,o)}${e.min?"":","}${e.spacingOuter}${n}}`}return`[MockFunction${c}]${a}`},test:t=>t&&!!t._isMockFunction},{DOMCollection:cl,DOMElement:al,Immutable:ul,ReactElement:ll,ReactTestComponent:fl,AsymmetricMatcher:hl}=Pt,pl=[fl,ll,al,cl,ul,hl,sl];function dl(t){pl=[t].concat(pl)}function bl(t){if(!/ \d+$/.test(t))throw new Error("Snapshot keys must end with a number.");return t.replace(/ \d+$/,"")}function ml(t){return t.length>2&&t.startsWith("\n")&&t.endsWith("\n")?t.slice(1,-1):t}function yl(t){return`\`${function(t){return t.replace(/`|\\|\$\{/g,"\\$&")}(t)}\``}function gl(t){return t.replace(/\r\n|\r/g,"\n")}function wl(t){const e=function(){var e,n;const r=/^( +)\}\s+$/m.exec(t||""),o=null==(e=null==r?void 0:r[1])?void 0:e.length;if(o)return o;const i=/^\n( +)"/.exec(t||"");return(null==(n=null==i?void 0:i[1])?void 0:n.length)||0}();let n=null==t?void 0:t.trim();return e&&(n=null==n?void 0:n.replace(new RegExp(`^${" ".repeat(e)}`,"gm"),"").replace(/ +\}$/,"}")),n}function vl(t=[],e=[]){const n=Array.from(t);return e.forEach(((e,r)=>{const o=n[r];Array.isArray(t[r])?n[r]=vl(t[r],e):ku(o)?n[r]=$l(t[r],e):n[r]=e})),n}function $l(t,e){if(ku(t)&&ku(e)){const n={...t};return Object.keys(e).forEach((r=>{ku(e[r])&&!e[r].$$typeof?r in t?n[r]=$l(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Array.isArray(e[r])?n[r]=vl(t[r],e[r]):Object.assign(n,{[r]:e[r]})})),n}return Array.isArray(t)&&Array.isArray(e)?vl(t,e):t}var xl=class extends Map{constructor(t,e){super(e),this.defaultFn=t}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},Sl=class extends xl{constructor(){super((()=>0)),e(this,"_total")}valueOf(){return this._total=this.total()}increment(t){void 0!==this._total&&this._total++,this.set(t,this.get(t)+1)}total(){if(void 0!==this._total)return this._total;let t=0;for(const e of this.values())t+=e;return t}};function jl(t,e){return t.file===e.file&&t.column===e.column&&t.line===e.line}var El=class t{constructor(t,n,r,o){e(this,"_counters",new Sl),e(this,"_dirty"),e(this,"_updateSnapshot"),e(this,"_snapshotData"),e(this,"_initialData"),e(this,"_inlineSnapshots"),e(this,"_inlineSnapshotStacks"),e(this,"_testIdToKeys",new xl((()=>[]))),e(this,"_rawSnapshots"),e(this,"_uncheckedKeys"),e(this,"_snapshotFormat"),e(this,"_environment"),e(this,"_fileExists"),e(this,"expand"),e(this,"_added",new Sl),e(this,"_matched",new Sl),e(this,"_unmatched",new Sl),e(this,"_updated",new Sl),this.testFilePath=t,this.snapshotPath=n;const{data:i,dirty:s}=function(t,e){const n=e.updateSnapshot,r=Object.create(null);let o="",i=!1;if(null!=t)try{o=t,new Function("exports",o)(r)}catch{}return"all"!==n&&"new"!==n||!o||(i=!0),{data:r,dirty:i}}(r,o);this._fileExists=null!=r,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||!1,this._updateSnapshot=o.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...o.snapshotFormat},this._environment=o.snapshotEnvironment}get added(){return this._added}set added(t){this._added._total=t}get matched(){return this._matched}set matched(t){this._matched._total=t}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t}get updated(){return this._updated}set updated(t){this._updated._total=t}static async create(e,n){const r=await n.snapshotEnvironment.resolvePath(e),o=await n.snapshotEnvironment.readSnapshotFile(r);return new t(e,r,o,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach((e=>{/ \d+$| > /.test(e.slice(t.length))&&this._uncheckedKeys.delete(e)}))}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter((e=>e.testId!==t)),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter((e=>e.testId!==t));for(const e of this._testIdToKeys.get(t)){const t=bl(e),n=this._counters.get(t);n>0&&((e in this._snapshotData||e in this._initialData)&&(this._snapshotData[e]=this._initialData[e]),this._counters.set(t,n-1))}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t)}_inferInlineSnapshotStack(t){const e=t.findIndex((t=>t.method.match(/__VITEST_(RESOLVES|REJECTS)__/)));if(-1!==e)return t[e+3];const n=t.findIndex((t=>t.method.includes("__INLINE_SNAPSHOT__")));return-1!==n?t[n+2]:null}_addSnapshot(t,e,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({snapshot:e,testId:n.testId,...n.stack}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:e}):this._snapshotData[t]=e}async save(){const t=Object.keys(this._snapshotData).length,e=this._inlineSnapshots.length,n=this._rawSnapshots.length,r=!t&&!e&&!n,o={deleted:!1,saved:!1};return!this._dirty&&!this._uncheckedKeys.size||r?!t&&this._fileExists&&("all"===this._updateSnapshot&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),o.deleted=!0):(t&&(await async function(t,e,n){const r=Object.keys(e).sort(il).map((t=>`exports[${yl(t)}] = ${yl(gl(e[t]))};`)),o=`${t.getHeader()}\n\n${r.join("\n\n")}\n`,i=await t.readSnapshotFile(n);null!=i&&i===o||await t.saveSnapshotFile(n,o)}(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),e&&await async function(t,e){const n=(await import("./magic-string.es-TUA2PMWY.mjs")).default,r=new Set(e.map((t=>t.file)));await Promise.all(Array.from(r).map((async r=>{const o=e.filter((t=>t.file===r)),i=await t.readSnapshotFile(r),s=new n(i);for(const t of o)tl(i,s,Vu(i,t.line,t.column),t.snapshot);const c=s.toString();c!==i&&await t.saveSnapshotFile(r,c)})))}(this._environment,this._inlineSnapshots),n&&await async function(t,e){await Promise.all(e.map((async e=>{e.readonly||await t.saveSnapshotFile(e.file,e.snapshot)})))}(this._environment,this._rawSnapshots),o.saved=!0),o}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){"all"===this._updateSnapshot&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach((t=>delete this._snapshotData[t])),this._uncheckedKeys.clear())}match({testId:t,testName:e,received:n,key:r,inlineSnapshot:o,isInline:i,error:s,rawSnapshot:c}){var a,u;this._counters.increment(e);const l=this._counters.get(e);r||(r=function(t,e){return`${t} ${e}`}(e,l)),this._testIdToKeys.get(t).push(r),i&&void 0!==this._snapshotData[r]||this._uncheckedKeys.delete(r);let f=c&&"string"==typeof n?n:function(t,e=2,n={}){return gl(Nt(t,{escapeRegex:!0,indent:e,plugins:pl,printFunctionName:!1,...n}))}(n,void 0,this._snapshotFormat);var h;c||(f=(h=f).includes("\n")?`\n${h}\n`:h),c&&c.content&&c.content.match(/\r\n/)&&!f.match(/\r\n/)&&(c.content=gl(c.content));const p=i?o:c?c.content:this._snapshotData[r],d=c?p:wl(p),b=d===(c?f:wl(f)),m=void 0!==p,y=i||this._fileExists||c&&null!=c.content;let g;if(!b||i||c||(this._snapshotData[r]=f),i){const e=function(t,e={}){if(!t||null===(n=t)||"function"!=typeof n&&"object"!=typeof n)return[];var n;if(t.stacks)return t.stacks;let r=Cu(t.stack||t.stackStr||"",e);return e.frameFilter&&(r=r.filter((n=>!1!==e.frameFilter(t,n)))),t.stacks=r,r}(s||new Error("snapshot"),{ignoreStackEntries:[]}),n=this._inferInlineSnapshotStack(e);if(!n)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${JSON.stringify(e)}`);g=(null==(u=(a=this.environment).processStackTrace)?void 0:u.call(a,n))||n,g.column--;const r=this._inlineSnapshotStacks.filter((t=>jl(t,g)));if(r.length>0){this._inlineSnapshots=this._inlineSnapshots.filter((t=>!jl(t,g)));const t=r.find((t=>t.snapshot!==f));if(t)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:t.snapshot})}this._inlineSnapshotStacks.push({...g,testId:t,snapshot:f})}return m&&"all"===this._updateSnapshot||!(m&&y||"new"!==this._updateSnapshot&&"all"!==this._updateSnapshot)?("all"===this._updateSnapshot?b?this.matched.increment(t):(m?this.updated.increment(t):this.added.increment(t),this._addSnapshot(r,f,{stack:g,testId:t,rawSnapshot:c})):(this._addSnapshot(r,f,{stack:g,testId:t,rawSnapshot:c}),this.added.increment(t)),{actual:"",count:l,expected:"",key:r,pass:!0}):b?(this.matched.increment(t),{actual:"",count:l,expected:"",key:r,pass:!0}):(this.unmatched.increment(t),{actual:c?f:ml(f),count:l,expected:void 0!==d?c?d:ml(d):void 0,key:r,pass:!1})}async pack(){const t={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},e=this.getUncheckedCount(),n=this.getUncheckedKeys();e&&this.removeUncheckedKeys();const r=await this.save();return t.fileDeleted=r.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=r.deleted?0:e,t.uncheckedKeys=Array.from(n),t}};function Tl(t,e,n,r){const o=new Error(t);return Object.defineProperty(o,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(o,"expected",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(o,"diffOptions",{value:{expand:e}}),o}var Ol=class{constructor(t={}){e(this,"snapshotStateMap",new Map),this.options=t}async setup(t,e){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await El.create(t,e))}async finish(t){const e=this.getSnapshotState(t),n=await e.pack();return this.snapshotStateMap.delete(t),n}skipTest(t,e){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(e)}clearTest(t,e){this.getSnapshotState(t).clearTest(e)}getSnapshotState(t){const e=this.snapshotStateMap.get(t);if(!e)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return e}assert(t){var e,n;const{filepath:r,name:o,testId:i=o,message:s,isInline:c=!1,properties:a,inlineSnapshot:u,error:l,errorMessage:f,rawSnapshot:h}=t;let{received:p}=t;if(!r)throw new Error("Snapshot cannot be used outside of test");const d=this.getSnapshotState(r);if("object"==typeof a){if("object"!=typeof p||!p)throw new Error("Received value must be an object when the matcher has properties");try{if(!((null==(n=(e=this.options).isEqual)?void 0:n.call(e,p,a))??!1))throw Tl("Snapshot properties mismatched",d.expand,p,a);p=$l(p,a)}catch(t){throw t.message=f||"Snapshot mismatched",t}}const b=[o,...s?[s]:[]].join(" > "),{actual:m,expected:y,key:g,pass:w}=d.match({testId:i,testName:b,received:p,isInline:c,error:l,inlineSnapshot:u,rawSnapshot:h});if(!w)throw Tl(`Snapshot \`${g||"unknown"}\` mismatched`,d.expand,h?m:null==m?void 0:m.trim(),h?y:null==y?void 0:y.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:e,rawSnapshot:n}=t;if(null==n.content){if(!e)throw new Error("Snapshot cannot be used outside of test");const r=this.getSnapshotState(e);t.filepath||(t.filepath=e),n.file=await r.environment.resolveRawPath(e,n.file),n.content=await r.environment.readSnapshotFile(n.file)??void 0}return this.assert(t)}clear(){this.snapshotStateMap.clear()}};o();var kl=Date,Al=null,_l=class t extends kl{constructor(e,n,r,o,i,s,c){let a;switch(super(),arguments.length){case 0:a=null!==Al?new kl(Al.valueOf()):new kl;break;case 1:a=new kl(e);break;default:a=new kl(e,n,r=void 0===r?1:r,o=o||0,i=i||0,s=s||0,c=c||0)}return Object.setPrototypeOf(a,t.prototype),a}};_l.UTC=kl.UTC,_l.now=function(){return(new _l).valueOf()},_l.parse=function(t){return kl.parse(t)},_l.toString=function(){return kl.toString()};var Ml=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function Il(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}var Cl,Nl={exports:{}};var Pl,Rl,Bl=za((Cl||(Cl=1,Pl=Nl,function(){var t;t=function(t,e){var n=t.Assertion,r=n.prototype;function o(t,e){if(t===e)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof t||null===t)return t===e;if(t&&!e)return!1;if(Array.isArray(t)){if("number"!=typeof e.length)return!1;var n=Array.prototype.slice.call(e);return t.every((function(t){return n.some((function(e){return o(t,e)}))}))}return t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Object.keys(t).every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&null!==r&&null!==i?o(r,i):"function"==typeof r?r(i):i===r}))}n.addMethod("containSubset",(function(n){var i=e.flag(this,"object"),s=t.config.showDiff;r.assert.call(this,o(n,i),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",n,i,s)})),t.assert.containSubset=function(e,n,r){new t.Assertion(e,r).to.be.containSubset(n)}},Pl.exports=t}.call(Nl.exports)),Nl.exports));function Dl(){return Rl||(Rl=new Ol({isEqual:(t,e)=>oa(t,e,[ga,va])})),Rl}function Fl(t,e){if("function"!=typeof t){if(!e)throw new Error("expected must be a function, received "+typeof t);return t}try{t()}catch(t){return t}throw new Error("snapshot function didn't throw")}function Ll(t){return{filepath:t.file.filepath,name:Ir(t).slice(1).join(" > "),testId:t.id}}qc(((t,e)=>{e.addMethod(t.expect,"extend",((e,n)=>{qc(qa(t,e,n))}))})),qc(((t,e)=>{const{AssertionError:n}=t,r=ra();function o(n,r){const o=n=>{const o=Ba(e,n,r);e.addMethod(t.Assertion.prototype,n,o),e.addMethod(globalThis[Wc].matchers,n,o)};Array.isArray(n)?n.forEach((t=>o(t))):o(n)}function i(t){return function(t){if(!To(t._obj))throw new TypeError(`${e.inspect(t._obj)} is not a spy or a call to a spy!`)}(t),t._obj}function s(t,e){return t.length===e.length&&t.every(((t,n)=>oa(t,e[n],[...r,ga])))}function c(t,e,n){const r=t.mock.invocationCallOrder,o=e.mock.invocationCallOrder;return 0===r.length?!n:0!==o.length&&r[0]<o[0]}["throw","throws","Throw"].forEach((r=>{e.overwriteMethod(t.Assertion.prototype,r,(t=>function(...r){const o=e.flag(this,"promise"),i=e.flag(this,"object"),s=e.flag(this,"negate");if("rejects"===o)e.flag(this,"object",(()=>{throw i}));else if("resolves"===o&&"function"!=typeof i){if(s)return;{const t=e.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}t.apply(this,r)}))})),o("withTest",(function(t){return e.flag(this,"vitest-test",t),this})),o("toEqual",(function(t){const n=e.flag(this,"object"),o=oa(n,t,[...r,ga]);return this.assert(o,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,n)})),o("toStrictEqual",(function(t){const n=e.flag(this,"object"),o=oa(n,t,[...r,ga,$a,Sa,xa],!0);return this.assert(o,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",t,n)})),o("toBe",(function(t){const e=this._obj,n=Object.is(e,t);let o="";if(!n){if(oa(e,t,[...r,ga,$a,Sa,xa],!0))o="toStrictEqual";else{oa(e,t,[...r,ga])&&(o="toEqual")}}return this.assert(n,function(t,e="#{this}",n="#{exp}"){const r=`expected ${e} to be ${n} // Object.is equality`;return["toStrictEqual","toEqual"].includes(t)?`${r}\n\nIf it should pass with deep equality, replace "toBe" with "${t}"\n\nExpected: ${e}\nReceived: serializes to the same string\n`:r}(o),"expected #{this} not to be #{exp} // Object.is equality",t,e)})),o("toMatchObject",(function(t){const o=this._obj,i=oa(o,t,[...r,ga,va]),s=e.flag(this,"negate"),{subset:c,stripped:a}=function(t,e,n){let r=0;const o=(t=new WeakMap)=>(e,i)=>{if(Array.isArray(e)){if(Array.isArray(i)&&i.length===e.length)return i.map(((n,r)=>o(t)(e[r],n)))}else{if(e instanceof Date)return e;if(Ae(e)&&Ae(i)){if(oa(e,i,[...n,ga,va]))return i;const s={};t.set(e,s),"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&Object.defineProperty(s,"constructor",{enumerable:!1,value:e.constructor});for(const n of ja(e))wa(i,n)?s[n]=t.has(e[n])?t.get(e[n]):o(t)(e[n],i[n]):t.has(e[n])||(r+=1,Ae(e[n])&&(r+=ja(e[n]).length),o(t)(e[n],i[n]));if(ja(s).length>0)return s}}return e};return{subset:o()(t,e),stripped:r}}(o,t,r);if(i&&s||!i&&!s){const r=e.getMessage(this,[i,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",t,c,!1]);throw new n(0===a?r:`${r}\n(${a} matching ${1===a?"property":"properties"} omitted from actual)`,{showDiff:!0,expected:t,actual:c})}})),o("toMatch",(function(t){const e=this._obj;if("string"!=typeof e)throw new TypeError(".toMatch() expects to receive a string, but got "+typeof e);return this.assert("string"==typeof t?e.includes(t):e.match(t),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",t,e)})),o("toContain",(function(t){const n=this._obj;if("undefined"!=typeof Node&&n instanceof Node){if(!(t instanceof Node))throw new TypeError("toContain() expected a DOM node as the argument, but got "+typeof t);return this.assert(n.contains(t),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",t,n)}if("undefined"!=typeof DOMTokenList&&n instanceof DOMTokenList){Oe(t,"class name",["string"]);const r=e.flag(this,"negate")?n.value.replace(t,"").trim():`${n.value} ${t}`;return this.assert(n.contains(t),`expected "${n.value}" to contain "${t}"`,`expected "${n.value}" not to contain "${t}"`,r,n.value)}return"string"==typeof n&&"string"==typeof t?this.assert(n.includes(t),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",t,n):(null!=n&&"string"!=typeof n&&e.flag(this,"object",Array.from(n)),this.contain(t))})),o("toContainEqual",(function(t){const n=e.flag(this,"object"),o=Array.from(n).findIndex((e=>oa(e,t,r)));this.assert(-1!==o,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",t)})),o("toBeTruthy",(function(){const t=e.flag(this,"object");this.assert(Boolean(t),"expected #{this} to be truthy","expected #{this} to not be truthy",!0,t)})),o("toBeFalsy",(function(){const t=e.flag(this,"object");this.assert(!t,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,t)})),o("toBeGreaterThan",(function(t){const e=this._obj;return Oe(e,"actual",["number","bigint"]),Oe(t,"expected",["number","bigint"]),this.assert(e>t,`expected ${e} to be greater than ${t}`,`expected ${e} to be not greater than ${t}`,t,e,!1)})),o("toBeGreaterThanOrEqual",(function(t){const e=this._obj;return Oe(e,"actual",["number","bigint"]),Oe(t,"expected",["number","bigint"]),this.assert(e>=t,`expected ${e} to be greater than or equal to ${t}`,`expected ${e} to be not greater than or equal to ${t}`,t,e,!1)})),o("toBeLessThan",(function(t){const e=this._obj;return Oe(e,"actual",["number","bigint"]),Oe(t,"expected",["number","bigint"]),this.assert(e<t,`expected ${e} to be less than ${t}`,`expected ${e} to be not less than ${t}`,t,e,!1)})),o("toBeLessThanOrEqual",(function(t){const e=this._obj;return Oe(e,"actual",["number","bigint"]),Oe(t,"expected",["number","bigint"]),this.assert(e<=t,`expected ${e} to be less than or equal to ${t}`,`expected ${e} to be not less than or equal to ${t}`,t,e,!1)})),o("toBeNaN",(function(){const t=e.flag(this,"object");this.assert(Number.isNaN(t),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,t)})),o("toBeUndefined",(function(){const t=e.flag(this,"object");this.assert(void 0===t,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,t)})),o("toBeNull",(function(){const t=e.flag(this,"object");this.assert(null===t,"expected #{this} to be null","expected #{this} not to be null",null,t)})),o("toBeDefined",(function(){const t=e.flag(this,"object");this.assert(void 0!==t,"expected #{this} to be defined","expected #{this} to be undefined",t)})),o("toBeTypeOf",(function(t){const e=typeof this._obj,n=t===e;return this.assert(n,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",t,e)})),o("toBeInstanceOf",(function(t){return this.instanceOf(t)})),o("toHaveLength",(function(t){return this.have.length(t)})),o("toHaveProperty",(function(...t){Array.isArray(t[0])&&(t[0]=t[0].map((t=>String(t).replace(/([.[\]])/g,"\\$1"))).join("."));const n=this._obj,[o,i]=t,{value:s,exists:c}=Object.prototype.hasOwnProperty.call(n,o)?{value:n[o],exists:!0}:e.getPathInfo(n,o),a=c&&(1===t.length||oa(i,s,r)),u=1===t.length?"":` with value ${e.objDisplay(i)}`;return this.assert(a,`expected #{this} to have property "${o}"${u}`,`expected #{this} to not have property "${o}"${u}`,i,c?s:void 0)})),o("toBeCloseTo",(function(t,e=2){const n=this._obj;let r=!1,o=0,i=0;return t===Number.POSITIVE_INFINITY&&n===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&n===Number.NEGATIVE_INFINITY?r=!0:(o=10**-e/2,i=Math.abs(n-t),r=i<o),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${i}, but expected ${o}`,`expected #{this} to not be close to #{exp}, received difference is ${i}, but expected ${o}`,t,n,!1)})),o(["toHaveBeenCalledTimes","toBeCalledTimes"],(function(t){const e=i(this),n=e.getMockName(),r=e.mock.calls.length;return this.assert(r===t,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,t,r,!1)})),o("toHaveBeenCalledOnce",(function(){const t=i(this),e=t.getMockName(),n=t.mock.calls.length;return this.assert(1===n,`expected "${e}" to be called once, but got ${n} times`,`expected "${e}" to not be called once`,1,n,!1)})),o(["toHaveBeenCalled","toBeCalled"],(function(){const t=i(this),r=t.getMockName(),o=t.mock.calls.length,s=o>0,c=e.flag(this,"negate");let a=e.getMessage(this,[s,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${o} times`,!0,s]);if(s&&c&&(a=Fa(t,a)),s&&c||!s&&!c)throw new n(a)})),o(["toHaveBeenCalledWith","toBeCalledWith"],(function(...t){const r=i(this),o=r.getMockName(),c=r.mock.calls.some((e=>s(e,t))),a=e.flag(this,"negate"),u=e.getMessage(this,[c,`expected "${o}" to be called with arguments: #{exp}`,`expected "${o}" to not be called with arguments: #{exp}`,t]);if(c&&a||!c&&!a)throw new n(Fa(r,u,t))})),o("toHaveBeenCalledExactlyOnceWith",(function(...t){const r=i(this),o=r.getMockName(),c=r.mock.calls.length,a=r.mock.calls.some((e=>s(e,t)))&&1===c,u=e.flag(this,"negate"),l=e.getMessage(this,[a,`expected "${o}" to be called once with arguments: #{exp}`,`expected "${o}" to not be called once with arguments: #{exp}`,t]);if(a&&u||!a&&!u)throw new n(Fa(r,l,t))})),o(["toHaveBeenNthCalledWith","nthCalledWith"],(function(t,...e){const n=i(this),r=n.getMockName(),o=n.mock.calls[t-1],c=n.mock.calls.length,a=t<=c;this.assert(o&&s(o,e),`expected ${Da(t)} "${r}" call to have been called with #{exp}${a?"":`, but called only ${c} times`}`,`expected ${Da(t)} "${r}" call to not have been called with #{exp}`,e,o,a)})),o(["toHaveBeenLastCalledWith","lastCalledWith"],(function(...t){const e=i(this),n=e.getMockName(),r=e.mock.calls[e.mock.calls.length-1];this.assert(r&&s(r,t),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,t,r)})),o(["toHaveBeenCalledBefore"],(function(t,n=!0){const r=i(this);if(!To(t))throw new TypeError(`${e.inspect(t)} is not a spy or a call to a spy`);this.assert(c(r,t,n),`expected "${r.getMockName()}" to have been called before "${t.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${t.getMockName()}"`,t,r)})),o(["toHaveBeenCalledAfter"],(function(t,n=!0){const r=i(this);if(!To(t))throw new TypeError(`${e.inspect(t)} is not a spy or a call to a spy`);this.assert(c(t,r,n),`expected "${r.getMockName()}" to have been called after "${t.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${t.getMockName()}"`,t,r)})),o(["toThrow","toThrowError"],(function(t){if("string"==typeof t||void 0===t||t instanceof RegExp)return this.throws(""===t?/^$/:t);const o=this._obj,i=e.flag(this,"promise"),s=e.flag(this,"negate");let c=null;if("rejects"===i)c=o;else{if("resolves"===i&&"function"!=typeof o){if(s)return;{const t=e.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}{let t=!1;try{o()}catch(e){t=!0,c=e}if(!t&&!s){const t=e.flag(this,"message")||"expected function to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}}if("function"==typeof t){const e=t.name||t.prototype.constructor.name;return this.assert(c&&c instanceof t,`expected error to be instance of ${e}`,`expected error not to be instance of ${e}`,t,c)}if(t instanceof Error){const e=oa(c,t,[...r,ga]);return this.assert(e,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",t,c)}if("object"==typeof t&&"asymmetricMatch"in t&&"function"==typeof t.asymmetricMatch){const e=t;return this.assert(c&&e.asymmetricMatch(c),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",e,c)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof t}"`)})),[{name:"toHaveResolved",condition:t=>t.mock.settledResults.length>0&&t.mock.settledResults.some((({type:t})=>"fulfilled"===t)),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:t=>t.mock.calls.length>0&&t.mock.results.some((({type:t})=>"throw"!==t)),action:"called"}].forEach((({name:t,condition:e,action:n})=>{o(t,(function(){const t=i(this),r=t.getMockName(),o=e(t);this.assert(o,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,o,!o,!1)}))})),[{name:"toHaveResolvedTimes",condition:(t,e)=>t.mock.settledResults.reduce(((t,{type:e})=>"fulfilled"===e?++t:t),0)===e,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(t,e)=>t.mock.results.reduce(((t,{type:e})=>"throw"===e?t:++t),0)===e,action:"called"}].forEach((({name:t,condition:e,action:n})=>{o(t,(function(t){const r=i(this),o=r.getMockName(),s=e(r,t);this.assert(s,`expected "${o}" to be successfully ${n} ${t} times`,`expected "${o}" to not be successfully ${n} ${t} times`,`expected resolved times: ${t}`,`received resolved times: ${s}`,!1)}))})),[{name:"toHaveResolvedWith",condition:(t,e)=>t.mock.settledResults.some((({type:t,value:n})=>"fulfilled"===t&&oa(e,n))),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(t,e)=>t.mock.results.some((({type:t,value:n})=>"return"===t&&oa(e,n))),action:"return"}].forEach((({name:t,condition:r,action:s})=>{o(t,(function(t){const o=i(this),c=r(o,t),a=e.flag(this,"negate");if(c&&a||!c&&!a){const r=o.getMockName(),i=e.getMessage(this,[c,`expected "${r}" to ${s} with: #{exp} at least once`,`expected "${r}" to not ${s} with: #{exp}`,t]),a="return"===s?o.mock.results:o.mock.settledResults;throw new n(function(t,e,n,r){return n+=p.gray(`\n\nReceived: \n\n${e.map(((e,n)=>{let o=p.bold(` ${Da(n+1)} ${t.getMockName()} call return:\n\n`);return o+=r?lr(r,e.value,{omitAnnotationLines:!0}):xe(e).split("\n").map((t=>` ${t}`)).join("\n"),o+="\n",o})).join("\n")}`),n+=p.gray(`\n\nNumber of calls: ${p.bold(t.mock.calls.length)}\n`),n}(o,a,i,t))}}))})),[{name:"toHaveLastResolvedWith",condition:(t,e)=>{const n=t.mock.settledResults[t.mock.settledResults.length-1];return n&&"fulfilled"===n.type&&oa(n.value,e)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(t,e)=>{const n=t.mock.results[t.mock.results.length-1];return n&&"return"===n.type&&oa(n.value,e)},action:"return"}].forEach((({name:t,condition:e,action:n})=>{o(t,(function(t){const r=i(this),o="return"===n?r.mock.results:r.mock.settledResults,s=o[o.length-1],c=r.getMockName();this.assert(e(r,t),`expected last "${c}" call to ${n} #{exp}`,`expected last "${c}" call to not ${n} #{exp}`,t,null==s?void 0:s.value)}))})),[{name:"toHaveNthResolvedWith",condition:(t,e,n)=>{const r=t.mock.settledResults[e-1];return r&&"fulfilled"===r.type&&oa(r.value,n)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(t,e,n)=>{const r=t.mock.results[e-1];return r&&"return"===r.type&&oa(r.value,n)},action:"return"}].forEach((({name:t,condition:e,action:n})=>{o(t,(function(t,r){const o=i(this),s=o.getMockName(),c=("return"===n?o.mock.results:o.mock.settledResults)[t-1],a=`${Da(t)} call`;this.assert(e(o,t,r),`expected ${a} "${s}" call to ${n} #{exp}`,`expected ${a} "${s}" call to not ${n} #{exp}`,r,null==c?void 0:c.value)}))})),o("withContext",(function(t){for(const n in t)e.flag(this,n,t[n]);return this})),e.addProperty(t.Assertion.prototype,"resolves",(function(){const r=new Error("resolves");e.flag(this,"promise","resolves"),e.flag(this,"error",r);const o=e.flag(this,"vitest-test"),i=e.flag(this,"object");if(e.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if("function"!=typeof(null==i?void 0:i.then))throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof i}'.`);const s=new Proxy(this,{get:(c,a,u)=>{const l=Reflect.get(c,a,u);return"function"!=typeof l?l instanceof t.Assertion?s:l:(...t)=>{e.flag(this,"_name",a);const s=i.then((n=>(e.flag(this,"object",n),l.call(this,...t))),(t=>{const o=new n(`promise rejected "${e.inspect(t)}" instead of resolving`,{showDiff:!1});throw o.cause=t,o.stack=r.stack.replace(r.message,o.message),o}));return Ra(o,s,Pa(e,this,!!t.length),r)}}});return s})),e.addProperty(t.Assertion.prototype,"rejects",(function(){const r=new Error("rejects");e.flag(this,"promise","rejects"),e.flag(this,"error",r);const o=e.flag(this,"vitest-test"),i=e.flag(this,"object"),s="function"==typeof i?i():i;if(e.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if("function"!=typeof(null==s?void 0:s.then))throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof s}'.`);const c=new Proxy(this,{get:(i,a,u)=>{const l=Reflect.get(i,a,u);return"function"!=typeof l?l instanceof t.Assertion?c:l:(...t)=>{e.flag(this,"_name",a);const i=s.then((t=>{const o=new n(`promise resolved "${e.inspect(t)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:t});throw o.stack=r.stack.replace(r.message,o.message),o}),(n=>(e.flag(this,"object",n),l.call(this,...t))));return Ra(o,i,Pa(e,this,!!t.length),r)}}});return c}))})),qc(Bl),qc(((t,e)=>{function n(t,n){const r=e.flag(n,"vitest-test");if(!r)throw new Error(`'${t}' cannot be used without test context`);return r}for(const r of["matchSnapshot","toMatchSnapshot"])e.addMethod(t.Assertion.prototype,r,(function(t,o){e.flag(this,"_name",r);if(e.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);const i=e.flag(this,"object"),s=n(r,this);"string"==typeof t&&void 0===o&&(o=t,t=void 0);const c=e.flag(this,"message");Dl().assert({received:i,message:o,isInline:!1,properties:t,errorMessage:c,...Ll(s)})}));e.addMethod(t.Assertion.prototype,"toMatchFileSnapshot",(function(t,r){e.flag(this,"_name","toMatchFileSnapshot");if(e.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const o=new Error("resolves"),i=e.flag(this,"object"),s=n("toMatchFileSnapshot",this),c=e.flag(this,"message");return function(t,e,n,r){const o=t;if(o&&e instanceof Promise){e=e.finally((()=>{if(!o.promises)return;const t=o.promises.indexOf(e);-1!==t&&o.promises.splice(t,1)})),o.promises||(o.promises=[]),o.promises.push(e);let t=!1;return o.onFinished??=[],o.onFinished.push((()=>{if(!t){const t=(globalThis.__vitest_worker__?.onFilterStackTrace||(t=>t||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ","Please remember to await the assertion.\n",t].join(""))}})),{then:(n,r)=>(t=!0,e.then(n,r)),catch:t=>e.catch(t),finally:t=>e.finally(t),[Symbol.toStringTag]:"Promise"}}return e}(s,Dl().assertRaw({received:i,message:r,isInline:!1,rawSnapshot:{file:t},errorMessage:c,...Ll(s)}),function(t,e){const n=t.flag(e,"negate")?"not.":"",r=`${t.flag(e,"_name")}(expected)`,o=t.flag(e,"promise");return`expect(actual)${o?`.${o}`:""}.${n}${r}`}(e,this),o)})),e.addMethod(t.Assertion.prototype,"toMatchInlineSnapshot",(function(t,r,o){e.flag(this,"_name","toMatchInlineSnapshot");if(e.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const i=n("toMatchInlineSnapshot",this);if(i.each||i.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const s=e.flag(this,"object"),c=e.flag(this,"error");"string"==typeof t&&(o=r,r=t,t=void 0),r&&(r=nl(r));const a=e.flag(this,"message");Dl().assert({received:s,message:o,isInline:!0,properties:t,inlineSnapshot:r,error:c,errorMessage:a,...Ll(i)})})),e.addMethod(t.Assertion.prototype,"toThrowErrorMatchingSnapshot",(function(t){e.flag(this,"_name","toThrowErrorMatchingSnapshot");if(e.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const r=e.flag(this,"object"),o=n("toThrowErrorMatchingSnapshot",this),i=e.flag(this,"promise"),s=e.flag(this,"message");Dl().assert({received:Fl(r,i),message:t,errorMessage:s,...Ll(o)})})),e.addMethod(t.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",(function(t,r){if(e.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const o=n("toThrowErrorMatchingInlineSnapshot",this);if(o.each||o.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const i=e.flag(this,"object"),s=e.flag(this,"error"),c=e.flag(this,"promise"),a=e.flag(this,"message");t&&(t=nl(t)),Dl().assert({received:Fl(i,c),message:r,inlineSnapshot:t,isInline:!0,error:s,errorMessage:a,...Ll(o)})})),e.addMethod(t.expect,"addSnapshotSerializer",dl)})),qc(((t,e)=>{e.addMethod(t.expect,"anything",(()=>new Aa)),e.addMethod(t.expect,"any",(t=>new Ia(t))),e.addMethod(t.expect,"stringContaining",(t=>new ka(t))),e.addMethod(t.expect,"objectContaining",(t=>new _a(t))),e.addMethod(t.expect,"arrayContaining",(t=>new Ma(t))),e.addMethod(t.expect,"stringMatching",(t=>new Ca(t))),e.addMethod(t.expect,"closeTo",((t,e)=>new Na(t,e))),t.expect.not={stringContaining:t=>new ka(t,!0),objectContaining:t=>new _a(t,!0),arrayContaining:t=>new Ma(t,!0),stringMatching:t=>new Ca(t,!0),closeTo:(t,e)=>new Na(t,e,!0)}}));var ql=function(t){const e=(n,r)=>{const{assertionCalls:o}=Ea(e);Ta({assertionCalls:o+1},e);const i=Nc(n,r),s=t||void 0;return s?i.withTest(s):i};Object.assign(e,Nc),Object.assign(e,globalThis[Hc]),e.getState=()=>Ea(e),e.setState=t=>Ta(t,e);const n=Ea(globalThis[Uc])||{};return Ta({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:Wa(),get testPath(){return Ja().filepath},currentTestName:t?Cr(t):n.currentTestName},e),e.extend=t=>Nc.extend(e,t),e.addEqualityTesters=t=>function(t){if(!Array.isArray(t))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${_e(t)}"`);globalThis[Wc].customEqualityTesters.push(...t)}(t),e.soft=(...t)=>e(...t).withContext({soft:!0}),e.poll=function(t){return function(e,n={}){const r=Ja(),o=r.config.expect?.poll??{},{interval:i=o.interval??50,timeout:s=o.timeout??1e3,message:c}=n,a=t(null,c).withContext({poll:!0});e=e.bind(a);const u=Do.flag(a,"vitest-test");if(!u)throw new Error("expect.poll() must be called inside a test");const l=new Proxy(a,{get(t,n,r){const o=Reflect.get(t,n,r);if("function"!=typeof o)return o instanceof Os?l:o;if("assert"===n)return o;if("string"==typeof n&&Ml.includes(n))throw new SyntaxError(`expect.poll() is not supported in combination with .${n}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...t){const r=new Error("STACK_TRACE_ERROR"),c=()=>new Promise(((c,u)=>{let l,f,h;const{setTimeout:p,clearTimeout:d}=sn(),b=async()=>{try{Do.flag(a,"_name",n);const r=await e();Do.flag(a,"object",r),c(await o.call(a,...t)),d(l),d(f)}catch(t){h=t,Do.flag(a,"_isLastPollAttempt")||(l=p(b,i))}};f=p((()=>{d(l),Do.flag(a,"_isLastPollAttempt",!0);const t=t=>{u(Il(new Error("Matcher did not succeed in time.",{cause:t}),r))};b().then((()=>t(h))).catch((e=>t(e)))}),s),b()}));let l,f=!1;return u.onFinished??=[],u.onFinished.push((()=>{if(!f){const t=Do.flag(a,"negate")?"not.":"",e=`expect.${Do.flag(a,"_poll.element")?"element(locator)":"poll(assertion)"}.${t}${String(n)}()`;throw Il(new Error(`${e} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${e}\n`),r)}})),{then:(t,e)=>(f=!0,(l||=c()).then(t,e)),catch:t=>(l||=c()).catch(t),finally:t=>(l||=c()).finally(t),[Symbol.toStringTag]:"Promise"}}}});return l}}(e),e.unreachable=t=>{Fc.fail(`expected${t?` "${t}" `:" "}not to be reached`)},Do.addMethod(e,"assertions",(function t(n){const r=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(r(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r})})),Do.addMethod(e,"hasAssertions",(function t(){const n=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(n,t),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})})),e.extend(Xc),e}();Object.defineProperty(globalThis,Uc,{value:ql,writable:!0,configurable:!0});var Jl,Wl,Ul,Hl,Xl,zl,Vl,Gl,Kl,Zl,Yl,Ql,tf={};function ef(){if(zl)return Xl;zl=1;var t=Function.call,e=function(){if(Hl)return Ul;let t;Hl=1;try{t=!1}catch(e){t=!0}return Ul=t}(),n=["size","caller","callee","arguments"];return e&&n.push("__proto__"),Xl=function(e){return Object.getOwnPropertyNames(e).reduce((function(r,o){return n.includes(o)||"function"!=typeof e[o]||(r[o]=t.bind(e[o])),r}),Object.create(null))}}function nf(){if(Gl)return Vl;Gl=1;var t=ef();return Vl=t(Array.prototype)}function rf(){if(Zl)return Kl;Zl=1;var t=nf().every;function e(t,e,n,r){var o=!0;return n!==r.length-1&&(o=e.calledBefore(r[n+1])),!(!function(t,e){return void 0===t[e.id]&&(t[e.id]=0),t[e.id]<e.callCount}(t,e)||!o)&&(t[e.id]+=1,!0)}return Kl=function(n){return t(arguments.length>1?arguments:n,e.bind(null,{}))},Kl}function of(){if(Ql)return Yl;return Ql=1,Yl=function(t){return t.constructor&&t.constructor.name||null}}var sf,cf,af,uf,lf,ff,hf,pf,df,bf,mf,yf,gf,wf,vf,$f,xf,Sf,jf,Ef={};function Tf(){if(hf)return ff;hf=1;var t=nf().sort,e=nf().slice;function n(t,e){var n=t.getCall(0),r=e.getCall(0);return(n&&n.callId||-1)<(r&&r.callId||-1)?-1:1}return ff=function(r){return t(e(r),n)}}function Of(){if(df)return pf;df=1;var t=ef();return pf=t(Function.prototype)}function kf(){if(mf)return bf;mf=1;var t=ef();return bf=t(Map.prototype)}function Af(){if(gf)return yf;gf=1;var t=ef();return yf=t(Object.prototype)}function _f(){if(vf)return wf;vf=1;var t=ef();return wf=t(Set.prototype)}function Mf(){if(xf)return $f;xf=1;var t=ef();return $f=t(String.prototype)}var If,Cf,Nf,Pf,Rf,Bf,Df,Ff,Lf={exports:{}};function qf(){return If?Lf.exports:(If=1,Lf.exports=function(){var t="function"==typeof Promise,e="object"==typeof self?self:Xa,n="undefined"!=typeof Symbol,r="undefined"!=typeof Map,o="undefined"!=typeof Set,i="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,a=n&&void 0!==Symbol.iterator,u=n&&void 0!==Symbol.toStringTag,l=o&&"function"==typeof Set.prototype.entries,f=r&&"function"==typeof Map.prototype.entries,h=l&&Object.getPrototypeOf((new Set).entries()),p=f&&Object.getPrototypeOf((new Map).entries()),d=a&&"function"==typeof Array.prototype[Symbol.iterator],b=d&&Object.getPrototypeOf([][Symbol.iterator]()),m=a&&"function"==typeof String.prototype[Symbol.iterator],y=m&&Object.getPrototypeOf(""[Symbol.iterator]()),g=8,w=-1;function v(n){var a=typeof n;if("object"!==a)return a;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===u||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var l=u&&n[Symbol.toStringTag];if("string"==typeof l)return l;var f=Object.getPrototypeOf(n);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":t&&f===Promise.prototype?"Promise":o&&f===Set.prototype?"Set":r&&f===Map.prototype?"Map":s&&f===WeakSet.prototype?"WeakSet":i&&f===WeakMap.prototype?"WeakMap":c&&f===DataView.prototype?"DataView":r&&f===p?"Map Iterator":o&&f===h?"Set Iterator":d&&f===b?"Array Iterator":m&&f===y?"String Iterator":null===f?"Object":Object.prototype.toString.call(n).slice(g,w)}return v}())}function Jf(){if(Nf)return Cf;Nf=1;var t=qf();return Cf=function(e){return t(e).toLowerCase()}}function Wf(){if(Rf)return Pf;return Rf=1,Pf=function(t){return t&&t.toString?t.toString():String(t)}}var Uf=function(){if(Ff)return tf;Ff=1;const t=function(){return Df||(Df=1,Bf={global:Wl?Jl:(Wl=1,e=void 0!==Xa?Xa:"undefined"!=typeof window?window:self,Jl=e),calledInOrder:rf(),className:of(),deprecated:(sf||(sf=1,(t=Ef).wrap=function(e,n){var r=function(){return t.printWarning(n),e.apply(this,arguments)};return e.prototype&&(r.prototype=e.prototype),r},t.defaultMsg=function(t,e){return`${t}.${e} is deprecated and will be removed from the public API in a future version of ${t}.`},t.printWarning=function(t){"object"==typeof process&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t)}),Ef),every:(af||(af=1,cf=function(t,e){var n=!0;try{t.forEach((function(){if(!e.apply(this,arguments))throw new Error}))}catch(t){n=!1}return n}),cf),functionName:lf?uf:(lf=1,uf=function(t){if(!t)return"";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch(t){return""}}),orderByFirstCall:Tf(),prototypes:jf?Sf:(jf=1,Sf={array:nf(),function:Of(),map:kf(),object:Af(),set:_f(),string:Mf()}),typeOf:Jf(),valueToString:Wf()}),Bf;var t,e}().global;let e,n;if("undefined"!=typeof __vitest_required__){try{e=__vitest_required__.timers}catch(t){}try{n=__vitest_required__.timersPromises}catch(t){}}function r(o){const i=Math.pow(2,31)-1,s=1e12,c=function(){},a=function(){return[]},u={};let l,f=!1;o.setTimeout&&(u.setTimeout=!0,l=o.setTimeout(c,0),f="object"==typeof l),u.clearTimeout=Boolean(o.clearTimeout),u.setInterval=Boolean(o.setInterval),u.clearInterval=Boolean(o.clearInterval),u.hrtime=o.process&&"function"==typeof o.process.hrtime,u.hrtimeBigint=u.hrtime&&"function"==typeof o.process.hrtime.bigint,u.nextTick=o.process&&"function"==typeof o.process.nextTick;const h=o.process&&o.__vitest_required__&&o.__vitest_required__.util.promisify;u.performance=o.performance&&"function"==typeof o.performance.now;const p=o.Performance&&(typeof o.Performance).match(/^(function|object)$/),d=o.performance&&o.performance.constructor&&o.performance.constructor.prototype;u.queueMicrotask=o.hasOwnProperty("queueMicrotask"),u.requestAnimationFrame=o.requestAnimationFrame&&"function"==typeof o.requestAnimationFrame,u.cancelAnimationFrame=o.cancelAnimationFrame&&"function"==typeof o.cancelAnimationFrame,u.requestIdleCallback=o.requestIdleCallback&&"function"==typeof o.requestIdleCallback,u.cancelIdleCallbackPresent=o.cancelIdleCallback&&"function"==typeof o.cancelIdleCallback,u.setImmediate=o.setImmediate&&"function"==typeof o.setImmediate,u.clearImmediate=o.clearImmediate&&"function"==typeof o.clearImmediate,u.Intl=o.Intl&&"object"==typeof o.Intl,o.clearTimeout&&o.clearTimeout(l);const b=o.Date,m=u.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(o.Intl)):void 0;let y=s;if(void 0===b)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");u.Date=!0;class g{constructor(t,e,n,r){this.name=t,this.entryType=e,this.startTime=n,this.duration=r}toJSON(){return JSON.stringify({...this})}}let w=!1;function v(t,e){t.loopLimit&&e===t.loopLimit-1&&(w=!0)}function $(){w=!1}function x(t){if(!t)return 0;const e=t.split(":"),n=e.length;let r,o=n,i=0;if(n>3||!/^(\d\d:){0,2}\d\d?$/.test(t))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;o--;){if(r=parseInt(e[o],10),r>=60)throw new Error(`Invalid time ${t}`);i+=r*Math.pow(60,n-o-1)}return 1e3*i}function S(t){if(!t)return 0;if("function"==typeof t.getTime)return t.getTime();if("number"==typeof t)return t;throw new TypeError("now should be milliseconds since UNIX epoch")}function j(t,e,n){return n&&n.callAt>=t&&n.callAt<=e}function E(t,e){const n=new Error(`Aborting after running ${t.loopLimit} timers, assuming an infinite loop!`);if(!e.error)return n;const r=/target\.*[<|(|[].*?[>|\]|)]\s*/;let o=new RegExp(String(Object.keys(t).join("|")));f&&(o=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(t).join("|")})\\s+`));let i=-1;e.error.stack.split("\n").some((function(t,e){if(t.match(r))return i=e,!0;return t.match(o)?(i=e,!1):i>=0}));const s=`${n}\n${e.type||"Microtask"} - ${e.func.name||"anonymous"}\n${e.error.stack.split("\n").slice(i+1).join("\n")}`;try{Object.defineProperty(n,"stack",{value:s})}catch(t){}return n}function T(){class t extends b{constructor(e,n,r,o,i,s,c){0===arguments.length?super(t.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:b,enumerable:!1})}static[Symbol.hasInstance](t){return t instanceof b}}t.isFake=!0,b.now&&(t.now=function(){return t.clock.now}),b.toSource&&(t.toSource=function(){return b.toSource()}),t.toString=function(){return b.toString()};return new Proxy(t,{apply(){if(this instanceof t)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new b(t.clock.now).toString()}})}function O(t){if(t.jobs){for(let e=0;e<t.jobs.length;e++){const n=t.jobs[e];if(n.func.apply(null,n.args),v(t,e),t.loopLimit&&e>t.loopLimit)throw E(t,n)}$(),t.jobs=[]}}function k(t,e){if(void 0===e.func)throw new Error("Callback must be provided to timer calls");if(f&&"function"!=typeof e.func)throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${e.func} of type ${typeof e.func}`);var n;if(w&&(e.error=new Error),e.type=e.immediate?"Immediate":"Timeout",e.hasOwnProperty("delay")&&("number"!=typeof e.delay&&(e.delay=parseInt(e.delay,10)),n=e.delay,(Number.isFinite?Number.isFinite(n):isFinite(n))||(e.delay=0),e.delay=e.delay>i?1:e.delay,e.delay=Math.max(0,e.delay)),e.hasOwnProperty("interval")&&(e.type="Interval",e.interval=e.interval>i?1:e.interval),e.hasOwnProperty("animation")&&(e.type="AnimationFrame",e.animation=!0),e.hasOwnProperty("idleCallback")&&(e.type="IdleCallback",e.idleCallback=!0),t.timers||(t.timers={}),e.id=y++,e.createdAt=t.now,e.callAt=t.now+(parseInt(e.delay)||(t.duringTick?1:0)),t.timers[e.id]=e,f){const n={refed:!0,ref:function(){return this.refed=!0,n},unref:function(){return this.refed=!1,n},hasRef:function(){return this.refed},refresh:function(){return e.callAt=t.now+(parseInt(e.delay)||(t.duringTick?1:0)),t.timers[e.id]=e,n},[Symbol.toPrimitive]:function(){return e.id}};return n}return e.id}function A(t,e){return t.callAt<e.callAt?-1:t.callAt>e.callAt?1:t.immediate&&!e.immediate?-1:!t.immediate&&e.immediate?1:t.createdAt<e.createdAt?-1:t.createdAt>e.createdAt?1:t.id<e.id?-1:t.id>e.id?1:void 0}function _(t,e,n){const r=t.timers;let o,i,s=null;for(o in r)r.hasOwnProperty(o)&&(i=j(e,n,r[o]),!i||s&&1!==A(s,r[o])||(s=r[o]));return s}function M(t){const e=t.timers;let n,r=null;for(n in e)e.hasOwnProperty(n)&&(r&&1!==A(r,e[n])||(r=e[n]));return r}function I(t){const e=t.timers;let n,r=null;for(n in e)e.hasOwnProperty(n)&&(r&&-1!==A(r,e[n])||(r=e[n]));return r}function C(t,e){if("number"==typeof e.interval?t.timers[e.id].callAt+=e.interval:delete t.timers[e.id],"function"==typeof e.func)e.func.apply(null,e.args);else{(0,eval)(e.func)}}function N(t){return"IdleCallback"===t||"AnimationFrame"===t?`cancel${t}`:`clear${t}`}const P=function(){let t=0;return function(e){!t++&&console.warn(e)}}();function R(t,e,n){if(!e)return;t.timers||(t.timers={});const r=Number(e);if(Number.isNaN(r)||r<s){const r=N(n);if(!0===t.shouldClearNativeTimers){const n=t[`_${r}`];return"function"==typeof n?n(e):void 0}P(`FakeTimers: ${r} was invoked to clear a native timer instead of one created by this library.\nTo automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(t.timers.hasOwnProperty(r)){const e=t.timers[r];if(!(e.type===n||"Timeout"===e.type&&"Interval"===n||"Interval"===e.type&&"Timeout"===n)){const t=N(n),r=function(t){return"IdleCallback"===t||"AnimationFrame"===t?`request${t}`:`set${t}`}(e.type);throw new Error(`Cannot clear timer: timer created with ${r}() but cleared with ${t}()`)}delete t.timers[r]}}function B(t,e,n){if(n[e].hadOwnProperty=Object.prototype.hasOwnProperty.call(t,e),n[`_${e}`]=t[e],"Date"===e)t[e]=n[e];else if("Intl"===e)t[e]=n[e];else if("performance"===e){const r=Object.getOwnPropertyDescriptor(t,e);if(r&&r.get&&!r.set){Object.defineProperty(n,`_${e}`,r);const o=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,o)}else t[e]=n[e]}else t[e]=function(){return n[e].apply(n,arguments)},Object.defineProperties(t[e],Object.getOwnPropertyDescriptors(n[e]));t[e].clock=n}function D(t,e){t.tick(e)}const F={setTimeout:o.setTimeout,clearTimeout:o.clearTimeout,setInterval:o.setInterval,clearInterval:o.clearInterval,Date:o.Date};u.setImmediate&&(F.setImmediate=o.setImmediate),u.clearImmediate&&(F.clearImmediate=o.clearImmediate),u.hrtime&&(F.hrtime=o.process.hrtime),u.nextTick&&(F.nextTick=o.process.nextTick),u.performance&&(F.performance=o.performance),u.requestAnimationFrame&&(F.requestAnimationFrame=o.requestAnimationFrame),u.queueMicrotask&&(F.queueMicrotask=o.queueMicrotask),u.cancelAnimationFrame&&(F.cancelAnimationFrame=o.cancelAnimationFrame),u.requestIdleCallback&&(F.requestIdleCallback=o.requestIdleCallback),u.cancelIdleCallback&&(F.cancelIdleCallback=o.cancelIdleCallback),u.Intl&&(F.Intl=m);const L=o.setImmediate||o.setTimeout;function q(t,e){t=Math.floor(S(t)),e=e||1e3;let n=0;const r=[0,0],i={now:t,Date:T(),loopLimit:e};function s(){return 16-(i.now-t)%16}function c(e){const o=i.now-r[0]-t,s=Math.floor(o/1e3),c=1e6*(o-1e3*s)+n-r[1];if(Array.isArray(e)){if(e[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const t=e[0];let n=c-e[1],r=s-t;return n<0&&(n+=1e9,r-=1),[r,n]}return[s,c]}function a(){const t=c();return 1e3*t[0]+t[1]/1e6}function l(t,e,r,o){const s="number"==typeof t?t:x(t),c=Math.floor(s),a=function(t){const e=1e6,n=1e6*t%e,r=n<0?n+e:n;return Math.floor(r)}(s);let u=n+a,l=i.now+c;if(s<0)throw new TypeError("Negative ticks are not supported");u>=1e6&&(l+=1,u-=1e6),n=u;let f,h,p,d,b,m,y=i.now,g=i.now;function w(){for(f=_(i,y,l);f&&y<=l;){if(i.timers[f.id]){y=f.callAt,i.now=f.callAt,p=i.now;try{O(i),C(i,f)}catch(t){h=h||t}if(e)return void L(d);b()}m()}if(p=i.now,O(i),p!==i.now&&(y+=i.now-p,l+=i.now-p),i.duringTick=!1,f=_(i,y,l),f)try{i.tick(l-i.now)}catch(t){h=h||t}else i.now=l,n=u;if(h)throw h;if(!e)return i.now;r(i.now)}return i.duringTick=!0,p=i.now,O(i),p!==i.now&&(y+=i.now-p,l+=i.now-p),d=e&&function(){try{b(),m(),w()}catch(t){o(t)}},b=function(){p!==i.now&&(y+=i.now-p,l+=i.now-p,g+=i.now-p)},m=function(){f=_(i,g,l),g=y},w()}return i.Date.clock=i,u.hrtimeBigint&&(c.bigint=function(){const t=c();return BigInt(t[0])*BigInt(1e9)+BigInt(t[1])}),u.Intl&&(i.Intl=function(){const t={};return Object.getOwnPropertyNames(m).forEach((e=>t[e]=m[e])),t.DateTimeFormat=function(...e){const n=new m.DateTimeFormat(...e),r={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach((t=>{r[t]=n[t].bind(n)})),["format","formatToParts"].forEach((e=>{r[e]=function(r){return n[e](r||t.clock.now)}})),r},t.DateTimeFormat.prototype=Object.create(m.DateTimeFormat.prototype),t.DateTimeFormat.supportedLocalesOf=m.DateTimeFormat.supportedLocalesOf,t}(),i.Intl.clock=i),i.requestIdleCallback=function(t,e){let n=0;i.countTimers()>0&&(n=50);const r=k(i,{func:t,args:Array.prototype.slice.call(arguments,2),delay:void 0===e?n:Math.min(e,n),idleCallback:!0});return Number(r)},i.cancelIdleCallback=function(t){return R(i,t,"IdleCallback")},i.setTimeout=function(t,e){return k(i,{func:t,args:Array.prototype.slice.call(arguments,2),delay:e})},void 0!==o.Promise&&h&&(i.setTimeout[h.custom]=function(t,e){return new o.Promise((function(n){k(i,{func:n,args:[e],delay:t})}))}),i.clearTimeout=function(t){return R(i,t,"Timeout")},i.nextTick=function(t){return function(t,e){t.jobs||(t.jobs=[]),t.jobs.push(e)}(i,{func:t,args:Array.prototype.slice.call(arguments,1),error:w?new Error:null})},i.queueMicrotask=function(t){return i.nextTick(t)},i.setInterval=function(t,e){return e=parseInt(e,10),k(i,{func:t,args:Array.prototype.slice.call(arguments,2),delay:e,interval:e})},i.clearInterval=function(t){return R(i,t,"Interval")},u.setImmediate&&(i.setImmediate=function(t){return k(i,{func:t,args:Array.prototype.slice.call(arguments,1),immediate:!0})},void 0!==o.Promise&&h&&(i.setImmediate[h.custom]=function(t){return new o.Promise((function(e){k(i,{func:e,args:[t],immediate:!0})}))}),i.clearImmediate=function(t){return R(i,t,"Immediate")}),i.countTimers=function(){return Object.keys(i.timers||{}).length+(i.jobs||[]).length},i.requestAnimationFrame=function(t){const e=k(i,{func:t,delay:s(),get args(){return[a()]},animation:!0});return Number(e)},i.cancelAnimationFrame=function(t){return R(i,t,"AnimationFrame")},i.runMicrotasks=function(){O(i)},i.tick=function(t){return l(t,!1)},void 0!==o.Promise&&(i.tickAsync=function(t){return new o.Promise((function(e,n){L((function(){try{l(t,!0,e,n)}catch(t){n(t)}}))}))}),i.next=function(){O(i);const t=M(i);if(!t)return i.now;i.duringTick=!0;try{return i.now=t.callAt,C(i,t),O(i),i.now}finally{i.duringTick=!1}},void 0!==o.Promise&&(i.nextAsync=function(){return new o.Promise((function(t,e){L((function(){try{const n=M(i);if(!n)return void t(i.now);let r;i.duringTick=!0,i.now=n.callAt;try{C(i,n)}catch(t){r=t}i.duringTick=!1,L((function(){r?e(r):t(i.now)}))}catch(t){e(t)}}))}))}),i.runAll=function(){let t,e;for(O(i),e=0;e<i.loopLimit;e++){if(!i.timers)return $(),i.now;if(t=Object.keys(i.timers).length,0===t)return $(),i.now;i.next(),v(i,e)}const n=M(i);throw E(i,n)},i.runToFrame=function(){return i.tick(s())},void 0!==o.Promise&&(i.runAllAsync=function(){return new o.Promise((function(t,e){let n=0;!function r(){L((function(){try{let o;if(O(i),n<i.loopLimit)return i.timers?(o=Object.keys(i.timers).length,0===o?($(),void t(i.now)):(i.next(),n++,r(),void v(i,n))):($(),void t(i.now));const s=M(i);e(E(i,s))}catch(t){e(t)}}))}()}))}),i.runToLast=function(){const t=I(i);return t?i.tick(t.callAt-i.now):(O(i),i.now)},void 0!==o.Promise&&(i.runToLastAsync=function(){return new o.Promise((function(t,e){L((function(){try{const e=I(i);e||(O(i),t(i.now)),t(i.tickAsync(e.callAt-i.now))}catch(t){e(t)}}))}))}),i.reset=function(){n=0,i.timers={},i.jobs=[],i.now=t},i.setSystemTime=function(t){const e=S(t),o=e-i.now;let s,c;for(s in r[0]=r[0]+o,r[1]=r[1]+n,i.now=e,n=0,i.timers)i.timers.hasOwnProperty(s)&&(c=i.timers[s],c.createdAt+=o,c.callAt+=o)},i.jump=function(t){const e="number"==typeof t?t:x(t),n=Math.floor(e);for(const t of Object.values(i.timers))i.now+n>t.callAt&&(t.callAt=i.now+n);i.tick(n)},u.performance&&(i.performance=Object.create(null),i.performance.now=a),u.hrtime&&(i.hrtime=c),i}return{timers:F,createClock:q,install:function(r){if(arguments.length>1||r instanceof Date||Array.isArray(r)||"number"==typeof r)throw new TypeError(`FakeTimers.install called with ${String(r)} install requires an object parameter`);if(!0===o.Date.isFake)throw new TypeError("Can't install fake timers twice on the same global object.");if((r=void 0!==r?r:{}).shouldAdvanceTime=r.shouldAdvanceTime||!1,r.advanceTimeDelta=r.advanceTimeDelta||20,r.shouldClearNativeTimers=r.shouldClearNativeTimers||!1,r.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function i(t){if(!r.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${t}'`)}let s,l;const f=q(r.now,r.loopLimit);if(f.shouldClearNativeTimers=r.shouldClearNativeTimers,f.uninstall=function(){return function(t,r){let i,s,c;for(s=0,c=t.methods.length;s<c;s++){if(i=t.methods[s],"hrtime"===i&&o.process)o.process.hrtime=t._hrtime;else if("nextTick"===i&&o.process)o.process.nextTick=t._nextTick;else if("performance"===i){const e=Object.getOwnPropertyDescriptor(t,`_${i}`);e&&e.get&&!e.set?Object.defineProperty(o,i,e):e.configurable&&(o[i]=t[`_${i}`])}else if(o[i]&&o[i].hadOwnProperty)o[i]=t[`_${i}`];else try{delete o[i]}catch(t){}if(void 0!==t.timersModuleMethods)for(let n=0;n<t.timersModuleMethods.length;n++){const r=t.timersModuleMethods[n];e[r.methodName]=r.original}if(void 0!==t.timersPromisesModuleMethods)for(let e=0;e<t.timersPromisesModuleMethods.length;e++){const r=t.timersPromisesModuleMethods[e];n[r.methodName]=r.original}}!0===r.shouldAdvanceTime&&o.clearInterval(t.attachedInterval),t.methods=[];for(const[e,n]of t.abortListenerMap.entries())n.removeEventListener("abort",e),t.abortListenerMap.delete(e);return t.timers?Object.keys(t.timers).map((function(e){return t.timers[e]})):[]}(f,r)},f.abortListenerMap=new Map,f.methods=r.toFake||[],0===f.methods.length&&(f.methods=Object.keys(F)),!0===r.shouldAdvanceTime){const t=D.bind(null,f,r.advanceTimeDelta),e=o.setInterval(t,r.advanceTimeDelta);f.attachedInterval=e}if(f.methods.includes("performance")){const t=d?o.performance.constructor.prototype:p?o.Performance.prototype:void 0;if(t)Object.getOwnPropertyNames(t).forEach((function(t){"now"!==t&&(f.performance[t]=0===t.indexOf("getEntries")?a:c)})),f.performance.mark=t=>new g(t,"mark",0,0),f.performance.measure=t=>new g(t,"measure",0,100),f.performance.timeOrigin=S(r.now);else if((r.toFake||[]).includes("performance"))return i("performance")}for(o===t&&e&&(f.timersModuleMethods=[]),o===t&&n&&(f.timersPromisesModuleMethods=[]),s=0,l=f.methods.length;s<l;s++){const t=f.methods[s];if(u[t]){if("hrtime"===t?o.process&&"function"==typeof o.process.hrtime&&B(o.process,t,f):"nextTick"===t?o.process&&"function"==typeof o.process.nextTick&&B(o.process,t,f):B(o,t,f),void 0!==f.timersModuleMethods&&e[t]){const n=e[t];f.timersModuleMethods.push({methodName:t,original:n}),e[t]=o[t]}void 0!==f.timersPromisesModuleMethods&&("setTimeout"===t?(f.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(t,e,n={})=>new Promise(((r,o)=>{const i=()=>{n.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i),f.clearTimeout(s),o(n.signal.reason)},s=f.setTimeout((()=>{n.signal&&(n.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i)),r(e)}),t);n.signal&&(n.signal.aborted?i():(n.signal.addEventListener("abort",i),f.abortListenerMap.set(i,n.signal)))}))):"setImmediate"===t?(f.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(t,e={})=>new Promise(((n,r)=>{const o=()=>{e.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o),f.clearImmediate(i),r(e.signal.reason)},i=f.setImmediate((()=>{e.signal&&(e.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o)),n(t)}));e.signal&&(e.signal.aborted?o():(e.signal.addEventListener("abort",o),f.abortListenerMap.set(o,e.signal)))}))):"setInterval"===t&&(f.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(t,e,n={})=>({[Symbol.asyncIterator]:()=>{const r=()=>{let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n};let o,i=!1,s=!1,c=0;const a=[],u=f.setInterval((()=>{a.length>0?a.shift().resolve():c++}),t),l=()=>{n.signal.removeEventListener("abort",l),f.abortListenerMap.delete(l),f.clearInterval(u),i=!0;for(const t of a)t.resolve()};return n.signal&&(n.signal.aborted?i=!0:(n.signal.addEventListener("abort",l),f.abortListenerMap.set(l,n.signal))),{next:async()=>{if(n.signal?.aborted&&!s)throw s=!0,n.signal.reason;if(i)return{done:!0,value:void 0};if(c>0)return c--,{done:!1,value:e};const t=r();if(a.push(t),await t,o&&0===a.length&&o.resolve(),n.signal?.aborted&&!s)throw s=!0,n.signal.reason;return i?{done:!0,value:void 0}:{done:!1,value:e}},return:async()=>(i||(a.length>0&&(o=r(),await o),f.clearInterval(u),i=!0,n.signal&&(n.signal.removeEventListener("abort",l),f.abortListenerMap.delete(l))),{done:!0,value:void 0})}}})))}else i(t)}return f},withGlobal:r}}const o=r(t);return tf.timers=o.timers,tf.createClock=o.createClock,tf.install=o.install,tf.withGlobal=r,tf}(),Hf=class{constructor({global:t,config:n}){e(this,"_global"),e(this,"_clock"),e(this,"_fakingTime"),e(this,"_fakingDate"),e(this,"_fakeTimers"),e(this,"_userConfig"),e(this,"_now",kl.now),this._userConfig=n,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=Uf.withGlobal(t),this._global=t}clearAllTimers(){this._fakingTime&&this._clock.reset()}dispose(){this.useRealTimers()}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll()}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync()}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast()}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync()}advanceTimersToNextTimer(t=1){if(this._checkFakeTimers())for(let e=t;e>0&&(this._clock.next(),this._clock.tick(0),0!==this._clock.countTimers());e--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let e=t;e>0&&(await this._clock.nextAsync(),this._clock.tick(0),0!==this._clock.countTimers());e--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t)}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&(globalThis.Date=kl,this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){const t=Object.keys(this._fakeTimers.timers).filter((t=>"nextTick"!==t&&"queueMicrotask"!==t));if(this._userConfig?.toFake?.includes("nextTick")&&Ua())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:!0}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t)}}setSystemTime(t){const e=void 0===t||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(e):(this._fakingDate=e??new Date(this.getRealSystemTime()),function(t){const e=new kl(t.valueOf());if(Number.isNaN(e.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${t}`);globalThis.Date=_l,Al=e.valueOf()}(this._fakingDate))}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(t){this._userConfig=t}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}};function Xf(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}function zf(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=sn(),{interval:s=50,timeout:c=1e3}="number"==typeof e?{timeout:e}:e,a=new Error("STACK_TRACE_ERROR");return new Promise(((e,u)=>{let l,f,h,p="idle";const d=t=>{f&&o(f),h&&i(h),e(t)},b=()=>{if(Kf.isFakeTimers()&&Kf.advanceTimersByTime(s),"pending"!==p)try{const e=t();if(null===e||"object"!=typeof e||"function"!=typeof e.then)return d(e),!0;p="pending",e.then((t=>{p="resolved",d(t)}),(t=>{p="rejected",l=t}))}catch(t){l=t}};!0!==b()&&(f=n((()=>{h&&i(h);let t=l;t||(t=Xf(new Error("Timed out in waitFor!"),a)),u(t)}),c),h=r(b,s))}))}function Vf(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=sn(),{interval:s=50,timeout:c=1e3}="number"==typeof e?{timeout:e}:e,a=new Error("STACK_TRACE_ERROR");return new Promise(((e,u)=>{let l,f,h="idle";const p=t=>{f&&i(f),t||(t=Xf(new Error("Timed out in waitUntil!"),a)),u(t)},d=t=>{if(t)return l&&o(l),f&&i(f),e(t),!0},b=()=>{if(Kf.isFakeTimers()&&Kf.advanceTimersByTime(s),"pending"!==h)try{const e=t();if(null===e||"object"!=typeof e||"function"!=typeof e.then)return d(e);h="pending",e.then((t=>{h="resolved",d(t)}),(t=>{h="rejected",p(t)}))}catch(t){p(t)}};!0!==b()&&(l=n(p,c),f=r(b,s))}))}var Gf=function(){let t=null;const e=Ja();let n;const r=()=>n||=new Hf({global:globalThis,config:e.config.fakeTimers}),o=new Map,i=new Map,s=["PROD","DEV","SSR"],c={useFakeTimers(t){if(Ua()&&(t?.toFake?.includes("nextTick")||e.config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return t?r().configure({...e.config.fakeTimers,...t}):r().configure(e.config.fakeTimers),r().useFakeTimers(),c},isFakeTimers:()=>r().isFakeTimers(),useRealTimers:()=>(r().useRealTimers(),c),runOnlyPendingTimers:()=>(r().runOnlyPendingTimers(),c),runOnlyPendingTimersAsync:async()=>(await r().runOnlyPendingTimersAsync(),c),runAllTimers:()=>(r().runAllTimers(),c),runAllTimersAsync:async()=>(await r().runAllTimersAsync(),c),runAllTicks:()=>(r().runAllTicks(),c),advanceTimersByTime:t=>(r().advanceTimersByTime(t),c),advanceTimersByTimeAsync:async t=>(await r().advanceTimersByTimeAsync(t),c),advanceTimersToNextTimer:()=>(r().advanceTimersToNextTimer(),c),advanceTimersToNextTimerAsync:async()=>(await r().advanceTimersToNextTimerAsync(),c),advanceTimersToNextFrame:()=>(r().advanceTimersToNextFrame(),c),getTimerCount:()=>r().getTimerCount(),setSystemTime:t=>(r().setSystemTime(t),c),getMockedSystemTime:()=>r().getMockedSystemTime(),getRealSystemTime:()=>r().getRealSystemTime(),clearAllTimers:()=>(r().clearAllTimers(),c),spyOn:Oo,fn:_o,waitFor:zf,waitUntil:Vf,hoisted:t=>(Oe(t,'"vi.hoisted" factory',["function"]),t()),mock(t,e){if("string"!=typeof t)throw new TypeError("vi.mock() expects a string path, but received a "+typeof t);const n=Yf("mock");Zf().queueMock(t,n,"function"==typeof e?()=>e((()=>Zf().importActual(t,n,Zf().getMockContext().callstack))):e)},unmock(t){if("string"!=typeof t)throw new TypeError("vi.unmock() expects a string path, but received a "+typeof t);Zf().queueUnmock(t,Yf("unmock"))},doMock(t,e){if("string"!=typeof t)throw new TypeError("vi.doMock() expects a string path, but received a "+typeof t);const n=Yf("doMock");Zf().queueMock(t,n,"function"==typeof e?()=>e((()=>Zf().importActual(t,n,Zf().getMockContext().callstack))):e)},doUnmock(t){if("string"!=typeof t)throw new TypeError("vi.doUnmock() expects a string path, but received a "+typeof t);Zf().queueUnmock(t,Yf("doUnmock"))},importActual:async t=>Zf().importActual(t,Yf("importActual"),Zf().getMockContext().callstack),importMock:async t=>Zf().importMock(t,Yf("importMock")),mocked:(t,e={})=>t,isMockFunction:t=>To(t),clearAllMocks:()=>([...Eo].reverse().forEach((t=>t.mockClear())),c),resetAllMocks:()=>([...Eo].reverse().forEach((t=>t.mockReset())),c),restoreAllMocks:()=>([...Eo].reverse().forEach((t=>t.mockRestore())),c),stubGlobal:(t,e)=>(o.has(t)||o.set(t,Object.getOwnPropertyDescriptor(globalThis,t)),Object.defineProperty(globalThis,t,{value:e,writable:!0,configurable:!0,enumerable:!0}),c),stubEnv:(t,e)=>(i.has(t)||i.set(t,process.env[t]),s.includes(t)?process.env[t]=e?"1":"":void 0===e?delete process.env[t]:process.env[t]=String(e),c),unstubAllGlobals:()=>(o.forEach(((t,e)=>{t?Object.defineProperty(globalThis,e,t):Reflect.deleteProperty(globalThis,e)})),o.clear(),c),unstubAllEnvs:()=>(i.forEach(((t,e)=>{void 0===t?delete process.env[e]:process.env[e]=t})),i.clear(),c),resetModules:()=>(function(t,e=!1){const n=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...e?[]:[/^mock:/]];t.forEach(((e,r)=>{n.some((t=>t.test(r)))||t.invalidateModule(e)}))}(e.moduleCache),c),dynamicImportSettled:async()=>Ha(),setConfig(n){t||(t={...e.config}),Object.assign(e.config,n)},resetConfig(){t&&Object.assign(e.config,t)}};return c}(),Kf=Gf;function Zf(){return"undefined"!=typeof __vitest_mocker__?__vitest_mocker__:new Proxy({},{get(t,e){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(e)}() is forbidden.`)}})}function Yf(t){const e=function(t){const{message:e="$$stack trace error",stackTraceLimit:n=1}=t||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=t=>t.stack;const i=new Error(e).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,i}({stackTraceLimit:5}).split("\n"),n=e.findIndex((e=>e.includes(` at Object.${t}`)||e.includes(`${t}@`))),r=wn(e[n+1]);return r?.file||""}o();r(u(),1);export{Qr as describe,to as it,ql as globalExpect,Kf as vi};
2
+ /*! Bundled license information:
3
+
4
+ @vitest/pretty-format/dist/index.js:
5
+ (**
6
+ * @license React
7
+ * react-is.production.js
8
+ *
9
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ *)
14
+ (**
15
+ * @license React
16
+ * react-is.development.js
17
+ *
18
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ *)
23
+ (**
24
+ * @license React
25
+ * react-is.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ *)
32
+ (**
33
+ * @license React
34
+ * react-is.development.js
35
+ *
36
+ * Copyright (c) Facebook, Inc. and its affiliates.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE file in the root directory of this source tree.
40
+ *)
41
+
42
+ chai/chai.js:
43
+ (*!
44
+ * Chai - flag utility
45
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
46
+ * MIT Licensed
47
+ *)
48
+ (*!
49
+ * Chai - test utility
50
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
51
+ * MIT Licensed
52
+ *)
53
+ (*!
54
+ * Chai - expectTypes utility
55
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
56
+ * MIT Licensed
57
+ *)
58
+ (*!
59
+ * Chai - getActual utility
60
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
61
+ * MIT Licensed
62
+ *)
63
+ (*!
64
+ * Chai - message composition utility
65
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
66
+ * MIT Licensed
67
+ *)
68
+ (*!
69
+ * Chai - transferFlags utility
70
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
71
+ * MIT Licensed
72
+ *)
73
+ (*!
74
+ * chai
75
+ * http://chaijs.com
76
+ * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
77
+ * MIT Licensed
78
+ *)
79
+ (*!
80
+ * Chai - isProxyEnabled helper
81
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
82
+ * MIT Licensed
83
+ *)
84
+ (*!
85
+ * Chai - addProperty utility
86
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
87
+ * MIT Licensed
88
+ *)
89
+ (*!
90
+ * Chai - addLengthGuard utility
91
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
92
+ * MIT Licensed
93
+ *)
94
+ (*!
95
+ * Chai - getProperties utility
96
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
97
+ * MIT Licensed
98
+ *)
99
+ (*!
100
+ * Chai - proxify utility
101
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
102
+ * MIT Licensed
103
+ *)
104
+ (*!
105
+ * Chai - addMethod utility
106
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
107
+ * MIT Licensed
108
+ *)
109
+ (*!
110
+ * Chai - overwriteProperty utility
111
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
112
+ * MIT Licensed
113
+ *)
114
+ (*!
115
+ * Chai - overwriteMethod utility
116
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
117
+ * MIT Licensed
118
+ *)
119
+ (*!
120
+ * Chai - addChainingMethod utility
121
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
122
+ * MIT Licensed
123
+ *)
124
+ (*!
125
+ * Chai - overwriteChainableMethod utility
126
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
127
+ * MIT Licensed
128
+ *)
129
+ (*!
130
+ * Chai - compareByInspect utility
131
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
132
+ * MIT Licensed
133
+ *)
134
+ (*!
135
+ * Chai - getOwnEnumerablePropertySymbols utility
136
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
137
+ * MIT Licensed
138
+ *)
139
+ (*!
140
+ * Chai - getOwnEnumerableProperties utility
141
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
142
+ * MIT Licensed
143
+ *)
144
+ (*!
145
+ * Chai - isNaN utility
146
+ * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
147
+ * MIT Licensed
148
+ *)
149
+ (*!
150
+ * chai
151
+ * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
152
+ * MIT Licensed
153
+ *)
154
+ (*!
155
+ * chai
156
+ * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
157
+ * MIT Licensed
158
+ *)
159
+ (*! Bundled license information:
160
+
161
+ deep-eql/index.js:
162
+ (*!
163
+ * deep-eql
164
+ * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
165
+ * MIT Licensed
166
+ *)
167
+ (*!
168
+ * Check to see if the MemoizeMap has recorded a result of the two operands
169
+ *
170
+ * @param {Mixed} leftHandOperand
171
+ * @param {Mixed} rightHandOperand
172
+ * @param {MemoizeMap} memoizeMap
173
+ * @returns {Boolean|null} result
174
+ *)
175
+ (*!
176
+ * Set the result of the equality into the MemoizeMap
177
+ *
178
+ * @param {Mixed} leftHandOperand
179
+ * @param {Mixed} rightHandOperand
180
+ * @param {MemoizeMap} memoizeMap
181
+ * @param {Boolean} result
182
+ *)
183
+ (*!
184
+ * Primary Export
185
+ *)
186
+ (*!
187
+ * The main logic of the `deepEqual` function.
188
+ *
189
+ * @param {Mixed} leftHandOperand
190
+ * @param {Mixed} rightHandOperand
191
+ * @param {Object} [options] (optional) Additional options
192
+ * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
193
+ * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
194
+ complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
195
+ references to blow the stack.
196
+ * @return {Boolean} equal match
197
+ *)
198
+ (*!
199
+ * Compare two Regular Expressions for equality.
200
+ *
201
+ * @param {RegExp} leftHandOperand
202
+ * @param {RegExp} rightHandOperand
203
+ * @return {Boolean} result
204
+ *)
205
+ (*!
206
+ * Compare two Sets/Maps for equality. Faster than other equality functions.
207
+ *
208
+ * @param {Set} leftHandOperand
209
+ * @param {Set} rightHandOperand
210
+ * @param {Object} [options] (Optional)
211
+ * @return {Boolean} result
212
+ *)
213
+ (*!
214
+ * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
215
+ *
216
+ * @param {Iterable} leftHandOperand
217
+ * @param {Iterable} rightHandOperand
218
+ * @param {Object} [options] (Optional)
219
+ * @return {Boolean} result
220
+ *)
221
+ (*!
222
+ * Simple equality for generator objects such as those returned by generator functions.
223
+ *
224
+ * @param {Iterable} leftHandOperand
225
+ * @param {Iterable} rightHandOperand
226
+ * @param {Object} [options] (Optional)
227
+ * @return {Boolean} result
228
+ *)
229
+ (*!
230
+ * Determine if the given object has an @@iterator function.
231
+ *
232
+ * @param {Object} target
233
+ * @return {Boolean} `true` if the object has an @@iterator function.
234
+ *)
235
+ (*!
236
+ * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
237
+ * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
238
+ *
239
+ * @param {Object} target
240
+ * @returns {Array} an array of entries from the @@iterator function
241
+ *)
242
+ (*!
243
+ * Gets all entries from a Generator. This will consume the generator - which could have side effects.
244
+ *
245
+ * @param {Generator} target
246
+ * @returns {Array} an array of entries from the Generator.
247
+ *)
248
+ (*!
249
+ * Gets all own and inherited enumerable keys from a target.
250
+ *
251
+ * @param {Object} target
252
+ * @returns {Array} an array of own and inherited enumerable keys from the target.
253
+ *)
254
+ (*!
255
+ * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
256
+ * each key. If any value of the given key is not equal, the function will return false (early).
257
+ *
258
+ * @param {Mixed} leftHandOperand
259
+ * @param {Mixed} rightHandOperand
260
+ * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
261
+ * @param {Object} [options] (Optional)
262
+ * @return {Boolean} result
263
+ *)
264
+ (*!
265
+ * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
266
+ * for each enumerable key in the object.
267
+ *
268
+ * @param {Mixed} leftHandOperand
269
+ * @param {Mixed} rightHandOperand
270
+ * @param {Object} [options] (Optional)
271
+ * @return {Boolean} result
272
+ *)
273
+ (*!
274
+ * Returns true if the argument is a primitive.
275
+ *
276
+ * This intentionally returns true for all objects that can be compared by reference,
277
+ * including functions and symbols.
278
+ *
279
+ * @param {Mixed} value
280
+ * @return {Boolean} result
281
+ *)
282
+ *)
283
+
284
+ @vitest/snapshot/dist/index.js:
285
+ (*
286
+ * @version 1.4.0
287
+ * @date 2015-10-26
288
+ * @stability 3 - Stable
289
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
290
+ * @license MIT License
291
+ *)
292
+ */