appos 0.3.6-0 → 0.3.7-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/main.mjs +3 -3
- package/dist/bin/youch-handler-D7REmh8Z.mjs +2 -0
- package/dist/exports/tests/api.d.mts +1 -1
- package/dist/exports/tests/api.mjs +14 -14
- package/dist/exports/tests/{auth-schema-DUCJw-_2.mjs → auth-schema-B_qHPoa4.mjs} +1 -1
- package/dist/exports/tests/{conditions-B0ffVJ5E.mjs → conditions-BeWxRN_Z.mjs} +1 -1
- package/dist/exports/tests/{extract-blob-metadata-Dv343Vcn.mjs → extract-blob-metadata-6xQrarjB.mjs} +2 -2
- package/dist/exports/tests/{generate-image-variant-cQc8q0kh.mjs → generate-image-variant-KQITLmCx.mjs} +1 -1
- package/dist/exports/tests/{generate-preview-HaTMd2hS.mjs → generate-preview-YnujQo5I.mjs} +1 -1
- package/dist/exports/tests/mock-BvoS23fi.mjs +1 -0
- package/dist/exports/tests/mock.mjs +1 -1
- package/dist/exports/tests/{purge-attachment-D4uOzHRi.mjs → purge-attachment-DTSmCl-z.mjs} +1 -1
- package/dist/exports/tests/{purge-audit-logs-DiPcc09d.mjs → purge-audit-logs-D0_UUhN2.mjs} +1 -1
- package/dist/exports/tests/{purge-unattached-blobs-CqW6tlIC.mjs → purge-unattached-blobs-IENmSB8K.mjs} +1 -1
- package/dist/exports/tests/react.mjs +1 -1
- package/dist/exports/tests/setup.mjs +2 -2
- package/dist/exports/tests/{track-db-changes-Bd4W-P1q.mjs → track-db-changes-Td9Q3DLd.mjs} +1 -1
- package/dist/exports/tests/youch-handler-efUxKCCs.mjs +1 -0
- package/dist/exports/vite/index.mjs +4 -4
- package/dist/exports/vite/{lib-DuBRr9dH.mjs → lib-B0s0q6aX.mjs} +73 -73
- package/dist/exports/vite/lib-BkrbWMaV.mjs +1 -0
- package/dist/exports/vitest/config.mjs +1 -77
- package/dist/exports/vitest/index.mjs +1 -348
- package/package.json +1 -7
- package/dist/bin/youch-handler-DrYdbUhe.mjs +0 -2
- package/dist/exports/devtools/BaseTanStackRouterDevtoolsPanel-BBz1qLry-DUwdvyLv.js +0 -2090
- package/dist/exports/devtools/EIDV623S-B7f6114d.js +0 -2497
- package/dist/exports/devtools/FloatingTanStackRouterDevtools-DymJEvfG-BHuQHiRR.js +0 -237
- package/dist/exports/devtools/MIMHJGAX-Cb3wf11F.js +0 -10903
- package/dist/exports/devtools/Q7LWSL4U-BoEO3rNq.js +0 -37
- package/dist/exports/devtools/VLTTJS3N-CIyRc84e.js +0 -44
- package/dist/exports/devtools/index.d.ts +0 -3
- package/dist/exports/devtools/index.js +0 -1725
- package/dist/exports/devtools/utils-YRTCpRgb.js +0 -1670
- package/dist/exports/tests/magic-string.es-D6VRmdiF.mjs +0 -14
- package/dist/exports/tests/mock-BvkO5nlm.mjs +0 -1
- package/dist/exports/tests/vi.2VT5v0um-Cme1b0Dl.mjs +0 -348
- package/dist/exports/tests/youch-handler-Ch5yf6im.mjs +0 -1
- package/dist/exports/vite/api-DGRU_RdM.mjs +0 -27
- package/dist/exports/vite/build-CxJAu2Bn.mjs +0 -1
- package/dist/exports/vite/build2-BMK0OFVt.mjs +0 -16
- package/dist/exports/vite/chunk-CxnlK1Zi.mjs +0 -1
- package/dist/exports/vite/chunk-PtveFMYu.mjs +0 -1
- package/dist/exports/vite/dist-Bxp8DqWh.mjs +0 -114
- package/dist/exports/vite/dist-CX51FKbX.mjs +0 -1
- package/dist/exports/vite/dist-DcyNr-KR.mjs +0 -1
- package/dist/exports/vite/dist-j3-Khlzt.mjs +0 -1
- package/dist/exports/vite/experimental-index-3KsfmUbz.mjs +0 -1
- package/dist/exports/vite/false-BNJbUKYT.mjs +0 -1
- package/dist/exports/vite/false-BvrPEDU6.mjs +0 -1
- package/dist/exports/vite/internal-C5cVwRiK.mjs +0 -1
- package/dist/exports/vite/jiti-BjSPrFvg.mjs +0 -9
- package/dist/exports/vite/lexer-DQCqS3nf-C6xCDOEQ.mjs +0 -3
- package/dist/exports/vite/lib-CMv7Sfwa.mjs +0 -1
- package/dist/exports/vite/lib-D9TnS-7w.mjs +0 -1
- package/dist/exports/vite/node-DI8AnY_i.mjs +0 -437
- package/dist/exports/vite/postcss-BtmDpj-c.mjs +0 -32
- package/dist/exports/vite/postcss-import-Bk_ZCd6c.mjs +0 -5
- package/dist/exports/vite/rolldown-build-CNW2eye_-CJNfyXdF.mjs +0 -13
- package/dist/exports/vitest/api-CPv6lnxG.mjs +0 -27
- package/dist/exports/vitest/build2-28i3OiJ3.mjs +0 -16
- package/dist/exports/vitest/chunk-_e2jlDPK.mjs +0 -1
- package/dist/exports/vitest/chunk-jwDkFoXW.mjs +0 -1
- package/dist/exports/vitest/dist-L-OpshPJ.mjs +0 -114
- package/dist/exports/vitest/jiti-eNGOyHIo.mjs +0 -9
- package/dist/exports/vitest/lexer-DQCqS3nf-TWLyIqlY.mjs +0 -3
- package/dist/exports/vitest/lib-C3G64csm.mjs +0 -1
- package/dist/exports/vitest/magic-string.es-CxM5Ubyl.mjs +0 -14
- package/dist/exports/vitest/module-runner-DsF4L04D.mjs +0 -1
- package/dist/exports/vitest/postcss-BxLp_Too.mjs +0 -32
- package/dist/exports/vitest/postcss-import-5pKj3f5q.mjs +0 -5
- /package/dist/exports/tests/{constants-DHjjg05J.mjs → constants-D_m07gCJ.mjs} +0 -0
- /package/dist/exports/tests/{dist-EfrRkq5c.mjs → dist-Cx2HEBOB.mjs} +0 -0
- /package/dist/exports/tests/{dist-D6vgKv3t.mjs → dist-DnACOvNW.mjs} +0 -0
- /package/dist/exports/tests/{pdf-BDsS3vjF.mjs → pdf-lZ-as2o7.mjs} +0 -0
- /package/dist/exports/tests/{table-CbU04119.mjs → table-CmPSf_pE.mjs} +0 -0
- /package/dist/exports/tests/{workflow-DwZxTqdH.mjs → workflow-BWRWyC83.mjs} +0 -0
- /package/dist/exports/tests/{zod-DcpxsMPz.mjs → zod-CkJO9qpV.mjs} +0 -0
|
@@ -1,348 +1 @@
|
|
|
1
|
-
|
|
2
|
-
`)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function w(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?te(e,t):a(e,t,n,r,i))).join(``)}function ee(e,t,n,r,i,a){return t.printShadowRoot===!1?``:[`${t.spacingOuter+n}#shadow-root`,w(e,t,n+t.indent,r,i,a)].join(``)}function te(e,t){let n=t.colors.content;return n.open+S(e)+n.close}function ne(e,t){let n=t.colors.comment;return`${n.open}<!--${S(e)}-->${n.close}`}function re(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function ie(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}const ae=/^(?:(?:HTML|SVG)\w*)?Element$/;function T(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function oe(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||T(e);return n===1&&(ae.test(t)||i)||n===3&&t===`Text`||n===8&&t===`Comment`||n===11&&t===`DocumentFragment`}const se=e=>e?.constructor?.name&&oe(e);function ce(e){return e.nodeType===3}function le(e){return e.nodeType===8}function ue(e){return e.nodeType===11}const de={serialize:(e,t,n,r,i,a)=>{if(ce(e))return te(e.data,t);if(le(e))return ne(e.data,t);let o=ue(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?ie(o,t):re(o,C(ue(e)?[]:Array.from(e.attributes,e=>e.name).sort(),ue(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),(ue(e)||!e.shadowRoot?``:ee(Array.prototype.slice.call(e.shadowRoot.children),t,n+t.indent,r,i,a))+w(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},test:se},fe=`@@__IMMUTABLE_ORDERED__@@`,pe=e=>`Immutable.${e}`,me=e=>`[${e}]`;function he(e,t,n,r,i,a,o){return++r>t.maxDepth?me(pe(o)):`${pe(o)+` `}{${u(e.entries(),t,n,r,i,a)}}`}function ge(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function _e(e,t,n,r,i,a){let o=pe(e._name||`Record`);return++r>t.maxDepth?me(o):`${o+` `}{${u(ge(e),t,n,r,i,a)}}`}function ve(e,t,n,r,i,a){let o=pe(`Seq`);return++r>t.maxDepth?me(o):e[`@@__IMMUTABLE_KEYED__@@`]?`${o+` `}{${e._iter||e._object?u(e.entries(),t,n,r,i,a):`…`}}`:`${o+` `}[${e._iter||e._array||e._collection||e._iterable?d(e.values(),t,n,r,i,a):`…`}]`}function ye(e,t,n,r,i,a,o){return++r>t.maxDepth?me(pe(o)):`${pe(o)+` `}[${d(e.values(),t,n,r,i,a)}]`}const E={serialize:(e,t,n,r,i,a)=>e[`@@__IMMUTABLE_MAP__@@`]?he(e,t,n,r,i,a,e[fe]?`OrderedMap`:`Map`):e[`@@__IMMUTABLE_LIST__@@`]?ye(e,t,n,r,i,a,`List`):e[`@@__IMMUTABLE_SET__@@`]?ye(e,t,n,r,i,a,e[fe]?`OrderedSet`:`Set`):e[`@@__IMMUTABLE_STACK__@@`]?ye(e,t,n,r,i,a,`Stack`):e[`@@__IMMUTABLE_SEQ__@@`]?ve(e,t,n,r,i,a):_e(e,t,n,r,i,a),test:e=>e&&(e[`@@__IMMUTABLE_ITERABLE__@@`]===!0||e[`@@__IMMUTABLE_RECORD__@@`]===!0)};function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var xe={exports:{}},D={},Se;function Ce(){if(Se)return D;Se=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return D.ContextConsumer=a,D.ContextProvider=o,D.Element=e,D.ForwardRef=s,D.Fragment=n,D.Lazy=d,D.Memo=u,D.Portal=t,D.Profiler=i,D.StrictMode=r,D.Suspense=c,D.SuspenseList=l,D.isContextConsumer=function(e){return m(e)===a},D.isContextProvider=function(e){return m(e)===o},D.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},D.isForwardRef=function(e){return m(e)===s},D.isFragment=function(e){return m(e)===n},D.isLazy=function(e){return m(e)===d},D.isMemo=function(e){return m(e)===u},D.isPortal=function(e){return m(e)===t},D.isProfiler=function(e){return m(e)===i},D.isStrictMode=function(e){return m(e)===r},D.isSuspense=function(e){return m(e)===c},D.isSuspenseList=function(e){return m(e)===l},D.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0))},D.typeOf=m,D}var we;function Te(){return we?xe.exports:(we=1,xe.exports=Ce(),xe.exports)}var Ee=Te(),De=c({__proto__:null,default:be(Ee)},[Ee]),Oe={exports:{}},O={},ke;function Ae(){if(ke)return O;ke=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return O.ContextConsumer=o,O.ContextProvider=a,O.Element=e,O.ForwardRef=c,O.Fragment=n,O.Lazy=f,O.Memo=d,O.Portal=t,O.Profiler=i,O.StrictMode=r,O.Suspense=l,O.SuspenseList=u,O.isAsyncMode=function(){return!1},O.isConcurrentMode=function(){return!1},O.isContextConsumer=function(e){return h(e)===o},O.isContextProvider=function(e){return h(e)===a},O.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},O.isForwardRef=function(e){return h(e)===c},O.isFragment=function(e){return h(e)===n},O.isLazy=function(e){return h(e)===f},O.isMemo=function(e){return h(e)===d},O.isPortal=function(e){return h(e)===t},O.isProfiler=function(e){return h(e)===i},O.isStrictMode=function(e){return h(e)===r},O.isSuspense=function(e){return h(e)===l},O.isSuspenseList=function(e){return h(e)===u},O.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0))},O.typeOf=h,O}var je;function Me(){return je?Oe.exports:(je=1,Oe.exports=Ae(),Oe.exports)}var Ne=Me(),Pe=c({__proto__:null,default:be(Ne)},[Ne]);const Fe=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>Pe[e](t)||De[e](t)]));function Ie(e,t=[]){if(Array.isArray(e))for(let n of e)Ie(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function Le(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(Fe.isFragment(e))return`React.Fragment`;if(Fe.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(Fe.isContextProvider(e))return`Context.Provider`;if(Fe.isContextConsumer(e))return`Context.Consumer`;if(Fe.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(Fe.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function Re(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}const ze={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?ie(Le(e),t):re(Le(e),C(Re(e),e.props,t,n+t.indent,r,i,a),w(Ie(e.props.children),t,n+t.indent,r,i,a),t,n),test:e=>e!=null&&Fe.isElement(e)},Be=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487;function Ve(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}const He={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?ie(e.type,t):re(e.type,e.props?C(Ve(e),e.props,t,n+t.indent,r,i,a):``,e.children?w(e.children,t,n+t.indent,r,i,a):``,t,n),test:e=>e&&e.$$typeof===Be},Ue=Object.prototype.toString,We=Date.prototype.toISOString,Ge=Error.prototype.toString,Ke=RegExp.prototype.toString;function qe(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function Je(e){return typeof window<`u`&&e===window}const Ye=/^Symbol\((.*)\)(.*)$/,Xe=/\n/g;var Ze=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function Qe(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function $e(e){return Object.is(e,-0)?`-0`:String(e)}function et(e){return String(`${e}n`)}function tt(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function nt(e){return String(e).replace(Ye,`Symbol($1)`)}function rt(e){return`[${Ge.call(e)}]`}function it(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return $e(e);if(i===`bigint`)return et(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return tt(e,t);if(i===`symbol`)return nt(e);let a=Ue.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?tt(e,t):a===`[object Symbol]`?nt(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:We.call(e):a===`[object Error]`?rt(e):a===`[object RegExp]`?n?Ke.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):Ke.call(e):e instanceof Error?rt(e):null}function at(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return ut(e.toJSON(),t,n,r,i,!0);let c=Ue.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${f(e,t,n,r,i,ut)}]`:Qe(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${f(e,t,n,r,i,ut)}]`:c===`[object Map]`?o?`[Map]`:`Map {${u(e.entries(),t,n,r,i,ut,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${d(e.values(),t,n,r,i,ut)}}`:o||Je(e)?`[${qe(e)}]`:`${s||!t.printBasicPrototype&&qe(e)===`Object`?``:`${qe(e)} `}{${p(e,t,n,r,i,ut)}}`}const ot={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,d={message:s,...c===void 0?{}:{cause:c},...e instanceof AggregateError?{errors:e.errors}:{},...l},f=e.name===`Error`?qe(e):e.name;return o?`[${f}]`:`${f} {${u(Object.entries(d).values(),t,n,r,i,a)}}`}};function st(e){return e.serialize!=null}function ct(e,t,n,r,i,a){let o;try{o=st(e)?e.serialize(t,n,r,i,a,ut):e.print(t,e=>ut(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(Xe,`\n${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new Ze(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function lt(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new Ze(e.message,e.stack)}return null}function ut(e,t,n,r,i,a){let o=lt(t.plugins,e);if(o!==null)return ct(o,e,t,n,r,i);let s=it(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?at(e,t,n,r,i,a):s}const dt={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},ft=Object.keys(dt),k={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:dt};function pt(e){for(let t of Object.keys(e))if(!Object.hasOwn(k,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function mt(){return ft.reduce((e,t)=>{let n=dt[t],r=n&&s[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function ht(){return ft.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function gt(e){return e?.printFunctionName??k.printFunctionName}function _t(e){return e?.escapeRegex??k.escapeRegex}function vt(e){return e?.escapeString??k.escapeString}function yt(e){return{callToJSON:e?.callToJSON??k.callToJSON,colors:e?.highlight?mt():ht(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:k.compareKeys,escapeRegex:_t(e),escapeString:vt(e),indent:e?.min?``:bt(e?.indent??k.indent),maxDepth:e?.maxDepth??k.maxDepth,maxWidth:e?.maxWidth??k.maxWidth,min:e?.min??k.min,plugins:e?.plugins??k.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:gt(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?` `:`
|
|
3
|
-
`,spacingOuter:e?.min?``:`
|
|
4
|
-
`}}function bt(e){return Array.from({length:e+1}).join(` `)}function A(e,t){if(t&&(pt(t),t.plugins)){let n=lt(t.plugins,e);if(n!==null)return ct(n,e,yt(t),``,0,[])}let n=it(e,gt(t),_t(t),vt(t));return n===null?at(e,yt(t),``,0,[]):n}const xt={AsymmetricMatcher:h,DOMCollection:x,DOMElement:de,Immutable:E,ReactElement:ze,ReactTestComponent:He,Error:ot},St={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`]},Ct={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`};function wt(e,t){let n=St[Ct[t]]||St[t]||``;return n?`\u001b[${n[0]}m${String(e)}\u001b[${n[1]}m`:String(e)}function Tt({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=wt),d}function Et(e){return e>=`\ud800`&&e<=`\udbff`}function Dt(e,t,n=`…`){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&Et(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function j(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`…(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`…(${e.length-l-1})`;break}c=``}return`${o}${c}`}function Ot(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function kt([e,t],n){return n.truncate-=2,typeof e==`string`?e=Ot(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function At(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=j(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=j(n.map(t=>[t,e[t]]),t,kt)),`[ ${r}${i?`, ${i}`:``} ]`}const jt=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Mt(e,t){let n=jt(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(Dt(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`…(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=j(r.map(t=>[t,e[t]]),t,kt)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function Nt(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${Dt(r[1],t.truncate-i.length-1)}`,`date`)}function Pt(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${Dt(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function Ft([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function It(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function Lt(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${j(It(e),t,Ft)} }`)}const Rt=Number.isNaN||(e=>e!==e);function zt(e,t){return Rt(e)?t.stylize(`NaN`,`number`):e===1/0?t.stylize(`Infinity`,`number`):e===-1/0?t.stylize(`-Infinity`,`number`):e===0?t.stylize(1/e==1/0?`+0`:`-0`,`number`):t.stylize(Dt(String(e),t.truncate),`number`)}function Bt(e,t){let n=Dt(e.toString(),t.truncate-1);return n!==`…`&&(n+=`n`),t.stylize(n,`bigint`)}function Vt(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${Dt(i,r)}/${n}`,`regexp`)}function Ht(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function Ut(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${j(Ht(e),t)} }`)}const Wt=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),Gt={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`};function Kt(e){return Gt[e]||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}function qt(e,t){return Wt.test(e)&&(e=e.replace(Wt,Kt)),t.stylize(`'${Dt(e,t.truncate-2)}'`,`string`)}function Jt(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}const Yt=()=>`Promise{…}`;function Xt(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=j(n.map(t=>[t,e[t]]),t,kt),a=j(r.map(t=>[t,e[t]]),t,kt);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}const Zt=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function Qt(e,t){let n=``;return Zt&&Zt in e&&(n=e[Zt]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${Xt(e,t)}`}function $t(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${j(e,t)} ]`)}const en=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function tn(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>en.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=Dt(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=j(n.map(t=>[t,e[t]]),t,kt);return`${r}${i}${a?` { ${a} }`:``}`}function nn([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function rn(e,t){return j(e,t,an,`
|
|
5
|
-
`)}function an(e,t){switch(e.nodeType){case 1:return on(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function on(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=j(n.map(t=>[t,e.getAttribute(t)]),t,nn,` `)),t.truncate-=s.length;let c=t.truncate,l=rn(e.children,t);return l&&l.length>c&&(l=`…(${e.children.length})`),`${i}${s}${a}${l}${o}`}const sn=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,cn=Symbol.for(`nodejs.util.inspect.custom`),ln=new WeakMap,un={},dn={undefined:(e,t)=>t.stylize(`undefined`,`undefined`),null:(e,t)=>t.stylize(`null`,`null`),boolean:(e,t)=>t.stylize(String(e),`boolean`),Boolean:(e,t)=>t.stylize(String(e),`boolean`),number:zt,Number:zt,bigint:Bt,BigInt:Bt,string:qt,String:qt,function:Pt,Function:Pt,symbol:Jt,Symbol:Jt,Array:At,Date:Nt,Map:Lt,Set:Ut,RegExp:Vt,Promise:Yt,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:$t,Int8Array:Mt,Uint8Array:Mt,Uint8ClampedArray:Mt,Int16Array:Mt,Uint16Array:Mt,Int32Array:Mt,Uint32Array:Mt,Float32Array:Mt,Float64Array:Mt,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:tn,HTMLCollection:rn,NodeList:rn},fn=(e,t,n,r)=>sn in e&&typeof e[sn]==`function`?e[sn](t):cn in e&&typeof e[cn]==`function`?e[cn](t.depth,t,r):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&ln.has(e.constructor)?ln.get(e.constructor)(e,t):un[n]?un[n](e,t):``,pn=Object.prototype.toString;function mn(e,t={}){let n=Tt(t,mn),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=pn.call(e).slice(8,-1)),i in dn)return dn[i](e,n);if(r&&e){let t=fn(e,n,i,mn);if(t)return typeof t==`string`?t:mn(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Xt(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?on(e,n):`constructor`in e?e.constructor===Object?Xt(e,n):Qt(e,n):e===Object(e)?Xt(e,n):n.stylize(String(e),i)}const{AsymmetricMatcher:hn,DOMCollection:gn,DOMElement:_n,Immutable:vn,ReactElement:yn,ReactTestComponent:bn}=xt,xn=[bn,yn,_n,gn,vn,hn];function M(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=A(e,{maxDepth:t,escapeString:!1,plugins:xn,...r})}catch{a=A(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:xn,...r})}return a.length>=i&&t>1?M(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}const Sn=/%[sdjifoOc%]/g;function Cn(e,t={}){let n=(e,n)=>t.prettifyObject?M(e,void 0,{printBasicPrototype:!1,escapeString:!1}):Tn(e,n);if(typeof e[0]!=`string`){let t=[];for(let r=0;r<e.length;r++)t.push(n(e[r],{depth:0,colors:!1}));return t.join(` `)}let r=e.length,i=1,a=e[0],o=String(a).replace(Sn,t=>{if(t===`%%`)return`%`;if(i>=r)return t;switch(t){case`%s`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():n(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[i++])).toString();case`%o`:return n(e[i++],{showHidden:!0,showProxy:!0});case`%O`:return n(e[i++]);case`%c`:return i++,``;case`%j`:try{return JSON.stringify(e[i++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return t}});for(let t=e[i];i<r;t=e[++i])typeof t!=`object`||!t?o+=` ${t}`:o+=` ${n(t)}`;return o}function wn(...e){return Cn(e)}function Tn(e,t={}){return t.truncate===0&&(t.truncate=1/0),mn(e,t)}function En(e,t={}){t.truncate===void 0&&(t.truncate=40);let n=Tn(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r===`[object Function]`){let t=e;return t.name?`[Function: ${t.name}]`:`[Function]`}else if(r===`[object Array]`)return`[ Array(${e.length}) ]`;else if(r===`[object Object]`){let t=Object.keys(e);return`{ Object (${t.length>2?`${t.splice(0,2).join(`, `)}, ...`:t.join(`, `)}) }`}else return n;return n}function Dn(e){let{message:t=`$$stack trace error`,stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,i=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=e=>e.stack;let a=Error(t).stack||``;return Error.prepareStackTrace=i,Error.stackTraceLimit=r,a}function N(e,t,n){let r=typeof e;if(!n.includes(r))throw TypeError(`${t} value must be ${n.join(` or `)}, received "${r}"`)}function On(e){return e??=[],Array.isArray(e)?e:[e]}function kn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function An(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function jn(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Mn(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function Nn(e){let t=new Set;return An(e)?[]:(Mn(e,t),Array.from(t))}const Pn={forceWritable:!1};function Fn(e,t=Pn){return In(e,new WeakMap,t)}function In(e,t,n=Pn){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=In(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=Nn(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=In(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function Ln(){}function Rn(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,`.$1`).split(`.`),i=e;for(let e of r)if(i=new Object(i)[e],i===void 0)return n;return i}function zn(){let e=null,t=null,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Bn(e){if(!Number.isNaN(e))return!1;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31==1}function Vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var P=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function Hn(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Un(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Wn(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function Gn(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===0?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===1?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new P(-1,i)),e[n[r-1]+1][0]=1,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&Qn(e),Zn(e),a=1;a<e.length;){if(e[a-1][0]===-1&&e[a][0]===1){let t=e[a-1][1],n=e[a][1],r=Wn(t,n),i=Wn(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new P(0,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new P(0,t.substring(0,i))),e[a-1][0]=1,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=-1,e[a+1][1]=t.substring(i),a++),a++}a++}}const Kn=/[^a-z0-9]/i,qn=/\s/,Jn=/[\r\n]/,Yn=/\n\r?\n$/,Xn=/^\r?\n\r?\n/;function Zn(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===0&&e[t+1][0]===0){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=Un(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=$n(n,r)+$n(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=$n(n,r)+$n(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function Qn(e){e.push(new P(0,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case 1:r++,a+=e[t][1],t++;break;case-1:n++,i+=e[t][1],t++;break;case 0:n+r>1?(n!==0&&r!==0&&(o=Hn(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===0?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new P(0,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=Un(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new P(-1,i)),t++),a.length&&(e.splice(t,0,new P(1,a)),t++),t++):t!==0&&e[t-1][0]===0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e.at(-1)?.[1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===0&&e[t+1][0]===0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Qn(e)}function $n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(Kn),a=r.match(Kn),o=i&&n.match(qn),s=a&&r.match(qn),c=o&&n.match(Jn),l=s&&r.match(Jn),u=c&&e.match(Yn),d=l&&t.match(Xn);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}const er=`Compared values have no visual difference.`;var tr={},nr;function rr(){if(nr)return tr;nr=1,Object.defineProperty(tr,`__esModule`,{value:!0}),tr.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[a?1:0];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:ee}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&ee<i&&c(C,w,n,ee,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return tr}var ir=Vn(rr());function ar(e,t){return e.replace(/\s+$/,e=>t(e))}function or(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${ar(e,i)}`)}function sr(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return or(e,t,n,r,i,a)}function cr(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return or(e,t,n,r,i,a)}function lr(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return or(e,t,n,r,i,a)}function ur(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function dr(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===0;)c+=1;if(t!==c)if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}for(;c!==n&&e[c][0]!==0;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(lr(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(sr(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push(cr(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===0;)c+=1;if(a!==c)if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=ur(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}for(;c!==n&&e[c][0]===-1;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===1;)y(e[c][1]),c+=1}return l&&(d[f]=ur(p,h,m,g,t)),d.join(`
|
|
6
|
-
`)}function fr(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case-1:return sr(i,a,t);case 1:return cr(i,a,t);default:return lr(i,a,t)}}).join(`
|
|
7
|
-
`)}const pr=e=>e;function mr(){return{aAnnotation:`Expected`,aColor:s.green,aIndicator:`-`,bAnnotation:`Received`,bColor:s.red,bIndicator:`+`,changeColor:s.inverse,changeLineTrailingSpaceColor:pr,commonColor:s.dim,commonIndicator:` `,commonLineTrailingSpaceColor:pr,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:s.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:pr}}function hr(e){return e&&typeof e==`function`?e:void 0}function gr(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:5}function _r(e={}){return{...mr(),...e,compareKeys:hr(e.compareKeys),contextLines:gr(e.contextLines)}}function vr(e){return e.length===1&&e[0].length===0}function yr(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case-1:t+=1;break;case 1:n+=1;break}}),{a:t,b:n}}function br({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}\n${i(f)}\n\n`}function xr(e,t,n){return br(n,yr(e))+(n.expand?fr(e,n):dr(e,n))+(t?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):``)}function Sr(e,t,n){let r=_r(n),[i,a]=wr(vr(e)?[]:e,vr(t)?[]:t,r);return xr(i,a,r)}function Cr(e,t,n,r,i){if(vr(e)&&vr(n)&&(e=[],n=[]),vr(t)&&vr(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return Sr(e,t,i);let[a,o]=wr(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case-1:n[1]=e[s],s+=1;break;case 1:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),xr(a,o,_r(i))}function wr(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=[],u=0,d=0;for(ir(a,o,c,(n,r,i)=>{for(;u!==r;u+=1)l.push(new P(-1,e[u]));for(;d!==i;d+=1)l.push(new P(1,t[d]));for(;n!==0;--n,u+=1,d+=1)l.push(new P(0,t[d]))});u!==a;u+=1)l.push(new P(-1,e[u]));for(;d!==o;d+=1)l.push(new P(1,t[d]));return[l,s]}function Tr(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`function`)return`function`;if(typeof e==`number`)return`number`;if(typeof e==`string`)return`string`;if(typeof e==`bigint`)return`bigint`;if(typeof e==`object`){if(e!=null){if(e.constructor===RegExp)return`regexp`;if(e.constructor===Map)return`map`;if(e.constructor===Set)return`set`;if(e.constructor===Date)return`date`}return`object`}else if(typeof e==`symbol`)return`symbol`;throw Error(`value of unknown type: ${e}`)}function Er(e){return e.includes(`\r
|
|
8
|
-
`)?`\r
|
|
9
|
-
`:`
|
|
10
|
-
`}function Dr(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
|
|
11
|
-
`),r=t.includes(`
|
|
12
|
-
`),s=Er(e),c=Er(t),l=n?`${e.split(s,i).join(s)}\n`:e,u=r?`${t.split(c,i).join(c)}\n`:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=0,u=0,d=[];return ir(a,o,c,(n,r,i)=>{l!==r&&d.push(new P(-1,e.slice(l,r))),u!==i&&d.push(new P(1,t.slice(u,i))),l=r+n,u=i+n,d.push(new P(0,t.slice(i,u)))}),l!==a&&d.push(new P(-1,e.slice(l))),u!==o&&d.push(new P(1,t.slice(u))),[d,s]}function Or(e,t,n){return t.reduce((t,r)=>t+(r[0]===0?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}var kr=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new P(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new P(this.op,this.line[0][1]):new P(this.op,Or(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
13
|
-
`)){let e=t.split(`
|
|
14
|
-
`),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},Ar=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
|
|
15
|
-
`)){let e=n.split(`
|
|
16
|
-
`),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new P(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new P(t,e)):e.length!==0&&this.pushDiffChangeLines(new P(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function jr(e,t){let n=new kr(-1,t),r=new kr(1,t),i=new Ar(n,r);return e.forEach(e=>{switch(e[0]){case-1:n.align(e);break;case 1:r.align(e);break;default:i.align(e)}}),i.getLines()}function Mr(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===0&&(n!==t||e[1]!==`
|
|
17
|
-
`))}return e.some(e=>e[0]===0)}function Nr(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
|
|
18
|
-
`)||t.includes(`
|
|
19
|
-
`),[i,a]=Pr(r?`${e}\n`:e,r?`${t}\n`:t,!0,n);if(Mr(i,r)){let e=_r(n);return xr(jr(i,e.changeColor),a,e)}}return Sr(e.split(`
|
|
20
|
-
`),t.split(`
|
|
21
|
-
`),n)}function Pr(e,t,n,r){let[i,a]=Dr(e,t,r);return n&&Gn(i),[i,a]}function Fr(e,t){let{commonColor:n}=_r(t);return n(e)}const{AsymmetricMatcher:Ir,DOMCollection:Lr,DOMElement:Rr,Immutable:zr,ReactElement:Br,ReactTestComponent:Vr}=xt,Hr=[Vr,Br,Rr,Lr,zr,Ir,xt.Error],Ur={maxDepth:20,plugins:Hr},Wr={callToJSON:!1,maxDepth:8,plugins:Hr};function Gr(e,t,n){if(Object.is(e,t))return``;let r=Tr(e),i=r,a=!1;if(r===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;i=e.getExpectedType(),a=i===`string`}if(i!==Tr(t)){let{aAnnotation:r,aColor:i,aIndicator:a,bAnnotation:o,bColor:s,bIndicator:c}=_r(n),l=Xr(Wr,n),u=A(e,l),d=A(t,l),f=1e5;function p(e){return e.length<=f?e:`${e.slice(0,f)}...`}return u=p(u),d=p(d),`${`${i(`${a} ${r}:`)} \n${u}`}\n\n${`${s(`${c} ${o}:`)} \n${d}`}`}if(!a)switch(r){case`string`:return Sr(e.split(`
|
|
22
|
-
`),t.split(`
|
|
23
|
-
`),n);case`boolean`:case`number`:return Kr(e,t,n);case`map`:return Yr(qr(e),qr(t),n);case`set`:return Yr(Jr(e),Jr(t),n);default:return Yr(e,t,n)}}function Kr(e,t,n){let r=A(e,Ur),i=A(t,Ur);return r===i?``:Sr(r.split(`
|
|
24
|
-
`),i.split(`
|
|
25
|
-
`),n)}function qr(e){return new Map(Array.from(e.entries()).sort())}function Jr(e){return new Set(Array.from(e.values()).sort())}function Yr(e,t,n){let r,i=!1;try{r=Zr(e,t,Xr(Ur,n),n)}catch{i=!0}let a=Fr(er,n);return(r===void 0||r===a)&&(r=Zr(e,t,Xr(Wr,n),n),r!==a&&!i&&(r=`${Fr("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${r}`)),r}function Xr(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=_r(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function Zr(e,t,n,r){let i={...n,indent:0},a=A(e,i),o=A(t,i);if(a===o)return Fr(er,r);{let i=A(e,n),s=A(t,n);return Cr(i.split(`
|
|
26
|
-
`),s.split(`
|
|
27
|
-
`),a.split(`
|
|
28
|
-
`),o.split(`
|
|
29
|
-
`),r)}}const Qr=2e4;function $r(e){return jn(e)===`Object`&&typeof e.asymmetricMatch==`function`}function ei(e,t){let n=jn(e);return n===jn(t)&&(n===`Object`||n===`Array`)}function ti(e,t,n){let{aAnnotation:r,bAnnotation:i}=_r(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=Qr&&e.length<=Qr&&t!==e){if(t.includes(`
|
|
30
|
-
`)||e.includes(`
|
|
31
|
-
`))return Nr(t,e,n);let[a]=Pr(t,e,!0),o=a.some(e=>e[0]===0),s=ri(r,i);return`${s(r)+oi(si(a,-1,o))}\n${s(i)+ai(si(a,1,o))}`}let a=Fn(t,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=ni(Fn(e,{forceWritable:!0}),a);return Gr(o,s,n)}function ni(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&e.cause!==void 0&&t.cause===void 0?(delete e.cause,{replacedActual:e,replacedExpected:t}):!ei(e,t)||n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),Nn(t).forEach(i=>{let a=t[i],o=e[i];if($r(a))a.asymmetricMatch(o)&&(e[i]=a);else if($r(o))o.asymmetricMatch(a)&&(t[i]=o);else if(ei(o,a)){let s=ni(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t})}function ri(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}function ii(e){return e.replace(/\s+$/gm,e=>`·`.repeat(e.length))}function ai(e){return s.red(ii(M(e)))}function oi(e){return s.green(ii(M(e)))}function si(e,t,n){return e.reduce((e,r)=>e+(r[0]===0?r[1]:r[0]===t?n?s.inverse(r[1]):r[1]:``),``)}function ci(e){return typeof e==`function`&&`_isMockFunction`in e&&e._isMockFunction===!0}const li=new Set,ui=new Set,di=new WeakMap;function fi(e={}){let{originalImplementation:t,restore:n,mockImplementation:r,resetToMockImplementation:i,resetToMockName:a}=e;n&&li.add(n);let o=Oi(t),s=ki(),c=vi({config:o,state:s,...e}),l=(r||t)?.length??0;return Object.defineProperty(c,`length`,{writable:!0,enumerable:!1,value:l,configurable:!0}),a&&(o.mockName=c.name||`vi.fn()`),di.set(c,o),ui.add(c),c._isMockFunction=!0,c.getMockImplementation=()=>o.onceMockImplementations[0]||o.mockImplementation,Object.defineProperty(c,`mock`,{configurable:!1,enumerable:!0,writable:!1,value:s}),c.mockImplementation=function(e){return o.mockImplementation=e,c},c.mockImplementationOnce=function(e){return o.onceMockImplementations.push(e),c},c.withImplementation=function(e,t){let n=o.mockImplementation,r=o.onceMockImplementations,i=()=>{o.mockImplementation=n,o.onceMockImplementations=r};o.mockImplementation=e,o.onceMockImplementations=[];let a=t();return typeof a==`object`&&typeof a?.then==`function`?a.then(()=>(i(),c)):(i(),c)},c.mockReturnThis=function(){return c.mockImplementation(function(){return this})},c.mockReturnValue=function(e){return c.mockImplementation(()=>e)},c.mockReturnValueOnce=function(e){return c.mockImplementationOnce(()=>e)},c.mockResolvedValue=function(e){return c.mockImplementation(()=>Promise.resolve(e))},c.mockResolvedValueOnce=function(e){return c.mockImplementationOnce(()=>Promise.resolve(e))},c.mockRejectedValue=function(e){return c.mockImplementation(()=>Promise.reject(e))},c.mockRejectedValueOnce=function(e){return c.mockImplementationOnce(()=>Promise.reject(e))},c.mockClear=function(){return s.calls=[],s.contexts=[],s.instances=[],s.invocationCallOrder=[],s.results=[],s.settledResults=[],c},c.mockReset=function(){return c.mockClear(),o.mockImplementation=i?r:void 0,o.mockName=a&&c.name||`vi.fn()`,o.onceMockImplementations=[],c},c.mockRestore=function(){return c.mockReset(),n?.()},c.mockName=function(e){return typeof e==`string`&&(o.mockName=e),c},c.getMockName=function(){return o.mockName||`vi.fn()`},Symbol.dispose&&(c[Symbol.dispose]=()=>c.mockRestore()),r&&c.mockImplementation(r),c}function pi(e){return e!=null&&ci(e)?e:fi({mockImplementation:e,resetToMockImplementation:!0})}function mi(e,t,n){gi(e!=null,`The vi.spyOn() function could not find an object to spy upon. The first argument must be defined.`),gi(typeof e==`object`||typeof e==`function`,`Vitest cannot spy on a primitive value.`);let[r,i]=hi(e,t)||[];gi(i||t in e,`The property "${String(t)}" is not defined on the ${typeof e}.`);let a=n||`value`,o=!1;a===`value`&&i&&i.value==null&&i.get&&(a=`get`,o=!0);let s;s=i?i[a]:a===`value`?e[t]:()=>e[t];let c=o&&s?s():s,l=typeof c;if(gi(l===`function`||a!==`value`&&s==null,`vi.spyOn() can only spy on a function. Received ${l}.`),ci(c))return c;let u=n=>{let{value:r,...o}=i||{configurable:!0,writable:!0};a!==`value`&&delete o.writable,o[a]=n,Object.defineProperty(e,t,o)},d=fi({restore:()=>{r===e?i&&!s?Object.defineProperty(e,t,i):u(s):Reflect.deleteProperty(e,t)},originalImplementation:c,resetToMockName:!0});try{u(o?()=>d:d)}catch(n){throw n instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]===`Module`&&(n.message.includes(`Cannot redefine property`)||n.message.includes(`Cannot replace module namespace`)||n.message.includes(`can't redefine non-configurable property`))?TypeError(`Cannot spy on export "${String(t)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:n}):n}return d}function hi(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return[r,e];r=Object.getPrototypeOf(r)}}function gi(e,t){if(!e)throw Error(t)}let _i=1;function vi({state:e,config:t,name:n,prototypeState:r,prototypeConfig:i,keepMembersImplementation:a,mockImplementation:o,prototypeMembers:s=[]}){let c=t.mockOriginal,l=o,u=n||c?.name||`Mock`,d={[u]:(function(...n){yi(n,e,r),bi(_i++,e,r);let o={type:`incomplete`,value:void 0},l={type:`incomplete`,value:void 0};xi(o,e,r),Si(l,e,r);let p=new.target?void 0:this,[m,h]=Ci(p,e,r),[g,_]=wi(p,e,r),v=t.onceMockImplementations.shift()||t.mockImplementation||i?.onceMockImplementations.shift()||i?.mockImplementation||c||function(){},y,b,x=!1;try{if(new.target){y=Reflect.construct(v,n,new.target);for(let e of s){let t=y[e];if(t!==f.prototype[e])continue;let n=ci(t),r=n?t.mock:void 0,i=n?di.get(t):void 0;y[e]=fi({originalImplementation:a?i?.mockOriginal:void 0,prototypeState:r,prototypeConfig:i,keepMembersImplementation:a})}}else y=v.apply(this,n)}catch(e){throw b=e,x=!0,e instanceof TypeError&&e.message.includes(`is not a constructor`)&&console.warn(`[vitest] The ${d[u].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`),e}finally{x?(o.type=`throw`,o.value=b,l.type=`rejected`,l.value=b):(o.type=`return`,o.value=y,new.target&&(e.contexts[g-1]=y,e.instances[m-1]=y,_!=null&&r&&(r.contexts[_-1]=y),h!=null&&r&&(r.instances[h-1]=y)),y instanceof Promise?y.then(e=>{l.type=`fulfilled`,l.value=e},e=>{l.type=`rejected`,l.value=e}):(l.type=`fulfilled`,l.value=y))}return y})},f=d[u],p=c||l;return p&&Ti(f,p),f}function yi(e,t,n){t.calls.push(e),n?.calls.push(e)}function bi(e,t,n){t.invocationCallOrder.push(e),n?.invocationCallOrder.push(e)}function xi(e,t,n){t.results.push(e),n?.results.push(e)}function Si(e,t,n){t.settledResults.push(e),n?.settledResults.push(e)}function Ci(e,t,n){return[t.instances.push(e),n?.instances.push(e)]}function wi(e,t,n){return[t.contexts.push(e),n?.contexts.push(e)]}function Ti(e,t){let{properties:n,descriptors:r}=Di(t);for(let t of n){let n=r[t];hi(e,t)||Object.defineProperty(e,t,n)}}const Ei=new Set([`length`,`name`,`prototype`,Symbol.for(`nodejs.util.promisify.custom`)]);function Di(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of r)n[i]||Ei.has(i)||(t.add(i),n[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}function Oi(e){return{mockImplementation:void 0,mockOriginal:e,mockName:`vi.fn()`,onceMockImplementations:[]}}function ki(){let e={calls:[],contexts:[],instances:[],invocationCallOrder:[],settledResults:[],results:[],get lastCall(){return e.calls.at(-1)}};return e}function Ai(){for(let e of li)e();li.clear()}function ji(){ui.forEach(e=>e.mockClear())}function Mi(){ui.forEach(e=>e.mockReset())}function Ni(e){return e&&(e[`@@__IMMUTABLE_ITERABLE__@@`]||e[`@@__IMMUTABLE_RECORD__@@`])}const Pi=Object.getPrototypeOf({});function Fi(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function Ii(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&Li(()=>n.message??=Ri(e.message)),typeof e.stack==`string`&&Li(()=>n.stack??=e.stack),typeof e.name==`string`&&Li(()=>n.name??=e.name),e.cause!=null&&Li(()=>n.cause??=Ii(e.cause,t))),Ii(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Ni(e))return Ii(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype===`AsyncFunction`)return`Promise`;if(typeof Element<`u`&&e instanceof Element)return e.tagName;if(typeof e.toJSON==`function`)return Ii(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=Ii(e,t)}catch(e){n[r]=Fi(e)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Pi;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=Ii(e[r],t)}catch(e){delete n[r],n[r]=Fi(e)}}),r=Object.getPrototypeOf(r);return e instanceof Error&&Li(()=>e.message=Ri(e.message)),n}}function Li(e){try{return e()}catch{}}function Ri(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``)}function zi(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=ti(r.actual,r.expected,{...t,...r.diffOptions})),`expected`in r&&typeof r.expected!=`string`&&(r.expected=M(r.expected,10)),`actual`in r&&typeof r.actual!=`string`&&(r.actual=M(r.actual,10));try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=zi(r.cause,t,n))}catch{}try{return Ii(r)}catch(e){return Ii(Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${r?.message}`))}}var Bi=e({Assertion:()=>G,AssertionError:()=>B,Should:()=>Hs,assert:()=>J,config:()=>H,expect:()=>Rs,should:()=>Vs,use:()=>Ws,util:()=>I}),Vi=Object.defineProperty,Hi=(e,t,n)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>Vi(e,`name`,{value:t,configurable:!0}),Ui=(e,t)=>{for(var n in t)Vi(e,n,{get:t[n],enumerable:!0})},Wi=(e,t,n)=>Hi(e,typeof t==`symbol`?t:t+``,n),I={};Ui(I,{addChainableMethod:()=>Xo,addLengthGuard:()=>Fo,addMethod:()=>Bo,addProperty:()=>No,checkError:()=>L,compareByInspect:()=>Qo,eql:()=>ao,events:()=>ko,expectTypes:()=>ta,flag:()=>R,getActual:()=>na,getMessage:()=>$a,getName:()=>is,getOperator:()=>rs,getOwnEnumerableProperties:()=>es,getOwnEnumerablePropertySymbols:()=>$o,getPathInfo:()=>Do,hasProperty:()=>wo,inspect:()=>U,isNaN:()=>ts,isNumeric:()=>K,isProxyEnabled:()=>Mo,isRegExp:()=>as,objDisplay:()=>Qa,overwriteChainableMethod:()=>Zo,overwriteMethod:()=>Ho,overwriteProperty:()=>Vo,proxify:()=>Ro,test:()=>Qi,transferFlags:()=>W,type:()=>z});var L={};Ui(L,{compatibleConstructor:()=>Ji,compatibleInstance:()=>qi,compatibleMessage:()=>Yi,getConstructorName:()=>Xi,getMessage:()=>Zi});function Gi(e){return e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`}F(Gi,`isErrorInstance`);function Ki(e){return Object.prototype.toString.call(e)===`[object RegExp]`}F(Ki,`isRegExp`);function qi(e,t){return Gi(t)&&e===t}F(qi,`compatibleInstance`);function Ji(e,t){return Gi(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t==`object`||typeof t==`function`)&&t.prototype?e.constructor===t||e instanceof t:!1}F(Ji,`compatibleConstructor`);function Yi(e,t){let n=typeof e==`string`?e:e.message;return Ki(t)?t.test(n):typeof t==`string`?n.indexOf(t)!==-1:!1}F(Yi,`compatibleMessage`);function Xi(e){let t=e;return Gi(e)?t=e.constructor.name:typeof e==`function`&&(t=e.name,t===``&&(t=new e().name||t)),t}F(Xi,`getConstructorName`);function Zi(e){let t=``;return e&&e.message?t=e.message:typeof e==`string`&&(t=e),t}F(Zi,`getMessage`);function R(e,t,n){let r=e.__flags||=Object.create(null);if(arguments.length===3)r[t]=n;else return r[t]}F(R,`flag`);function Qi(e,t){let n=R(e,`negate`),r=t[0];return n?!r:r}F(Qi,`test`);function z(e){if(e===void 0)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}F(z,`type`);var $i=`captureStackTrace`in Error,ea=class e extends Error{constructor(t=`Unspecified AssertionError`,n,r){for(let i in super(t),Wi(this,`message`),this.message=t,$i&&Error.captureStackTrace(this,r||e),n)i in this||(this[i]=n[i])}get name(){return`AssertionError`}get ok(){return!1}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e===!1?void 0:this.stack}}};F(ea,`AssertionError`);var B=ea;function ta(e,t){let n=R(e,`message`),r=R(e,`ssfi`);n=n?n+`: `:``,e=R(e,`object`),t=t.map(function(e){return e.toLowerCase()}),t.sort();let i=t.map(function(e,n){let r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an`:`a`;return(t.length>1&&n===t.length-1?`or `:``)+r+` `+e}).join(`, `),a=z(e).toLowerCase();if(!t.some(function(e){return a===e}))throw new B(n+`object tested must be `+i+`, but `+a+` given`,void 0,r)}F(ta,`expectTypes`);function na(e,t){return t.length>4?t[4]:e._obj}F(na,`getActual`);var ra={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`]},ia={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},aa=`…`;function oa(e,t){let n=ra[ia[t]]||ra[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}F(oa,`colorise`);function sa({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=oa),d}F(sa,`normaliseOptions`);function ca(e){return e>=`\ud800`&&e<=`\udbff`}F(ca,`isHighSurrogate`);function la(e,t,n=aa){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&ca(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}F(la,`truncate`);function V(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${aa}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${aa}(${e.length-l-1})`;break}c=``}return`${o}${c}`}F(V,`inspectList`);function ua(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}F(ua,`quoteComplexKey`);function da([e,t],n){return n.truncate-=2,typeof e==`string`?e=ua(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}F(da,`inspectProperty`);function fa(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=V(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=V(n.map(t=>[t,e[t]]),t,da)),`[ ${r}${i?`, ${i}`:``} ]`}F(fa,`inspectArray`);var pa=F(e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,`getArrayName`);function ma(e,t){let n=pa(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(la(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${aa}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=V(r.map(t=>[t,e[t]]),t,da)),`${n}[ ${i}${a?`, ${a}`:``} ]`}F(ma,`inspectTypedArray`);function ha(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${la(r[1],t.truncate-i.length-1)}`,`date`)}F(ha,`inspectDate`);function ga(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${la(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}F(ga,`inspectFunction`);function _a([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}F(_a,`inspectMapEntry`);function va(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}F(va,`mapToEntries`);function ya(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${V(va(e),t,_a)} }`)}F(ya,`inspectMap`);var ba=Number.isNaN||(e=>e!==e);function xa(e,t){return ba(e)?t.stylize(`NaN`,`number`):e===1/0?t.stylize(`Infinity`,`number`):e===-1/0?t.stylize(`-Infinity`,`number`):e===0?t.stylize(1/e==1/0?`+0`:`-0`,`number`):t.stylize(la(String(e),t.truncate),`number`)}F(xa,`inspectNumber`);function Sa(e,t){let n=la(e.toString(),t.truncate-1);return n!==aa&&(n+=`n`),t.stylize(n,`bigint`)}F(Sa,`inspectBigInt`);function Ca(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${la(i,r)}/${n}`,`regexp`)}F(Ca,`inspectRegExp`);function wa(e){let t=[];return e.forEach(e=>{t.push(e)}),t}F(wa,`arrayFromSet`);function Ta(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${V(wa(e),t)} }`)}F(Ta,`inspectSet`);var Ea=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),Da={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},Oa=16,ka=4;function Aa(e){return Da[e]||`\\u${`0000${e.charCodeAt(0).toString(Oa)}`.slice(-ka)}`}F(Aa,`escape`);function ja(e,t){return Ea.test(e)&&(e=e.replace(Ea,Aa)),t.stylize(`'${la(e,t.truncate-2)}'`,`string`)}F(ja,`inspectString`);function Ma(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}F(Ma,`inspectSymbol`);var Na=F(()=>`Promise{…}`,`getPromiseValue`);function Pa(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=V(n.map(t=>[t,e[t]]),t,da),a=V(r.map(t=>[t,e[t]]),t,da);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}F(Pa,`inspectObject`);var Fa=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function Ia(e,t){let n=``;return Fa&&Fa in e&&(n=e[Fa]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${Pa(e,t)}`}F(Ia,`inspectClass`);function La(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${V(e,t)} ]`)}F(La,`inspectArguments`);var Ra=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function za(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Ra.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=la(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=V(n.map(t=>[t,e[t]]),t,da);return`${r}${i}${a?` { ${a} }`:``}`}F(za,`inspectObject`);function Ba([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}F(Ba,`inspectAttribute`);function Va(e,t){return V(e,t,Ha,`
|
|
32
|
-
`)}F(Va,`inspectNodeCollection`);function Ha(e,t){switch(e.nodeType){case 1:return Ua(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}F(Ha,`inspectNode`);function Ua(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=V(n.map(t=>[t,e.getAttribute(t)]),t,Ba,` `)),t.truncate-=s.length;let c=t.truncate,l=Va(e.children,t);return l&&l.length>c&&(l=`${aa}(${e.children.length})`),`${i}${s}${a}${l}${o}`}F(Ua,`inspectHTML`);var Wa=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,Ga=Symbol.for(`nodejs.util.inspect.custom`),Ka=new WeakMap,qa={},Ja={undefined:F((e,t)=>t.stylize(`undefined`,`undefined`),`undefined`),null:F((e,t)=>t.stylize(`null`,`null`),`null`),boolean:F((e,t)=>t.stylize(String(e),`boolean`),`boolean`),Boolean:F((e,t)=>t.stylize(String(e),`boolean`),`Boolean`),number:xa,Number:xa,bigint:Sa,BigInt:Sa,string:ja,String:ja,function:ga,Function:ga,symbol:Ma,Symbol:Ma,Array:fa,Date:ha,Map:ya,Set:Ta,RegExp:Ca,Promise:Na,WeakSet:F((e,t)=>t.stylize(`WeakSet{…}`,`special`),`WeakSet`),WeakMap:F((e,t)=>t.stylize(`WeakMap{…}`,`special`),`WeakMap`),Arguments:La,Int8Array:ma,Uint8Array:ma,Uint8ClampedArray:ma,Int16Array:ma,Uint16Array:ma,Int32Array:ma,Uint32Array:ma,Float32Array:ma,Float64Array:ma,Generator:F(()=>``,`Generator`),DataView:F(()=>``,`DataView`),ArrayBuffer:F(()=>``,`ArrayBuffer`),Error:za,HTMLCollection:Va,NodeList:Va},Ya=F((e,t,n,r)=>Wa in e&&typeof e[Wa]==`function`?e[Wa](t):Ga in e&&typeof e[Ga]==`function`?e[Ga](t.depth,t,r):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&Ka.has(e.constructor)?Ka.get(e.constructor)(e,t):qa[n]?qa[n](e,t):``,`inspectCustom`),Xa=Object.prototype.toString;function Za(e,t={}){let n=sa(t,Za),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=Xa.call(e).slice(8,-1)),i in Ja)return Ja[i](e,n);if(r&&e){let t=Ya(e,n,i,Za);if(t)return typeof t==`string`?t:Za(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Pa(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?Ua(e,n):`constructor`in e?e.constructor===Object?Pa(e,n):Ia(e,n):e===Object(e)?Pa(e,n):n.stylize(String(e),i)}F(Za,`inspect`);var H={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:[`then`,`catch`,`inspect`,`toJSON`],deepEqual:null};function U(e,t,n,r){return Za(e,{colors:r,depth:n===void 0?2:n,showHidden:t,truncate:H.truncateThreshold?H.truncateThreshold:1/0})}F(U,`inspect`);function Qa(e){let t=U(e),n=Object.prototype.toString.call(e);if(H.truncateThreshold&&t.length>=H.truncateThreshold){if(n===`[object Function]`)return!e.name||e.name===``?`[Function]`:`[Function: `+e.name+`]`;if(n===`[object Array]`)return`[ Array(`+e.length+`) ]`;if(n===`[object Object]`){let t=Object.keys(e);return`{ Object (`+(t.length>2?t.splice(0,2).join(`, `)+`, ...`:t.join(`, `))+`) }`}else return t}else return t}F(Qa,`objDisplay`);function $a(e,t){let n=R(e,`negate`),r=R(e,`object`),i=t[3],a=na(e,t),o=n?t[2]:t[1],s=R(e,`message`);return typeof o==`function`&&(o=o()),o||=``,o=o.replace(/#\{this\}/g,function(){return Qa(r)}).replace(/#\{act\}/g,function(){return Qa(a)}).replace(/#\{exp\}/g,function(){return Qa(i)}),s?s+`: `+o:o}F($a,`getMessage`);function W(e,t,n){let r=e.__flags||=Object.create(null);for(let e in t.__flags||=Object.create(null),n=arguments.length===3?n:!0,r)(n||e!==`object`&&e!==`ssfi`&&e!==`lockSsfi`&&e!=`message`)&&(t.__flags[e]=r[e])}F(W,`transferFlags`);function eo(e){if(e===void 0)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}F(eo,`type`);function to(){this._key=`chai/deep-eql__`+Math.random()+Date.now()}F(to,`FakeMap`),to.prototype={get:F(function(e){return e[this._key]},`get`),set:F(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},`set`)};var no=typeof WeakMap==`function`?WeakMap:to;function ro(e,t,n){if(!n||So(e)||So(t))return null;var r=n.get(e);if(r){var i=r.get(t);if(typeof i==`boolean`)return i}return null}F(ro,`memoizeCompare`);function io(e,t,n,r){if(!(!n||So(e)||So(t))){var i=n.get(e);i?i.set(t,r):(i=new no,i.set(t,r),n.set(e,i))}}F(io,`memoizeSet`);var ao=oo;function oo(e,t,n){if(n&&n.comparator)return co(e,t,n);var r=so(e,t);return r===null?co(e,t,n):r}F(oo,`deepEqual`);function so(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t?!0:So(e)||So(t)?!1:null}F(so,`simpleEqual`);function co(e,t,n){n||={},n.memoize=n.memoize===!1?!1:n.memoize||new no;var r=n&&n.comparator,i=ro(e,t,n.memoize);if(i!==null)return i;var a=ro(t,e,n.memoize);if(a!==null)return a;if(r){var o=r(e,t);if(o===!1||o===!0)return io(e,t,n.memoize,o),o;var s=so(e,t);if(s!==null)return s}var c=eo(e);if(c!==eo(t))return io(e,t,n.memoize,!1),!1;io(e,t,n.memoize,!0);var l=lo(e,t,c,n);return io(e,t,n.memoize,l),l}F(co,`extensiveDeepEqual`);function lo(e,t,n,r){switch(n){case`String`:case`Number`:case`Boolean`:case`Date`:return oo(e.valueOf(),t.valueOf());case`Promise`:case`Symbol`:case`function`:case`WeakMap`:case`WeakSet`:return e===t;case`Error`:return bo(e,t,[`name`,`message`,`code`],r);case`Arguments`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`Array`:return po(e,t,r);case`RegExp`:return uo(e,t);case`Generator`:return mo(e,t,r);case`DataView`:return po(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case`ArrayBuffer`:return po(new Uint8Array(e),new Uint8Array(t),r);case`Set`:return fo(e,t,r);case`Map`:return fo(e,t,r);case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.Instant`:case`Temporal.ZonedDateTime`:case`Temporal.PlainYearMonth`:case`Temporal.PlainMonthDay`:return e.equals(t);case`Temporal.Duration`:return e.total(`nanoseconds`)===t.total(`nanoseconds`);case`Temporal.TimeZone`:case`Temporal.Calendar`:return e.toString()===t.toString();default:return xo(e,t,r)}}F(lo,`extensiveDeepEqualByType`);function uo(e,t){return e.toString()===t.toString()}F(uo,`regexpEqual`);function fo(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var r=[],i=[];return e.forEach(F(function(e,t){r.push([e,t])},`gatherEntries`)),t.forEach(F(function(e,t){i.push([e,t])},`gatherEntries`)),po(r.sort(),i.sort(),n)}F(fo,`entriesEqual`);function po(e,t,n){var r=e.length;if(r!==t.length)return!1;if(r===0)return!0;for(var i=-1;++i<r;)if(oo(e[i],t[i],n)===!1)return!1;return!0}F(po,`iterableEqual`);function mo(e,t,n){return po(_o(e),_o(t),n)}F(mo,`generatorEqual`);function ho(e){return typeof Symbol<`u`&&typeof e==`object`&&Symbol.iterator!==void 0&&typeof e[Symbol.iterator]==`function`}F(ho,`hasIteratorFunction`);function go(e){if(ho(e))try{return _o(e[Symbol.iterator]())}catch{return[]}return[]}F(go,`getIteratorEntries`);function _o(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}F(_o,`getGeneratorEntries`);function vo(e){var t=[];for(var n in e)t.push(n);return t}F(vo,`getEnumerableKeys`);function yo(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}F(yo,`getEnumerableSymbols`);function bo(e,t,n,r){var i=n.length;if(i===0)return!0;for(var a=0;a<i;a+=1)if(oo(e[n[a]],t[n[a]],r)===!1)return!1;return!0}F(bo,`keysEqual`);function xo(e,t,n){var r=vo(e),i=vo(t),a=yo(e),o=yo(t);if(r=r.concat(a),i=i.concat(o),r.length&&r.length===i.length)return po(Co(r).sort(),Co(i).sort())===!1?!1:bo(e,t,r,n);var s=go(e),c=go(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),po(s,c,n)):r.length===0&&s.length===0&&i.length===0&&c.length===0}F(xo,`objectEqual`);function So(e){return typeof e!=`object`||!e}F(So,`isPrimitive`);function Co(e){return e.map(F(function(e){return typeof e==`symbol`?e.toString():e},`mapSymbol`))}F(Co,`mapSymbols`);function wo(e,t){return e==null?!1:t in Object(e)}F(wo,`hasProperty`);function To(e){return e.replace(/([^\\])\[/g,`$1.[`).match(/(\\\.|[^.]+?)+/g).map(e=>{if(e===`constructor`||e===`__proto__`||e===`prototype`)return{};let t=/^\[(\d+)\]$/.exec(e),n=null;return n=t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,`$1`)},n})}F(To,`parsePath`);function Eo(e,t,n){let r=e,i=null;n=n===void 0?t.length:n;for(let e=0;e<n;e++){let a=t[e];r&&(r=a.p===void 0?r[a.i]:r[a.p],e===n-1&&(i=r))}return i}F(Eo,`internalGetPathValue`);function Do(e,t){let n=To(t),r=n[n.length-1],i={parent:n.length>1?Eo(e,n,n.length-1):e,name:r.p||r.i,value:Eo(e,n)};return i.exists=wo(i.parent,i.name),i}F(Do,`getPathInfo`);var Oo=class e{constructor(t,n,r,i){return Wi(this,`__flags`,{}),R(this,`ssfi`,r||e),R(this,`lockSsfi`,i),R(this,`object`,t),R(this,`message`,n),R(this,`eql`,H.deepEqual||ao),Ro(this)}static get includeStack(){return console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),H.includeStack}static set includeStack(e){console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),H.includeStack=e}static get showDiff(){return console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),H.showDiff}static set showDiff(e){console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),H.showDiff=e}static addProperty(e,t){No(this.prototype,e,t)}static addMethod(e,t){Bo(this.prototype,e,t)}static addChainableMethod(e,t,n){Xo(this.prototype,e,t,n)}static overwriteProperty(e,t){Vo(this.prototype,e,t)}static overwriteMethod(e,t){Ho(this.prototype,e,t)}static overwriteChainableMethod(e,t,n){Zo(this.prototype,e,t,n)}assert(e,t,n,r,i,a){let o=Qi(this,arguments);if(!1!==a&&(a=!0),r===void 0&&i===void 0&&(a=!1),!0!==H.showDiff&&(a=!1),!o){t=$a(this,arguments);let e={actual:na(this,arguments),expected:r,showDiff:a},n=rs(this,arguments);throw n&&(e.operator=n),new B(t,e,H.includeStack?this.assert:R(this,`ssfi`))}}get _obj(){return R(this,`object`)}set _obj(e){R(this,`object`,e)}};F(Oo,`Assertion`);var G=Oo,ko=new EventTarget,Ao=class extends Event{constructor(e,t,n){super(e),this.name=String(t),this.fn=n}};F(Ao,`PluginEvent`);var jo=Ao;function Mo(){return H.useProxy&&typeof Proxy<`u`&&typeof Reflect<`u`}F(Mo,`isProxyEnabled`);function No(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:F(function e(){!Mo()&&!R(this,`lockSsfi`)&&R(this,`ssfi`,e);let t=n.call(this);if(t!==void 0)return t;let r=new G;return W(this,r),r},`propertyGetter`),configurable:!0}),ko.dispatchEvent(new jo(`addProperty`,t,n))}F(No,`addProperty`);var Po=Object.getOwnPropertyDescriptor(function(){},`length`);function Fo(e,t,n){return Po.configurable&&Object.defineProperty(e,`length`,{get:F(function(){throw n?Error(`Invalid Chai property: `+t+`.length. Due to a compatibility issue, "length" cannot directly follow "`+t+`". Use "`+t+`.lengthOf" instead.`):Error(`Invalid Chai property: `+t+`.length. See docs for proper usage of "`+t+`".`)},`get`)}),e}F(Fo,`addLengthGuard`);function Io(e){let t=Object.getOwnPropertyNames(e);function n(e){t.indexOf(e)===-1&&t.push(e)}F(n,`addProperty`);let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}F(Io,`getProperties`);var Lo=[`__flags`,`__methods`,`_obj`,`assert`];function Ro(e,t){return Mo()?new Proxy(e,{get:F(function e(n,r){if(typeof r==`string`&&H.proxyExcludedKeys.indexOf(r)===-1&&!Reflect.has(n,r)){if(t)throw Error(`Invalid Chai property: `+t+`.`+r+`. See docs for proper usage of "`+t+`".`);let e=null,i=4;throw Io(n).forEach(function(t){if(!Object.prototype.hasOwnProperty(t)&&Lo.indexOf(t)===-1){let n=zo(r,t,i);n<i&&(e=t,i=n)}}),e===null?Error(`Invalid Chai property: `+r):Error(`Invalid Chai property: `+r+`. Did you mean "`+e+`"?`)}return Lo.indexOf(r)===-1&&!R(n,`lockSsfi`)&&R(n,`ssfi`,e),Reflect.get(n,r)},`proxyGetter`)}):e}F(Ro,`proxify`);function zo(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let n=0;n<=e.length;n++)r[n]=Array(t.length+1).fill(0),r[n][0]=n;for(let e=0;e<t.length;e++)r[0][e]=e;for(let i=1;i<=e.length;i++){let a=e.charCodeAt(i-1);for(let e=1;e<=t.length;e++){if(Math.abs(i-e)>=n){r[i][e]=n;continue}r[i][e]=Math.min(r[i-1][e]+1,r[i][e-1]+1,r[i-1][e-1]+(a===t.charCodeAt(e-1)?0:1))}}return r[e.length][t.length]}F(zo,`stringDistanceCapped`);function Bo(e,t,n){let r=F(function(){R(this,`lockSsfi`)||R(this,`ssfi`,r);let e=n.apply(this,arguments);if(e!==void 0)return e;let t=new G;return W(this,t),t},`methodWrapper`);Fo(r,t,!1),e[t]=Ro(r,t),ko.dispatchEvent(new jo(`addMethod`,t,n))}F(Bo,`addMethod`);function Vo(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),i=F(function(){},`_super`);r&&typeof r.get==`function`&&(i=r.get),Object.defineProperty(e,t,{get:F(function e(){!Mo()&&!R(this,`lockSsfi`)&&R(this,`ssfi`,e);let t=R(this,`lockSsfi`);R(this,`lockSsfi`,!0);let r=n(i).call(this);if(R(this,`lockSsfi`,t),r!==void 0)return r;let a=new G;return W(this,a),a},`overwritingPropertyGetter`),configurable:!0})}F(Vo,`overwriteProperty`);function Ho(e,t,n){let r=e[t],i=F(function(){throw Error(t+` is not a function`)},`_super`);r&&typeof r==`function`&&(i=r);let a=F(function(){R(this,`lockSsfi`)||R(this,`ssfi`,a);let e=R(this,`lockSsfi`);R(this,`lockSsfi`,!0);let t=n(i).apply(this,arguments);if(R(this,`lockSsfi`,e),t!==void 0)return t;let r=new G;return W(this,r),r},`overwritingMethodWrapper`);Fo(a,t,!1),e[t]=Ro(a,t)}F(Ho,`overwriteMethod`);var Uo=typeof Object.setPrototypeOf==`function`,Wo=F(function(){},`testFn`),Go=Object.getOwnPropertyNames(Wo).filter(function(e){let t=Object.getOwnPropertyDescriptor(Wo,e);return typeof t==`object`?!t.configurable:!0}),Ko=Function.prototype.call,qo=Function.prototype.apply,Jo=class extends jo{constructor(e,t,n,r){super(e,t,n),this.chainingBehavior=r}};F(Jo,`PluginAddChainableMethodEvent`);var Yo=Jo;function Xo(e,t,n,r){typeof r!=`function`&&(r=F(function(){},`chainingBehavior`));let i={method:n,chainingBehavior:r};e.__methods||={},e.__methods[t]=i,Object.defineProperty(e,t,{get:F(function(){i.chainingBehavior.call(this);let n=F(function(){R(this,`lockSsfi`)||R(this,`ssfi`,n);let e=i.method.apply(this,arguments);if(e!==void 0)return e;let t=new G;return W(this,t),t},`chainableMethodWrapper`);if(Fo(n,t,!0),Uo){let e=Object.create(this);e.call=Ko,e.apply=qo,Object.setPrototypeOf(n,e)}else Object.getOwnPropertyNames(e).forEach(function(t){if(Go.indexOf(t)!==-1)return;let r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)});return W(this,n),Ro(n)},`chainableMethodGetter`),configurable:!0}),ko.dispatchEvent(new Yo(`addChainableMethod`,t,n,r))}F(Xo,`addChainableMethod`);function Zo(e,t,n,r){let i=e.__methods[t],a=i.chainingBehavior;i.chainingBehavior=F(function(){let e=r(a).call(this);if(e!==void 0)return e;let t=new G;return W(this,t),t},`overwritingChainableMethodGetter`);let o=i.method;i.method=F(function(){let e=n(o).apply(this,arguments);if(e!==void 0)return e;let t=new G;return W(this,t),t},`overwritingChainableMethodWrapper`)}F(Zo,`overwriteChainableMethod`);function Qo(e,t){return U(e)<U(t)?-1:1}F(Qo,`compareByInspect`);function $o(e){return typeof Object.getOwnPropertySymbols==`function`?Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}):[]}F($o,`getOwnEnumerablePropertySymbols`);function es(e){return Object.keys(e).concat($o(e))}F(es,`getOwnEnumerableProperties`);var ts=Number.isNaN;function ns(e){let t=z(e);return[`Array`,`Object`,`Function`].indexOf(t)!==-1}F(ns,`isObjectType`);function rs(e,t){let n=R(e,`operator`),r=R(e,`negate`),i=t[3],a=r?t[2]:t[1];if(n)return n;if(typeof a==`function`&&(a=a()),a||=``,!a||/\shave\s/.test(a))return;let o=ns(i);return/\snot\s/.test(a)?o?`notDeepStrictEqual`:`notStrictEqual`:o?`deepStrictEqual`:`strictEqual`}F(rs,`getOperator`);function is(e){return e.name}F(is,`getName`);function as(e){return Object.prototype.toString.call(e)===`[object RegExp]`}F(as,`isRegExp`);function K(e){return[`Number`,`BigInt`].includes(z(e))}F(K,`isNumeric`);var{flag:q}=I;[`to`,`be`,`been`,`is`,`and`,`has`,`have`,`with`,`that`,`which`,`at`,`of`,`same`,`but`,`does`,`still`,`also`].forEach(function(e){G.addProperty(e)}),G.addProperty(`not`,function(){q(this,`negate`,!0)}),G.addProperty(`deep`,function(){q(this,`deep`,!0)}),G.addProperty(`nested`,function(){q(this,`nested`,!0)}),G.addProperty(`own`,function(){q(this,`own`,!0)}),G.addProperty(`ordered`,function(){q(this,`ordered`,!0)}),G.addProperty(`any`,function(){q(this,`any`,!0),q(this,`all`,!1)}),G.addProperty(`all`,function(){q(this,`all`,!0),q(this,`any`,!1)});var os={function:[`function`,`asyncfunction`,`generatorfunction`,`asyncgeneratorfunction`],asyncfunction:[`asyncfunction`,`asyncgeneratorfunction`],generatorfunction:[`generatorfunction`,`asyncgeneratorfunction`],asyncgeneratorfunction:[`asyncgeneratorfunction`]};function ss(e,t){t&&q(this,`message`,t),e=e.toLowerCase();let n=q(this,`object`),r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an `:`a `,i=z(n).toLowerCase();os.function.includes(e)?this.assert(os[e].includes(i),`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e):this.assert(e===i,`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e)}F(ss,`an`),G.addChainableMethod(`an`,ss),G.addChainableMethod(`a`,ss);function cs(e,t){return ts(e)&&ts(t)||e===t}F(cs,`SameValueZero`);function ls(){q(this,`contains`,!0)}F(ls,`includeChainingBehavior`);function us(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=z(n).toLowerCase(),i=q(this,`message`),a=q(this,`negate`),o=q(this,`ssfi`),s=q(this,`deep`),c=s?`deep `:``,l=s?q(this,`eql`):cs;i=i?i+`: `:``;let u=!1;switch(r){case`string`:u=n.indexOf(e)!==-1;break;case`weakset`:if(s)throw new B(i+`unable to use .deep.include with WeakSet`,void 0,o);u=n.has(e);break;case`map`:n.forEach(function(t){u||=l(t,e)});break;case`set`:s?n.forEach(function(t){u||=l(t,e)}):u=n.has(e);break;case`array`:u=s?n.some(function(t){return l(t,e)}):n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new B(i+`the given combination of arguments (`+r+` and `+z(e).toLowerCase()+`) is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a `+z(e).toLowerCase(),void 0,o);let t=Object.keys(e),s=null,c=0;if(t.forEach(function(r){let i=new G(n);if(W(this,i,!0),q(i,`lockSsfi`,!0),!a||t.length===1){i.property(r,e[r]);return}try{i.property(r,e[r])}catch(e){if(!L.compatibleConstructor(e,B))throw e;s===null&&(s=e),c++}},this),a&&t.length>1&&c===t.length)throw s;return}}this.assert(u,`expected #{this} to `+c+`include `+U(e),`expected #{this} to not `+c+`include `+U(e))}F(us,`include`),G.addChainableMethod(`include`,us,ls),G.addChainableMethod(`contain`,us,ls),G.addChainableMethod(`contains`,us,ls),G.addChainableMethod(`includes`,us,ls),G.addProperty(`ok`,function(){this.assert(q(this,`object`),`expected #{this} to be truthy`,`expected #{this} to be falsy`)}),G.addProperty(`true`,function(){this.assert(!0===q(this,`object`),`expected #{this} to be true`,`expected #{this} to be false`,!q(this,`negate`))}),G.addProperty(`numeric`,function(){let e=q(this,`object`);this.assert([`Number`,`BigInt`].includes(z(e)),`expected #{this} to be numeric`,`expected #{this} to not be numeric`,!q(this,`negate`))}),G.addProperty(`callable`,function(){let e=q(this,`object`),t=q(this,`ssfi`),n=q(this,`message`),r=n?`${n}: `:``,i=q(this,`negate`),a=i?`${r}expected ${U(e)} not to be a callable function`:`${r}expected ${U(e)} to be a callable function`,o=[`Function`,`AsyncFunction`,`GeneratorFunction`,`AsyncGeneratorFunction`].includes(z(e));if(o&&i||!o&&!i)throw new B(a,void 0,t)}),G.addProperty(`false`,function(){this.assert(!1===q(this,`object`),`expected #{this} to be false`,`expected #{this} to be true`,!!q(this,`negate`))}),G.addProperty(`null`,function(){this.assert(q(this,`object`)===null,`expected #{this} to be null`,`expected #{this} not to be null`)}),G.addProperty(`undefined`,function(){this.assert(q(this,`object`)===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`)}),G.addProperty(`NaN`,function(){this.assert(ts(q(this,`object`)),`expected #{this} to be NaN`,`expected #{this} not to be NaN`)});function ds(){let e=q(this,`object`);this.assert(e!=null,`expected #{this} to exist`,`expected #{this} to not exist`)}F(ds,`assertExist`),G.addProperty(`exist`,ds),G.addProperty(`exists`,ds),G.addProperty(`empty`,function(){let e=q(this,`object`),t=q(this,`ssfi`),n=q(this,`message`),r;switch(n=n?n+`: `:``,z(e).toLowerCase()){case`array`:case`string`:r=e.length;break;case`map`:case`set`:r=e.size;break;case`weakmap`:case`weakset`:throw new B(n+`.empty was passed a weak collection`,void 0,t);case`function`:throw new B((n+`.empty was passed a function `+is(e)).trim(),void 0,t);default:if(e!==Object(e))throw new B(n+`.empty was passed non-string primitive `+U(e),void 0,t);r=Object.keys(e).length}this.assert(r===0,`expected #{this} to be empty`,`expected #{this} not to be empty`)});function fs(){let e=z(q(this,`object`));this.assert(e===`Arguments`,`expected #{this} to be arguments but got `+e,`expected #{this} to not be arguments`)}F(fs,`checkArguments`),G.addProperty(`arguments`,fs),G.addProperty(`Arguments`,fs);function ps(e,t){t&&q(this,`message`,t);let n=q(this,`object`);if(q(this,`deep`)){let t=q(this,`lockSsfi`);q(this,`lockSsfi`,!0),this.eql(e),q(this,`lockSsfi`,t)}else this.assert(e===n,`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{exp}`,e,this._obj,!0)}F(ps,`assertEqual`),G.addMethod(`equal`,ps),G.addMethod(`equals`,ps),G.addMethod(`eq`,ps);function ms(e,t){t&&q(this,`message`,t);let n=q(this,`eql`);this.assert(n(e,q(this,`object`)),`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,this._obj,!0)}F(ms,`assertEql`),G.addMethod(`eql`,ms),G.addMethod(`eqls`,ms);function hs(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=z(n).toLowerCase(),c=z(e).toLowerCase();if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)throw new B(a+`the argument to above must be a date`,void 0,o);if(!K(e)&&(r||K(n)))throw new B(a+`the argument to above must be a number`,void 0,o);if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;throw new B(a+`expected `+e+` to be a number or a date`,void 0,o)}if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>e,`expected #{this} to have a `+t+` above #{exp} but got #{act}`,`expected #{this} to not have a `+t+` above #{exp}`,e,r)}else this.assert(n>e,`expected #{this} to be above #{exp}`,`expected #{this} to be at most #{exp}`,e)}F(hs,`assertAbove`),G.addMethod(`above`,hs),G.addMethod(`gt`,hs),G.addMethod(`greaterThan`,hs);function gs(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=z(n).toLowerCase(),c=z(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to least must be a date`;else if(!K(e)&&(r||K(n)))l=a+`the argument to least must be a number`;else if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new B(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>=e,`expected #{this} to have a `+t+` at least #{exp} but got #{act}`,`expected #{this} to have a `+t+` below #{exp}`,e,r)}else this.assert(n>=e,`expected #{this} to be at least #{exp}`,`expected #{this} to be below #{exp}`,e)}F(gs,`assertLeast`),G.addMethod(`least`,gs),G.addMethod(`gte`,gs),G.addMethod(`greaterThanOrEqual`,gs);function _s(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=z(n).toLowerCase(),c=z(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to below must be a date`;else if(!K(e)&&(r||K(n)))l=a+`the argument to below must be a number`;else if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new B(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<e,`expected #{this} to have a `+t+` below #{exp} but got #{act}`,`expected #{this} to not have a `+t+` below #{exp}`,e,r)}else this.assert(n<e,`expected #{this} to be below #{exp}`,`expected #{this} to be at least #{exp}`,e)}F(_s,`assertBelow`),G.addMethod(`below`,_s),G.addMethod(`lt`,_s),G.addMethod(`lessThan`,_s);function vs(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=z(n).toLowerCase(),c=z(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to most must be a date`;else if(!K(e)&&(r||K(n)))l=a+`the argument to most must be a number`;else if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new B(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<=e,`expected #{this} to have a `+t+` at most #{exp} but got #{act}`,`expected #{this} to have a `+t+` above #{exp}`,e,r)}else this.assert(n<=e,`expected #{this} to be at most #{exp}`,`expected #{this} to be above #{exp}`,e)}F(vs,`assertMost`),G.addMethod(`most`,vs),G.addMethod(`lte`,vs),G.addMethod(`lessThanOrEqual`,vs),G.addMethod(`within`,function(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`doLength`),a=q(this,`message`),o=a?a+`: `:``,s=q(this,`ssfi`),c=z(r).toLowerCase(),l=z(e).toLowerCase(),u=z(t).toLowerCase(),d,f=!0,p=l===`date`&&u===`date`?e.toISOString()+`..`+t.toISOString():e+`..`+t;if(i&&c!==`map`&&c!==`set`&&new G(r,a,s,!0).to.have.property(`length`),!i&&c===`date`&&(l!==`date`||u!==`date`))d=o+`the arguments to within must be dates`;else if((!K(e)||!K(t))&&(i||K(r)))d=o+`the arguments to within must be numbers`;else if(!i&&c!==`date`&&!K(r)){let e=c===`string`?`'`+r+`'`:r;d=o+`expected `+e+` to be a number or a date`}else f=!1;if(f)throw new B(d,void 0,s);if(i){let n=`length`,i;c===`map`||c===`set`?(n=`size`,i=r.size):i=r.length,this.assert(i>=e&&i<=t,`expected #{this} to have a `+n+` within `+p,`expected #{this} to not have a `+n+` within `+p)}else this.assert(r>=e&&r<=t,`expected #{this} to be within `+p,`expected #{this} to not be within `+p)});function ys(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`ssfi`),i=q(this,`message`),a;try{a=n instanceof e}catch(t){throw t instanceof TypeError?(i=i?i+`: `:``,new B(i+`The instanceof assertion needs a constructor but `+z(e)+` was given.`,void 0,r)):t}let o=is(e);o??=`an unnamed constructor`,this.assert(a,`expected #{this} to be an instance of `+o,`expected #{this} to not be an instance of `+o)}F(ys,`assertInstanceOf`),G.addMethod(`instanceof`,ys),G.addMethod(`instanceOf`,ys);function bs(e,t,n){n&&q(this,`message`,n);let r=q(this,`nested`),i=q(this,`own`),a=q(this,`message`),o=q(this,`object`),s=q(this,`ssfi`),c=typeof e;if(a=a?a+`: `:``,r){if(c!==`string`)throw new B(a+`the argument to property must be a string when using nested syntax`,void 0,s)}else if(c!==`string`&&c!==`number`&&c!==`symbol`)throw new B(a+`the argument to property must be a string, number, or symbol`,void 0,s);if(r&&i)throw new B(a+`The "nested" and "own" flags cannot be combined.`,void 0,s);if(o==null)throw new B(a+`Target cannot be null or undefined.`,void 0,s);let l=q(this,`deep`),u=q(this,`negate`),d=r?Do(o,e):null,f=r?d.value:o[e],p=l?q(this,`eql`):(e,t)=>e===t,m=``;l&&(m+=`deep `),i&&(m+=`own `),r&&(m+=`nested `),m+=`property `;let h;h=i?Object.prototype.hasOwnProperty.call(o,e):r?d.exists:wo(o,e),(!u||arguments.length===1)&&this.assert(h,`expected #{this} to have `+m+U(e),`expected #{this} to not have `+m+U(e)),arguments.length>1&&this.assert(h&&p(t,f),`expected #{this} to have `+m+U(e)+` of #{exp}, but got #{act}`,`expected #{this} to not have `+m+U(e)+` of #{act}`,t,f),q(this,`object`,f)}F(bs,`assertProperty`),G.addMethod(`property`,bs);function xs(e,t,n){q(this,`own`,!0),bs.apply(this,arguments)}F(xs,`assertOwnProperty`),G.addMethod(`ownProperty`,xs),G.addMethod(`haveOwnProperty`,xs);function Ss(e,t,n){typeof t==`string`&&(n=t,t=null),n&&q(this,`message`,n);let r=q(this,`object`),i=Object.getOwnPropertyDescriptor(Object(r),e),a=q(this,`eql`);i&&t?this.assert(a(t,i),`expected the own property descriptor for `+U(e)+` on #{this} to match `+U(t)+`, got `+U(i),`expected the own property descriptor for `+U(e)+` on #{this} to not match `+U(t),t,i,!0):this.assert(i,`expected #{this} to have an own property descriptor for `+U(e),`expected #{this} to not have an own property descriptor for `+U(e)),q(this,`object`,i)}F(Ss,`assertOwnPropertyDescriptor`),G.addMethod(`ownPropertyDescriptor`,Ss),G.addMethod(`haveOwnPropertyDescriptor`,Ss);function Cs(){q(this,`doLength`,!0)}F(Cs,`assertLengthChain`);function ws(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=z(n).toLowerCase(),i=q(this,`message`),a=q(this,`ssfi`),o=`length`,s;switch(r){case`map`:case`set`:o=`size`,s=n.size;break;default:new G(n,i,a,!0).to.have.property(`length`),s=n.length}this.assert(s==e,`expected #{this} to have a `+o+` of #{exp} but got #{act}`,`expected #{this} to not have a `+o+` of #{act}`,e,s)}F(ws,`assertLength`),G.addChainableMethod(`length`,ws,Cs),G.addChainableMethod(`lengthOf`,ws,Cs);function Ts(e,t){t&&q(this,`message`,t);let n=q(this,`object`);this.assert(e.exec(n),`expected #{this} to match `+e,`expected #{this} not to match `+e)}F(Ts,`assertMatch`),G.addMethod(`match`,Ts),G.addMethod(`matches`,Ts),G.addMethod(`string`,function(e,t){t&&q(this,`message`,t);let n=q(this,`object`);new G(n,q(this,`message`),q(this,`ssfi`),!0).is.a(`string`),this.assert(~n.indexOf(e),`expected #{this} to contain `+U(e),`expected #{this} to not contain `+U(e))});function Es(e){let t=q(this,`object`),n=z(t),r=z(e),i=q(this,`ssfi`),a=q(this,`deep`),o,s=``,c,l=!0,u=q(this,`message`);u=u?u+`: `:``;let d=u+`when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments`;if(n===`Map`||n===`Set`)s=a?`deeply `:``,c=[],t.forEach(function(e,t){c.push(t)}),r!==`Array`&&(e=Array.prototype.slice.call(arguments));else{switch(c=es(t),r){case`Array`:if(arguments.length>1)throw new B(d,void 0,i);break;case`Object`:if(arguments.length>1)throw new B(d,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return typeof e==`symbol`?e:String(e)})}if(!e.length)throw new B(u+`keys required`,void 0,i);let f=e.length,p=q(this,`any`),m=q(this,`all`),h=e,g=a?q(this,`eql`):(e,t)=>e===t;if(!p&&!m&&(m=!0),p&&(l=h.some(function(e){return c.some(function(t){return g(e,t)})})),m&&(l=h.every(function(e){return c.some(function(t){return g(e,t)})}),q(this,`contains`)||(l&&=e.length==c.length)),f>1){e=e.map(function(e){return U(e)});let t=e.pop();m&&(o=e.join(`, `)+`, and `+t),p&&(o=e.join(`, `)+`, or `+t)}else o=U(e[0]);o=(f>1?`keys `:`key `)+o,o=(q(this,`contains`)?`contain `:`have `)+o,this.assert(l,`expected #{this} to `+s+o,`expected #{this} to not `+s+o,h.slice(0).sort(Qo),c.sort(Qo),!0)}F(Es,`assertKeys`),G.addMethod(`keys`,Es),G.addMethod(`key`,Es);function Ds(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`ssfi`),a=q(this,`message`),o=q(this,`negate`)||!1;new G(r,a,i,!0).is.a(`function`),(as(e)||typeof e==`string`)&&(t=e,e=null);let s,c=!1;try{r()}catch(e){c=!0,s=e}let l=e===void 0&&t===void 0,u=!!(e&&t),d=!1,f=!1;if(l||!l&&!o){let t=`an error`;e instanceof Error?t=`#{exp}`:e&&(t=L.getConstructorName(e));let n=s;if(s instanceof Error)n=s.toString();else if(typeof s==`string`)n=s;else if(s&&(typeof s==`object`||typeof s==`function`))try{n=L.getConstructorName(s)}catch{}this.assert(c,`expected #{this} to throw `+t,`expected #{this} to not throw an error but #{act} was thrown`,e&&e.toString(),n)}if(e&&s&&(e instanceof Error&&L.compatibleInstance(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s&&!o?` but #{act} was thrown`:``),e.toString(),s.toString())),L.compatibleConstructor(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&L.getConstructorName(e),s instanceof Error?s.toString():s&&L.getConstructorName(s)))),s&&t!=null){let e=`including`;as(t)&&(e=`matching`),L.compatibleMessage(s,t)===o&&(u&&o?f=!0:this.assert(o,`expected #{this} to throw error `+e+` #{exp} but got #{act}`,`expected #{this} to throw error not `+e+` #{exp}`,t,L.getMessage(s)))}d&&f&&this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&L.getConstructorName(e),s instanceof Error?s.toString():s&&L.getConstructorName(s)),q(this,`object`,s)}F(Ds,`assertThrows`),G.addMethod(`throw`,Ds),G.addMethod(`throws`,Ds),G.addMethod(`Throw`,Ds);function Os(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`itself`),i=typeof n==`function`&&!r?n.prototype[e]:n[e];this.assert(typeof i==`function`,`expected #{this} to respond to `+U(e),`expected #{this} to not respond to `+U(e))}F(Os,`respondTo`),G.addMethod(`respondTo`,Os),G.addMethod(`respondsTo`,Os),G.addProperty(`itself`,function(){q(this,`itself`,!0)});function ks(e,t){t&&q(this,`message`,t);let n=e(q(this,`object`));this.assert(n,`expected #{this} to satisfy `+Qa(e),`expected #{this} to not satisfy`+Qa(e),!q(this,`negate`),n)}F(ks,`satisfy`),G.addMethod(`satisfy`,ks),G.addMethod(`satisfies`,ks);function As(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.numeric;let o="A `delta` value is required for `closeTo`";if(t==null||(new G(t,i,a,!0).is.numeric,o="A `expected` value is required for `closeTo`",e==null))throw new B(i?`${i}: ${o}`:o,void 0,a);new G(e,i,a,!0).is.numeric;let s=F(e=>e<0n?-e:e,`abs`),c=F(e=>parseFloat(parseFloat(e).toPrecision(12)),`strip`);this.assert(c(s(r-e))<=t,`expected #{this} to be close to `+e+` +/- `+t,`expected #{this} not to be close to `+e+` +/- `+t)}F(As,`closeTo`),G.addMethod(`closeTo`,As),G.addMethod(`approximately`,As);function js(e,t,n,r,i){let a=Array.from(t),o=Array.from(e);if(!r){if(o.length!==a.length)return!1;a=a.slice()}return o.every(function(e,t){if(i)return n?n(e,a[t]):e===a[t];if(!n){let t=a.indexOf(e);return t===-1?!1:(r||a.splice(t,1),!0)}return a.some(function(t,i){return n(e,t)?(r||a.splice(i,1),!0):!1})})}F(js,`isSubsetOf`),G.addMethod(`members`,function(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`message`),i=q(this,`ssfi`);new G(n,r,i,!0).to.be.iterable,new G(e,r,i,!0).to.be.iterable;let a=q(this,`contains`),o=q(this,`ordered`),s,c,l;a?(s=o?`an ordered superset`:`a superset`,c=`expected #{this} to be `+s+` of #{exp}`,l=`expected #{this} to not be `+s+` of #{exp}`):(s=o?`ordered members`:`members`,c=`expected #{this} to have the same `+s+` as #{exp}`,l=`expected #{this} to not have the same `+s+` as #{exp}`);let u=q(this,`deep`)?q(this,`eql`):void 0;this.assert(js(e,n,u,a,o),c,l,e,n,!0)}),G.addProperty(`iterable`,function(e){e&&q(this,`message`,e);let t=q(this,`object`);this.assert(t!=null&&t[Symbol.iterator],`expected #{this} to be an iterable`,`expected #{this} to not be an iterable`,t)});function Ms(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`message`),i=q(this,`ssfi`),a=q(this,`contains`),o=q(this,`deep`),s=q(this,`eql`);new G(e,r,i,!0).to.be.an(`array`),a?this.assert(e.some(function(e){return n.indexOf(e)>-1}),`expected #{this} to contain one of #{exp}`,`expected #{this} to not contain one of #{exp}`,e,n):o?this.assert(e.some(function(e){return s(n,e)}),`expected #{this} to deeply equal one of #{exp}`,`expected #{this} to deeply equal one of #{exp}`,e,n):this.assert(e.indexOf(n)>-1,`expected #{this} to be one of #{exp}`,`expected #{this} to not be one of #{exp}`,e,n)}F(Ms,`oneOf`),G.addMethod(`oneOf`,Ms);function Ns(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.a(`function`);let o;t?(new G(e,i,a,!0).to.have.property(t),o=e[t]):(new G(e,i,a,!0).is.a(`function`),o=e()),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;q(this,`deltaMsgObj`,c),q(this,`initialDeltaValue`,o),q(this,`finalDeltaValue`,s),q(this,`deltaBehavior`,`change`),q(this,`realDelta`,s!==o),this.assert(o!==s,`expected `+c+` to change`,`expected `+c+` to not change`)}F(Ns,`assertChanges`),G.addMethod(`change`,Ns),G.addMethod(`changes`,Ns);function Ps(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.a(`function`);let o;t?(new G(e,i,a,!0).to.have.property(t),o=e[t]):(new G(e,i,a,!0).is.a(`function`),o=e()),new G(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;q(this,`deltaMsgObj`,c),q(this,`initialDeltaValue`,o),q(this,`finalDeltaValue`,s),q(this,`deltaBehavior`,`increase`),q(this,`realDelta`,s-o),this.assert(s-o>0,`expected `+c+` to increase`,`expected `+c+` to not increase`)}F(Ps,`assertIncreases`),G.addMethod(`increase`,Ps),G.addMethod(`increases`,Ps);function Fs(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.a(`function`);let o;t?(new G(e,i,a,!0).to.have.property(t),o=e[t]):(new G(e,i,a,!0).is.a(`function`),o=e()),new G(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;q(this,`deltaMsgObj`,c),q(this,`initialDeltaValue`,o),q(this,`finalDeltaValue`,s),q(this,`deltaBehavior`,`decrease`),q(this,`realDelta`,o-s),this.assert(s-o<0,`expected `+c+` to decrease`,`expected `+c+` to not decrease`)}F(Fs,`assertDecreases`),G.addMethod(`decrease`,Fs),G.addMethod(`decreases`,Fs);function Is(e,t){t&&q(this,`message`,t);let n=q(this,`deltaMsgObj`),r=q(this,`initialDeltaValue`),i=q(this,`finalDeltaValue`),a=q(this,`deltaBehavior`),o=q(this,`realDelta`),s;s=a===`change`?Math.abs(i-r)===Math.abs(e):o===Math.abs(e),this.assert(s,`expected `+n+` to `+a+` by `+e,`expected `+n+` to not `+a+` by `+e)}F(Is,`assertDelta`),G.addMethod(`by`,Is),G.addProperty(`extensible`,function(){let e=q(this,`object`),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,`expected #{this} to be extensible`,`expected #{this} to not be extensible`)}),G.addProperty(`sealed`,function(){let e=q(this,`object`),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,`expected #{this} to be sealed`,`expected #{this} to not be sealed`)}),G.addProperty(`frozen`,function(){let e=q(this,`object`),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,`expected #{this} to be frozen`,`expected #{this} to not be frozen`)}),G.addProperty(`finite`,function(e){let t=q(this,`object`);this.assert(typeof t==`number`&&isFinite(t),`expected #{this} to be a finite number`,`expected #{this} to not be a finite number`)});function Ls(e,t){return e===t?!0:typeof t==typeof e?typeof e!=`object`||!e?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(e){return t.some(function(t){return Ls(e,t)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(n){let r=e[n],i=t[n];return typeof r==`object`&&r&&i!==null?Ls(r,i):typeof r==`function`?r(i):i===r}):!1:!1}F(Ls,`compareSubset`),G.addMethod(`containSubset`,function(e){let t=R(this,`object`),n=H.showDiff;this.assert(Ls(e,t),`expected #{act} to contain subset #{exp}`,`expected #{act} to not contain subset #{exp}`,e,t,n)});function Rs(e,t){return new G(e,t)}F(Rs,`expect`),Rs.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`expect.fail()`,new B(n,{actual:e,expected:t,operator:r},Rs.fail)};var zs={};Ui(zs,{Should:()=>Hs,should:()=>Vs});function Bs(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol==`function`&&this instanceof Symbol||typeof BigInt==`function`&&this instanceof BigInt?new G(this.valueOf(),null,e):new G(this,null,e)}F(e,`shouldGetter`);function t(e){Object.defineProperty(this,`should`,{value:e,enumerable:!0,configurable:!0,writable:!0})}F(t,`shouldSetter`),Object.defineProperty(Object.prototype,`should`,{set:t,get:e,configurable:!0});let n={};return n.fail=function(e,t,r,i){throw arguments.length<2&&(r=e,e=void 0),r||=`should.fail()`,new B(r,{actual:e,expected:t,operator:i},n.fail)},n.equal=function(e,t,n){new G(e,n).to.equal(t)},n.Throw=function(e,t,n,r){new G(e,r).to.Throw(t,n)},n.exist=function(e,t){new G(e,t).to.exist},n.not={},n.not.equal=function(e,t,n){new G(e,n).to.not.equal(t)},n.not.Throw=function(e,t,n,r){new G(e,r).to.not.Throw(t,n)},n.not.exist=function(e,t){new G(e,t).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}F(Bs,`loadShould`);var Vs=Bs,Hs=Bs;function J(e,t){new G(null,null,J,!0).assert(e,t,`[ negation message unavailable ]`)}F(J,`assert`),J.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`assert.fail()`,new B(n,{actual:e,expected:t,operator:r},J.fail)},J.isOk=function(e,t){new G(e,t,J.isOk,!0).is.ok},J.isNotOk=function(e,t){new G(e,t,J.isNotOk,!0).is.not.ok},J.equal=function(e,t,n){let r=new G(e,n,J.equal,!0);r.assert(t==R(r,`object`),`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{act}`,t,e,!0)},J.notEqual=function(e,t,n){let r=new G(e,n,J.notEqual,!0);r.assert(t!=R(r,`object`),`expected #{this} to not equal #{exp}`,`expected #{this} to equal #{act}`,t,e,!0)},J.strictEqual=function(e,t,n){new G(e,n,J.strictEqual,!0).to.equal(t)},J.notStrictEqual=function(e,t,n){new G(e,n,J.notStrictEqual,!0).to.not.equal(t)},J.deepEqual=J.deepStrictEqual=function(e,t,n){new G(e,n,J.deepEqual,!0).to.eql(t)},J.notDeepEqual=function(e,t,n){new G(e,n,J.notDeepEqual,!0).to.not.eql(t)},J.isAbove=function(e,t,n){new G(e,n,J.isAbove,!0).to.be.above(t)},J.isAtLeast=function(e,t,n){new G(e,n,J.isAtLeast,!0).to.be.least(t)},J.isBelow=function(e,t,n){new G(e,n,J.isBelow,!0).to.be.below(t)},J.isAtMost=function(e,t,n){new G(e,n,J.isAtMost,!0).to.be.most(t)},J.isTrue=function(e,t){new G(e,t,J.isTrue,!0).is.true},J.isNotTrue=function(e,t){new G(e,t,J.isNotTrue,!0).to.not.equal(!0)},J.isFalse=function(e,t){new G(e,t,J.isFalse,!0).is.false},J.isNotFalse=function(e,t){new G(e,t,J.isNotFalse,!0).to.not.equal(!1)},J.isNull=function(e,t){new G(e,t,J.isNull,!0).to.equal(null)},J.isNotNull=function(e,t){new G(e,t,J.isNotNull,!0).to.not.equal(null)},J.isNaN=function(e,t){new G(e,t,J.isNaN,!0).to.be.NaN},J.isNotNaN=function(e,t){new G(e,t,J.isNotNaN,!0).not.to.be.NaN},J.exists=function(e,t){new G(e,t,J.exists,!0).to.exist},J.notExists=function(e,t){new G(e,t,J.notExists,!0).to.not.exist},J.isUndefined=function(e,t){new G(e,t,J.isUndefined,!0).to.equal(void 0)},J.isDefined=function(e,t){new G(e,t,J.isDefined,!0).to.not.equal(void 0)},J.isCallable=function(e,t){new G(e,t,J.isCallable,!0).is.callable},J.isNotCallable=function(e,t){new G(e,t,J.isNotCallable,!0).is.not.callable},J.isObject=function(e,t){new G(e,t,J.isObject,!0).to.be.a(`object`)},J.isNotObject=function(e,t){new G(e,t,J.isNotObject,!0).to.not.be.a(`object`)},J.isArray=function(e,t){new G(e,t,J.isArray,!0).to.be.an(`array`)},J.isNotArray=function(e,t){new G(e,t,J.isNotArray,!0).to.not.be.an(`array`)},J.isString=function(e,t){new G(e,t,J.isString,!0).to.be.a(`string`)},J.isNotString=function(e,t){new G(e,t,J.isNotString,!0).to.not.be.a(`string`)},J.isNumber=function(e,t){new G(e,t,J.isNumber,!0).to.be.a(`number`)},J.isNotNumber=function(e,t){new G(e,t,J.isNotNumber,!0).to.not.be.a(`number`)},J.isNumeric=function(e,t){new G(e,t,J.isNumeric,!0).is.numeric},J.isNotNumeric=function(e,t){new G(e,t,J.isNotNumeric,!0).is.not.numeric},J.isFinite=function(e,t){new G(e,t,J.isFinite,!0).to.be.finite},J.isBoolean=function(e,t){new G(e,t,J.isBoolean,!0).to.be.a(`boolean`)},J.isNotBoolean=function(e,t){new G(e,t,J.isNotBoolean,!0).to.not.be.a(`boolean`)},J.typeOf=function(e,t,n){new G(e,n,J.typeOf,!0).to.be.a(t)},J.notTypeOf=function(e,t,n){new G(e,n,J.notTypeOf,!0).to.not.be.a(t)},J.instanceOf=function(e,t,n){new G(e,n,J.instanceOf,!0).to.be.instanceOf(t)},J.notInstanceOf=function(e,t,n){new G(e,n,J.notInstanceOf,!0).to.not.be.instanceOf(t)},J.include=function(e,t,n){new G(e,n,J.include,!0).include(t)},J.notInclude=function(e,t,n){new G(e,n,J.notInclude,!0).not.include(t)},J.deepInclude=function(e,t,n){new G(e,n,J.deepInclude,!0).deep.include(t)},J.notDeepInclude=function(e,t,n){new G(e,n,J.notDeepInclude,!0).not.deep.include(t)},J.nestedInclude=function(e,t,n){new G(e,n,J.nestedInclude,!0).nested.include(t)},J.notNestedInclude=function(e,t,n){new G(e,n,J.notNestedInclude,!0).not.nested.include(t)},J.deepNestedInclude=function(e,t,n){new G(e,n,J.deepNestedInclude,!0).deep.nested.include(t)},J.notDeepNestedInclude=function(e,t,n){new G(e,n,J.notDeepNestedInclude,!0).not.deep.nested.include(t)},J.ownInclude=function(e,t,n){new G(e,n,J.ownInclude,!0).own.include(t)},J.notOwnInclude=function(e,t,n){new G(e,n,J.notOwnInclude,!0).not.own.include(t)},J.deepOwnInclude=function(e,t,n){new G(e,n,J.deepOwnInclude,!0).deep.own.include(t)},J.notDeepOwnInclude=function(e,t,n){new G(e,n,J.notDeepOwnInclude,!0).not.deep.own.include(t)},J.match=function(e,t,n){new G(e,n,J.match,!0).to.match(t)},J.notMatch=function(e,t,n){new G(e,n,J.notMatch,!0).to.not.match(t)},J.property=function(e,t,n){new G(e,n,J.property,!0).to.have.property(t)},J.notProperty=function(e,t,n){new G(e,n,J.notProperty,!0).to.not.have.property(t)},J.propertyVal=function(e,t,n,r){new G(e,r,J.propertyVal,!0).to.have.property(t,n)},J.notPropertyVal=function(e,t,n,r){new G(e,r,J.notPropertyVal,!0).to.not.have.property(t,n)},J.deepPropertyVal=function(e,t,n,r){new G(e,r,J.deepPropertyVal,!0).to.have.deep.property(t,n)},J.notDeepPropertyVal=function(e,t,n,r){new G(e,r,J.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},J.ownProperty=function(e,t,n){new G(e,n,J.ownProperty,!0).to.have.own.property(t)},J.notOwnProperty=function(e,t,n){new G(e,n,J.notOwnProperty,!0).to.not.have.own.property(t)},J.ownPropertyVal=function(e,t,n,r){new G(e,r,J.ownPropertyVal,!0).to.have.own.property(t,n)},J.notOwnPropertyVal=function(e,t,n,r){new G(e,r,J.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},J.deepOwnPropertyVal=function(e,t,n,r){new G(e,r,J.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},J.notDeepOwnPropertyVal=function(e,t,n,r){new G(e,r,J.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},J.nestedProperty=function(e,t,n){new G(e,n,J.nestedProperty,!0).to.have.nested.property(t)},J.notNestedProperty=function(e,t,n){new G(e,n,J.notNestedProperty,!0).to.not.have.nested.property(t)},J.nestedPropertyVal=function(e,t,n,r){new G(e,r,J.nestedPropertyVal,!0).to.have.nested.property(t,n)},J.notNestedPropertyVal=function(e,t,n,r){new G(e,r,J.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},J.deepNestedPropertyVal=function(e,t,n,r){new G(e,r,J.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},J.notDeepNestedPropertyVal=function(e,t,n,r){new G(e,r,J.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},J.lengthOf=function(e,t,n){new G(e,n,J.lengthOf,!0).to.have.lengthOf(t)},J.hasAnyKeys=function(e,t,n){new G(e,n,J.hasAnyKeys,!0).to.have.any.keys(t)},J.hasAllKeys=function(e,t,n){new G(e,n,J.hasAllKeys,!0).to.have.all.keys(t)},J.containsAllKeys=function(e,t,n){new G(e,n,J.containsAllKeys,!0).to.contain.all.keys(t)},J.doesNotHaveAnyKeys=function(e,t,n){new G(e,n,J.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},J.doesNotHaveAllKeys=function(e,t,n){new G(e,n,J.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},J.hasAnyDeepKeys=function(e,t,n){new G(e,n,J.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},J.hasAllDeepKeys=function(e,t,n){new G(e,n,J.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},J.containsAllDeepKeys=function(e,t,n){new G(e,n,J.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},J.doesNotHaveAnyDeepKeys=function(e,t,n){new G(e,n,J.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},J.doesNotHaveAllDeepKeys=function(e,t,n){new G(e,n,J.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},J.throws=function(e,t,n,r){return(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),R(new G(e,r,J.throws,!0).to.throw(t,n),`object`)},J.doesNotThrow=function(e,t,n,r){(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),new G(e,r,J.doesNotThrow,!0).to.not.throw(t,n)},J.operator=function(e,t,n,r){let i;switch(t){case`==`:i=e==n;break;case`===`:i=e===n;break;case`>`:i=e>n;break;case`>=`:i=e>=n;break;case`<`:i=e<n;break;case`<=`:i=e<=n;break;case`!=`:i=e!=n;break;case`!==`:i=e!==n;break;default:throw r&&=r+`: `,new B(r+`Invalid operator "`+t+`"`,void 0,J.operator)}let a=new G(i,r,J.operator,!0);a.assert(!0===R(a,`object`),`expected `+U(e)+` to be `+t+` `+U(n),`expected `+U(e)+` to not be `+t+` `+U(n))},J.closeTo=function(e,t,n,r){new G(e,r,J.closeTo,!0).to.be.closeTo(t,n)},J.approximately=function(e,t,n,r){new G(e,r,J.approximately,!0).to.be.approximately(t,n)},J.sameMembers=function(e,t,n){new G(e,n,J.sameMembers,!0).to.have.same.members(t)},J.notSameMembers=function(e,t,n){new G(e,n,J.notSameMembers,!0).to.not.have.same.members(t)},J.sameDeepMembers=function(e,t,n){new G(e,n,J.sameDeepMembers,!0).to.have.same.deep.members(t)},J.notSameDeepMembers=function(e,t,n){new G(e,n,J.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},J.sameOrderedMembers=function(e,t,n){new G(e,n,J.sameOrderedMembers,!0).to.have.same.ordered.members(t)},J.notSameOrderedMembers=function(e,t,n){new G(e,n,J.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},J.sameDeepOrderedMembers=function(e,t,n){new G(e,n,J.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},J.notSameDeepOrderedMembers=function(e,t,n){new G(e,n,J.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},J.includeMembers=function(e,t,n){new G(e,n,J.includeMembers,!0).to.include.members(t)},J.notIncludeMembers=function(e,t,n){new G(e,n,J.notIncludeMembers,!0).to.not.include.members(t)},J.includeDeepMembers=function(e,t,n){new G(e,n,J.includeDeepMembers,!0).to.include.deep.members(t)},J.notIncludeDeepMembers=function(e,t,n){new G(e,n,J.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},J.includeOrderedMembers=function(e,t,n){new G(e,n,J.includeOrderedMembers,!0).to.include.ordered.members(t)},J.notIncludeOrderedMembers=function(e,t,n){new G(e,n,J.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},J.includeDeepOrderedMembers=function(e,t,n){new G(e,n,J.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},J.notIncludeDeepOrderedMembers=function(e,t,n){new G(e,n,J.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},J.oneOf=function(e,t,n){new G(e,n,J.oneOf,!0).to.be.oneOf(t)},J.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${U(e)} to be an iterable`:`expected ${U(e)} to be an iterable`,new B(t,void 0,J.isIterable)},J.changes=function(e,t,n,r){arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.changes,!0).to.change(t,n)},J.changesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.changesBy,!0).to.change(t,n).by(r)},J.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.doesNotChange,!0).to.not.change(t,n)},J.changesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.changesButNotBy,!0).to.change(t,n).but.not.by(r)},J.increases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.increases,!0).to.increase(t,n)},J.increasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.increasesBy,!0).to.increase(t,n).by(r)},J.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.doesNotIncrease,!0).to.not.increase(t,n)},J.increasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},J.decreases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.decreases,!0).to.decrease(t,n)},J.decreasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.decreasesBy,!0).to.decrease(t,n).by(r)},J.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.doesNotDecrease,!0).to.not.decrease(t,n)},J.doesNotDecreaseBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);return new G(e,i,J.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},J.decreasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},J.ifError=function(e){if(e)throw e},J.isExtensible=function(e,t){new G(e,t,J.isExtensible,!0).to.be.extensible},J.isNotExtensible=function(e,t){new G(e,t,J.isNotExtensible,!0).to.not.be.extensible},J.isSealed=function(e,t){new G(e,t,J.isSealed,!0).to.be.sealed},J.isNotSealed=function(e,t){new G(e,t,J.isNotSealed,!0).to.not.be.sealed},J.isFrozen=function(e,t){new G(e,t,J.isFrozen,!0).to.be.frozen},J.isNotFrozen=function(e,t){new G(e,t,J.isNotFrozen,!0).to.not.be.frozen},J.isEmpty=function(e,t){new G(e,t,J.isEmpty,!0).to.be.empty},J.isNotEmpty=function(e,t){new G(e,t,J.isNotEmpty,!0).to.not.be.empty},J.containsSubset=function(e,t,n){new G(e,n).to.containSubset(t)},J.doesNotContainSubset=function(e,t,n){new G(e,n).to.not.containSubset(t)};for(let[e,t]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`]])J[t]=J[e];var Us=[];function Ws(e){let t={use:Ws,AssertionError:B,util:I,config:H,expect:Rs,assert:J,Assertion:G,...zs};return~Us.indexOf(e)||(e(t,I),Us.push(e)),t}F(Ws,`use`);
|
|
33
|
-
/*!
|
|
34
|
-
* Chai - flag utility
|
|
35
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
36
|
-
* MIT Licensed
|
|
37
|
-
*/
|
|
38
|
-
/*!
|
|
39
|
-
* Chai - test utility
|
|
40
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
41
|
-
* MIT Licensed
|
|
42
|
-
*/
|
|
43
|
-
/*!
|
|
44
|
-
* Chai - expectTypes utility
|
|
45
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
46
|
-
* MIT Licensed
|
|
47
|
-
*/
|
|
48
|
-
/*!
|
|
49
|
-
* Chai - getActual utility
|
|
50
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
51
|
-
* MIT Licensed
|
|
52
|
-
*/
|
|
53
|
-
/*!
|
|
54
|
-
* Chai - message composition utility
|
|
55
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
56
|
-
* MIT Licensed
|
|
57
|
-
*/
|
|
58
|
-
/*!
|
|
59
|
-
* Chai - transferFlags utility
|
|
60
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
61
|
-
* MIT Licensed
|
|
62
|
-
*/
|
|
63
|
-
/*!
|
|
64
|
-
* chai
|
|
65
|
-
* http://chaijs.com
|
|
66
|
-
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
67
|
-
* MIT Licensed
|
|
68
|
-
*/
|
|
69
|
-
/*!
|
|
70
|
-
* Chai - events utility
|
|
71
|
-
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
72
|
-
* MIT Licensed
|
|
73
|
-
*/
|
|
74
|
-
/*!
|
|
75
|
-
* Chai - isProxyEnabled helper
|
|
76
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
77
|
-
* MIT Licensed
|
|
78
|
-
*/
|
|
79
|
-
/*!
|
|
80
|
-
* Chai - addProperty utility
|
|
81
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
82
|
-
* MIT Licensed
|
|
83
|
-
*/
|
|
84
|
-
/*!
|
|
85
|
-
* Chai - addLengthGuard utility
|
|
86
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
87
|
-
* MIT Licensed
|
|
88
|
-
*/
|
|
89
|
-
/*!
|
|
90
|
-
* Chai - getProperties utility
|
|
91
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
92
|
-
* MIT Licensed
|
|
93
|
-
*/
|
|
94
|
-
/*!
|
|
95
|
-
* Chai - proxify utility
|
|
96
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
97
|
-
* MIT Licensed
|
|
98
|
-
*/
|
|
99
|
-
/*!
|
|
100
|
-
* Chai - addMethod utility
|
|
101
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
102
|
-
* MIT Licensed
|
|
103
|
-
*/
|
|
104
|
-
/*!
|
|
105
|
-
* Chai - overwriteProperty utility
|
|
106
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
107
|
-
* MIT Licensed
|
|
108
|
-
*/
|
|
109
|
-
/*!
|
|
110
|
-
* Chai - overwriteMethod utility
|
|
111
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
112
|
-
* MIT Licensed
|
|
113
|
-
*/
|
|
114
|
-
/*!
|
|
115
|
-
* Chai - addChainingMethod utility
|
|
116
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
117
|
-
* MIT Licensed
|
|
118
|
-
*/
|
|
119
|
-
/*!
|
|
120
|
-
* Chai - overwriteChainableMethod utility
|
|
121
|
-
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
122
|
-
* MIT Licensed
|
|
123
|
-
*/
|
|
124
|
-
/*!
|
|
125
|
-
* Chai - compareByInspect utility
|
|
126
|
-
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
127
|
-
* MIT Licensed
|
|
128
|
-
*/
|
|
129
|
-
/*!
|
|
130
|
-
* Chai - getOwnEnumerablePropertySymbols utility
|
|
131
|
-
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
132
|
-
* MIT Licensed
|
|
133
|
-
*/
|
|
134
|
-
/*!
|
|
135
|
-
* Chai - getOwnEnumerableProperties utility
|
|
136
|
-
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
137
|
-
* MIT Licensed
|
|
138
|
-
*/
|
|
139
|
-
/*!
|
|
140
|
-
* Chai - isNaN utility
|
|
141
|
-
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
142
|
-
* MIT Licensed
|
|
143
|
-
*/
|
|
144
|
-
/*!
|
|
145
|
-
* chai
|
|
146
|
-
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
147
|
-
* MIT Licensed
|
|
148
|
-
*/
|
|
149
|
-
/*!
|
|
150
|
-
* chai
|
|
151
|
-
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
152
|
-
* MIT Licensed
|
|
153
|
-
*/
|
|
154
|
-
/*! Bundled license information:
|
|
155
|
-
|
|
156
|
-
deep-eql/index.js:
|
|
157
|
-
(*!
|
|
158
|
-
* deep-eql
|
|
159
|
-
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
160
|
-
* MIT Licensed
|
|
161
|
-
*)
|
|
162
|
-
(*!
|
|
163
|
-
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
164
|
-
*
|
|
165
|
-
* @param {Mixed} leftHandOperand
|
|
166
|
-
* @param {Mixed} rightHandOperand
|
|
167
|
-
* @param {MemoizeMap} memoizeMap
|
|
168
|
-
* @returns {Boolean|null} result
|
|
169
|
-
*)
|
|
170
|
-
(*!
|
|
171
|
-
* Set the result of the equality into the MemoizeMap
|
|
172
|
-
*
|
|
173
|
-
* @param {Mixed} leftHandOperand
|
|
174
|
-
* @param {Mixed} rightHandOperand
|
|
175
|
-
* @param {MemoizeMap} memoizeMap
|
|
176
|
-
* @param {Boolean} result
|
|
177
|
-
*)
|
|
178
|
-
(*!
|
|
179
|
-
* Primary Export
|
|
180
|
-
*)
|
|
181
|
-
(*!
|
|
182
|
-
* The main logic of the `deepEqual` function.
|
|
183
|
-
*
|
|
184
|
-
* @param {Mixed} leftHandOperand
|
|
185
|
-
* @param {Mixed} rightHandOperand
|
|
186
|
-
* @param {Object} [options] (optional) Additional options
|
|
187
|
-
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
188
|
-
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
189
|
-
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
190
|
-
references to blow the stack.
|
|
191
|
-
* @return {Boolean} equal match
|
|
192
|
-
*)
|
|
193
|
-
(*!
|
|
194
|
-
* Compare two Regular Expressions for equality.
|
|
195
|
-
*
|
|
196
|
-
* @param {RegExp} leftHandOperand
|
|
197
|
-
* @param {RegExp} rightHandOperand
|
|
198
|
-
* @return {Boolean} result
|
|
199
|
-
*)
|
|
200
|
-
(*!
|
|
201
|
-
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
202
|
-
*
|
|
203
|
-
* @param {Set} leftHandOperand
|
|
204
|
-
* @param {Set} rightHandOperand
|
|
205
|
-
* @param {Object} [options] (Optional)
|
|
206
|
-
* @return {Boolean} result
|
|
207
|
-
*)
|
|
208
|
-
(*!
|
|
209
|
-
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
210
|
-
*
|
|
211
|
-
* @param {Iterable} leftHandOperand
|
|
212
|
-
* @param {Iterable} rightHandOperand
|
|
213
|
-
* @param {Object} [options] (Optional)
|
|
214
|
-
* @return {Boolean} result
|
|
215
|
-
*)
|
|
216
|
-
(*!
|
|
217
|
-
* Simple equality for generator objects such as those returned by generator functions.
|
|
218
|
-
*
|
|
219
|
-
* @param {Iterable} leftHandOperand
|
|
220
|
-
* @param {Iterable} rightHandOperand
|
|
221
|
-
* @param {Object} [options] (Optional)
|
|
222
|
-
* @return {Boolean} result
|
|
223
|
-
*)
|
|
224
|
-
(*!
|
|
225
|
-
* Determine if the given object has an @@iterator function.
|
|
226
|
-
*
|
|
227
|
-
* @param {Object} target
|
|
228
|
-
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
229
|
-
*)
|
|
230
|
-
(*!
|
|
231
|
-
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
232
|
-
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
233
|
-
*
|
|
234
|
-
* @param {Object} target
|
|
235
|
-
* @returns {Array} an array of entries from the @@iterator function
|
|
236
|
-
*)
|
|
237
|
-
(*!
|
|
238
|
-
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
239
|
-
*
|
|
240
|
-
* @param {Generator} target
|
|
241
|
-
* @returns {Array} an array of entries from the Generator.
|
|
242
|
-
*)
|
|
243
|
-
(*!
|
|
244
|
-
* Gets all own and inherited enumerable keys from a target.
|
|
245
|
-
*
|
|
246
|
-
* @param {Object} target
|
|
247
|
-
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
248
|
-
*)
|
|
249
|
-
(*!
|
|
250
|
-
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
251
|
-
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
252
|
-
*
|
|
253
|
-
* @param {Mixed} leftHandOperand
|
|
254
|
-
* @param {Mixed} rightHandOperand
|
|
255
|
-
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
256
|
-
* @param {Object} [options] (Optional)
|
|
257
|
-
* @return {Boolean} result
|
|
258
|
-
*)
|
|
259
|
-
(*!
|
|
260
|
-
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
261
|
-
* for each enumerable key in the object.
|
|
262
|
-
*
|
|
263
|
-
* @param {Mixed} leftHandOperand
|
|
264
|
-
* @param {Mixed} rightHandOperand
|
|
265
|
-
* @param {Object} [options] (Optional)
|
|
266
|
-
* @return {Boolean} result
|
|
267
|
-
*)
|
|
268
|
-
(*!
|
|
269
|
-
* Returns true if the argument is a primitive.
|
|
270
|
-
*
|
|
271
|
-
* This intentionally returns true for all objects that can be compared by reference,
|
|
272
|
-
* including functions and symbols.
|
|
273
|
-
*
|
|
274
|
-
* @param {Mixed} value
|
|
275
|
-
* @return {Boolean} result
|
|
276
|
-
*)
|
|
277
|
-
*/
|
|
278
|
-
const Gs=Symbol.for(`matchers-object`),Ks=Symbol.for(`$$jest-matchers-object`),qs=Symbol.for(`expect-global`),Js=Symbol.for(`asymmetric-matchers-object`),Ys={toSatisfy(e,t,n){let{printReceived:r,printExpected:i,matcherHint:a}=this.utils,o=t(e);return{pass:o,message:()=>o?`\
|
|
279
|
-
${a(`.not.toSatisfy`,`received`,``)}
|
|
280
|
-
|
|
281
|
-
Expected value to not satisfy:
|
|
282
|
-
${n||i(t)}
|
|
283
|
-
Received:
|
|
284
|
-
${r(e)}`:`\
|
|
285
|
-
${a(`.toSatisfy`,`received`,``)}
|
|
286
|
-
|
|
287
|
-
Expected value to satisfy:
|
|
288
|
-
${n||i(t)}
|
|
289
|
-
|
|
290
|
-
Received:
|
|
291
|
-
${r(e)}`}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:i,printExpected:a,matcherHint:o}=this.utils,s;if(Array.isArray(t))s=t.length===0||t.some(t=>n(t,e,r));else if(t instanceof Set)s=t.size===0||t.has(e)||[...t].some(t=>n(t,e,r));else throw TypeError(`You must provide an array or set to ${o(`.toBeOneOf`)}, not '${typeof t}'.`);return{pass:s,message:()=>s?`\
|
|
292
|
-
${o(`.not.toBeOneOf`,`received`,``)}
|
|
293
|
-
|
|
294
|
-
Expected value to not be one of:
|
|
295
|
-
${a(t)}
|
|
296
|
-
Received:
|
|
297
|
-
${i(e)}`:`\
|
|
298
|
-
${o(`.toBeOneOf`,`received`,``)}
|
|
299
|
-
|
|
300
|
-
Expected value to be one of:
|
|
301
|
-
${a(t)}
|
|
302
|
-
|
|
303
|
-
Received:
|
|
304
|
-
${i(e)}`}}},Xs=s.green,Zs=s.red,Qs=s.inverse,$s=s.bold,ec=s.dim;function tc(e,t=`received`,n=`expected`,r={}){let{comment:i=``,isDirectExpectCall:a=!1,isNot:o=!1,promise:s=``,secondArgument:c=``,expectedColor:l=Xs,receivedColor:u=Zs,secondArgumentColor:d=Xs}=r,f=``,p=`expect`;return!a&&t!==``&&(f+=ec(`${p}(`)+u(t),p=`)`),s!==``&&(f+=ec(`${p}.`)+s,p=``),o&&(f+=`${ec(`${p}.`)}not`,p=``),e.includes(`.`)?p+=e:(f+=ec(`${p}.`)+e,p=``),n===``?p+=`()`:(f+=ec(`${p}(`)+l(n),c&&(f+=ec(`, `)+d(c)),p=`)`),i!==``&&(p+=` // ${i}`),p!==``&&(f+=ec(p)),f}function nc(e){return e.replace(/\s+$/gm,e=>`·`.repeat(e.length))}function rc(e){return Zs(nc(M(e)))}function ic(e){return Xs(nc(M(e)))}function ac(){return{EXPECTED_COLOR:Xs,RECEIVED_COLOR:Zs,INVERTED_COLOR:Qs,BOLD_WEIGHT:$s,DIM_COLOR:ec,diff:Gr,matcherHint:tc,printReceived:rc,printExpected:ic,printDiffOrStringify:ti,printWithType:oc}}function oc(e,t,n){let r=jn(t);return(r!==`null`&&r!==`undefined`?`${e} has type: ${r}\n`:``)+`${e} has value: ${n(t)}`}function sc(e){if(!Array.isArray(e))throw TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${jn(e)}"`);globalThis[Ks].customEqualityTesters.push(...e)}function cc(){return globalThis[Ks].customEqualityTesters}function Y(e,t,n,r){return n||=[],dc(e,t,[],[],n,r?hc:mc)}Function.prototype.toString;function lc(e){return!!e&&typeof e==`object`&&`asymmetricMatch`in e&&gc(`Function`,e.asymmetricMatch)}function uc(e,t,n){let r=lc(e),i=lc(t);if(!(r&&i)){if(r)return e.asymmetricMatch(t,n);if(i)return t.asymmetricMatch(e,n)}}function dc(e,t,n,r,i,a){let o=!0,s=uc(e,t,i);if(s!==void 0)return s;let c={equals:Y};for(let n=0;n<i.length;n++){let r=i[n].call(c,e,t,i);if(r!==void 0)return r}if(typeof URL==`function`&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case`[object Boolean]`:case`[object String]`:case`[object Number]`:return typeof e==typeof t?typeof e!=`object`&&typeof t!=`object`?Object.is(e,t):Object.is(e.valueOf(),t.valueOf()):!1;case`[object Date]`:{let n=+e,r=+t;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case`[object RegExp]`:return e.source===t.source&&e.flags===t.flags;case`[object Temporal.Instant]`:case`[object Temporal.ZonedDateTime]`:case`[object Temporal.PlainDateTime]`:case`[object Temporal.PlainDate]`:case`[object Temporal.PlainTime]`:case`[object Temporal.PlainYearMonth]`:case`[object Temporal.PlainMonthDay]`:return e.equals(t);case`[object Temporal.Duration]`:return e.toString()===t.toString()}if(typeof e!=`object`||typeof t!=`object`)return!1;if(_c(e)&&_c(t))return e.isEqualNode(t);let u=n.length;for(;u--;)if(n[u]===e)return r[u]===t;else if(r[u]===t)return!1;if(n.push(e),r.push(t),l===`[object Array]`&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return fc(e,t,n,r,i,a)}finally{n.pop(),r.pop()}let d=pc(e,a),f,p=d.length;if(pc(t,a).length!==p)return!1;for(;p--;)if(f=d[p],o=a(t,f)&&dc(e[f],t[f],n,r,i,a),!o)return!1;return n.pop(),r.pop(),o}function fc(e,t,n,r,i,a){let o=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return t.cause!==void 0&&(o&&=dc(e.cause,t.cause,n,r,i,a)),e instanceof AggregateError&&t instanceof AggregateError&&(o&&=dc(e.errors,t.errors,n,r,i,a)),o&&=dc({...e},{...t},n,r,i,a),o}function pc(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable))}function mc(e,t){return hc(e,t)&&e[t]!==void 0}function hc(e,t){return Object.hasOwn(e,t)}function gc(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function _c(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`&&`nodeName`in e&&typeof e.nodeName==`string`&&`isEqualNode`in e&&typeof e.isEqualNode==`function`}const vc=`@@__IMMUTABLE_KEYED__@@`,yc=`@@__IMMUTABLE_SET__@@`,bc=`@@__IMMUTABLE_ORDERED__@@`;function xc(e){return!!(e&&e[vc]&&!e[bc])}function Sc(e){return!!(e&&e[yc]&&!e[bc])}function Cc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function wc(e){return!!(e&&Cc(e)&&e[`@@__IMMUTABLE_LIST__@@`])}function Tc(e){return!!(e&&Cc(e)&&e[vc]&&e[bc])}function Ec(e){return!!(e&&Cc(e)&&e[yc]&&e[bc])}function Dc(e){return!!(e&&Cc(e)&&e[`@@__IMMUTABLE_RECORD__@@`])}const Oc=Symbol.iterator;function kc(e){return!!(e!=null&&e[Oc])}function X(e,t,n=[],r=[],i=[]){if(typeof e!=`object`||typeof t!=`object`||Array.isArray(e)||Array.isArray(t)||!kc(e)||!kc(t))return;if(e.constructor!==t.constructor)return!1;let a=r.length;for(;a--;)if(r[a]===e)return i[a]===t;r.push(e),i.push(t);let o=[...n.filter(e=>e!==X),s];function s(e,t){return X(e,t,[...n],[...r],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(gc(`Set`,e)||Sc(e)){let n=!0;for(let r of e)if(!t.has(r)){let e=!1;for(let n of t)Y(r,n,o)===!0&&(e=!0);if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}else if(gc(`Map`,e)||xc(e)){let n=!0;for(let r of e)if(!t.has(r[0])||!Y(r[1],t.get(r[0]),o)){let e=!1;for(let n of t){let t=Y(r[0],n[0],o),i=!1;t===!0&&(i=Y(r[1],n[1],o)),i===!0&&(e=!0)}if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}}let c=t[Oc]();for(let t of e){let e=c.next();if(e.done||!Y(t,e.value,o))return!1}return!c.next().done||!wc(e)&&!Tc(e)&&!Ec(e)&&!Dc(e)&&!Y(Object.entries(e),Object.entries(t),o)?!1:(r.pop(),i.pop(),!0)}function Ac(e,t){return!e||typeof e!=`object`||e===Object.prototype?!1:Object.hasOwn(e,t)||Ac(Object.getPrototypeOf(e),t)}function jc(e){return kn(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Mc(e,t,n=[]){let r=n.filter(e=>e!==Mc),i=(e=new WeakMap)=>(t,n)=>{if(jc(n))return Object.keys(n).every(a=>{if(n[a]!=null&&typeof n[a]==`object`){if(e.has(n[a]))return Y(t[a],n[a],r);e.set(n[a],!0)}let o=t!=null&&Ac(t,a)&&Y(t[a],n[a],[...r,i(e)]);return e.delete(n[a]),o})};return i()(e,t)}function Nc(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function Pc(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n.getUint8(e)!==r.getUint8(e))return!1;return!0}function Fc(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),i=Object.keys(t);return Y(e,t,n.filter(e=>e!==Fc),!0)&&Y(r,i)}function Ic(e,t=`#{this}`,n=`#{exp}`){let r=`expected ${t} to be ${n} // Object.is equality`;return[`toStrictEqual`,`toEqual`].includes(e)?`${r}\n\nIf it should pass with deep equality, replace "toBe" with "${e}"\n\nExpected: ${t}\nReceived: serializes to the same string\n`:r}function Lc(e,t){return`${t} ${e}${t===1?``:`s`}`}function Rc(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}function zc(e,t,n){let r=0,i=(e=new WeakMap)=>(t,a)=>{if(Array.isArray(t)){if(Array.isArray(a)&&a.length===t.length)return a.map((n,r)=>i(e)(t[r],n))}else if(t instanceof Date)return t;else if(kn(t)&&kn(a)){if(Y(t,a,[...n,X,Mc]))return a;let o={};e.set(t,o),typeof t.constructor==`function`&&typeof t.constructor.name==`string`&&Object.defineProperty(o,`constructor`,{enumerable:!1,value:t.constructor});for(let n of Rc(t))Ac(a,n)?o[n]=e.has(t[n])?e.get(t[n]):i(e)(t[n],a[n]):e.has(t[n])||(r+=1,kn(t[n])&&(r+=Rc(t[n]).length),i(e)(t[n],a[n]));if(Rc(o).length>0)return o}return t};return{subset:i()(e,t),stripped:r}}function Bc(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&e[`~standard`]&&typeof e[`~standard`].validate==`function`}if(!Object.hasOwn(globalThis,Gs)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Gs,{get:()=>e}),Object.defineProperty(globalThis,Ks,{configurable:!0,get:()=>({state:e.get(globalThis[qs]),matchers:t,customEqualityTesters:n})}),Object.defineProperty(globalThis,Js,{get:()=>r})}function Vc(e){return globalThis[Gs].get(e)}function Hc(e,t){let n=globalThis[Gs],r=n.get(t)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,i)}var Uc=class{$$typeof=Symbol.for(`jest.asymmetricMatcher`);constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...Vc(e||globalThis[qs]),equals:Y,isNot:this.inverse,customTesters:cc(),utils:{...ac(),diff:Gr,stringify:M,iterableEquality:X,subsetEquality:Mc}}}};Uc.prototype[Symbol.for(`chai/inspect`)]=function(e){let t=M(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var Wc=class extends Uc{constructor(e,t=!1){if(!gc(`String`,e))throw Error(`Expected is not a string`);super(e,t)}asymmetricMatch(e){let t=gc(`String`,e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Containing`}getExpectedType(){return`string`}},Gc=class extends Uc{asymmetricMatch(e){return e!=null}toString(){return`Anything`}toAsymmetricMatcher(){return`Anything`}},Kc=class extends Uc{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.hasOwn(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}getProperties(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}asymmetricMatch(e,t){if(typeof this.sample!=`object`)throw TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let n=!0,r=this.getProperties(this.sample);for(let i of r){if(!this.hasProperty(e,i)){n=!1;break}if(!Y(Object.getOwnPropertyDescriptor(this.sample,i)?.value??this.sample[i],Object.getOwnPropertyDescriptor(e,i)?.value??e[i],t)){n=!1;break}}return this.inverse?!n:n}toString(){return`Object${this.inverse?`Not`:``}Containing`}getExpectedType(){return`object`}},qc=class extends Uc{constructor(e,t=!1){super(e,t)}asymmetricMatch(e,t){if(!Array.isArray(this.sample))throw TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let n=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(e=>Y(n,e,t)));return this.inverse?!n:n}toString(){return`Array${this.inverse?`Not`:``}Containing`}getExpectedType(){return`array`}},Jc=class extends Uc{constructor(e){if(e===void 0)throw TypeError(`any() expects to be passed a constructor function. Please pass one or use anything() to match any object.`);super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:`<anonymous>`}asymmetricMatch(e){return this.sample===String?typeof e==`string`||e instanceof String:this.sample===Number?typeof e==`number`||e instanceof Number:this.sample===Function?typeof e==`function`||typeof e==`function`:this.sample===Boolean?typeof e==`boolean`||e instanceof Boolean:this.sample===BigInt?typeof e==`bigint`||e instanceof BigInt:this.sample===Symbol?typeof e==`symbol`||e instanceof Symbol:this.sample===Object?typeof e==`object`:e 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)}>`}},Yc=class extends Uc{constructor(e,t=!1){if(!gc(`String`,e)&&!gc(`RegExp`,e))throw Error(`Expected is not a String or a RegExp`);super(new RegExp(e),t)}asymmetricMatch(e){let t=gc(`String`,e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Matching`}getExpectedType(){return`string`}},Xc=class extends Uc{precision;constructor(e,t=2,n=!1){if(!gc(`Number`,e))throw Error(`Expected is not a Number`);if(!gc(`Number`,t))throw Error(`Precision is not a Number`);super(e),this.inverse=n,this.precision=t}asymmetricMatch(e){if(!gc(`Number`,e))return!1;let t=!1;return t=e===1/0&&this.sample===1/0||e===-1/0&&this.sample===-1/0?!0:Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?`Not`:``}CloseTo`}getExpectedType(){return`number`}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${Lc(`digit`,this.precision)})`].join(` `)}},Zc=class extends Uc{result;constructor(e,t=!1){if(!Bc(e))throw TypeError(`SchemaMatching expected to receive a Standard Schema.`);super(e,t)}asymmetricMatch(e){let t=this.sample[`~standard`].validate(e);if(t instanceof Promise)throw TypeError(`Async schema validation is not supported in asymmetric matchers.`);this.result=t;let n=!this.result.issues||this.result.issues.length===0;return this.inverse?!n:n}toString(){return`Schema${this.inverse?`Not`:``}Matching`}getExpectedType(){return`object`}toAsymmetricMatcher(){let{utils:e}=this.getMatcherContext();return(this.result?.issues||[]).length>0?`${this.toString()} ${e.stringify(this.result,void 0,{printBasicPrototype:!1})}`:this.toString()}};const Qc=(e,t)=>{t.addMethod(e.expect,`anything`,()=>new Gc),t.addMethod(e.expect,`any`,e=>new Jc(e)),t.addMethod(e.expect,`stringContaining`,e=>new Wc(e)),t.addMethod(e.expect,`objectContaining`,e=>new Kc(e)),t.addMethod(e.expect,`arrayContaining`,e=>new qc(e)),t.addMethod(e.expect,`stringMatching`,e=>new Yc(e)),t.addMethod(e.expect,`closeTo`,(e,t)=>new Xc(e,t)),t.addMethod(e.expect,`schemaMatching`,e=>new Zc(e)),e.expect.not={stringContaining:e=>new Wc(e,!0),objectContaining:e=>new Kc(e,!0),arrayContaining:e=>new qc(e,!0),stringMatching:e=>new Yc(e,!0),closeTo:(e,t)=>new Xc(e,t,!0),schemaMatching:e=>new Zc(e,!0)}};function $c(e,t,n){let r=e.flag(t,`negate`)?`not.`:``,i=`${e.flag(t,`_name`)}(${n?`expected`:``})`,a=e.flag(t,`promise`);return`expect(actual)${a?`.${a}`:``}.${r}${i}`}function el(e,t,n,r){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let e=i.promises.indexOf(t);e!==-1&&i.promises.splice(e,1)}),i.promises||=[],i.promises.push(t);let e=!1;return i.onFinished??=[],i.onFinished.push(()=>{if(!e){let e=(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||``))(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.
|
|
305
|
-
`,e].join(``))}}),{then(n,r){return e=!0,t.then(n,r)},catch(e){return t.catch(e)},finally(e){return t.finally(e)},[Symbol.toStringTag]:`Promise`}}return t}function tl(e,t){var n;e.result||={state:`fail`},e.result.state=`fail`,(n=e.result).errors||(n.errors=[]),e.result.errors.push(zi(t))}function nl(e,t,n){return function(...r){if(t!==`withTest`&&e.flag(this,`_name`,t),!e.flag(this,`soft`))return n.apply(this,r);let i=e.flag(this,`vitest-test`);if(!i)throw Error(`expect.soft() can only be used inside a test`);try{let e=n.apply(this,r);return e&&typeof e==`object`&&typeof e.then==`function`?e.then(Ln,e=>{tl(i,e)}):e}catch(e){tl(i,e)}}}const rl=(e,t)=>{let{AssertionError:n}=e,r=cc();function i(n,r){let i=n=>{let i=nl(t,n,r);t.addMethod(e.Assertion.prototype,n,i),t.addMethod(globalThis[Ks].matchers,n,i)};Array.isArray(n)?n.forEach(e=>i(e)):i(n)}[`throw`,`throws`,`Throw`].forEach(r=>{t.overwriteMethod(e.Assertion.prototype,r,e=>function(...r){let i=t.flag(this,`promise`),a=t.flag(this,`object`),o=t.flag(this,`negate`);if(i===`rejects`)t.flag(this,`object`,()=>{throw a});else if(i===`resolves`&&typeof a!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}e.apply(this,r)})}),i(`withTest`,function(e){return t.flag(this,`vitest-test`,e),this}),i(`toEqual`,function(e){let n=t.flag(this,`object`),i=Y(n,e,[...r,X]);return this.assert(i,`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,n)}),i(`toStrictEqual`,function(e){let n=t.flag(this,`object`),i=Y(n,e,[...r,X,Nc,Fc,Pc],!0);return this.assert(i,`expected #{this} to strictly equal #{exp}`,`expected #{this} to not strictly equal #{exp}`,e,n)}),i(`toBe`,function(e){let t=this._obj,n=Object.is(t,e),i=``;return n||(Y(t,e,[...r,X,Nc,Fc,Pc],!0)?i=`toStrictEqual`:Y(t,e,[...r,X])&&(i=`toEqual`)),this.assert(n,Ic(i),`expected #{this} not to be #{exp} // Object.is equality`,e,t)}),i(`toMatchObject`,function(e){let i=this._obj,a=Y(i,e,[...r,X,Mc]),o=t.flag(this,`negate`),{subset:s,stripped:c}=zc(i,e,r);if(a&&o||!a&&!o){let r=t.getMessage(this,[a,`expected #{this} to match object #{exp}`,`expected #{this} to not match object #{exp}`,e,s,!1]);throw new n(c===0?r:`${r}\n(${c} matching ${c===1?`property`:`properties`} omitted from actual)`,{showDiff:!0,expected:e,actual:s})}}),i(`toMatch`,function(e){let t=this._obj;if(typeof t!=`string`)throw TypeError(`.toMatch() expects to receive a string, but got ${typeof t}`);return this.assert(typeof e==`string`?t.includes(e):t.match(e),`expected #{this} to match #{exp}`,`expected #{this} not to match #{exp}`,e,t)}),i(`toContain`,function(e){let n=this._obj;if(typeof Node<`u`&&n instanceof Node){if(!(e instanceof Node))throw TypeError(`toContain() expected a DOM node as the argument, but got ${typeof e}`);return this.assert(n.contains(e),`expected #{this} to contain element #{exp}`,`expected #{this} not to contain element #{exp}`,e,n)}if(typeof DOMTokenList<`u`&&n instanceof DOMTokenList){N(e,`class name`,[`string`]);let r=t.flag(this,`negate`)?n.value.replace(e,``).trim():`${n.value} ${e}`;return this.assert(n.contains(e),`expected "${n.value}" to contain "${e}"`,`expected "${n.value}" not to contain "${e}"`,r,n.value)}return typeof n==`string`&&typeof e==`string`?this.assert(n.includes(e),`expected #{this} to contain #{exp}`,`expected #{this} not to contain #{exp}`,e,n):(n!=null&&typeof n!=`string`&&t.flag(this,`object`,Array.from(n)),this.contain(e))}),i(`toContainEqual`,function(e){let n=t.flag(this,`object`),i=Array.from(n).findIndex(t=>Y(t,e,r));this.assert(i!==-1,`expected #{this} to deep equally contain #{exp}`,`expected #{this} to not deep equally contain #{exp}`,e)}),i(`toBeTruthy`,function(){let e=t.flag(this,`object`);this.assert(!!e,`expected #{this} to be truthy`,`expected #{this} to not be truthy`,!0,e)}),i(`toBeFalsy`,function(){let e=t.flag(this,`object`);this.assert(!e,`expected #{this} to be falsy`,`expected #{this} to not be falsy`,!1,e)}),i(`toBeGreaterThan`,function(e){let t=this._obj;return N(t,`actual`,[`number`,`bigint`]),N(e,`expected`,[`number`,`bigint`]),this.assert(t>e,`expected ${t} to be greater than ${e}`,`expected ${t} to be not greater than ${e}`,e,t,!1)}),i(`toBeGreaterThanOrEqual`,function(e){let t=this._obj;return N(t,`actual`,[`number`,`bigint`]),N(e,`expected`,[`number`,`bigint`]),this.assert(t>=e,`expected ${t} to be greater than or equal to ${e}`,`expected ${t} to be not greater than or equal to ${e}`,e,t,!1)}),i(`toBeLessThan`,function(e){let t=this._obj;return N(t,`actual`,[`number`,`bigint`]),N(e,`expected`,[`number`,`bigint`]),this.assert(t<e,`expected ${t} to be less than ${e}`,`expected ${t} to be not less than ${e}`,e,t,!1)}),i(`toBeLessThanOrEqual`,function(e){let t=this._obj;return N(t,`actual`,[`number`,`bigint`]),N(e,`expected`,[`number`,`bigint`]),this.assert(t<=e,`expected ${t} to be less than or equal to ${e}`,`expected ${t} to be not less than or equal to ${e}`,e,t,!1)}),i(`toBeNaN`,function(){let e=t.flag(this,`object`);this.assert(Number.isNaN(e),`expected #{this} to be NaN`,`expected #{this} not to be NaN`,NaN,e)}),i(`toBeUndefined`,function(){let e=t.flag(this,`object`);this.assert(e===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`,void 0,e)}),i(`toBeNull`,function(){let e=t.flag(this,`object`);this.assert(e===null,`expected #{this} to be null`,`expected #{this} not to be null`,null,e)}),i(`toBeNullable`,function(){let e=t.flag(this,`object`);this.assert(e==null,`expected #{this} to be nullish`,`expected #{this} not to be nullish`,null,e)}),i(`toBeDefined`,function(){let e=t.flag(this,`object`);this.assert(e!==void 0,`expected #{this} to be defined`,`expected #{this} to be undefined`,e)}),i(`toBeTypeOf`,function(e){let t=typeof this._obj,n=e===t;return this.assert(n,`expected #{this} to be type of #{exp}`,`expected #{this} not to be type of #{exp}`,e,t)}),i(`toBeInstanceOf`,function(e){return this.instanceOf(e)}),i(`toHaveLength`,function(e){return this.have.length(e)}),i(`toHaveProperty`,function(...e){Array.isArray(e[0])&&(e[0]=e[0].map(e=>String(e).replace(/([.[\]])/g,`\\$1`)).join(`.`));let n=this._obj,[i,a]=e,{value:o,exists:s}=(()=>Object.hasOwn(n,i)?{value:n[i],exists:!0}:t.getPathInfo(n,i))(),c=s&&(e.length===1||Y(a,o,r)),l=e.length===1?``:` with value ${t.objDisplay(a)}`;return this.assert(c,`expected #{this} to have property "${i}"${l}`,`expected #{this} to not have property "${i}"${l}`,a,s?o:void 0)}),i(`toBeCloseTo`,function(e,t=2){let n=this._obj,r=!1,i=0,a=0;return e===1/0&&n===1/0||e===-1/0&&n===-1/0?r=!0:(i=10**-t/2,a=Math.abs(n-e),r=a<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${a}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${a}, but expected ${i}`,e,n,!1)});function a(e){if(!ci(e._obj))throw TypeError(`${t.inspect(e._obj)} is not a spy or a call to a spy!`)}function o(e){return a(e),e._obj}i([`toHaveBeenCalledTimes`,`toBeCalledTimes`],function(e){let t=o(this),n=t.getMockName(),r=t.mock.calls.length;return this.assert(r===e,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,e,r,!1)}),i(`toHaveBeenCalledOnce`,function(){let e=o(this),t=e.getMockName(),n=e.mock.calls.length;return this.assert(n===1,`expected "${t}" to be called once, but got ${n} times`,`expected "${t}" to not be called once`,1,n,!1)}),i([`toHaveBeenCalled`,`toBeCalled`],function(){let e=o(this),r=e.getMockName(),i=e.mock.calls.length,a=i>0,s=t.flag(this,`negate`),c=t.getMessage(this,[a,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,a]);if(a&&s&&(c=al(e,c)),a&&s||!a&&!s)throw new n(c)});function s(e,t){return e.length===t.length&&e.every((e,n)=>Y(e,t[n],[...r,X]))}i([`toHaveBeenCalledWith`,`toBeCalledWith`],function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.some(t=>s(t,e)),c=t.flag(this,`negate`),l=t.getMessage(this,[a,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,e]);if(a&&c||!a&&!c)throw new n(al(r,l,e))}),i(`toHaveBeenCalledExactlyOnceWith`,function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.length,c=r.mock.calls.some(t=>s(t,e))&&a===1,l=t.flag(this,`negate`),u=t.getMessage(this,[c,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,e]);if(c&&l||!c&&!l)throw new n(al(r,u,e))}),i([`toHaveBeenNthCalledWith`,`nthCalledWith`],function(e,...t){let n=o(this),r=n.getMockName(),i=n.mock.calls[e-1],a=n.mock.calls.length,c=e<=a;this.assert(i&&s(i,t),`expected ${il(e)} "${r}" call to have been called with #{exp}${c?``:`, but called only ${a} times`}`,`expected ${il(e)} "${r}" call to not have been called with #{exp}`,t,i,c)}),i([`toHaveBeenLastCalledWith`,`lastCalledWith`],function(...e){let t=o(this),n=t.getMockName(),r=t.mock.calls.at(-1);this.assert(r&&s(r,e),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,e,r)});function c(e,t,n){let r=e.mock.invocationCallOrder,i=t.mock.invocationCallOrder;return r.length===0?!n:i.length===0?!1:r[0]<i[0]}i([`toHaveBeenCalledBefore`],function(e,n=!0){let r=o(this);if(!ci(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(r,e,n),`expected "${r.getMockName()}" to have been called before "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${e.getMockName()}"`,e,r)}),i([`toHaveBeenCalledAfter`],function(e,n=!0){let r=o(this);if(!ci(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(e,r,n),`expected "${r.getMockName()}" to have been called after "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${e.getMockName()}"`,e,r)}),i([`toThrow`,`toThrowError`],function(e){if(typeof e==`string`||e===void 0||e instanceof RegExp)return this.throws(e===``?/^$/:e);let i=this._obj,a=t.flag(this,`promise`),o=t.flag(this,`negate`),s=null;if(a===`rejects`)s=i;else if(a===`resolves`&&typeof i!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}else{let e=!1;try{i()}catch(t){e=!0,s=t}if(!e&&!o)throw new n(t.flag(this,`message`)||`expected function to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}if(typeof e==`function`){let t=e.name||e.prototype.constructor.name;return this.assert(s&&s instanceof e,`expected error to be instance of ${t}`,`expected error not to be instance of ${t}`,e,s)}if(e instanceof Error){let t=Y(s,e,[...r,X]);return this.assert(t,`expected a thrown error to be #{exp}`,`expected a thrown error not to be #{exp}`,e,s)}if(typeof e==`object`&&`asymmetricMatch`in e&&typeof e.asymmetricMatch==`function`){let t=e;return this.assert(s&&t.asymmetricMatch(s),`expected error to match asymmetric matcher`,`expected error not to match asymmetric matcher`,t,s)}throw Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof e}"`)}),[{name:`toHaveResolved`,condition:e=>e.mock.settledResults.length>0&&e.mock.settledResults.some(({type:e})=>e===`fulfilled`),action:`resolved`},{name:[`toHaveReturned`,`toReturn`],condition:e=>e.mock.calls.length>0&&e.mock.results.some(({type:e})=>e!==`throw`),action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(){let e=o(this),r=e.getMockName(),i=t(e);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)})}),[{name:`toHaveResolvedTimes`,condition:(e,t)=>e.mock.settledResults.reduce((e,{type:t})=>t===`fulfilled`?++e:e,0)===t,action:`resolved`},{name:[`toHaveReturnedTimes`,`toReturnTimes`],condition:(e,t)=>e.mock.results.reduce((e,{type:t})=>t===`throw`?e:++e,0)===t,action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=r.getMockName(),a=t(r,e);this.assert(a,`expected "${i}" to be successfully ${n} ${e} times`,`expected "${i}" to not be successfully ${n} ${e} times`,`expected resolved times: ${e}`,`received resolved times: ${a}`,!1)})}),[{name:`toHaveResolvedWith`,condition:(e,t)=>e.mock.settledResults.some(({type:e,value:n})=>e===`fulfilled`&&Y(t,n)),action:`resolve`},{name:[`toHaveReturnedWith`,`toReturnWith`],condition:(e,t)=>e.mock.results.some(({type:e,value:n})=>e===`return`&&Y(t,n)),action:`return`}].forEach(({name:e,condition:r,action:a})=>{i(e,function(e){let i=o(this),s=r(i,e),c=t.flag(this,`negate`);if(s&&c||!s&&!c){let r=i.getMockName(),o=t.getMessage(this,[s,`expected "${r}" to ${a} with: #{exp} at least once`,`expected "${r}" to not ${a} with: #{exp}`,e]);throw new n(ol(i,a===`return`?i.mock.results:i.mock.settledResults,o,e))}})}),[{name:`toHaveLastResolvedWith`,condition:(e,t)=>{let n=e.mock.settledResults.at(-1);return!!(n&&n.type===`fulfilled`&&Y(n.value,t))},action:`resolve`},{name:[`toHaveLastReturnedWith`,`lastReturnedWith`],condition:(e,t)=>{let n=e.mock.results.at(-1);return!!(n&&n.type===`return`&&Y(n.value,t))},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=(n===`return`?r.mock.results:r.mock.settledResults).at(-1),a=r.getMockName();this.assert(t(r,e),`expected last "${a}" call to ${n} #{exp}`,`expected last "${a}" call to not ${n} #{exp}`,e,i?.value)})}),[{name:`toHaveNthResolvedWith`,condition:(e,t,n)=>{let r=e.mock.settledResults[t-1];return r&&r.type===`fulfilled`&&Y(r.value,n)},action:`resolve`},{name:[`toHaveNthReturnedWith`,`nthReturnedWith`],condition:(e,t,n)=>{let r=e.mock.results[t-1];return r&&r.type===`return`&&Y(r.value,n)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e,r){let i=o(this),a=i.getMockName(),s=(n===`return`?i.mock.results:i.mock.settledResults)[e-1],c=`${il(e)} call`;this.assert(t(i,e,r),`expected ${c} "${a}" call to ${n} #{exp}`,`expected ${c} "${a}" call to not ${n} #{exp}`,r,s?.value)})}),i(`withContext`,function(e){for(let n in e)t.flag(this,n,e[n]);return this}),t.addProperty(e.Assertion.prototype,`resolves`,function(){let r=Error(`resolves`);t.flag(this,`promise`,`resolves`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`);if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .resolves`);if(typeof a?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof a}'.`);let o=new Proxy(this,{get:(s,c,l)=>{let u=Reflect.get(s,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),el(i,a.then(n=>(t.flag(this,`object`,n),u.call(this,...e)),e=>{let i=new n(`promise rejected "${t.inspect(e)}" instead of resolving`,{showDiff:!1});throw i.cause=e,i.stack=r.stack.replace(r.message,i.message),i}),$c(t,this,!!e.length),r)):u instanceof e.Assertion?o:u}});return o}),t.addProperty(e.Assertion.prototype,`rejects`,function(){let r=Error(`rejects`);t.flag(this,`promise`,`rejects`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`),o=typeof a==`function`?a():a;if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .rejects`);if(typeof o?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof o}'.`);let s=new Proxy(this,{get:(a,c,l)=>{let u=Reflect.get(a,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),el(i,o.then(e=>{let i=new n(`promise resolved "${t.inspect(e)}" instead of rejecting`,{showDiff:!0,expected:Error(`rejected promise`),actual:e});throw i.stack=r.stack.replace(r.message,i.message),i},n=>(t.flag(this,`object`,n),u.call(this,...e))),$c(t,this,!!e.length),r)):u instanceof e.Assertion?s:u}});return s})};function il(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function al(e,t,n){return e.mock.calls.length&&(t+=s.gray(`\n\nReceived: \n\n${e.mock.calls.map((t,r)=>{let i=s.bold(` ${il(r+1)} ${e.getMockName()} call:\n\n`);return n?i+=Gr(n,t,{omitAnnotationLines:!0}):i+=M(t).split(`
|
|
306
|
-
`).map(e=>` ${e}`).join(`
|
|
307
|
-
`),i+=`
|
|
308
|
-
`,i}).join(`
|
|
309
|
-
`)}`)),t+=s.gray(`\n\nNumber of calls: ${s.bold(e.mock.calls.length)}\n`),t}function ol(e,t,n,r){return t.length&&(n+=s.gray(`\n\nReceived: \n\n${t.map((t,n)=>{let i=s.bold(` ${il(n+1)} ${e.getMockName()} call return:\n\n`);return r?i+=Gr(r,t.value,{omitAnnotationLines:!0}):i+=M(t).split(`
|
|
310
|
-
`).map(e=>` ${e}`).join(`
|
|
311
|
-
`),i+=`
|
|
312
|
-
`,i}).join(`
|
|
313
|
-
`)}`)),n+=s.gray(`\n\nNumber of calls: ${s.bold(e.mock.calls.length)}\n`),n}function sl(e,t){let n=e._obj,r=I.flag(e,`negate`),i=I.flag(e,`promise`)||``,a=I.flag(e,`message`),o={...ac(),diff:Gr,stringify:M,iterableEquality:X,subsetEquality:Mc},s=I.flag(e,`vitest-test`),c=s?.fullTestName??``;return s?.type!==`test`&&(s=void 0),{state:{...Vc(t),task:s,currentTestName:c,customTesters:cc(),isNot:r,utils:o,promise:i,equals:Y,suppressedErrors:[],soft:I.flag(e,`soft`),poll:I.flag(e,`poll`)},isNot:r,obj:n,customMessage:a}}var cl=class extends Error{constructor(e,t,n){super(e),this.actual=t,this.expected=n}};function ll(e,t,n){return(r,i)=>{Object.entries(n).forEach(([n,r])=>{function a(...e){let{state:n,isNot:i,obj:a,customMessage:o}=sl(this,t),s=r.call(n,a,...e);if(s&&typeof s==`object`&&typeof s.then==`function`)return s.then(({pass:e,message:t,actual:n,expected:r})=>{if(e&&i||!e&&!i)throw new cl(o??t(),n,r)});let{pass:c,message:l,actual:u,expected:d}=s;if(c&&i||!c&&!i)throw new cl(o??l(),u,d)}let o=nl(i,n,a);i.addMethod(globalThis[Ks].matchers,n,o),i.addMethod(e.Assertion.prototype,n,o);class s extends Uc{constructor(e=!1,...t){super(t,e)}asymmetricMatch(e){let{pass:n}=r.call(this.getMatcherContext(t),e,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?`not.`:``}${n}`}getExpectedType(){return`any`}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(e=>M(e)).join(`, `)}>`}}let c=(...e)=>new s(!1,...e);Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(t.not,n,{configurable:!0,enumerable:!0,value:(...e)=>new s(!0,...e),writable:!0}),Object.defineProperty(globalThis[Js],n,{configurable:!0,enumerable:!0,value:c,writable:!0})})}}const ul=(e,t)=>{t.addMethod(e.expect,`extend`,(t,n)=>{Ws(ll(e,t,n))})},dl=Symbol(`vitest:SAFE_TIMERS`);function fl(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:a,queueMicrotask:o}=globalThis[dl]||globalThis,{nextTick:s}=globalThis[dl]||globalThis.process||{};return{nextTick:s,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:a,queueMicrotask:o}}function pl(e,t=setTimeout){return new Promise(n=>t(n,e))}const ml=/^[A-Za-z]:\//;function hl(e=``){return e&&e.replace(/\\/g,`/`).replace(ml,e=>e.toUpperCase())}const gl=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function _l(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}const vl=function(...e){e=e.map(e=>hl(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:_l();!i||i.length===0||(t=`${i}/${t}`,n=bl(i))}return t=yl(t,!n),n&&!bl(t)?`/${t}`:t.length>0?t:`.`};function yl(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}const bl=function(e){return gl.test(e)};var xl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Sl=new Uint8Array(64),Cl=new Uint8Array(128);for(let e=0;e<xl.length;e++){let t=xl.charCodeAt(e);Sl[e]=t,Cl[t]=e}const wl=/^\s*at .*(?:\S:\d+|\(native\))/m,Tl=/^(?:eval@)?(?:\[native code\])?$/;function El(e){if(!e.includes(`:`))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,``));if(!t)return[e];let n=t[1];if(n.startsWith(`async `)&&(n=n.slice(6)),n.startsWith(`http:`)||n.startsWith(`https:`)){let e=new URL(n);e.searchParams.delete(`import`),e.searchParams.delete(`browserv`),n=e.pathname+e.hash+e.search}if(n.startsWith(`/@fs/`)){let e=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(e?5:4)}return[n,t[2]||void 0,t[3]||void 0]}function Dl(e){let t=e.trim();if(Tl.test(t)||(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)))return null;let n=-1,r=``,i;for(let e=0;e<t.length;e++)if(t[e]===`@`){let a=t.slice(e+1);if(a.includes(`:`)&&a.length>=3){n=e,r=a,i=e>0?t.slice(0,e):void 0;break}}if(n===-1||!r.includes(`:`)||r.length<3)return null;let[a,o,s]=El(r);return!a||!o||!s?null:{file:a,method:i||``,line:Number.parseInt(o),column:Number.parseInt(s)}}function Ol(e){let t=e.trim();return wl.test(t)?kl(t):Dl(t)}function kl(e){let t=e.trim();if(!wl.test(t))return null;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let[i,a,o]=El(r?r[1]:n),s=r&&n||``,c=i&&[`eval`,`<anonymous>`].includes(i)?void 0:i;return!c||!a||!o?null:(s.startsWith(`async `)&&(s=s.slice(6)),c.startsWith(`file://`)&&(c=c.slice(7)),c=c.startsWith(`node:`)||c.startsWith(`internal:`)?c:vl(c),s&&=s.replace(/__vite_ssr_import_\d+__\./g,``).replace(/(Object\.)?__vite_ssr_export_default__\s?/g,``),{method:s,file:c,line:Number.parseInt(a),column:Number.parseInt(o)})}const Al=/^[A-Za-z]:\//;function jl(e=``){return e&&e.replace(/\\/g,`/`).replace(Al,e=>e.toUpperCase())}const Ml=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Nl=/^[A-Za-z]:$/;function Pl(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}const Fl=function(...e){e=e.map(e=>jl(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Pl();!i||i.length===0||(t=`${i}/${t}`,n=Ll(i))}return t=Il(t,!n),n&&!Ll(t)?`/${t}`:t.length>0?t:`.`};function Il(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}const Ll=function(e){return Ml.test(e)},Rl=function(e){let t=jl(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&Nl.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(Ll(e)?`/`:`.`)};function zl(e,t){function n(r){let i=function(...e){return t.apply(r,e)};Object.assign(i,t),i.withContext=()=>i.bind(r),i.setContext=(e,t)=>{r[e]=t},i.mergeContext=e=>{Object.assign(r,e)};for(let t of e)Object.defineProperty(i,t,{get(){return n({...r,[t]:!0})}});return i}let r=n({});return r.fn=t,r}function Bl(e,t){let n=t.split(`
|
|
314
|
-
`).slice(1);for(let t of n){let n=Ol(t);if(n&&n.file===e)return n}}function Vl(e){let t=[e.name],n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Hl(e,t=` > `){return e.filter(e=>e!==void 0).join(t)}var Ul=class extends Error{code=`VITEST_PENDING`;taskId;constructor(e,t,n){super(e),this.message=e,this.note=n,this.taskId=t.id}};const Wl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap;function ql(e,t){Wl.set(e,t)}function Jl(e,t){Gl.set(e,t)}function Yl(e){return Gl.get(e)}function Xl(e,t){Kl.set(e,t)}function Zl(e){return Kl.get(e)}function Ql(e,t){let n=t.reduce((e,t)=>(e[t.prop]=t,e),{}),r={};for(let t in e.forEach(e=>{let t=n[e.prop]||{...e};r[t.prop]=t}),r){let e=r[t];e.deps=e.deps?.map(e=>r[e.prop])}return Object.values(r)}function $l(e,t,n){let r=[`auto`,`injected`,`scope`],i=Object.entries(e).map(([e,t])=>{let i={value:t};if(Array.isArray(t)&&t.length>=2&&kn(t[1])&&Object.keys(t[1]).some(e=>r.includes(e))){Object.assign(i,t[1]);let r=t[0];i.value=i.injected?n.injectValue?.call(n,e)??r:r}return i.scope=i.scope||`test`,i.scope===`worker`&&!n.getWorkerContext&&(i.scope=`file`),i.prop=e,i.isFn=typeof i.value==`function`,i});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(i):t.fixtures=i,i.forEach(e=>{if(e.isFn){let r=su(e.value);if(r.length&&(e.deps=t.fixtures.filter(({prop:t})=>t!==e.prop&&r.includes(t))),e.scope!==`test`){var n;(n=e.deps)==null||n.forEach(t=>{if(t.isFn&&!(e.scope===`worker`&&t.scope===`worker`)&&!(e.scope===`file`&&t.scope!==`test`))throw SyntaxError(`cannot use the ${t.scope} fixture "${t.prop}" inside the ${e.scope} fixture "${e.prop}"`)})}}}),t}const eu=new Map,tu=new Map;function nu(e,t,n){return r=>{let i=r||n;if(!i)return t({});let a=Yl(i);if(!a?.length)return t(i);let o=su(t),s=a.some(({auto:e})=>e);if(!o.length&&!s)return t(i);eu.get(i)||eu.set(i,new Map);let c=eu.get(i);tu.has(i)||tu.set(i,[]);let l=tu.get(i),u=ou(a.filter(({prop:e,auto:t})=>t||o.includes(e)));if(!u.length)return t(i);async function d(){for(let t of u){if(c.has(t))continue;let n=await iu(e,t,i,l);i[t.prop]=n,c.set(t,n),t.scope===`test`&&l.unshift(()=>{c.delete(t)})}}return d().then(()=>t(i))}}const ru=new WeakMap;function iu(e,t,n,r){let i=Ju(n.task.file),a=e.getWorkerContext?.call(e);if(!t.isFn){var o;if(i[o=t.prop]??(i[o]=t.value),a){var s;a[s=t.prop]??(a[s]=t.value)}return t.value}if(t.scope===`test`)return au(t.value,n,r);if(ru.has(t))return ru.get(t);let c;if(t.scope===`worker`){if(!a)throw TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");c=a}else c=i;if(t.prop in c)return c[t.prop];tu.has(c)||tu.set(c,[]);let l=tu.get(c),u=au(t.value,c,l).then(e=>(c[t.prop]=e,ru.delete(t),e));return ru.set(t,u),u}async function au(e,t,n){let r=zn(),i=!1,a=e(t,async e=>{i=!0,r.resolve(e);let t=zn();n.push(async()=>{t.resolve(),await a}),await t}).catch(e=>{if(!i){r.reject(e);return}throw e});return r}function ou(e,t=new Set,n=[]){return e.forEach(e=>{if(!n.includes(e)){if(!e.isFn||!e.deps){n.push(e);return}if(t.has(e))throw Error(`Circular fixture dependency detected: ${e.prop} <- ${[...t].reverse().map(e=>e.prop).join(` <- `)}`);t.add(e),ou(e.deps,t,n),n.push(e),t.clear()}}),n}function su(e){let t=cu(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);let n=t.match(/[^(]*\(([^)]*)/);if(!n)return[];let r=lu(n[1]);if(!r.length)return[];let i=r[0];if(`__VITEST_FIXTURE_INDEX__`in e&&(i=r[e.__VITEST_FIXTURE_INDEX__],!i))return[];if(!(i[0]===`{`&&i.endsWith(`}`)))throw Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${i}".`);let a=lu(i.slice(1,-1).replace(/\s/g,``)).map(e=>e.replace(/:.*|=.*/g,``)),o=a.at(-1);if(o&&o.startsWith(`...`))throw Error(`Rest parameters are not supported in fixtures, received "${o}".`);return a}function cu(e){let t=[],n=`none`;for(let r=0;r<e.length;++r)n===`singleline`?e[r]===`
|
|
315
|
-
`&&(n=`none`):n===`multiline`?e[r-1]===`*`&&e[r]===`/`&&(n=`none`):n===`none`&&(e[r]===`/`&&e[r+1]===`/`?n=`singleline`:e[r]===`/`&&e[r+1]===`*`?(n=`multiline`,r+=2):t.push(e[r]));return t.join(``)}function lu(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]===`{`||e[i]===`[`)n.push(e[i]===`{`?`}`:`]`);else if(e[i]===n.at(-1))n.pop();else if(!n.length&&e[i]===`,`){let n=e.substring(r,i).trim();n&&t.push(n),r=i+1}let i=e.substring(r).trim();return i&&t.push(i),t}function uu(){return Tu().config.hookTimeout}const du=Symbol.for(`VITEST_CLEANUP_TIMEOUT`),fu=Symbol.for(`VITEST_CLEANUP_STACK_TRACE`);function pu(e,t=uu()){N(e,`"beforeAll" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`);return Eu().on(`beforeAll`,Object.assign(Vu(e,t,!0,n),{[du]:t,[fu]:n}))}function mu(e,t){return N(e,`"afterAll" callback`,[`function`]),Eu().on(`afterAll`,Vu(e,t??uu(),!0,Error(`STACK_TRACE_ERROR`)))}function hu(e,t=uu()){N(e,`"beforeEach" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`),r=Tu();return Eu().on(`beforeEach`,Object.assign(Vu(nu(r,e),t??uu(),!0,n,Uu),{[du]:t,[fu]:n}))}function gu(e,t){N(e,`"afterEach" callback`,[`function`]);let n=Tu();return Eu().on(`afterEach`,Vu(nu(n,e),t??uu(),!0,Error(`STACK_TRACE_ERROR`),Uu))}const _u=yu(`onTestFailed`,(e,t,n)=>{e.onFailed||=[],e.onFailed.push(Vu(t,n??uu(),!0,Error(`STACK_TRACE_ERROR`),Uu))}),vu=yu(`onTestFinished`,(e,t,n)=>{e.onFinished||=[],e.onFinished.push(Vu(t,n??uu(),!0,Error(`STACK_TRACE_ERROR`),Uu))});function yu(e,t){return(t,n)=>{throw N(t,`"${e}" callback`,[`function`]),Error(`Hook ${e}() can only be called inside a test`)}}const bu=ju(),xu=Nu(function(e,t,n){Eu().test.fn.call(this,Pu(e),t,n)}),Su=bu,Cu=xu;function wu(e,t){if(!e)throw Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function Tu(){wu(void 0,`the runner`)}function Eu(){let e=Z.currentSuite||void 0;return wu(e,`the current suite`),e}function Du(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function Ou(e,t){if(typeof t==`object`&&t)throw TypeError(`Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.`);let n={},r;if(typeof t==`number`?n={timeout:t}:typeof e==`object`&&(n=e),typeof e==`function`){if(typeof t==`function`)throw TypeError(`Cannot use two functions as arguments. Please use the second argument for options.`);r=e}else typeof t==`function`&&(r=t);return{options:n,handler:r}}function ku(e,t=()=>{},n,r,i,a){let o=[],s;p(!0);let c=function(e=``,t={}){var n;let r=t?.timeout??(void 0).config.testTimeout,a=Z.currentSuite?.suite,s={id:``,name:e,fullName:Hl([a?.fullName??((n=Z.currentSuite)==null||(n=n.file)==null?void 0:n.fullName),e]),fullTestName:Hl([a?.fullTestName,e]),suite:a,each:t.each,fails:t.fails,context:void 0,type:`test`,file:a?.file??Z.currentSuite?.file,timeout:r,retry:t.retry??(void 0).config.retry,repeats:t.repeats,mode:t.only?`only`:t.skip?`skip`:t.todo?`todo`:`run`,meta:t.meta??Object.create(null),annotations:[],artifacts:[]},c=t.handler;s.mode===`run`&&!c&&(s.mode=`todo`),(t.concurrent||!t.sequential&&(void 0).config.sequence.concurrent)&&(s.concurrent=!0),s.shuffle=i?.shuffle;let l=Gu(s,void 0);Object.defineProperty(s,`context`,{value:l,enumerable:!1}),Jl(l,t.fixtures);let u=Error.stackTraceLimit;Error.stackTraceLimit=15;let d=Error(`STACK_TRACE_ERROR`);if(Error.stackTraceLimit=u,c&&ql(s,Vu(Au(nu(void 0,c,l),s),r,!1,d,(e,t)=>Uu([l],t))),(void 0).config.includeTaskLocation){let e=d.stack,t=Bl(void 0,e);t&&(s.location={line:t.line,column:t.column})}return o.push(s),s},l=Nu(function(e,t,n){let{options:r,handler:a}=Ou(t,n);typeof i==`object`&&(r=Object.assign({},i,r)),r.concurrent=this.concurrent||!this.sequential&&r?.concurrent,r.sequential=this.sequential||!this.concurrent&&r?.sequential;let o=c(Pu(e),{...this,...r,handler:a});o.type=`test`}),u=a,d={type:`collector`,name:e,mode:n,suite:s,options:i,test:l,tasks:o,collect:h,task:c,clear:m,on:f,fixtures(){return u},scoped(e){let t=$l(e,{fixtures:u},void 0);t.fixtures&&(u=t.fixtures)}};function f(e,...t){Zl(s)[e].push(...t)}function p(t){var a;typeof i==`number`&&(i={timeout:i});let o=Z.currentSuite?.suite;s={id:``,type:`suite`,name:e,fullName:Hl([o?.fullName??((a=Z.currentSuite)==null||(a=a.file)==null?void 0:a.fullName),e]),fullTestName:Hl([o?.fullTestName,e]),suite:o,mode:n,each:r,file:o?.file??Z.currentSuite?.file,shuffle:i?.shuffle,tasks:[],meta:Object.create(null),concurrent:i?.concurrent},Xl(s,Du())}function m(){o.length=0,p(!1)}async function h(e){if(!e)throw TypeError(`File is required to collect tasks.`);t&&await Bu(d,()=>t(l));let n=[];for(let t of o)n.push(t.type===`collector`?await t.collect(e):t);return s.tasks=n,s}return zu(d),d}function Au(e,t){return(async(...n)=>{let r=await e(...n);if(t.promises){let e=(await Promise.allSettled(t.promises)).map(e=>e.status===`rejected`?e.reason:void 0).filter(Boolean);if(e.length)throw e}return r})}function ju(){function e(e,t,n){var r;let i=this.only?`only`:this.skip?`skip`:this.todo?`todo`:`run`,a=Z.currentSuite||void 0,{options:o,handler:s}=Ou(t,n);i===`run`&&!s&&(i=`todo`);let c=o.concurrent||this.concurrent||o.sequential===!1,l=o.sequential||this.sequential||o.concurrent===!1;o={...a?.options,...o,shuffle:this.shuffle??o.shuffle??(a==null||(r=a.options)==null?void 0:r.shuffle)??void 0};let u=c||o.concurrent&&!l,d=l||o.sequential&&!c;return o.concurrent=u&&!d,o.sequential=d&&!u,ku(Pu(e),s,i,this.each,o,a?.fixtures())}return e.each=function(e,...t){let n=this.withContext();return this.setContext(`each`,!0),Array.isArray(e)&&t.length&&(e=Lu(e,t)),(t,r,i)=>{let a=Pu(t),o=e.every(Array.isArray),{options:s,handler:c}=Ou(r,i),l=typeof r==`function`;e.forEach((e,t)=>{let r=Array.isArray(e)?e:[e];l?o?n(Fu(a,r,t),c?()=>c(...r):void 0,s.timeout):n(Fu(a,r,t),c?()=>c(e):void 0,s.timeout):o?n(Fu(a,r,t),s,c?()=>c(...r):void 0):n(Fu(a,r,t),s,c?()=>c(e):void 0)}),this.setContext(`each`,void 0)}},e.for=function(e,...t){return Array.isArray(e)&&t.length&&(e=Lu(e,t)),(t,n,r)=>{let i=Pu(t),{options:a,handler:o}=Ou(n,r);e.forEach((e,t)=>{bu(Fu(i,On(e),t),a,o?()=>o(e):void 0)})}},e.skipIf=e=>e?bu.skip:bu,e.runIf=e=>e?bu:bu.skip,zl([`concurrent`,`sequential`,`shuffle`,`skip`,`only`,`todo`],e)}function Mu(e,t){let n=e;n.each=function(e,...t){let n=this.withContext();return this.setContext(`each`,!0),Array.isArray(e)&&t.length&&(e=Lu(e,t)),(t,r,i)=>{let a=Pu(t),o=e.every(Array.isArray),{options:s,handler:c}=Ou(r,i),l=typeof r==`function`;e.forEach((e,t)=>{let r=Array.isArray(e)?e:[e];l?o?n(Fu(a,r,t),c?()=>c(...r):void 0,s.timeout):n(Fu(a,r,t),c?()=>c(e):void 0,s.timeout):o?n(Fu(a,r,t),s,c?()=>c(...r):void 0):n(Fu(a,r,t),s,c?()=>c(e):void 0)}),this.setContext(`each`,void 0)}},n.for=function(e,...t){let n=this.withContext();return Array.isArray(e)&&t.length&&(e=Lu(e,t)),(t,r,i)=>{let a=Pu(t),{options:o,handler:s}=Ou(r,i);e.forEach((e,t)=>{let r=s?t=>s(e,t):void 0;r&&(r.__VITEST_FIXTURE_INDEX__=1,r.toString=()=>s.toString()),n(Fu(a,On(e),t),o,r)})}},n.skipIf=function(e){return e?this.skip:this},n.runIf=function(e){return e?this:this.skip},n.scoped=function(e){Eu().scoped(e)},n.extend=function(n){let r=$l(n,t||{},void 0),i=e;return Nu(function(e,t,n){let r=Eu().fixtures(),a={...this};r&&(a.fixtures=Ql(a.fixtures||[],r)),i.call(a,Pu(e),t,n)},r)},n.beforeEach=hu,n.afterEach=gu,n.beforeAll=pu,n.afterAll=mu;let r=zl([`concurrent`,`sequential`,`skip`,`only`,`todo`,`fails`],n);return t&&r.mergeContext(t),r}function Nu(e,t){return Mu(e,t)}function Pu(e){return typeof e==`string`?e:typeof e==`function`?e.name||`<anonymous>`:String(e)}function Fu(e,t,n){(e.includes(`%#`)||e.includes(`%$`))&&(e=e.replace(/%%/g,`__vitest_escaped_%__`).replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,`%%`));let r=e.split(`%`).length-1;e.includes(`%f`)&&(e.match(/%f/g)||[]).forEach((n,r)=>{if(Bn(t[r])||Object.is(t[r],-0)){let t=0;e=e.replace(/%f/g,e=>(t++,t===r+1?`-%f`:e))}});let i=kn(t[0]);function a(e){return e.replace(/\$([$\w.]+)/g,(e,n)=>{let r=/^\d+$/.test(n);if(!i&&!r)return`$${n}`;let a=r?Rn(t,n):void 0;return En(i?Rn(t[0],n,a):a,{truncate:void 0})})}let o=``,s=0;return Iu(e,Sn,e=>{s<r?o+=wn(e[0],t[s++]):o+=e[0]},e=>{o+=a(e)}),o}function Iu(e,t,n,r){let i=0;for(let a of e.matchAll(t))i<a.index&&r(e.slice(i,a.index)),n(a),i=a.index+a[0].length;i<e.length&&r(e.slice(i))}function Lu(e,t){let n=e.join(``).trim().replace(/ /g,``).split(`
|
|
316
|
-
`).map(e=>e.split(`|`))[0],r=[];for(let e=0;e<Math.floor(t.length/n.length);e++){let i={};for(let r=0;r<n.length;r++)i[n[r]]=t[e*n.length+r];r.push(i)}return r}const Ru=Date.now,Z={tasks:[],currentSuite:null};function zu(e){var t;(t=Z.currentSuite)==null||t.tasks.push(e)}async function Bu(e,t){let n=Z.currentSuite;Z.currentSuite=e,await t(),Z.currentSuite=n}function Vu(e,t,n=!1,r,i){if(t<=0||t===1/0)return e;let{setTimeout:a,clearTimeout:o}=fl();return(function(...s){let c=Ru(),l=Tu();return l._currentTaskStartTime=c,l._currentTaskTimeout=t,new Promise((u,d)=>{var f;let p=a(()=>{o(p),m()},t);(f=p.unref)==null||f.call(p);function m(){let e=Ku(n,t,r);i?.(s,e),d(e)}function h(e){if(l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(p),Ru()-c>=t){m();return}u(e)}function g(e){l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(p),d(e)}try{let t=e(...s);typeof t==`object`&&t&&typeof t.then==`function`?t.then(h,g):h(t)}catch(e){g(e)}})})}const Hu=new WeakMap;function Uu([e],t){e&&Wu(e,t)}function Wu(e,t){Hu.get(e)?.abort(t)}function Gu(e,t){let n=function(){throw Error(`done() callback is deprecated, use promise instead`)},r=Hu.get(n);return r||(r=new AbortController,Hu.set(n,r)),n.signal=r.signal,n.task=e,n.skip=(t,n)=>{if(t!==!1)throw e.result??={state:`skip`},e.result.pending=!0,new Ul(`test is skipped; abort execution`,e,typeof t==`string`?t:n)},n.annotate=((n,r,i)=>{if(e.result&&e.result.state!==`run`)throw Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let a={message:n,type:typeof r==`object`||r===void 0?`notice`:r},o=typeof r==`object`?r:i;return o&&(a.attachment=o,ad(a.attachment)),id(e,nd(e,{type:`internal:annotation`,annotation:a}).then(async({annotation:n})=>{if(!t.onTestAnnotate)throw Error(`Test runner doesn't support test annotations.`);await td(t);let r=await t.onTestAnnotate(e,n);return e.annotations.push(r),r}))}),n.onTestFailed=(n,i)=>{e.onFailed||=[],e.onFailed.push(Vu(n,i??t.config.hookTimeout,!0,Error(`STACK_TRACE_ERROR`),(e,t)=>r.abort(t)))},n.onTestFinished=(n,i)=>{e.onFinished||=[],e.onFinished.push(Vu(n,i??t.config.hookTimeout,!0,Error(`STACK_TRACE_ERROR`),(e,t)=>r.abort(t)))},t.extendTaskContext?.call(t,n)||n}function Ku(e,t,n){let r=`${e?`Hook`:`Test`} timed out in ${t}ms.\nIf this is a long-running ${e?`hook`:`test`}, pass a timeout value as the last argument or configure it globally with "${e?`hookTimeout`:`testTimeout`}".`,i=Error(r);return n?.stack&&(i.stack=n.stack.replace(i.message,n.message)),i}const qu=new WeakMap;function Ju(e){let t=qu.get(e);if(!t)throw Error(`Cannot find file context for ${e.name}`);return t}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Date.now;const{clearTimeout:Yu,setTimeout:Xu}=fl(),Zu=new Map,Qu=[],$u=[];function ed(e){if(Zu.size){let t=Array.from(Zu).map(([e,t])=>[e,t[0],t[1]]),n=e.onTaskUpdate?.call(e,t,Qu);n&&($u.push(n),n.then(()=>$u.splice($u.indexOf(n),1),()=>{})),Qu.length=0,Zu.clear()}}async function td(e){ed(e),await Promise.all($u)}async function nd(e,t){let n=Tu();if(e.result&&e.result.state!==`run`)throw Error(`Cannot record a test artifact outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let r=Bl(e.file.filepath,Error(`STACK_TRACE`).stack);if(r&&(t.location={file:r.file,line:r.line,column:r.column},t.type===`internal:annotation`&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(let e of t.attachments)ad(e);if(t.type===`internal:annotation`)return t;if(!n.onTestArtifactRecord)throw Error(`Test runner doesn't support test artifacts.`);await td(n);let i=await n.onTestArtifactRecord(e,t);return e.artifacts.push(i),i}const Q=[];for(let e=65;e<91;e++)Q.push(String.fromCharCode(e));for(let e=97;e<123;e++)Q.push(String.fromCharCode(e));for(let e=0;e<10;e++)Q.push(e.toString(10));Q.push(`+`,`/`);function rd(e){let t=``,n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let n=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=Q[n],t+=Q[i],t+=`==`}else if(n===r+2){let n=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2;t+=Q[n],t+=Q[i],t+=Q[a],t+=`=`}else{let n=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2|(e[r+2]&192)>>6,o=e[r+2]&63;t+=Q[n],t+=Q[i],t+=Q[a],t+=Q[o]}return t}function id(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||=[],e.promises.push(t),t}function ad(e){if(e.body==null&&!e.path)throw TypeError(`Test attachment requires "body" or "path" to be set. Both are missing.`);if(e.body&&e.path)throw TypeError(`Test attachment requires only one of "body" or "path" to be set. Both are specified.`);e.body instanceof Uint8Array&&(e.body=rd(e.body))}function od(){let e=globalThis.__vitest_worker__;if(!e)throw Error(`Vitest failed to access its internal state.
|
|
317
|
-
|
|
318
|
-
One of the following is possible:
|
|
319
|
-
- "vitest" is imported directly without running "vitest" command
|
|
320
|
-
- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
|
|
321
|
-
- "vitest" is imported inside Vite / Vitest config file
|
|
322
|
-
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
|
|
323
|
-
`);return e}function sd(){return typeof process<`u`&&!!process.send}function cd(e,t=!1){let n=[/\/vitest\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.idToModuleMap.forEach((e,t)=>{n.some(e=>e.test(t))||(e.promise=void 0,e.exports=void 0,e.evaluated=!1,e.importers.clear())})}function ld(){let{setTimeout:e}=fl();return new Promise(t=>e(t,0))}async function ud(){await ld();let e=od(),t=[],n=e.resolvingModules.size;for(let[n,r]of e.evaluatedModules.idToModuleMap)r.promise&&!r.evaluated&&t.push(r.promise);!t.length&&!n||(await Promise.allSettled(t),await ud())}var dd=44,fd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,pd=new Uint8Array(64),md=new Uint8Array(128);for(let e=0;e<fd.length;e++){let t=fd.charCodeAt(e);pd[e]=t,md[t]=e}function hd(e,t){let n=0,r=0,i=0;do i=md[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function gd(e,t){return e.pos>=t?!1:e.peek()!==dd}var _d=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function vd(e){let{length:t}=e,n=new _d(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=hd(n,i),i<u&&(l=!1),u=i,gd(n,e)?(a=hd(n,a),o=hd(n,o),s=hd(n,s),gd(n,e)?(c=hd(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||yd(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function yd(e){e.sort(bd)}function bd(e,t){return e[0]-t[0]}var xd=0,Sd=1,Cd=2,wd=3,Td=4,Ed=!1;function Dd(e,t,n,r){for(;n<=r;){let i=n+(r-n>>1),a=e[i][xd]-t;if(a===0)return Ed=!0,i;a<0?n=i+1:r=i-1}return Ed=!1,n-1}function Od(e,t,n){for(let r=n+1;r<e.length&&e[r][xd]===t;n=r++);return n}function kd(e,t,n){for(let r=n-1;r>=0&&e[r][xd]===t;n=r--);return n}function Ad(e,t,n,r){let{lastKey:i,lastNeedle:a,lastIndex:o}=n,s=0,c=e.length-1;if(r===i){if(t===a)return Ed=o!==-1&&e[o][xd]===t,o;t>=a?s=o===-1?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=Dd(e,t,s,c)}var jd="`line` must be greater than 0 (lines start at line 1)",Md="`column` must be greater than or equal to 0 (columns start at column 0)",Nd=-1,Pd=1;function Fd(e){return e}function Id(e){var t;return(t=Fd(e))._decoded||(t._decoded=vd(Fd(e)._encoded))}function Ld(e,t){let{line:n,column:r,bias:i}=t;if(n--,n<0)throw Error(jd);if(r<0)throw Error(Md);let a=Id(e);if(n>=a.length)return Rd(null,null,null,null);let o=a[n],s=zd(o,Fd(e)._decodedMemo,n,r,i||Pd);if(s===-1)return Rd(null,null,null,null);let c=o[s];if(c.length===1)return Rd(null,null,null,null);let{names:l,resolvedSources:u}=e;return Rd(u[c[Sd]],c[Cd]+1,c[wd],c.length===5?l[c[Td]]:null)}function Rd(e,t,n,r){return{source:e,line:t,column:n,name:r}}function zd(e,t,n,r,i){let a=Ad(e,r,t,n);return Ed?a=(i===Nd?Od:kd)(e,r,a):i===Nd&&a++,a===-1||a===e.length?-1:a}function Bd(e){return e!=null}function Vd(e){return e===null||typeof e!=`function`&&typeof e!=`object`}function Hd(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ud(e){let t=-1,n=null,r=0,i=0,a=null;for(;t<=e.length;){a=e[t],t++;let o=e[t];if((o===`"`||o===`'`||o==="`")&&a!==`\\`&&(n===o?n=null:n||=o),n||(o===`(`&&r++,o===`)`&&i++),r&&i&&r===i)return t}return null}const Wd=/^\s*at .*(?:\S:\d+|\(native\))/m,Gd=/^(?:eval@)?(?:\[native code\])?$/,Kd=[`node:internal`,/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,`/vitest/dist/`,`/vitest/src/`,`/node_modules/chai/`,`/node_modules/tinyspy/`,`/vite/dist/node/module-runner`,`/rolldown-vite/dist/node/module-runner`,`/deps/chunk-`,`/deps/@vitest`,`/deps/loupe`,`/deps/chai`,`/browser-playwright/dist/locators.js`,`/browser-webdriverio/dist/locators.js`,`/browser-preview/dist/locators.js`,/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function qd(e){if(!e.includes(`:`))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,``));if(!t)return[e];let n=t[1];if(n.startsWith(`async `)&&(n=n.slice(6)),n.startsWith(`http:`)||n.startsWith(`https:`)){let e=new URL(n);e.searchParams.delete(`import`),e.searchParams.delete(`browserv`),n=e.pathname+e.hash+e.search}if(n.startsWith(`/@fs/`)){let e=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(e?5:4)}return[n,t[2]||void 0,t[3]||void 0]}function Jd(e){let t=e.trim();if(Gd.test(t)||(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)))return null;let n=-1,r=``,i;for(let e=0;e<t.length;e++)if(t[e]===`@`){let a=t.slice(e+1);if(a.includes(`:`)&&a.length>=3){n=e,r=a,i=e>0?t.slice(0,e):void 0;break}}if(n===-1||!r.includes(`:`)||r.length<3)return null;let[a,o,s]=qd(r);return!a||!o||!s?null:{file:a,method:i||``,line:Number.parseInt(o),column:Number.parseInt(s)}}function Yd(e){let t=e.trim();if(!Wd.test(t))return null;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let[i,a,o]=qd(r?r[1]:n),s=r&&n||``,c=i&&[`eval`,`<anonymous>`].includes(i)?void 0:i;return!c||!a||!o?null:(s.startsWith(`async `)&&(s=s.slice(6)),c.startsWith(`file://`)&&(c=c.slice(7)),c=c.startsWith(`node:`)||c.startsWith(`internal:`)?c:Fl(c),s&&=s.replace(/__vite_ssr_import_\d+__\./g,``).replace(/(Object\.)?__vite_ssr_export_default__\s?/g,``),{method:s,file:c,line:Number.parseInt(a),column:Number.parseInt(o)})}function Xd(e,t={}){let{ignoreStackEntries:n=Kd}=t;return(Wd.test(e)?$d(e):Qd(e)).map(e=>{t.getUrlId&&(e.file=t.getUrlId(e.file));let r=t.getSourceMap?.call(t,e.file);if(!r||typeof r!=`object`||!r.version)return Zd(n,e.file)?null:e;let i=rf(new tf(r,e.file),e);if(!i)return e;let{line:a,column:o,source:s,name:c}=i,l=s||e.file;return l.match(/\/\w:\//)&&(l=l.slice(1)),Zd(n,l)?null:a!=null&&o!=null?{line:a,column:o,file:l,method:c||e.method}:e}).filter(e=>e!=null)}function Zd(e,t){return e.some(e=>t.match(e))}function Qd(e){return e.split(`
|
|
324
|
-
`).map(e=>Jd(e)).filter(Bd)}function $d(e){return e.split(`
|
|
325
|
-
`).map(e=>Yd(e)).filter(Bd)}function ef(e,t={}){if(!e||Vd(e))return[];if(`stacks`in e&&e.stacks)return e.stacks;let n=e.stack||``,r=typeof n==`string`?Xd(n,t):[];if(!r.length){let n=e;n.fileName!=null&&n.lineNumber!=null&&n.columnNumber!=null&&(r=Xd(`${n.fileName}:${n.lineNumber}:${n.columnNumber}`,t)),n.sourceURL!=null&&n.line!=null&&n._column!=null&&(r=Xd(`${n.sourceURL}:${n.line}:${n.column}`,t))}return t.frameFilter&&(r=r.filter(n=>t.frameFilter(e,n)!==!1)),e.stacks=r,r}var tf=class{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(e,t){this.map=e;let{mappings:n,names:r,sources:i}=e;this.version=e.version,this.names=r||[],this._encoded=n||``,this._decodedMemo=nf(),this.url=t,this.resolvedSources=(i||[]).map(e=>Fl(e||``,t))}};function nf(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function rf(e,t){let n=Ld(e,t);return n.column==null?null:n}const af=/\r?\n/;function of(e,t,n){let r=e.split(af),i=/\r\n/.test(e)?2:1,a=0;if(t>r.length)return e.length;for(let e=0;e<t-1;e++)a+=r[e].length+i;return a+n}function sf(e,t){if(t>e.length)throw Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(af),r=/\r\n/.test(e)?2:1,i=0,a=0;for(;a<n.length;a++){let e=n[a].length+r;if(i+e>=t)break;i+=e}return a+1}async function cf(e,t){let n=(await import(`./magic-string.es-CxM5Ubyl.mjs`)).default,r=new Set(t.map(e=>e.file));await Promise.all(Array.from(r).map(async r=>{let i=t.filter(e=>e.file===r),a=await e.readSnapshotFile(r),o=new n(a);for(let e of i)hf(a,o,of(a,e.line,e.column),e.snapshot);let s=o.toString();s!==a&&await e.saveSnapshotFile(r,s)}))}const lf=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function uf(e,t,n,r){let i=e.slice(n),a=lf.exec(i);if(!a)return!1;i=i.slice(a.index);let o=Ud(i);if(o===null)return!1;o+=n+a.index;let s=df(e,n+a.index+a[0].length),c=`, ${ff(r,e,n)}`;return s===o?t.appendLeft(o,c):t.overwrite(s,o,c),!0}function df(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let i=e[t++];i===`{`?n++:i===`}`&&r++}return t}function ff(e,t,n){let r=sf(t,n),i=t.split(af)[r-1].match(/^\s*/)[0]||``,a=i.includes(` `)?`${i}\t`:`${i} `,o=e.trim().replace(/\\/g,`\\\\`).split(/\n/g);return o.length<=1?`\`${o.join(`
|
|
326
|
-
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\``:`\`\n${o.map(e=>e?a+e:``).join(`
|
|
327
|
-
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\n${i}\``}function pf(e,t){let n=t-21;if(e.slice(n,t)===`toMatchInlineSnapshot`)return{code:e.slice(n),index:n};let r=t-34;return e.slice(t-r,t)===`toThrowErrorMatchingInlineSnapshot`?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}const mf=/(?: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 hf(e,t,n,r){let{code:i,index:a}=pf(e,n),o=mf.exec(i),s=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(i);if(!o||o.index!==s?.index)return uf(e,t,a,r);let c=o[1],l=a+o.index+o[0].length,u=ff(r,e,a);if(c===`)`)return t.appendRight(l-1,u),!0;let d=RegExp(`(?:^|[^\\\\])${c}`).exec(e.slice(l));if(!d)return!1;let f=l+d.index+d[0].length;return t.overwrite(l-1,f,u),!0}const gf=/^([^\S\n]*)\S/m;function _f(e){let t=e.match(gf);if(!t||!t[1])return e;let n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==``||r.at(-1)?.trim()!==``)return e;for(let t=1;t<r.length-1;t++)if(r[t]!==``){if(r[t].indexOf(n)!==0)return e;r[t]=r[t].substring(n.length)}return r[r.length-1]=``,e=r.join(`
|
|
328
|
-
`),e}async function vf(e,t){await Promise.all(t.map(async t=>{t.readonly||await e.saveSnapshotFile(t.file,t.snapshot)}))}function yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var bf={exports:{}},xf;function Sf(){if(xf)return bf.exports;xf=1;
|
|
329
|
-
/*
|
|
330
|
-
* @version 1.4.0
|
|
331
|
-
* @date 2015-10-26
|
|
332
|
-
* @stability 3 - Stable
|
|
333
|
-
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
334
|
-
* @license MIT License
|
|
335
|
-
*/
|
|
336
|
-
var e=function(e,t){var n,r,i=1,a=0,o=0,s=String.alphabet;function c(e,t,r){if(r){for(n=t;r=c(e,n),r<76&&r>65;)++n;return+e.slice(t-1,n)}return r=s&&s.indexOf(e.charAt(t)),r>-1?r+76:(r=e.charCodeAt(t)||0,r<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((e+=``)!=(t+=``)){for(;i;)if(r=c(e,a++),i=c(t,o++),r<76&&i<76&&r>66&&i>66&&(r=c(e,a,a),i=c(t,o,a=n),o=n),r!=i)return r<i?-1:1}return 0};try{bf.exports=e}catch{String.naturalCompare=e}return bf.exports}var Cf=yf(Sf());const wf={serialize:(e,t,n,r,i,a)=>{let o=e.getMockName(),s=o===`vi.fn()`?``:` ${o}`,c=``;if(e.mock.calls.length!==0){let o=n+t.indent;c=` {${t.spacingOuter}${o}"calls": ${a(e.mock.calls,t,o,r,i)}${t.min?`, `:`,`}${t.spacingOuter}${o}"results": ${a(e.mock.results,t,o,r,i)}${t.min?``:`,`}${t.spacingOuter}${n}}`}return`[MockFunction${s}]${c}`},test:e=>e&&!!e._isMockFunction},{DOMCollection:Tf,DOMElement:Ef,Immutable:Df,ReactElement:Of,ReactTestComponent:kf,AsymmetricMatcher:Af}=xt;let jf=[kf,Of,Ef,Tf,Df,Af,wf];function Mf(e){jf=[e].concat(jf)}function Nf(){return jf}function Pf(e,t){return`${e} ${t}`}function Ff(e){if(!/ \d+$/.test(e))throw Error(`Snapshot keys must end with a number.`);return e.replace(/ \d+$/,``)}function If(e,t){let n=t.updateSnapshot,r=Object.create(null),i=``,a=!1;if(e!=null)try{i=e,Function(`exports`,i)(r)}catch{}return(n===`all`||n===`new`)&&i&&(a=!0),{data:r,dirty:a}}function Lf(e){return e.includes(`
|
|
337
|
-
`)?`\n${e}\n`:e}function Rf(e){return e.length>2&&e[0]===`
|
|
338
|
-
`&&e.endsWith(`
|
|
339
|
-
`)?e.slice(1,-1):e}function zf(e,t=2,n={}){return Hf(A(e,{escapeRegex:!0,indent:t,plugins:Nf(),printFunctionName:!1,...n}))}function Bf(e){return e.replace(/`|\\|\$\{/g,`\\$&`)}function Vf(e){return`\`${Bf(e)}\``}function Hf(e){return e.replace(/\r\n|\r/g,`
|
|
340
|
-
`)}async function Uf(e,t,n){let r=Object.keys(t).sort(Cf).map(e=>`exports[${Vf(e)}] = ${Vf(Hf(t[e]))};`),i=`${e.getHeader()}\n\n${r.join(`
|
|
341
|
-
|
|
342
|
-
`)}\n`,a=await e.readSnapshotFile(n);a!=null&&a===i||await e.saveSnapshotFile(n,i)}function Wf(e=[],t=[]){let n=Array.from(e);return t.forEach((t,r)=>{let i=n[r];Array.isArray(e[r])?n[r]=Wf(e[r],t):Hd(i)?n[r]=Gf(e[r],t):n[r]=t}),n}function Gf(e,t){if(Hd(e)&&Hd(t)){let n={...e};return Object.keys(t).forEach(r=>{Hd(t[r])&&!t[r].$$typeof?r in e?n[r]=Gf(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=Wf(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}else if(Array.isArray(e)&&Array.isArray(t))return Wf(e,t);return e}var Kf=class extends Map{constructor(e,t){super(t),this.defaultFn=e}get(e){return this.has(e)||this.set(e,this.defaultFn(e)),super.get(e)}},qf=class extends Kf{constructor(){super(()=>0)}_total;valueOf(){return this._total=this.total()}increment(e){this._total!==void 0&&this._total++,this.set(e,this.get(e)+1)}total(){if(this._total!==void 0)return this._total;let e=0;for(let t of this.values())e+=t;return e}};function Jf(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}var Yf=class e{_counters=new qf;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new Kf(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new qf;_matched=new qf;_unmatched=new qf;_updated=new qf;get added(){return this._added}set added(e){this._added._total=e}get matched(){return this._matched}set matched(e){this._matched._total=e}get unmatched(){return this._unmatched}set unmatched(e){this._unmatched._total=e}get updated(){return this._updated}set updated(e){this._updated._total=e}constructor(e,t,n,r){this.testFilePath=e,this.snapshotPath=t;let{data:i,dirty:a}=If(n,r);this._fileExists=n!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=a,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=r.expand||!1,this._updateSnapshot=r.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...r.snapshotFormat},this._environment=r.snapshotEnvironment}static async create(t,n){let r=await n.snapshotEnvironment.resolvePath(t);return new e(t,r,await n.snapshotEnvironment.readSnapshotFile(r),n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(e){this._uncheckedKeys.forEach(t=>{/ \d+$| > /.test(t.slice(e.length))&&this._uncheckedKeys.delete(t)})}clearTest(e){this._inlineSnapshots=this._inlineSnapshots.filter(t=>t.testId!==e),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(t=>t.testId!==e);for(let t of this._testIdToKeys.get(e)){let e=Ff(t),n=this._counters.get(e);n>0&&((t in this._snapshotData||t in this._initialData)&&(this._snapshotData[t]=this._initialData[t]),this._counters.set(e,n-1))}this._testIdToKeys.delete(e),this.added.delete(e),this.updated.delete(e),this.matched.delete(e),this.unmatched.delete(e)}_inferInlineSnapshotStack(e){let t=e.findIndex(e=>e.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(t!==-1)return e[t+3];let n=e.findIndex(e=>e.method.includes(`__INLINE_SNAPSHOT__`));return n===-1?null:e[n+2]}_addSnapshot(e,t,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({snapshot:t,testId:n.testId,...n.stack}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:t}):this._snapshotData[e]=t}async save(){let e=Object.keys(this._snapshotData).length,t=this._inlineSnapshots.length,n=this._rawSnapshots.length,r=!e&&!t&&!n,i={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!r?(e&&(await Uf(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),t&&await cf(this._environment,this._inlineSnapshots),n&&await vf(this._environment,this._rawSnapshots),i.saved=!0):!e&&this._fileExists&&(this._updateSnapshot===`all`&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),i.deleted=!0),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot===`all`&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(e=>delete this._snapshotData[e]),this._uncheckedKeys.clear())}match({testId:e,testName:t,received:n,key:r,inlineSnapshot:i,isInline:a,error:o,rawSnapshot:s}){this._counters.increment(t);let c=this._counters.get(t);r||=Pf(t,c),this._testIdToKeys.get(e).push(r),a&&this._snapshotData[r]!==void 0||this._uncheckedKeys.delete(r);let l=s&&typeof n==`string`?n:zf(n,void 0,this._snapshotFormat);s||(l=Lf(l)),s&&s.content&&s.content.match(/\r\n/)&&!l.match(/\r\n/)&&(s.content=Hf(s.content));let u=a?i:s?s.content:this._snapshotData[r],d=s?u:u?.trim(),f=d===(s?l:l.trim()),p=u!==void 0,m=a||this._fileExists||s&&s.content!=null;f&&!a&&!s&&(this._snapshotData[r]=l);let h;if(a){var g;let t=ef(o||Error(`snapshot`),{ignoreStackEntries:[]}),n=this._inferInlineSnapshotStack(t);if(!n)throw Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${JSON.stringify(t)}`);h=(g=this.environment).processStackTrace?.call(g,n)||n,h.column--;let r=this._inlineSnapshotStacks.filter(e=>Jf(e,h));if(r.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(e=>!Jf(e,h));let e=r.find(e=>e.snapshot!==l);if(e)throw Object.assign(Error(`toMatchInlineSnapshot with different snapshots cannot be called at the same location`),{actual:l,expected:e.snapshot})}this._inlineSnapshotStacks.push({...h,testId:e,snapshot:l})}return p&&this._updateSnapshot===`all`||(!p||!m)&&(this._updateSnapshot===`new`||this._updateSnapshot===`all`)?(this._updateSnapshot===`all`?f?this.matched.increment(e):(p?this.updated.increment(e):this.added.increment(e),this._addSnapshot(r,l,{stack:h,testId:e,rawSnapshot:s})):(this._addSnapshot(r,l,{stack:h,testId:e,rawSnapshot:s}),this.added.increment(e)),{actual:``,count:c,expected:``,key:r,pass:!0}):f?(this.matched.increment(e),{actual:``,count:c,expected:``,key:r,pass:!0}):(this.unmatched.increment(e),{actual:s?l:Rf(l),count:c,expected:d===void 0?void 0:s?d:Rf(d),key:r,pass:!1})}async pack(){let e={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},t=this.getUncheckedCount(),n=this.getUncheckedKeys();t&&this.removeUncheckedKeys();let r=await this.save();return e.fileDeleted=r.deleted,e.added=this.added.total(),e.matched=this.matched.total(),e.unmatched=this.unmatched.total(),e.updated=this.updated.total(),e.unchecked=r.deleted?0:t,e.uncheckedKeys=Array.from(n),e}};function Xf(e,t,n,r){let i=Error(e);return Object.defineProperty(i,`actual`,{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,`expected`,{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,`diffOptions`,{value:{expand:t}}),i}var Zf=class{snapshotStateMap=new Map;constructor(e={}){this.options=e}async setup(e,t){this.snapshotStateMap.has(e)||this.snapshotStateMap.set(e,await Yf.create(e,t))}async finish(e){let t=await this.getSnapshotState(e).pack();return this.snapshotStateMap.delete(e),t}skipTest(e,t){this.getSnapshotState(e).markSnapshotsAsCheckedForTest(t)}clearTest(e,t){this.getSnapshotState(e).clearTest(t)}getSnapshotState(e){let t=this.snapshotStateMap.get(e);if(!t)throw Error(`The snapshot state for '${e}' is not found. Did you call 'SnapshotClient.setup()'?`);return t}assert(e){let{filepath:t,name:n,testId:r=n,message:i,isInline:a=!1,properties:o,inlineSnapshot:s,error:c,errorMessage:l,rawSnapshot:u}=e,{received:d}=e;if(!t)throw Error(`Snapshot cannot be used outside of test`);let f=this.getSnapshotState(t);if(typeof o==`object`){if(typeof d!=`object`||!d)throw Error(`Received value must be an object when the matcher has properties`);try{var p;if((p=this.options).isEqual?.call(p,d,o)??!1)d=Gf(d,o);else throw Xf(`Snapshot properties mismatched`,f.expand,d,o)}catch(e){throw e.message=l||`Snapshot mismatched`,e}}let m=[n,...i?[i]:[]].join(` > `),{actual:h,expected:g,key:_,pass:v}=f.match({testId:r,testName:m,received:d,isInline:a,error:c,inlineSnapshot:s,rawSnapshot:u});if(!v)throw Xf(`Snapshot \`${_||`unknown`}\` mismatched`,f.expand,u?h:h?.trim(),u?g:g?.trim())}async assertRaw(e){if(!e.rawSnapshot)throw Error(`Raw snapshot is required`);let{filepath:t,rawSnapshot:n}=e;if(n.content==null){if(!t)throw Error(`Snapshot cannot be used outside of test`);let r=this.getSnapshotState(t);e.filepath||=t,n.file=await r.environment.resolveRawPath(t,n.file),n.content=await r.environment.readSnapshotFile(n.file)??void 0}return this.assert(e)}clear(){this.snapshotStateMap.clear()}},Qf=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};const $f=Date;let ep=null;var tp=class e extends $f{constructor(t,n,r,i,a,o,s){super();let c;switch(arguments.length){case 0:c=ep===null?new $f:new $f(ep.valueOf());break;case 1:c=new $f(t);break;default:r=r===void 0?1:r,i||=0,a||=0,o||=0,s||=0,c=new $f(t,n,r,i,a,o,s);break}return Object.setPrototypeOf(c,e.prototype),c}};tp.UTC=$f.UTC,tp.now=function(){return new tp().valueOf()},tp.parse=function(e){return $f.parse(e)},tp.toString=function(){return $f.toString()};function np(e){let t=new $f(e.valueOf());if(Number.isNaN(t.getTime()))throw TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=tp,ep=t.valueOf()}function rp(){globalThis.Date=$f}const ip=[`matchSnapshot`,`toMatchSnapshot`,`toMatchInlineSnapshot`,`toThrowErrorMatchingSnapshot`,`toThrowErrorMatchingInlineSnapshot`,`throws`,`Throw`,`throw`,`toThrow`,`toThrowError`];function ap(e,t){throw e.cause??=Error(`Matcher did not succeed in time.`),sp(e,t)}function op(e){return function(t,n={}){let r=od().config.expect?.poll??{},{interval:i=r.interval??50,timeout:a=r.timeout??1e3,message:o}=n,s=e(null,o).withContext({poll:!0});t=t.bind(s);let c=I.flag(s,`vitest-test`);if(!c)throw Error(`expect.poll() must be called inside a test`);let l=new Proxy(s,{get(e,n,r){let o=Reflect.get(e,n,r);if(typeof o!=`function`)return o instanceof G?l:o;if(n===`assert`)return o;if(typeof n==`string`&&ip.includes(n))throw SyntaxError(`expect.poll() is not supported in combination with .${n}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...e){let r=Error(`STACK_TRACE_ERROR`),l=async()=>{let{setTimeout:c,clearTimeout:l}=fl(),u=`fn`,d=!1,f=c(()=>{d=!0},a);I.flag(s,`_name`,n);try{for(;;){let n=d;n&&I.flag(s,`_isLastPollAttempt`,!0);try{u=`fn`;let n=await t();return I.flag(s,`object`,n),u=`assertion`,await o.call(s,...e)}catch(e){(n||u===`assertion`&&I.flag(s,`_poll.assert_once`))&&ap(e,r),await pl(i,c)}}}finally{l(f)}},u=!1;c.onFinished??=[],c.onFinished.push(()=>{if(!u){let e=I.flag(s,`negate`)?`not.`:``,t=`expect.${I.flag(s,`_poll.element`)?`element(locator)`:`poll(assertion)`}.${e}${String(n)}()`;throw sp(Error(`${t} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${t}\n`),r)}});let d;return{then(e,t){return u=!0,(d||=l()).then(e,t)},catch(e){return(d||=l()).catch(e)},finally(e){return(d||=l()).finally(e)},[Symbol.toStringTag]:`Promise`}}}});return l}}function sp(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function cp(e,t,n){let r=e.flag(t,`negate`)?`not.`:``,i=`${e.flag(t,`_name`)}(expected)`,a=e.flag(t,`promise`);return`expect(actual)${a?`.${a}`:``}.${r}${i}`}function lp(e,t,n,r){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let e=i.promises.indexOf(t);e!==-1&&i.promises.splice(e,1)}),i.promises||=[],i.promises.push(t);let e=!1;return i.onFinished??=[],i.onFinished.push(()=>{if(!e){let e=(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||``))(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.
|
|
343
|
-
`,e].join(``))}}),{then(n,r){return e=!0,t.then(n,r)},catch(e){return t.catch(e)},finally(e){return t.finally(e)},[Symbol.toStringTag]:`Promise`}}return t}let up;function dp(){return up||=new Zf({isEqual:(e,t)=>Y(e,t,[X,Mc])}),up}function fp(e,t){if(typeof e!=`function`){if(!t)throw Error(`expected must be a function, received ${typeof e}`);return e}try{e()}catch(e){return e}throw Error(`snapshot function didn't throw`)}function pp(e){return{filepath:e.file.filepath,name:Vl(e).slice(1).join(` > `),testId:e.id}}Ws(ul),Ws(rl),Ws((e,t)=>{function n(e,n){let r=t.flag(n,`vitest-test`);if(!r)throw Error(`'${e}' cannot be used without test context`);return r}for(let r of[`matchSnapshot`,`toMatchSnapshot`])t.addMethod(e.Assertion.prototype,r,function(e,i){if(t.flag(this,`_name`,r),t.flag(this,`negate`))throw Error(`${r} cannot be used with "not"`);let a=t.flag(this,`object`),o=n(r,this);typeof e==`string`&&i===void 0&&(i=e,e=void 0);let s=t.flag(this,`message`);dp().assert({received:a,message:i,isInline:!1,properties:e,errorMessage:s,...pp(o)})});t.addMethod(e.Assertion.prototype,`toMatchFileSnapshot`,function(e,r){if(t.flag(this,`_name`,`toMatchFileSnapshot`),t.flag(this,`negate`))throw Error(`toMatchFileSnapshot cannot be used with "not"`);let i=Error(`resolves`),a=t.flag(this,`object`),o=n(`toMatchFileSnapshot`,this),s=t.flag(this,`message`);return lp(o,dp().assertRaw({received:a,message:r,isInline:!1,rawSnapshot:{file:e},errorMessage:s,...pp(o)}),cp(t,this),i)}),t.addMethod(e.Assertion.prototype,`toMatchInlineSnapshot`,function(e,r,i){if(t.flag(this,`_name`,`toMatchInlineSnapshot`),t.flag(this,`negate`))throw Error(`toMatchInlineSnapshot cannot be used with "not"`);let a=n(`toMatchInlineSnapshot`,this);if(a.each||a.suite?.each)throw Error(`InlineSnapshot cannot be used inside of test.each or describe.each`);let o=t.flag(this,`object`),s=t.flag(this,`error`);typeof e==`string`&&(i=r,r=e,e=void 0),r&&=_f(r);let c=t.flag(this,`message`);dp().assert({received:o,message:i,isInline:!0,properties:e,inlineSnapshot:r,error:s,errorMessage:c,...pp(a)})}),t.addMethod(e.Assertion.prototype,`toThrowErrorMatchingSnapshot`,function(e){if(t.flag(this,`_name`,`toThrowErrorMatchingSnapshot`),t.flag(this,`negate`))throw Error(`toThrowErrorMatchingSnapshot cannot be used with "not"`);let r=t.flag(this,`object`),i=n(`toThrowErrorMatchingSnapshot`,this),a=t.flag(this,`promise`),o=t.flag(this,`message`);dp().assert({received:fp(r,a),message:e,errorMessage:o,...pp(i)})}),t.addMethod(e.Assertion.prototype,`toThrowErrorMatchingInlineSnapshot`,function(e,r){if(t.flag(this,`negate`))throw Error(`toThrowErrorMatchingInlineSnapshot cannot be used with "not"`);let i=n(`toThrowErrorMatchingInlineSnapshot`,this);if(i.each||i.suite?.each)throw Error(`InlineSnapshot cannot be used inside of test.each or describe.each`);let a=t.flag(this,`object`),o=t.flag(this,`error`),s=t.flag(this,`promise`),c=t.flag(this,`message`);e&&=_f(e),dp().assert({received:fp(a,s),message:r,inlineSnapshot:e,isInline:!0,error:o,errorMessage:c,...pp(i)})}),t.addMethod(e.expect,`addSnapshotSerializer`,Mf)}),Ws(Qc);function mp(e){let t=((n,r)=>{let{assertionCalls:i}=Vc(t);Hc({assertionCalls:i+1},t);let a=Rs(n,r),o=e||void 0;return o?a.withTest(o):a});Object.assign(t,Rs),Object.assign(t,globalThis[Js]),t.getState=()=>Vc(t),t.setState=e=>Hc(e,t);let n=Vc(globalThis[qs])||{};Hc({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return od().filepath},currentTestName:e?e.fullTestName??``:n.currentTestName},t),t.assert=J,t.extend=e=>Rs.extend(t,e),t.addEqualityTesters=e=>sc(e),t.soft=(...e)=>t(...e).withContext({soft:!0}),t.poll=op(t),t.unreachable=e=>{J.fail(`expected${e?` "${e}" `:` `}not to be reached`)};function r(e){let n=()=>Error(`expected number of assertions to be ${e}, but got ${t.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(n(),r),t.setState({expectedAssertionsNumber:e,expectedAssertionsNumberErrorGen:n})}function i(){let e=Error(`expected any number of assertion, but got none`);Error.captureStackTrace&&Error.captureStackTrace(e,i),t.setState({isExpectingAssertions:!0,isExpectingAssertionsError:e})}return I.addMethod(t,`assertions`,r),I.addMethod(t,`hasAssertions`,i),t.extend(Ys),t}const hp=mp();Object.defineProperty(globalThis,qs,{value:hp,writable:!0,configurable:!0});const gp=J,_p=Vs;function vp(e){return od().providedContext[e]}var yp={},bp,xp;function Sp(){return xp?bp:(xp=1,bp=Qf===void 0?typeof window<`u`?window:self:Qf,bp)}var Cp,wp;function Tp(){if(wp)return Cp;wp=1;let e;try{({}).__proto__,e=!1}catch{e=!0}return Cp=e,Cp}var Ep,Dp;function Op(){if(Dp)return Ep;Dp=1;var e=Function.call,t=Tp(),n=[`size`,`caller`,`callee`,`arguments`];return t&&n.push(`__proto__`),Ep=function(t){return Object.getOwnPropertyNames(t).reduce(function(r,i){return n.includes(i)||typeof t[i]!=`function`||(r[i]=e.bind(t[i])),r},Object.create(null))},Ep}var kp,Ap;function jp(){return Ap?kp:(Ap=1,kp=Op()(Array.prototype),kp)}var Mp,Np;function Pp(){if(Np)return Mp;Np=1;var e=jp().every;function t(e,t){return e[t.id]===void 0&&(e[t.id]=0),e[t.id]<t.callCount}function n(e,n,r,i){var a=!0;return r!==i.length-1&&(a=n.calledBefore(i[r+1])),t(e,n)&&a?(e[n.id]+=1,!0):!1}function r(t){return e(arguments.length>1?arguments:t,n.bind(null,{}))}return Mp=r,Mp}var Fp,Ip;function Lp(){if(Ip)return Fp;Ip=1;function e(e){return e.constructor&&e.constructor.name||null}return Fp=e,Fp}var Rp={},zp;function Bp(){return zp?Rp:(zp=1,(function(e){e.wrap=function(t,n){var r=function(){return e.printWarning(n),t.apply(this,arguments)};return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(e,t){return`${e}.${t} is deprecated and will be removed from the public API in a future version of ${e}.`},e.printWarning=function(e){typeof process==`object`&&process.emitWarning?process.emitWarning(e):console.info?console.info(e):console.log(e)}})(Rp),Rp)}var Vp,Hp;function Up(){return Hp?Vp:(Hp=1,Vp=function(e,t){var n=!0;try{e.forEach(function(){if(!t.apply(this,arguments))throw Error()})}catch{n=!1}return n},Vp)}var Wp,Gp;function Kp(){return Gp?Wp:(Gp=1,Wp=function(e){if(!e)return``;try{return e.displayName||e.name||(String(e).match(/function ([^\s(]+)/)||[])[1]}catch{return``}},Wp)}var qp,Jp;function Yp(){if(Jp)return qp;Jp=1;var e=jp().sort,t=jp().slice;function n(e,t){var n=e.getCall(0),r=t.getCall(0);return(n&&n.callId||-1)<(r&&r.callId||-1)?-1:1}function r(r){return e(t(r),n)}return qp=r,qp}var Xp,Zp;function Qp(){return Zp?Xp:(Zp=1,Xp=Op()(Function.prototype),Xp)}var $p,em;function tm(){return em?$p:(em=1,$p=Op()(Map.prototype),$p)}var nm,rm;function im(){return rm?nm:(rm=1,nm=Op()(Object.prototype),nm)}var am,om;function sm(){return om?am:(om=1,am=Op()(Set.prototype),am)}var cm,lm;function um(){return lm?cm:(lm=1,cm=Op()(String.prototype),cm)}var dm,fm;function pm(){return fm?dm:(fm=1,dm={array:jp(),function:Qp(),map:tm(),object:im(),set:sm(),string:um()},dm)}var mm={exports:{}},hm=mm.exports,gm;function _m(){return gm?mm.exports:(gm=1,(function(e,t){(function(t,n){e.exports=n()})(hm,(function(){var e=typeof Promise==`function`,t=typeof self==`object`?self:Qf,n=typeof Symbol<`u`,r=typeof Map<`u`,i=typeof Set<`u`,a=typeof WeakMap<`u`,o=typeof WeakSet<`u`,s=typeof DataView<`u`,c=n&&Symbol.iterator!==void 0,l=n&&Symbol.toStringTag!==void 0,u=i&&typeof Set.prototype.entries==`function`,d=r&&typeof Map.prototype.entries==`function`,f=u&&Object.getPrototypeOf(new Set().entries()),p=d&&Object.getPrototypeOf(new Map().entries()),m=c&&typeof Array.prototype[Symbol.iterator]==`function`,h=m&&Object.getPrototypeOf([][Symbol.iterator]()),g=c&&typeof String.prototype[Symbol.iterator]==`function`,_=g&&Object.getPrototypeOf(``[Symbol.iterator]()),v=8,y=-1;function b(n){var c=typeof n;if(c!==`object`)return c;if(n===null)return`null`;if(n===t)return`global`;if(Array.isArray(n)&&(l===!1||!(Symbol.toStringTag in n)))return`Array`;if(typeof window==`object`&&window!==null){if(typeof window.location==`object`&&n===window.location)return`Location`;if(typeof window.document==`object`&&n===window.document)return`Document`;if(typeof window.navigator==`object`){if(typeof window.navigator.mimeTypes==`object`&&n===window.navigator.mimeTypes)return`MimeTypeArray`;if(typeof window.navigator.plugins==`object`&&n===window.navigator.plugins)return`PluginArray`}if((typeof window.HTMLElement==`function`||typeof window.HTMLElement==`object`)&&n instanceof window.HTMLElement){if(n.tagName===`BLOCKQUOTE`)return`HTMLQuoteElement`;if(n.tagName===`TD`)return`HTMLTableDataCellElement`;if(n.tagName===`TH`)return`HTMLTableHeaderCellElement`}}var u=l&&n[Symbol.toStringTag];if(typeof u==`string`)return u;var d=Object.getPrototypeOf(n);return d===RegExp.prototype?`RegExp`:d===Date.prototype?`Date`:e&&d===Promise.prototype?`Promise`:i&&d===Set.prototype?`Set`:r&&d===Map.prototype?`Map`:o&&d===WeakSet.prototype?`WeakSet`:a&&d===WeakMap.prototype?`WeakMap`:s&&d===DataView.prototype?`DataView`:r&&d===p?`Map Iterator`:i&&d===f?`Set Iterator`:m&&d===h?`Array Iterator`:g&&d===_?`String Iterator`:d===null?`Object`:Object.prototype.toString.call(n).slice(v,y)}return b}))})(mm),mm.exports)}var vm,ym;function bm(){if(ym)return vm;ym=1;var e=_m();return vm=function(t){return e(t).toLowerCase()},vm}var xm,Sm;function Cm(){if(Sm)return xm;Sm=1;function e(e){return e&&e.toString?e.toString():String(e)}return xm=e,xm}var wm,Tm;function Em(){return Tm?wm:(Tm=1,wm={global:Sp(),calledInOrder:Pp(),className:Lp(),deprecated:Bp(),every:Up(),functionName:Kp(),orderByFirstCall:Yp(),prototypes:pm(),typeOf:bm(),valueToString:Cm()},wm)}var Dm;function Om(){if(Dm)return yp;Dm=1;let e=Em().global,t,n;if(typeof __vitest_required__<`u`){try{t=__vitest_required__.timers}catch{}try{n=__vitest_required__.timersPromises}catch{}}function r(i){let a=2**31-1,o=0xe8d4a51000,s=function(){},c=function(){return[]},l={},u,d=!1;i.setTimeout&&(l.setTimeout=!0,u=i.setTimeout(s,0),d=typeof u==`object`),l.clearTimeout=!!i.clearTimeout,l.setInterval=!!i.setInterval,l.clearInterval=!!i.clearInterval,l.hrtime=i.process&&typeof i.process.hrtime==`function`,l.hrtimeBigint=l.hrtime&&typeof i.process.hrtime.bigint==`function`,l.nextTick=i.process&&typeof i.process.nextTick==`function`;let f=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;l.performance=i.performance&&typeof i.performance.now==`function`;let p=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),m=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;l.queueMicrotask=i.hasOwnProperty(`queueMicrotask`),l.requestAnimationFrame=i.requestAnimationFrame&&typeof i.requestAnimationFrame==`function`,l.cancelAnimationFrame=i.cancelAnimationFrame&&typeof i.cancelAnimationFrame==`function`,l.requestIdleCallback=i.requestIdleCallback&&typeof i.requestIdleCallback==`function`,l.cancelIdleCallbackPresent=i.cancelIdleCallback&&typeof i.cancelIdleCallback==`function`,l.setImmediate=i.setImmediate&&typeof i.setImmediate==`function`,l.clearImmediate=i.clearImmediate&&typeof i.clearImmediate==`function`,l.Intl=i.Intl&&typeof i.Intl==`object`,i.clearTimeout&&i.clearTimeout(u);let h=i.Date,g=l.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0,_=o;if(h===void 0)throw Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");l.Date=!0;class v{constructor(e,t,n,r){this.name=e,this.entryType=t,this.startTime=n,this.duration=r}toJSON(){return JSON.stringify({...this})}}function y(e){return Number.isFinite?Number.isFinite(e):isFinite(e)}let b=!1;function x(e,t){e.loopLimit&&t===e.loopLimit-1&&(b=!0)}function S(){b=!1}function C(e){if(!e)return 0;let t=e.split(`:`),n=t.length,r=n,i=0,a;if(n>3||!/^(\d\d:){0,2}\d\d?$/.test(e))throw Error(`tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits`);for(;r--;){if(a=parseInt(t[r],10),a>=60)throw Error(`Invalid time ${e}`);i+=a*60**(n-r-1)}return i*1e3}function w(e){let t=1e6,n=e*1e6%t,r=n<0?n+t:n;return Math.floor(r)}function ee(e){if(!e)return 0;if(typeof e.getTime==`function`)return e.getTime();if(typeof e==`number`)return e;throw TypeError(`now should be milliseconds since UNIX epoch`)}function te(e,t,n){return n&&n.callAt>=e&&n.callAt<=t}function ne(e,t){let n=Error(`Aborting after running ${e.loopLimit} timers, assuming an infinite loop!`);if(!t.error)return n;let r=/target\.*[<|(|[].*?[>|\]|)]\s*/,i=new RegExp(String(Object.keys(e).join(`|`)));d&&(i=RegExp(`\\s+at (Object\\.)?(?:${Object.keys(e).join(`|`)})\\s+`));let a=-1;t.error.stack.split(`
|
|
344
|
-
`).some(function(e,t){return e.match(r)?(a=t,!0):e.match(i)?(a=t,!1):a>=0});let o=`${n}\n${t.type||`Microtask`} - ${t.func.name||`anonymous`}\n${t.error.stack.split(`
|
|
345
|
-
`).slice(a+1).join(`
|
|
346
|
-
`)}`;try{Object.defineProperty(n,`stack`,{value:o})}catch{}return n}function re(){class e extends h{constructor(t,n,r,i,a,o,s){arguments.length===0?super(e.clock.now):super(...arguments),Object.defineProperty(this,`constructor`,{value:h,enumerable:!1})}static[Symbol.hasInstance](e){return e instanceof h}}return e.isFake=!0,h.now&&(e.now=function(){return e.clock.now}),h.toSource&&(e.toSource=function(){return h.toSource()}),e.toString=function(){return h.toString()},new Proxy(e,{apply(){if(this instanceof e)throw 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 h(e.clock.now).toString()}})}function ie(){let e={};return Object.getOwnPropertyNames(g).forEach(t=>e[t]=g[t]),e.DateTimeFormat=function(...t){let n=new g.DateTimeFormat(...t),r={};return[`formatRange`,`formatRangeToParts`,`resolvedOptions`].forEach(e=>{r[e]=n[e].bind(n)}),[`format`,`formatToParts`].forEach(t=>{r[t]=function(r){return n[t](r||e.clock.now)}}),r},e.DateTimeFormat.prototype=Object.create(g.DateTimeFormat.prototype),e.DateTimeFormat.supportedLocalesOf=g.DateTimeFormat.supportedLocalesOf,e}function ae(e,t){e.jobs||=[],e.jobs.push(t)}function T(e){if(e.jobs){for(let t=0;t<e.jobs.length;t++){let n=e.jobs[t];if(n.func.apply(null,n.args),x(e,t),e.loopLimit&&t>e.loopLimit)throw ne(e,n)}S(),e.jobs=[]}}function oe(e,t){if(t.func===void 0)throw Error(`Callback must be provided to timer calls`);if(d&&typeof t.func!=`function`)throw TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${t.func} of type ${typeof t.func}`);if(b&&(t.error=Error()),t.type=t.immediate?`Immediate`:`Timeout`,t.hasOwnProperty(`delay`)&&(typeof t.delay!=`number`&&(t.delay=parseInt(t.delay,10)),y(t.delay)||(t.delay=0),t.delay=t.delay>a?1:t.delay,t.delay=Math.max(0,t.delay)),t.hasOwnProperty(`interval`)&&(t.type=`Interval`,t.interval=t.interval>a?1:t.interval),t.hasOwnProperty(`animation`)&&(t.type=`AnimationFrame`,t.animation=!0),t.hasOwnProperty(`idleCallback`)&&(t.type=`IdleCallback`,t.idleCallback=!0),e.timers||={},t.id=_++,t.createdAt=e.now,t.callAt=e.now+(parseInt(t.delay)||(e.duringTick?1:0)),e.timers[t.id]=t,d){let 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 t.callAt=e.now+(parseInt(t.delay)||(e.duringTick?1:0)),e.timers[t.id]=t,n},[Symbol.toPrimitive]:function(){return t.id}};return n}return t.id}function se(e,t){if(e.callAt<t.callAt)return-1;if(e.callAt>t.callAt)return 1;if(e.immediate&&!t.immediate)return-1;if(!e.immediate&&t.immediate)return 1;if(e.createdAt<t.createdAt)return-1;if(e.createdAt>t.createdAt)return 1;if(e.id<t.id)return-1;if(e.id>t.id)return 1}function ce(e,t,n){let r=e.timers,i=null,a,o;for(a in r)r.hasOwnProperty(a)&&(o=te(t,n,r[a]),o&&(!i||se(i,r[a])===1)&&(i=r[a]));return i}function le(e){let t=e.timers,n=null,r;for(r in t)t.hasOwnProperty(r)&&(!n||se(n,t[r])===1)&&(n=t[r]);return n}function ue(e){let t=e.timers,n=null,r;for(r in t)t.hasOwnProperty(r)&&(!n||se(n,t[r])===-1)&&(n=t[r]);return n}function de(e,t){if(typeof t.interval==`number`?e.timers[t.id].callAt+=t.interval:delete e.timers[t.id],typeof t.func==`function`)t.func.apply(null,t.args);else{let e=eval;(function(){e(t.func)})()}}function fe(e){return e===`IdleCallback`||e===`AnimationFrame`?`cancel${e}`:`clear${e}`}function pe(e){return e===`IdleCallback`||e===`AnimationFrame`?`request${e}`:`set${e}`}function me(){let e=0;return function(t){!e++&&console.warn(t)}}let he=me();function ge(e,t,n){if(!t)return;e.timers||={};let r=Number(t);if(Number.isNaN(r)||r<o){let r=fe(n);if(e.shouldClearNativeTimers===!0){let n=e[`_${r}`];return typeof n==`function`?n(t):void 0}he(`FakeTimers: ${r} was invoked to clear a native timer instead of one created by this library.
|
|
347
|
-
To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(e.timers.hasOwnProperty(r)){let t=e.timers[r];if(t.type===n||t.type===`Timeout`&&n===`Interval`||t.type===`Interval`&&n===`Timeout`)delete e.timers[r];else{let e=fe(n),r=pe(t.type);throw Error(`Cannot clear timer: timer created with ${r}() but cleared with ${e}()`)}}}function _e(e,r){let a,o,s;for(o=0,s=e.methods.length;o<s;o++){if(a=e.methods[o],a===`hrtime`&&i.process)i.process.hrtime=e._hrtime;else if(a===`nextTick`&&i.process)i.process.nextTick=e._nextTick;else if(a===`performance`){let t=Object.getOwnPropertyDescriptor(e,`_${a}`);t&&t.get&&!t.set?Object.defineProperty(i,a,t):t.configurable&&(i[a]=e[`_${a}`])}else if(i[a]&&i[a].hadOwnProperty)i[a]=e[`_${a}`];else try{delete i[a]}catch{}if(e.timersModuleMethods!==void 0)for(let n=0;n<e.timersModuleMethods.length;n++){let r=e.timersModuleMethods[n];t[r.methodName]=r.original}if(e.timersPromisesModuleMethods!==void 0)for(let t=0;t<e.timersPromisesModuleMethods.length;t++){let r=e.timersPromisesModuleMethods[t];n[r.methodName]=r.original}}r.shouldAdvanceTime===!0&&i.clearInterval(e.attachedInterval),e.methods=[];for(let[t,n]of e.abortListenerMap.entries())n.removeEventListener(`abort`,t),e.abortListenerMap.delete(t);return e.timers?Object.keys(e.timers).map(function(t){return e.timers[t]}):[]}function ve(e,t,n){if(n[t].hadOwnProperty=Object.prototype.hasOwnProperty.call(e,t),n[`_${t}`]=e[t],t===`Date`)e[t]=n[t];else if(t===`Intl`)e[t]=n[t];else if(t===`performance`){let r=Object.getOwnPropertyDescriptor(e,t);if(r&&r.get&&!r.set){Object.defineProperty(n,`_${t}`,r);let i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i)}else e[t]=n[t]}else e[t]=function(){return n[t].apply(n,arguments)},Object.defineProperties(e[t],Object.getOwnPropertyDescriptors(n[t]));e[t].clock=n}function ye(e,t){e.tick(t)}let E={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};l.setImmediate&&(E.setImmediate=i.setImmediate),l.clearImmediate&&(E.clearImmediate=i.clearImmediate),l.hrtime&&(E.hrtime=i.process.hrtime),l.nextTick&&(E.nextTick=i.process.nextTick),l.performance&&(E.performance=i.performance),l.requestAnimationFrame&&(E.requestAnimationFrame=i.requestAnimationFrame),l.queueMicrotask&&(E.queueMicrotask=i.queueMicrotask),l.cancelAnimationFrame&&(E.cancelAnimationFrame=i.cancelAnimationFrame),l.requestIdleCallback&&(E.requestIdleCallback=i.requestIdleCallback),l.cancelIdleCallback&&(E.cancelIdleCallback=i.cancelIdleCallback),l.Intl&&(E.Intl=g);let be=i.setImmediate||i.setTimeout;function xe(e,t){e=Math.floor(ee(e)),t||=1e3;let n=0,r=[0,0],a={now:e,Date:re(),loopLimit:t};a.Date.clock=a;function o(){return 16-(a.now-e)%16}function s(t){let i=a.now-r[0]-e,o=Math.floor(i/1e3),s=(i-o*1e3)*1e6+n-r[1];if(Array.isArray(t)){if(t[1]>1e9)throw TypeError(`Number of nanoseconds can't exceed a billion`);let e=t[0],n=s-t[1],r=o-e;return n<0&&(n+=1e9,--r),[r,n]}return[o,s]}function c(){let e=s();return e[0]*1e3+e[1]/1e6}l.hrtimeBigint&&(s.bigint=function(){let e=s();return BigInt(e[0])*BigInt(1e9)+BigInt(e[1])}),l.Intl&&(a.Intl=ie(),a.Intl.clock=a),a.requestIdleCallback=function(e,t){let n=0;a.countTimers()>0&&(n=50);let r=oe(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t===void 0?n:Math.min(t,n),idleCallback:!0});return Number(r)},a.cancelIdleCallback=function(e){return ge(a,e,`IdleCallback`)},a.setTimeout=function(e,t){return oe(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t})},i.Promise!==void 0&&f&&(a.setTimeout[f.custom]=function(e,t){return new i.Promise(function(n){oe(a,{func:n,args:[t],delay:e})})}),a.clearTimeout=function(e){return ge(a,e,`Timeout`)},a.nextTick=function(e){return ae(a,{func:e,args:Array.prototype.slice.call(arguments,1),error:b?Error():null})},a.queueMicrotask=function(e){return a.nextTick(e)},a.setInterval=function(e,t){return t=parseInt(t,10),oe(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t,interval:t})},a.clearInterval=function(e){return ge(a,e,`Interval`)},l.setImmediate&&(a.setImmediate=function(e){return oe(a,{func:e,args:Array.prototype.slice.call(arguments,1),immediate:!0})},i.Promise!==void 0&&f&&(a.setImmediate[f.custom]=function(e){return new i.Promise(function(t){oe(a,{func:t,args:[e],immediate:!0})})}),a.clearImmediate=function(e){return ge(a,e,`Immediate`)}),a.countTimers=function(){return Object.keys(a.timers||{}).length+(a.jobs||[]).length},a.requestAnimationFrame=function(e){let t=oe(a,{func:e,delay:o(),get args(){return[c()]},animation:!0});return Number(t)},a.cancelAnimationFrame=function(e){return ge(a,e,`AnimationFrame`)},a.runMicrotasks=function(){T(a)};function u(e,t,r,i){let o=typeof e==`number`?e:C(e),s=Math.floor(o),c=w(o),l=n+c,u=a.now+s;if(o<0)throw TypeError(`Negative ticks are not supported`);l>=1e6&&(u+=1,l-=1e6),n=l;let d=a.now,f=a.now,p,m,h,g,_,v;a.duringTick=!0,h=a.now,T(a),h!==a.now&&(d+=a.now-h,u+=a.now-h);function y(){for(p=ce(a,d,u);p&&d<=u;){if(a.timers[p.id]){d=p.callAt,a.now=p.callAt,h=a.now;try{T(a),de(a,p)}catch(e){m||=e}if(t){be(g);return}_()}v()}if(h=a.now,T(a),h!==a.now&&(d+=a.now-h,u+=a.now-h),a.duringTick=!1,p=ce(a,d,u),p)try{a.tick(u-a.now)}catch(e){m||=e}else a.now=u,n=l;if(m)throw m;if(t)r(a.now);else return a.now}return g=t&&function(){try{_(),v(),y()}catch(e){i(e)}},_=function(){h!==a.now&&(d+=a.now-h,u+=a.now-h,f+=a.now-h)},v=function(){p=ce(a,f,u),f=d},y()}return a.tick=function(e){return u(e,!1)},i.Promise!==void 0&&(a.tickAsync=function(e){return new i.Promise(function(t,n){be(function(){try{u(e,!0,t,n)}catch(e){n(e)}})})}),a.next=function(){T(a);let e=le(a);if(!e)return a.now;a.duringTick=!0;try{return a.now=e.callAt,de(a,e),T(a),a.now}finally{a.duringTick=!1}},i.Promise!==void 0&&(a.nextAsync=function(){return new i.Promise(function(e,t){be(function(){try{let n=le(a);if(!n){e(a.now);return}let r;a.duringTick=!0,a.now=n.callAt;try{de(a,n)}catch(e){r=e}a.duringTick=!1,be(function(){r?t(r):e(a.now)})}catch(e){t(e)}})})}),a.runAll=function(){let e,t;for(T(a),t=0;t<a.loopLimit;t++){if(!a.timers||(e=Object.keys(a.timers).length,e===0))return S(),a.now;a.next(),x(a,t)}throw ne(a,le(a))},a.runToFrame=function(){return a.tick(o())},i.Promise!==void 0&&(a.runAllAsync=function(){return new i.Promise(function(e,t){let n=0;function r(){be(function(){try{T(a);let i;if(n<a.loopLimit){if(!a.timers){S(),e(a.now);return}if(i=Object.keys(a.timers).length,i===0){S(),e(a.now);return}a.next(),n++,r(),x(a,n);return}t(ne(a,le(a)))}catch(e){t(e)}})}r()})}),a.runToLast=function(){let e=ue(a);return e?a.tick(e.callAt-a.now):(T(a),a.now)},i.Promise!==void 0&&(a.runToLastAsync=function(){return new i.Promise(function(e,t){be(function(){try{let t=ue(a);t||(T(a),e(a.now)),e(a.tickAsync(t.callAt-a.now))}catch(e){t(e)}})})}),a.reset=function(){n=0,a.timers={},a.jobs=[],a.now=e},a.setSystemTime=function(e){let t=ee(e),i=t-a.now,o,s;for(o in r[0]+=i,r[1]+=n,a.now=t,n=0,a.timers)a.timers.hasOwnProperty(o)&&(s=a.timers[o],s.createdAt+=i,s.callAt+=i)},a.jump=function(e){let t=typeof e==`number`?e:C(e),n=Math.floor(t);for(let e of Object.values(a.timers))a.now+n>e.callAt&&(e.callAt=a.now+n);a.tick(n)},l.performance&&(a.performance=Object.create(null),a.performance.now=c),l.hrtime&&(a.hrtime=s),a}function D(r){if(arguments.length>1||r instanceof Date||Array.isArray(r)||typeof r==`number`)throw TypeError(`FakeTimers.install called with ${String(r)} install requires an object parameter`);if(i.Date.isFake===!0)throw TypeError(`Can't install fake timers twice on the same global object.`);if(r=r===void 0?{}:r,r.shouldAdvanceTime=r.shouldAdvanceTime||!1,r.advanceTimeDelta=r.advanceTimeDelta||20,r.shouldClearNativeTimers=r.shouldClearNativeTimers||!1,r.target)throw TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function a(e){if(!r.ignoreMissingTimers)throw ReferenceError(`non-existent timers and/or objects cannot be faked: '${e}'`)}let o,u,d=xe(r.now,r.loopLimit);if(d.shouldClearNativeTimers=r.shouldClearNativeTimers,d.uninstall=function(){return _e(d,r)},d.abortListenerMap=new Map,d.methods=r.toFake||[],d.methods.length===0&&(d.methods=Object.keys(E)),r.shouldAdvanceTime===!0){let e=ye.bind(null,d,r.advanceTimeDelta);d.attachedInterval=i.setInterval(e,r.advanceTimeDelta)}if(d.methods.includes(`performance`)){let e=(()=>{if(m)return i.performance.constructor.prototype;if(p)return i.Performance.prototype})();if(e)Object.getOwnPropertyNames(e).forEach(function(e){e!==`now`&&(d.performance[e]=e.indexOf(`getEntries`)===0?c:s)}),d.performance.mark=e=>new v(e,`mark`,0,0),d.performance.measure=e=>new v(e,`measure`,0,100),d.performance.timeOrigin=ee(r.now);else if((r.toFake||[]).includes(`performance`))return a(`performance`)}for(i===e&&t&&(d.timersModuleMethods=[]),i===e&&n&&(d.timersPromisesModuleMethods=[]),o=0,u=d.methods.length;o<u;o++){let e=d.methods[o];if(!l[e]){a(e);continue}if(e===`hrtime`?i.process&&typeof i.process.hrtime==`function`&&ve(i.process,e,d):e===`nextTick`?i.process&&typeof i.process.nextTick==`function`&&ve(i.process,e,d):ve(i,e,d),d.timersModuleMethods!==void 0&&t[e]){let n=t[e];d.timersModuleMethods.push({methodName:e,original:n}),t[e]=i[e]}d.timersPromisesModuleMethods!==void 0&&(e===`setTimeout`?(d.timersPromisesModuleMethods.push({methodName:`setTimeout`,original:n.setTimeout}),n.setTimeout=(e,t,n={})=>new Promise((r,i)=>{let a=()=>{n.signal.removeEventListener(`abort`,a),d.abortListenerMap.delete(a),d.clearTimeout(o),i(n.signal.reason)},o=d.setTimeout(()=>{n.signal&&(n.signal.removeEventListener(`abort`,a),d.abortListenerMap.delete(a)),r(t)},e);n.signal&&(n.signal.aborted?a():(n.signal.addEventListener(`abort`,a),d.abortListenerMap.set(a,n.signal)))})):e===`setImmediate`?(d.timersPromisesModuleMethods.push({methodName:`setImmediate`,original:n.setImmediate}),n.setImmediate=(e,t={})=>new Promise((n,r)=>{let i=()=>{t.signal.removeEventListener(`abort`,i),d.abortListenerMap.delete(i),d.clearImmediate(a),r(t.signal.reason)},a=d.setImmediate(()=>{t.signal&&(t.signal.removeEventListener(`abort`,i),d.abortListenerMap.delete(i)),n(e)});t.signal&&(t.signal.aborted?i():(t.signal.addEventListener(`abort`,i),d.abortListenerMap.set(i,t.signal)))})):e===`setInterval`&&(d.timersPromisesModuleMethods.push({methodName:`setInterval`,original:n.setInterval}),n.setInterval=(e,t,n={})=>({[Symbol.asyncIterator]:()=>{let r=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},i=!1,a=!1,o,s=0,c=[],l=d.setInterval(()=>{c.length>0?c.shift().resolve():s++},e),u=()=>{n.signal.removeEventListener(`abort`,u),d.abortListenerMap.delete(u),d.clearInterval(l),i=!0;for(let e of c)e.resolve()};return n.signal&&(n.signal.aborted?i=!0:(n.signal.addEventListener(`abort`,u),d.abortListenerMap.set(u,n.signal))),{next:async()=>{if(n.signal?.aborted&&!a)throw a=!0,n.signal.reason;if(i)return{done:!0,value:void 0};if(s>0)return s--,{done:!1,value:t};let e=r();if(c.push(e),await e,o&&c.length===0&&o.resolve(),n.signal?.aborted&&!a)throw a=!0,n.signal.reason;return i?{done:!0,value:void 0}:{done:!1,value:t}},return:async()=>i?{done:!0,value:void 0}:(c.length>0&&(o=r(),await o),d.clearInterval(l),i=!0,n.signal&&(n.signal.removeEventListener(`abort`,u),d.abortListenerMap.delete(u)),{done:!0,value:void 0})}}})))}return d}return{timers:E,createClock:xe,install:D,withGlobal:r}}let i=r(e);return yp.timers=i.timers,yp.createClock=i.createClock,yp.install=i.install,yp.withGlobal=r,yp}var km=Om(),Am=class{_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=$f.now;constructor({global:e,config:t}){this._userConfig=t,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=km.withGlobal(e),this._global=e}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(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);t--);}async advanceTimersToNextTimerAsync(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);t--);}advanceTimersByTime(e){this._checkFakeTimers()&&this._clock.tick(e)}async advanceTimersByTimeAsync(e){this._checkFakeTimers()&&await this._clock.tickAsync(e)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&=(rp(),null),this._fakingTime&&=(this._clock.uninstall(),!1)}useFakeTimers(){let e=this._fakingDate||Date.now();this._fakingDate&&=(rp(),null),this._fakingTime&&this._clock.uninstall();let t=Object.keys(this._fakeTimers.timers).filter(e=>e!==`nextTick`&&e!==`queueMicrotask`);if(this._userConfig?.toFake?.includes(`nextTick`)&&sd())throw Error(`process.nextTick cannot be mocked inside child_process`);this._clock=this._fakeTimers.install({now:e,...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:!0}),this._fakingTime=!0}reset(){if(this._checkFakeTimers()){let{now:e}=this._clock;this._clock.reset(),this._clock.setSystemTime(e)}}setSystemTime(e){let t=e===void 0||e instanceof Date?e:new Date(e);this._fakingTime?this._clock.setSystemTime(t):(this._fakingDate=t??new Date(this.getRealSystemTime()),np(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(e){this._userConfig=e}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw Error("A function to advance timers was called but the timers APIs are not mocked. Call `vi.useFakeTimers()` in the test file first.");return this._fakingTime}};function jm(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function Mm(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:a}=fl(),{interval:o=50,timeout:s=1e3}=typeof t==`number`?{timeout:t}:t,c=Error(`STACK_TRACE_ERROR`);return new Promise((t,l)=>{let u,d=`idle`,f,p,m=e=>{f&&i(f),p&&a(p),t(e)},h=()=>{p&&a(p);let e=u;e||=jm(Error(`Timed out in waitFor!`),c),l(e)},g=()=>{if(Im.isFakeTimers()&&Im.advanceTimersByTime(o),d!==`pending`)try{let t=e();if(typeof t==`object`&&t&&typeof t.then==`function`){let e=t;d=`pending`,e.then(e=>{d=`resolved`,m(e)},e=>{d=`rejected`,u=e})}else return m(t),!0}catch(e){u=e}};g()!==!0&&(f=n(h,s),p=r(g,o))})}function Nm(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:a}=fl(),{interval:o=50,timeout:s=1e3}=typeof t==`number`?{timeout:t}:t,c=Error(`STACK_TRACE_ERROR`);return new Promise((t,l)=>{let u=`idle`,d,f,p=e=>{f&&a(f),e||=jm(Error(`Timed out in waitUntil!`),c),l(e)},m=e=>{if(e)return d&&i(d),f&&a(f),t(e),!0},h=()=>{if(Im.isFakeTimers()&&Im.advanceTimersByTime(o),u!==`pending`)try{let t=e();if(typeof t==`object`&&t&&typeof t.then==`function`){let e=t;u=`pending`,e.then(e=>{u=`resolved`,m(e)},e=>{u=`rejected`,p(e)})}else return m(t)}catch(e){p(e)}};h()!==!0&&(d=n(p,s),f=r(h,o))})}function Pm(){let e=null,t=()=>od(),n,r=()=>n||=new Am({global:globalThis,config:t().config.fakeTimers}),i=new Map,a=new Map,o=[`PROD`,`DEV`,`SSR`],s={useFakeTimers(e){if(sd()&&(e?.toFake?.includes(`nextTick`)||t().config?.fakeTimers?.toFake?.includes(`nextTick`)))throw Error(`vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.`);return e?r().configure({...t().config.fakeTimers,...e}):r().configure(t().config.fakeTimers),r().useFakeTimers(),s},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),s},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),s},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),s},runAllTimers(){return r().runAllTimers(),s},async runAllTimersAsync(){return await r().runAllTimersAsync(),s},runAllTicks(){return r().runAllTicks(),s},advanceTimersByTime(e){return r().advanceTimersByTime(e),s},async advanceTimersByTimeAsync(e){return await r().advanceTimersByTimeAsync(e),s},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),s},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),s},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),s},getTimerCount(){return r().getTimerCount()},setSystemTime(e){return r().setSystemTime(e),s},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),s},spyOn:mi,fn:pi,waitFor:Mm,waitUntil:Nm,hoisted(e){return N(e,`"vi.hoisted" factory`,[`function`]),e()},mock(e,t){if(typeof e!=`string`)throw TypeError(`vi.mock() expects a string path, but received a ${typeof e}`);let n=Lm(`mock`);$().queueMock(e,n,typeof t==`function`?()=>t(()=>$().importActual(e,n,$().getMockContext().callstack)):t)},unmock(e){if(typeof e!=`string`)throw TypeError(`vi.unmock() expects a string path, but received a ${typeof e}`);$().queueUnmock(e,Lm(`unmock`))},doMock(e,t){if(typeof e!=`string`)throw TypeError(`vi.doMock() expects a string path, but received a ${typeof e}`);let n=Lm(`doMock`);$().queueMock(e,n,typeof t==`function`?()=>t(()=>$().importActual(e,n,$().getMockContext().callstack)):t)},doUnmock(e){if(typeof e!=`string`)throw TypeError(`vi.doUnmock() expects a string path, but received a ${typeof e}`);let t=Lm(`doUnmock`);$().queueUnmock(e,t)},async importActual(e){let t=Lm(`importActual`);return $().importActual(e,t,$().getMockContext().callstack)},async importMock(e){let t=Lm(`importMock`);return $().importMock(e,t)},mockObject(e,t){return $().mockObject({value:e},void 0,t?.spy?`autospy`:`automock`).value},mocked(e,t={}){return e},isMockFunction(e){return ci(e)},clearAllMocks(){return ji(),s},resetAllMocks(){return Mi(),s},restoreAllMocks(){return Ai(),s},stubGlobal(e,t){return i.has(e)||i.set(e,Object.getOwnPropertyDescriptor(globalThis,e)),Object.defineProperty(globalThis,e,{value:t,writable:!0,configurable:!0,enumerable:!0}),s},stubEnv(e,n){let r=t().metaEnv;return a.has(e)||a.set(e,r[e]),o.includes(e)?r[e]=n?`1`:``:n===void 0?delete r[e]:r[e]=String(n),s},unstubAllGlobals(){return i.forEach((e,t)=>{e?Object.defineProperty(globalThis,t,e):Reflect.deleteProperty(globalThis,t)}),i.clear(),s},unstubAllEnvs(){let e=t().metaEnv;return a.forEach((t,n)=>{t===void 0?delete e[n]:e[n]=t}),a.clear(),s},resetModules(){return cd(t().evaluatedModules),s},async dynamicImportSettled(){return ud()},setConfig(n){e||={...t().config},Object.assign(t().config,n)},resetConfig(){e&&Object.assign(t().config,e)}};return s}const Fm=Pm(),Im=Fm;function $(){return typeof __vitest_mocker__<`u`?__vitest_mocker__:new Proxy({},{get(e,t){throw Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}function Lm(e){let t=Dn({stackTraceLimit:5}).split(`
|
|
348
|
-
`);return Ol(t[t.findLastIndex(t=>t.includes(` at Object.${e}`)||t.includes(`${e}@`)||t.includes(` at ${e} (`))+1])?.file||``}const Rm=new WeakMap,zm=new WeakMap,Bm=Vm(function(e,t=Ln,n={}){if(od().config.mode!==`benchmark`)throw Error("`bench()` is only available in benchmark mode.");let r=Eu().task(Hm(e),{...this,meta:{benchmark:!0}});Rm.set(r,t),zm.set(r,n),!this.todo&&r.mode===`todo`&&(r.mode=`run`)});function Vm(e){let t=zl([`skip`,`only`,`todo`],e);return t.skipIf=e=>e?t.skip:t,t.runIf=e=>e?t:t.skip,t}function Hm(e){return typeof e==`string`?e:typeof e==`function`?e.name||`<anonymous>`:String(e)}var Um=class extends n{getModuleSourceMapById(e){let t=super.getModuleSourceMapById(e);if(t!=null&&!(`_patched`in t)){t._patched=!0;let e=Rl(t.url);t.resolvedSources=(t.map.sources||[]).map(t=>Fl(e,t||``))}return t}},Wm=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Gm=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Km=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),qm=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Jm=t((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.expectTypeOf=void 0,n(Wm(),e),n(Gm(),e),n(Km(),e),n(qm(),e);let r=()=>!0;e.expectTypeOf=t=>{let n=[`parameters`,`returns`,`resolves`,`not`,`items`,`constructorParameters`,`thisParameter`,`instance`,`guards`,`asserts`,`branded`],i={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:e.expectTypeOf,toBeCallableWith:e.expectTypeOf,extract:e.expectTypeOf,exclude:e.expectTypeOf,pick:e.expectTypeOf,omit:e.expectTypeOf,toHaveProperty:e.expectTypeOf,parameter:e.expectTypeOf};return n.forEach(t=>Object.defineProperty(i,t,{get:()=>(0,e.expectTypeOf)({})})),i}}))();const Ym=function(){};var Xm=Jm.expectTypeOf;export{Um as EvaluatedModules,mu as afterAll,gu as afterEach,gp as assert,Ym as assertType,pu as beforeAll,hu as beforeEach,Bm as bench,Bi as chai,mp as createExpect,Su as describe,hp as expect,Xm as expectTypeOf,vp as inject,Cu as it,_u as onTestFailed,vu as onTestFinished,nd as recordArtifact,_p as should,bu as suite,xu as test,Im as vi,Fm as vitest};
|
|
1
|
+
export*from"vitest";export{};
|