@nice2dev/testing 1.0.10

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/index.cjs ADDED
@@ -0,0 +1,243 @@
1
+ "use strict";var cb=Object.defineProperty;var ub=(e,t,n)=>t in e?cb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var L=(e,t,n)=>ub(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lb=require("react"),ze=require("react/jsx-runtime"),We=require("@testing-library/react");class pt extends Error{constructor(t=!1){super(),this.interruptExecution=t,this.footprint=pt.SharedFootPrint}static isFailure(t){return t!=null&&t.footprint===pt.SharedFootPrint}}pt.SharedFootPrint=Symbol.for("fast-check/PreconditionFailure");function mp(e){if(!e)throw new pt}class ta{[Symbol.iterator](){return this}next(t){return{value:t,done:!0}}}ta.nil=new ta;function fb(){return ta.nil}function*hb(e,t){for(const n of e)yield t(n)}function*db(e,t){for(const n of e)yield*t(n)}function*pb(e,t){for(const n of e)t(n)&&(yield n)}function*mb(e,t){for(let n=0;n<t;++n){const r=e.next();if(r.done)break;yield r.value}}function*gb(e,t){let n=e.next();for(;!n.done&&t(n.value);)yield n.value,n=e.next()}function*xb(e,t){for(let n=e.next();!n.done;n=e.next())yield n.value;for(const n of t)for(let r=n.next();!r.done;r=n.next())yield r.value}const bb=Symbol.iterator;class z{static nil(){return new z(fb())}static of(...t){return new z(t[bb]())}constructor(t){this.g=t}next(){return this.g.next()}[Symbol.iterator](){return this.g}map(t){return new z(hb(this.g,t))}flatMap(t){return new z(db(this.g,t))}dropWhile(t){let n=!1;function*r(i){(n||!t(i))&&(n=!0,yield i)}return this.flatMap(r)}drop(t){if(t<=0)return this;let n=0;function r(){return n++<t}return this.dropWhile(r)}takeWhile(t){return new z(gb(this.g,t))}take(t){return new z(mb(this.g,t))}filter(t){return new z(pb(this.g,t))}every(t){for(const n of this.g)if(!t(n))return!1;return!0}has(t){for(const n of this.g)if(t(n))return[!0,n];return[!1,null]}join(...t){return new z(xb(this.g,t))}getNthOrLast(t){let n=t,r=null;for(const i of this.g){if(n--===0)return i;r=i}return r}}function _t(e){return new z(e)}const Pe=Symbol.for("fast-check/cloneMethod");function hn(e){return e!==null&&(typeof e=="object"||typeof e=="function")&&Pe in e&&typeof e[Pe]=="function"}function wn(e){return hn(e)?e[Pe]():e}const yb=Object.defineProperty;class F{constructor(t,n,r=void 0){this.value_=t,this.context=n,this.hasToBeCloned=r!==void 0||hn(t),this.readOnce=!1,this.hasToBeCloned?yb(this,"value",{get:r!==void 0?r:this.getValue}):this.value=t}getValue(){return this.hasToBeCloned?this.readOnce?this.value_[Pe]():(this.readOnce=!0,this.value_):this.value_}}const ul=Object.assign;class xe{filter(t){return new Eb(this,t)}map(t,n){return new Sb(this,t,n)}chain(t){return new wb(this,t)}noShrink(){return new Tb(this)}noBias(){return new Ab(this)}}class wb extends xe{constructor(t,n){super(),this.arb=t,this.chainer=n}generate(t,n){const r=t.clone(),i=this.arb.generate(t,n);return this.valueChainer(i,t,r,n)}canShrinkWithoutContext(t){return!1}shrink(t,n){return this.isSafeContext(n)?(n.stoppedForOriginal?z.nil():this.arb.shrink(n.originalValue,n.originalContext).map(r=>this.valueChainer(r,n.clonedMrng.clone(),n.clonedMrng,n.originalBias))).join(n.chainedArbitrary.shrink(t,n.chainedContext).map(r=>{const i=ul(ul({},n),{chainedContext:r.context,stoppedForOriginal:!0});return new F(r.value_,i)})):z.nil()}valueChainer(t,n,r,i){const s=this.chainer(t.value_),o=s.generate(n,i),a={originalBias:i,originalValue:t.value_,originalContext:t.context,stoppedForOriginal:!1,chainedArbitrary:s,chainedContext:o.context,clonedMrng:r};return new F(o.value_,a)}isSafeContext(t){return t!=null&&typeof t=="object"&&"originalBias"in t&&"originalValue"in t&&"originalContext"in t&&"stoppedForOriginal"in t&&"chainedArbitrary"in t&&"chainedContext"in t&&"clonedMrng"in t}}class Sb extends xe{constructor(t,n,r){super(),this.arb=t,this.mapper=n,this.unmapper=r,this.bindValueMapper=i=>this.valueMapper(i)}generate(t,n){const r=this.arb.generate(t,n);return this.valueMapper(r)}canShrinkWithoutContext(t){if(this.unmapper!==void 0)try{const n=this.unmapper(t);return this.arb.canShrinkWithoutContext(n)}catch{return!1}return!1}shrink(t,n){if(this.isSafeContext(n))return this.arb.shrink(n.originalValue,n.originalContext).map(this.bindValueMapper);if(this.unmapper!==void 0){const r=this.unmapper(t);return this.arb.shrink(r,void 0).map(this.bindValueMapper)}return z.nil()}mapperWithCloneIfNeeded(t){const n=t.value,r=this.mapper(n);return t.hasToBeCloned&&(typeof r=="object"&&r!==null||typeof r=="function")&&Object.isExtensible(r)&&!hn(r)&&Object.defineProperty(r,Pe,{get:()=>()=>this.mapperWithCloneIfNeeded(t)[0]}),[r,n]}valueMapper(t){const[n,r]=this.mapperWithCloneIfNeeded(t),i={originalValue:r,originalContext:t.context};return new F(n,i)}isSafeContext(t){return t!=null&&typeof t=="object"&&"originalValue"in t&&"originalContext"in t}}class Eb extends xe{constructor(t,n){super(),this.arb=t,this.refinement=n,this.bindRefinementOnValue=r=>this.refinementOnValue(r)}generate(t,n){for(;;){const r=this.arb.generate(t,n);if(this.refinementOnValue(r))return r}}canShrinkWithoutContext(t){return this.arb.canShrinkWithoutContext(t)&&this.refinement(t)}shrink(t,n){return this.arb.shrink(t,n).filter(this.bindRefinementOnValue)}refinementOnValue(t){return this.refinement(t.value)}}class Tb extends xe{constructor(t){super(),this.arb=t}generate(t,n){return this.arb.generate(t,n)}canShrinkWithoutContext(t){return this.arb.canShrinkWithoutContext(t)}shrink(t,n){return z.nil()}noShrink(){return this}}class Ab extends xe{constructor(t){super(),this.arb=t}generate(t,n){return this.arb.generate(t,void 0)}canShrinkWithoutContext(t){return this.arb.canShrinkWithoutContext(t)}shrink(t,n){return this.arb.shrink(t,n)}noBias(){return this}}function gp(e){return typeof e=="object"&&e!==null&&"generate"in e&&"shrink"in e&&"canShrinkWithoutContext"in e}function xp(e){if(!gp(e))throw new Error("Unexpected value received: not an instance of Arbitrary")}const bp=Function.prototype.apply,Ws=Symbol("apply");function Ib(e){try{return e.apply}catch{return}}function $b(e,t,n){const r=e;r[Ws]=bp;const i=r[Ws](t,n);return delete r[Ws],i}function re(e,t,n){return Ib(e)===bp?e.apply(t,n):$b(e,t,n)}const yp=typeof Array<"u"?Array:void 0,B=typeof BigInt<"u"?BigInt:void 0,Cb=typeof BigInt64Array<"u"?BigInt64Array:void 0,vb=typeof BigUint64Array<"u"?BigUint64Array:void 0,wp=typeof Boolean<"u"?Boolean:void 0,ki=typeof Date<"u"?Date:void 0,H=typeof Error<"u"?Error:void 0,Sp=typeof Float32Array<"u"?Float32Array:void 0,Ep=typeof Float64Array<"u"?Float64Array:void 0,Mb=typeof Int8Array<"u"?Int8Array:void 0,Ob=typeof Int16Array<"u"?Int16Array:void 0,Nb=typeof Int32Array<"u"?Int32Array:void 0,Ga=typeof Number<"u"?Number:void 0,dn=typeof String<"u"?String:void 0,rs=typeof Set<"u"?Set:void 0,kb=typeof Uint8Array<"u"?Uint8Array:void 0,Pb=typeof Uint8ClampedArray<"u"?Uint8ClampedArray:void 0,_b=typeof Uint16Array<"u"?Uint16Array:void 0,jb=typeof Uint32Array<"u"?Uint32Array:void 0,Fb=typeof encodeURIComponent<"u"?encodeURIComponent:void 0,Dr=Map,bi=Symbol,ll=Array.prototype.forEach,fl=Array.prototype.indexOf,hl=Array.prototype.join,dl=Array.prototype.map,pl=Array.prototype.filter,ml=Array.prototype.push,gl=Array.prototype.pop,xl=Array.prototype.splice,bl=Array.prototype.slice,yl=Array.prototype.sort,wl=Array.prototype.every;function Rb(e){try{return e.forEach}catch{return}}function Db(e){try{return e.indexOf}catch{return}}function Lb(e){try{return e.join}catch{return}}function Bb(e){try{return e.map}catch{return}}function qb(e){try{return e.filter}catch{return}}function Vb(e){try{return e.push}catch{return}}function Ub(e){try{return e.pop}catch{return}}function zb(e){try{return e.splice}catch{return}}function Wb(e){try{return e.slice}catch{return}}function Gb(e){try{return e.sort}catch{return}}function Kb(e){try{return e.every}catch{return}}function Tp(e,t){return Rb(e)===ll?e.forEach(t):re(ll,e,[t])}function zt(e,...t){return Db(e)===fl?e.indexOf(...t):re(fl,e,t)}function ge(e,...t){return Lb(e)===hl?e.join(...t):re(hl,e,t)}function oe(e,t){return Bb(e)===dl?e.map(t):re(dl,e,[t])}function Hb(e,t){return qb(e)===pl?e.filter(t):re(pl,e,[t])}function V(e,...t){return Vb(e)===ml?e.push(...t):re(ml,e,t)}function Ap(e){return Ub(e)===gl?e.pop():re(gl,e,[])}function Ip(e,...t){return zb(e)===xl?e.splice(...t):re(xl,e,t)}function Le(e,...t){return Wb(e)===bl?e.slice(...t):re(bl,e,t)}function $p(e,...t){return Gb(e)===yl?e.sort(...t):re(yl,e,t)}function Cp(e,...t){return Kb(e)===wl?e.every(...t):re(wl,e,t)}const Sl=Date.prototype.getTime,El=Date.prototype.toISOString;function Yb(e){try{return e.getTime}catch{return}}function Jb(e){try{return e.toISOString}catch{return}}function Pi(e){return Yb(e)===Sl?e.getTime():re(Sl,e,[])}function Zb(e){return Jb(e)===El?e.toISOString():re(El,e,[])}const Tl=Set.prototype.add,Al=Set.prototype.has;function Xb(e){try{return e.add}catch{return}}function Qb(e){try{return e.has}catch{return}}function Ka(e,t){return Xb(e)===Tl?e.add(t):re(Tl,e,[t])}function Il(e,t){return Qb(e)===Al?e.has(t):re(Al,e,[t])}const $l=WeakMap.prototype.set,Cl=WeakMap.prototype.get;function ey(e){try{return e.set}catch{return}}function ty(e){try{return e.get}catch{return}}function ny(e,t,n){return ey(e)===$l?e.set(t,n):re($l,e,[t,n])}function ry(e,t){return ty(e)===Cl?e.get(t):re(Cl,e,[t])}const vl=Map.prototype.set,Ml=Map.prototype.get;function iy(e){try{return e.set}catch{return}}function sy(e){try{return e.get}catch{return}}function An(e,t,n){return iy(e)===vl?e.set(t,n):re(vl,e,[t,n])}function un(e,t){return sy(e)===Ml?e.get(t):re(Ml,e,[t])}const Ol=String.prototype.split,Nl=String.prototype.startsWith,kl=String.prototype.endsWith,Pl=String.prototype.substring,_l=String.prototype.toLowerCase,jl=String.prototype.toUpperCase,Fl=String.prototype.padStart,Rl=String.prototype.charCodeAt,Dl=String.prototype.normalize,Ll=String.prototype.replace;function oy(e){try{return e.split}catch{return}}function ay(e){try{return e.startsWith}catch{return}}function cy(e){try{return e.endsWith}catch{return}}function uy(e){try{return e.substring}catch{return}}function ly(e){try{return e.toLowerCase}catch{return}}function fy(e){try{return e.toUpperCase}catch{return}}function hy(e){try{return e.padStart}catch{return}}function dy(e){try{return e.charCodeAt}catch{return}}function py(e){try{return e.normalize}catch{return}}function my(e){try{return e.replace}catch{return}}function Ze(e,...t){return oy(e)===Ol?e.split(...t):re(Ol,e,t)}function gy(e,...t){return ay(e)===Nl?e.startsWith(...t):re(Nl,e,t)}function xy(e,...t){return cy(e)===kl?e.endsWith(...t):re(kl,e,t)}function we(e,...t){return uy(e)===Pl?e.substring(...t):re(Pl,e,t)}function na(e){return ly(e)===_l?e.toLowerCase():re(_l,e,[])}function Ha(e){return fy(e)===jl?e.toUpperCase():re(jl,e,[])}function by(e,...t){return hy(e)===Fl?e.padStart(...t):re(Fl,e,t)}function Hn(e,t){return dy(e)===Rl?e.charCodeAt(t):re(Rl,e,[t])}function yy(e,t){return py(e)===Dl?e.normalize(t):re(Dl,e,[t])}function wy(e,t,n){return my(e)===Ll?e.replace(t,n):re(Ll,e,[t,n])}const Bl=Number.prototype.toString;function Sy(e){try{return e.toString}catch{return}}function Ar(e,...t){return Sy(e)===Bl?e.toString(...t):re(Bl,e,t)}const Ey=Object.prototype.hasOwnProperty,Ty=Object.prototype.toString;function _i(e,t){return re(Ey,e,[t])}function ql(e){return re(Ty,e,[])}class Ay{constructor(t){this.producer=t}[Symbol.iterator](){return this.it===void 0&&(this.it=this.producer()),this.it}next(){return this.it===void 0&&(this.it=this.producer()),this.it.next()}}function on(e){return new Ay(e)}const vp=Array.isArray,Iy=Object.defineProperty;function Mp(e,t){return Iy(e,Pe,{value:()=>{const n=[];for(let r=0;r!==t.length;++r)V(n,t[r].value);return Mp(n,t),n}})}function Op(e){let t=!1;const n=[],r=[];for(let i=0;i!==e.length;++i){const s=e[i];t=t||s.hasToBeCloned,V(n,s.value),V(r,s.context)}return t&&Mp(n,e),new F(n,r)}function Np(e,t,n){const r=[],i=vp(n)?n:[];for(let s=0;s!==e.length;++s)V(r,on(()=>e[s].shrink(t[s],i[s]).map(o=>{const a=oe(t,(c,u)=>new F(wn(c),i[u]));return[...Le(a,0,s),o,...Le(a,s+1)]}).map(Op)));return z.nil().join(...r)}class $y extends xe{constructor(t){super(),this.arbs=t;for(let n=0;n!==t.length;++n){const r=t[n];if(r==null||r.generate==null)throw new Error(`Invalid parameter encountered at index ${n}: expecting an Arbitrary`)}}generate(t,n){const r=[];for(let i=0;i!==this.arbs.length;++i)V(r,this.arbs[i].generate(t,n));return Op(r)}canShrinkWithoutContext(t){if(!vp(t)||t.length!==this.arbs.length)return!1;for(let n=0;n!==this.arbs.length;++n)if(!this.arbs[n].canShrinkWithoutContext(t[n]))return!1;return!0}shrink(t,n){return Np(this.arbs,t,n)}}function K(...e){return new $y(e)}const Cy=Math.log;function kp(e){return 2+~~(Cy(e+1)*.4342944819032518)}let Ya={};function Pp(e){Ya=e}function gt(){return Ya}function _p(){Ya={}}const Ir=Symbol("UndefinedContextPlaceholder");function Yn(e){return e.context!==void 0?e:e.hasToBeCloned?new F(e.value_,Ir,()=>e.value):new F(e.value_,Ir)}class $r{constructor(t,n){this.arb=t,this.predicate=n;const{asyncBeforeEach:r,asyncAfterEach:i,beforeEach:s,afterEach:o}=gt()||{};if(r!==void 0&&s!==void 0)throw H(`Global "asyncBeforeEach" and "beforeEach" parameters can't be set at the same time when running async properties`);if(i!==void 0&&o!==void 0)throw H(`Global "asyncAfterEach" and "afterEach" parameters can't be set at the same time when running async properties`);this.beforeEachHook=r||s||$r.dummyHook,this.afterEachHook=i||o||$r.dummyHook}isAsync(){return!0}generate(t,n){const r=this.arb.generate(t,n!=null?kp(n):void 0);return Yn(r)}shrink(t){if(t.context===void 0&&!this.arb.canShrinkWithoutContext(t.value_))return z.nil();const n=t.context!==Ir?t.context:void 0;return this.arb.shrink(t.value_,n).map(Yn)}async runBeforeEach(){await this.beforeEachHook()}async runAfterEach(){await this.afterEachHook()}async run(t,n){n||await this.beforeEachHook();try{const r=await this.predicate(t);return r==null||r===!0?null:{error:new H("Property failed by returning false"),errorMessage:"Error: Property failed by returning false"}}catch(r){return pt.isFailure(r)?r:r instanceof H&&r.stack?{error:r,errorMessage:r.stack}:{error:r,errorMessage:dn(r)}}finally{n||await this.afterEachHook()}}beforeEach(t){const n=this.beforeEachHook;return this.beforeEachHook=()=>t(n),this}afterEach(t){const n=this.afterEachHook;return this.afterEachHook=()=>t(n),this}}$r.dummyHook=()=>{};class jp extends xe{constructor(t){super(),this.arb=t}generate(t,n){const r=this.arb.generate(t,n);return Yn(r)}canShrinkWithoutContext(t){return!0}shrink(t,n){if(n===void 0&&!this.arb.canShrinkWithoutContext(t))return z.nil();const r=n!==Ir?n:void 0;return this.arb.shrink(t,r).map(Yn)}}function Ja(...e){if(e.length<2)throw new Error("asyncProperty expects at least two parameters");const t=Le(e,0,e.length-1),n=e[e.length-1];Tp(t,xp);const r=oe(t,i=>new jp(i));return new $r(K(...r),i=>n(...i))}class Jn{constructor(t,n){this.arb=t,this.predicate=n;const{beforeEach:r=Jn.dummyHook,afterEach:i=Jn.dummyHook,asyncBeforeEach:s,asyncAfterEach:o}=gt()||{};if(s!==void 0)throw H(`"asyncBeforeEach" can't be set when running synchronous properties`);if(o!==void 0)throw H(`"asyncAfterEach" can't be set when running synchronous properties`);this.beforeEachHook=r,this.afterEachHook=i}isAsync(){return!1}generate(t,n){const r=this.arb.generate(t,n!=null?kp(n):void 0);return Yn(r)}shrink(t){if(t.context===void 0&&!this.arb.canShrinkWithoutContext(t.value_))return z.nil();const n=t.context!==Ir?t.context:void 0;return this.arb.shrink(t.value_,n).map(Yn)}runBeforeEach(){this.beforeEachHook()}runAfterEach(){this.afterEachHook()}run(t,n){n||this.beforeEachHook();try{const r=this.predicate(t);return r==null||r===!0?null:{error:new H("Property failed by returning false"),errorMessage:"Error: Property failed by returning false"}}catch(r){return pt.isFailure(r)?r:r instanceof H&&r.stack?{error:r,errorMessage:r.stack}:{error:r,errorMessage:dn(r)}}finally{n||this.afterEachHook()}}beforeEach(t){const n=this.beforeEachHook;return this.beforeEachHook=()=>t(n),this}afterEach(t){const n=this.afterEachHook;return this.afterEachHook=()=>t(n),this}}Jn.dummyHook=()=>{};function Lr(...e){if(e.length<2)throw new Error("property expects at least two parameters");const t=Le(e,0,e.length-1),n=e[e.length-1];Tp(t,xp);const r=oe(t,i=>new jp(i));return new Jn(K(...r),i=>n(...i))}function Za(e,t){for(var n=0;n!=t;++n)e.unsafeNext()}function Fp(e,t){var n=e.clone();return Za(n,t),n}var vy=214013,My=2531011,Oy=4294967295,Ny=(1<<31)-1,Gs=function(e){return e*vy+My&Oy},Ks=function(e){return(e&Ny)>>16},Rp=(function(){function e(t){this.seed=t}return e.prototype.clone=function(){return new e(this.seed)},e.prototype.next=function(){var t=new e(this.seed),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=Gs(this.seed),n=Ks(t),r=Gs(t),i=Ks(r);this.seed=Gs(r);var s=Ks(this.seed),o=s+(i+(n<<15)<<15);return o|0},e.prototype.getState=function(){return[this.seed]},e})();function ky(e){var t=e.length===1;if(!t)throw new Error("The state must have been produced by a congruential32 RandomGenerator");return new Rp(e[0])}var Py=Object.assign(function(e){return new Rp(e)},{fromState:ky}),_y=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},jy=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},Dp=(function(){function e(t,n){this.states=t,this.index=n}return e.twist=function(t){for(var n=t.slice(),r=0;r!==e.N-e.M;++r){var i=(n[r]&e.MASK_UPPER)+(n[r+1]&e.MASK_LOWER);n[r]=n[r+e.M]^i>>>1^-(i&1)&e.A}for(var r=e.N-e.M;r!==e.N-1;++r){var s=(n[r]&e.MASK_UPPER)+(n[r+1]&e.MASK_LOWER);n[r]=n[r+e.M-e.N]^s>>>1^-(s&1)&e.A}var o=(n[e.N-1]&e.MASK_UPPER)+(n[0]&e.MASK_LOWER);return n[e.N-1]=n[e.M-1]^o>>>1^-(o&1)&e.A,n},e.seeded=function(t){var n=Array(e.N);n[0]=t;for(var r=1;r!==e.N;++r){var i=n[r-1]^n[r-1]>>>30;n[r]=Math.imul(e.F,i)+r|0}return n},e.from=function(t){return new e(e.twist(e.seeded(t)),0)},e.prototype.clone=function(){return new e(this.states,this.index)},e.prototype.next=function(){var t=new e(this.states,this.index),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=this.states[this.index];return t^=this.states[this.index]>>>e.U,t^=t<<e.S&e.B,t^=t<<e.T&e.C,t^=t>>>e.L,++this.index>=e.N&&(this.states=e.twist(this.states),this.index=0),t},e.prototype.getState=function(){return jy([this.index],_y(this.states),!1)},e.fromState=function(t){var n=t.length===e.N+1&&t[0]>=0&&t[0]<e.N;if(!n)throw new Error("The state must have been produced by a mersenne RandomGenerator");return new e(t.slice(1),t[0])},e.N=624,e.M=397,e.R=31,e.A=2567483615,e.F=1812433253,e.U=11,e.S=7,e.B=2636928640,e.T=15,e.C=4022730752,e.L=18,e.MASK_LOWER=Math.pow(2,e.R)-1,e.MASK_UPPER=Math.pow(2,e.R),e})();function Fy(e){return Dp.fromState(e)}const Ry=Object.assign(function(e){return Dp.from(e)},{fromState:Fy});var Lp=(function(){function e(t,n,r,i){this.s01=t,this.s00=n,this.s11=r,this.s10=i}return e.prototype.clone=function(){return new e(this.s01,this.s00,this.s11,this.s10)},e.prototype.next=function(){var t=new e(this.s01,this.s00,this.s11,this.s10),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=this.s00^this.s00<<23,n=this.s01^(this.s01<<23|this.s00>>>9),r=t^this.s10^(t>>>18|n<<14)^(this.s10>>>5|this.s11<<27),i=n^this.s11^n>>>18^this.s11>>>5,s=this.s00+this.s10|0;return this.s01=this.s11,this.s00=this.s10,this.s11=i,this.s10=r,s},e.prototype.jump=function(){var t=new e(this.s01,this.s00,this.s11,this.s10);return t.unsafeJump(),t},e.prototype.unsafeJump=function(){for(var t=0,n=0,r=0,i=0,s=[1667051007,2321340297,1548169110,304075285],o=0;o!==4;++o)for(var a=1;a;a<<=1)s[o]&a&&(t^=this.s01,n^=this.s00,r^=this.s11,i^=this.s10),this.unsafeNext();this.s01=t,this.s00=n,this.s11=r,this.s10=i},e.prototype.getState=function(){return[this.s01,this.s00,this.s11,this.s10]},e})();function Dy(e){var t=e.length===4;if(!t)throw new Error("The state must have been produced by a xorshift128plus RandomGenerator");return new Lp(e[0],e[1],e[2],e[3])}var Ly=Object.assign(function(e){return new Lp(-1,~e,e|0,0)},{fromState:Dy}),Bp=(function(){function e(t,n,r,i){this.s01=t,this.s00=n,this.s11=r,this.s10=i}return e.prototype.clone=function(){return new e(this.s01,this.s00,this.s11,this.s10)},e.prototype.next=function(){var t=new e(this.s01,this.s00,this.s11,this.s10),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=this.s00+this.s10|0,n=this.s10^this.s00,r=this.s11^this.s01,i=this.s00,s=this.s01;return this.s00=i<<24^s>>>8^n^n<<16,this.s01=s<<24^i>>>8^r^(r<<16|n>>>16),this.s10=r<<5^n>>>27,this.s11=n<<5^r>>>27,t},e.prototype.jump=function(){var t=new e(this.s01,this.s00,this.s11,this.s10);return t.unsafeJump(),t},e.prototype.unsafeJump=function(){for(var t=0,n=0,r=0,i=0,s=[3639956645,3750757012,1261568508,386426335],o=0;o!==4;++o)for(var a=1;a;a<<=1)s[o]&a&&(t^=this.s01,n^=this.s00,r^=this.s11,i^=this.s10),this.unsafeNext();this.s01=t,this.s00=n,this.s11=r,this.s10=i},e.prototype.getState=function(){return[this.s01,this.s00,this.s11,this.s10]},e})();function By(e){var t=e.length===4;if(!t)throw new Error("The state must have been produced by a xoroshiro128plus RandomGenerator");return new Bp(e[0],e[1],e[2],e[3])}var qy=Object.assign(function(e){return new Bp(-1,~e,e|0,0)},{fromState:By});function qp(e,t){if(e.sign!==t.sign)return Xa(e,{sign:-t.sign,data:t.data});for(var n=[],r=0,i=e.data,s=t.data,o=i.length-1,a=s.length-1;o>=0||a>=0;--o,--a){var c=o>=0?i[o]:0,u=a>=0?s[a]:0,l=c+u+r;n.push(l>>>0),r=~~(l/4294967296)}return r!==0&&n.push(r),{sign:e.sign,data:n.reverse()}}function Vy(e){e.sign=1;for(var t=e.data,n=t.length-1;n>=0;--n)if(t[n]===4294967295)t[n]=0;else return t[n]+=1,e;return t.unshift(1),e}function Uy(e,t){for(var n=Math.max(e.length,t.length),r=0;r<n;++r){var i=r+e.length-n,s=r+t.length-n,o=i>=0?e[i]:0,a=s>=0?t[s]:0;if(o<a)return!0;if(o>a)return!1}return!1}function Xa(e,t){if(e.sign!==t.sign)return qp(e,{sign:-t.sign,data:t.data});var n=e.data,r=t.data;if(Uy(n,r)){var i=Xa(t,e);return i.sign=-i.sign,i}for(var s=[],o=0,a=n.length-1,c=r.length-1;a>=0||c>=0;--a,--c){var u=a>=0?n[a]:0,l=c>=0?r[c]:0,f=u-l-o;s.push(f>>>0),o=f<0?1:0}return{sign:e.sign,data:s.reverse()}}function Vl(e){for(var t=e.data,n=0;n!==t.length&&t[n]===0;++n);return n===t.length?(e.sign=1,e.data=[0],e):(t.splice(0,n),e)}function Hs(e,t){if(t<0){var n=-t;e.sign=-1,e.data[0]=~~(n/4294967296),e.data[1]=n>>>0}else e.sign=1,e.data[0]=~~(t/4294967296),e.data[1]=t>>>0;return e}function zy(e,t,n){var r=t.data[1],i=t.data[0],s=t.sign,o=n.data[1],a=n.data[0],c=n.sign;if(e.sign=1,s===1&&c===-1){var u=r+o,l=i+a+(u>4294967295?1:0);return e.data[0]=l>>>0,e.data[1]=u>>>0,e}var f=r,h=i,d=o,m=a;s===-1&&(f=o,h=a,d=r,m=i);var p=0,b=f-d;return b<0&&(p=1,b=b>>>0),e.data[0]=h-m-p,e.data[1]=b,e}function Vp(e,t){for(var n=e>2?~~(4294967296/e)*e:4294967296,r=t.unsafeNext()+2147483648;r>=n;)r=t.unsafeNext()+2147483648;return r%e}function Up(e,t,n){for(var r=t.length;;){for(var i=0;i!==r;++i){var s=i===0?t[0]+1:4294967296,o=Vp(s,n);e[i]=o}for(var i=0;i!==r;++i){var a=e[i],c=t[i];if(a<c)return e;if(a>c)break}}}function zp(e,t,n){var r=Vl(Vy(Xa(t,e))),i=r.data.slice(0),s=Up(i,r.data,n);return Vl(qp({sign:1,data:s},e))}var lr=typeof BigInt<"u"?BigInt:void 0;function Wp(e,t,n){for(var r=t-e+lr(1),i=lr(-2147483648),s=lr(4294967296),o=s,a=1;o<r;)o*=s,++a;for(var c=o-o%r;;){for(var u=lr(0),l=0;l!==a;++l){var f=n.unsafeNext();u=s*u+(lr(f)-i)}if(u<c){var h=u%r;return h+e}}}var Wy=Number.MAX_SAFE_INTEGER,Gy={sign:1,data:[0,0]},Ky={sign:1,data:[0,0]},Ul={sign:1,data:[0,0]},Ys=[0,0];function Hy(e,t,n,r){var i=n<=Wy?Hs(Ul,n):zy(Ul,Hs(Gy,t),Hs(Ky,e));return i.data[1]===4294967295?(i.data[0]+=1,i.data[1]=0):i.data[1]+=1,Up(Ys,i.data,r),Ys[0]*4294967296+Ys[1]+e}function yi(e,t,n){var r=t-e;if(r<=4294967295){var i=Vp(r+1,n);return i+e}return Hy(e,t,r,n)}const fr=Object.freeze(Object.defineProperty({__proto__:null,congruential32:Py,mersenne:Ry,skipN:Fp,unsafeSkipN:Za,unsafeUniformArrayIntDistribution:zp,unsafeUniformBigIntDistribution:Wp,unsafeUniformIntDistribution:yi,xoroshiro128plus:qy,xorshift128plus:Ly},Symbol.toStringTag,{value:"Module"}));var De;(function(e){e[e.None=0]="None",e[e.Verbose=1]="Verbose",e[e.VeryVerbose=2]="VeryVerbose"})(De||(De={}));const Yy=Date.now,Jy=Math.min,Zy=Math.random;class Z{constructor(t){const n=t||{};this.seed=Z.readSeed(n),this.randomType=Z.readRandomType(n),this.numRuns=Z.readNumRuns(n),this.verbose=Z.readVerbose(n),this.maxSkipsPerRun=Z.readOrDefault(n,"maxSkipsPerRun",100),this.timeout=Z.safeTimeout(Z.readOrDefault(n,"timeout",null)),this.skipAllAfterTimeLimit=Z.safeTimeout(Z.readOrDefault(n,"skipAllAfterTimeLimit",null)),this.interruptAfterTimeLimit=Z.safeTimeout(Z.readOrDefault(n,"interruptAfterTimeLimit",null)),this.markInterruptAsFailure=Z.readBoolean(n,"markInterruptAsFailure"),this.skipEqualValues=Z.readBoolean(n,"skipEqualValues"),this.ignoreEqualValues=Z.readBoolean(n,"ignoreEqualValues"),this.logger=Z.readOrDefault(n,"logger",r=>{console.log(r)}),this.path=Z.readOrDefault(n,"path",""),this.unbiased=Z.readBoolean(n,"unbiased"),this.examples=Z.readOrDefault(n,"examples",[]),this.endOnFailure=Z.readBoolean(n,"endOnFailure"),this.reporter=Z.readOrDefault(n,"reporter",null),this.asyncReporter=Z.readOrDefault(n,"asyncReporter",null),this.errorWithCause=Z.readBoolean(n,"errorWithCause")}toParameters(){const t=r=>r!==null?r:void 0;return{seed:this.seed,randomType:this.randomType,numRuns:this.numRuns,maxSkipsPerRun:this.maxSkipsPerRun,timeout:t(this.timeout),skipAllAfterTimeLimit:t(this.skipAllAfterTimeLimit),interruptAfterTimeLimit:t(this.interruptAfterTimeLimit),markInterruptAsFailure:this.markInterruptAsFailure,skipEqualValues:this.skipEqualValues,ignoreEqualValues:this.ignoreEqualValues,path:this.path,logger:this.logger,unbiased:this.unbiased,verbose:this.verbose,examples:this.examples,endOnFailure:this.endOnFailure,reporter:t(this.reporter),asyncReporter:t(this.asyncReporter),errorWithCause:this.errorWithCause}}static read(t){return new Z(t)}}Z.createQualifiedRandomGenerator=e=>t=>{const n=e(t);return n.unsafeJump===void 0&&(n.unsafeJump=()=>Za(n,42)),n};Z.readSeed=e=>{if(e.seed==null)return Yy()^Zy()*4294967296;const t=e.seed|0;if(e.seed===t)return t;const n=e.seed-t;return t^n*4294967296};Z.readRandomType=e=>{if(e.randomType==null)return fr.xorshift128plus;if(typeof e.randomType=="string")switch(e.randomType){case"mersenne":return Z.createQualifiedRandomGenerator(fr.mersenne);case"congruential":case"congruential32":return Z.createQualifiedRandomGenerator(fr.congruential32);case"xorshift128plus":return fr.xorshift128plus;case"xoroshiro128plus":return fr.xoroshiro128plus;default:throw new Error(`Invalid random specified: '${e.randomType}'`)}const t=e.randomType(0);if("min"in t&&t.min!==-2147483648)throw new Error(`Invalid random number generator: min must equal -0x80000000, got ${String(t.min)}`);if("max"in t&&t.max!==2147483647)throw new Error(`Invalid random number generator: max must equal 0x7fffffff, got ${String(t.max)}`);return"unsafeJump"in t?e.randomType:Z.createQualifiedRandomGenerator(e.randomType)};Z.readNumRuns=e=>e.numRuns!=null?e.numRuns:e.num_runs!=null?e.num_runs:100;Z.readVerbose=e=>e.verbose==null?De.None:typeof e.verbose=="boolean"?e.verbose===!0?De.Verbose:De.None:e.verbose<=De.None?De.None:e.verbose>=De.VeryVerbose?De.VeryVerbose:e.verbose|0;Z.readBoolean=(e,t)=>e[t]===!0;Z.readOrDefault=(e,t,n)=>{const r=e[t];return r??n};Z.safeTimeout=e=>e===null?null:Jy(e,2147483647);function Xy(e,t,n){let r=null;const i=new Promise(s=>{r=t(()=>{const o=new pt(!0);s(o)},e)});return{clear:()=>n(r),promise:i}}class zl{constructor(t,n,r,i,s,o){this.property=t,this.getTime=n,this.interruptExecution=i,this.setTimeoutSafe=s,this.clearTimeoutSafe=o,this.skipAfterTime=this.getTime()+r,this.property.runBeforeEach!==void 0&&this.property.runAfterEach!==void 0&&(this.runBeforeEach=()=>this.property.runBeforeEach(),this.runAfterEach=()=>this.property.runAfterEach())}isAsync(){return this.property.isAsync()}generate(t,n){return this.property.generate(t,n)}shrink(t){return this.property.shrink(t)}run(t,n){const r=this.skipAfterTime-this.getTime();if(r<=0){const i=new pt(this.interruptExecution);return this.isAsync()?Promise.resolve(i):i}if(this.interruptExecution&&this.isAsync()){const i=Xy(r,this.setTimeoutSafe,this.clearTimeoutSafe),s=Promise.race([this.property.run(t,n),i.promise]);return s.then(i.clear,i.clear),s}return this.property.run(t,n)}}const Qy=(e,t,n)=>{let r=null;const i=new Promise(s=>{r=t(()=>{s({error:new H(`Property timeout: exceeded limit of ${e} milliseconds`),errorMessage:`Property timeout: exceeded limit of ${e} milliseconds`})},e)});return{clear:()=>n(r),promise:i}};class e1{constructor(t,n,r,i){this.property=t,this.timeMs=n,this.setTimeoutSafe=r,this.clearTimeoutSafe=i,this.property.runBeforeEach!==void 0&&this.property.runAfterEach!==void 0&&(this.runBeforeEach=()=>Promise.resolve(this.property.runBeforeEach()),this.runAfterEach=()=>Promise.resolve(this.property.runAfterEach()))}isAsync(){return!0}generate(t,n){return this.property.generate(t,n)}shrink(t){return this.property.shrink(t)}async run(t,n){const r=Qy(this.timeMs,this.setTimeoutSafe,this.clearTimeoutSafe),i=Promise.race([this.property.run(t,n),r.promise]);return i.then(r.clear,r.clear),i}}class Gp{constructor(t){this.property=t,this.property.runBeforeEach!==void 0&&this.property.runAfterEach!==void 0&&(this.runBeforeEach=()=>this.property.runBeforeEach(),this.runAfterEach=()=>this.property.runAfterEach())}isAsync(){return this.property.isAsync()}generate(t,n){return this.property.generate(t,void 0)}shrink(t){return this.property.shrink(t)}run(t,n){return this.property.run(t,n)}}const Wl=Array.from,Gl=typeof Buffer<"u"?Buffer.isBuffer:void 0,jn=JSON.stringify,Kl=Number.isNaN,t1=Object.keys,n1=Object.getOwnPropertySymbols,r1=Object.getOwnPropertyDescriptor,Hl=Object.getPrototypeOf,Yl=Number.NEGATIVE_INFINITY,i1=Number.POSITIVE_INFINITY,jt=Symbol.for("fast-check/toStringMethod");function is(e){return e!==null&&(typeof e=="object"||typeof e=="function")&&jt in e&&typeof e[jt]=="function"}const Ft=Symbol.for("fast-check/asyncToStringMethod");function ss(e){return e!==null&&(typeof e=="object"||typeof e=="function")&&Ft in e&&typeof e[Ft]=="function"}const s1=/^Symbol\((.*)\)$/;function o1(e){if(e.description!==void 0)return e.description;const t=s1.exec(dn(e));return t&&t[1].length?t[1]:null}function Jl(e){switch(e){case 0:return 1/e===Yl?"-0":"0";case Yl:return"Number.NEGATIVE_INFINITY";case i1:return"Number.POSITIVE_INFINITY";default:return e===e?dn(e):"Number.NaN"}}function a1(e){let t=-1;for(const n in e){const r=Number(n);if(r!==t+1)return!0;t=r}return t+1!==e.length}function ft(e,t,n){const r=[...t,e];if(typeof e=="object"&&zt(t,e)!==-1)return"[cyclic]";if(ss(e)){const i=n(e);if(i.state==="fulfilled")return i.value}if(is(e))try{return e[jt]()}catch{}switch(ql(e)){case"[object Array]":{const i=e;if(i.length>=50&&a1(i)){const o=[];for(const a in i)Kl(Number(a))||V(o,`${a}:${ft(i[a],r,n)}`);return o.length!==0?`Object.assign(Array(${i.length}),{${ge(o,",")}})`:`Array(${i.length})`}const s=ge(oe(i,o=>ft(o,r,n)),",");return i.length===0||i.length-1 in i?`[${s}]`:`[${s},]`}case"[object BigInt]":return`${e}n`;case"[object Boolean]":{const i=e==!0?"true":"false";return typeof e=="boolean"?i:`new Boolean(${i})`}case"[object Date]":{const i=e;return Kl(Pi(i))?"new Date(NaN)":`new Date(${jn(Zb(i))})`}case"[object Map]":return`new Map(${ft(Array.from(e),r,n)})`;case"[object Null]":return"null";case"[object Number]":return typeof e=="number"?Jl(e):`new Number(${Jl(Number(e))})`;case"[object Object]":{try{const a=e.toString;if(typeof a=="function"&&a!==Object.prototype.toString)return e.toString()}catch{return"[object Object]"}const i=a=>`${a==="__proto__"?'["__proto__"]':typeof a=="symbol"?`[${ft(a,r,n)}]`:jn(a)}:${ft(e[a],r,n)}`,s=[...oe(t1(e),i),...oe(Hb(n1(e),a=>{const c=r1(e,a);return c&&c.enumerable}),i)],o="{"+ge(s,",")+"}";return Hl(e)===null?o==="{}"?"Object.create(null)":`Object.assign(Object.create(null),${o})`:o}case"[object Set]":return`new Set(${ft(Array.from(e),r,n)})`;case"[object String]":return typeof e=="string"?jn(e):`new String(${jn(e)})`;case"[object Symbol]":{const i=e;if(bi.keyFor(i)!==void 0)return`Symbol.for(${jn(bi.keyFor(i))})`;const s=o1(i);if(s===null)return"Symbol()";const o=s.startsWith("Symbol.")&&bi[s.substring(7)];return i===o?s:`Symbol(${jn(s)})`}case"[object Promise]":{const i=n(e);switch(i.state){case"fulfilled":return`Promise.resolve(${ft(i.value,r,n)})`;case"rejected":return`Promise.reject(${ft(i.value,r,n)})`;case"pending":return"new Promise(() => {/*pending*/})";case"unknown":default:return"new Promise(() => {/*unknown*/})"}}case"[object Error]":if(e instanceof Error)return`new Error(${ft(e.message,r,n)})`;break;case"[object Undefined]":return"undefined";case"[object Int8Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Int16Array]":case"[object Uint16Array]":case"[object Int32Array]":case"[object Uint32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object BigInt64Array]":case"[object BigUint64Array]":{if(typeof Gl=="function"&&Gl(e))return`Buffer.from(${ft(Wl(e.values()),r,n)})`;const i=Hl(e),s=i&&i.constructor&&i.constructor.name;if(typeof s=="string"){const a=e.values();return`${s}.from(${ft(Wl(a),r,n)})`}break}}try{return e.toString()}catch{return ql(e)}}function Ce(e){return ft(e,[],()=>({state:"unknown",value:void 0}))}function Kp(e){const t=bi(),n=[],r=new Dr;function i(){let c=null;const u=()=>{c!==null&&clearTimeout(c)};return{delay:new Promise(f=>{c=setTimeout(()=>{c=null,f(t)},0)}),cancel:u}}const s={state:"unknown",value:void 0},o=function(u){const l=u;if(r.has(l))return r.get(l);const f=i(),h=Ft in u?Promise.resolve().then(()=>u[Ft]()):u;return h.catch(()=>{}),n.push(Promise.race([h,f.delay]).then(d=>{d===t?r.set(l,{state:"pending",value:void 0}):r.set(l,{state:"fulfilled",value:d}),f.cancel()},d=>{r.set(l,{state:"rejected",value:d}),f.cancel()})),r.set(l,s),s};function a(){const c=ft(e,[],o);return n.length===0?c:Promise.all(n.splice(0)).then(a)}return a()}async function os(e){return Promise.resolve(Kp(e))}function Zl(e){return e===null?new pt:e}function c1(...e){return e[1]?e[0].then(Zl):Zl(e[0])}function u1(e,t){return c1(e,t)}class Xl{constructor(t,n){this.property=t,this.skipRuns=n,this.coveredCases=new Map,this.property.runBeforeEach!==void 0&&this.property.runAfterEach!==void 0&&(this.runBeforeEach=()=>this.property.runBeforeEach(),this.runAfterEach=()=>this.property.runAfterEach())}isAsync(){return this.property.isAsync()}generate(t,n){return this.property.generate(t,n)}shrink(t){return this.property.shrink(t)}run(t,n){const r=Ce(t);if(this.coveredCases.has(r)){const s=this.coveredCases.get(r);return this.skipRuns?u1(s,this.property.isAsync()):s}const i=this.property.run(t,n);return this.coveredCases.set(r,i),i}}const Ql=Date.now,Js=setTimeout,Zs=clearTimeout;function l1(e,t){let n=e;return e.isAsync()&&t.timeout!=null&&(n=new e1(n,t.timeout,Js,Zs)),t.unbiased&&(n=new Gp(n)),t.skipAllAfterTimeLimit!=null&&(n=new zl(n,Ql,t.skipAllAfterTimeLimit,!1,Js,Zs)),t.interruptAfterTimeLimit!=null&&(n=new zl(n,Ql,t.interruptAfterTimeLimit,!0,Js,Zs)),t.skipEqualValues&&(n=new Xl(n,!0)),t.ignoreEqualValues&&(n=new Xl(n,!1)),n}var Nt;(function(e){e[e.Success=0]="Success",e[e.Skipped=-1]="Skipped",e[e.Failure=1]="Failure"})(Nt||(Nt={}));class as{constructor(t,n){this.verbosity=t,this.interruptedAsFailure=n,this.isSuccess=()=>this.pathToFailure==null,this.firstFailure=()=>this.pathToFailure?+Ze(this.pathToFailure,":")[0]:-1,this.numShrinks=()=>this.pathToFailure?Ze(this.pathToFailure,":").length-1:0,this.rootExecutionTrees=[],this.currentLevelExecutionTrees=this.rootExecutionTrees,this.failure=null,this.numSkips=0,this.numSuccesses=0,this.interrupted=!1}appendExecutionTree(t,n){const r={status:t,value:n,children:[]};return this.currentLevelExecutionTrees.push(r),r}fail(t,n,r){if(this.verbosity>=De.Verbose){const i=this.appendExecutionTree(Nt.Failure,t);this.currentLevelExecutionTrees=i.children}this.pathToFailure==null?this.pathToFailure=`${n}`:this.pathToFailure+=`:${n}`,this.value=t,this.failure=r}skip(t){this.verbosity>=De.VeryVerbose&&this.appendExecutionTree(Nt.Skipped,t),this.pathToFailure==null&&++this.numSkips}success(t){this.verbosity>=De.VeryVerbose&&this.appendExecutionTree(Nt.Success,t),this.pathToFailure==null&&++this.numSuccesses}interrupt(){this.interrupted=!0}extractFailures(){if(this.isSuccess())return[];const t=[];let n=this.rootExecutionTrees;for(;n.length>0&&n[n.length-1].status===Nt.Failure;){const r=n[n.length-1];t.push(r.value),n=r.children}return t}toRunDetails(t,n,r,i){if(!this.isSuccess())return{failed:!0,interrupted:this.interrupted,numRuns:this.firstFailure()+1-this.numSkips,numSkips:this.numSkips,numShrinks:this.numShrinks(),seed:t,counterexample:this.value,counterexamplePath:as.mergePaths(n,this.pathToFailure),error:this.failure.errorMessage,errorInstance:this.failure.error,failures:this.extractFailures(),executionSummary:this.rootExecutionTrees,verbose:this.verbosity,runConfiguration:i.toParameters()};const s=this.interruptedAsFailure||this.numSuccesses===0;return{failed:this.numSkips>r||this.interrupted&&s,interrupted:this.interrupted,numRuns:this.numSuccesses,numSkips:this.numSkips,numShrinks:0,seed:t,counterexample:null,counterexamplePath:null,error:null,errorInstance:null,failures:[],executionSummary:this.rootExecutionTrees,verbose:this.verbosity,runConfiguration:i.toParameters()}}}as.mergePaths=(e,t)=>{if(e.length===0)return t;const n=e.split(":"),r=t.split(":"),i=+n[n.length-1]+ +r[0];return[...n.slice(0,n.length-1),`${i}`,...r.slice(1)].join(":")};class Hp{constructor(t,n,r,i){this.sourceValues=t,this.shrink=n,this.runExecution=new as(r,i),this.currentIdx=-1,this.nextValues=t}[Symbol.iterator](){return this}next(){const t=this.nextValues.next();return t.done||this.runExecution.interrupted?{done:!0,value:void 0}:(this.currentValue=t.value,++this.currentIdx,{done:!1,value:t.value.value_})}handleResult(t){t!=null&&typeof t=="object"&&!pt.isFailure(t)?(this.runExecution.fail(this.currentValue.value_,this.currentIdx,t),this.currentIdx=-1,this.nextValues=this.shrink(this.currentValue)):t!=null?t.interruptExecution?this.runExecution.interrupt():(this.runExecution.skip(this.currentValue.value_),this.sourceValues.skippedOne()):this.runExecution.success(this.currentValue.value_)}}class f1{constructor(t,n,r){this.initialValues=t,this.maxInitialIterations=n,this.remainingSkips=r}[Symbol.iterator](){return this}next(){if(--this.maxInitialIterations!==-1&&this.remainingSkips>=0){const t=this.initialValues.next();if(!t.done)return{value:t.value,done:!1}}return{value:void 0,done:!0}}skippedOne(){--this.remainingSkips,++this.maxInitialIterations}}class ot{constructor(t){this.internalRng=t.clone()}clone(){return new ot(this.internalRng)}next(t){return yi(0,(1<<t)-1,this.internalRng)}nextBoolean(){return yi(0,1,this.internalRng)==1}nextInt(t,n){return yi(t??ot.MIN_INT,n??ot.MAX_INT,this.internalRng)}nextBigInt(t,n){return Wp(t,n,this.internalRng)}nextArrayInt(t,n){return zp(t,n,this.internalRng)}nextDouble(){const t=this.next(26),n=this.next(27);return(t*ot.DBL_FACTOR+n)*ot.DBL_DIVISOR}getState(){if("getState"in this.internalRng&&typeof this.internalRng.getState=="function")return this.internalRng.getState()}}ot.MIN_INT=-2147483648;ot.MAX_INT=2147483647;ot.DBL_FACTOR=Math.pow(2,27);ot.DBL_DIVISOR=Math.pow(2,-53);function h1(e,t,n){return t.unsafeJump(),e.generate(new ot(t),n)}function*Yp(e,t,n,r){for(let i=0;i!==r.length;++i)yield new F(r[i],void 0);for(let i=0,s=n(t);;++i)yield h1(e,s,i)}function d1(e,t,n){return()=>e.generate(new ot(t),n)}function*Jp(e,t,n,r){yield*oe(r,o=>()=>new F(o,void 0));let i=0,s=n(t);for(;;)s=s.jump?s.jump():Fp(s,42),yield d1(e,s,i++)}function ef(e){return e()}function Zp(e,t,n){const r=t,i=e.split(":").map(o=>+o);if(i.length===0)return r.map(ef);if(!i.every(o=>!Number.isNaN(o)))throw new Error(`Unable to replay, got invalid path=${e}`);let s=r.drop(i[0]).map(ef);for(const o of i.slice(1)){const a=s.getNthOrLast(0);if(a===null)throw new Error(`Unable to replay, got wrong path=${e}`);s=n(a).drop(o)}return s}const p1=Object.assign;function m1(e){return e.length===1?`Hint: ${e[0]}`:e.map((t,n)=>`Hint (${n+1}): ${t}`).join(`
2
+ `)}function g1(e,t){return`Encountered failures were:
3
+ - ${e.map(t).join(`
4
+ - `)}`}function Qa(e,t){const n=[],r=[];for(const i of e.slice().reverse())r.push({depth:1,tree:i});for(;r.length!==0;){const i=r.pop(),s=i.tree,o=i.depth,a=s.status===Nt.Success?"\x1B[32m√\x1B[0m":s.status===Nt.Failure?"\x1B[31m×\x1B[0m":"\x1B[33m!\x1B[0m",c=Array(o).join(". ");n.push(`${c}${a} ${t(s.value)}`);for(const u of s.children.slice().reverse())r.push({depth:o+1,tree:u})}return`Execution summary:
5
+ ${n.join(`
6
+ `)}`}function x1(e,t){const n=`Failed to run property, too many pre-condition failures encountered
7
+ { seed: ${e.seed} }
8
+
9
+ Ran ${e.numRuns} time(s)
10
+ Skipped ${e.numSkips} time(s)`;let r=null;const i=["Try to reduce the number of rejected values by combining map, flatMap and built-in arbitraries","Increase failure tolerance by setting maxSkipsPerRun to an higher value"];return e.verbose>=De.VeryVerbose?r=Qa(e.executionSummary,t):V(i,"Enable verbose mode at level VeryVerbose in order to check all generated values and their associated status"),{message:n,details:r,hints:i}}function b1(e,t){const r=e.runConfiguration.errorWithCause?"":`
11
+ Got ${wy(e.error,/^Error: /,"error: ")}`,i=`Property failed after ${e.numRuns} tests
12
+ { seed: ${e.seed}, path: "${e.counterexamplePath}", endOnFailure: true }
13
+ Counterexample: ${t(e.counterexample)}
14
+ Shrunk ${e.numShrinks} time(s)${r}`;let s=null;const o=[];return e.verbose>=De.VeryVerbose?s=Qa(e.executionSummary,t):e.verbose===De.Verbose?s=g1(e.failures,t):V(o,"Enable verbose mode in order to have the list of all failing values encountered during the run"),{message:i,details:s,hints:o}}function y1(e,t){const n=`Property interrupted after ${e.numRuns} tests
15
+ { seed: ${e.seed} }`;let r=null;const i=[];return e.verbose>=De.VeryVerbose?r=Qa(e.executionSummary,t):V(i,"Enable verbose mode at level VeryVerbose in order to check all generated values and their associated status"),{message:n,details:r,hints:i}}function ra(e,t){if(!e.failed)return;const{message:n,details:r,hints:i}=e.counterexamplePath===null?e.interrupted?y1(e,t):x1(e,t):b1(e,t);let s=n;return r!=null&&(s+=`
16
+
17
+ ${r}`),i.length>0&&(s+=`
18
+
19
+ ${m1(i)}`),s}function ec(e){return ra(e,Ce)}async function tc(e){const t=[];function n(o){const a=Kp(o);return typeof a=="string"?a:(t.push(Promise.all([o,a])),"…")}const r=ra(e,n);if(t.length===0)return r;const i=new Dr(await Promise.all(t));function s(o){const a=un(i,o);return a!==void 0?a:Ce(o)}return ra(e,s)}function Xp(e,t){if(!t.runConfiguration.errorWithCause)throw new H(e);const n=H,r=new n(e,{cause:t.errorInstance});return"cause"in r||p1(r,{cause:t.errorInstance}),r}function w1(e){if(e.failed)throw Xp(ec(e),e)}async function S1(e){if(e.failed)throw Xp(await tc(e),e)}function E1(e){return e.runConfiguration.asyncReporter?e.runConfiguration.asyncReporter(e):e.runConfiguration.reporter?e.runConfiguration.reporter(e):w1(e)}async function T1(e){return e.runConfiguration.asyncReporter?e.runConfiguration.asyncReporter(e):e.runConfiguration.reporter?e.runConfiguration.reporter(e):S1(e)}const tf=Object.assign;function A1(e,t,n,r,i){const s=e.runBeforeEach!==void 0&&e.runAfterEach!==void 0,o=new Hp(n,t,r,i);for(const a of o){s&&e.runBeforeEach();const c=e.run(a,s);s&&e.runAfterEach(),o.handleResult(c)}return o.runExecution}async function I1(e,t,n,r,i){const s=e.runBeforeEach!==void 0&&e.runAfterEach!==void 0,o=new Hp(n,t,r,i);for(const a of o){s&&await e.runBeforeEach();const c=await e.run(a,s);s&&await e.runAfterEach(),o.handleResult(c)}return o.runExecution}function cs(e,t){if(e==null||e.generate==null)throw new Error("Invalid property encountered, please use a valid property");if(e.run==null)throw new Error("Invalid property encountered, please use a valid property not an arbitrary");const n=Z.read(tf(tf({},gt()),t));if(n.reporter!==null&&n.asyncReporter!==null)throw new Error("Invalid parameters encountered, reporter and asyncReporter cannot be specified together");if(n.asyncReporter!==null&&!e.isAsync())throw new Error("Invalid parameters encountered, only asyncProperty can be used when asyncReporter specified");const r=l1(e,n),i=n.path.length===0||n.path.indexOf(":")===-1?n.numRuns:-1,s=n.numRuns*n.maxSkipsPerRun,o=(...l)=>r.shrink(...l),a=n.path.length===0?Yp(r,n.seed,n.randomType,n.examples):Zp(n.path,_t(Jp(r,n.seed,n.randomType,n.examples)),o),c=new f1(a,i,s),u=n.endOnFailure?z.nil:o;return r.isAsync()?I1(r,u,c,n.verbose,n.markInterruptAsFailure).then(l=>l.toRunDetails(n.seed,n.path,s,n)):A1(r,u,c,n.verbose,n.markInterruptAsFailure).toRunDetails(n.seed,n.path,s,n)}function Br(e,t){const n=cs(e,t);if(e.isAsync())return n.then(T1);E1(n)}function $1(e,t){const n=Object.prototype.hasOwnProperty.call(e,"isAsync")?e:new Jn(e,()=>!0);return t.unbiased===!0?new Gp(n):n}function Qp(e,t){const n=typeof t=="number"?Object.assign(Object.assign({},gt()),{numRuns:t}):Object.assign(Object.assign({},gt()),t),r=Z.read(n),i=$1(e,r),s=i.shrink.bind(i);return(r.path.length===0?_t(Yp(i,r.seed,r.randomType,r.examples)):Zp(r.path,_t(Jp(i,r.seed,r.randomType,r.examples)),s)).take(r.numRuns).map(a=>a.value_)}function e0(e,t){return[...Qp(e,t)]}function C1(e){return(Math.round(e*100)/100).toFixed(2)}function t0(e,t,n){const r=typeof n=="number"?Object.assign(Object.assign({},gt()),{numRuns:n}):Object.assign(Object.assign({},gt()),n),i=Z.read(r),s={};for(const u of Qp(e,n)){const l=t(u),f=Array.isArray(l)?l:[l];for(const h of f)s[h]=(s[h]||0)+1}const o=Object.entries(s).sort((u,l)=>l[1]-u[1]).map(u=>[u[0],`${C1(u[1]*100/i.numRuns)}%`]),a=o.map(u=>u[0].length).reduce((u,l)=>Math.max(u,l),0),c=o.map(u=>u[1].length).reduce((u,l)=>Math.max(u,l),0);for(const u of o)i.logger(`${u[0].padEnd(a,".")}..${u[1].padStart(c,".")}`)}const v1=Object.assign;function ia(e,t,n,r){const i=n();let s=e.clone();const o={mrng:e.clone(),biasFactor:t,history:[]},a=f=>{const h=i[o.history.length];if(h!==void 0&&h.arb===f){const m=h.value;return V(o.history,{arb:f,value:m,context:h.context,mrng:h.mrng}),s=h.mrng.clone(),m}const d=f.generate(s,t);return V(o.history,{arb:f,value:d.value_,context:d.context,mrng:s.clone()}),d.value},c=(f,...h)=>a(r(f,h)),u={values(){return oe(o.history,f=>f.value)},[Pe](){return ia(e,t,n,r).value},[jt](){return Ce(oe(o.history,f=>f.value))}},l=v1(c,u);return new F(l,o)}const Xs=Array.isArray,nf=Object.keys,M1=Object.is;function O1(e){const t=new Dr;return function(r,i){const s=un(t,r);if(s===void 0){const c=r(...i);return An(t,r,[{args:i,value:c}]),c}const o=s;for(const c of o)if(e(i,c.args))return c.value;const a=r(...i);return V(o,{args:i,value:a}),a}}function n0(e,t){if(e!==null&&typeof e=="object"&&t!==null&&typeof t=="object"){if(Xs(e)){if(!Xs(t)||e.length!==t.length)return!1}else if(Xs(t))return!1;if(nf(e).length!==nf(t).length)return!1;for(const n in e)if(!(n in t)||!n0(e[n],t[n]))return!1;return!0}else return M1(e,t)}class N1 extends xe{constructor(){super(...arguments),this.arbitraryCache=O1(n0)}generate(t,n){return ia(t,n,()=>[],this.arbitraryCache)}canShrinkWithoutContext(t){return!1}shrink(t,n){if(n===void 0)return z.nil();const r=n,i=r.mrng,s=r.biasFactor,o=r.history;return Np(o.map(a=>a.arb),o.map(a=>a.value),o.map(a=>a.context)).map(a=>{function c(){const u=a.value,l=a.context;return oe(o,(f,h)=>({arb:f.arb,value:u[h],context:l[h],mrng:f.mrng}))}return ia(i,s,c,this.arbitraryCache)})}}function r0(){return new N1}const k1=Math.floor,rf=Math.log;function P1(e){return k1(rf(e)/rf(2))}function _1(e){return e===B(0)?B(0):B(dn(e).length)}function i0(e,t,n){if(e===t)return[{min:e,max:t}];if(e<0&&t>0){const o=n(-e),a=n(t);return[{min:-o,max:a},{min:t-a,max:t},{min:e,max:e+o}]}const r=n(t-e),i={min:e,max:e+r},s={min:t-r,max:t};return e<0?[s,i]:[i,s]}const j1=Math.ceil,F1=Math.floor;function sf(e){return F1(e/2)}function of(e){return j1(e/2)}function af(e,t,n){const r=e-t;function*i(){let o=n?void 0:t;const a=n?r:sf(r);for(let c=a;c>0;c=sf(c)){const u=c===r?t:e-c;yield new F(u,o),o=u}}function*s(){let o=n?void 0:t;const a=n?r:of(r);for(let c=a;c<0;c=of(c)){const u=c===r?t:e-c;yield new F(u,o),o=u}}return r>0?_t(i()):_t(s())}const cf=Math.sign,R1=Number.isInteger,D1=Object.is;class ln extends xe{constructor(t,n){super(),this.min=t,this.max=n}generate(t,n){const r=this.computeGenerateRange(t,n);return new F(t.nextInt(r.min,r.max),void 0)}canShrinkWithoutContext(t){return typeof t=="number"&&R1(t)&&!D1(t,-0)&&this.min<=t&&t<=this.max}shrink(t,n){if(!ln.isValidContext(t,n)){const r=this.defaultTarget();return af(t,r,!0)}return this.isLastChanceTry(t,n)?z.of(new F(n,void 0)):af(t,n,!1)}defaultTarget(){return this.min<=0&&this.max>=0?0:this.min<0?this.max:this.min}computeGenerateRange(t,n){if(n===void 0||t.nextInt(1,n)!==1)return{min:this.min,max:this.max};const r=i0(this.min,this.max,P1);if(r.length===1)return r[0];const i=t.nextInt(-2*(r.length-1),r.length-2);return i<0?r[0]:r[i+1]}isLastChanceTry(t,n){return t>0?t===n+1&&t>this.min:t<0?t===n-1&&t<this.max:!1}static isValidContext(t,n){if(n===void 0)return!1;if(typeof n!="number")throw new Error("Invalid context type passed to IntegerArbitrary (#1)");if(n!==0&&cf(t)!==cf(n))throw new Error("Invalid context value passed to IntegerArbitrary (#2)");return!0}}const uf=Number.isInteger;function L1(e){const t=e.min!==void 0?e.min:-2147483648,n=e.max!==void 0?e.max:2147483647;return{min:t,max:n}}function G(e={}){const t=L1(e);if(t.min>t.max)throw new Error("fc.integer maximum value should be equal or greater than the minimum one");if(!uf(t.min))throw new Error("fc.integer minimum value should be an integer");if(!uf(t.max))throw new Error("fc.integer maximum value should be an integer");return new ln(t.min,t.max)}const lf=new Map;function us(e){if(e===void 0)return{depth:0};if(typeof e!="string")return e;const t=un(lf,e);if(t!==void 0)return t;const n={depth:0};return An(lf,e,n),n}function nc(){return{depth:0}}class B1{constructor(t,n,r){this.arb=t,this.mrng=n,this.biasFactor=r}attemptExact(){}next(){return this.arb.generate(this.mrng,this.biasFactor)}}const q1=Math.min,V1=Math.max;class U1{constructor(t,n,r,i){this.arb=t,this.mrng=n,this.slices=r,this.biasFactor=i,this.activeSliceIndex=0,this.nextIndexInSlice=0,this.lastIndexInSlice=-1}attemptExact(t){if(t!==0&&this.mrng.nextInt(1,this.biasFactor)===1){const n=[];for(let r=0;r!==this.slices.length;++r)this.slices[r].length===t&&V(n,r);if(n.length===0)return;this.activeSliceIndex=n[this.mrng.nextInt(0,n.length-1)],this.nextIndexInSlice=0,this.lastIndexInSlice=t-1}}next(){if(this.nextIndexInSlice<=this.lastIndexInSlice)return new F(this.slices[this.activeSliceIndex][this.nextIndexInSlice++],void 0);if(this.mrng.nextInt(1,this.biasFactor)!==1)return this.arb.generate(this.mrng,this.biasFactor);this.activeSliceIndex=this.mrng.nextInt(0,this.slices.length-1);const t=this.slices[this.activeSliceIndex];if(this.mrng.nextInt(1,this.biasFactor)!==1)return this.nextIndexInSlice=1,this.lastIndexInSlice=t.length-1,new F(t[0],void 0);const n=this.mrng.nextInt(0,t.length-1),r=this.mrng.nextInt(0,t.length-1);return this.nextIndexInSlice=q1(n,r),this.lastIndexInSlice=V1(n,r),new F(t[this.nextIndexInSlice++],void 0)}}function ff(e,t,n,r){return r===void 0||n.length===0||t.nextInt(1,r)!==1?new B1(e,t,r):new U1(e,t,n,r)}const z1=Math.floor,hf=Math.log,df=Math.max,W1=Array.isArray;function Qs(e,t){return e===t?e:e+z1(hf(t-e)/hf(2))}class ls extends xe{constructor(t,n,r,i,s,o,a){super(),this.arb=t,this.minLength=n,this.maxGeneratedLength=r,this.maxLength=i,this.setBuilder=o,this.customSlices=a,this.lengthArb=G({min:n,max:r}),this.depthContext=us(s)}preFilter(t){if(this.setBuilder===void 0)return t;const n=this.setBuilder();for(let r=0;r!==t.length;++r)n.tryAdd(t[r]);return n.getData()}static makeItCloneable(t,n){return t[Pe]=()=>{const r=[];for(let i=0;i!==n.length;++i)V(r,n[i].value);return this.makeItCloneable(r,n),r},t}generateNItemsNoDuplicates(t,n,r,i){let s=0;const o=t(),a=ff(this.arb,r,this.customSlices,i);for(;o.size()<n&&s<this.maxGeneratedLength;){const c=a.next();o.tryAdd(c)?s=0:s+=1}return o.getData()}safeGenerateNItemsNoDuplicates(t,n,r,i){const s=df(0,n-Qs(this.minLength,this.maxGeneratedLength));this.depthContext.depth+=s;try{return this.generateNItemsNoDuplicates(t,n,r,i)}finally{this.depthContext.depth-=s}}generateNItems(t,n,r){const i=[],s=ff(this.arb,n,this.customSlices,r);s.attemptExact(t);for(let o=0;o!==t;++o){const a=s.next();V(i,a)}return i}safeGenerateNItems(t,n,r){const i=df(0,t-Qs(this.minLength,this.maxGeneratedLength));this.depthContext.depth+=i;try{return this.generateNItems(t,n,r)}finally{this.depthContext.depth-=i}}wrapper(t,n,r,i){const s=n?this.preFilter(t):t;let o=!1;const a=[],c=[];for(let l=0;l!==s.length;++l){const f=s[l];o=o||f.hasToBeCloned,V(a,f.value),V(c,f.context)}o&&ls.makeItCloneable(a,s);const u={shrunkOnce:n,lengthContext:t.length===s.length&&r!==void 0?r:void 0,itemsContexts:c,startIndex:i};return new F(a,u)}generate(t,n){const r=this.applyBias(t,n),i=r.size,s=this.setBuilder!==void 0?this.safeGenerateNItemsNoDuplicates(this.setBuilder,i,t,r.biasFactorItems):this.safeGenerateNItems(i,t,r.biasFactorItems);return this.wrapper(s,!1,void 0,0)}applyBias(t,n){if(n===void 0)return{size:this.lengthArb.generate(t,void 0).value};if(this.minLength===this.maxGeneratedLength)return{size:this.lengthArb.generate(t,void 0).value,biasFactorItems:n};if(t.nextInt(1,n)!==1)return{size:this.lengthArb.generate(t,void 0).value};if(t.nextInt(1,n)!==1||this.minLength===this.maxGeneratedLength)return{size:this.lengthArb.generate(t,void 0).value,biasFactorItems:n};const r=Qs(this.minLength,this.maxGeneratedLength);return{size:G({min:this.minLength,max:r}).generate(t,void 0).value,biasFactorItems:n}}canShrinkWithoutContext(t){if(!W1(t)||this.minLength>t.length||t.length>this.maxLength)return!1;for(let r=0;r!==t.length;++r)if(!(r in t)||!this.arb.canShrinkWithoutContext(t[r]))return!1;return this.preFilter(oe(t,r=>new F(r,void 0))).length===t.length}shrinkItemByItem(t,n,r){const i=[];for(let s=n.startIndex;s<r;++s)V(i,on(()=>this.arb.shrink(t[s],n.itemsContexts[s]).map(o=>{const a=oe(Le(t,0,s),(u,l)=>new F(wn(u),n.itemsContexts[l])),c=oe(Le(t,s+1),(u,l)=>new F(wn(u),n.itemsContexts[l+s+1]));return[[...a,o,...c],void 0,s]})));return z.nil().join(...i)}shrinkImpl(t,n){if(t.length===0)return z.nil();const r=n!==void 0?n:{shrunkOnce:!1,lengthContext:void 0,itemsContexts:[],startIndex:0};return this.lengthArb.shrink(t.length,r.lengthContext).drop(r.shrunkOnce&&r.lengthContext===void 0&&t.length>this.minLength+1?1:0).map(i=>{const s=t.length-i.value;return[oe(Le(t,s),(o,a)=>new F(wn(o),r.itemsContexts[a+s])),i.context,0]}).join(on(()=>t.length>this.minLength?this.shrinkItemByItem(t,r,1):this.shrinkItemByItem(t,r,t.length))).join(t.length>this.minLength?on(()=>{const i={shrunkOnce:!1,lengthContext:void 0,itemsContexts:Le(r.itemsContexts,1),startIndex:0};return this.shrinkImpl(Le(t,1),i).filter(s=>this.minLength<=s[0].length+1).map(s=>[[new F(wn(t[0]),r.itemsContexts[0]),...s[0]],void 0,0])}):z.nil())}shrink(t,n){return this.shrinkImpl(t,n).map(r=>this.wrapper(r[0],!0,r[1],r[2]))}}const G1=Math.floor,K1=Math.min,vn=2147483647,Fn=["xsmall","small","medium","large","xlarge"],H1=["-4","-3","-2","-1","=","+1","+2","+3","+4"],rc="small";function Y1(e,t){switch(t){case"xsmall":return G1(1.1*e)+1;case"small":return 2*e+10;case"medium":return 11*e+100;case"large":return 101*e+1e3;case"xlarge":return 1001*e+1e4;default:throw new Error(`Unable to compute lengths based on received size: ${t}`)}}function qr(e,t){const n=zt(H1,e);if(n===-1)return e;const r=zt(Fn,t);if(r===-1)throw new Error(`Unable to offset size based on the unknown defaulted one: ${t}`);const i=r+n-4;return i<0?Fn[0]:i>=Fn.length?Fn[Fn.length-1]:Fn[i]}function Cr(e,t,n,r){const{baseSize:i=rc,defaultSizeToMaxWhenMaxSpecified:s}=gt()||{},o=e!==void 0?e:r&&s?"max":i;if(o==="max")return n;const a=qr(o,i);return K1(Y1(t,a),n)}function J1(e,t){if(typeof e=="number")return 1/e;const{baseSize:n=rc,defaultSizeToMaxWhenMaxSpecified:r}=gt()||{},i=e!==void 0?e:t&&r?"max":n;if(i==="max")return 0;switch(qr(i,n)){case"xsmall":return 1;case"small":return .5;case"medium":return .25;case"large":return .125;case"xlarge":return .0625}}function ic(e){const{baseSize:t=rc}=gt()||{};return e===void 0?t:qr(e,t)}function X(e,t={}){const n=t.size,r=t.minLength||0,i=t.maxLength,s=t.depthIdentifier,o=i!==void 0?i:vn,c=Cr(n,r,o,i!==void 0),u=t.experimentalCustomSlices||[];return new ls(e,r,c,o,s,void 0,u)}function ti(e){return e/B(2)}function pf(e,t,n){const r=e-t;function*i(){let o=n?void 0:t;const a=n?r:ti(r);for(let c=a;c>0;c=ti(c)){const u=e-c;yield new F(u,o),o=u}}function*s(){let o=n?void 0:t;const a=n?r:ti(r);for(let c=a;c<0;c=ti(c)){const u=e-c;yield new F(u,o),o=u}}return r>0?_t(i()):_t(s())}class tr extends xe{constructor(t,n){super(),this.min=t,this.max=n}generate(t,n){const r=this.computeGenerateRange(t,n);return new F(t.nextBigInt(r.min,r.max),void 0)}computeGenerateRange(t,n){if(n===void 0||t.nextInt(1,n)!==1)return{min:this.min,max:this.max};const r=i0(this.min,this.max,_1);if(r.length===1)return r[0];const i=t.nextInt(-2*(r.length-1),r.length-2);return i<0?r[0]:r[i+1]}canShrinkWithoutContext(t){return typeof t=="bigint"&&this.min<=t&&t<=this.max}shrink(t,n){if(!tr.isValidContext(t,n)){const r=this.defaultTarget();return pf(t,r,!0)}return this.isLastChanceTry(t,n)?z.of(new F(n,void 0)):pf(t,n,!1)}defaultTarget(){return this.min<=0&&this.max>=0?B(0):this.min<0?this.max:this.min}isLastChanceTry(t,n){return t>0?t===n+B(1)&&t>this.min:t<0?t===n-B(1)&&t<this.max:!1}static isValidContext(t,n){if(n===void 0)return!1;if(typeof n!="bigint")throw new Error("Invalid context type passed to BigIntArbitrary (#1)");const r=t>0&&n<0||t<0&&n>0;if(n!==B(0)&&r)throw new Error("Invalid context value passed to BigIntArbitrary (#2)");return!0}}function Z1(e){const n=B(-1)<<B(255),r=(B(1)<<B(255))-B(1),i=e.min,s=e.max;return{min:i!==void 0?i:n-(s!==void 0&&s<B(0)?s*s:B(0)),max:s!==void 0?s:r+(i!==void 0&&i>B(0)?i*i:B(0))}}function X1(e){return e[0]===void 0?{}:e[1]===void 0?e[0]:{min:e[0],max:e[1]}}function Vr(...e){const t=Z1(X1(e));if(t.min>t.max)throw new Error("fc.bigInt expects max to be greater than or equal to min");return new tr(t.min,t.max)}function s0(e){if(e<1)throw new Error("fc.bigIntN expects requested number of bits to be superior or equal to 1");const t=B(-1)<<B(e-1),n=(B(1)<<B(e-1))-B(1);return new tr(t,n)}function Q1(){return(B(1)<<B(256))-B(1)}function o0(e){const t=typeof e=="object"?e.max:e,n=t!==void 0?t:Q1();if(n<0)throw new Error("fc.bigUint expects max to be greater than or equal to zero");return new tr(B(0),n)}function ji(e){if(e<0)throw new Error("fc.bigUintN expects requested number of bits to be superior or equal to 0");const t=B(0),n=(B(1)<<B(e))-B(1);return new tr(t,n)}function sc(e){return e.noBias()}function ew(e){return e===1}function tw(e){if(typeof e!="boolean")throw new Error("Unsupported input type");return e===!0?1:0}function kt(){return sc(G({min:0,max:1}).map(ew,tw))}const yr=Object.is;class a0 extends xe{constructor(t){super(),this.values=t}generate(t,n){const r=this.values.length===1?0:t.nextInt(0,this.values.length-1),i=this.values[r];return hn(i)?new F(i,r,()=>i[Pe]()):new F(i,r)}canShrinkWithoutContext(t){return this.values.length===1?yr(this.values[0],t):(this.fastValues===void 0&&(this.fastValues=new nw(this.values)),this.fastValues.has(t))}shrink(t,n){return n===0||yr(t,this.values[0])?z.nil():z.of(new F(this.values[0],0))}}class nw{constructor(t){this.values=t,this.fastValues=new rs(this.values);let n=!1,r=!1;if(Il(this.fastValues,0))for(let i=0;i!==this.values.length;++i){const s=this.values[i];n=n||yr(s,-0),r=r||yr(s,0)}this.hasMinusZero=n,this.hasPlusZero=r}has(t){return t===0?yr(t,0)?this.hasPlusZero:this.hasMinusZero:Il(this.fastValues,t)}}function Fe(...e){if(e.length===0)throw new Error("fc.constantFrom expects at least one parameter");return new a0(e)}function c0(e){return!e||!e.withBigInt?Fe(!1,null,void 0,0,"",NaN):Fe(!1,null,void 0,0,"",NaN,B(0))}const rw=String.fromCodePoint;function iw(e){if(typeof e!="string")throw new Error("Cannot unmap non-string");if(e.length===0||e.length>2)throw new Error("Cannot unmap string with more or less than one character");const t=Hn(e,0);if(e.length===1)return t;const n=Hn(e,1);if(t<55296||t>56319||n<56320||n>57343)throw new Error("Cannot unmap invalid surrogate pairs");return e.codePointAt(0)}function Mn(e,t,n,r){return G({min:e,max:t}).map(i=>rw(n(i)),i=>r(iw(i)))}function fs(e){return e<95?e+32:e<=126?e-95:e}function hs(e){return e>=32&&e<=126?e-32:e>=0&&e<=31?e+95:e}function oc(){return Mn(0,127,fs,hs)}function sw(e){return e<26?e+65:e<52?e+97-26:e<62?e+48-52:e===62?43:47}function ow(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function ac(){return Mn(0,63,sw,ow)}function mf(e){return e}function cc(){return Mn(32,126,mf,mf)}function uc(){return Mn(0,65535,fs,hs)}const lc=2048;function aw(e){return e<55296?fs(e):e+lc}function cw(e){return e<55296?hs(e):e<=57343?-1:e-lc}function ds(){return Mn(0,1114111-lc,aw,cw)}function uw(e){return e<10?e+48:e+97-10}function lw(e){return e<58?e-48:e>=97&&e<103?e-97+10:-1}function fc(){return Mn(0,15,uw,lw)}const hc=2048;function fw(e){return e<55296?fs(e):e+hc}function hw(e){return e<55296?hs(e):e<=57343?-1:e-hc}function dc(){return Mn(0,65535-hc,fw,hw)}function ke(e){return new a0([e])}class pc{constructor(){this.receivedLogs=[]}log(t){this.receivedLogs.push(t)}size(){return this.receivedLogs.length}toString(){return JSON.stringify({logs:this.receivedLogs})}[Pe](){return new pc}}function u0(){return ke(new pc)}const dw=Number.NaN,pw=Number.isNaN;function l0(e){return new ki(e)}function f0(e){if(!(e instanceof ki)||e.constructor!==ki)throw new H("Not a valid value for date unmapper");return Pi(e)}function mw(e){return t=>t===e?new ki(dw):l0(t)}function gw(e){return t=>{const n=f0(t);return pw(n)?e:n}}const gf=Number.isNaN;function ps(e={}){const t=e.min!==void 0?Pi(e.min):-864e13,n=e.max!==void 0?Pi(e.max):864e13,r=e.noInvalidDate===void 0||e.noInvalidDate;if(gf(t))throw new Error("fc.date min must be valid instance of Date");if(gf(n))throw new Error("fc.date max must be valid instance of Date");if(t>n)throw new Error("fc.date max must be greater or equal to min");if(r)return G({min:t,max:n}).map(l0,f0);const i=n+1;return G({min:t,max:n+1}).map(mw(i),gw(i))}const xw=Symbol.iterator,bw=Array.isArray,yw=Object.is;class mc extends xe{constructor(t,n){super(),this.arb=t,this.numValues=n}generate(t,n){const r=[];if(this.numValues<=0)return this.wrapper(r);for(let i=0;i!==this.numValues-1;++i)V(r,this.arb.generate(t.clone(),n));return V(r,this.arb.generate(t,n)),this.wrapper(r)}canShrinkWithoutContext(t){if(!bw(t)||t.length!==this.numValues)return!1;if(t.length===0)return!0;for(let n=1;n<t.length;++n)if(!yw(t[0],t[n]))return!1;return this.arb.canShrinkWithoutContext(t[0])}shrink(t,n){return t.length===0?z.nil():new z(this.shrinkImpl(t,n!==void 0?n:[])).map(r=>this.wrapper(r))}*shrinkImpl(t,n){const r=oe(t,(s,o)=>this.arb.shrink(s,n[o])[xw]());let i=oe(r,s=>s.next());for(;!i[0].done;)yield oe(i,s=>s.value),i=oe(r,s=>s.next())}static makeItCloneable(t,n){return t[Pe]=()=>{const r=[];for(let i=0;i!==n.length;++i)V(r,n[i].value);return this.makeItCloneable(r,n),r},t}wrapper(t){let n=!1;const r=[],i=[];for(let s=0;s!==t.length;++s){const o=t[s];n=n||o.hasToBeCloned,V(r,o.value),V(i,o.context)}return n&&mc.makeItCloneable(r,t),new F(r,i)}}function h0(e,t){return new mc(e,t)}class xf{constructor(t){this.isEqual=t,this.data=[]}tryAdd(t){for(let n=0;n!==this.data.length;++n)if(this.isEqual(this.data[n],t))return!1;return V(this.data,t),!0}size(){return this.data.length}getData(){return this.data}}const ww=Number.isNaN;class Sw{constructor(t){this.selector=t,this.selectedItemsExceptNaN=new rs,this.data=[]}tryAdd(t){const n=this.selector(t);if(ww(n))return V(this.data,t),!0;const r=this.selectedItemsExceptNaN.size;return Ka(this.selectedItemsExceptNaN,n),r!==this.selectedItemsExceptNaN.size?(V(this.data,t),!0):!1}size(){return this.data.length}getData(){return this.data}}const Ew=Object.is;class Tw{constructor(t){this.selector=t,this.selectedItemsExceptMinusZero=new rs,this.data=[],this.hasMinusZero=!1}tryAdd(t){const n=this.selector(t);if(Ew(n,-0))return this.hasMinusZero?!1:(V(this.data,t),this.hasMinusZero=!0,!0);const r=this.selectedItemsExceptMinusZero.size;return Ka(this.selectedItemsExceptMinusZero,n),r!==this.selectedItemsExceptMinusZero.size?(V(this.data,t),!0):!1}size(){return this.data.length}getData(){return this.data}}class Aw{constructor(t){this.selector=t,this.selectedItems=new rs,this.data=[]}tryAdd(t){const n=this.selector(t),r=this.selectedItems.size;return Ka(this.selectedItems,n),r!==this.selectedItems.size?(V(this.data,t),!0):!1}size(){return this.data.length}getData(){return this.data}}function Iw(e){if(typeof e.comparator=="function"){if(e.selector===void 0){const a=e.comparator,c=(u,l)=>a(u.value_,l.value_);return()=>new xf(c)}const r=e.comparator,i=e.selector,s=a=>i(a.value_),o=(a,c)=>r(s(a),s(c));return()=>new xf(o)}const t=e.selector||(r=>r),n=r=>t(r.value_);switch(e.comparator){case"IsStrictlyEqual":return()=>new Sw(n);case"SameValueZero":return()=>new Aw(n);case"SameValue":case void 0:return()=>new Tw(n)}}function On(e,t={}){const n=t.minLength!==void 0?t.minLength:0,r=t.maxLength!==void 0?t.maxLength:vn,i=Cr(t.size,n,r,t.maxLength!==void 0),s=t.depthIdentifier,o=Iw(t),a=new ls(e,n,i,r,s,o,[]);return n===0?a:a.filter(c=>c.length>=n)}const $w=Object.create,Cw=Object.defineProperty,vw=Object.getOwnPropertyDescriptor,Mw=Object.getPrototypeOf,Ow=Object.getOwnPropertySymbols,Nw=Object.getOwnPropertyNames,kw=Object.entries;function Pw(e){const t=e[1]?$w(null):{};for(const n of e[0])Cw(t,n[0],{enumerable:!0,configurable:!0,writable:!0,value:n[1]});return t}function _w(e){return function(n){const r=vw(e,n);return r!==void 0&&!!r.configurable&&!!r.enumerable&&!!r.writable&&r.get===void 0&&r.set===void 0}}function jw(e){if(typeof e!="object"||e===null)throw new H("Incompatible instance received: should be a non-null object");const t=Mw(e)===null,n="constructor"in e&&e.constructor===Object;if(!t&&!n)throw new H("Incompatible instance received: should be of exact type Object");if(Ow(e).length>0)throw new H("Incompatible instance received: should contain symbols");if(!Cp(Nw(e),_w(e)))throw new H("Incompatible instance received: should contain only c/e/w properties without get/set");return[kw(e),t]}function Fw(e){return e[0]}function ms(e,t,n={}){const r=n.noNullPrototype!==!1;return K(On(K(e,t),{minLength:n.minKeys,maxLength:n.maxKeys,size:n.size,selector:Fw,depthIdentifier:n.depthIdentifier}),r?ke(!1):kt()).map(Pw,jw)}const Rw=Number.POSITIVE_INFINITY,Dw=Number.MAX_SAFE_INTEGER,Lw=Number.isInteger,Bw=Math.floor,qw=Math.pow,Vw=Math.min;class vr extends xe{static from(t,n,r){if(t.length===0)throw new Error(`${r} expects at least one weighted arbitrary`);let i=0;for(let o=0;o!==t.length;++o){if(t[o].arbitrary===void 0)throw new Error(`${r} expects arbitraries to be specified`);const c=t[o].weight;if(i+=c,!Lw(c))throw new Error(`${r} expects weights to be integer values`);if(c<0)throw new Error(`${r} expects weights to be superior or equal to 0`)}if(i<=0)throw new Error(`${r} expects the sum of weights to be strictly superior to 0`);const s={depthBias:J1(n.depthSize,n.maxDepth!==void 0),maxDepth:n.maxDepth!=null?n.maxDepth:Rw,withCrossShrink:!!n.withCrossShrink};return new vr(t,s,us(n.depthIdentifier))}constructor(t,n,r){super(),this.warbs=t,this.constraints=n,this.context=r;let i=0;this.cumulatedWeights=[];for(let s=0;s!==t.length;++s)i+=t[s].weight,V(this.cumulatedWeights,i);this.totalWeight=i}generate(t,n){if(this.mustGenerateFirst())return this.safeGenerateForIndex(t,0,n);const r=t.nextInt(this.computeNegDepthBenefit(),this.totalWeight-1);for(let i=0;i!==this.cumulatedWeights.length;++i)if(r<this.cumulatedWeights[i])return this.safeGenerateForIndex(t,i,n);throw new Error("Unable to generate from fc.frequency")}canShrinkWithoutContext(t){return this.canShrinkWithoutContextIndex(t)!==-1}shrink(t,n){if(n!==void 0){const i=n,s=i.selectedIndex,o=i.originalBias,c=this.warbs[s].arbitrary.shrink(t,i.originalContext).map(u=>this.mapIntoValue(s,u,null,o));if(i.clonedMrngForFallbackFirst!==null){i.cachedGeneratedForFirst===void 0&&(i.cachedGeneratedForFirst=this.safeGenerateForIndex(i.clonedMrngForFallbackFirst,0,o));const u=i.cachedGeneratedForFirst;return z.of(u).join(c)}return c}const r=this.canShrinkWithoutContextIndex(t);return r===-1?z.nil():this.defaultShrinkForFirst(r).join(this.warbs[r].arbitrary.shrink(t,void 0).map(i=>this.mapIntoValue(r,i,null,void 0)))}defaultShrinkForFirst(t){++this.context.depth;try{if(!this.mustFallbackToFirstInShrink(t)||this.warbs[0].fallbackValue===void 0)return z.nil()}finally{--this.context.depth}const n=new F(this.warbs[0].fallbackValue.default,void 0);return z.of(this.mapIntoValue(0,n,null,void 0))}canShrinkWithoutContextIndex(t){if(this.mustGenerateFirst())return this.warbs[0].arbitrary.canShrinkWithoutContext(t)?0:-1;try{++this.context.depth;for(let n=0;n!==this.warbs.length;++n){const r=this.warbs[n];if(r.weight!==0&&r.arbitrary.canShrinkWithoutContext(t))return n}return-1}finally{--this.context.depth}}mapIntoValue(t,n,r,i){const s={selectedIndex:t,originalBias:i,originalContext:n.context,clonedMrngForFallbackFirst:r};return new F(n.value,s)}safeGenerateForIndex(t,n,r){++this.context.depth;try{const i=this.warbs[n].arbitrary.generate(t,r),s=this.mustFallbackToFirstInShrink(n)?t.clone():null;return this.mapIntoValue(n,i,s,r)}finally{--this.context.depth}}mustGenerateFirst(){return this.constraints.maxDepth<=this.context.depth}mustFallbackToFirstInShrink(t){return t!==0&&this.constraints.withCrossShrink&&this.warbs[0].weight!==0}computeNegDepthBenefit(){const t=this.constraints.depthBias;if(t<=0||this.warbs[0].weight===0)return 0;const n=Bw(qw(1+t,this.context.depth))-1;return-Vw(this.totalWeight*n,Dw)||0}}function Uw(e){return e!=null&&typeof e=="object"&&!("generate"in e)&&!("arbitrary"in e)&&!("weight"in e)}function bf(e){return gp(e)?{arbitrary:e,weight:1}:e}function Te(...e){const t=e[0];if(Uw(t)){const r=oe(Le(e,1),bf);return vr.from(r,t,"fc.oneof")}const n=oe(e,bf);return vr.from(n,{},"fc.oneof")}const zw=Number.isInteger;function Wt(e){const t=typeof e=="number"?e:e&&e.max!==void 0?e.max:2147483647;if(t<0)throw new Error("fc.nat value should be greater than or equal to 0");if(!zw(t))throw new Error("fc.nat maximum value should be an integer");return new ln(0,t)}const Ww=Object.is;function Gw(e){let t=0;const n=[];for(const r of e){const i=t;t=i+r.num;const s=t-1;n.push({from:i,to:s,entry:r})}return n}function Kw(e,t){let n=0,r=e.length;for(;r-n>1;){const i=~~((n+r)/2);t<e[i].from?r=i:n=i}return e[n]}function Hw(e){const t=Gw(e);return function(r){const i=Kw(t,r);return i.entry.build(r-i.from)}}function Yw(e){const t={mapping:new Dr,negativeZeroIndex:void 0};let n=0;for(let r=0;r!==e.length;++r){const i=e[r];for(let s=0;s!==i.num;++s){const o=i.build(s);o===0&&1/o===Ga.NEGATIVE_INFINITY?t.negativeZeroIndex=n:An(t.mapping,o,n),++n}}return t}function Jw(e){let t=null;return function(r){t===null&&(t=Yw(e));const i=Ww(r,-0)?t.negativeZeroIndex:un(t.mapping,r);if(i===void 0)throw new H("Unknown value encountered cannot be built using this mapToConstant");return i}}function Zw(e){if(e.length===0)throw new H("fc.mapToConstant expects at least one option");let t=0;for(let n=0;n!==e.length;++n){if(e[n].num<0)throw new H("fc.mapToConstant expects all options to have a number of entries greater or equal to zero");t+=e[n].num}if(t===0)throw new H("fc.mapToConstant expects at least one choice among options");return t}function nr(...e){const t=Zw(e);return Wt({max:t-1}).map(Hw(e),Jw(e))}const d0=Map,gc=String.fromCharCode,xc={num:26,build:e=>gc(e+97)},Xw={num:26,build:e=>gc(e+65)},p0={num:10,build:e=>gc(e+48)};function Qw(e){const t=Fb(e);return e!==t?t:`%${Ar(Hn(e,0),16)}`}function eS(e){if(typeof e!="string")throw new Error("Unsupported");return decodeURIComponent(e)}const tS=ds().map(Qw,eS);let eo;function nS(){return eo===void 0&&(eo=nr(xc)),eo}let ni;function sa(e){ni===void 0&&(ni=new d0);let t=un(ni,e);return t===void 0&&(t=nr(xc,p0,{num:e.length,build:n=>e[n]}),An(ni,e,t)),t}function rS(e){return nr(xc,Xw,p0,{num:e.length,build:t=>e[t]})}let ri;function bc(e){ri===void 0&&(ri=new d0);let t=un(ri,e);return t===void 0&&(t=Te({weight:10,arbitrary:rS(e)},{weight:1,arbitrary:tS}),An(ri,e,t)),t}function Kt(e,t={}){const n=t.freq==null?5:t.freq,r=_i(t,"nil")?t.nil:null,s=[{arbitrary:ke(r),weight:1,fallbackValue:{default:r}},{arbitrary:e,weight:n}],o={withCrossShrink:!0,depthSize:t.depthSize,maxDepth:t.maxDepth,depthIdentifier:t.depthIdentifier};return vr.from(s,o,"fc.option")}function m0(e,t,n,r){if(t.length===0)return n>0?void 0:[];if(r<=0)return;const i=[{endIndexChunks:0,nextStartIndex:1,chunks:[]}];for(;i.length>0;){const s=Ap(i);for(let o=s.nextStartIndex;o<=t.length;++o){const a=we(t,s.endIndexChunks,o);if(e.canShrinkWithoutContext(a)){const c=[...s.chunks,a];if(o===t.length){if(c.length<n)break;return c}V(i,{endIndexChunks:s.endIndexChunks,nextStartIndex:o+1,chunks:s.chunks}),c.length<r&&V(i,{endIndexChunks:o,nextStartIndex:o+1,chunks:c});break}}}}function g0(e){return ge(e,"")}function x0(e){return e.minLength!==void 0?e.minLength:0}function b0(e){return e.maxLength!==void 0?e.maxLength:vn}function iS(e,t){return x0(t)<=e.length&&e.length<=b0(t)}function y0(e,t){return function(r){if(typeof r!="string")throw new H("Unsupported value");const i=m0(e,r,x0(t),b0(t));if(i===void 0)throw new H("Unable to unmap received string");return i}}const w0=["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__proto__","constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf","apply","arguments","bind","call","caller","length","name","prototype","key","ref"];function sS(e,t,n){let r;try{r=n(e)}catch{return}for(const i of r)if(!t.canShrinkWithoutContext(i))return;return r}function Nn(e,t){const n=[];for(const r of w0){const i=sS(r,e,t);i!==void 0&&V(n,i)}return n}const yf=new WeakMap;function oS(e){const t=[];for(const n of w0){const r=m0(e,n,0,vn);r!==void 0&&V(t,r)}return t}function aS(e,t){let n=ry(yf,e);n===void 0&&(n=oS(e),ny(yf,e,n));const r=[];for(const i of n)iS(i,t)&&V(r,i);return r}const cS=[[0,127]],uS=[[0,55295],[57344,1114111]],lS=[[32,126],[160,172],[174,767],[880,887],[890,895],[900,906],[908],[910,929],[931,1154],[1162,1327],[1329,1366],[1369,1418],[1421,1423],[1470],[1472],[1475],[1478],[1488,1514],[1519,1524],[1542,1551],[1563],[1565,1610],[1632,1647],[1649,1749],[1758],[1765,1766],[1769],[1774,1805],[1808],[1810,1839],[1869,1957],[1969],[1984,2026],[2036,2042],[2046,2069],[2074],[2084],[2088],[2096,2110],[2112,2136],[2142],[2144,2154],[2160,2190],[2208,2249],[2308,2361],[2365],[2384],[2392,2401],[2404,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],[2482],[2486,2489],[2493],[2510],[2524,2525],[2527,2529],[2534,2557],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],[2654],[2662,2671],[2674,2676],[2678],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749],[2768],[2784,2785],[2790,2801],[2809],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877],[2908,2909],[2911,2913],[2918,2935],[2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],[2972],[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3024],[3046,3066],[3077,3084],[3086,3088],[3090,3112],[3114,3129],[3133],[3160,3162],[3165],[3168,3169],[3174,3183],[3191,3200],[3204,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261],[3293,3294],[3296,3297],[3302,3311],[3313,3314],[3332,3340],[3342,3344],[3346,3386],[3389],[3407],[3412,3414],[3416,3425],[3430,3455],[3461,3478],[3482,3505],[3507,3515],[3517],[3520,3526],[3558,3567],[3572],[3585,3632],[3634],[3647,3654],[3663,3675],[3713,3714],[3716],[3718,3722],[3724,3747],[3749],[3751,3760],[3762],[3773],[3776,3780],[3782],[3792,3801],[3804,3807],[3840,3863],[3866,3892],[3894],[3896],[3898,3901],[3904,3911],[3913,3948],[3973],[3976,3980],[4030,4037],[4039,4044],[4046,4058],[4096,4138],[4159,4181],[4186,4189],[4193],[4197,4198],[4206,4208],[4213,4225],[4238],[4240,4249],[4254,4293],[4295],[4301],[4304,4351],[4608,4680],[4682,4685],[4688,4694],[4696],[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],[4800],[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4960,4988],[4992,5017],[5024,5109],[5112,5117],[5120,5788],[5792,5880],[5888,5905],[5919,5937],[5941,5942],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],[6100,6108],[6112,6121],[6128,6137],[6144,6154],[6160,6169],[6176,6264],[6272,6276],[6279,6312],[6314],[6320,6389],[6400,6430],[6464],[6468,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6622,6678],[6686,6740],[6784,6793],[6800,6809],[6816,6829],[6917,6963],[6981,6988],[6992,7018],[7028,7038],[7043,7072],[7086,7141],[7164,7203],[7227,7241],[7245,7304],[7312,7354],[7357,7367],[7379],[7401,7404],[7406,7411],[7413,7414],[7418],[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],[8025],[8027],[8029],[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[8192,8202],[8208,8233],[8239,8287],[8304,8305],[8308,8334],[8336,8348],[8352,8384],[8448,8587],[8592,9254],[9280,9290],[9312,11123],[11126,11157],[11159,11502],[11506,11507],[11513,11557],[11559],[11565],[11568,11623],[11631,11632],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11776,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12329],[12336,12351],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12771],[12783,12830],[12832,13312],[19903,19968],[40959,42124],[42128,42182],[42192,42539],[42560,42606],[42611],[42622,42653],[42656,42735],[42738,42743],[42752,42954],[42960,42961],[42963],[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43048,43051],[43056,43065],[43072,43127],[43138,43187],[43214,43225],[43250,43262],[43264,43301],[43310,43334],[43359],[43396,43442],[43457,43469],[43471,43481],[43486,43492],[43494,43518],[43520,43560],[43584,43586],[43588,43595],[43600,43609],[43612,43642],[43646,43695],[43697],[43701,43702],[43705,43709],[43712],[43714],[43739,43754],[43760,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44002],[44011],[44016,44025],[44032],[55203],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285],[64287,64310],[64312,64316],[64318],[64320,64321],[64323,64324],[64326,64450],[64467,64911],[64914,64967],[64975],[65008,65023],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65136,65140],[65142,65276],[65281,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65532,65533],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65934],[65936,65948],[65952],[66e3,66044],[66176,66204],[66208,66256],[66273,66299],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],[67592],[67594,67637],[67639,67640],[67644],[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67871,67897],[67903],[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68409,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[68912,68921],[69216,69246],[69248,69289],[69293],[69296,69297],[69376,69415],[69424,69445],[69457,69465],[69488,69505],[69510,69513],[69552,69579],[69600,69622],[69635,69687],[69703,69709],[69714,69743],[69745,69746],[69749],[69763,69807],[69819,69820],[69822,69825],[69840,69864],[69872,69881],[69891,69926],[69942,69956],[69959],[69968,70002],[70004,70006],[70019,70066],[70081],[70084,70088],[70093],[70096,70111],[70113,70132],[70144,70161],[70163,70187],[70200,70205],[70207,70208],[70272,70278],[70280],[70282,70285],[70287,70301],[70303,70313],[70320,70366],[70384,70393],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70461],[70480],[70493,70497],[70656,70708],[70727,70747],[70749],[70751,70753],[70784,70831],[70852,70855],[70864,70873],[71040,71086],[71105,71131],[71168,71215],[71233,71236],[71248,71257],[71264,71276],[71296,71338],[71352,71353],[71360,71369],[71424,71450],[71472,71494],[71680,71723],[71739],[71840,71922],[71935,71942],[71945],[71948,71955],[71957,71958],[71960,71983],[72004,72006],[72016,72025],[72096,72103],[72106,72144],[72161,72163],[72192],[72203,72242],[72255,72262],[72272],[72284,72323],[72346,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72750],[72768,72773],[72784,72812],[72816,72847],[72960,72966],[72968,72969],[72971,73008],[73040,73049],[73056,73061],[73063,73064],[73066,73097],[73112],[73120,73129],[73440,73458],[73463,73464],[73476,73488],[73490,73523],[73539,73561],[73648],[73664,73713],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],[92917],[92928,92975],[92983,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94032],[94099,94111],[94176,94179],[94208],[100343],[100352,101589],[101632],[101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],[110898],[110928,110930],[110933],[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820],[113823],[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],[119365],[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],[119970],[119973,119974],[119977,119980],[119982,119993],[119995],[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],[120134],[120138,120144],[120146,120485],[120488,120779],[120782,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121483],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123200,123209],[123214,123215],[123536,123565],[123584,123627],[123632,123641],[123647],[124112,124139],[124144,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125135],[125184,125251],[125259],[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],[126500],[126503],[126505,126514],[126516,126519],[126521],[126523],[126530],[126535],[126537],[126539],[126541,126543],[126545,126546],[126548],[126551],[126553],[126555],[126557],[126559],[126561,126562],[126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127994],[128e3,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],[129008],[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],[131072],[173791],[173824],[177977],[177984],[178205],[178208],[183969],[183984],[191456],[191472],[192093],[194560,195101],[196608],[201546],[201552],[205743]],fS=[[192,197],[199,207],[209,214],[217,221],[224,229],[231,239],[241,246],[249,253],[255,271],[274,293],[296,304],[308,311],[313,318],[323,328],[332,337],[340,357],[360,382],[416,417],[431,432],[461,476],[478,483],[486,496],[500,501],[504,539],[542,543],[550,563],[901,902],[904,906],[908],[910,912],[938,944],[970,974],[979,980],[1024,1025],[1027],[1031],[1036,1038],[1049],[1081],[1104,1105],[1107],[1111],[1116,1118],[1142,1143],[1217,1218],[1232,1235],[1238,1239],[1242,1247],[1250,1255],[1258,1269],[1272,1273],[1570,1574],[1728],[1730],[1747],[2345],[2353],[2356],[2392,2399],[2524,2525],[2527],[2611],[2614],[2649,2651],[2654],[2908,2909],[2964],[3907],[3917],[3922],[3927],[3932],[3945],[4134],[6918],[6920],[6922],[6924],[6926],[6930],[7680,7833],[7835],[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],[8025],[8027],[8029],[8031,8048],[8050],[8052],[8054],[8056],[8058],[8060],[8064,8116],[8118,8122],[8124],[8129,8132],[8134,8136],[8138],[8140,8146],[8150,8154],[8157,8162],[8164,8170],[8172,8173],[8178,8180],[8182,8184],[8186],[8188],[8602,8603],[8622],[8653,8655],[8708],[8713],[8716],[8740],[8742],[8769],[8772],[8775],[8777],[8800],[8802],[8813,8817],[8820,8821],[8824,8825],[8832,8833],[8836,8837],[8840,8841],[8876,8879],[8928,8931],[8938,8941],[10972],[12364],[12366],[12368],[12370],[12372],[12374],[12376],[12378],[12380],[12382],[12384],[12386],[12389],[12391],[12393],[12400,12401],[12403,12404],[12406,12407],[12409,12410],[12412,12413],[12436],[12446],[12460],[12462],[12464],[12466],[12468],[12470],[12472],[12474],[12476],[12478],[12480],[12482],[12485],[12487],[12489],[12496,12497],[12499,12500],[12502,12503],[12505,12506],[12508,12509],[12532],[12535,12538],[12542],[44032],[55203],[64285],[64287],[64298,64310],[64312,64316],[64318],[64320,64321],[64323,64324],[64326,64334],[69786],[69788],[69803],[119134,119140],[119227,119232]],wf=String.fromCodePoint,hS=Math.min,dS=Math.max;function Sf(e){if(e.length===1){const n=wf(e[0]);return{num:1,build:()=>n}}const t=e[0];return{num:e[1]-e[0]+1,build:n=>wf(t+n)}}function Ef(e,t){const n=[];let r=0,i=0;for(;r<e.length&&i<t.length;){const s=e[r],o=s[0],a=s.length===1?s[0]:s[1],c=t[i],u=c[0],l=c.length===1?c[0]:c[1];if(a<u)r+=1;else if(l<o)i+=1;else{let f=dS(o,u);const h=hS(a,l);if(n.length>=1){const d=n[n.length-1];(d.length===1?d[0]:d[1])+1===f&&(f=d[0],Ap(n))}V(n,f===h?[f]:[f,h]),a<=h&&(r+=1),l<=h&&(i+=1)}}return n}const Tf=Object.create(null);function pS(e){switch(e){case"full":return uS;case"ascii":return cS}}function mS(e,t){const n=`${e}:${t}`,r=Tf[n];if(r!==void 0)return r;const i=pS(t),s=e==="binary"?i:Ef(i,lS),o=[];for(const c of s)V(o,Sf(c));if(e==="grapheme"){const c=Ef(i,fS);for(const u of c){const l=Sf(u);V(o,{num:l.num,build:f=>yy(l.build(f),"NFD")})}}const a=nr(...o);return Tf[n]=a,a}function hr(e,t){return mS(e,t)}const Af=Object.assign;function gS(e){if(typeof e.unit=="object")return e.unit;switch(e.unit){case"grapheme":return hr("grapheme","full");case"grapheme-composite":return hr("composite","full");case"grapheme-ascii":case void 0:return hr("grapheme","ascii");case"binary":return hr("binary","full");case"binary-ascii":return hr("binary","ascii")}}function tt(e={}){const t=gS(e),n=y0(t,e),r=aS(t,e),i=Af(Af({},e),{experimentalCustomSlices:r});return X(t,i).map(g0,n)}function xS(e){return e.length>63?!1:e.length<4||e[0]!=="x"||e[1]!=="n"||e[2]!=="-"||e[3]!=="-"}const S0=Symbol("adapted-value");function bS(e,t){const n=t(e.value_);return n.adapted?new F(n.value,S0):e}class yS extends xe{constructor(t,n){super(),this.sourceArb=t,this.adapter=n,this.adaptValue=r=>bS(r,n)}generate(t,n){const r=this.sourceArb.generate(t,n);return this.adaptValue(r)}canShrinkWithoutContext(t){return this.sourceArb.canShrinkWithoutContext(t)&&!this.adapter(t).adapted}shrink(t,n){return n===S0?this.sourceArb.canShrinkWithoutContext(t)?this.sourceArb.shrink(t,void 0).map(this.adaptValue):z.nil():this.sourceArb.shrink(t,n).map(this.adaptValue)}}function E0(e,t){return new yS(e,t)}function wS([e,t]){return t===null?e:`${e}${t[0]}${t[1]}`}function SS(e){if(typeof e!="string"||e.length===0)throw new Error("Unsupported");return e.length===1?[e[0],null]:[e[0],[we(e,1,e.length-1),e[e.length-1]]]}function ES(e){const t=sa(""),n=sa("-");return K(t,Kt(K(tt({unit:n,size:e,maxLength:61}),t))).map(wS,SS).filter(xS)}function TS(e){return`${ge(e[0],".")}.${e[1]}`}function AS(e){if(typeof e!="string")throw new Error("Unsupported type");const t=e.lastIndexOf(".");return[Ze(we(e,0,t),"."),we(e,t+1)]}function IS(e){const[t,n]=e;let r=n.length;for(let i=0;i!==t.length;++i)if(r+=1+t[i].length,r>255)return{adapted:!0,value:[Le(t,0,i),n]};return{adapted:!1,value:e}}function gs(e={}){const t=ic(e.size),n=qr("-1",t),r=nS(),i=tt({unit:r,minLength:2,maxLength:63,size:n});return E0(K(X(ES(t),{size:n,minLength:1,maxLength:127}),i),IS).map(TS,AS)}function $S(e){let t=e[0].length;for(let n=1;n!==e.length;++n)if(t+=1+e[n].length,t>64)return{adapted:!0,value:Le(e,0,n)};return{adapted:!1,value:e}}function CS(e){return ge(e,".")}function vS(e){if(typeof e!="string")throw new Error("Unsupported");return Ze(e,".")}function MS(e){return`${e[0]}@${e[1]}`}function OS(e){if(typeof e!="string")throw new Error("Unsupported");return Ze(e,"@",2)}function yc(e={}){const t=sa("!#$%&'*+-/=?^_`{|}~"),n=E0(X(tt({unit:t,minLength:1,maxLength:64,size:e.size}),{minLength:1,maxLength:32,size:e.size}),$S).map(CS,vS);return K(n,gs({size:e.size})).map(MS,OS)}const T0={sign:1,data:[0,0]},Bn={sign:1,data:[0,1]};function fn(e){return e.data[0]===0&&e.data[1]===0}function ii(e){return e.sign===-1&&!fn(e)}function wi(e){return e.sign===1&&!fn(e)}function bn(e,t){return e.data[0]===t.data[0]&&e.data[1]===t.data[1]?e.sign===t.sign||e.data[0]===0&&e.data[1]===0:!1}function If(e,t){return e[0]<t[0]||e[0]===t[0]&&e[1]<t[1]}function Un(e,t){return e.sign===t.sign?e.sign===1?If(e.data,t.data):If(t.data,e.data):e.sign===-1&&(!fn(e)||!fn(t))}function Fi(e){return{sign:e.sign,data:[e.data[0],e.data[1]]}}function $f(e,t){let n=0,r=e[1]-t[1];return r<0&&(n=1,r=r>>>0),[e[0]-t[0]-n,r]}function Cf(e,t){if(e.sign===1&&t.sign===-1){const n=e.data[1]+t.data[1];return{sign:1,data:[e.data[0]+t.data[0]+(n>4294967295?1:0)>>>0,n>>>0]}}return{sign:1,data:e.sign===1?$f(e.data,t.data):$f(t.data,e.data)}}function mt(e,t){if(Un(e,t)){const n=Cf(t,e);return n.sign=-1,n}return Cf(e,t)}function NS(e){return{sign:-e.sign,data:[e.data[0],e.data[1]]}}function Ri(e,t){return fn(t)?fn(e)?Fi(T0):Fi(e):mt(e,NS(t))}function vf(e){return{sign:e.sign,data:[Math.floor(e.data[0]/2),(e.data[0]%2===1?2147483648:0)+Math.floor(e.data[1]/2)]}}function to(e){return{sign:e.sign,data:[0,Math.floor(Math.log(e.data[0]*4294967296+e.data[1])/Math.log(2))]}}class wc extends xe{constructor(t,n){super(),this.min=t,this.max=n,this.biasedRanges=null}generate(t,n){const r=this.computeGenerateRange(t,n),i=t.nextArrayInt(r.min,r.max);return i.data.length===1&&i.data.unshift(0),new F(i,void 0)}computeGenerateRange(t,n){if(n===void 0||t.nextInt(1,n)!==1)return{min:this.min,max:this.max};const r=this.retrieveBiasedRanges();if(r.length===1)return r[0];const i=t.nextInt(-2*(r.length-1),r.length-2);return i<0?r[0]:r[i+1]}canShrinkWithoutContext(t){const n=t;return typeof t=="object"&&t!==null&&(n.sign===-1||n.sign===1)&&Array.isArray(n.data)&&n.data.length===2&&(Un(this.min,n)&&Un(n,this.max)||bn(this.min,n)||bn(this.max,n))}shrinkArrayInt64(t,n,r){const i=mt(t,n);function*s(){let o=r?void 0:n;const a=r?i:vf(i);for(let c=a;!fn(c);c=vf(c)){const u=mt(t,c);yield new F(u,o),o=u}}return _t(s())}shrink(t,n){if(!wc.isValidContext(t,n)){const r=this.defaultTarget();return this.shrinkArrayInt64(t,r,!0)}return this.isLastChanceTry(t,n)?z.of(new F(n,void 0)):this.shrinkArrayInt64(t,n,!1)}defaultTarget(){return!wi(this.min)&&!ii(this.max)?T0:ii(this.min)?this.max:this.min}isLastChanceTry(t,n){return fn(t)?!1:t.sign===1?bn(t,Ri(n,Bn))&&wi(mt(t,this.min)):bn(t,mt(n,Bn))&&ii(mt(t,this.max))}static isValidContext(t,n){if(n===void 0)return!1;if(typeof n!="object"||n===null||!("sign"in n)||!("data"in n))throw new Error("Invalid context type passed to ArrayInt64Arbitrary (#1)");return!0}retrieveBiasedRanges(){if(this.biasedRanges!=null)return this.biasedRanges;if(bn(this.min,this.max))return this.biasedRanges=[{min:this.min,max:this.max}],this.biasedRanges;const t=ii(this.min),n=wi(this.max);if(t&&n){const r=to(this.min),i=to(this.max);this.biasedRanges=[{min:r,max:i},{min:mt(this.max,i),max:this.max},{min:this.min,max:mt(this.min,r)}]}else{const r=to(mt(this.max,this.min)),i={min:this.min,max:Ri(this.min,r)},s={min:mt(this.max,r),max:this.max};this.biasedRanges=t?[s,i]:[i,s]}return this.biasedRanges}}function Mf(e,t){return new wc(e,t)}const kS=Number.NEGATIVE_INFINITY,oa=Number.POSITIVE_INFINITY,PS=Number.EPSILON,A0={sign:1,data:[2146435072,0]},_S={sign:-1,data:[2146435072,1]},aa=new Float64Array(1),Of=new Uint32Array(aa.buffer,aa.byteOffset);function jS(e){return aa[0]=e,[Of[1],Of[0]]}function FS(e){const{0:t,1:n}=jS(e),r=t>>>31,i=t>>>20&2047,s=(t&1048575)*4294967296+n,o=i===0?-1022:i-1023;let a=i===0?0:1;return a+=s/2**52,a*=r===0?1:-1,{exponent:o,significand:a}}function Nf(e){return[~~(e/4294967296),e>>>0]}function kf(e,t){if(e===-1022){const s=t*4503599627370496;return Nf(s)}const n=(t-1)*2**52,r=(e+1023)*2**20,i=Nf(n);return i[0]+=r,i}function Sc(e){if(e===oa)return Fi(A0);if(e===kS)return Fi(_S);const t=FS(e),n=t.exponent,r=t.significand;if(e>0||e===0&&1/e===oa)return{sign:1,data:kf(n,r)};{const i=kf(n,-r);return i[1]===4294967295?(i[0]+=1,i[1]=0):i[1]+=1,{sign:-1,data:i}}}function ca(e){if(e.sign===-1){const i={sign:1,data:[e.data[0],e.data[1]]};return i.data[1]===0?(i.data[0]-=1,i.data[1]=4294967295):i.data[1]-=1,-ca(i)}if(bn(e,A0))return oa;if(e.data[0]<2097152)return(e.data[0]*4294967296+e.data[1])*2**-1074;const t=e.data[0]-2097152,n=-1021+(t>>20);return(1+((t&1048575)*2**32+e.data[1])*PS)*2**n}const Pf=Number.isInteger,_f=Object.is,no=Number.NEGATIVE_INFINITY,ro=Number.POSITIVE_INFINITY;function I0(e,t,n,r){const{noDefaultInfinity:i=!1,minExcluded:s=!1,maxExcluded:o=!1,min:a=i?-t:no,max:c=i?t:ro}=e,u=s?a<-n?-r:Math.max(a,-n):a===no?Math.max(a,-r):Math.max(a,-n),l=o?c>n?r:Math.min(c,n):c===ro?Math.min(c,r):Math.min(c,n);return{noDefaultInfinity:!1,minExcluded:s||(a!==no||s)&&Pf(u),maxExcluded:o||(c!==ro||o)&&Pf(l),min:_f(u,-0)?0:u,max:_f(l,0)?-0:l,noNaN:e.noNaN||!1}}const $0=Number.NEGATIVE_INFINITY,C0=Number.POSITIVE_INFINITY,RS=Number.MAX_VALUE,DS=45035996273704955e-1,Mr=4503599627370496;function LS(e){return I0(e,RS,DS,Mr)}function BS(e){return e===Mr?C0:e===-Mr?$0:e}function qS(e){if(typeof e!="number")throw new Error("Unsupported type");return e===C0?Mr:e===$0?-Mr:e}const VS=Number.isInteger,v0=Number.isNaN,US=Number.NEGATIVE_INFINITY,zS=Number.POSITIVE_INFINITY,jf=Number.MAX_VALUE,WS=Number.NaN;function Ff(e,t){if(v0(e))throw new Error("fc.double constraints."+t+" must be a 64-bit float");return Sc(e)}function GS(e){if(typeof e!="number")throw new Error("Unsupported type");return Sc(e)}function KS(e){return!VS(e)}function Rf(e){const{noDefaultInfinity:t=!1,noNaN:n=!1,minExcluded:r=!1,maxExcluded:i=!1,min:s=t?-jf:US,max:o=t?jf:zS}=e,a=Ff(s,"min"),c=r?Ri(a,Bn):a,u=Ff(o,"max"),l=i?mt(u,Bn):u;if(Un(l,c))throw new Error("fc.double constraints.min must be smaller or equal to constraints.max");if(n)return Mf(c,l).map(ca,GS);const f=wi(l),h=f?c:mt(c,Bn),d=f?Ri(l,Bn):l;return Mf(h,d).map(m=>Un(l,m)||Un(m,c)?WS:ca(m),m=>{if(typeof m!="number")throw new Error("Unsupported type");return v0(m)?bn(l,d)?h:d:Sc(m)})}function Ur(e={}){return e.noInteger?Rf(LS(e)).map(BS,qS).filter(KS):Rf(e)}const HS=Number.NEGATIVE_INFINITY,ua=Number.POSITIVE_INFINITY,la=2**127*(1+(2**23-1)/2**23),M0=2139095040,YS=-2139095041,fa=new Float32Array(1),JS=new Uint32Array(fa.buffer,fa.byteOffset);function ZS(e){return fa[0]=e,JS[0]}function XS(e){const t=ZS(e),n=t>>>31,r=t>>>23&255,i=t&8388607,s=r===0?-126:r-127;let o=r===0?0:1;return o+=i/2**23,o*=n===0?1:-1,{exponent:s,significand:o}}function Df(e,t){return e===-126?t*8388608:(e+127)*8388608+(t-1)*8388608}function Ec(e){if(e===ua)return M0;if(e===HS)return YS;const t=XS(e),n=t.exponent,r=t.significand;return e>0||e===0&&1/e===ua?Df(n,r):-Df(n,-r)-1}function ha(e){if(e<0)return-ha(-e-1);if(e===M0)return ua;if(e<16777216)return e*2**-149;const t=e-16777216,n=-125+(t>>23);return(1+(t&8388607)/8388608)*2**n}const O0=Number.NEGATIVE_INFINITY,N0=Number.POSITIVE_INFINITY,QS=la,eE=83886075e-1,Or=8388608;function tE(e){return I0(e,QS,eE,Or)}function nE(e){return e===Or?N0:e===-Or?O0:e}function rE(e){if(typeof e!="number")throw new Error("Unsupported type");return e===N0?Or:e===O0?-Or:e}const iE=Number.isInteger,k0=Number.isNaN,sE=Math.fround,oE=Number.NEGATIVE_INFINITY,aE=Number.POSITIVE_INFINITY,cE=Number.NaN;function Lf(e,t){const r="fc.float constraints."+t+" must be a 32-bit float - "+"you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";if(k0(e)||sE(e)!==e)throw new Error(r);return Ec(e)}function uE(e){if(typeof e!="number")throw new Error("Unsupported type");return Ec(e)}function lE(e){return!iE(e)}function Bf(e){const{noDefaultInfinity:t=!1,noNaN:n=!1,minExcluded:r=!1,maxExcluded:i=!1,min:s=t?-la:oE,max:o=t?la:aE}=e,a=Lf(s,"min"),c=r?a+1:a,u=Lf(o,"max"),l=i?u-1:u;if(c>l)throw new Error("fc.float constraints.min must be smaller or equal to constraints.max");if(n)return G({min:c,max:l}).map(ha,uE);const f=l>0?c:c-1,h=l>0?l+1:l;return G({min:f,max:h}).map(d=>d>l||d<c?cE:ha(d),d=>{if(typeof d!="number")throw new Error("Unsupported type");return k0(d)?l!==h?h:f:Ec(d)})}function xs(e={}){return e.noInteger?Bf(tE(e)).map(nE,rE).filter(lE):Bf(e)}function fE(e){return e.replace(/([$`\\])/g,"\\$1").replace(/\r/g,"\\r")}function P0(e){return e.replace(/\*\//g,"*\\/")}const lt=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function Nr(e){let t=4294967295;for(let n=0;n<e.length;++n){const r=Hn(e,n);if(r<128)t=lt[t&255^r]^t>>8;else if(r<2048)t=lt[t&255^(192|r>>6&31)]^t>>8,t=lt[t&255^(128|r&63)]^t>>8;else if(r>=55296&&r<57344){const i=Hn(e,++n);if(r>=56320||i<56320||i>57343||Number.isNaN(i))n-=1,t=lt[t&255^239]^t>>8,t=lt[t&255^191]^t>>8,t=lt[t&255^189]^t>>8;else{const s=(r&1023)+64,o=i&1023;t=lt[t&255^(240|s>>8&7)]^t>>8,t=lt[t&255^(128|s>>2&63)]^t>>8,t=lt[t&255^(128|o>>6&15|(s&3)<<4)]^t>>8,t=lt[t&255^(128|o&63)]^t>>8}}else t=lt[t&255^(224|r>>12&15)]^t>>8,t=lt[t&255^(128|r>>6&63)]^t>>8,t=lt[t&255^(128|r&63)]^t>>8}return(t|0)+2147483648}function kr(e){return e.noShrink()}const hE=Object.assign,dE=Object.keys;function _0(e){return K(kr(G()),kr(G({min:1,max:4294967295}))).map(([t,n])=>{const r=()=>{const i={};return hE((o,a)=>{const c=Ce(o),u=Ce(a),l=Nr(`${t}${c}`)%n,f=Nr(`${t}${u}`)%n,h=e(l,f);return i[`[${c},${u}]`]=h,h},{toString:()=>{const o=dE(i).sort().map(a=>`${a} => ${Ce(i[a])}`).map(a=>`/* ${P0(a)} */`);return`function(a, b) {
20
+ // With hash and stringify coming from fast-check${o.length!==0?`
21
+ ${ge(o,`
22
+ `)}`:""}
23
+ const cmp = ${e};
24
+ const hA = hash('${t}' + stringify(a)) % ${n};
25
+ const hB = hash('${t}' + stringify(b)) % ${n};
26
+ return cmp(hA, hB);
27
+ }`},[Pe]:r})};return r()})}const pE=Object.assign;function j0(){return _0(pE((e,t)=>e<t,{toString(){return"(hA, hB) => hA < hB"}}))}const mE=Object.assign;function F0(){return _0(mE((e,t)=>e-t,{toString(){return"(hA, hB) => hA - hB"}}))}const gE=Object.defineProperties,xE=Object.keys;function R0(e){return K(X(e,{minLength:1}),kr(G())).map(([t,n])=>{const r=()=>{const i={},s=(...a)=>{const c=Ce(a),u=t[Nr(`${n}${c}`)%t.length];return i[c]=u,hn(u)?u[Pe]():u};function o(a){const c=oe(oe($p(xE(i)),u=>`${u} => ${Ce(i[u])}`),u=>`/* ${P0(u)} */`);return`function(...args) {
28
+ // With hash and stringify coming from fast-check${c.length!==0?`
29
+ ${c.join(`
30
+ `)}`:""}
31
+ const outs = ${a};
32
+ return outs[hash('${n}' + stringify(args)) % outs.length];
33
+ }`}return gE(s,{toString:{value:()=>o(Ce(t))},[jt]:{value:()=>o(Ce(t))},[Ft]:{value:async()=>o(await os(t))},[Pe]:{value:r,configurable:!0}})};return r()})}const bE=Number.MIN_SAFE_INTEGER,yE=Number.MAX_SAFE_INTEGER;function Tc(){return new ln(bE,yE)}const wE=Number.MAX_SAFE_INTEGER;function D0(){return new ln(0,wE)}const SE=Number.parseInt;function EE(e){const[t,n]=e;switch(t){case"oct":return`0${Ar(n,8)}`;case"hex":return`0x${Ar(n,16)}`;case"dec":default:return`${n}`}}function Si(e,t){const n=SE(e,t);if(Ar(n,t)!==e)throw new Error("Invalid value");return n}function TE(e){if(typeof e!="string")throw new Error("Invalid type");return e.length>=2&&e[0]==="0"?e[1]==="x"?["hex",Si(we(e,2),16)]:["oct",Si(we(e,1),8)]:["dec",Si(e,10)]}function AE(e){return ge(e,".")}function IE(e){if(typeof e!="string")throw new Error("Invalid type");return oe(Ze(e,"."),t=>Si(t,10))}function bs(){return K(Wt(255),Wt(255),Wt(255),Wt(255)).map(AE,IE)}function vt(e){return K(Fe("dec","oct","hex"),Wt(e)).map(EE,TE)}function io(e){return ge(e,".")}function so(e){if(typeof e!="string")throw new Error("Invalid type");return Ze(e,".")}function Ac(){return Te(K(vt(255),vt(255),vt(255),vt(255)).map(io,so),K(vt(255),vt(255),vt(65535)).map(io,so),K(vt(255),vt(16777215)).map(io,so),vt(4294967295))}function zr(e){return ge(e,"")}function Rt(e){if(typeof e!="string")throw new Error("Cannot unmap the passed value");return[...e]}const qf=Object.assign;function Pr(e={}){const t=fc(),n=Nn(t,Rt),r=qf(qf({},e),{experimentalCustomSlices:n});return X(t,r).map(zr,Rt)}function Ic(e){return e.length===0?[]:Ze(e,":")}function $c(e){const t=Ze(e,":");return t.length>=2&&t[t.length-1].length<=4?[Le(t,0,t.length-2),`${t[t.length-2]}:${t[t.length-1]}`]:[Le(t,0,t.length-1),t[t.length-1]]}function $E(e){return`${ge(e[0],":")}:${e[1]}`}function CE(e){if(typeof e!="string")throw new Error("Invalid type");return $c(e)}function vE(e){return`::${ge(e[0],":")}:${e[1]}`}function ME(e){if(typeof e!="string")throw new Error("Invalid type");if(!gy(e,"::"))throw new Error("Invalid value");return $c(we(e,2))}function Ei(e){return`${ge(e[0],":")}::${ge(e[1],":")}:${e[2]}`}function Ti(e){if(typeof e!="string")throw new Error("Invalid type");const[t,n]=Ze(e,"::",2),[r,i]=$c(n);return[Ic(t),r,i]}function OE(e){return Ei([e[0],[e[1]],e[2]])}function NE(e){const t=Ti(e);return[t[0],ge(t[1],":"),t[2]]}function Vf(e){return`${ge(e[0],":")}::${e[1]}`}function Uf(e){if(typeof e!="string")throw new Error("Invalid type");const[t,n]=Ze(e,"::",2);return[Ic(t),n]}function kE(e){return`${ge(e[0],":")}::`}function PE(e){if(typeof e!="string")throw new Error("Invalid type");if(!xy(e,"::"))throw new Error("Invalid value");return[Ic(we(e,0,e.length-2))]}function _E([e,t]){return`${e}:${t}`}function jE(e){if(typeof e!="string")throw new Error("Invalid type");if(!e.includes(":"))throw new Error("Invalid value");return e.split(":",2)}function Cc(){const e=Pr({minLength:1,maxLength:4,size:"max"}),t=Te(K(e,e).map(_E,jE),bs());return Te(K(X(e,{minLength:6,maxLength:6,size:"max"}),t).map($E,CE),K(X(e,{minLength:5,maxLength:5,size:"max"}),t).map(vE,ME),K(X(e,{minLength:0,maxLength:1,size:"max"}),X(e,{minLength:4,maxLength:4,size:"max"}),t).map(Ei,Ti),K(X(e,{minLength:0,maxLength:2,size:"max"}),X(e,{minLength:3,maxLength:3,size:"max"}),t).map(Ei,Ti),K(X(e,{minLength:0,maxLength:3,size:"max"}),X(e,{minLength:2,maxLength:2,size:"max"}),t).map(Ei,Ti),K(X(e,{minLength:0,maxLength:4,size:"max"}),e,t).map(OE,NE),K(X(e,{minLength:0,maxLength:5,size:"max"}),t).map(Vf,Uf),K(X(e,{minLength:0,maxLength:6,size:"max"}),e).map(Vf,Uf),K(X(e,{minLength:0,maxLength:7,size:"max"})).map(kE,PE))}class zf extends xe{constructor(t){super(),this.name=t,this.underlying=null}generate(t,n){if(!this.underlying)throw new Error(`Lazy arbitrary ${JSON.stringify(this.name)} not correctly initialized`);return this.underlying.generate(t,n)}canShrinkWithoutContext(t){if(!this.underlying)throw new Error(`Lazy arbitrary ${JSON.stringify(this.name)} not correctly initialized`);return this.underlying.canShrinkWithoutContext(t)}shrink(t,n){if(!this.underlying)throw new Error(`Lazy arbitrary ${JSON.stringify(this.name)} not correctly initialized`);return this.underlying.shrink(t,n)}}const FE=Object.create;function vc(e){const t=FE(null),r=e(i=>(_i(t,i)||(t[i]=new zf(String(i))),t[i]));for(const i in r){if(!_i(r,i))continue;const s=t[i],o=s!==void 0?s:new zf(i);o.underlying=r[i],t[i]=o}return r}function RE(e){return ge(oe(e,t=>t[t.length-1]===","?we(t,0,t.length-1):t)," ")}function DE(e){return function(n){if(typeof n!="string")throw new Error("Unsupported type");const r=[];for(const i of Ze(n," "))if(e.canShrinkWithoutContext(i))V(r,i);else if(e.canShrinkWithoutContext(i+","))V(r,i+",");else throw new Error("Unsupported word");return r}}function LE(e){let t=ge(e," ");return t[t.length-1]===","&&(t=we(t,0,t.length-1)),Ha(t[0])+we(t,1)+"."}function BE(e){return function(n){if(typeof n!="string")throw new Error("Unsupported type");if(n.length<2||n[n.length-1]!=="."||n[n.length-2]===","||Ha(na(n[0]))!==n[0])throw new Error("Unsupported value");const r=na(n[0])+we(n,1,n.length-1),i=[],s=Ze(r," ");for(let o=0;o!==s.length;++o){const a=s[o];if(e.canShrinkWithoutContext(a))V(i,a);else if(o===s.length-1&&e.canShrinkWithoutContext(a+","))V(i,a+",");else throw new Error("Unsupported word")}return i}}function qE(e){return ge(e," ")}function VE(e){if(typeof e!="string")throw new Error("Unsupported type");const t=Ze(e,". ");for(let n=0;n<t.length-1;++n)t[n]+=".";return t}const I=(e,t)=>({arbitrary:ke(e),weight:t});function UE(){return Te(I("non",6),I("adipiscing",5),I("ligula",5),I("enim",5),I("pellentesque",5),I("in",5),I("augue",5),I("et",5),I("nulla",5),I("lorem",4),I("sit",4),I("sed",4),I("diam",4),I("fermentum",4),I("ut",4),I("eu",4),I("aliquam",4),I("mauris",4),I("vitae",4),I("felis",4),I("ipsum",3),I("dolor",3),I("amet,",3),I("elit",3),I("euismod",3),I("mi",3),I("orci",3),I("erat",3),I("praesent",3),I("egestas",3),I("leo",3),I("vel",3),I("sapien",3),I("integer",3),I("curabitur",3),I("convallis",3),I("purus",3),I("risus",2),I("suspendisse",2),I("lectus",2),I("nec,",2),I("ultricies",2),I("sed,",2),I("cras",2),I("elementum",2),I("ultrices",2),I("maecenas",2),I("massa,",2),I("varius",2),I("a,",2),I("semper",2),I("proin",2),I("nec",2),I("nisl",2),I("amet",2),I("duis",2),I("congue",2),I("libero",2),I("vestibulum",2),I("pede",2),I("blandit",2),I("sodales",2),I("ante",2),I("nibh",2),I("ac",2),I("aenean",2),I("massa",2),I("suscipit",2),I("sollicitudin",2),I("fusce",2),I("tempus",2),I("aliquam,",2),I("nunc",2),I("ullamcorper",2),I("rhoncus",2),I("metus",2),I("faucibus,",2),I("justo",2),I("magna",2),I("at",2),I("tincidunt",2),I("consectetur",1),I("tortor,",1),I("dignissim",1),I("congue,",1),I("non,",1),I("porttitor,",1),I("nonummy",1),I("molestie,",1),I("est",1),I("eleifend",1),I("mi,",1),I("arcu",1),I("scelerisque",1),I("vitae,",1),I("consequat",1),I("in,",1),I("pretium",1),I("volutpat",1),I("pharetra",1),I("tempor",1),I("bibendum",1),I("odio",1),I("dui",1),I("primis",1),I("faucibus",1),I("luctus",1),I("posuere",1),I("cubilia",1),I("curae,",1),I("hendrerit",1),I("velit",1),I("mauris,",1),I("gravida",1),I("ornare",1),I("ut,",1),I("pulvinar",1),I("varius,",1),I("turpis",1),I("nibh,",1),I("eros",1),I("id",1),I("aliquet",1),I("quis",1),I("lobortis",1),I("consectetuer",1),I("morbi",1),I("vehicula",1),I("tortor",1),I("tellus,",1),I("id,",1),I("eu,",1),I("quam",1),I("feugiat,",1),I("posuere,",1),I("iaculis",1),I("lectus,",1),I("tristique",1),I("mollis,",1),I("nisl,",1),I("vulputate",1),I("sem",1),I("vivamus",1),I("placerat",1),I("imperdiet",1),I("cursus",1),I("rutrum",1),I("iaculis,",1),I("augue,",1),I("lacus",1))}function L0(e={}){const{maxCount:t,mode:n="words",size:r}=e;if(t!==void 0&&t<1)throw new Error("lorem has to produce at least one word/sentence");const i=UE();if(n==="sentences"){const s=X(i,{minLength:1,size:"small"}).map(LE,BE(i));return X(s,{minLength:1,maxLength:t,size:r}).map(qE,VE)}else return X(i,{minLength:1,maxLength:t,size:r}).map(RE,DE(i))}let si=10;function B0(e){const t={};return(n=>{const r=n!==void 0?n:si;if(!_i(t,r)){const i=si;si=r-1,t[r]=e(r),si=i}return t[r]})}function zE(e){let t=0;for(;e>B(0);)e&B(1)&&++t,e>>=B(1);return t}function WE(e,t){const n=(B(1)<<B(t))-B(1),r=e&n;let i=zE(e-r),s=r;for(let o=B(1);o<=n&&i!==0;o<<=B(1))s&o||(s|=o,--i);return s}function oi(e,t){const n=[];for(let r=e.length-1;r!==-1;--r)t(e[r])!==e[r]&&V(n,r);return n}function GE(e,t,n){let r=B(0);for(let i=0,s=B(1);i!==n.length;++i,s<<=B(1))e[n[i]]!==t[n[i]]&&(r|=s);return r}function oo(e,t,n,r){for(let i=0,s=B(1);i!==n.length;++i,s<<=B(1))t&s&&(e[n[i]]=r(e[n[i]]))}class KE extends xe{constructor(t,n,r){super(),this.stringArb=t,this.toggleCase=n,this.untoggleAll=r}buildContextFor(t,n){return{rawString:t.value,rawStringContext:t.context,flags:n.value,flagsContext:n.context}}generate(t,n){const r=this.stringArb.generate(t,n),i=[...r.value],s=oi(i,this.toggleCase),a=ji(s.length).generate(t,void 0);return oo(i,a.value,s,this.toggleCase),new F(ge(i,""),this.buildContextFor(r,a))}canShrinkWithoutContext(t){return typeof t!="string"?!1:this.untoggleAll!==void 0?this.stringArb.canShrinkWithoutContext(this.untoggleAll(t)):this.stringArb.canShrinkWithoutContext(t)}shrink(t,n){let r;if(n!==void 0)r=n;else if(this.untoggleAll!==void 0){const o=this.untoggleAll(t),a=[...t],c=[...o],u=oi(c,this.toggleCase);r={rawString:o,rawStringContext:void 0,flags:GE(c,a,u),flagsContext:void 0}}else r={rawString:t,rawStringContext:void 0,flags:B(0),flagsContext:void 0};const i=r.rawString,s=r.flags;return this.stringArb.shrink(i,r.rawStringContext).map(o=>{const a=[...o.value],c=oi(a,this.toggleCase),u=WE(s,c.length);return oo(a,u,c,this.toggleCase),new F(ge(a,""),this.buildContextFor(o,new F(u,void 0)))}).join(on(()=>{const o=[...i],a=oi(o,this.toggleCase);return ji(a.length).shrink(s,r.flagsContext).map(c=>{const u=Le(o);return oo(u,c.value,a,this.toggleCase),new F(ge(u,""),this.buildContextFor(new F(i,r.rawStringContext),c))})}))}}function HE(e){const t=Ha(e);return t!==e?t:na(e)}function q0(e,t){if(typeof B>"u")throw new H("mixedCase requires BigInt support");const n=t&&t.toggleCase||HE,r=t&&t.untoggleAll;return new KE(e,n,r)}function YE(e){return Sp.from(e)}function JE(e){if(!(e instanceof Sp))throw new Error("Unexpected type");return[...e]}function Mc(e={}){return X(xs(e),e).map(YE,JE)}function ZE(e){return Ep.from(e)}function XE(e){if(!(e instanceof Ep))throw new Error("Unexpected type");return[...e]}function Oc(e={}){return X(Ur(e),e).map(ZE,XE)}var QE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ht(e,t,n,r,i){const s=r.name,{min:o=t,max:a=n}=e,c=QE(e,["min","max"]);if(o>a)throw new Error(`Invalid range passed to ${s}: min must be lower than or equal to max`);if(o<t)throw new Error(`Invalid min value passed to ${s}: min must be greater than or equal to ${t}`);if(a>n)throw new Error(`Invalid max value passed to ${s}: max must be lower than or equal to ${n}`);return X(i({min:o,max:a}),c).map(u=>r.from(u),u=>{if(!(u instanceof r))throw new Error("Invalid type");return[...u]})}function Nc(e={}){return Ht(e,-32768,32767,Ob,G)}function kc(e={}){return Ht(e,-2147483648,2147483647,Nb,G)}function Pc(e={}){return Ht(e,-128,127,Mb,G)}function _c(e={}){return Ht(e,0,65535,_b,G)}function jc(e={}){return Ht(e,0,4294967295,jb,G)}function Fc(e={}){return Ht(e,0,255,kb,G)}function Rc(e={}){return Ht(e,0,255,Pb,G)}function eT(e){return e!==void 0}function Wf(e){return e.hasToBeCloned?new F(e.value_,{generatorContext:e.context},()=>e.value):new F(e.value_,{generatorContext:e.context})}function Gf(e){return e.hasToBeCloned?new F(e.value_,{shrinkerContext:e.context},()=>e.value):new F(e.value_,{shrinkerContext:e.context})}class tT extends xe{constructor(t,n){super(),this.generatorArbitrary=t,this.shrinkerArbitrary=n}generate(t,n){return Wf(this.generatorArbitrary.generate(t,n))}canShrinkWithoutContext(t){return this.shrinkerArbitrary.canShrinkWithoutContext(t)}shrink(t,n){return eT(n)?"generatorContext"in n?this.generatorArbitrary.shrink(t,n.generatorContext).map(Wf):this.shrinkerArbitrary.shrink(t,n.shrinkerContext).map(Gf):this.shrinkerArbitrary.shrink(t,void 0).map(Gf)}}function da(e,t,n){const r=G({min:e,max:t});if(t===n)return r;const i=G({min:e,max:n});return new tT(r,i)}const nT=Math.min,pa=Math.max,Kf=yp.isArray,rT=Object.entries;function iT(e){let t=-1;for(let n=0;n!==e.length;++n)t=pa(t,e[n][0]);return t}function sT(e,t){const n=yp(e);for(let r=0;r!==t.length;++r){const i=t[r];i[0]<e&&(n[i[0]]=i[1])}return n}function Dc(e,t={}){const{size:n,minNumElements:r=0,maxLength:i=vn,maxNumElements:s=i,noTrailingHole:o,depthIdentifier:a}=t,c=Cr(n,r,s,t.maxNumElements!==void 0),u=Cr(n,c,i,t.maxLength!==void 0);if(r>i)throw new Error("The minimal number of non-hole elements cannot be higher than the maximal length of the array");if(r>s)throw new Error("The minimal number of non-hole elements cannot be higher than the maximal number of non-holes");const l=nT(s,i),f=t.maxNumElements!==void 0||n!==void 0?n:"=",h=pa(u-1,0),d=pa(i-1,0),m=On(K(da(0,h,d),e),{size:f,minLength:r,maxLength:l,selector:p=>p[0],depthIdentifier:a}).map(p=>{const b=iT(p);return sT(b+1,p)},p=>{if(!Kf(p))throw new Error("Not supported entry type");if(o&&p.length!==0&&!(p.length-1 in p))throw new Error("No trailing hole");return oe(rT(p),b=>[Number(b[0]),b[1]])});return o||i===r?m:K(m,da(r,u,i)).map(p=>{const b=p[0],T=p[1];if(b.length>=T)return b;const $=Le(b);return $.length=T,$},p=>{if(!Kf(p))throw new Error("Not supported entry type");return[p,p.length]})}function oT(e){return new Map(e)}function aT(e){if(typeof e!="object"||e===null)throw new Error("Incompatible instance received: should be a non-null object");if(!("constructor"in e)||e.constructor!==Map)throw new Error("Incompatible instance received: should be of exact type Map");return Array.from(e)}function cT(e){return new Set(e)}function uT(e){if(typeof e!="object"||e===null)throw new Error("Incompatible instance received: should be a non-null object");if(!("constructor"in e)||e.constructor!==Set)throw new Error("Incompatible instance received: should be of exact type Set");return Array.from(e)}function Hf(e,t,n,r,i){return On(K(e,t),{maxLength:n,size:r,comparator:"SameValueZero",selector:s=>s[0],depthIdentifier:i}).map(oT,aT)}function lT(e,t,n,r,i,s){return ms(e,t,{maxKeys:n,noNullPrototype:!s,size:r,depthIdentifier:i})}function fT(e,t,n,r){return On(e,{maxLength:t,size:n,comparator:"SameValueZero",depthIdentifier:r}).map(cT,uT)}function hT(e){return Te(Pc(e),Fc(e),Rc(e),Nc(e),_c(e),kc(e),jc(e),Mc(e),Oc(e))}function V0(e){const t=e.values,n=e.depthSize,r=nc(),i=e.maxDepth,s=e.maxKeys,o=e.size,a=Te(...t,...e.withBigInt?[Vr()]:[],...e.withDate?[ps()]:[]);return vc(c=>({anything:Te({maxDepth:i,depthSize:n,depthIdentifier:r},a,c("array"),c("object"),...e.withMap?[c("map")]:[],...e.withSet?[c("set")]:[],...e.withObjectString?[c("anything").map(u=>Ce(u))]:[],...e.withTypedArray?[hT({maxLength:s,size:o})]:[],...e.withSparseArray?[Dc(c("anything"),{maxNumElements:s,size:o,depthIdentifier:r})]:[]),keys:e.withObjectString?Te({arbitrary:e.key,weight:10},{arbitrary:c("anything").map(u=>Ce(u)),weight:1}):e.key,array:X(c("anything"),{maxLength:s,size:o,depthIdentifier:r}),set:fT(c("anything"),s,o,r),map:Te(Hf(c("keys"),c("anything"),s,o,r),Hf(c("anything"),c("anything"),s,o,r)),object:lT(c("keys"),c("anything"),s,o,r,e.withNullPrototype)})).anything}const Yf=Object.assign;function ys(e={}){const t=ds(),n=Nn(t,Rt),r=Yf(Yf({},e),{experimentalCustomSlices:n});return X(t,r).map(zr,Rt)}function dT(e){switch(typeof e){case"boolean":return new wp(e);case"number":return new Ga(e);case"string":return new dn(e);default:return e}}function pT(e){return typeof e!="object"||e===null||!("constructor"in e)?e:e.constructor===wp||e.constructor===Ga||e.constructor===dn?e.valueOf():e}function mT(e){return e.map(dT,pT)}function gT(e,t){return[kt(),Tc(),Ur(),t(e),Te(t(e),ke(null),ke(void 0))]}function xT(e){return e.map(t=>mT(t))}function bT(e,t){return t?xT(e).concat(e):e}function U0(e={}){function t(i,s){return i!==void 0?i:s}const n="stringUnit"in e?tt:e.withUnicodeString?ys:tt,r={size:e.size,unit:e.stringUnit};return{key:t(e.key,n(r)),values:bT(t(e.values,gT(r,n)),t(e.withBoxedValues,!1)),depthSize:e.depthSize,maxDepth:e.maxDepth,maxKeys:e.maxKeys,size:e.size,withSet:t(e.withSet,!1),withMap:t(e.withMap,!1),withObjectString:t(e.withObjectString,!1),withNullPrototype:t(e.withNullPrototype,!1),withBigInt:t(e.withBigInt,!1),withDate:t(e.withDate,!1),withTypedArray:t(e.withTypedArray,!1),withSparseArray:t(e.withSparseArray,!1)}}function yT(e){return ms(e.key,V0(e),{maxKeys:e.maxKeys,noNullPrototype:!e.withNullPrototype,size:e.size})}function z0(e){return yT(U0(e))}function W0(e,t){const{depthSize:n,maxDepth:r}=t,i=e,s=[kt(),Ur({noDefaultInfinity:!0,noNaN:!0}),e,ke(null)];return{key:i,values:s,depthSize:n,maxDepth:r}}function ws(e){return V0(U0(e))}function Lc(e={}){const t=e.noUnicodeString===void 0||e.noUnicodeString===!0,n="stringUnit"in e?tt({unit:e.stringUnit}):t?tt():ys();return ws(W0(n,e))}function G0(e={}){return Lc(e).map(JSON.stringify)}const Jf=Object.assign;function Bc(e={}){const t=dc(),n=Nn(t,Rt),r=Jf(Jf({},e),{experimentalCustomSlices:n});return X(t,r).map(zr,Rt)}function qc(e={}){return ws(W0(Bc(),e))}function K0(e={}){return qc(e).map(JSON.stringify)}const wT=Object.keys,ST=Object.getOwnPropertySymbols,ET=Object.getOwnPropertyDescriptor;function TT(e){const t=wT(e),n=ST(e);for(let r=0;r!==n.length;++r){const i=n[r],s=ET(e,i);s&&s.enumerable&&t.push(i)}return t}const AT=Object.create,IT=Object.defineProperty,$T=Object.getOwnPropertyDescriptor,CT=Object.getOwnPropertyNames,vT=Object.getOwnPropertySymbols;function MT(e,t){return function(r){const i=r[1]?AT(null):{};for(let s=0;s!==e.length;++s){const o=r[0][s];o!==t&&IT(i,e[s],{value:o,configurable:!0,enumerable:!0,writable:!0})}return i}}function OT(e,t){return function(r){if(typeof r!="object"||r===null)throw new Error("Incompatible instance received: should be a non-null object");const i=Object.getPrototypeOf(r)===null,s="constructor"in r&&r.constructor===Object;if(!i&&!s)throw new Error("Incompatible instance received: should be of exact type Object");let o=0;const a=[];for(let l=0;l!==e.length;++l){const f=$T(r,e[l]);if(f!==void 0){if(!f.configurable||!f.enumerable||!f.writable)throw new Error("Incompatible instance received: should contain only c/e/w properties");if(f.get!==void 0||f.set!==void 0)throw new Error("Incompatible instance received: should contain only no get/set properties");++o,V(a,f.value)}else V(a,t)}const c=CT(r).length,u=vT(r).length;if(o!==c+u)throw new Error("Incompatible instance received: should not contain extra properties");return[a,i]}}const ao=Symbol("no-key");function co(e,t,n){const r=TT(e),i=[];for(let s=0;s!==r.length;++s){const o=r[s],a=e[o];t===void 0||zt(t,o)!==-1?V(i,a):V(i,Kt(a,{nil:ao}))}return K(K(...i),n?ke(!1):kt()).map(MT(r,ao),OT(r,ao))}function yn(e,t){const n=t===void 0||t.noNullPrototype===void 0||t.noNullPrototype;if(t==null)return co(e,void 0,n);if("withDeletedKeys"in t&&"requiredKeys"in t)throw new Error("requiredKeys and withDeletedKeys cannot be used together in fc.record");if(!("requiredKeys"in t&&t.requiredKeys!==void 0||"withDeletedKeys"in t&&!!t.withDeletedKeys))return co(e,void 0,n);const i=("requiredKeys"in t?t.requiredKeys:void 0)||[];for(let s=0;s!==i.length;++s){const o=Object.getOwnPropertyDescriptor(e,i[s]);if(o===void 0)throw new Error("requiredKeys cannot reference keys that have not been defined in recordModel");if(!o.enumerable)throw new Error("requiredKeys cannot reference keys that have are enumerable in recordModel")}return co(e,i,n)}const NT=Object.defineProperties;function uo(e){return`Stream(${ge(e,",")}…)`}class kT extends xe{constructor(t){super(),this.arb=t}generate(t,n){const r=n!==void 0&&t.nextInt(1,n)===1?n:void 0,i=()=>{const s=[],o=function*(c,u){for(;;){const l=c.generate(u,r).value;V(s,l),yield l}},a=new z(o(this.arb,t.clone()));return NT(a,{toString:{value:()=>uo(s.map(Ce))},[jt]:{value:()=>uo(s.map(Ce))},[Ft]:{value:async()=>uo(await Promise.all(s.map(os)))},[Pe]:{value:i,enumerable:!0}})};return new F(i(),void 0)}canShrinkWithoutContext(t){return!1}shrink(t,n){return z.nil()}}function H0(e){return new kT(e)}const Zf=Object.assign;function Y0(e={}){const t=oc(),n=Nn(t,Rt),r=Zf(Zf({},e),{experimentalCustomSlices:n});return X(t,r).map(zr,Rt)}function PT(e){switch(e.length%4){case 0:return e;case 3:return`${e}=`;case 2:return`${e}==`;default:return we(e,1)}}function _T(e){if(typeof e!="string"||e.length%4!==0)throw new Error("Invalid string received");const t=e.indexOf("=");if(t===-1)return e;if(e.length-t>2)throw new Error("Cannot unmap the passed value");return we(e,0,t)}function J0(e={}){const{minLength:t=0,maxLength:n=vn,size:r}=e,i=t+3-(t+3)%4,s=n-n%4,o=e.maxLength===void 0&&r===void 0?"=":r;if(i>s)throw new Error("Minimal length should be inferior or equal to maximal length");if(i%4!==0)throw new Error("Minimal length of base64 strings must be a multiple of 4");if(s%4!==0)throw new Error("Maximal length of base64 strings must be a multiple of 4");const a=ac(),c=Nn(a,Rt);return X(a,{minLength:i,maxLength:s,size:o,experimentalCustomSlices:c}).map(zr,Rt).map(PT,_T)}function jT(e){return ge(e,"")}function Xf(e){if(typeof e!="string")throw new Error("Cannot unmap the passed value");return Ze(e,"")}const Qf=Object.assign;function Z0(e={}){const t=uc(),n=Nn(t,Xf),r=Qf(Qf({},e),{experimentalCustomSlices:n});return X(t,r).map(jT,Xf)}const eh=Object.assign;function tn(e,t={}){const n=y0(e,t),r=Nn(e,n),i=eh(eh({},t),{experimentalCustomSlices:r});return X(e,i).map(g0,n)}const th=Object.is;function FT(e,t){const n=new Dr;let r=0;for(const i of e)if(th(i,-0))++r;else{const s=un(n,i)||0;An(n,i,s+1)}for(let i=0;i!==t.length;++i){if(!(i in t))return!1;const s=t[i];if(th(s,-0)){if(r===0)return!1;--r}else{const o=un(n,s)||0;if(o===0)return!1;An(n,s,o-1)}}return!0}const RT=Math.floor,nh=Math.log,DT=Array.isArray;class X0 extends xe{constructor(t,n,r,i){if(super(),this.originalArray=t,this.isOrdered=n,this.minLength=r,this.maxLength=i,r<0||r>t.length)throw new Error("fc.*{s|S}ubarrayOf expects the minimal length to be between 0 and the size of the original array");if(i<0||i>t.length)throw new Error("fc.*{s|S}ubarrayOf expects the maximal length to be between 0 and the size of the original array");if(r>i)throw new Error("fc.*{s|S}ubarrayOf expects the minimal length to be inferior or equal to the maximal length");this.lengthArb=new ln(r,i),this.biasedLengthArb=r!==i?new ln(r,r+RT(nh(i-r)/nh(2))):this.lengthArb}generate(t,n){const i=(n!==void 0&&t.nextInt(1,n)===1?this.biasedLengthArb:this.lengthArb).generate(t,void 0),s=i.value,o=oe(this.originalArray,(c,u)=>u),a=[];for(let c=0;c!==s;++c){const u=t.nextInt(0,o.length-1);V(a,o[u]),Ip(o,u,1)}return this.isOrdered&&$p(a,(c,u)=>c-u),new F(oe(a,c=>this.originalArray[c]),i.context)}canShrinkWithoutContext(t){return!DT(t)||!this.lengthArb.canShrinkWithoutContext(t.length)?!1:FT(this.originalArray,t)}shrink(t,n){return t.length===0?z.nil():this.lengthArb.shrink(t.length,n).map(r=>new F(Le(t,t.length-r.value),r.context)).join(t.length>this.minLength?on(()=>this.shrink(Le(t,1),void 0).filter(r=>this.minLength<=r.value.length+1).map(r=>new F([t[0],...r.value],void 0))):z.nil())}}function Q0(e,t={}){const{minLength:n=0,maxLength:r=e.length}=t;return new X0(e,!0,n,r)}function em(e,t={}){const{minLength:n=0,maxLength:r=e.length}=t;return new X0(e,!1,n,r)}const LT={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F",16:"G",17:"H",18:"J",19:"K",20:"M",21:"N",22:"P",23:"Q",24:"R",25:"S",26:"T",27:"V",28:"W",29:"X",30:"Y",31:"Z"},BT={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,J:18,K:19,M:20,N:21,P:22,Q:23,R:24,S:25,T:26,V:27,W:28,X:29,Y:30,Z:31};function qT(e){return e<10?dn(e):LT[e]}function rh(e,t){let n="";for(;e.length+n.length<t;)n+="0";return n+e}function ih(e){let t="";for(let n=e;n!==0;){const r=n>>5,i=n-(r<<5);t=qT(i)+t,n=r}return t}function VT(e,t){const n=~~(e/1073741824),r=e&1073741823;return rh(ih(n),t-6)+rh(ih(r),6)}function tm(e){return function(n){return VT(n,e)}}function lo(e){if(typeof e!="string")throw new H("Unsupported type");let t=0,n=1;for(let r=e.length-1;r>=0;--r){const i=e[r],s=BT[i];if(s===void 0)throw new H("Unsupported type");t+=s*n,n*=32}return t}const UT=tm(10),sh=tm(8);function zT(e){return UT(e[0])+sh(e[1])+sh(e[2])}function WT(e){if(typeof e!="string"||e.length!==26)throw new Error("Unsupported type");return[lo(e.slice(0,10)),lo(e.slice(10,18)),lo(e.slice(18))]}function nm(){const e=G({min:0,max:0xffffffffffff}),t=G({min:0,max:0xffffffffff}),n=G({min:0,max:0xffffffffff});return K(e,t,n).map(zT,WT)}function rm(e){return by(Ar(e,16),8,"0")}function GT(e){if(typeof e!="string")throw new Error("Unsupported type");if(e.length!==8)throw new Error("Unsupported value: invalid length");const t=parseInt(e,16);if(e!==rm(t))throw new Error("Unsupported value: invalid content");return t}function zn(e,t){return G({min:e,max:t}).map(rm,GT)}function im(e){return`${e[0]}-${we(e[1],4)}-${we(e[1],0,4)}-${we(e[2],0,4)}-${we(e[2],4)}${e[3]}`}const KT=/^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/;function sm(e){if(typeof e!="string")throw new Error("Unsupported type");const t=KT.exec(e);if(t===null)throw new Error("Unsupported type");return[t[1],t[3]+t[2],t[4]+we(t[5],0,4),we(t[5],4)]}const oh="0123456789abcdef";function HT(e){const t={},n={};for(let s=0;s!==e.length;++s){const o=oh[s],a=oh[e[s]];t[o]=a,n[a]=o}function r(s){return t[s[0]]+we(s,1)}function i(s){if(typeof s!="string")throw new H("Cannot produce non-string values");const o=n[s[0]];if(o===void 0)throw new H("Cannot produce strings not starting by the version in hexa code");return o+we(s,1)}return{versionsApplierMapper:r,versionsApplierUnmapper:i}}function YT(e){const t={};for(const n of e){if(t[n])throw new H(`Version ${n} has been requested at least twice for uuid`);if(t[n]=!0,n<1||n>15)throw new H(`Version must be a value in [1-15] for uuid, but received ${n}`);if(~~n!==n)throw new H(`Version must be an integer value for uuid, but received ${n}`)}if(e.length===0)throw new H("Must provide at least one version for uuid")}function Di(e={}){const t=zn(0,4294967295),n=e.version!==void 0?typeof e.version=="number"?[e.version]:e.version:[1,2,3,4,5];YT(n);const{versionsApplierMapper:r,versionsApplierUnmapper:i}=HT(n),s=zn(0,268435456*n.length-1).map(r,i),o=zn(2147483648,3221225471);return K(t,s,o,t).map(im,sm)}function om(e){const t=zn(0,4294967295),n=e*268435456,r=zn(n,n+268435455),i=zn(2147483648,3221225471);return K(t,r,i,t).map(im,sm)}function JT(e){return tt({unit:bc("-._~!$&'()*+,;=:"),size:e})}function ZT([e,t,n]){return(e===null?"":`${e}@`)+t+(n===null?"":`:${n}`)}function XT(e){if(typeof e!="string")throw new Error("Unsupported");const t=e.indexOf("@"),n=t!==-1?e.substring(0,t):null,i=/:(\d+)$/.exec(e),s=i!==null?Number(i[1]):null,o=i!==null?e.substring(t+1,e.length-i[1].length-1):e.substring(t+1);return[n,o,s]}function QT(e){return`[${e}]`}function eA(e){if(typeof e!="string"||e[0]!=="["||e[e.length-1]!=="]")throw new Error("Unsupported");return e.substring(1,e.length-1)}function Vc(e){const t=e||{},n=t.size,r=[gs({size:n}),...t.withIPv4===!0?[bs()]:[],...t.withIPv6===!0?[Cc().map(QT,eA)]:[],...t.withIPv4Extended===!0?[Ac()]:[]];return K(t.withUserInfo===!0?Kt(JT(n)):ke(null),Te(...r),t.withPort===!0?Kt(Wt(65535)):ke(null)).map(ZT,XT)}function am(e){return tt({unit:bc("-._~!$&'()*+,;=:@/?"),size:e})}function Uc(e={}){return am(e.size)}function zc(e={}){return tt({unit:bc("-._~!$&'()*+,;=:@"),size:e.size})}function tA(e){return ge(oe(e,t=>`/${t}`),"")}function nA(e){if(typeof e!="string")throw new Error("Incompatible value received: type");if(e.length!==0&&e[0]!=="/")throw new Error("Incompatible value received: start");return Ip(Ze(e,"/"),1)}function rA(e){switch(e){case"xsmall":return["xsmall","xsmall"];case"small":return["small","xsmall"];case"medium":return["small","small"];case"large":return["medium","small"];case"xlarge":return["medium","medium"]}}function fo(e,t){return X(zc({size:e}),{size:t}).map(tA,nA)}function iA(e){const[t,n]=rA(e);return t===n?fo(t,n):Te(fo(t,n),fo(n,t))}function Wc(e){const n=ic((e||{}).size);return iA(n)}function Gc(e={}){return am(e.size)}function sA(e){const[t,n,r]=e,i=e[3]===null?"":`?${e[3]}`,s=e[4]===null?"":`#${e[4]}`;return`${t}://${n}${r}${i}${s}`}const oA=/^([[A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)([^?#]*)(\?[A-Za-z0-9\-._~!$&'()*+,;=:@/?%]*)?(#[A-Za-z0-9\-._~!$&'()*+,;=:@/?%]*)?$/;function aA(e){if(typeof e!="string")throw new Error("Incompatible value received: type");const t=oA.exec(e);if(t===null)throw new Error("Incompatible value received");const n=t[1],r=t[2],i=t[3],s=t[4],o=t[5];return[n,r,i,s!==void 0?s.substring(1):null,o!==void 0?o.substring(1):null]}const ah=Object.assign;function Kc(e){const t=e||{},n=ic(t.size),r=t.authoritySettings!==void 0&&t.authoritySettings.size!==void 0?qr(t.authoritySettings.size,n):n,i=ah(ah({},t.authoritySettings),{size:r}),s=t.validSchemes||["http","https"],o=Fe(...s),a=Vc(i);return K(o,a,Wc({size:n}),t.withQueryParameters===!0?Kt(Gc({size:n})):ke(null),t.withFragments===!0?Kt(Uc({size:n})):ke(null)).map(sA,aA)}class Hc{constructor(t,n){this.commands=t,this.metadataForReplay=n}[Symbol.iterator](){return this.commands[Symbol.iterator]()}[Pe](){return new Hc(this.commands.map(t=>t.clone()),this.metadataForReplay)}toString(){const t=this.commands.filter(r=>r.hasRan).map(r=>r.toString()).join(","),n=this.metadataForReplay();return n.length!==0?`${t} /*${n}*/`:t}}class Li{constructor(t){if(this.cmd=t,this.hasRan=!1,is(t)){const n=t[jt];this[jt]=function(){return n.call(t)}}if(ss(t)){const n=t[Ft];this[Ft]=function(){return n.call(t)}}}check(t){return this.cmd.check(t)}run(t,n){return this.hasRan=!0,this.cmd.run(t,n)}clone(){return hn(this.cmd)?new Li(this.cmd[Pe]()):new Li(this.cmd)}toString(){return this.cmd.toString()}}class ch{static parse(t){const[n,r]=t.split(":"),i=this.parseCounts(n),s=this.parseChanges(r);return this.parseOccurences(i,s)}static stringify(t){const n=this.countOccurences(t),r=this.stringifyCounts(n),i=this.stringifyChanges(n);return`${r}:${i}`}static intToB64(t){return t<26?String.fromCharCode(t+65):t<52?String.fromCharCode(t+97-26):t<62?String.fromCharCode(t+48-52):String.fromCharCode(t===62?43:47)}static b64ToInt(t){return t>="a"?t.charCodeAt(0)-97+26:t>="A"?t.charCodeAt(0)-65:t>="0"?t.charCodeAt(0)-48+52:t==="+"?62:63}static countOccurences(t){return t.reduce((n,r)=>(n.length===0||n[n.length-1].count===64||n[n.length-1].value!==r?n.push({value:r,count:1}):n[n.length-1].count+=1,n),[])}static parseOccurences(t,n){const r=[];for(let i=0;i!==t.length;++i){const s=t[i],o=n[i];for(let a=0;a!==s;++a)r.push(o)}return r}static stringifyChanges(t){let n="";for(let r=0;r<t.length;r+=6){const i=t.slice(r,r+6).reduceRight((s,o)=>s*2+(o.value?1:0),0);n+=this.intToB64(i)}return n}static parseChanges(t){const n=t.split("").map(i=>this.b64ToInt(i)),r=[];for(let i=0;i!==n.length;++i){let s=n[i];for(let o=0;o!==6;++o,s>>=1)r.push(s%2===1)}return r}static stringifyCounts(t){return t.map(({count:n})=>this.intToB64(n-1)).join("")}static parseCounts(t){return t.split("").map(n=>this.b64ToInt(n)+1)}}class cA extends xe{constructor(t,n,r,i,s){super(),this.sourceReplayPath=i,this.disableReplayLog=s,this.oneCommandArb=Te(...t).map(o=>new Li(o)),this.lengthArb=da(0,n,r),this.replayPath=[],this.replayPathPosition=0}metadataForReplay(){return this.disableReplayLog?"":`replayPath=${JSON.stringify(ch.stringify(this.replayPath))}`}buildValueFor(t,n){const r=t.map(s=>s.value_),i={shrunkOnce:n,items:t};return new F(new Hc(r,()=>this.metadataForReplay()),i)}generate(t){const r=this.lengthArb.generate(t,void 0).value,i=Array(r);for(let s=0;s!==r;++s){const o=this.oneCommandArb.generate(t,void 0);i[s]=o}return this.replayPathPosition=0,this.buildValueFor(i,!1)}canShrinkWithoutContext(t){return!1}filterOnExecution(t){const n=[];for(const r of t)r.value_.hasRan?(this.replayPath.push(!0),n.push(r)):this.replayPath.push(!1);return n}filterOnReplay(t){return t.filter((n,r)=>{const i=this.replayPath[this.replayPathPosition+r];if(i===void 0)throw new Error("Too short replayPath");if(!i&&n.value_.hasRan)throw new Error("Mismatch between replayPath and real execution");return i})}filterForShrinkImpl(t){this.replayPathPosition===0&&(this.replayPath=this.sourceReplayPath!==null?ch.parse(this.sourceReplayPath):[]);const n=this.replayPathPosition<this.replayPath.length?this.filterOnReplay(t):this.filterOnExecution(t);return this.replayPathPosition+=t.length,n}shrink(t,n){if(n===void 0)return z.nil();const r=n,i=r.shrunkOnce,s=r.items,o=this.filterForShrinkImpl(s);if(o.length===0)return z.nil();const a=i?z.nil():new z([[]][Symbol.iterator]()),c=[];for(let u=0;u!==o.length;++u)c.push(on(()=>{const l=o.slice(0,u);return this.lengthArb.shrink(o.length-1-u,void 0).map(f=>l.concat(o.slice(o.length-(f.value+1))))}));for(let u=0;u!==o.length;++u)c.push(on(()=>this.oneCommandArb.shrink(o[u].value_,o[u].context).map(l=>o.slice(0,u).concat([l],o.slice(u+1)))));return a.join(...c).map(u=>this.buildValueFor(u.map(l=>new F(l.value_.clone(),l.context)),!0))}}function cm(e,t={}){const{size:n,maxCommands:r=vn,disableReplayLog:i=!1,replayPath:s=null}=t,o=t.maxCommands!==void 0,a=Cr(n,0,r,o);return new cA(e,a,r,s,i)}class uA{constructor(t,n){this.s=t,this.cmd=n}async check(t){let n=null,r=!1;if((await this.s.scheduleSequence([{label:`check@${this.cmd.toString()}`,builder:async()=>{try{r=await Promise.resolve(this.cmd.check(t))}catch(s){throw n=s,s}}}]).task).faulty)throw n;return r}async run(t,n){let r=null;if((await this.s.scheduleSequence([{label:`run@${this.cmd.toString()}`,builder:async()=>{try{await this.cmd.run(t,n)}catch(s){throw r=s,s}}}]).task).faulty)throw r}}const lA=function*(e,t){for(const n of t)yield new uA(e,n)},um=(e,t,n,r,i)=>e.then(s=>{const{model:o,real:a}=s;let c=n;for(const u of t)c=i(c,()=>r(u,o,a));return c}),fA=(e,t)=>um({then:s=>{s(e())}},t,void 0,(s,o,a)=>{s.check(o)&&s.run(o,a)},(s,o)=>o()),hA=e=>typeof e.then=="function",lm=async(e,t,n=Promise.resolve())=>await um({then:o=>{const a=e();return hA(a)?a.then(o):o(a)}},t,n,async(o,a,c)=>{await o.check(a)&&await o.run(a,c)},(o,a)=>o.then(a));function fm(e,t){fA(e,t)}async function hm(e,t){await lm(e,t)}async function dm(e,t,n){const r=lA(e,n),i=lm(t,r,e.schedule(Promise.resolve(),"startModel"));await e.waitFor(i),await e.waitAll()}const ai=e=>e();class _r{constructor(t,n){this.act=t,this.taskSelector=n,this.lastTaskId=0,this.sourceTaskSelector=n.clone(),this.scheduledTasks=[],this.triggeredTasks=[],this.scheduledWatchers=[]}static buildLog(t){return`[task\${${t.taskId}}] ${t.label.length!==0?`${t.schedulingType}::${t.label}`:t.schedulingType} ${t.status}${t.outputValue!==void 0?` with value ${fE(t.outputValue)}`:""}`}log(t,n,r,i,s,o){this.triggeredTasks.push({status:s,schedulingType:t,taskId:n,label:r,metadata:i,outputValue:o!==void 0?Ce(o):void 0})}scheduleInternal(t,n,r,i,s,o){let a=null;const c=++this.lastTaskId,u=new Promise((l,f)=>{a=()=>{(o?r.then(()=>o()):r).then(h=>(this.log(t,c,n,i,"resolved",h),l(h)),h=>(this.log(t,c,n,i,"rejected",h),f(h)))}});return this.scheduledTasks.push({original:r,scheduled:u,trigger:a,schedulingType:t,taskId:c,label:n,metadata:i,customAct:s}),this.scheduledWatchers.length!==0&&this.scheduledWatchers[0](),u}schedule(t,n,r,i){return this.scheduleInternal("promise",n||"",t,r,i||ai)}scheduleFunction(t,n){return(...r)=>this.scheduleInternal("function",`${t.name}(${r.map(Ce).join(",")})`,t(...r),void 0,n||ai)}scheduleSequence(t,n){const r={done:!1,faulty:!1},i={then:a=>a()};let s=()=>{};const o=new Promise(a=>s=a);return t.reduce((a,c)=>{const[u,l,f]=typeof c=="function"?[c,c.name,void 0]:[c.builder,c.label,c.metadata];return a.then(()=>{const h=this.scheduleInternal("sequence",l,i,f,n||ai,()=>u());return h.catch(()=>{r.faulty=!0,s()}),h})},i).then(()=>{r.done=!0,s()},()=>{}),Object.assign(r,{task:Promise.resolve(o).then(()=>({done:r.done,faulty:r.faulty}))})}count(){return this.scheduledTasks.length}internalWaitOne(){if(this.scheduledTasks.length===0)throw new Error("No task scheduled");const t=this.taskSelector.nextTaskIndex(this.scheduledTasks),[n]=this.scheduledTasks.splice(t,1);return n.customAct(async()=>{n.trigger();try{await n.scheduled}catch{}})}async waitOne(t){const n=t||ai;await this.act(()=>n(async()=>await this.internalWaitOne()))}async waitAll(t){for(;this.scheduledTasks.length>0;)await this.waitOne(t)}async waitFor(t,n){let r=!1,i=null;const s=async()=>{for(;!r&&this.scheduledTasks.length>0;)await this.waitOne(n);i=null},o=()=>{i===null&&(i=Promise.resolve().then(s))},a=()=>{const u=this.scheduledWatchers.indexOf(o);u!==-1&&this.scheduledWatchers.splice(u,1),u===0&&this.scheduledWatchers.length!==0&&this.scheduledWatchers[0]()},c=t.then(u=>(r=!0,i===null?(a(),u):i.then(()=>(a(),u))),u=>{if(r=!0,i===null)throw a(),u;return i.then(()=>{throw a(),u})});return this.scheduledTasks.length>0&&this.scheduledWatchers.length===0&&o(),this.scheduledWatchers.push(o),c}report(){return[...this.triggeredTasks,...this.scheduledTasks.map(t=>({status:"pending",schedulingType:t.schedulingType,taskId:t.taskId,label:t.label,metadata:t.metadata}))]}toString(){return"schedulerFor()`\n"+this.report().map(_r.buildLog).map(t=>`-> ${t}`).join(`
34
+ `)+"`"}[Pe](){return new _r(this.act,this.sourceTaskSelector)}}function pm(e){let t=0;return{clone:()=>pm(e),nextTaskIndex:n=>{if(e.length<=t)throw new Error("Invalid schedulerFor defined: too many tasks have been scheduled");const r=n.findIndex(i=>i.taskId===e[t]);if(r===-1)throw new Error("Invalid schedulerFor defined: unable to find next task");return++t,r}}}function uh(e,t){return new _r(e,pm(t))}function mm(e){const t=e.clone();return{clone:()=>mm(t),nextTaskIndex:n=>e.nextInt(0,n.length-1)}}class dA extends xe{constructor(t){super(),this.act=t}generate(t,n){return new F(new _r(this.act,mm(t.clone())),void 0)}canShrinkWithoutContext(t){return!1}shrink(t,n){return z.nil()}}function gm(e){const{act:t=n=>n()}=e||{};return new dA(t)}function xm(e,t){const{act:n=r=>r()}=Array.isArray(e)?t||{}:e||{};return Array.isArray(e)?uh(n,e):function(r,...i){return uh(n,i)}}function bm(e={}){return Ht(e,B("-9223372036854775808"),B("9223372036854775807"),Cb,Vr)}function ym(e={}){return Ht(e,B(0),B("18446744073709551615"),vb,Vr)}function pA(e){return new Error(`Unsupported AST node! Received: ${Ce(e)}`)}function Ai(e,t,n){if(!t&&!n)return e;const r={hasStart:!1,hasEnd:!1},i=wm(e,t,n,r),s=t&&!r.hasStart,o=n&&!r.hasEnd;if(!s&&!o)return i;const a=[];return s&&(a.push({type:"Assertion",kind:"^"}),a.push({type:"Repetition",quantifier:{type:"Quantifier",kind:"*",greedy:!0},expression:{type:"Char",kind:"meta",symbol:".",value:".",codePoint:Number.NaN}})),a.push(i),o&&(a.push({type:"Repetition",quantifier:{type:"Quantifier",kind:"*",greedy:!0},expression:{type:"Char",kind:"meta",symbol:".",value:".",codePoint:Number.NaN}}),a.push({type:"Assertion",kind:"$"})),{type:"Group",capturing:!1,expression:{type:"Alternative",expressions:a}}}function wm(e,t,n,r){switch(e.type){case"Char":return e;case"Repetition":return e;case"Quantifier":throw new Error("Wrongly defined AST tree, Quantifier nodes not supposed to be scanned!");case"Alternative":return r.hasStart=!0,r.hasEnd=!0,Object.assign(Object.assign({},e),{expressions:e.expressions.map((i,s)=>Ai(i,t&&s===0,n&&s===e.expressions.length-1))});case"CharacterClass":return e;case"ClassRange":return e;case"Group":return Object.assign(Object.assign({},e),{expression:wm(e.expression,t,n,r)});case"Disjunction":return r.hasStart=!0,r.hasEnd=!0,Object.assign(Object.assign({},e),{left:e.left!==null?Ai(e.left,t,n):null,right:e.right!==null?Ai(e.right,t,n):null});case"Assertion":{if(e.kind==="^"||e.kind==="Lookahead")return r.hasStart=!0,e;if(e.kind==="$"||e.kind==="Lookbehind")return r.hasEnd=!0,e;throw new Error(`Assertions of kind ${e.kind} not implemented yet!`)}case"Backreference":return e;default:throw pA(e)}}function mA(e){return Ai(e,!0,!0)}function lh(e,t){return e[t]>="\uD800"&&e[t]<="\uDBFF"&&e[t+1]>="\uDC00"&&e[t+1]<="\uDFFF"?2:1}function ve(e){return e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F"}function ma(e){return e>="0"&&e<="9"}function Sm(e,t){for(let n=t;n!==e.length;++n){const r=e[n];if(r==="\\")n+=1;else if(r==="]")return n}throw new Error("Missing closing ']'")}function gA(e,t){let n=0;for(let r=t;r!==e.length;++r){const i=e[r];if(i==="\\")r+=1;else if(i===")"){if(n===0)return r;n-=1}else i==="["?r=Sm(e,r):i==="("&&(n+=1)}throw new Error("Missing closing ')'")}function xA(e,t){let n=!1;for(let r=t;r!==e.length;++r){const i=e[r];if(!ma(i)){if(t===r)return-1;if(i===","){if(n)return-1;n=!0}else return i==="}"?r:-1}}return-1}var Gt;(function(e){e[e.Full=0]="Full",e[e.Character=1]="Character"})(Gt||(Gt={}));function bA(e,t,n,r){switch(e[t]){case"[":return r===Gt.Character?t+1:Sm(e,t+1)+1;case"{":{if(r===Gt.Character)return t+1;const i=xA(e,t+1);return i===-1?t+1:i+1}case"(":return r===Gt.Character?t+1:gA(e,t+1)+1;case"]":case"}":case")":return t+1;case"\\":{const i=e[t+1];switch(i){case"x":if(ve(e[t+2])&&ve(e[t+3]))return t+4;throw new Error(`Unexpected token '${e.substring(t,t+4)}' found`);case"u":if(e[t+2]==="{"){if(!n)return t+2;if(e[t+4]==="}"){if(ve(e[t+3]))return t+5;throw new Error(`Unexpected token '${e.substring(t,t+5)}' found`)}if(e[t+5]==="}"){if(ve(e[t+3])&&ve(e[t+4]))return t+6;throw new Error(`Unexpected token '${e.substring(t,t+6)}' found`)}if(e[t+6]==="}"){if(ve(e[t+3])&&ve(e[t+4])&&ve(e[t+5]))return t+7;throw new Error(`Unexpected token '${e.substring(t,t+7)}' found`)}if(e[t+7]==="}"){if(ve(e[t+3])&&ve(e[t+4])&&ve(e[t+5])&&ve(e[t+6]))return t+8;throw new Error(`Unexpected token '${e.substring(t,t+8)}' found`)}if(e[t+8]==="}"&&ve(e[t+3])&&ve(e[t+4])&&ve(e[t+5])&&ve(e[t+6])&&ve(e[t+7]))return t+9;throw new Error(`Unexpected token '${e.substring(t,t+9)}' found`)}if(ve(e[t+2])&&ve(e[t+3])&&ve(e[t+4])&&ve(e[t+5]))return t+6;throw new Error(`Unexpected token '${e.substring(t,t+6)}' found`);case"p":case"P":{if(!n)return t+2;let s=t+2;for(;s<e.length&&e[s]!=="}";s+=e[s]==="\\"?2:1);if(e[s]!=="}")throw new Error("Invalid \\P definition");return s+1}case"k":{let s=t+2;for(;s<e.length&&e[s]!==">";++s);if(e[s]!==">"){if(!n)return t+2;throw new Error("Invalid \\k definition")}return s+1}default:{if(ma(i)){const o=n?e.length:Math.min(t+4,e.length);let a=t+2;for(;a<o&&ma(e[a]);++a);return a}const s=n?lh(e,t+1):1;return t+s+1}}}default:{const i=n?lh(e,t):1;return t+i}}}function ci(e,t,n,r){const i=bA(e,t,n,r);return e.substring(t,i)}const ho=String.fromCodePoint;function po(e){const t=e.pop();if(t===void 0)throw new Error("Unable to extract token preceeding the currently parsed one");return t}function Em(e){return e>="0"&&e<="9"}function Ii(e,t){return{type:"Char",kind:"simple",symbol:e,value:e,codePoint:e.codePointAt(0)||-1,escaped:t}}function Rn(e,t){return{type:"Char",kind:"meta",symbol:t,value:e,codePoint:t.codePointAt(0)||-1}}function Zt(e,t){if(e.length>1)return{type:"Alternative",expressions:e};if(!t&&e.length===0)throw new Error("Unsupported no token");return e[0]}function mo(e){if(e[0]==="\\"){const t=e[1];switch(t){case"x":{const n=e.substring(2),r=Number.parseInt(n,16);return{type:"Char",kind:"hex",symbol:ho(r),value:e,codePoint:r}}case"u":{if(e==="\\u")return Ii("u",!0);const n=e[2]==="{"?e.substring(3,e.length-1):e.substring(2),r=Number.parseInt(n,16);return{type:"Char",kind:"unicode",symbol:ho(r),value:e,codePoint:r}}case"0":return Rn(e,"\0");case"n":return Rn(e,`
35
+ `);case"f":return Rn(e,"\f");case"r":return Rn(e,"\r");case"t":return Rn(e," ");case"v":return Rn(e,"\v");case"w":case"W":case"d":case"D":case"s":case"S":case"b":case"B":return{type:"Char",kind:"meta",symbol:void 0,value:e,codePoint:Number.NaN};default:{if(Em(t)){const r=e.substring(1),i=Number(r);return{type:"Char",kind:"decimal",symbol:ho(i),value:e,codePoint:i}}if(e.length>2&&(t==="p"||t==="P"))throw new Error("UnicodeProperty not implemented yet!");const n=e.substring(1);return Ii(n,!0)}}}return Ii(e)}function Ln(e,t,n,r){let i=null;for(let s=0,o=ci(t,s,n,Gt.Full);s!==t.length;s+=o.length,o=ci(t,s,n,Gt.Full)){const a=o[0];switch(a){case"|":{i===null&&(i=[]),i.push(Zt(e.splice(0),!0)||null);break}case".":{e.push({type:"Char",kind:"meta",symbol:o,value:o,codePoint:Number.NaN});break}case"*":case"+":{const c=po(e);e.push({type:"Repetition",expression:c,quantifier:{type:"Quantifier",kind:a,greedy:!0}});break}case"?":{const c=po(e);c.type==="Repetition"?(c.quantifier.greedy=!1,e.push(c)):e.push({type:"Repetition",expression:c,quantifier:{type:"Quantifier",kind:a,greedy:!0}});break}case"{":{if(o==="{"){e.push(Ii(o));break}const c=po(e),l=o.substring(1,o.length-1).split(","),f=Number(l[0]),h=l.length===1?f:l[1].length!==0?Number(l[1]):void 0;e.push({type:"Repetition",expression:c,quantifier:{type:"Quantifier",kind:"Range",greedy:!0,from:f,to:h}});break}case"[":{const c=o.substring(1,o.length-1),u=[];let l,f=!1;for(let h=0,d=ci(c,h,n,Gt.Character);h!==c.length;h+=d.length,d=ci(c,h,n,Gt.Character)){if(h===0&&d==="^"){l=!0;continue}const m=mo(d);if(d==="-")u.push(m),f=!0;else{const p=u.length>=2?u[u.length-2]:void 0;f&&p!==void 0&&p.type==="Char"?(u.pop(),u.pop(),u.push({type:"ClassRange",from:p,to:m})):u.push(m),f=!1}}e.push({type:"CharacterClass",expressions:u,negative:l});break}case"(":{const c=o.substring(1,o.length-1),u=[];if(c[0]==="?")if(c[1]===":")Ln(u,c.substring(2),n,r),e.push({type:"Group",capturing:!1,expression:Zt(u)});else if(c[1]==="="||c[1]==="!")Ln(u,c.substring(2),n,r),e.push({type:"Assertion",kind:"Lookahead",negative:c[1]==="!"?!0:void 0,assertion:Zt(u)});else if(c[1]==="<"&&(c[2]==="="||c[2]==="!"))Ln(u,c.substring(3),n,r),e.push({type:"Assertion",kind:"Lookbehind",negative:c[2]==="!"?!0:void 0,assertion:Zt(u)});else{const l=c.split(">");if(l.length<2||l[0][1]!=="<")throw new Error(`Unsupported regex content found at ${JSON.stringify(o)}`);const f=++r.lastIndex,h=l[0].substring(2);r.named.set(h,f),Ln(u,l.slice(1).join(">"),n,r),e.push({type:"Group",capturing:!0,nameRaw:h,name:h,number:f,expression:Zt(u)})}else{const l=++r.lastIndex;Ln(u,c,n,r),e.push({type:"Group",capturing:!0,number:l,expression:Zt(u)})}break}default:{if(o==="^")e.push({type:"Assertion",kind:o});else if(o==="$")e.push({type:"Assertion",kind:o});else if(o[0]==="\\"&&Em(o[1])){const c=Number(o.substring(1));n||c<=r.lastIndex?e.push({type:"Backreference",kind:"number",number:c,reference:c}):e.push(mo(o))}else if(o[0]==="\\"&&o[1]==="k"&&o.length!==2){const c=o.substring(3,o.length-1);e.push({type:"Backreference",kind:"name",number:r.named.get(c)||0,referenceRaw:c,reference:c})}else e.push(mo(o));break}}}if(i!==null){i.push(Zt(e.splice(0),!0)||null);let s={type:"Disjunction",left:i[0],right:i[1]};for(let o=2;o<i.length;++o)s={type:"Disjunction",left:s,right:i[o]};e.push(s)}}function yA(e){const t=zt([...e.flags],"u")!==-1,n=e.source,r=[];return Ln(r,n,t,{lastIndex:0,named:new Map}),Zt(r)}const wA=String.fromCodePoint,fh=[..."abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"],hh=[..."0123456789"],dh=[...` \r
36
+ \v\f`],ga=[...`\r
37
+ `],Tm=[...""],SA=[...ga,...Tm],gn=cc();function ph(e){return new H(`Unsupported AST node! Received: ${Ce(e)}`)}function Xt(e,t,n){switch(e.type){case"Char":{if(e.kind==="meta")switch(e.value){case"\\w":return Fe(...fh);case"\\W":return gn.filter(r=>zt(fh,r)===-1);case"\\d":return Fe(...hh);case"\\D":return gn.filter(r=>zt(hh,r)===-1);case"\\s":return Fe(...dh);case"\\S":return gn.filter(r=>zt(dh,r)===-1);case"\\b":case"\\B":throw new H(`Meta character ${e.value} not implemented yet!`);case".":{const r=n.dotAll?Tm:SA;return gn.filter(i=>zt(r,i)===-1)}}if(e.symbol===void 0)throw new H(`Unexpected undefined symbol received for non-meta Char! Received: ${Ce(e)}`);return ke(e.symbol)}case"Repetition":{const r=Xt(e.expression,t,n);switch(e.quantifier.kind){case"*":return tn(r,t);case"+":return tn(r,Object.assign(Object.assign({},t),{minLength:1}));case"?":return tn(r,Object.assign(Object.assign({},t),{minLength:0,maxLength:1}));case"Range":return tn(r,Object.assign(Object.assign({},t),{minLength:e.quantifier.from,maxLength:e.quantifier.to}));default:throw ph(e.quantifier)}}case"Quantifier":throw new H("Wrongly defined AST tree, Quantifier nodes not supposed to be scanned!");case"Alternative":return K(...oe(e.expressions,r=>Xt(r,t,n))).map(r=>ge(r,""));case"CharacterClass":if(e.negative){const r=oe(e.expressions,i=>Xt(i,t,n));return gn.filter(i=>Cp(r,s=>!s.canShrinkWithoutContext(i)))}return Te(...oe(e.expressions,r=>Xt(r,t,n)));case"ClassRange":{const r=e.from.codePoint,i=e.to.codePoint;return G({min:r,max:i}).map(s=>wA(s),s=>{if(typeof s!="string")throw new H("Invalid type");if([...s].length!==1)throw new H("Invalid length");return Hn(s,0)})}case"Group":return Xt(e.expression,t,n);case"Disjunction":{const r=e.left!==null?Xt(e.left,t,n):ke(""),i=e.right!==null?Xt(e.right,t,n):ke("");return Te(r,i)}case"Assertion":{if(e.kind==="^"||e.kind==="$")return n.multiline?e.kind==="^"?Te(ke(""),K(tn(gn),Fe(...ga)).map(r=>`${r[0]}${r[1]}`,r=>{if(typeof r!="string"||r.length===0)throw new H("Invalid type");return[we(r,0,r.length-1),r[r.length-1]]})):Te(ke(""),K(Fe(...ga),tn(gn)).map(r=>`${r[0]}${r[1]}`,r=>{if(typeof r!="string"||r.length===0)throw new H("Invalid type");return[r[0],we(r,1)]})):ke("");throw new H(`Assertions of kind ${e.kind} not implemented yet!`)}case"Backreference":throw new H("Backreference nodes not implemented yet!");default:throw ph(e)}}function Am(e,t={}){for(const s of e.flags)if(s!=="d"&&s!=="g"&&s!=="m"&&s!=="s"&&s!=="u")throw new H(`Unable to use "stringMatching" against a regex using the flag ${s}`);const n={size:t.size},r={multiline:e.multiline,dotAll:e.dotAll},i=mA(yA(e));return Xt(i,n,r)}function EA(e){const t=[];for(let n=0;n!==e.length;++n)t.push(e[n].next());return t}function TA(e,t){for(let n=0;n!==e.length;++n)t[n]=e[n].next()}function AA(e){for(let t=0;t!==e.length;++t)if(e[t].done)return!0;return!1}function*IA(...e){const t=EA(e);for(;!AA(t);)yield t.map(n=>n.value),TA(e,t)}function*$A(e){let t=e;for(;;)yield t,++t}class CA extends xe{constructor(t,n){super(),this.arb=t,this.maxShrinks=n}generate(t,n){const r=this.arb.generate(t,n);return this.valueMapper(r,0)}canShrinkWithoutContext(t){return this.arb.canShrinkWithoutContext(t)}shrink(t,n){return this.isSafeContext(n)?this.safeShrink(t,n.originalContext,n.length):this.safeShrink(t,void 0,0)}safeShrink(t,n,r){const i=this.maxShrinks-r;return i<=0?z.nil():new z(IA(this.arb.shrink(t,n),$A(r+1))).take(i).map(s=>this.valueMapper(s[0],s[1]))}valueMapper(t,n){const r={originalContext:t.context,length:n};return new F(t.value,r)}isSafeContext(t){return t!=null&&typeof t=="object"&&"originalContext"in t&&"length"in t}}function Im(e,t){return new CA(e,t)}const $m="module",Cm="3.23.2",vm="a4a600eaa08c833707067a877db144289a724b91",vA=Object.freeze(Object.defineProperty({__proto__:null,Arbitrary:xe,get ExecutionStatus(){return Nt},PreconditionFailure:pt,Random:ot,Stream:z,Value:F,get VerbosityLevel(){return De},__commitHash:vm,__type:$m,__version:Cm,anything:ws,array:X,ascii:oc,asciiString:Y0,assert:Br,asyncDefaultReportMessage:tc,asyncModelRun:hm,asyncProperty:Ja,asyncStringify:os,asyncToStringMethod:Ft,base64:ac,base64String:J0,bigInt:Vr,bigInt64Array:bm,bigIntN:s0,bigUint:o0,bigUint64Array:ym,bigUintN:ji,boolean:kt,char:cc,char16bits:uc,check:cs,clone:h0,cloneIfNeeded:wn,cloneMethod:Pe,commands:cm,compareBooleanFunc:j0,compareFunc:F0,configureGlobal:Pp,constant:ke,constantFrom:Fe,context:u0,createDepthIdentifier:nc,date:ps,defaultReportMessage:ec,dictionary:ms,domain:gs,double:Ur,emailAddress:yc,falsy:c0,float:xs,float32Array:Mc,float64Array:Oc,fullUnicode:ds,fullUnicodeString:ys,func:R0,gen:r0,getDepthContextFor:us,hasAsyncToStringMethod:ss,hasCloneMethod:hn,hasToStringMethod:is,hash:Nr,hexa:fc,hexaString:Pr,infiniteStream:H0,int16Array:Nc,int32Array:kc,int8Array:Pc,integer:G,ipV4:bs,ipV4Extended:Ac,ipV6:Cc,json:G0,jsonValue:Lc,letrec:vc,limitShrink:Im,lorem:L0,mapToConstant:nr,maxSafeInteger:Tc,maxSafeNat:D0,memo:B0,mixedCase:q0,modelRun:fm,nat:Wt,noBias:sc,noShrink:kr,object:z0,oneof:Te,option:Kt,pre:mp,property:Lr,readConfigureGlobal:gt,record:yn,resetConfigureGlobal:_p,sample:e0,scheduledModelRun:dm,scheduler:gm,schedulerFor:xm,shuffledSubarray:em,sparseArray:Dc,statistics:t0,stream:_t,string:tt,string16bits:Z0,stringMatching:Am,stringOf:tn,stringify:Ce,subarray:Q0,toStringMethod:jt,tuple:K,uint16Array:_c,uint32Array:jc,uint8Array:Fc,uint8ClampedArray:Rc,ulid:nm,unicode:dc,unicodeJson:K0,unicodeJsonValue:qc,unicodeString:Bc,uniqueArray:On,uuid:Di,uuidV:om,webAuthority:Vc,webFragments:Uc,webPath:Wc,webQueryParameters:Gc,webSegment:zc,webUrl:Kc},Symbol.toStringTag,{value:"Module"})),MA=Object.freeze(Object.defineProperty({__proto__:null,Arbitrary:xe,get ExecutionStatus(){return Nt},PreconditionFailure:pt,Random:ot,Stream:z,Value:F,get VerbosityLevel(){return De},__commitHash:vm,__type:$m,__version:Cm,anything:ws,array:X,ascii:oc,asciiString:Y0,assert:Br,asyncDefaultReportMessage:tc,asyncModelRun:hm,asyncProperty:Ja,asyncStringify:os,asyncToStringMethod:Ft,base64:ac,base64String:J0,bigInt:Vr,bigInt64Array:bm,bigIntN:s0,bigUint:o0,bigUint64Array:ym,bigUintN:ji,boolean:kt,char:cc,char16bits:uc,check:cs,clone:h0,cloneIfNeeded:wn,cloneMethod:Pe,commands:cm,compareBooleanFunc:j0,compareFunc:F0,configureGlobal:Pp,constant:ke,constantFrom:Fe,context:u0,createDepthIdentifier:nc,date:ps,default:vA,defaultReportMessage:ec,dictionary:ms,domain:gs,double:Ur,emailAddress:yc,falsy:c0,float:xs,float32Array:Mc,float64Array:Oc,fullUnicode:ds,fullUnicodeString:ys,func:R0,gen:r0,getDepthContextFor:us,hasAsyncToStringMethod:ss,hasCloneMethod:hn,hasToStringMethod:is,hash:Nr,hexa:fc,hexaString:Pr,infiniteStream:H0,int16Array:Nc,int32Array:kc,int8Array:Pc,integer:G,ipV4:bs,ipV4Extended:Ac,ipV6:Cc,json:G0,jsonValue:Lc,letrec:vc,limitShrink:Im,lorem:L0,mapToConstant:nr,maxSafeInteger:Tc,maxSafeNat:D0,memo:B0,mixedCase:q0,modelRun:fm,nat:Wt,noBias:sc,noShrink:kr,object:z0,oneof:Te,option:Kt,pre:mp,property:Lr,readConfigureGlobal:gt,record:yn,resetConfigureGlobal:_p,sample:e0,scheduledModelRun:dm,scheduler:gm,schedulerFor:xm,shuffledSubarray:em,sparseArray:Dc,statistics:t0,stream:_t,string:tt,string16bits:Z0,stringMatching:Am,stringOf:tn,stringify:Ce,subarray:Q0,toStringMethod:jt,tuple:K,uint16Array:_c,uint32Array:jc,uint8Array:Fc,uint8ClampedArray:Rc,ulid:nm,unicode:dc,unicodeJson:K0,unicodeJsonValue:qc,unicodeString:Bc,uniqueArray:On,uuid:Di,uuidV:om,webAuthority:Vc,webFragments:Uc,webPath:Wc,webQueryParameters:Gc,webSegment:zc,webUrl:Kc},Symbol.toStringTag,{value:"Module"}));var mh={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function Yc(e){return String(e)}Yc.open="";Yc.close="";function OA(){let e=typeof process<"u"?process:void 0,t=(e==null?void 0:e.env)||{},n=t.FORCE_TTY!=="false",r=(e==null?void 0:e.argv)||[];return!("NO_COLOR"in t||r.includes("--no-color"))&&("FORCE_COLOR"in t||r.includes("--color")||(e==null?void 0:e.platform)==="win32"||n&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}function NA({force:e}={}){let t=e||OA(),n=(o,a,c,u)=>{let l="",f=0;do l+=o.substring(f,u)+c,f=u+a.length,u=o.indexOf(a,f);while(~u);return l+o.substring(f)},r=(o,a,c=o)=>{let u=l=>{let f=String(l),h=f.indexOf(a,o.length);return~h?o+n(f,a,c,h)+a:o+f+a};return u.open=o,u.close=a,u},i={isColorSupported:t},s=o=>`\x1B[${o}m`;for(let o in mh){let a=mh[o];i[o]=t?r(s(a[0]),s(a[1]),a[2]):Yc}return i}var kA=NA(),$e=kA;function Mm(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function PA(e,t){const n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(const i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&r.push(i);return r}function Wr(e,t,n,r,i,s,o=": "){let a="",c=0,u=e.next();if(!u.done){a+=t.spacingOuter;const l=n+t.indent;for(;!u.done;){if(a+=l,c++===t.maxWidth){a+="…";break}const f=s(u.value[0],t,l,r,i),h=s(u.value[1],t,l,r,i);a+=f+o+h,u=e.next(),u.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+n}return a}function Jc(e,t,n,r,i,s){let o="",a=0,c=e.next();if(!c.done){o+=t.spacingOuter;const u=n+t.indent;for(;!c.done;){if(o+=u,a++===t.maxWidth){o+="…";break}o+=s(c.value,t,u,r,i),c=e.next(),c.done?t.min||(o+=","):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function Bi(e,t,n,r,i,s){let o="";e=e instanceof ArrayBuffer?new DataView(e):e;const a=u=>u instanceof DataView,c=a(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;const u=n+t.indent;for(let l=0;l<c;l++){if(o+=u,l===t.maxWidth){o+="…";break}(a(e)||l in e)&&(o+=s(a(e)?e.getInt8(l):e[l],t,u,r,i)),l<c-1?o+=`,${t.spacingInner}`:t.min||(o+=",")}o+=t.spacingOuter+n}return o}function Zc(e,t,n,r,i,s){let o="";const a=PA(e,t.compareKeys);if(a.length>0){o+=t.spacingOuter;const c=n+t.indent;for(let u=0;u<a.length;u++){const l=a[u],f=s(l,t,c,r,i),h=s(e[l],t,c,r,i);o+=`${c+f}: ${h}`,u<a.length-1?o+=`,${t.spacingInner}`:t.min||(o+=",")}o+=t.spacingOuter+n}return o}const _A=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,ui=" ",jA=(e,t,n,r,i,s)=>{const o=e.toString();if(o==="ArrayContaining"||o==="ArrayNotContaining")return++r>t.maxDepth?`[${o}]`:`${o+ui}[${Bi(e.sample,t,n,r,i,s)}]`;if(o==="ObjectContaining"||o==="ObjectNotContaining")return++r>t.maxDepth?`[${o}]`:`${o+ui}{${Zc(e.sample,t,n,r,i,s)}}`;if(o==="StringMatching"||o==="StringNotMatching"||o==="StringContaining"||o==="StringNotContaining")return o+ui+s(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},FA=e=>e&&e.$$typeof===_A,RA={serialize:jA,test:FA},DA=" ",Om=new Set(["DOMStringMap","NamedNodeMap"]),LA=/^(?:HTML\w*Collection|NodeList)$/;function BA(e){return Om.has(e)||LA.test(e)}const qA=e=>e&&e.constructor&&!!e.constructor.name&&BA(e.constructor.name);function VA(e){return e.constructor.name==="NamedNodeMap"}const UA=(e,t,n,r,i,s)=>{const o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?"":o+DA)+(Om.has(o)?`{${Zc(VA(e)?[...e].reduce((a,c)=>(a[c.name]=c.value,a),{}):{...e},t,n,r,i,s)}}`:`[${Bi([...e],t,n,r,i,s)}]`)},zA={serialize:UA,test:qA};function Nm(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Xc(e,t,n,r,i,s,o){const a=r+n.indent,c=n.colors;return e.map(u=>{const l=t[u];if(typeof l=="string"&&l[0]==="_"&&l.startsWith("__vitest_")&&l.match(/__vitest_\d+__/))return"";let f=o(l,n,a,i,s);return typeof l!="string"&&(f.includes(`
38
+ `)&&(f=n.spacingOuter+a+f+n.spacingOuter+r),f=`{${f}}`),`${n.spacingInner+r+c.prop.open+u+c.prop.close}=${c.value.open}${f}${c.value.close}`}).join("")}function Ss(e,t,n,r,i,s){return e.map(o=>t.spacingOuter+n+(typeof o=="string"?km(o,t):s(o,t,n,r,i))).join("")}function WA(e,t,n,r,i,s){return t.printShadowRoot===!1?"":[`${t.spacingOuter+n}#shadow-root`,Ss(e,t,n+t.indent,r,i,s)].join("")}function km(e,t){const n=t.colors.content;return n.open+Nm(e)+n.close}function GA(e,t){const n=t.colors.comment;return`${n.open}<!--${Nm(e)}-->${n.close}`}function Qc(e,t,n,r,i){const s=r.colors.tag;return`${s.open}<${e}${t&&s.close+t+r.spacingOuter+i+s.open}${n?`>${s.close}${n}${r.spacingOuter}${i}${s.open}</${e}`:`${t&&!r.min?"":" "}/`}>${s.close}`}function eu(e,t){const n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}const KA=1,tu=3,Pm=8,_m=11,HA=/^(?:(?:HTML|SVG)\w*)?Element$/;function YA(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function JA(e){const t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r=="string"&&r.includes("-")||YA(e);return n===KA&&(HA.test(t)||i)||n===tu&&t==="Text"||n===Pm&&t==="Comment"||n===_m&&t==="DocumentFragment"}const jm=e=>{var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.name)&&JA(e)};function ZA(e){return e.nodeType===tu}function XA(e){return e.nodeType===Pm}function li(e){return e.nodeType===_m}function gh(e,t){let n=e.filter(r=>r.nodeType===tu?(r.data||"").trim().length>0:!0);return t&&(n=n.filter(t)),n}function Fm(e,t,n,r,i,s,o){if(ZA(e))return km(e.data,t);if(XA(e))return GA(e.data,t);const a=li(e)?"DocumentFragment":e.tagName.toLowerCase();if(++r>t.maxDepth)return eu(a,t);const c=Array.prototype.slice.call(e.childNodes||e.children),u=li(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),l=o?gh(c,o):c,f=o?gh(u,o):u;return Qc(a,Xc(li(e)?[]:Array.from(e.attributes,h=>h.name).sort(),li(e)?{}:[...e.attributes].reduce((h,d)=>(h[d.name]=d.value,h),{}),t,n+t.indent,r,i,s),(f.length>0?WA(f,t,n+t.indent,r,i,s):"")+Ss(l,t,n+t.indent,r,i,s),t,n)}const QA=(e,t,n,r,i,s)=>Fm(e,t,n,r,i,s);function eI(e){return{test:jm,serialize:(t,n,r,i,s,o)=>Fm(t,n,r,i,s,o,e)}}const tI={serialize:QA,test:jm},nI="@@__IMMUTABLE_ITERABLE__@@",rI="@@__IMMUTABLE_LIST__@@",iI="@@__IMMUTABLE_KEYED__@@",sI="@@__IMMUTABLE_MAP__@@",xh="@@__IMMUTABLE_ORDERED__@@",oI="@@__IMMUTABLE_RECORD__@@",aI="@@__IMMUTABLE_SEQ__@@",cI="@@__IMMUTABLE_SET__@@",uI="@@__IMMUTABLE_STACK__@@",Zn=e=>`Immutable.${e}`,Es=e=>`[${e}]`,jr=" ",bh="…";function lI(e,t,n,r,i,s,o){return++r>t.maxDepth?Es(Zn(o)):`${Zn(o)+jr}{${Wr(e.entries(),t,n,r,i,s)}}`}function fI(e){let t=0;return{next(){if(t<e._keys.length){const n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function hI(e,t,n,r,i,s){const o=Zn(e._name||"Record");return++r>t.maxDepth?Es(o):`${o+jr}{${Wr(fI(e),t,n,r,i,s)}}`}function dI(e,t,n,r,i,s){const o=Zn("Seq");return++r>t.maxDepth?Es(o):e[iI]?`${o+jr}{${e._iter||e._object?Wr(e.entries(),t,n,r,i,s):bh}}`:`${o+jr}[${e._iter||e._array||e._collection||e._iterable?Jc(e.values(),t,n,r,i,s):bh}]`}function go(e,t,n,r,i,s,o){return++r>t.maxDepth?Es(Zn(o)):`${Zn(o)+jr}[${Jc(e.values(),t,n,r,i,s)}]`}const pI=(e,t,n,r,i,s)=>e[sI]?lI(e,t,n,r,i,s,e[xh]?"OrderedMap":"Map"):e[rI]?go(e,t,n,r,i,s,"List"):e[cI]?go(e,t,n,r,i,s,e[xh]?"OrderedSet":"Set"):e[uI]?go(e,t,n,r,i,s,"Stack"):e[aI]?dI(e,t,n,r,i,s):hI(e,t,n,r,i,s),mI=e=>e&&(e[nI]===!0||e[oI]===!0),gI={serialize:pI,test:mI};function Rm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xo={exports:{}},he={};/**
39
+ * @license React
40
+ * react-is.production.js
41
+ *
42
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var yh;function xI(){if(yh)return he;yh=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"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),d=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case n:case i:case r:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case o:case a:case f:case l:return p;case s:return p;default:return b}}case t:return b}}}return he.ContextConsumer=s,he.ContextProvider=o,he.Element=e,he.ForwardRef=a,he.Fragment=n,he.Lazy=f,he.Memo=l,he.Portal=t,he.Profiler=i,he.StrictMode=r,he.Suspense=c,he.SuspenseList=u,he.isContextConsumer=function(p){return m(p)===s},he.isContextProvider=function(p){return m(p)===o},he.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},he.isForwardRef=function(p){return m(p)===a},he.isFragment=function(p){return m(p)===n},he.isLazy=function(p){return m(p)===f},he.isMemo=function(p){return m(p)===l},he.isPortal=function(p){return m(p)===t},he.isProfiler=function(p){return m(p)===i},he.isStrictMode=function(p){return m(p)===r},he.isSuspense=function(p){return m(p)===c},he.isSuspenseList=function(p){return m(p)===u},he.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===i||p===r||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===l||p.$$typeof===o||p.$$typeof===s||p.$$typeof===a||p.$$typeof===d||p.getModuleId!==void 0)},he.typeOf=m,he}var wh;function bI(){return wh||(wh=1,xo.exports=xI()),xo.exports}var Dm=bI(),yI=Rm(Dm),wI=Mm({__proto__:null,default:yI},[Dm]),bo={exports:{}},ce={};/**
47
+ * @license React
48
+ * react-is.production.min.js
49
+ *
50
+ * Copyright (c) Facebook, Inc. and its affiliates.
51
+ *
52
+ * This source code is licensed under the MIT license found in the
53
+ * LICENSE file in the root directory of this source tree.
54
+ */var Sh;function SI(){if(Sh)return ce;Sh=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"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case e:switch(b=b.type,b){case n:case i:case r:case u:case l:return b;default:switch(b=b&&b.$$typeof,b){case a:case o:case c:case h:case f:case s:return b;default:return T}}case t:return T}}}return ce.ContextConsumer=o,ce.ContextProvider=s,ce.Element=e,ce.ForwardRef=c,ce.Fragment=n,ce.Lazy=h,ce.Memo=f,ce.Portal=t,ce.Profiler=i,ce.StrictMode=r,ce.Suspense=u,ce.SuspenseList=l,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(b){return p(b)===o},ce.isContextProvider=function(b){return p(b)===s},ce.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ce.isForwardRef=function(b){return p(b)===c},ce.isFragment=function(b){return p(b)===n},ce.isLazy=function(b){return p(b)===h},ce.isMemo=function(b){return p(b)===f},ce.isPortal=function(b){return p(b)===t},ce.isProfiler=function(b){return p(b)===i},ce.isStrictMode=function(b){return p(b)===r},ce.isSuspense=function(b){return p(b)===u},ce.isSuspenseList=function(b){return p(b)===l},ce.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===u||b===l||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===f||b.$$typeof===s||b.$$typeof===o||b.$$typeof===c||b.$$typeof===m||b.getModuleId!==void 0)},ce.typeOf=p,ce}var Eh;function EI(){return Eh||(Eh=1,bo.exports=SI()),bo.exports}var Lm=EI(),TI=Rm(Lm),AI=Mm({__proto__:null,default:TI},[Lm]);const II=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],xn=Object.fromEntries(II.map(e=>[e,t=>AI[e](t)||wI[e](t)]));function Bm(e,t=[]){if(Array.isArray(e))for(const n of e)Bm(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Th(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(xn.isFragment(e))return"React.Fragment";if(xn.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(xn.isContextProvider(e))return"Context.Provider";if(xn.isContextConsumer(e))return"Context.Consumer";if(xn.isForwardRef(e)){if(t.displayName)return t.displayName;const n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(xn.isMemo(e)){const n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}function $I(e){const{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}const CI=(e,t,n,r,i,s)=>++r>t.maxDepth?eu(Th(e),t):Qc(Th(e),Xc($I(e),e.props,t,n+t.indent,r,i,s),Ss(Bm(e.props.children),t,n+t.indent,r,i,s),t,n),vI=e=>e!=null&&xn.isElement(e),MI={serialize:CI,test:vI},OI=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function NI(e){const{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}const kI=(e,t,n,r,i,s)=>++r>t.maxDepth?eu(e.type,t):Qc(e.type,e.props?Xc(NI(e),e.props,t,n+t.indent,r,i,s):"",e.children?Ss(e.children,t,n+t.indent,r,i,s):"",t,n),PI=e=>e&&e.$$typeof===OI,_I={serialize:kI,test:PI},qm=Object.prototype.toString,jI=Date.prototype.toISOString,FI=Error.prototype.toString,Ah=RegExp.prototype.toString;function $i(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function RI(e){return typeof window<"u"&&e===window}const DI=/^Symbol\((.*)\)(.*)$/,LI=/\n/g;class Vm extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}}function BI(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 qI(e){return Object.is(e,-0)?"-0":String(e)}function VI(e){return`${e}n`}function Ih(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function $h(e){return String(e).replace(DI,"Symbol($1)")}function Ch(e){return`[${FI.call(e)}]`}function Um(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const i=typeof e;if(i==="number")return qI(e);if(i==="bigint")return VI(e);if(i==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return Ih(e,t);if(i==="symbol")return $h(e);const s=qm.call(e);return s==="[object WeakMap]"?"WeakMap {}":s==="[object WeakSet]"?"WeakSet {}":s==="[object Function]"||s==="[object GeneratorFunction]"?Ih(e,t):s==="[object Symbol]"?$h(e):s==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":jI.call(e):s==="[object Error]"?Ch(e):s==="[object RegExp]"?n?Ah.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Ah.call(e):e instanceof Error?Ch(e):null}function zm(e,t,n,r,i,s){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);const o=++r>t.maxDepth,a=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON=="function"&&!s)return nn(e.toJSON(),t,n,r,i,!0);const c=qm.call(e);return c==="[object Arguments]"?o?"[Arguments]":`${a?"":"Arguments "}[${Bi(e,t,n,r,i,nn)}]`:BI(c)?o?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Bi(e,t,n,r,i,nn)}]`:c==="[object Map]"?o?"[Map]":`Map {${Wr(e.entries(),t,n,r,i,nn," => ")}}`:c==="[object Set]"?o?"[Set]":`Set {${Jc(e.values(),t,n,r,i,nn)}}`:o||RI(e)?`[${$i(e)}]`:`${a||!t.printBasicPrototype&&$i(e)==="Object"?"":`${$i(e)} `}{${Zc(e,t,n,r,i,nn)}}`}const UI={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,s){if(i.includes(e))return"[Circular]";i=[...i,e];const o=++r>t.maxDepth,{message:a,cause:c,...u}=e,l={message:a,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},f=e.name!=="Error"?e.name:$i(e);return o?`[${f}]`:`${f} {${Wr(Object.entries(l).values(),t,n,r,i,s)}}`}};function zI(e){return e.serialize!=null}function Wm(e,t,n,r,i,s){let o;try{o=zI(e)?e.serialize(t,n,r,i,s,nn):e.print(t,a=>nn(a,n,r,i,s),a=>{const c=r+n.indent;return c+a.replaceAll(LI,`
55
+ ${c}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(a){throw new Vm(a.message,a.stack)}if(typeof o!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function Gm(e,t){for(const n of e)try{if(n.test(t))return n}catch(r){throw new Vm(r.message,r.stack)}return null}function nn(e,t,n,r,i,s){const o=Gm(t.plugins,e);if(o!==null)return Wm(o,e,t,n,r,i);const a=Um(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:zm(e,t,n,r,i,s)}const nu={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Km=Object.keys(nu),bt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:nu};function WI(e){for(const t of Object.keys(e))if(!Object.hasOwn(bt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function GI(){return Km.reduce((e,t)=>{const n=nu[t],r=n&&$e[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function KI(){return Km.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Hm(e){return(e==null?void 0:e.printFunctionName)??bt.printFunctionName}function Ym(e){return(e==null?void 0:e.escapeRegex)??bt.escapeRegex}function Jm(e){return(e==null?void 0:e.escapeString)??bt.escapeString}function vh(e){return{callToJSON:(e==null?void 0:e.callToJSON)??bt.callToJSON,colors:e!=null&&e.highlight?GI():KI(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:bt.compareKeys,escapeRegex:Ym(e),escapeString:Jm(e),indent:e!=null&&e.min?"":HI((e==null?void 0:e.indent)??bt.indent),maxDepth:(e==null?void 0:e.maxDepth)??bt.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??bt.maxWidth,min:(e==null?void 0:e.min)??bt.min,plugins:(e==null?void 0:e.plugins)??bt.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:Hm(e),printShadowRoot:(e==null?void 0:e.printShadowRoot)??!0,spacingInner:e!=null&&e.min?" ":`
56
+ `,spacingOuter:e!=null&&e.min?"":`
57
+ `}}function HI(e){return Array.from({length:e+1}).join(" ")}function yt(e,t){if(t&&(WI(t),t.plugins)){const r=Gm(t.plugins,e);if(r!==null)return Wm(r,e,vh(t),"",0,[])}const n=Um(e,Hm(t),Ym(t),Jm(t));return n!==null?n:zm(e,vh(t),"",0,[])}const Ts={AsymmetricMatcher:RA,DOMCollection:zA,DOMElement:tI,Immutable:gI,ReactElement:MI,ReactTestComponent:_I,Error:UI},Mh={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"]},YI={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Xn="…";function JI(e,t){const n=Mh[YI[t]]||Mh[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function ZI({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:s=1/0,breakLength:o=1/0,seen:a=[],truncate:c=1/0,stylize:u=String}={},l){const f={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(s),breakLength:Number(o),truncate:Number(c),seen:a,inspect:l,stylize:u};return f.colors&&(f.stylize=JI),f}function XI(e){return e>="\uD800"&&e<="\uDBFF"}function pn(e,t,n=Xn){e=String(e);const r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let s=t-r;return s>0&&XI(e[s-1])&&(s=s-1),`${e.slice(0,s)}${n}`}return e}function St(e,t,n,r=", "){n=n||t.inspect;const i=e.length;if(i===0)return"";const s=t.truncate;let o="",a="",c="";for(let u=0;u<i;u+=1){const l=u+1===e.length,f=u+2===e.length;c=`${Xn}(${e.length-u})`;const h=e[u];t.truncate=s-o.length-(l?0:r.length);const d=a||n(h,t)+(l?"":r),m=o.length+d.length,p=m+c.length;if(l&&m>s&&o.length+c.length<=s||!l&&!f&&p>s||(a=l?"":n(e[u+1],t)+(f?"":r),!l&&f&&p>s&&m+a.length>s))break;if(o+=d,!l&&!f&&m+a.length>=s){c=`${Xn}(${e.length-u-1})`;break}c=""}return`${o}${c}`}function QI(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Fr([e,t],n){return n.truncate-=2,typeof e=="string"?e=QI(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function e$(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const r=St(e,t);t.truncate-=r.length;let i="";return n.length&&(i=St(n.map(s=>[s,e[s]]),t,Fr)),`[ ${r}${i?`, ${i}`:""} ]`}const t$=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Vt(e,t){const n=t$(e);t.truncate-=n.length+4;const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i="";for(let o=0;o<e.length;o++){const a=`${t.stylize(pn(e[o],t.truncate),"number")}${o===e.length-1?"":", "}`;if(t.truncate-=a.length,e[o]!==e.length&&t.truncate<=3){i+=`${Xn}(${e.length-e[o]+1})`;break}i+=a}let s="";return r.length&&(s=St(r.map(o=>[o,e[o]]),t,Fr)),`${n}[ ${i}${s?`, ${s}`:""} ]`}function n$(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const r=n.split("T"),i=r[0];return t.stylize(`${i}T${pn(r[1],t.truncate-i.length-1)}`,"date")}function Oh(e,t){const n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${pn(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function r$([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function i$(e){const t=[];return e.forEach((n,r)=>{t.push([r,n])}),t}function s$(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${St(i$(e),t,r$)} }`)}const o$=Number.isNaN||(e=>e!==e);function Nh(e,t){return o$(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(pn(String(e),t.truncate),"number")}function kh(e,t){let n=pn(e.toString(),t.truncate-1);return n!==Xn&&(n+="n"),t.stylize(n,"bigint")}function a$(e,t){const n=e.toString().split("/")[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${pn(i,r)}/${n}`,"regexp")}function c$(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function u$(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${St(c$(e),t)} }`)}const Ph=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),l$={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},f$=16;function h$(e){return l$[e]||`\\u${`0000${e.charCodeAt(0).toString(f$)}`.slice(-4)}`}function _h(e,t){return Ph.test(e)&&(e=e.replace(Ph,h$)),t.stylize(`'${pn(e,t.truncate-2)}'`,"string")}function jh(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}const d$=()=>"Promise{…}";function Ci(e,t){const 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);const i=St(n.map(a=>[a,e[a]]),t,Fr),s=St(r.map(a=>[a,e[a]]),t,Fr);t.seen.pop();let o="";return i&&s&&(o=", "),`{ ${i}${o}${s} }`}const yo=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function p$(e,t){let n="";return yo&&yo in e&&(n=e[yo]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Ci(e,t)}`}function m$(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${St(e,t)} ]`)}const g$=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function x$(e,t){const n=Object.getOwnPropertyNames(e).filter(o=>g$.indexOf(o)===-1),r=e.name;t.truncate-=r.length;let i="";if(typeof e.message=="string"?i=pn(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);const s=St(n.map(o=>[o,e[o]]),t,Fr);return`${r}${i}${s?` { ${s} }`:""}`}function b$([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function xa(e,t){return St(e,t,y$,`
58
+ `)}function y$(e,t){switch(e.nodeType){case 1:return Zm(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Zm(e,t){const n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,"special"),s=t.stylize(">","special"),o=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let a="";n.length>0&&(a+=" ",a+=St(n.map(l=>[l,e.getAttribute(l)]),t,b$," ")),t.truncate-=a.length;const c=t.truncate;let u=xa(e.children,t);return u&&u.length>c&&(u=`${Xn}(${e.children.length})`),`${i}${a}${s}${u}${o}`}const w$=typeof Symbol=="function"&&typeof Symbol.for=="function",wo=w$?Symbol.for("chai/inspect"):"@@chai/inspect",So=Symbol.for("nodejs.util.inspect.custom"),Fh=new WeakMap,Rh={},Dh={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:Nh,Number:Nh,bigint:kh,BigInt:kh,string:_h,String:_h,function:Oh,Function:Oh,symbol:jh,Symbol:jh,Array:e$,Date:n$,Map:s$,Set:u$,RegExp:a$,Promise:d$,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:m$,Int8Array:Vt,Uint8Array:Vt,Uint8ClampedArray:Vt,Int16Array:Vt,Uint16Array:Vt,Int32Array:Vt,Uint32Array:Vt,Float32Array:Vt,Float64Array:Vt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:x$,HTMLCollection:xa,NodeList:xa},S$=(e,t,n,r)=>wo in e&&typeof e[wo]=="function"?e[wo](t):So in e&&typeof e[So]=="function"?e[So](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Fh.has(e.constructor)?Fh.get(e.constructor)(e,t):Rh[n]?Rh[n](e,t):"",E$=Object.prototype.toString;function vi(e,t={}){const n=ZI(t,vi),{customInspect:r}=n;let i=e===null?"null":typeof e;if(i==="object"&&(i=E$.call(e).slice(8,-1)),i in Dh)return Dh[i](e,n);if(r&&e){const o=S$(e,n,i,vi);if(o)return typeof o=="string"?o:vi(o,n)}const s=e?Object.getPrototypeOf(e):!1;return s===Object.prototype||s===null?Ci(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Zm(e,n):"constructor"in e?e.constructor!==Object?p$(e,n):Ci(e,n):e===Object(e)?Ci(e,n):n.stylize(String(e),i)}const{AsymmetricMatcher:Xm,DOMCollection:Qm,DOMElement:T$,Immutable:eg,ReactElement:tg,ReactTestComponent:ng}=Ts,A$=[ng,tg,T$,Qm,eg,Xm];function at(e,t=10,{maxLength:n,filterNode:r,...i}={}){const s=n??1e4;let o;const a=typeof r=="string"?I$(r):r,c=a?[ng,tg,eI(a),Qm,eg,Xm]:A$;try{o=yt(e,{maxDepth:t,escapeString:!1,plugins:c,...i})}catch{o=yt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:c,...i})}return o.length>=s&&t>1?at(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,filterNode:r,...i}):o}function I$(e){return r=>{if(r.nodeType===8)return!1;if(r.nodeType===1&&r.matches)try{return!r.matches(e)}catch{return!0}return!0}}const rg=/%[sdjifoOc%]/g;function $$(e,t={}){const n=(a,c)=>t.prettifyObject?at(a,void 0,{printBasicPrototype:!1,escapeString:!1}):ig(a,c);if(typeof e[0]!="string"){const a=[];for(let c=0;c<e.length;c++)a.push(n(e[c],{depth:0,colors:!1}));return a.join(" ")}const r=e.length;let i=1;const s=e[0];let o=String(s).replace(rg,a=>{if(a==="%%")return"%";if(i>=r)return a;switch(a){case"%s":{const c=e[i++];return typeof c=="bigint"?`${c.toString()}n`:typeof c=="number"&&c===0&&1/c<0?"-0":typeof c=="object"&&c!==null?typeof c.toString=="function"&&c.toString!==Object.prototype.toString?c.toString():n(c,{depth:0,colors:!1}):String(c)}case"%d":{const c=e[i++];return typeof c=="bigint"?`${c.toString()}n`:typeof c=="symbol"?"NaN":Number(c).toString()}case"%i":{const c=e[i++];return typeof c=="bigint"?`${c.toString()}n`:Number.parseInt(String(c)).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(c){const u=c.message;if(u.includes("circular structure")||u.includes("cyclic structures")||u.includes("cyclic object"))return"[Circular]";throw c}default:return a}});for(let a=e[i];i<r;a=e[++i])a===null||typeof a!="object"?o+=` ${typeof a=="symbol"?a.toString():a}`:o+=` ${n(a)}`;return o}function C$(...e){return $$(e)}function ig(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),vi(e,t)}function v$(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=ig(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r==="[object Function]"){const i=e;return i.name?`[Function: ${i.name}]`:"[Function]"}else{if(r==="[object Array]")return`[ Array(${e.length}) ]`;if(r==="[object Object]"){const i=Object.keys(e);return`{ Object (${i.length>2?`${i.splice(0,2).join(", ")}, ...`:i.join(", ")}) }`}else return n}return n}function sg(e){return e!=null}function Qe(e,t,n){const r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}function M$(e){return e===null||typeof e!="function"&&typeof e!="object"}function O$(e){const t=[];let n="none";for(let r=0;r<e.length;++r)n==="singleline"?e[r]===`
59
+ `&&(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 qi(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function Pt(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function N$(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Rr(e){return Object.prototype.toString.apply(e).slice(8,-1)}function k$(e,t){const n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function og(e){const t=new Set;return N$(e)?[]:(k$(e,t),Array.from(t))}const ag={forceWritable:!1};function Lh(e,t=ag){return ba(e,new WeakMap,t)}function ba(e,t,n=ag){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]=ba(e[r],t,n);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);const s=og(e);for(const o of s){const a=Object.getOwnPropertyDescriptor(e,o);if(!a)continue;const c=ba(e[o],t,n);n.forceWritable?Object.defineProperty(i,o,{enumerable:a.enumerable,configurable:!0,writable:!0,value:c}):"get"in a?Object.defineProperty(i,o,{...a,get(){return c}}):Object.defineProperty(i,o,{...a,value:c})}return i}return e}function cg(){}function Bh(e,t,n=void 0){const r=t.replace(/\[(\d+)\]/g,".$1").split(".");let i=e;for(const s of r)if(i=new Object(i)[s],i===void 0)return n;return i}function qh(){let e=null,t=null;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function P$(e){let t=-1,n=null,r=0,i=0,s=null;for(;t<=e.length;){s=e[t],t++;const o=e[t];if((o==='"'||o==="'"||o==="`")&&s!=="\\"&&(n===o?n=null:n||(n=o)),n||(o==="("&&r++,o===")"&&i++),r&&i&&r===i)return t}return null}function _$(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}function Sn(e){const 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 Vh(e){return Array.from(new Set(e))}const Je=-1,Ue=1,Ie=0;class Ee{constructor(t,n){L(this,0);L(this,1);this[0]=t,this[1]=n}}function j$(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,s=0;for(;n<i;)e.substring(s,i)===t.substring(s,i)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return i}function ug(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,s=0;for(;n<i;)e.substring(e.length-i,e.length-s)===t.substring(t.length-i,t.length-s)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return i}function Uh(e,t){const 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));const i=Math.min(n,r);if(e===t)return i;let s=0,o=1;for(;;){const a=e.substring(i-o),c=t.indexOf(a);if(c===-1)return s;o+=c,(c===0||e.substring(i-o)===t.substring(0,o))&&(s=o,o++)}}function F$(e){let t=!1;const n=[];let r=0,i=null,s=0,o=0,a=0,c=0,u=0;for(;s<e.length;)e[s][0]===Ie?(n[r++]=s,o=c,a=u,c=0,u=0,i=e[s][1]):(e[s][0]===Ue?c+=e[s][1].length:u+=e[s][1].length,i&&i.length<=Math.max(o,a)&&i.length<=Math.max(c,u)&&(e.splice(n[r-1],0,new Ee(Je,i)),e[n[r-1]+1][0]=Ue,r--,r--,s=r>0?n[r-1]:-1,o=0,a=0,c=0,u=0,i=null,t=!0)),s++;for(t&&lg(e),L$(e),s=1;s<e.length;){if(e[s-1][0]===Je&&e[s][0]===Ue){const l=e[s-1][1],f=e[s][1],h=Uh(l,f),d=Uh(f,l);h>=d?(h>=l.length/2||h>=f.length/2)&&(e.splice(s,0,new Ee(Ie,f.substring(0,h))),e[s-1][1]=l.substring(0,l.length-h),e[s+1][1]=f.substring(h),s++):(d>=l.length/2||d>=f.length/2)&&(e.splice(s,0,new Ee(Ie,l.substring(0,d))),e[s-1][0]=Ue,e[s-1][1]=f.substring(0,f.length-d),e[s+1][0]=Je,e[s+1][1]=l.substring(d),s++),s++}s++}}const zh=/[^a-z0-9]/i,Wh=/\s/,Gh=/[\r\n]/,R$=/\n\r?\n$/,D$=/^\r?\n\r?\n/;function L$(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Ie&&e[t+1][0]===Ie){let n=e[t-1][1],r=e[t][1],i=e[t+1][1];const s=ug(n,r);if(s){const l=r.substring(r.length-s);n=n.substring(0,n.length-s),r=l+r.substring(0,r.length-s),i=l+i}let o=n,a=r,c=i,u=fi(n,r)+fi(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);const l=fi(n,r)+fi(r,i);l>=u&&(u=l,o=n,a=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=a,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function lg(e){var c;e.push(new Ee(Ie,""));let t=0,n=0,r=0,i="",s="",o;for(;t<e.length;)switch(e[t][0]){case Ue:r++,s+=e[t][1],t++;break;case Je:n++,i+=e[t][1],t++;break;case Ie:n+r>1?(n!==0&&r!==0&&(o=j$(s,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===Ie?e[t-n-r-1][1]+=s.substring(0,o):(e.splice(0,0,new Ee(Ie,s.substring(0,o))),t++),s=s.substring(o),i=i.substring(o)),o=ug(s,i),o!==0&&(e[t][1]=s.substring(s.length-o)+e[t][1],s=s.substring(0,s.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new Ee(Je,i)),t++),s.length&&(e.splice(t,0,new Ee(Ue,s)),t++),t++):t!==0&&e[t-1][0]===Ie?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i="",s="";break}((c=e.at(-1))==null?void 0:c[1])===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ie&&e[t+1][0]===Ie&&(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),a=!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),a=!0)),t++;a&&lg(e)}function fi(e,t){if(!e||!t)return 6;const n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(zh),s=r.match(zh),o=i&&n.match(Wh),a=s&&r.match(Wh),c=o&&n.match(Gh),u=a&&r.match(Gh),l=c&&e.match(R$),f=u&&t.match(D$);return l||f?5:c||u?4:i&&!o&&a?3:o||a?2:i||s?1:0}const fg="Compared values have no visual difference.",B$="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";function q$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hi={},Kh;function V$(){if(Kh)return hi;Kh=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=h;const e="diff-sequences",t=0,n=(d,m,p,b,T)=>{let $=0;for(;d<m&&p<b&&T(d,p);)d+=1,p+=1,$+=1;return $},r=(d,m,p,b,T)=>{let $=0;for(;d<=m&&p<=b&&T(m,b);)m-=1,b-=1,$+=1;return $},i=(d,m,p,b,T,$,P)=>{let C=0,v=-d,k=$[C],M=k;$[C]+=n(k+1,m,b+k-v+1,p,T);const J=d<P?d:P;for(C+=1,v+=2;C<=J;C+=1,v+=2){if(C!==d&&M<$[C])k=$[C];else if(k=M+1,m<=k)return C-1;M=$[C],$[C]=k+n(k+1,m,b+k-v+1,p,T)}return P},s=(d,m,p,b,T,$,P)=>{let C=0,v=d,k=$[C],M=k;$[C]-=r(m,k-1,p,b+k-v-1,T);const J=d<P?d:P;for(C+=1,v-=2;C<=J;C+=1,v-=2){if(C!==d&&$[C]<M)k=$[C];else if(k=M-1,k<m)return C-1;M=$[C],$[C]=k-r(m,k-1,p,b+k-v-1,T)}return P},o=(d,m,p,b,T,$,P,C,v,k,M)=>{const J=b-m,be=p-m,ue=T-b-be,pe=-ue-(d-1),Ge=-ue+(d-1);let Re=t;const me=d<C?d:C;for(let Q=0,le=-d;Q<=me;Q+=1,le+=2){const Ke=Q===0||Q!==d&&Re<P[Q],Ae=Ke?P[Q]:Re,ie=Ke?Ae:Ae+1,ye=J+ie-le,_e=n(ie+1,p,ye+1,T,$),qe=ie+_e;if(Re=P[Q],P[Q]=qe,pe<=le&&le<=Ge){const Tt=(d-1-(le+ue))/2;if(Tt<=k&&v[Tt]-1<=qe){const Xe=J+Ae-(Ke?le+1:le-1),He=r(m,Ae,b,Xe,$),nt=Ae-He,Pn=Xe-He,At=nt+1,ar=Pn+1;M.nChangePreceding=d-1,d-1===At+ar-m-b?(M.aEndPreceding=m,M.bEndPreceding=b):(M.aEndPreceding=At,M.bEndPreceding=ar),M.nCommonPreceding=He,He!==0&&(M.aCommonPreceding=At,M.bCommonPreceding=ar),M.nCommonFollowing=_e,_e!==0&&(M.aCommonFollowing=ie+1,M.bCommonFollowing=ye+1);const Ye=qe+1,It=ye+_e+1;return M.nChangeFollowing=d-1,d-1===p+T-Ye-It?(M.aStartFollowing=p,M.bStartFollowing=T):(M.aStartFollowing=Ye,M.bStartFollowing=It),!0}}}return!1},a=(d,m,p,b,T,$,P,C,v,k,M)=>{const J=T-p,be=p-m,ue=T-b-be,pe=ue-d,Ge=ue+d;let Re=t;const me=d<k?d:k;for(let Q=0,le=d;Q<=me;Q+=1,le-=2){const Ke=Q===0||Q!==d&&v[Q]<Re,Ae=Ke?v[Q]:Re,ie=Ke?Ae:Ae-1,ye=J+ie-le,_e=r(m,ie-1,b,ye-1,$),qe=ie-_e;if(Re=v[Q],v[Q]=qe,pe<=le&&le<=Ge){const Tt=(d+(le-ue))/2;if(Tt<=C&&qe-1<=P[Tt]){const Xe=ye-_e;if(M.nChangePreceding=d,d===qe+Xe-m-b?(M.aEndPreceding=m,M.bEndPreceding=b):(M.aEndPreceding=qe,M.bEndPreceding=Xe),M.nCommonPreceding=_e,_e!==0&&(M.aCommonPreceding=qe,M.bCommonPreceding=Xe),M.nChangeFollowing=d-1,d===1)M.nCommonFollowing=0,M.aStartFollowing=p,M.bStartFollowing=T;else{const He=J+Ae-(Ke?le-1:le+1),nt=n(Ae,p,He,T,$);M.nCommonFollowing=nt,nt!==0&&(M.aCommonFollowing=Ae,M.bCommonFollowing=He);const Pn=Ae+nt,At=He+nt;d-1===p+T-Pn-At?(M.aStartFollowing=p,M.bStartFollowing=T):(M.aStartFollowing=Pn,M.bStartFollowing=At)}return!0}}}return!1},c=(d,m,p,b,T,$,P,C,v)=>{const k=b-m,M=T-p,J=p-m,be=T-b,q=be-J;let ue=J,pe=J;if(P[0]=m-1,C[0]=p,q%2===0){const Ge=(d||q)/2,Re=(J+be)/2;for(let me=1;me<=Re;me+=1)if(ue=i(me,p,T,k,$,P,ue),me<Ge)pe=s(me,m,b,M,$,C,pe);else if(a(me,m,p,b,T,$,P,ue,C,pe,v))return}else{const Ge=((d||q)+1)/2,Re=(J+be+1)/2;let me=1;for(ue=i(me,p,T,k,$,P,ue),me+=1;me<=Re;me+=1)if(pe=s(me-1,m,b,M,$,C,pe),me<Ge)ue=i(me,p,T,k,$,P,ue);else if(o(me,m,p,b,T,$,P,ue,C,pe,v))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${p} bStart=${b} bEnd=${T}`)},u=(d,m,p,b,T,$,P,C,v,k)=>{if(T-b<p-m){if($=!$,$&&P.length===1){const{foundSubsequence:qe,isCommon:Tt}=P[0];P[1]={foundSubsequence:(Xe,He,nt)=>{qe(Xe,nt,He)},isCommon:(Xe,He)=>Tt(He,Xe)}}const ye=m,_e=p;m=b,p=T,b=ye,T=_e}const{foundSubsequence:M,isCommon:J}=P[$?1:0];c(d,m,p,b,T,J,C,v,k);const{nChangePreceding:be,aEndPreceding:q,bEndPreceding:ue,nCommonPreceding:pe,aCommonPreceding:Ge,bCommonPreceding:Re,nCommonFollowing:me,aCommonFollowing:Q,bCommonFollowing:le,nChangeFollowing:Ke,aStartFollowing:Ae,bStartFollowing:ie}=k;m<q&&b<ue&&u(be,m,q,b,ue,$,P,C,v,k),pe!==0&&M(pe,Ge,Re),me!==0&&M(me,Q,le),Ae<p&&ie<T&&u(Ke,Ae,p,ie,T,$,P,C,v,k)},l=(d,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${d} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${d} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${d} value ${m} is a negative integer`)},f=(d,m)=>{const p=typeof m;if(p!=="function")throw new TypeError(`${e}: ${d} typeof ${p} is not a function`)};function h(d,m,p,b){l("aLength",d),l("bLength",m),f("isCommon",p),f("foundSubsequence",b);const T=n(0,d,0,m,p);if(T!==0&&b(T,0,0),d!==T||m!==T){const $=T,P=T,C=r($,d-1,P,m-1,p),v=d-C,k=m-C,M=T+C;d!==M&&m!==M&&u(0,$,v,P,k,!1,[{foundSubsequence:b,isCommon:p}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),C!==0&&b(C,v,k)}}return hi}var U$=V$(),hg=q$(U$);function z$(e,t){return e.replace(/\s+$/,n=>t(n))}function ru(e,t,n,r,i,s){return e.length!==0?n(`${r} ${z$(e,i)}`):r!==" "?n(r):t&&s.length!==0?n(`${r} ${s}`):""}function dg(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:s}){return ru(e,t,n,r,i,s)}function pg(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:s}){return ru(e,t,n,r,i,s)}function mg(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:s}){return ru(e,t,n,r,i,s)}function Hh(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function W$(e,t){const n=e.length,r=t.contextLines,i=r+r;let s=n,o=!1,a=0,c=0;for(;c!==n;){const C=c;for(;c!==n&&e[c][0]===Ie;)c+=1;if(C!==c)if(C===0)c>r&&(s-=c-r,o=!0);else if(c===n){const v=c-C;v>r&&(s-=v-r,o=!0)}else{const v=c-C;v>i&&(s-=v-i,a+=1)}for(;c!==n&&e[c][0]!==Ie;)c+=1}const u=a!==0||o;a!==0?s+=a+1:o&&(s+=1);const l=s-1,f=[];let h=0;u&&f.push("");let d=0,m=0,p=0,b=0;const T=C=>{const v=f.length;f.push(mg(C,v===0||v===l,t)),p+=1,b+=1},$=C=>{const v=f.length;f.push(dg(C,v===0||v===l,t)),p+=1},P=C=>{const v=f.length;f.push(pg(C,v===0||v===l,t)),b+=1};for(c=0;c!==n;){let C=c;for(;c!==n&&e[c][0]===Ie;)c+=1;if(C!==c)if(C===0){c>r&&(C=c-r,d=C,m=C,p=d,b=m);for(let v=C;v!==c;v+=1)T(e[v][1])}else if(c===n){const v=c-C>r?C+r:c;for(let k=C;k!==v;k+=1)T(e[k][1])}else{const v=c-C;if(v>i){const k=C+r;for(let J=C;J!==k;J+=1)T(e[J][1]);f[h]=Hh(d,p,m,b,t),h=f.length,f.push("");const M=v-i;d=p+M,m=b+M,p=d,b=m;for(let J=c-r;J!==c;J+=1)T(e[J][1])}else for(let k=C;k!==c;k+=1)T(e[k][1])}for(;c!==n&&e[c][0]===Je;)$(e[c][1]),c+=1;for(;c!==n&&e[c][0]===Ue;)P(e[c][1]),c+=1}return u&&(f[h]=Hh(d,p,m,b,t)),f.join(`
60
+ `)}function G$(e,t){return e.map((n,r,i)=>{const s=n[1],o=r===0||r===i.length-1;switch(n[0]){case Je:return dg(s,o,t);case Ue:return pg(s,o,t);default:return mg(s,o,t)}}).join(`
61
+ `)}const Eo=e=>e,gg=5,K$=0;function H$(){return{aAnnotation:"Expected",aColor:$e.green,aIndicator:"-",bAnnotation:"Received",bColor:$e.red,bIndicator:"+",changeColor:$e.inverse,changeLineTrailingSpaceColor:Eo,commonColor:$e.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Eo,compareKeys:void 0,contextLines:gg,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:$e.yellow,printBasicPrototype:!1,truncateThreshold:K$,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Eo}}function Y$(e){return e&&typeof e=="function"?e:void 0}function J$(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:gg}function kn(e={}){return{...H$(),...e,compareKeys:Y$(e.compareKeys),contextLines:J$(e.contextLines)}}function qn(e){return e.length===1&&e[0].length===0}function Z$(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case Je:t+=1;break;case Ue:n+=1;break}}),{a:t,b:n}}function X$({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:s,includeChangeCounts:o,omitAnnotationLines:a},c){if(a)return"";let u="",l="";if(o){const d=String(c.a),m=String(c.b),p=r.length-e.length,b=" ".repeat(Math.max(0,p)),T=" ".repeat(Math.max(0,-p)),$=m.length-d.length,P=" ".repeat(Math.max(0,$)),C=" ".repeat(Math.max(0,-$));u=`${b} ${n} ${P}${d}`,l=`${T} ${s} ${C}${m}`}const f=`${n} ${e}${u}`,h=`${s} ${r}${l}`;return`${t(f)}
62
+ ${i(h)}
63
+
64
+ `}function iu(e,t,n){return X$(n,Z$(e))+(n.expand?G$(e,n):W$(e,n))+(t?n.truncateAnnotationColor(`
65
+ ${n.truncateAnnotation}`):"")}function As(e,t,n){const r=kn(n),[i,s]=xg(qn(e)?[]:e,qn(t)?[]:t,r);return iu(i,s,r)}function Q$(e,t,n,r,i){if(qn(e)&&qn(n)&&(e=[],n=[]),qn(t)&&qn(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return As(e,t,i);const[s,o]=xg(n,r,i);let a=0,c=0;return s.forEach(u=>{switch(u[0]){case Je:u[1]=e[a],a+=1;break;case Ue:u[1]=t[c],c+=1;break;default:u[1]=t[c],a+=1,c+=1}}),iu(s,o,kn(i))}function xg(e,t,n){const r=(n==null?void 0:n.truncateThreshold)??!1,i=Math.max(Math.floor((n==null?void 0:n.truncateThreshold)??0),0),s=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,a=s!==e.length||o!==t.length,c=(d,m)=>e[d]===t[m],u=[];let l=0,f=0;for(hg(s,o,c,(d,m,p)=>{for(;l!==m;l+=1)u.push(new Ee(Je,e[l]));for(;f!==p;f+=1)u.push(new Ee(Ue,t[f]));for(;d!==0;d-=1,l+=1,f+=1)u.push(new Ee(Ie,t[f]))});l!==s;l+=1)u.push(new Ee(Je,e[l]));for(;f!==o;f+=1)u.push(new Ee(Ue,t[f]));return[u,a]}function Yh(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function Jh(e){return e.includes(`\r
66
+ `)?`\r
67
+ `:`
68
+ `}function eC(e,t,n){const r=(n==null?void 0:n.truncateThreshold)??!1,i=Math.max(Math.floor((n==null?void 0:n.truncateThreshold)??0),0);let s=e.length,o=t.length;if(r){const d=e.includes(`
69
+ `),m=t.includes(`
70
+ `),p=Jh(e),b=Jh(t),T=d?`${e.split(p,i).join(p)}
71
+ `:e,$=m?`${t.split(b,i).join(b)}
72
+ `:t;s=T.length,o=$.length}const a=s!==e.length||o!==t.length,c=(d,m)=>e[d]===t[m];let u=0,l=0;const f=[];return hg(s,o,c,(d,m,p)=>{u!==m&&f.push(new Ee(Je,e.slice(u,m))),l!==p&&f.push(new Ee(Ue,t.slice(l,p))),u=m+d,l=p+d,f.push(new Ee(Ie,t.slice(p,l)))}),u!==s&&f.push(new Ee(Je,e.slice(u))),l!==o&&f.push(new Ee(Ue,t.slice(l))),[f,a]}function tC(e,t,n){return t.reduce((r,i)=>r+(i[0]===Ie?i[1]:i[0]===e&&i[1].length!==0?n(i[1]):""),"")}class Zh{constructor(t,n){L(this,"op");L(this,"line");L(this,"lines");L(this,"changeColor");this.op=t,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(t){this.pushDiff(new Ee(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new Ee(this.op,tC(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ee(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){const n=t[1];if(n.includes(`
73
+ `)){const r=n.split(`
74
+ `),i=r.length-1;r.forEach((s,o)=>{o<i?(this.pushSubstring(s),this.pushLine()):s.length!==0&&this.pushSubstring(s)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}}class nC{constructor(t,n){L(this,"deleteBuffer");L(this,"insertBuffer");L(this,"lines");this.deleteBuffer=t,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){const n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){const n=t[0],r=t[1];if(r.includes(`
75
+ `)){const i=r.split(`
76
+ `),s=i.length-1;i.forEach((o,a)=>{if(a===0){const c=new Ee(n,o);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(c)):(this.pushDiffChangeLines(c),this.flushChangeLines())}else a<s?this.pushDiffCommonLine(new Ee(n,o)):o.length!==0&&this.pushDiffChangeLines(new Ee(n,o))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}}function rC(e,t){const n=new Zh(Je,t),r=new Zh(Ue,t),i=new nC(n,r);return e.forEach(s=>{switch(s[0]){case Je:n.align(s);break;case Ue:r.align(s);break;default:i.align(s)}}),i.getLines()}function iC(e,t){if(t){const n=e.length-1;return e.some((r,i)=>r[0]===Ie&&(i!==n||r[1]!==`
77
+ `))}return e.some(n=>n[0]===Ie)}function sC(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){const r=e.includes(`
78
+ `)||t.includes(`
79
+ `),[i,s]=bg(r?`${e}
80
+ `:e,r?`${t}
81
+ `:t,!0,n);if(iC(i,r)){const o=kn(n),a=rC(i,o.changeColor);return iu(a,s,o)}}return As(e.split(`
82
+ `),t.split(`
83
+ `),n)}function bg(e,t,n,r){const[i,s]=eC(e,t,r);return F$(i),[i,s]}function ya(e,t){const{commonColor:n}=kn(t);return n(e)}const{AsymmetricMatcher:oC,DOMCollection:aC,DOMElement:cC,Immutable:uC,ReactElement:lC,ReactTestComponent:fC}=Ts,yg=[fC,lC,cC,aC,uC,oC,Ts.Error],wa={maxDepth:20,plugins:yg},wg={callToJSON:!1,maxDepth:8,plugins:yg};function rr(e,t,n){if(Object.is(e,t))return"";const r=Yh(e);let i=r,s=!1;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),s=i==="string"}if(i!==Yh(t)){let b=function(P){return P.length<=p?P:`${P.slice(0,p)}...`};const{aAnnotation:o,aColor:a,aIndicator:c,bAnnotation:u,bColor:l,bIndicator:f}=kn(n),h=Sa(wg,n);let d=yt(e,h),m=yt(t,h);const p=1e5;d=b(d),m=b(m);const T=`${a(`${c} ${o}:`)}
84
+ ${d}`,$=`${l(`${f} ${u}:`)}
85
+ ${m}`;return`${T}
86
+
87
+ ${$}`}if(!s)switch(r){case"string":return As(e.split(`
88
+ `),t.split(`
89
+ `),n);case"boolean":case"number":return hC(e,t,n);case"map":return To(Xh(e),Xh(t),n);case"set":return To(Qh(e),Qh(t),n);default:return To(e,t,n)}}function hC(e,t,n){const r=yt(e,wa),i=yt(t,wa);return r===i?"":As(r.split(`
90
+ `),i.split(`
91
+ `),n)}function Xh(e){return new Map(Array.from(e.entries()).sort())}function Qh(e){return new Set(Array.from(e.values()).sort())}function To(e,t,n){let r,i=!1;try{const o=Sa(wa,n);r=ed(e,t,o,n)}catch{i=!0}const s=ya(fg,n);if(r===void 0||r===s){const o=Sa(wg,n);r=ed(e,t,o,n),r!==s&&!i&&(r=`${ya(B$,n)}
92
+
93
+ ${r}`)}return r}function Sa(e,t){const{compareKeys:n,printBasicPrototype:r,maxDepth:i}=kn(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function ed(e,t,n,r){const i={...n,indent:0},s=yt(e,i),o=yt(t,i);if(s===o)return ya(fg,r);{const a=yt(e,n),c=yt(t,n);return Q$(a.split(`
94
+ `),c.split(`
95
+ `),s.split(`
96
+ `),o.split(`
97
+ `),r)}}const td=2e4;function nd(e){return Rr(e)==="Object"&&typeof e.asymmetricMatch=="function"}function di(e,t){const n=Rr(e),r=Rr(t);return n===r&&(n==="Object"||n==="Array")}function Sg(e,t,n){const{aAnnotation:r,bAnnotation:i}=kn(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=td&&e.length<=td&&t!==e){if(t.includes(`
98
+ `)||e.includes(`
99
+ `))return sC(t,e,n);const[l]=bg(t,e),f=l.some(p=>p[0]===Ie),h=dC(r,i),d=h(r)+gC(rd(l,Je,f)),m=h(i)+mC(rd(l,Ue,f));return`${d}
100
+ ${m}`}const s=Lh(t,{forceWritable:!0}),o=Lh(e,{forceWritable:!0}),{replacedExpected:a,replacedActual:c}=Mi(o,s);return rr(a,c,n)}function Mi(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):di(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),og(t).forEach(i=>{const s=t[i],o=e[i];if(nd(s)){if(s.asymmetricMatch(o))t[i]=o;else if("sample"in s&&s.sample!==void 0&&di(o,s.sample)){const a=Mi(o,s.sample,n,r);e[i]=a.replacedActual,t[i]=a.replacedExpected}}else if(nd(o)){if(o.asymmetricMatch(s))e[i]=s;else if("sample"in o&&o.sample!==void 0&&di(o.sample,s)){const a=Mi(o.sample,s,n,r);e[i]=a.replacedActual,t[i]=a.replacedExpected}}else if(di(o,s)){const a=Mi(o,s,n,r);e[i]=a.replacedActual,t[i]=a.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function dC(...e){const t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}const pC="·";function Eg(e){return e.replace(/\s+$/gm,t=>pC.repeat(t.length))}function mC(e){return $e.red(Eg(at(e)))}function gC(e){return $e.green(Eg(at(e)))}function rd(e,t,n){return e.reduce((r,i)=>r+(i[0]===Ie?i[1]:i[0]===t?n?$e.inverse(i[1]):i[1]:""),"")}const xC="@@__IMMUTABLE_RECORD__@@",bC="@@__IMMUTABLE_ITERABLE__@@";function yC(e){return e&&(e[bC]||e[xC])}const wC=Object.getPrototypeOf({});function id(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function rn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){const n=e.toJSON();return n&&n!==e&&typeof n=="object"&&(typeof e.message=="string"&&dr(()=>n.message??(n.message=sd(e.message))),typeof e.stack=="string"&&dr(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&dr(()=>n.name??(n.name=e.name)),e.cause!=null&&dr(()=>n.cause??(n.cause=rn(e.cause,t)))),rn(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(yC(e))return rn(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 rn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){const n=new Array(e.length);return t.set(e,n),e.forEach((r,i)=>{try{n[i]=rn(r,t)}catch(s){n[i]=id(s)}}),n}else{const n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==wC;)Object.getOwnPropertyNames(r).forEach(i=>{if(!(i in n))try{n[i]=rn(e[i],t)}catch(s){delete n[i],n[i]=id(s)}}),r=Object.getPrototypeOf(r);return e instanceof Error&&dr(()=>n.message=sd(e.message)),n}}function dr(e){try{return e()}catch{}}function sd(e){return e.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/getByTestId('__vitest_\d+__')/g,"page")}function Tg(e,t,n=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};const r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=Sg(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=at(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=at(r.actual,10));try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=Tg(r.cause,t,n))}catch{}try{return rn(r)}catch(i){return rn(new Error(`Failed to fully serialize error: ${i==null?void 0:i.message}
101
+ Inner error message: ${r==null?void 0:r.message}`))}}const od=Symbol("vitest:SAFE_TIMERS");function su(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:s,queueMicrotask:o}=globalThis[od]||globalThis,{nextTick:a}=globalThis[od]||globalThis.process||{};return{nextTick:a,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:s,queueMicrotask:o}}function SC(e,t=setTimeout){return new Promise(n=>t(n,e))}const EC=/^[A-Za-z]:\//;function TC(e=""){return e&&e.replace(/\\/g,"/").replace(EC,t=>t.toUpperCase())}const AC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function IC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Ag=function(...e){e=e.map(r=>TC(r));let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:IC();!i||i.length===0||(t=`${i}/${t}`,n=ad(i))}return t=$C(t,!n),n&&!ad(t)?`/${t}`:t.length>0?t:"."};function $C(e,t){let n="",r=0,i=-1,s=0,o=null;for(let a=0;a<=e.length;++a){if(a<e.length)o=e[a];else{if(o==="/")break;o="/"}if(o==="/"){if(!(i===a-1||s===1))if(s===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const c=n.lastIndexOf("/");c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${e.slice(i+1,a)}`:n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o==="."&&s!==-1?++s:s=-1}return n}const ad=function(e){return AC.test(e)};var CC=44,cd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vC=new Uint8Array(64),Ig=new Uint8Array(128);for(let e=0;e<cd.length;e++){const t=cd.charCodeAt(e);vC[e]=t,Ig[t]=e}function pr(e,t){let n=0,r=0,i=0;do{const o=e.next();i=Ig[o],n|=(i&31)<<r,r+=5}while(i&32);const s=n&1;return n>>>=1,s&&(n=-2147483648|-n),t+n}function ud(e,t){return e.pos>=t?!1:e.peek()!==CC}var MC=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){const{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function OC(e){const{length:t}=e,n=new MC(e),r=[];let i=0,s=0,o=0,a=0,c=0;do{const u=n.indexOf(";"),l=[];let f=!0,h=0;for(i=0;n.pos<u;){let d;i=pr(n,i),i<h&&(f=!1),h=i,ud(n,u)?(s=pr(n,s),o=pr(n,o),a=pr(n,a),ud(n,u)?(c=pr(n,c),d=[i,s,o,a,c]):d=[i,s,o,a]):d=[i],l.push(d),n.pos++}f||NC(l),r.push(l),n.pos=u+1}while(n.pos<=t);return r}function NC(e){e.sort(kC)}function kC(e,t){return e[0]-t[0]}var Is=0,PC=1,_C=2,jC=3,FC=4,Vi=!1;function RC(e,t,n,r){for(;n<=r;){const i=n+(r-n>>1),s=e[i][Is]-t;if(s===0)return Vi=!0,i;s<0?n=i+1:r=i-1}return Vi=!1,n-1}function DC(e,t,n){for(let r=n+1;r<e.length&&e[r][Is]===t;n=r++);return n}function LC(e,t,n){for(let r=n-1;r>=0&&e[r][Is]===t;n=r--);return n}function BC(e,t,n,r){const{lastKey:i,lastNeedle:s,lastIndex:o}=n;let a=0,c=e.length-1;if(r===i){if(t===s)return Vi=o!==-1&&e[o][Is]===t,o;t>=s?a=o===-1?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=RC(e,t,a,c)}var qC="`line` must be greater than 0 (lines start at line 1)",VC="`column` must be greater than or equal to 0 (columns start at column 0)",ld=-1,UC=1;function zC(e){var t;return(t=e)._decoded||(t._decoded=OC(e._encoded))}function WC(e,t){let{line:n,column:r,bias:i}=t;if(n--,n<0)throw new Error(qC);if(r<0)throw new Error(VC);const s=zC(e);if(n>=s.length)return pi(null,null,null,null);const o=s[n],a=GC(o,e._decodedMemo,n,r,i||UC);if(a===-1)return pi(null,null,null,null);const c=o[a];if(c.length===1)return pi(null,null,null,null);const{names:u,resolvedSources:l}=e;return pi(l[c[PC]],c[_C]+1,c[jC],c.length===5?u[c[FC]]:null)}function pi(e,t,n,r){return{source:e,line:t,column:n,name:r}}function GC(e,t,n,r,i){let s=BC(e,r,t,n);return Vi?s=(i===ld?DC:LC)(e,r,s):i===ld&&s++,s===-1||s===e.length?-1:s}const ou=/^\s*at .*(?:\S:\d+|\(native\))/m,KC=/^(?:eval@)?(?:\[native code\])?$/,HC=["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__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],YC=Date.now().toString().length,JC=new RegExp(`vitest=\\d{${YC}}`);function $g(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){const i=new URL(r);i.searchParams.delete("import"),i.searchParams.delete("browserv"),r=i.pathname+i.hash+i.search}if(r.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(i?5:4)}return r.includes("vitest=")&&(r=r.replace(JC,"").replace(/[?&]$/,"")),[r,n[2]||void 0,n[3]||void 0]}function Cg(e){let t=e.trim();if(KC.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 c=0;c<t.length;c++)if(t[c]==="@"){const u=t.slice(c+1);if(u.includes(":")&&u.length>=3){n=c,r=u,i=c>0?t.slice(0,c):void 0;break}}if(n===-1||!r.includes(":")||r.length<3)return null;const[s,o,a]=$g(r);return!s||!o||!a?null:{file:s,method:i||"",line:Number.parseInt(o),column:Number.parseInt(a)}}function ZC(e){const t=e.trim();return ou.test(t)?vg(t):Cg(t)}function vg(e){let t=e.trim();if(!ou.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+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[i,s,o]=$g(r?r[1]:n);let a=r&&n||"",c=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!c||!s||!o?null:(a.startsWith("async ")&&(a=a.slice(6)),c.startsWith("file://")&&(c=c.slice(7)),c=c.startsWith("node:")||c.startsWith("internal:")?c:Ag(c),a&&(a=a.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:a,file:c,line:Number.parseInt(s),column:Number.parseInt(o)})}function Ao(e,t={}){const{ignoreStackEntries:n=HC}=t;let r=ou.test(e)?QC(e):XC(e);const i=r.findLastIndex(s=>s.method==="__VITEST_HELPER__"||s.method==="async*__VITEST_HELPER__");return i>=0&&(r=r.slice(i+1)),r.map(s=>{var m;t.getUrlId&&(s.file=t.getUrlId(s.file));const o=(m=t.getSourceMap)==null?void 0:m.call(t,s.file);if(!o||typeof o!="object"||!o.version)return fd(n,s.file)?null:s;const a=new t2(o,s.file),c=r2(a,s);if(!c)return s;const{line:u,column:l,source:f,name:h}=c;let d=f||s.file;return d.match(/\/\w:\//)&&(d=d.slice(1)),fd(n,d)?null:u!=null&&l!=null?{line:u,column:l,file:d,method:h||s.method}:s}).filter(s=>s!=null)}function fd(e,t){return e.some(n=>t.match(n))}function XC(e){return e.split(`
102
+ `).map(t=>Cg(t)).filter(sg)}function QC(e){return e.split(`
103
+ `).map(t=>vg(t)).filter(sg)}function e2(e,t={}){if(!e||M$(e))return[];if("stacks"in e&&e.stacks)return e.stacks;const n=e.stack||"";let r=typeof n=="string"?Ao(n,t):[];if(!r.length){const i=e;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(r=Ao(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,t)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(r=Ao(`${i.sourceURL}:${i.line}:${i.column}`,t))}return t.frameFilter&&(r=r.filter(i=>t.frameFilter(e,i)!==!1)),e.stacks=r,r}class t2{constructor(t,n){L(this,"_encoded");L(this,"_decoded");L(this,"_decodedMemo");L(this,"url");L(this,"version");L(this,"names",[]);L(this,"resolvedSources");this.map=t;const{mappings:r,names:i,sources:s}=t;this.version=t.version,this.names=i||[],this._encoded=r||"",this._decodedMemo=n2(),this.url=n,this.resolvedSources=(s||[]).map(o=>Ag(n,"..",o||""))}}function n2(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function r2(e,t){const n=WC(e,t);return n.column==null?null:n}const Mg=Symbol("kChainableContext");function Ut(e){return e==null?void 0:e[Mg]}function Og(e,t,n){function r(s){const o=function(...a){return t.apply(s,a)};Object.assign(o,t),Object.defineProperty(o,Mg,{value:{withContext:()=>o.bind(s),getFixtures:()=>s.fixtures,setContext:(a,c)=>{s[a]=c},mergeContext:a=>{Object.assign(s,a)}},enumerable:!1});for(const a of e)Object.defineProperty(o,a,{get(){return r({...s,[a]:!0})}});return o}const i=r(n??{});return Object.defineProperty(i,"fn",{value:t,enumerable:!1}),i}function Ng(e,t){const n=t.split(`
104
+ `).slice(1);for(const r of n){const i=ZC(r);if(i&&i.file===e)return i}}function i2(e,t){if(!e.strictTags)return;const n=new Set(e.tags.map(r=>r.name));for(const r of t)if(!n.has(r))throw kg(e.tags,r)}function kg(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
105
+ ${e.map(r=>`- ${r.name}${r.description?`: ${r.description}`:""}`).join(`
106
+ `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function s2(e){const t=[e.name];let n=e;for(;n!=null&&n.suite;)n=n.suite,n!=null&&n.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function mi(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}class o2 extends Error{constructor(n,r,i){super(n);L(this,"code","VITEST_PENDING");L(this,"taskId");this.message=n,this.note=i,this.taskId=r.id}}class Qt extends Error{constructor(){super(...arguments);L(this,"name","FixtureDependencyError")}}class a2 extends Error{constructor(){super(...arguments);L(this,"name","FixtureAccessError")}}class hd extends Error{constructor(){super(...arguments);L(this,"name","FixtureParseError")}}const c2=new WeakMap,Pg=new WeakMap,_g=new WeakMap;function u2(e,t){c2.set(e,t)}function l2(e,t){Pg.set(e,t)}function f2(e){return Pg.get(e)}function h2(e,t){_g.set(e,t)}function d2(e){return _g.get(e)}const Oe=class Oe{constructor(t){L(this,"_suiteContexts");L(this,"_overrides",new WeakMap);L(this,"_registrations");this._registrations=t??new Map,this._suiteContexts=new WeakMap,Oe._definitions.push(this)}static clearDefinitions(){Oe._definitions.length=0}static getWorkerContexts(){return Oe._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return Oe._definitions.map(n=>n.getFileContext(t))}extend(t,n){const{suite:r}=Dt(),i=!r||r.file===r,s=this.parseUserFixtures(t,n,i);return new Oe(s)}get(t){let n=t;for(;n;){const r=this._overrides.get(n);if(r)return r;if(n===n.file)break;n=n.suite||n.file}return this._registrations}override(t,n){const{suite:r,file:i}=Dt(),s=r||i,o=!r||r.file===r,a=new Map(this.get(s)),c=this.parseUserFixtures(t,n,o,a);o?this._registrations=c:this._overrides.set(s,c)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(Oe._workerContextSuite)||this._suiteContexts.set(Oe._workerContextSuite,Object.create(null)),this._suiteContexts.get(Oe._workerContextSuite)}parseUserFixtures(t,n,r,i=new Map(this._registrations)){const s=[];Object.entries(n).forEach(([o,a])=>{var m;let c,u,l;Array.isArray(a)&&a.length>=2&&Pt(a[1])&&Object.keys(a[1]).some(p=>Oe._fixtureOptionKeys.includes(p))?(l=a[1],c={auto:l.auto??!1,scope:l.scope??"test",injected:l.injected??!1},u=c.injected?((m=t.injectValue)==null?void 0:m.call(t,o))??a[0]:a[0]):u=a;const f=i.get(o);f&&c?(f.scope!==c.scope&&s.push(new Qt(`The "${o}" fixture was already registered with a "${c.scope}" scope.`)),f.auto!==c.auto&&s.push(new Qt(`The "${o}" fixture was already registered as { auto: ${c.auto} }.`))):f?c={auto:f.auto,scope:f.scope,injected:f.injected}:c||(c={auto:!1,injected:!1,scope:"test"}),c.scope&&!Oe._fixtureScopes.includes(c.scope)&&s.push(new Qt(`The "${o}" fixture has unknown scope "${c.scope}".`)),!r&&c.scope!=="test"&&s.push(new Qt(`The "${o}" fixture cannot be defined with a ${c.scope} scope${!(l!=null&&l.scope)&&(f!=null&&f.scope)?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const h=$s(u)?au(u):new Set,d={name:o,value:u,auto:c.auto??!1,injected:c.injected??!1,scope:c.scope??"test",deps:h,parent:f};i.set(o,d),d.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(d.scope="file")});for(const o of i.values())for(const a of o.deps){if(Oe._builtinFixtures.includes(a))continue;const c=i.get(a);if(!c){s.push(new Qt(`The "${o.name}" fixture depends on unknown fixture "${a}".`));continue}if(a===o.name&&!o.parent){s.push(new Qt(`The "${o.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(Oe._fixtureScopes.indexOf(o.scope)>Oe._fixtureScopes.indexOf(c.scope)){s.push(new Qt(`The ${o.scope} "${o.name}" fixture cannot depend on a ${c.scope} fixture "${c.name}".`));continue}}if(s.length===1)throw s[0];if(s.length>1)throw new AggregateError(s,"Cannot resolve user fixtures. See errors for more information.");return i}};L(Oe,"_definitions",[]),L(Oe,"_builtinFixtures",["task","signal","onTestFailed","onTestFinished","skip","annotate"]),L(Oe,"_fixtureOptionKeys",["auto","injected","scope"]),L(Oe,"_fixtureScopes",["test","file","worker"]),L(Oe,"_workerContextSuite",{type:"worker"});let Ui=Oe;const Wn=new WeakMap,Io=new WeakMap;function Gr(e,t){const n=Dt(),r=(t==null?void 0:t.suite)||n.suite||n.file;return async i=>{var d;const s=i||(t==null?void 0:t.context);if(!s)return t!=null&&t.suiteHook&&g2(e,t.suiteHook,t.stackTraceError),e({});const o=(t==null?void 0:t.fixtures)||f2(s);if(!o)return e(s);const a=o.get(r);if(!a.size)return e(s);const c=[],u=au(e);for(const m of a.values())(m.auto||u.has(m.name))&&c.push(m);if(!c.length)return e(s);Wn.has(s)||Wn.set(s,[]);const l=Wn.get(s),f=Fg(c,a);if(!f.length)return e(s);if(t!=null&&t.suiteHook){const m=f.filter(p=>p.scope==="test");if(m.length>0){const p=m.map($=>`"${$.name}"`).join(", "),b={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},T=new Qt(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${p}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${b[t.suiteHook]} hook.`);throw(d=t.stackTraceError)!=null&&d.stack&&(T.stack=T.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),T}}Io.has(s)||Io.set(s,new WeakSet);const h=Io.get(s);for(const m of f)if(m.scope==="test"){if(h.has(m))continue;h.add(m);const p=await p2(m,s,l);s[m.name]=p,l.push(()=>{h.delete(m)})}else{const p=await m2(o,r,m);s[m.name]=p}return e(s)}}function $s(e){return typeof e=="function"}function p2(e,t,n){return $s(e.value)?jg(e.value,t,n):e.value}const gi=new WeakMap;async function m2(e,t,n){const r=e.getWorkerContext(),i=e.getFileContext(t.file),s=n.scope==="worker"?r:i;if(!$s(n.value))return s[n.name]=n.value,n.value;if(n.name in s)return s[n.name];if(gi.has(n))return gi.get(n);Wn.has(s)||Wn.set(s,[]);const o=Wn.get(s),a=jg(n.value,n.scope==="file"?{...r,...i}:s,o).then(c=>(s[n.name]=c,gi.delete(n),c));return gi.set(n,a),a}async function jg(e,t,n){const r=qh();let i=!1;const s=e(t,async o=>{i=!0,r.resolve(o);const a=qh();n.push(async()=>{a.resolve(),await s}),await a}).catch(o=>{if(!i){r.reject(o);return}throw o});return r}function Fg(e,t,n=new Set,r=[]){return e.forEach(i=>{if(!r.includes(i)){if(!$s(i.value)||!i.deps){r.push(i);return}if(n.has(i))if(i.parent)i=i.parent;else throw new Error(`Circular fixture dependency detected: ${i.name} <- ${[...n].reverse().map(s=>s.name).join(" <- ")}`);n.add(i),Fg([...i.deps].map(s=>s===i.name?i.parent:t.get(s)).filter(s=>!!s),t,n,r),r.push(i),n.clear()}}),r}function g2(e,t,n){var i;const r=au(e,{sourceError:n,suiteHook:t});if(r.size){const s=new a2(`The ${t} hook uses fixtures "${[...r].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
107
+ If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(s.stack=(i=n.stack)==null?void 0:i.replace(n.message,s.message)),s}}const Ea=Symbol("$vitest:fixture-props"),Ta=Symbol("$vitest:fixture-prop-names");function zi(e,t){Object.defineProperty(e,Ea,{value:t,enumerable:!1})}function xi(e,t){return e[Ta]=t,t}function au(e,{sourceError:t,suiteHook:n}={}){var h,d;if(Ta in e)return e[Ta];const{index:r=0,original:i=e}=Ea in e?e[Ea]:{};let s=O$(i.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(s)&&(s=s.split(/__async\((?:this|null),/)[1]);const o=s.match(/[^(]*\(([^)]*)/);if(!o)return xi(e,new Set);const a=dd(o[1]);if(!a.length)return xi(e,new Set);const c=a[r];if(!c)return xi(e,new Set);if(!(c[0]==="{"&&c.endsWith("}"))){const m=Sn(r+1),p=new hd(`The ${m} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${c}".${n?` If you used internal "suite" task as the ${m} argument previously, access it in the ${Sn(r+2)} argument instead.`:""}`);throw t&&(p.stack=(h=t.stack)==null?void 0:h.replace(t.message,p.message)),p}const u=c.slice(1,-1).replace(/\s/g,""),l=dd(u).map(m=>m.replace(/:.*|=.*/g,"")),f=l.at(-1);if(f&&f.startsWith("...")){const m=new hd(`Rest parameters are not supported in fixtures, received "${f}".`);throw t&&(m.stack=(d=t.stack)==null?void 0:d.replace(t.message,m.message)),m}return xi(e,new Set(l))}function dd(e){const t=[],n=[];let r=0;for(let s=0;s<e.length;s++)if(e[s]==="{"||e[s]==="[")n.push(e[s]==="{"?"}":"]");else if(e[s]===n.at(-1))n.pop();else if(!n.length&&e[s]===","){const o=e.substring(r,s).trim();o&&t.push(o),r=s+1}const i=e.substring(r).trim();return i&&t.push(i),t}function In(){return uu().config.hookTimeout}const Rg=Symbol.for("VITEST_CLEANUP_TIMEOUT"),Dg=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),Lg=Symbol.for("VITEST_AROUND_TIMEOUT"),Bg=Symbol.for("VITEST_AROUND_STACK_TRACE");function x2(e,t=In()){Qe(e,'"beforeAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=Ut(this);return Dt().on("beforeAll",Object.assign($n(cu("beforeAll",e,r,n),t,!0,n),{[Rg]:t,[Dg]:n}))}function b2(e,t){Qe(e,'"afterAll" callback',["function"]);const n=Ut(this),r=new Error("STACK_TRACE_ERROR");return Dt().on("afterAll",$n(cu("afterAll",e,n,r),t??In(),!0,r))}function y2(e,t=In()){Qe(e,'"beforeEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=(i,s)=>Gr(e,{suite:s})(i);return Dt().on("beforeEach",Object.assign($n(r,t??In(),!0,n,fu),{[Rg]:t,[Dg]:n}))}function w2(e,t){Qe(e,'"afterEach" callback',["function"]);const n=(r,i)=>Gr(e,{suite:i})(r);return Dt().on("afterEach",$n(n,t??In(),!0,new Error("STACK_TRACE_ERROR"),fu))}function S2(e,t){Qe(e,'"aroundAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=t??In(),i=Ut(this);return Dt().on("aroundAll",Object.assign(cu("aroundAll",e,i,n,1),{[Lg]:r,[Bg]:n}))}function E2(e,t){Qe(e,'"aroundEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=t??In(),i=(s,o,a)=>{const c=l=>e(s,l,a);return zi(c,{index:1,original:e}),Gr(c,{suite:a})(o)};return Dt().on("aroundEach",Object.assign(i,{[Lg]:r,[Bg]:n}))}function cu(e,t,n,r,i=0){return(...s)=>{const o=s.at(-1),a=s.slice(0,-1),c=h=>t(...a,h,o);zi(c,{index:i,original:t});const u=n==null?void 0:n.getFixtures(),l=u==null?void 0:u.getFileContext(o.file);return Gr(c,{suiteHook:e,fixtures:u,context:l,stackTraceError:r})()}}const sn=C2(),Yt=lu(function(e,t,n){Dt().test.fn.call(this,an(e),t,n)}),Cs=sn;let je,qg,T2;function Vg(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
108
+ - "vitest" is imported directly without running "vitest" command
109
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
110
+ - "vitest" is imported inside Vite / Vitest config file
111
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
112
+ `)}function uu(){return Vg(je,"the runner"),je}function Dt(){const e=it.currentSuite||qg;return Vg(e,"the current suite"),e}function A2(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const pd=Number.POSITIVE_INFINITY;function Gn(e,t){if(t!=null&&typeof t=="object")throw new 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 new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e}else typeof t=="function"&&(r=t);return{options:n,handler:r}}function I2(e,t=()=>{},n,r,i){const s=[];let o;f();const a=function(m="",p={}){var me,Q,le,Ke,Ae;const b=(me=it.currentSuite)==null?void 0:me.suite,T=b??((Q=it.currentSuite)==null?void 0:Q.file),$=(T==null?void 0:T.tags)||[],P=Vh([...$,...qi(p.tags)]),C=P.map(ie=>{var _e;const ye=(_e=je.config.tags)==null?void 0:_e.find(qe=>qe.name===ie);if(!ye&&je.config.strictTags)throw kg(je.config.tags,ie);return ye}).filter(ie=>ie!=null).sort((ie,ye)=>(ye.priority??pd)-(ie.priority??pd)).reduce((ie,ye)=>{const{name:_e,description:qe,priority:Tt,meta:Xe,...He}=ye;return Object.assign(ie,He),Xe&&(ie.meta=Object.assign(ie.meta??Object.create(null),Xe)),ie},{}),v=p.meta;p={...C,...p};const k=p.timeout??je.config.testTimeout,M=b==null?void 0:b.meta,J=C.meta,be=Object.create(null);J&&Object.assign(be,J),M&&Object.assign(be,M),v&&Object.assign(be,v);const q={id:"",name:m,fullName:mi([(b==null?void 0:b.fullName)??((Ke=(le=it.currentSuite)==null?void 0:le.file)==null?void 0:Ke.fullName),m]),fullTestName:mi([b==null?void 0:b.fullTestName,m]),suite:b,each:p.each,fails:p.fails,context:void 0,type:"test",file:(b==null?void 0:b.file)??((Ae=it.currentSuite)==null?void 0:Ae.file),timeout:k,retry:p.retry??je.config.retry,repeats:p.repeats,mode:p.only?"only":p.skip?"skip":p.todo?"todo":"run",meta:be,annotations:[],artifacts:[],tags:P},ue=p.handler;q.mode==="run"&&!ue&&(q.mode="todo"),(p.concurrent||!p.sequential&&je.config.sequence.concurrent)&&(q.concurrent=!0),q.shuffle=i==null?void 0:i.shuffle;const pe=_2(q,je);Object.defineProperty(q,"context",{value:pe,enumerable:!1}),l2(pe,p.fixtures??new Ui);const Ge=Error.stackTraceLimit;Error.stackTraceLimit=10;const Re=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=Ge,ue&&u2(q,$n(k2($2(Gr(ue,{context:pe}),q),q.context.signal),k,!1,Re,(ie,ye)=>fu([pe],ye))),je.config.includeTaskLocation){const ie=Re.stack,ye=Ng(T2,ie);ye&&(q.location={line:ye.line,column:ye.column})}return s.push(q),q},c=lu(function(m,p,b){let{options:T,handler:$}=Gn(p,b);typeof i=="object"&&(T=Object.assign({},i,T));const P=this.concurrent??(!this.sequential&&(T==null?void 0:T.concurrent));T.concurrent!=null&&P!=null&&(T.concurrent=P);const C=this.sequential??(!this.concurrent&&(T==null?void 0:T.sequential));T.sequential!=null&&C!=null&&(T.sequential=C);const v=a(an(m),{...this,...T,handler:$});v.type="test"}),u={type:"collector",name:e,mode:n,suite:o,options:i,test:c,file:o.file,tasks:s,collect:d,task:a,clear:h,on:l};function l(m,...p){d2(o)[m].push(...p)}function f(m){var $,P,C,v,k;typeof i=="number"&&(i={timeout:i});const p=($=it.currentSuite)==null?void 0:$.suite,b=p??((P=it.currentSuite)==null?void 0:P.file),T=qi(i==null?void 0:i.tags);i2(je.config,T),o={id:"",type:"suite",name:e,fullName:mi([(p==null?void 0:p.fullName)??((v=(C=it.currentSuite)==null?void 0:C.file)==null?void 0:v.fullName),e]),fullTestName:mi([p==null?void 0:p.fullTestName,e]),suite:p,mode:n,each:r,file:(p==null?void 0:p.file)??((k=it.currentSuite)==null?void 0:k.file),shuffle:i==null?void 0:i.shuffle,tasks:[],meta:(i==null?void 0:i.meta)??Object.create(null),concurrent:i==null?void 0:i.concurrent,tags:Vh([...(b==null?void 0:b.tags)||[],...T])},h2(o,A2())}function h(){s.length=0,f()}async function d(m){if(!m)throw new TypeError("File is required to collect tasks.");t&&await N2(u,()=>t(c));const p=[];for(const b of s)p.push(b.type==="collector"?await b.collect(m):b);return o.tasks=p,o}return O2(u),u}function $2(e,t){return(async(...n)=>{const r=await e(...n);if(t.promises){const s=(await Promise.allSettled(t.promises)).map(o=>o.status==="rejected"?o.reason:void 0).filter(Boolean);if(s.length)throw s}return r})}function C2(){function e(t,n,r){var p;const i=it.currentSuite||qg;let{options:s,handler:o}=Gn(n,r);const a=s.concurrent||this.concurrent||s.sequential===!1,c=s.sequential||this.sequential||s.concurrent===!1,{meta:u,...l}=(i==null?void 0:i.options)||{};s={...l,...s};const f=this.shuffle??s.shuffle??((p=i==null?void 0:i.options)==null?void 0:p.shuffle)??(je==null?void 0:je.config.sequence.shuffle);f!=null&&(s.shuffle=f);let h=this.only??s.only?"only":this.skip??s.skip?"skip":this.todo??s.todo?"todo":"run";h==="run"&&!o&&(h="todo");const d=a||s.concurrent&&!c,m=c||s.sequential&&!a;return d!=null&&(s.concurrent=d&&!m),m!=null&&(s.sequential=m&&!d),u&&(s.meta=Object.assign(Object.create(null),u,s.meta)),I2(an(t),o,h,this.each,s)}return e.each=function(t,...n){const r=Ut(this),i=r.withContext();return r.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Wi(t,n)),(s,o,a)=>{const c=an(s),u=t.every(Array.isArray),{options:l,handler:f}=Gn(o,a),h=typeof o=="function";t.forEach((d,m)=>{const p=Array.isArray(d)?d:[d];h?u?i(Ot(c,p,m),f?()=>f(...p):void 0,l.timeout):i(Ot(c,p,m),f?()=>f(d):void 0,l.timeout):u?i(Ot(c,p,m),l,f?()=>f(...p):void 0):i(Ot(c,p,m),l,f?()=>f(d):void 0)}),r.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Wi(t,n)),(r,i,s)=>{const o=an(r),{options:a,handler:c}=Gn(i,s);t.forEach((u,l)=>{sn(Ot(o,qi(u),l),a,c?()=>c(u):void 0)})}},e.skipIf=t=>t?sn.skip:sn,e.runIf=t=>t?sn:sn.skip,Og(["concurrent","sequential","shuffle","skip","only","todo"],e)}function v2(e){const t=e;t.each=function(i,...s){const o=Ut(this),a=o.withContext();return o.setContext("each",!0),Array.isArray(i)&&s.length&&(i=Wi(i,s)),(c,u,l)=>{const f=an(c),h=i.every(Array.isArray),{options:d,handler:m}=Gn(u,l),p=typeof u=="function";i.forEach((b,T)=>{const $=Array.isArray(b)?b:[b];p?h?a(Ot(f,$,T),m?()=>m(...$):void 0,d.timeout):a(Ot(f,$,T),m?()=>m(b):void 0,d.timeout):h?a(Ot(f,$,T),d,m?()=>m(...$):void 0):a(Ot(f,$,T),d,m?()=>m(b):void 0)}),o.setContext("each",void 0)}},t.for=function(i,...s){const a=Ut(this).withContext();return Array.isArray(i)&&s.length&&(i=Wi(i,s)),(c,u,l)=>{const f=an(c),{options:h,handler:d}=Gn(u,l);i.forEach((m,p)=>{const b=d?T=>d(m,T):void 0;b&&zi(b,{index:1,original:d}),a(Ot(f,qi(m),p),h,b)})}},t.skipIf=function(i){return i?this.skip:this},t.runIf=function(i){return i?this:this.skip};function n(i,s,o){if(typeof i!="string")return i;const a=i;let c,u;if(o!==void 0?(c=s,u=o):s!==null&&typeof s=="object"&&!Array.isArray(s)&&("scope"in s||"auto"in s)?(c=s,u={}):(c=void 0,u=s),typeof u=="function"){const l=u,f=async(h,d)=>{let m;const b=await l(h,{onCleanup:T=>{if(m!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");m=T}});await d(b),m&&await m()};return zi(f,{original:l}),c?{[a]:[f,c]}:{[a]:f}}return c?{[a]:[u,c]}:{[a]:u}}return t.override=function(i,s,o){const a=n(i,s,o);return Ut(this).getFixtures().override(je,a),this},t.scoped=function(i){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(i)},t.extend=function(i,s,o){const a=n(i,s,o),c=Ut(this).getFixtures().extend(je,a),u=lu(function(l,f,h){e.call(this,an(l),f,h)});return Ut(u).mergeContext({fixtures:c}),u},t.describe=sn,t.suite=sn,t.beforeEach=y2,t.afterEach=w2,t.beforeAll=x2,t.afterAll=b2,t.aroundEach=E2,t.aroundAll=S2,Og(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new Ui})}function lu(e){return v2(e)}function an(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function Ot(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((u,l)=>{if(_$(t[l])||Object.is(t[l],-0)){let f=0;e=e.replace(/%f/g,h=>(f++,f===l+1?"-%f":h))}});const i=Pt(t[0]);function s(c){return c.replace(/\$([$\w.]+)/g,(u,l)=>{var m,p;const f=/^\d+$/.test(l);if(!i&&!f)return`$${l}`;const h=f?Bh(t,l):void 0,d=i?Bh(t[0],l,h):h;return v$(d,{truncate:(p=(m=je==null?void 0:je.config)==null?void 0:m.chaiConfig)==null?void 0:p.truncateThreshold})})}let o="",a=0;return M2(e,rg,c=>{a<r?o+=C$(c[0],t[a++]):o+=c[0]},c=>{o+=s(c)}),o}function M2(e,t,n,r){let i=0;for(const s of e.matchAll(t))i<s.index&&r(e.slice(i,s.index)),n(s),i=s.index+s[0].length;i<e.length&&r(e.slice(i))}function Wi(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
113
+ `).map(i=>i.split("|"))[0],r=[];for(let i=0;i<Math.floor(t.length/n.length);i++){const s={};for(let o=0;o<n.length;o++)s[n[o]]=t[i*n.length+o];r.push(s)}return r}const md=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,it={currentSuite:null};function O2(e){var t;(t=it.currentSuite)==null||t.tasks.push(e)}async function N2(e,t){const n=it.currentSuite;it.currentSuite=e,await t(),it.currentSuite=n}function $n(e,t,n=!1,r,i){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:s,clearTimeout:o}=su();return(function(...c){const u=md(),l=uu();return l._currentTaskStartTime=u,l._currentTaskTimeout=t,new Promise((f,h)=>{var T;const d=s(()=>{o(d),m()},t);(T=d.unref)==null||T.call(d);function m(){const $=j2(n,t,r);i==null||i(c,$),h($)}function p($){if(l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(d),md()-u>=t){m();return}f($)}function b($){l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(d),h($)}try{const $=e(...c);typeof $=="object"&&$!=null&&typeof $.then=="function"?$.then(p,b):p($)}catch($){b($)}})})}function k2(e,t){return(function(...r){return new Promise((i,s)=>{t.addEventListener("abort",()=>s(t.reason));try{const o=e(...r);typeof o=="object"&&o!=null&&typeof o.then=="function"?o.then(i,s):i(o)}catch(o){s(o)}})})}const Aa=new WeakMap;function fu([e],t){e&&P2(e,t)}function P2(e,t){const n=Aa.get(e);n==null||n.abort(t)}function _2(e,t){var i;const n=function(){throw new Error("done() callback is deprecated, use promise instead")};let r=Aa.get(n);return r||(r=new AbortController,Aa.set(n,r)),n.signal=r.signal,n.task=e,n.skip=(s,o)=>{if(s!==!1)throw e.result??(e.result={state:"skip"}),e.result.pending=!0,new o2("test is skipped; abort execution",e,typeof s=="string"?s:o)},n.annotate=((s,o,a)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const c={message:s,type:typeof o=="object"||o===void 0?"notice":o},u=typeof o=="object"?o:a;return u&&(c.attachment=u,zg(c.attachment)),L2(e,R2(e,{type:"internal:annotation",annotation:c}).then(async({annotation:l})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await Ug(t);const f=await t.onTestAnnotate(e,l);return e.annotations.push(f),f}))}),n.onTestFailed=(s,o)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push($n(s,o??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(a,c)=>r.abort(c)))},n.onTestFinished=(s,o)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push($n(s,o??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(a,c)=>r.abort(c)))},((i=t.extendTaskContext)==null?void 0:i.call(t,n))||n}function j2(e,t,n){const r=`${e?"Hook":"Test"} timed out in ${t}ms.
114
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,i=new Error(r);return n!=null&&n.stack&&(i.stack=n.stack.replace(i.message,n.message)),i}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;su();const $o=new Map,gd=[],Oi=[];function F2(e){var t;if($o.size){const n=Array.from($o).map(([i,s])=>[i,s[0],s[1]]),r=(t=e.onTaskUpdate)==null?void 0:t.call(e,n,gd);r&&(Oi.push(r),r.then(()=>Oi.splice(Oi.indexOf(r),1),()=>{})),gd.length=0,$o.clear()}}async function Ug(e){F2(e),await Promise.all(Oi)}async function R2(e,t){const n=uu(),r=Ng(e.file.filepath,new 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(const s of t.attachments)zg(s);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await Ug(n);const i=await n.onTestArtifactRecord(e,t);return e.artifacts.push(i),i}const dt=[];for(let e=65;e<91;e++)dt.push(String.fromCharCode(e));for(let e=97;e<123;e++)dt.push(String.fromCharCode(e));for(let e=0;e<10;e++)dt.push(e.toString(10));dt.push("+","/");function D2(e){let t="";const n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){const i=(e[r]&252)>>2,s=(e[r]&3)<<4;t+=dt[i],t+=dt[s],t+="=="}else if(n===r+2){const i=(e[r]&252)>>2,s=(e[r]&3)<<4|(e[r+1]&240)>>4,o=(e[r+1]&15)<<2;t+=dt[i],t+=dt[s],t+=dt[o],t+="="}else{const i=(e[r]&252)>>2,s=(e[r]&3)<<4|(e[r+1]&240)>>4,o=(e[r+1]&15)<<2|(e[r+2]&192)>>6,a=e[r+2]&63;t+=dt[i],t+=dt[s],t+=dt[o],t+=dt[a]}return t}function L2(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function zg(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=D2(e.body))}const B2="__vitest_worker__";function Wg(){const e=globalThis[B2];if(!e)throw new Error(`Vitest failed to access its internal state.
115
+
116
+ One of the following is possible:
117
+ - "vitest" is imported directly without running "vitest" command
118
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
119
+ - "vitest" is imported inside Vite / Vitest config file
120
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
121
+ `);return e}function Co(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction===!0}var hu=Object.defineProperty,q2=(e,t,n)=>t in e?hu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t)=>hu(e,"name",{value:t,configurable:!0}),du=(e,t)=>{for(var n in t)hu(e,n,{get:t[n],enumerable:!0})},Gg=(e,t,n)=>q2(e,typeof t!="symbol"?t+"":t,n),Ne={};du(Ne,{addChainableMethod:()=>$u,addLengthGuard:()=>Yr,addMethod:()=>Tu,addProperty:()=>Eu,checkError:()=>ht,compareByInspect:()=>Hi,eql:()=>Sx,events:()=>Ns,expectTypes:()=>tx,flag:()=>Y,getActual:()=>Ms,getMessage:()=>gu,getName:()=>ks,getOperator:()=>Ou,getOwnEnumerableProperties:()=>Mu,getOwnEnumerablePropertySymbols:()=>vu,getPathInfo:()=>wu,hasProperty:()=>Os,inspect:()=>te,isNaN:()=>Yi,isNumeric:()=>Be,isProxyEnabled:()=>Hr,isRegExp:()=>Ji,objDisplay:()=>En,overwriteChainableMethod:()=>Cu,overwriteMethod:()=>Iu,overwriteProperty:()=>Au,proxify:()=>ir,test:()=>pu,transferFlags:()=>Et,type:()=>de});var ht={};du(ht,{compatibleConstructor:()=>Yg,compatibleInstance:()=>Hg,compatibleMessage:()=>Jg,getConstructorName:()=>Zg,getMessage:()=>Xg});function vs(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}E(vs,"isErrorInstance");function Kg(e){return Object.prototype.toString.call(e)==="[object RegExp]"}E(Kg,"isRegExp");function Hg(e,t){return vs(t)&&e===t}E(Hg,"compatibleInstance");function Yg(e,t){return vs(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}E(Yg,"compatibleConstructor");function Jg(e,t){const n=typeof e=="string"?e:e.message;return Kg(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:!1}E(Jg,"compatibleMessage");function Zg(e){let t=e;return vs(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}E(Zg,"getConstructorName");function Xg(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}E(Xg,"getMessage");function Y(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)r[t]=n;else return r[t]}E(Y,"flag");function pu(e,t){let n=Y(e,"negate"),r=t[0];return n?!r:r}E(pu,"test");function de(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}E(de,"type");var V2="captureStackTrace"in Error,Qg=class ex extends Error{constructor(t="Unspecified AssertionError",n,r){super(t),Gg(this,"message"),this.message=t,V2&&Error.captureStackTrace(this,r||ex);for(const i in n)i in this||(this[i]=n[i])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}};E(Qg,"AssertionError");var ne=Qg;function tx(e,t){let n=Y(e,"message"),r=Y(e,"ssfi");n=n?n+": ":"",e=Y(e,"object"),t=t.map(function(o){return o.toLowerCase()}),t.sort();let i=t.map(function(o,a){let c=~["a","e","i","o","u"].indexOf(o.charAt(0))?"an":"a";return(t.length>1&&a===t.length-1?"or ":"")+c+" "+o}).join(", "),s=de(e).toLowerCase();if(!t.some(function(o){return s===o}))throw new ne(n+"object tested must be "+i+", but "+s+" given",void 0,r)}E(tx,"expectTypes");function Ms(e,t){return t.length>4?t[4]:e._obj}E(Ms,"getActual");var xd={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"]},U2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Qn="…";function nx(e,t){const n=xd[U2[t]]||xd[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}E(nx,"colorise");function rx({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:s=1/0,breakLength:o=1/0,seen:a=[],truncate:c=1/0,stylize:u=String}={},l){const f={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(s),breakLength:Number(o),truncate:Number(c),seen:a,inspect:l,stylize:u};return f.colors&&(f.stylize=nx),f}E(rx,"normaliseOptions");function ix(e){return e>="\uD800"&&e<="\uDBFF"}E(ix,"isHighSurrogate");function Jt(e,t,n=Qn){e=String(e);const r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let s=t-r;return s>0&&ix(e[s-1])&&(s=s-1),`${e.slice(0,s)}${n}`}return e}E(Jt,"truncate");function xt(e,t,n,r=", "){n=n||t.inspect;const i=e.length;if(i===0)return"";const s=t.truncate;let o="",a="",c="";for(let u=0;u<i;u+=1){const l=u+1===e.length,f=u+2===e.length;c=`${Qn}(${e.length-u})`;const h=e[u];t.truncate=s-o.length-(l?0:r.length);const d=a||n(h,t)+(l?"":r),m=o.length+d.length,p=m+c.length;if(l&&m>s&&o.length+c.length<=s||!l&&!f&&p>s||(a=l?"":n(e[u+1],t)+(f?"":r),!l&&f&&p>s&&m+a.length>s))break;if(o+=d,!l&&!f&&m+a.length>=s){c=`${Qn}(${e.length-u-1})`;break}c=""}return`${o}${c}`}E(xt,"inspectList");function sx(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}E(sx,"quoteComplexKey");function er([e,t],n){return n.truncate-=2,typeof e=="string"?e=sx(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}E(er,"inspectProperty");function ox(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const r=xt(e,t);t.truncate-=r.length;let i="";return n.length&&(i=xt(n.map(s=>[s,e[s]]),t,er)),`[ ${r}${i?`, ${i}`:""} ]`}E(ox,"inspectArray");var z2=E(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Mt(e,t){const n=z2(e);t.truncate-=n.length+4;const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i="";for(let o=0;o<e.length;o++){const a=`${t.stylize(Jt(e[o],t.truncate),"number")}${o===e.length-1?"":", "}`;if(t.truncate-=a.length,e[o]!==e.length&&t.truncate<=3){i+=`${Qn}(${e.length-e[o]+1})`;break}i+=a}let s="";return r.length&&(s=xt(r.map(o=>[o,e[o]]),t,er)),`${n}[ ${i}${s?`, ${s}`:""} ]`}E(Mt,"inspectTypedArray");function ax(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const r=n.split("T"),i=r[0];return t.stylize(`${i}T${Jt(r[1],t.truncate-i.length-1)}`,"date")}E(ax,"inspectDate");function Ia(e,t){const n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${Jt(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}E(Ia,"inspectFunction");function cx([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}E(cx,"inspectMapEntry");function ux(e){const t=[];return e.forEach((n,r)=>{t.push([r,n])}),t}E(ux,"mapToEntries");function lx(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${xt(ux(e),t,cx)} }`)}E(lx,"inspectMap");var W2=Number.isNaN||(e=>e!==e);function $a(e,t){return W2(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(Jt(String(e),t.truncate),"number")}E($a,"inspectNumber");function Ca(e,t){let n=Jt(e.toString(),t.truncate-1);return n!==Qn&&(n+="n"),t.stylize(n,"bigint")}E(Ca,"inspectBigInt");function fx(e,t){const n=e.toString().split("/")[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${Jt(i,r)}/${n}`,"regexp")}E(fx,"inspectRegExp");function hx(e){const t=[];return e.forEach(n=>{t.push(n)}),t}E(hx,"arrayFromSet");function dx(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${xt(hx(e),t)} }`)}E(dx,"inspectSet");var bd=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),G2={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},K2=16;function px(e){return G2[e]||`\\u${`0000${e.charCodeAt(0).toString(K2)}`.slice(-4)}`}E(px,"escape");function va(e,t){return bd.test(e)&&(e=e.replace(bd,px)),t.stylize(`'${Jt(e,t.truncate-2)}'`,"string")}E(va,"inspectString");function Ma(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}E(Ma,"inspectSymbol");var H2=E(()=>"Promise{…}","getPromiseValue"),Y2=H2;function wr(e,t){const 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);const i=xt(n.map(a=>[a,e[a]]),t,er),s=xt(r.map(a=>[a,e[a]]),t,er);t.seen.pop();let o="";return i&&s&&(o=", "),`{ ${i}${o}${s} }`}E(wr,"inspectObject");var vo=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function mx(e,t){let n="";return vo&&vo in e&&(n=e[vo]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${wr(e,t)}`}E(mx,"inspectClass");function gx(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${xt(e,t)} ]`)}E(gx,"inspectArguments");var J2=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function xx(e,t){const n=Object.getOwnPropertyNames(e).filter(o=>J2.indexOf(o)===-1),r=e.name;t.truncate-=r.length;let i="";if(typeof e.message=="string"?i=Jt(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);const s=xt(n.map(o=>[o,e[o]]),t,er);return`${r}${i}${s?` { ${s} }`:""}`}E(xx,"inspectObject");function bx([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}E(bx,"inspectAttribute");function Gi(e,t){return xt(e,t,yx,`
122
+ `)}E(Gi,"inspectNodeCollection");function yx(e,t){switch(e.nodeType){case 1:return mu(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}E(yx,"inspectNode");function mu(e,t){const n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,"special"),s=t.stylize(">","special"),o=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let a="";n.length>0&&(a+=" ",a+=xt(n.map(l=>[l,e.getAttribute(l)]),t,bx," ")),t.truncate-=a.length;const c=t.truncate;let u=Gi(e.children,t);return u&&u.length>c&&(u=`${Qn}(${e.children.length})`),`${i}${a}${s}${u}${o}`}E(mu,"inspectHTML");var Z2=typeof Symbol=="function"&&typeof Symbol.for=="function",Mo=Z2?Symbol.for("chai/inspect"):"@@chai/inspect",Oo=Symbol.for("nodejs.util.inspect.custom"),yd=new WeakMap,wd={},Sd={undefined:E((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:E((e,t)=>t.stylize("null","null"),"null"),boolean:E((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:E((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:$a,Number:$a,bigint:Ca,BigInt:Ca,string:va,String:va,function:Ia,Function:Ia,symbol:Ma,Symbol:Ma,Array:ox,Date:ax,Map:lx,Set:dx,RegExp:fx,Promise:Y2,WeakSet:E((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:E((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:gx,Int8Array:Mt,Uint8Array:Mt,Uint8ClampedArray:Mt,Int16Array:Mt,Uint16Array:Mt,Int32Array:Mt,Uint32Array:Mt,Float32Array:Mt,Float64Array:Mt,Generator:E(()=>"","Generator"),DataView:E(()=>"","DataView"),ArrayBuffer:E(()=>"","ArrayBuffer"),Error:xx,HTMLCollection:Gi,NodeList:Gi},X2=E((e,t,n,r)=>Mo in e&&typeof e[Mo]=="function"?e[Mo](t):Oo in e&&typeof e[Oo]=="function"?e[Oo](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&yd.has(e.constructor)?yd.get(e.constructor)(e,t):wd[n]?wd[n](e,t):"","inspectCustom"),Q2=Object.prototype.toString;function Sr(e,t={}){const n=rx(t,Sr),{customInspect:r}=n;let i=e===null?"null":typeof e;if(i==="object"&&(i=Q2.call(e).slice(8,-1)),i in Sd)return Sd[i](e,n);if(r&&e){const o=X2(e,n,i,Sr);if(o)return typeof o=="string"?o:Sr(o,n)}const s=e?Object.getPrototypeOf(e):!1;return s===Object.prototype||s===null?wr(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?mu(e,n):"constructor"in e?e.constructor!==Object?mx(e,n):wr(e,n):e===Object(e)?wr(e,n):n.stylize(String(e),i)}E(Sr,"inspect");var et={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function te(e,t,n,r){let i={colors:r,depth:typeof n>"u"?2:n,showHidden:t,truncate:et.truncateThreshold?et.truncateThreshold:1/0};return Sr(e,i)}E(te,"inspect");function En(e){let t=te(e),n=Object.prototype.toString.call(e);if(et.truncateThreshold&&t.length>=et.truncateThreshold){if(n==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(n==="[object Array]")return"[ Array("+e.length+") ]";if(n==="[object Object]"){let r=Object.keys(e);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}else return t}else return t}E(En,"objDisplay");function gu(e,t){let n=Y(e,"negate"),r=Y(e,"object"),i=t[3],s=Ms(e,t),o=n?t[2]:t[1],a=Y(e,"message");return typeof o=="function"&&(o=o()),o=o||"",o=o.replace(/#\{this\}/g,function(){return En(r)}).replace(/#\{act\}/g,function(){return En(s)}).replace(/#\{exp\}/g,function(){return En(i)}),a?a+": "+o:o}E(gu,"getMessage");function Et(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:!0;for(let i in r)(n||i!=="object"&&i!=="ssfi"&&i!=="lockSsfi"&&i!="message")&&(t.__flags[i]=r[i])}E(Et,"transferFlags");function Oa(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}E(Oa,"type");function xu(){this._key="chai/deep-eql__"+Math.random()+Date.now()}E(xu,"FakeMap");xu.prototype={get:E(function(t){return t[this._key]},"get"),set:E(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:!0})},"set")};var wx=typeof WeakMap=="function"?WeakMap:xu;function Na(e,t,n){if(!n||Cn(e)||Cn(t))return null;var r=n.get(e);if(r){var i=r.get(t);if(typeof i=="boolean")return i}return null}E(Na,"memoizeCompare");function br(e,t,n,r){if(!(!n||Cn(e)||Cn(t))){var i=n.get(e);i?i.set(t,r):(i=new wx,i.set(t,r),n.set(e,i))}}E(br,"memoizeSet");var Sx=Kr;function Kr(e,t,n){if(n&&n.comparator)return ka(e,t,n);var r=bu(e,t);return r!==null?r:ka(e,t,n)}E(Kr,"deepEqual");function bu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Cn(e)||Cn(t)?!1:null}E(bu,"simpleEqual");function ka(e,t,n){n=n||{},n.memoize=n.memoize===!1?!1:n.memoize||new wx;var r=n&&n.comparator,i=Na(e,t,n.memoize);if(i!==null)return i;var s=Na(t,e,n.memoize);if(s!==null)return s;if(r){var o=r(e,t);if(o===!1||o===!0)return br(e,t,n.memoize,o),o;var a=bu(e,t);if(a!==null)return a}var c=Oa(e);if(c!==Oa(t))return br(e,t,n.memoize,!1),!1;br(e,t,n.memoize,!0);var u=Ex(e,t,c,n);return br(e,t,n.memoize,u),u}E(ka,"extensiveDeepEqual");function Ex(e,t,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return Kr(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return yu(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 cn(e,t,r);case"RegExp":return Tx(e,t);case"Generator":return Ax(e,t,r);case"DataView":return cn(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return cn(new Uint8Array(e),new Uint8Array(t),r);case"Set":return Pa(e,t,r);case"Map":return Pa(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 $x(e,t,r)}}E(Ex,"extensiveDeepEqualByType");function Tx(e,t){return e.toString()===t.toString()}E(Tx,"regexpEqual");function Pa(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(E(function(o,a){r.push([o,a])},"gatherEntries")),t.forEach(E(function(o,a){i.push([o,a])},"gatherEntries")),cn(r.sort(),i.sort(),n)}E(Pa,"entriesEqual");function cn(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(Kr(e[i],t[i],n)===!1)return!1;return!0}E(cn,"iterableEqual");function Ax(e,t,n){return cn(Ki(e),Ki(t),n)}E(Ax,"generatorEqual");function Ix(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}E(Ix,"hasIteratorFunction");function _a(e){if(Ix(e))try{return Ki(e[Symbol.iterator]())}catch{return[]}return[]}E(_a,"getIteratorEntries");function Ki(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}E(Ki,"getGeneratorEntries");function ja(e){var t=[];for(var n in e)t.push(n);return t}E(ja,"getEnumerableKeys");function Fa(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}E(Fa,"getEnumerableSymbols");function yu(e,t,n,r){var i=n.length;if(i===0)return!0;for(var s=0;s<i;s+=1)if(Kr(e[n[s]],t[n[s]],r)===!1)return!1;return!0}E(yu,"keysEqual");function $x(e,t,n){var r=ja(e),i=ja(t),s=Fa(e),o=Fa(t);if(r=r.concat(s),i=i.concat(o),r.length&&r.length===i.length)return cn(Ra(r).sort(),Ra(i).sort())===!1?!1:yu(e,t,r,n);var a=_a(e),c=_a(t);return a.length&&a.length===c.length?(a.sort(),c.sort(),cn(a,c,n)):r.length===0&&a.length===0&&i.length===0&&c.length===0}E($x,"objectEqual");function Cn(e){return e===null||typeof e!="object"}E(Cn,"isPrimitive");function Ra(e){return e.map(E(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"))}E(Ra,"mapSymbols");function Os(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}E(Os,"hasProperty");function Cx(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(r=>{if(r==="constructor"||r==="__proto__"||r==="prototype")return{};const s=/^\[(\d+)\]$/.exec(r);let o=null;return s?o={i:parseFloat(s[1])}:o={p:r.replace(/\\([.[\]])/g,"$1")},o})}E(Cx,"parsePath");function Da(e,t,n){let r=e,i=null;n=typeof n>"u"?t.length:n;for(let s=0;s<n;s++){const o=t[s];r&&(typeof o.p>"u"?r=r[o.i]:r=r[o.p],s===n-1&&(i=r))}return i}E(Da,"internalGetPathValue");function wu(e,t){const n=Cx(t),r=n[n.length-1],i={parent:n.length>1?Da(e,n,n.length-1):e,name:r.p||r.i,value:Da(e,n)};return i.exists=Os(i.parent,i.name),i}E(wu,"getPathInfo");var vx=class Mx{constructor(t,n,r,i){return Gg(this,"__flags",{}),Y(this,"ssfi",r||Mx),Y(this,"lockSsfi",i),Y(this,"object",t),Y(this,"message",n),Y(this,"eql",et.deepEqual||Sx),ir(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),et.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),et.includeStack=t}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),et.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),et.showDiff=t}static addProperty(t,n){Eu(this.prototype,t,n)}static addMethod(t,n){Tu(this.prototype,t,n)}static addChainableMethod(t,n,r){$u(this.prototype,t,n,r)}static overwriteProperty(t,n){Au(this.prototype,t,n)}static overwriteMethod(t,n){Iu(this.prototype,t,n)}static overwriteChainableMethod(t,n,r){Cu(this.prototype,t,n,r)}assert(t,n,r,i,s,o){const a=pu(this,arguments);if(o!==!1&&(o=!0),i===void 0&&s===void 0&&(o=!1),et.showDiff!==!0&&(o=!1),!a){n=gu(this,arguments);const u={actual:Ms(this,arguments),expected:i,showDiff:o},l=Ou(this,arguments);throw l&&(u.operator=l),new ne(n,u,et.includeStack?this.assert:Y(this,"ssfi"))}}get _obj(){return Y(this,"object")}set _obj(t){Y(this,"object",t)}};E(vx,"Assertion");var x=vx,Ns=new EventTarget,Ox=class extends Event{constructor(t,n,r){super(t),this.name=String(n),this.fn=r}};E(Ox,"PluginEvent");var Su=Ox;function Hr(){return et.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}E(Hr,"isProxyEnabled");function Eu(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:E(function r(){!Hr()&&!Y(this,"lockSsfi")&&Y(this,"ssfi",r);let i=n.call(this);if(i!==void 0)return i;let s=new x;return Et(this,s),s},"propertyGetter"),configurable:!0}),Ns.dispatchEvent(new Su("addProperty",t,n))}E(Eu,"addProperty");var ev=Object.getOwnPropertyDescriptor(function(){},"length");function Yr(e,t,n){return ev.configurable&&Object.defineProperty(e,"length",{get:E(function(){throw Error(n?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}E(Yr,"addLengthGuard");function Nx(e){let t=Object.getOwnPropertyNames(e);function n(i){t.indexOf(i)===-1&&t.push(i)}E(n,"addProperty");let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}E(Nx,"getProperties");var Ed=["__flags","__methods","_obj","assert"];function ir(e,t){return Hr()?new Proxy(e,{get:E(function n(r,i){if(typeof i=="string"&&et.proxyExcludedKeys.indexOf(i)===-1&&!Reflect.has(r,i)){if(t)throw Error("Invalid Chai property: "+t+"."+i+'. See docs for proper usage of "'+t+'".');let s=null,o=4;throw Nx(r).forEach(function(a){if(!Object.prototype.hasOwnProperty(a)&&Ed.indexOf(a)===-1){let c=kx(i,a,o);c<o&&(s=a,o=c)}}),Error(s!==null?"Invalid Chai property: "+i+'. Did you mean "'+s+'"?':"Invalid Chai property: "+i)}return Ed.indexOf(i)===-1&&!Y(r,"lockSsfi")&&Y(r,"ssfi",n),Reflect.get(r,i)},"proxyGetter")}):e}E(ir,"proxify");function kx(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let i=0;i<=e.length;i++)r[i]=Array(t.length+1).fill(0),r[i][0]=i;for(let i=0;i<t.length;i++)r[0][i]=i;for(let i=1;i<=e.length;i++){let s=e.charCodeAt(i-1);for(let o=1;o<=t.length;o++){if(Math.abs(i-o)>=n){r[i][o]=n;continue}r[i][o]=Math.min(r[i-1][o]+1,r[i][o-1]+1,r[i-1][o-1]+(s===t.charCodeAt(o-1)?0:1))}}return r[e.length][t.length]}E(kx,"stringDistanceCapped");function Tu(e,t,n){let r=E(function(){Y(this,"lockSsfi")||Y(this,"ssfi",r);let i=n.apply(this,arguments);if(i!==void 0)return i;let s=new x;return Et(this,s),s},"methodWrapper");Yr(r,t,!1),e[t]=ir(r,t),Ns.dispatchEvent(new Su("addMethod",t,n))}E(Tu,"addMethod");function Au(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),i=E(function(){},"_super");r&&typeof r.get=="function"&&(i=r.get),Object.defineProperty(e,t,{get:E(function s(){!Hr()&&!Y(this,"lockSsfi")&&Y(this,"ssfi",s);let o=Y(this,"lockSsfi");Y(this,"lockSsfi",!0);let a=n(i).call(this);if(Y(this,"lockSsfi",o),a!==void 0)return a;let c=new x;return Et(this,c),c},"overwritingPropertyGetter"),configurable:!0})}E(Au,"overwriteProperty");function Iu(e,t,n){let r=e[t],i=E(function(){throw new Error(t+" is not a function")},"_super");r&&typeof r=="function"&&(i=r);let s=E(function(){Y(this,"lockSsfi")||Y(this,"ssfi",s);let o=Y(this,"lockSsfi");Y(this,"lockSsfi",!0);let a=n(i).apply(this,arguments);if(Y(this,"lockSsfi",o),a!==void 0)return a;let c=new x;return Et(this,c),c},"overwritingMethodWrapper");Yr(s,t,!1),e[t]=ir(s,t)}E(Iu,"overwriteMethod");var tv=typeof Object.setPrototypeOf=="function",Td=E(function(){},"testFn"),nv=Object.getOwnPropertyNames(Td).filter(function(e){let t=Object.getOwnPropertyDescriptor(Td,e);return typeof t!="object"?!0:!t.configurable}),rv=Function.prototype.call,iv=Function.prototype.apply,Px=class extends Su{constructor(t,n,r,i){super(t,n,r),this.chainingBehavior=i}};E(Px,"PluginAddChainableMethodEvent");var sv=Px;function $u(e,t,n,r){typeof r!="function"&&(r=E(function(){},"chainingBehavior"));let i={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=i,Object.defineProperty(e,t,{get:E(function(){i.chainingBehavior.call(this);let o=E(function(){Y(this,"lockSsfi")||Y(this,"ssfi",o);let a=i.method.apply(this,arguments);if(a!==void 0)return a;let c=new x;return Et(this,c),c},"chainableMethodWrapper");if(Yr(o,t,!0),tv){let a=Object.create(this);a.call=rv,a.apply=iv,Object.setPrototypeOf(o,a)}else Object.getOwnPropertyNames(e).forEach(function(c){if(nv.indexOf(c)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(o,c,u)});return Et(this,o),ir(o)},"chainableMethodGetter"),configurable:!0}),Ns.dispatchEvent(new sv("addChainableMethod",t,n,r))}E($u,"addChainableMethod");function Cu(e,t,n,r){let i=e.__methods[t],s=i.chainingBehavior;i.chainingBehavior=E(function(){let c=r(s).call(this);if(c!==void 0)return c;let u=new x;return Et(this,u),u},"overwritingChainableMethodGetter");let o=i.method;i.method=E(function(){let c=n(o).apply(this,arguments);if(c!==void 0)return c;let u=new x;return Et(this,u),u},"overwritingChainableMethodWrapper")}E(Cu,"overwriteChainableMethod");function Hi(e,t){return te(e)<te(t)?-1:1}E(Hi,"compareByInspect");function vu(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}E(vu,"getOwnEnumerablePropertySymbols");function Mu(e){return Object.keys(e).concat(vu(e))}E(Mu,"getOwnEnumerableProperties");var Yi=Number.isNaN;function _x(e){let t=de(e);return["Array","Object","Function"].indexOf(t)!==-1}E(_x,"isObjectType");function Ou(e,t){let n=Y(e,"operator"),r=Y(e,"negate"),i=t[3],s=r?t[2]:t[1];if(n)return n;if(typeof s=="function"&&(s=s()),s=s||"",!s||/\shave\s/.test(s))return;let o=_x(i);return/\snot\s/.test(s)?o?"notDeepStrictEqual":"notStrictEqual":o?"deepStrictEqual":"strictEqual"}E(Ou,"getOperator");function ks(e){return e.name}E(ks,"getName");function Ji(e){return Object.prototype.toString.call(e)==="[object RegExp]"}E(Ji,"isRegExp");function Be(e){return["Number","BigInt"].includes(de(e))}E(Be,"isNumeric");var{flag:w}=Ne;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){x.addProperty(e)});x.addProperty("not",function(){w(this,"negate",!0)});x.addProperty("deep",function(){w(this,"deep",!0)});x.addProperty("nested",function(){w(this,"nested",!0)});x.addProperty("own",function(){w(this,"own",!0)});x.addProperty("ordered",function(){w(this,"ordered",!0)});x.addProperty("any",function(){w(this,"any",!0),w(this,"all",!1)});x.addProperty("all",function(){w(this,"all",!0),w(this,"any",!1)});var Ad={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Nu(e,t){t&&w(this,"message",t),e=e.toLowerCase();let n=w(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const i=de(n).toLowerCase();Ad.function.includes(e)?this.assert(Ad[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)}E(Nu,"an");x.addChainableMethod("an",Nu);x.addChainableMethod("a",Nu);function jx(e,t){return Yi(e)&&Yi(t)||e===t}E(jx,"SameValueZero");function Jr(){w(this,"contains",!0)}E(Jr,"includeChainingBehavior");function Zr(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=de(n).toLowerCase(),i=w(this,"message"),s=w(this,"negate"),o=w(this,"ssfi"),a=w(this,"deep"),c=a?"deep ":"",u=a?w(this,"eql"):jx;i=i?i+": ":"";let l=!1;switch(r){case"string":l=n.indexOf(e)!==-1;break;case"weakset":if(a)throw new ne(i+"unable to use .deep.include with WeakSet",void 0,o);l=n.has(e);break;case"map":n.forEach(function(f){l=l||u(f,e)});break;case"set":a?n.forEach(function(f){l=l||u(f,e)}):l=n.has(e);break;case"array":a?l=n.some(function(f){return u(f,e)}):l=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new ne(i+"the given combination of arguments ("+r+" and "+de(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 "+de(e).toLowerCase(),void 0,o);let f=Object.keys(e),h=null,d=0;if(f.forEach(function(m){let p=new x(n);if(Et(this,p,!0),w(p,"lockSsfi",!0),!s||f.length===1){p.property(m,e[m]);return}try{p.property(m,e[m])}catch(b){if(!ht.compatibleConstructor(b,ne))throw b;h===null&&(h=b),d++}},this),s&&f.length>1&&d===f.length)throw h;return}}this.assert(l,"expected #{this} to "+c+"include "+te(e),"expected #{this} to not "+c+"include "+te(e))}E(Zr,"include");x.addChainableMethod("include",Zr,Jr);x.addChainableMethod("contain",Zr,Jr);x.addChainableMethod("contains",Zr,Jr);x.addChainableMethod("includes",Zr,Jr);x.addProperty("ok",function(){this.assert(w(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});x.addProperty("true",function(){this.assert(w(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!w(this,"negate"))});x.addProperty("numeric",function(){const e=w(this,"object");this.assert(["Number","BigInt"].includes(de(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!w(this,"negate"))});x.addProperty("callable",function(){const e=w(this,"object"),t=w(this,"ssfi"),n=w(this,"message"),r=n?`${n}: `:"",i=w(this,"negate"),s=i?`${r}expected ${te(e)} not to be a callable function`:`${r}expected ${te(e)} to be a callable function`,o=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(de(e));if(o&&i||!o&&!i)throw new ne(s,void 0,t)});x.addProperty("false",function(){this.assert(w(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!w(this,"negate"))});x.addProperty("null",function(){this.assert(w(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});x.addProperty("undefined",function(){this.assert(w(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});x.addProperty("NaN",function(){this.assert(Yi(w(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function ku(){let e=w(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}E(ku,"assertExist");x.addProperty("exist",ku);x.addProperty("exists",ku);x.addProperty("empty",function(){let e=w(this,"object"),t=w(this,"ssfi"),n=w(this,"message"),r;switch(n=n?n+": ":"",de(e).toLowerCase()){case"array":case"string":r=e.length;break;case"map":case"set":r=e.size;break;case"weakmap":case"weakset":throw new ne(n+".empty was passed a weak collection",void 0,t);case"function":{const i=n+".empty was passed a function "+ks(e);throw new ne(i.trim(),void 0,t)}default:if(e!==Object(e))throw new ne(n+".empty was passed non-string primitive "+te(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 Pu(){let e=w(this,"object"),t=de(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}E(Pu,"checkArguments");x.addProperty("arguments",Pu);x.addProperty("Arguments",Pu);function Ps(e,t){t&&w(this,"message",t);let n=w(this,"object");if(w(this,"deep")){let r=w(this,"lockSsfi");w(this,"lockSsfi",!0),this.eql(e),w(this,"lockSsfi",r)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}E(Ps,"assertEqual");x.addMethod("equal",Ps);x.addMethod("equals",Ps);x.addMethod("eq",Ps);function _u(e,t){t&&w(this,"message",t);let n=w(this,"eql");this.assert(n(e,w(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}E(_u,"assertEql");x.addMethod("eql",_u);x.addMethod("eqls",_u);function _s(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"doLength"),i=w(this,"message"),s=i?i+": ":"",o=w(this,"ssfi"),a=de(n).toLowerCase(),c=de(e).toLowerCase();if(r&&a!=="map"&&a!=="set"&&new x(n,i,o,!0).to.have.property("length"),!r&&a==="date"&&c!=="date")throw new ne(s+"the argument to above must be a date",void 0,o);if(!Be(e)&&(r||Be(n)))throw new ne(s+"the argument to above must be a number",void 0,o);if(!r&&a!=="date"&&!Be(n)){let u=a==="string"?"'"+n+"'":n;throw new ne(s+"expected "+u+" to be a number or a date",void 0,o)}if(r){let u="length",l;a==="map"||a==="set"?(u="size",l=n.size):l=n.length,this.assert(l>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,l)}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}E(_s,"assertAbove");x.addMethod("above",_s);x.addMethod("gt",_s);x.addMethod("greaterThan",_s);function js(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"doLength"),i=w(this,"message"),s=i?i+": ":"",o=w(this,"ssfi"),a=de(n).toLowerCase(),c=de(e).toLowerCase(),u,l=!0;if(r&&a!=="map"&&a!=="set"&&new x(n,i,o,!0).to.have.property("length"),!r&&a==="date"&&c!=="date")u=s+"the argument to least must be a date";else if(!Be(e)&&(r||Be(n)))u=s+"the argument to least must be a number";else if(!r&&a!=="date"&&!Be(n)){let f=a==="string"?"'"+n+"'":n;u=s+"expected "+f+" to be a number or a date"}else l=!1;if(l)throw new ne(u,void 0,o);if(r){let f="length",h;a==="map"||a==="set"?(f="size",h=n.size):h=n.length,this.assert(h>=e,"expected #{this} to have a "+f+" at least #{exp} but got #{act}","expected #{this} to have a "+f+" below #{exp}",e,h)}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}E(js,"assertLeast");x.addMethod("least",js);x.addMethod("gte",js);x.addMethod("greaterThanOrEqual",js);function Fs(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"doLength"),i=w(this,"message"),s=i?i+": ":"",o=w(this,"ssfi"),a=de(n).toLowerCase(),c=de(e).toLowerCase(),u,l=!0;if(r&&a!=="map"&&a!=="set"&&new x(n,i,o,!0).to.have.property("length"),!r&&a==="date"&&c!=="date")u=s+"the argument to below must be a date";else if(!Be(e)&&(r||Be(n)))u=s+"the argument to below must be a number";else if(!r&&a!=="date"&&!Be(n)){let f=a==="string"?"'"+n+"'":n;u=s+"expected "+f+" to be a number or a date"}else l=!1;if(l)throw new ne(u,void 0,o);if(r){let f="length",h;a==="map"||a==="set"?(f="size",h=n.size):h=n.length,this.assert(h<e,"expected #{this} to have a "+f+" below #{exp} but got #{act}","expected #{this} to not have a "+f+" below #{exp}",e,h)}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}E(Fs,"assertBelow");x.addMethod("below",Fs);x.addMethod("lt",Fs);x.addMethod("lessThan",Fs);function Rs(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"doLength"),i=w(this,"message"),s=i?i+": ":"",o=w(this,"ssfi"),a=de(n).toLowerCase(),c=de(e).toLowerCase(),u,l=!0;if(r&&a!=="map"&&a!=="set"&&new x(n,i,o,!0).to.have.property("length"),!r&&a==="date"&&c!=="date")u=s+"the argument to most must be a date";else if(!Be(e)&&(r||Be(n)))u=s+"the argument to most must be a number";else if(!r&&a!=="date"&&!Be(n)){let f=a==="string"?"'"+n+"'":n;u=s+"expected "+f+" to be a number or a date"}else l=!1;if(l)throw new ne(u,void 0,o);if(r){let f="length",h;a==="map"||a==="set"?(f="size",h=n.size):h=n.length,this.assert(h<=e,"expected #{this} to have a "+f+" at most #{exp} but got #{act}","expected #{this} to have a "+f+" above #{exp}",e,h)}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}E(Rs,"assertMost");x.addMethod("most",Rs);x.addMethod("lte",Rs);x.addMethod("lessThanOrEqual",Rs);x.addMethod("within",function(e,t,n){n&&w(this,"message",n);let r=w(this,"object"),i=w(this,"doLength"),s=w(this,"message"),o=s?s+": ":"",a=w(this,"ssfi"),c=de(r).toLowerCase(),u=de(e).toLowerCase(),l=de(t).toLowerCase(),f,h=!0,d=u==="date"&&l==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(i&&c!=="map"&&c!=="set"&&new x(r,s,a,!0).to.have.property("length"),!i&&c==="date"&&(u!=="date"||l!=="date"))f=o+"the arguments to within must be dates";else if((!Be(e)||!Be(t))&&(i||Be(r)))f=o+"the arguments to within must be numbers";else if(!i&&c!=="date"&&!Be(r)){let m=c==="string"?"'"+r+"'":r;f=o+"expected "+m+" to be a number or a date"}else h=!1;if(h)throw new ne(f,void 0,a);if(i){let m="length",p;c==="map"||c==="set"?(m="size",p=r.size):p=r.length,this.assert(p>=e&&p<=t,"expected #{this} to have a "+m+" within "+d,"expected #{this} to not have a "+m+" within "+d)}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+d,"expected #{this} to not be within "+d)});function ju(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"ssfi"),i=w(this,"message"),s;try{s=n instanceof e}catch(a){throw a instanceof TypeError?(i=i?i+": ":"",new ne(i+"The instanceof assertion needs a constructor but "+de(e)+" was given.",void 0,r)):a}let o=ks(e);o==null&&(o="an unnamed constructor"),this.assert(s,"expected #{this} to be an instance of "+o,"expected #{this} to not be an instance of "+o)}E(ju,"assertInstanceOf");x.addMethod("instanceof",ju);x.addMethod("instanceOf",ju);function Fu(e,t,n){n&&w(this,"message",n);let r=w(this,"nested"),i=w(this,"own"),s=w(this,"message"),o=w(this,"object"),a=w(this,"ssfi"),c=typeof e;if(s=s?s+": ":"",r){if(c!=="string")throw new ne(s+"the argument to property must be a string when using nested syntax",void 0,a)}else if(c!=="string"&&c!=="number"&&c!=="symbol")throw new ne(s+"the argument to property must be a string, number, or symbol",void 0,a);if(r&&i)throw new ne(s+'The "nested" and "own" flags cannot be combined.',void 0,a);if(o==null)throw new ne(s+"Target cannot be null or undefined.",void 0,a);let u=w(this,"deep"),l=w(this,"negate"),f=r?wu(o,e):null,h=r?f.value:o[e],d=u?w(this,"eql"):(b,T)=>b===T,m="";u&&(m+="deep "),i&&(m+="own "),r&&(m+="nested "),m+="property ";let p;i?p=Object.prototype.hasOwnProperty.call(o,e):r?p=f.exists:p=Os(o,e),(!l||arguments.length===1)&&this.assert(p,"expected #{this} to have "+m+te(e),"expected #{this} to not have "+m+te(e)),arguments.length>1&&this.assert(p&&d(t,h),"expected #{this} to have "+m+te(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+te(e)+" of #{act}",t,h),w(this,"object",h)}E(Fu,"assertProperty");x.addMethod("property",Fu);function Ru(e,t,n){w(this,"own",!0),Fu.apply(this,arguments)}E(Ru,"assertOwnProperty");x.addMethod("ownProperty",Ru);x.addMethod("haveOwnProperty",Ru);function Du(e,t,n){typeof t=="string"&&(n=t,t=null),n&&w(this,"message",n);let r=w(this,"object"),i=Object.getOwnPropertyDescriptor(Object(r),e),s=w(this,"eql");i&&t?this.assert(s(t,i),"expected the own property descriptor for "+te(e)+" on #{this} to match "+te(t)+", got "+te(i),"expected the own property descriptor for "+te(e)+" on #{this} to not match "+te(t),t,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+te(e),"expected #{this} to not have an own property descriptor for "+te(e)),w(this,"object",i)}E(Du,"assertOwnPropertyDescriptor");x.addMethod("ownPropertyDescriptor",Du);x.addMethod("haveOwnPropertyDescriptor",Du);function Lu(){w(this,"doLength",!0)}E(Lu,"assertLengthChain");function Bu(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=de(n).toLowerCase(),i=w(this,"message"),s=w(this,"ssfi"),o="length",a;switch(r){case"map":case"set":o="size",a=n.size;break;default:new x(n,i,s,!0).to.have.property("length"),a=n.length}this.assert(a==e,"expected #{this} to have a "+o+" of #{exp} but got #{act}","expected #{this} to not have a "+o+" of #{act}",e,a)}E(Bu,"assertLength");x.addChainableMethod("length",Bu,Lu);x.addChainableMethod("lengthOf",Bu,Lu);function qu(e,t){t&&w(this,"message",t);let n=w(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}E(qu,"assertMatch");x.addMethod("match",qu);x.addMethod("matches",qu);x.addMethod("string",function(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"message"),i=w(this,"ssfi");new x(n,r,i,!0).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+te(e),"expected #{this} to not contain "+te(e))});function Vu(e){let t=w(this,"object"),n=de(t),r=de(e),i=w(this,"ssfi"),s=w(this,"deep"),o,a="",c,u=!0,l=w(this,"message");l=l?l+": ":"";let f=l+"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")a=s?"deeply ":"",c=[],t.forEach(function(T,$){c.push($)}),r!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(c=Mu(t),r){case"Array":if(arguments.length>1)throw new ne(f,void 0,i);break;case"Object":if(arguments.length>1)throw new ne(f,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(T){return typeof T=="symbol"?T:String(T)})}if(!e.length)throw new ne(l+"keys required",void 0,i);let h=e.length,d=w(this,"any"),m=w(this,"all"),p=e,b=s?w(this,"eql"):(T,$)=>T===$;if(!d&&!m&&(m=!0),d&&(u=p.some(function(T){return c.some(function($){return b(T,$)})})),m&&(u=p.every(function(T){return c.some(function($){return b(T,$)})}),w(this,"contains")||(u=u&&e.length==c.length)),h>1){e=e.map(function($){return te($)});let T=e.pop();m&&(o=e.join(", ")+", and "+T),d&&(o=e.join(", ")+", or "+T)}else o=te(e[0]);o=(h>1?"keys ":"key ")+o,o=(w(this,"contains")?"contain ":"have ")+o,this.assert(u,"expected #{this} to "+a+o,"expected #{this} to not "+a+o,p.slice(0).sort(Hi),c.sort(Hi),!0)}E(Vu,"assertKeys");x.addMethod("keys",Vu);x.addMethod("key",Vu);function Ds(e,t,n){n&&w(this,"message",n);let r=w(this,"object"),i=w(this,"ssfi"),s=w(this,"message"),o=w(this,"negate")||!1;new x(r,s,i,!0).is.a("function"),(Ji(e)||typeof e=="string")&&(t=e,e=null);let a,c=!1;try{r()}catch(d){c=!0,a=d}let u=e===void 0&&t===void 0,l=!!(e&&t),f=!1,h=!1;if(u||!u&&!o){let d="an error";e instanceof Error?d="#{exp}":e&&(d=ht.getConstructorName(e));let m=a;if(a instanceof Error)m=a.toString();else if(typeof a=="string")m=a;else if(a&&(typeof a=="object"||typeof a=="function"))try{m=ht.getConstructorName(a)}catch{}this.assert(c,"expected #{this} to throw "+d,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),m)}if(e&&a&&(e instanceof Error&&ht.compatibleInstance(a,e)===o&&(l&&o?f=!0:this.assert(o,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!o?" but #{act} was thrown":""),e.toString(),a.toString())),ht.compatibleConstructor(a,e)===o&&(l&&o?f=!0:this.assert(o,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ht.getConstructorName(e),a instanceof Error?a.toString():a&&ht.getConstructorName(a)))),a&&t!==void 0&&t!==null){let d="including";Ji(t)&&(d="matching"),ht.compatibleMessage(a,t)===o&&(l&&o?h=!0:this.assert(o,"expected #{this} to throw error "+d+" #{exp} but got #{act}","expected #{this} to throw error not "+d+" #{exp}",t,ht.getMessage(a)))}f&&h&&this.assert(o,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ht.getConstructorName(e),a instanceof Error?a.toString():a&&ht.getConstructorName(a)),w(this,"object",a)}E(Ds,"assertThrows");x.addMethod("throw",Ds);x.addMethod("throws",Ds);x.addMethod("Throw",Ds);function Uu(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"itself"),i=typeof n=="function"&&!r?n.prototype[e]:n[e];this.assert(typeof i=="function","expected #{this} to respond to "+te(e),"expected #{this} to not respond to "+te(e))}E(Uu,"respondTo");x.addMethod("respondTo",Uu);x.addMethod("respondsTo",Uu);x.addProperty("itself",function(){w(this,"itself",!0)});function zu(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=e(n);this.assert(r,"expected #{this} to satisfy "+En(e),"expected #{this} to not satisfy"+En(e),!w(this,"negate"),r)}E(zu,"satisfy");x.addMethod("satisfy",zu);x.addMethod("satisfies",zu);function Wu(e,t,n){n&&w(this,"message",n);let r=w(this,"object"),i=w(this,"message"),s=w(this,"ssfi");new x(r,i,s,!0).is.numeric;let o="A `delta` value is required for `closeTo`";if(t==null)throw new ne(i?`${i}: ${o}`:o,void 0,s);if(new x(t,i,s,!0).is.numeric,o="A `expected` value is required for `closeTo`",e==null)throw new ne(i?`${i}: ${o}`:o,void 0,s);new x(e,i,s,!0).is.numeric;const a=E(u=>u<0?-u:u,"abs"),c=E(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(c(a(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}E(Wu,"closeTo");x.addMethod("closeTo",Wu);x.addMethod("approximately",Wu);function Fx(e,t,n,r,i){let s=Array.from(t),o=Array.from(e);if(!r){if(o.length!==s.length)return!1;s=s.slice()}return o.every(function(a,c){if(i)return n?n(a,s[c]):a===s[c];if(!n){let u=s.indexOf(a);return u===-1?!1:(r||s.splice(u,1),!0)}return s.some(function(u,l){return n(a,u)?(r||s.splice(l,1),!0):!1})})}E(Fx,"isSubsetOf");x.addMethod("members",function(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"message"),i=w(this,"ssfi");new x(n,r,i,!0).to.be.iterable,new x(e,r,i,!0).to.be.iterable;let s=w(this,"contains"),o=w(this,"ordered"),a,c,u;s?(a=o?"an ordered superset":"a superset",c="expected #{this} to be "+a+" of #{exp}",u="expected #{this} to not be "+a+" of #{exp}"):(a=o?"ordered members":"members",c="expected #{this} to have the same "+a+" as #{exp}",u="expected #{this} to not have the same "+a+" as #{exp}");let l=w(this,"deep")?w(this,"eql"):void 0;this.assert(Fx(e,n,l,s,o),c,u,e,n,!0)});x.addProperty("iterable",function(e){e&&w(this,"message",e);let t=w(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Rx(e,t){t&&w(this,"message",t);let n=w(this,"object"),r=w(this,"message"),i=w(this,"ssfi"),s=w(this,"contains"),o=w(this,"deep"),a=w(this,"eql");new x(e,r,i,!0).to.be.an("array"),s?this.assert(e.some(function(c){return n.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):o?this.assert(e.some(function(c){return a(n,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n)}E(Rx,"oneOf");x.addMethod("oneOf",Rx);function Gu(e,t,n){n&&w(this,"message",n);let r=w(this,"object"),i=w(this,"message"),s=w(this,"ssfi");new x(r,i,s,!0).is.a("function");let o;t?(new x(e,i,s,!0).to.have.property(t),o=e[t]):(new x(e,i,s,!0).is.a("function"),o=e()),r();let a=t==null?e():e[t],c=t==null?o:"."+t;w(this,"deltaMsgObj",c),w(this,"initialDeltaValue",o),w(this,"finalDeltaValue",a),w(this,"deltaBehavior","change"),w(this,"realDelta",a!==o),this.assert(o!==a,"expected "+c+" to change","expected "+c+" to not change")}E(Gu,"assertChanges");x.addMethod("change",Gu);x.addMethod("changes",Gu);function Ku(e,t,n){n&&w(this,"message",n);let r=w(this,"object"),i=w(this,"message"),s=w(this,"ssfi");new x(r,i,s,!0).is.a("function");let o;t?(new x(e,i,s,!0).to.have.property(t),o=e[t]):(new x(e,i,s,!0).is.a("function"),o=e()),new x(o,i,s,!0).is.a("number"),r();let a=t==null?e():e[t],c=t==null?o:"."+t;w(this,"deltaMsgObj",c),w(this,"initialDeltaValue",o),w(this,"finalDeltaValue",a),w(this,"deltaBehavior","increase"),w(this,"realDelta",a-o),this.assert(a-o>0,"expected "+c+" to increase","expected "+c+" to not increase")}E(Ku,"assertIncreases");x.addMethod("increase",Ku);x.addMethod("increases",Ku);function Hu(e,t,n){n&&w(this,"message",n);let r=w(this,"object"),i=w(this,"message"),s=w(this,"ssfi");new x(r,i,s,!0).is.a("function");let o;t?(new x(e,i,s,!0).to.have.property(t),o=e[t]):(new x(e,i,s,!0).is.a("function"),o=e()),new x(o,i,s,!0).is.a("number"),r();let a=t==null?e():e[t],c=t==null?o:"."+t;w(this,"deltaMsgObj",c),w(this,"initialDeltaValue",o),w(this,"finalDeltaValue",a),w(this,"deltaBehavior","decrease"),w(this,"realDelta",o-a),this.assert(a-o<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}E(Hu,"assertDecreases");x.addMethod("decrease",Hu);x.addMethod("decreases",Hu);function Dx(e,t){t&&w(this,"message",t);let n=w(this,"deltaMsgObj"),r=w(this,"initialDeltaValue"),i=w(this,"finalDeltaValue"),s=w(this,"deltaBehavior"),o=w(this,"realDelta"),a;s==="change"?a=Math.abs(i-r)===Math.abs(e):a=o===Math.abs(e),this.assert(a,"expected "+n+" to "+s+" by "+e,"expected "+n+" to not "+s+" by "+e)}E(Dx,"assertDelta");x.addMethod("by",Dx);x.addProperty("extensible",function(){let e=w(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});x.addProperty("sealed",function(){let e=w(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});x.addProperty("frozen",function(){let e=w(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});x.addProperty("finite",function(e){let t=w(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 Zi(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(r){return Zi(n,r)})}):!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!==null&&i!==null?Zi(r,i):typeof r=="function"?r(i):i===r}):!1}E(Zi,"compareSubset");x.addMethod("containSubset",function(e){const t=Y(this,"object"),n=et.showDiff;this.assert(Zi(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n)});function Tn(e,t){return new x(e,t)}E(Tn,"expect");Tn.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new ne(n,{actual:e,expected:t,operator:r},Tn.fail)};var Lx={};du(Lx,{Should:()=>av,should:()=>ov});function Yu(){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 x(this.valueOf(),null,e):new x(this,null,e)}E(e,"shouldGetter");function t(r){Object.defineProperty(this,"should",{value:r,enumerable:!0,configurable:!0,writable:!0})}E(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let n={};return n.fail=function(r,i,s,o){throw arguments.length<2&&(s=r,r=void 0),s=s||"should.fail()",new ne(s,{actual:r,expected:i,operator:o},n.fail)},n.equal=function(r,i,s){new x(r,s).to.equal(i)},n.Throw=function(r,i,s,o){new x(r,o).to.Throw(i,s)},n.exist=function(r,i){new x(r,i).to.exist},n.not={},n.not.equal=function(r,i,s){new x(r,s).to.not.equal(i)},n.not.Throw=function(r,i,s,o){new x(r,o).to.not.Throw(i,s)},n.not.exist=function(r,i){new x(r,i).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}E(Yu,"loadShould");var ov=Yu,av=Yu;function g(e,t){new x(null,null,g,!0).assert(e,t,"[ negation message unavailable ]")}E(g,"assert");g.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new ne(n,{actual:e,expected:t,operator:r},g.fail)};g.isOk=function(e,t){new x(e,t,g.isOk,!0).is.ok};g.isNotOk=function(e,t){new x(e,t,g.isNotOk,!0).is.not.ok};g.equal=function(e,t,n){let r=new x(e,n,g.equal,!0);r.assert(t==Y(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};g.notEqual=function(e,t,n){let r=new x(e,n,g.notEqual,!0);r.assert(t!=Y(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};g.strictEqual=function(e,t,n){new x(e,n,g.strictEqual,!0).to.equal(t)};g.notStrictEqual=function(e,t,n){new x(e,n,g.notStrictEqual,!0).to.not.equal(t)};g.deepEqual=g.deepStrictEqual=function(e,t,n){new x(e,n,g.deepEqual,!0).to.eql(t)};g.notDeepEqual=function(e,t,n){new x(e,n,g.notDeepEqual,!0).to.not.eql(t)};g.isAbove=function(e,t,n){new x(e,n,g.isAbove,!0).to.be.above(t)};g.isAtLeast=function(e,t,n){new x(e,n,g.isAtLeast,!0).to.be.least(t)};g.isBelow=function(e,t,n){new x(e,n,g.isBelow,!0).to.be.below(t)};g.isAtMost=function(e,t,n){new x(e,n,g.isAtMost,!0).to.be.most(t)};g.isTrue=function(e,t){new x(e,t,g.isTrue,!0).is.true};g.isNotTrue=function(e,t){new x(e,t,g.isNotTrue,!0).to.not.equal(!0)};g.isFalse=function(e,t){new x(e,t,g.isFalse,!0).is.false};g.isNotFalse=function(e,t){new x(e,t,g.isNotFalse,!0).to.not.equal(!1)};g.isNull=function(e,t){new x(e,t,g.isNull,!0).to.equal(null)};g.isNotNull=function(e,t){new x(e,t,g.isNotNull,!0).to.not.equal(null)};g.isNaN=function(e,t){new x(e,t,g.isNaN,!0).to.be.NaN};g.isNotNaN=function(e,t){new x(e,t,g.isNotNaN,!0).not.to.be.NaN};g.exists=function(e,t){new x(e,t,g.exists,!0).to.exist};g.notExists=function(e,t){new x(e,t,g.notExists,!0).to.not.exist};g.isUndefined=function(e,t){new x(e,t,g.isUndefined,!0).to.equal(void 0)};g.isDefined=function(e,t){new x(e,t,g.isDefined,!0).to.not.equal(void 0)};g.isCallable=function(e,t){new x(e,t,g.isCallable,!0).is.callable};g.isNotCallable=function(e,t){new x(e,t,g.isNotCallable,!0).is.not.callable};g.isObject=function(e,t){new x(e,t,g.isObject,!0).to.be.a("object")};g.isNotObject=function(e,t){new x(e,t,g.isNotObject,!0).to.not.be.a("object")};g.isArray=function(e,t){new x(e,t,g.isArray,!0).to.be.an("array")};g.isNotArray=function(e,t){new x(e,t,g.isNotArray,!0).to.not.be.an("array")};g.isString=function(e,t){new x(e,t,g.isString,!0).to.be.a("string")};g.isNotString=function(e,t){new x(e,t,g.isNotString,!0).to.not.be.a("string")};g.isNumber=function(e,t){new x(e,t,g.isNumber,!0).to.be.a("number")};g.isNotNumber=function(e,t){new x(e,t,g.isNotNumber,!0).to.not.be.a("number")};g.isNumeric=function(e,t){new x(e,t,g.isNumeric,!0).is.numeric};g.isNotNumeric=function(e,t){new x(e,t,g.isNotNumeric,!0).is.not.numeric};g.isFinite=function(e,t){new x(e,t,g.isFinite,!0).to.be.finite};g.isBoolean=function(e,t){new x(e,t,g.isBoolean,!0).to.be.a("boolean")};g.isNotBoolean=function(e,t){new x(e,t,g.isNotBoolean,!0).to.not.be.a("boolean")};g.typeOf=function(e,t,n){new x(e,n,g.typeOf,!0).to.be.a(t)};g.notTypeOf=function(e,t,n){new x(e,n,g.notTypeOf,!0).to.not.be.a(t)};g.instanceOf=function(e,t,n){new x(e,n,g.instanceOf,!0).to.be.instanceOf(t)};g.notInstanceOf=function(e,t,n){new x(e,n,g.notInstanceOf,!0).to.not.be.instanceOf(t)};g.include=function(e,t,n){new x(e,n,g.include,!0).include(t)};g.notInclude=function(e,t,n){new x(e,n,g.notInclude,!0).not.include(t)};g.deepInclude=function(e,t,n){new x(e,n,g.deepInclude,!0).deep.include(t)};g.notDeepInclude=function(e,t,n){new x(e,n,g.notDeepInclude,!0).not.deep.include(t)};g.nestedInclude=function(e,t,n){new x(e,n,g.nestedInclude,!0).nested.include(t)};g.notNestedInclude=function(e,t,n){new x(e,n,g.notNestedInclude,!0).not.nested.include(t)};g.deepNestedInclude=function(e,t,n){new x(e,n,g.deepNestedInclude,!0).deep.nested.include(t)};g.notDeepNestedInclude=function(e,t,n){new x(e,n,g.notDeepNestedInclude,!0).not.deep.nested.include(t)};g.ownInclude=function(e,t,n){new x(e,n,g.ownInclude,!0).own.include(t)};g.notOwnInclude=function(e,t,n){new x(e,n,g.notOwnInclude,!0).not.own.include(t)};g.deepOwnInclude=function(e,t,n){new x(e,n,g.deepOwnInclude,!0).deep.own.include(t)};g.notDeepOwnInclude=function(e,t,n){new x(e,n,g.notDeepOwnInclude,!0).not.deep.own.include(t)};g.match=function(e,t,n){new x(e,n,g.match,!0).to.match(t)};g.notMatch=function(e,t,n){new x(e,n,g.notMatch,!0).to.not.match(t)};g.property=function(e,t,n){new x(e,n,g.property,!0).to.have.property(t)};g.notProperty=function(e,t,n){new x(e,n,g.notProperty,!0).to.not.have.property(t)};g.propertyVal=function(e,t,n,r){new x(e,r,g.propertyVal,!0).to.have.property(t,n)};g.notPropertyVal=function(e,t,n,r){new x(e,r,g.notPropertyVal,!0).to.not.have.property(t,n)};g.deepPropertyVal=function(e,t,n,r){new x(e,r,g.deepPropertyVal,!0).to.have.deep.property(t,n)};g.notDeepPropertyVal=function(e,t,n,r){new x(e,r,g.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)};g.ownProperty=function(e,t,n){new x(e,n,g.ownProperty,!0).to.have.own.property(t)};g.notOwnProperty=function(e,t,n){new x(e,n,g.notOwnProperty,!0).to.not.have.own.property(t)};g.ownPropertyVal=function(e,t,n,r){new x(e,r,g.ownPropertyVal,!0).to.have.own.property(t,n)};g.notOwnPropertyVal=function(e,t,n,r){new x(e,r,g.notOwnPropertyVal,!0).to.not.have.own.property(t,n)};g.deepOwnPropertyVal=function(e,t,n,r){new x(e,r,g.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)};g.notDeepOwnPropertyVal=function(e,t,n,r){new x(e,r,g.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)};g.nestedProperty=function(e,t,n){new x(e,n,g.nestedProperty,!0).to.have.nested.property(t)};g.notNestedProperty=function(e,t,n){new x(e,n,g.notNestedProperty,!0).to.not.have.nested.property(t)};g.nestedPropertyVal=function(e,t,n,r){new x(e,r,g.nestedPropertyVal,!0).to.have.nested.property(t,n)};g.notNestedPropertyVal=function(e,t,n,r){new x(e,r,g.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)};g.deepNestedPropertyVal=function(e,t,n,r){new x(e,r,g.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)};g.notDeepNestedPropertyVal=function(e,t,n,r){new x(e,r,g.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)};g.lengthOf=function(e,t,n){new x(e,n,g.lengthOf,!0).to.have.lengthOf(t)};g.hasAnyKeys=function(e,t,n){new x(e,n,g.hasAnyKeys,!0).to.have.any.keys(t)};g.hasAllKeys=function(e,t,n){new x(e,n,g.hasAllKeys,!0).to.have.all.keys(t)};g.containsAllKeys=function(e,t,n){new x(e,n,g.containsAllKeys,!0).to.contain.all.keys(t)};g.doesNotHaveAnyKeys=function(e,t,n){new x(e,n,g.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};g.doesNotHaveAllKeys=function(e,t,n){new x(e,n,g.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};g.hasAnyDeepKeys=function(e,t,n){new x(e,n,g.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};g.hasAllDeepKeys=function(e,t,n){new x(e,n,g.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};g.containsAllDeepKeys=function(e,t,n){new x(e,n,g.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};g.doesNotHaveAnyDeepKeys=function(e,t,n){new x(e,n,g.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};g.doesNotHaveAllDeepKeys=function(e,t,n){new x(e,n,g.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};g.throws=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let i=new x(e,r,g.throws,!0).to.throw(t,n);return Y(i,"object")};g.doesNotThrow=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new x(e,r,g.doesNotThrow,!0).to.not.throw(t,n)};g.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&&r+": ",new ne(r+'Invalid operator "'+t+'"',void 0,g.operator)}let s=new x(i,r,g.operator,!0);s.assert(Y(s,"object")===!0,"expected "+te(e)+" to be "+t+" "+te(n),"expected "+te(e)+" to not be "+t+" "+te(n))};g.closeTo=function(e,t,n,r){new x(e,r,g.closeTo,!0).to.be.closeTo(t,n)};g.approximately=function(e,t,n,r){new x(e,r,g.approximately,!0).to.be.approximately(t,n)};g.sameMembers=function(e,t,n){new x(e,n,g.sameMembers,!0).to.have.same.members(t)};g.notSameMembers=function(e,t,n){new x(e,n,g.notSameMembers,!0).to.not.have.same.members(t)};g.sameDeepMembers=function(e,t,n){new x(e,n,g.sameDeepMembers,!0).to.have.same.deep.members(t)};g.notSameDeepMembers=function(e,t,n){new x(e,n,g.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};g.sameOrderedMembers=function(e,t,n){new x(e,n,g.sameOrderedMembers,!0).to.have.same.ordered.members(t)};g.notSameOrderedMembers=function(e,t,n){new x(e,n,g.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};g.sameDeepOrderedMembers=function(e,t,n){new x(e,n,g.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};g.notSameDeepOrderedMembers=function(e,t,n){new x(e,n,g.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};g.includeMembers=function(e,t,n){new x(e,n,g.includeMembers,!0).to.include.members(t)};g.notIncludeMembers=function(e,t,n){new x(e,n,g.notIncludeMembers,!0).to.not.include.members(t)};g.includeDeepMembers=function(e,t,n){new x(e,n,g.includeDeepMembers,!0).to.include.deep.members(t)};g.notIncludeDeepMembers=function(e,t,n){new x(e,n,g.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};g.includeOrderedMembers=function(e,t,n){new x(e,n,g.includeOrderedMembers,!0).to.include.ordered.members(t)};g.notIncludeOrderedMembers=function(e,t,n){new x(e,n,g.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};g.includeDeepOrderedMembers=function(e,t,n){new x(e,n,g.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};g.notIncludeDeepOrderedMembers=function(e,t,n){new x(e,n,g.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};g.oneOf=function(e,t,n){new x(e,n,g.oneOf,!0).to.be.oneOf(t)};g.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${te(e)} to be an iterable`:`expected ${te(e)} to be an iterable`,new ne(t,void 0,g.isIterable)};g.changes=function(e,t,n,r){arguments.length===3&&typeof t=="function"&&(r=n,n=null),new x(e,r,g.changes,!0).to.change(t,n)};g.changesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,i=s}else arguments.length===3&&(r=n,n=null);new x(e,i,g.changesBy,!0).to.change(t,n).by(r)};g.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new x(e,r,g.doesNotChange,!0).to.not.change(t,n)};g.changesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,i=s}else arguments.length===3&&(r=n,n=null);new x(e,i,g.changesButNotBy,!0).to.change(t,n).but.not.by(r)};g.increases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new x(e,r,g.increases,!0).to.increase(t,n)};g.increasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,i=s}else arguments.length===3&&(r=n,n=null);new x(e,i,g.increasesBy,!0).to.increase(t,n).by(r)};g.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new x(e,r,g.doesNotIncrease,!0).to.not.increase(t,n)};g.increasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,i=s}else arguments.length===3&&(r=n,n=null);new x(e,i,g.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)};g.decreases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new x(e,r,g.decreases,!0).to.decrease(t,n)};g.decreasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,i=s}else arguments.length===3&&(r=n,n=null);new x(e,i,g.decreasesBy,!0).to.decrease(t,n).by(r)};g.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new x(e,r,g.doesNotDecrease,!0).to.not.decrease(t,n)};g.doesNotDecreaseBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,i=s}else arguments.length===3&&(r=n,n=null);return new x(e,i,g.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)};g.decreasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t=="function"){let s=r;r=n,i=s}else arguments.length===3&&(r=n,n=null);new x(e,i,g.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)};g.ifError=function(e){if(e)throw e};g.isExtensible=function(e,t){new x(e,t,g.isExtensible,!0).to.be.extensible};g.isNotExtensible=function(e,t){new x(e,t,g.isNotExtensible,!0).to.not.be.extensible};g.isSealed=function(e,t){new x(e,t,g.isSealed,!0).to.be.sealed};g.isNotSealed=function(e,t){new x(e,t,g.isNotSealed,!0).to.not.be.sealed};g.isFrozen=function(e,t){new x(e,t,g.isFrozen,!0).to.be.frozen};g.isNotFrozen=function(e,t){new x(e,t,g.isNotFrozen,!0).to.not.be.frozen};g.isEmpty=function(e,t){new x(e,t,g.isEmpty,!0).to.be.empty};g.isNotEmpty=function(e,t){new x(e,t,g.isNotEmpty,!0).to.not.be.empty};g.containsSubset=function(e,t,n){new x(e,n).to.containSubset(t)};g.doesNotContainSubset=function(e,t,n){new x(e,n).to.not.containSubset(t)};var cv=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(const[e,t]of cv)g[t]=g[e];var Id=[];function mn(e){const t={use:mn,AssertionError:ne,util:Ne,config:et,expect:Tn,assert:g,Assertion:x,...Lx};return~Id.indexOf(e)||(e(t,Ne),Id.push(e)),t}E(mn,"use");const uv=(e,t)=>{function n(s,o){t.addProperty(e.Assertion.prototype,s,function(){const a=e.Assertion.prototype[o];if(!a)throw new Error(`Cannot delegate to ${String(o)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return a.call(this)})}function r(s,o,...a){t.addProperty(e.Assertion.prototype,s,function(){const c=e.Assertion.prototype[o];if(!c)throw new Error(`Cannot delegate to ${String(o)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return c.call(this,...a)})}function i(s,o){t.addChainableMethod(e.Assertion.prototype,s,function(...a){const c=e.Assertion.prototype[o];if(!c)throw new Error(`Cannot delegate to ${String(o)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return c.call(this,...a)},()=>{})}n("called","toHaveBeenCalled"),n("calledOnce","toHaveBeenCalledOnce"),n("returned","toHaveReturned"),r("calledTwice","toHaveBeenCalledTimes",2),r("calledThrice","toHaveBeenCalledTimes",3),i("callCount","toHaveBeenCalledTimes"),i("calledWith","toHaveBeenCalledWith"),i("calledOnceWith","toHaveBeenCalledExactlyOnceWith"),i("lastCalledWith","toHaveBeenLastCalledWith"),i("nthCalledWith","toHaveBeenNthCalledWith"),i("returnedWith","toHaveReturnedWith"),i("returnedTimes","toHaveReturnedTimes"),i("lastReturnedWith","toHaveLastReturnedWith"),i("nthReturnedWith","toHaveNthReturnedWith"),i("calledBefore","toHaveBeenCalledBefore"),i("calledAfter","toHaveBeenCalledAfter")},Xi=Symbol.for("matchers-object"),Xr=Symbol.for("$$jest-matchers-object"),Ls=Symbol.for("expect-global"),Ju=Symbol.for("asymmetric-matchers-object"),lv={toSatisfy(e,t,n){const{printReceived:r,printExpected:i,matcherHint:s}=this.utils,o=t(e);return{pass:o,message:()=>o?`${s(".not.toSatisfy","received","")}
123
+
124
+ Expected value to not satisfy:
125
+ ${n||i(t)}
126
+ Received:
127
+ ${r(e)}`:`${s(".toSatisfy","received","")}
128
+
129
+ Expected value to satisfy:
130
+ ${n||i(t)}
131
+
132
+ Received:
133
+ ${r(e)}`}},toBeOneOf(e,t){const{equals:n,customTesters:r}=this,{printReceived:i,printExpected:s,matcherHint:o}=this.utils;let a;if(Array.isArray(t))a=t.length===0||t.some(c=>n(c,e,r));else if(t instanceof Set)a=t.size===0||t.has(e)||[...t].some(c=>n(c,e,r));else throw new TypeError(`You must provide an array or set to ${o(".toBeOneOf")}, not '${typeof t}'.`);return{pass:a,message:()=>a?`${o(".not.toBeOneOf","received","")}
134
+
135
+ Expected value to not be one of:
136
+ ${s(t)}
137
+ Received:
138
+ ${i(e)}`:`${o(".toBeOneOf","received","")}
139
+
140
+ Expected value to be one of:
141
+ ${s(t)}
142
+
143
+ Received:
144
+ ${i(e)}`}}},Qi=$e.green,Zu=$e.red,fv=$e.inverse,hv=$e.bold,en=$e.dim;function dv(e,t="received",n="expected",r={}){const{comment:i="",isDirectExpectCall:s=!1,isNot:o=!1,promise:a="",secondArgument:c="",expectedColor:u=Qi,receivedColor:l=Zu,secondArgumentColor:f=Qi}=r;let h="",d="expect";return!s&&t!==""&&(h+=en(`${d}(`)+l(t),d=")"),a!==""&&(h+=en(`${d}.`)+a,d=""),o&&(h+=`${en(`${d}.`)}not`,d=""),e.includes(".")?d+=e:(h+=en(`${d}.`)+e,d=""),n===""?d+="()":(h+=en(`${d}(`)+u(n),c&&(h+=en(", ")+f(c)),d=")"),i!==""&&(d+=` // ${i}`),d!==""&&(h+=en(d)),h}const pv="·";function Bx(e){return e.replace(/\s+$/gm,t=>pv.repeat(t.length))}function mv(e){return Zu(Bx(at(e)))}function gv(e){return Qi(Bx(at(e)))}function qx(){return{EXPECTED_COLOR:Qi,RECEIVED_COLOR:Zu,INVERTED_COLOR:fv,BOLD_WEIGHT:hv,DIM_COLOR:en,diff:rr,matcherHint:dv,printReceived:mv,printExpected:gv,printDiffOrStringify:Sg,printWithType:xv}}function xv(e,t,n){const r=Rr(t),i=r!=="null"&&r!=="undefined"?`${e} has type: ${r}
145
+ `:"",s=`${e} has value: ${n(t)}`;return i+s}function bv(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${Rr(e)}"`);globalThis[Xr].customEqualityTesters.push(...e)}function Xu(){return globalThis[Xr].customEqualityTesters}function ee(e,t,n,r){return n=n||[],Er(e,t,[],[],n,r?Vx:Sv)}function $d(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&wt("Function",e.asymmetricMatch)}function yv(e,t,n){const r=$d(e),i=$d(t);if(!(r&&i)){if(r)return e.asymmetricMatch(t,n);if(i)return t.asymmetricMatch(e,n)}}function Kn(e){if(typeof Error.isError=="function")return Error.isError(e);switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function Er(e,t,n,r,i,s){let o=!0;const a=yv(e,t,i);if(a!==void 0)return a;const c={equals:ee};for(let m=0;m<i.length;m++){const p=i[m].call(c,e,t,i);if(p!==void 0)return p}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;const u=Object.prototype.toString.call(e);if(u!==Object.prototype.toString.call(t))return!1;switch(u){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{const m=+e,p=+t;return m===p||Number.isNaN(m)&&Number.isNaN(p)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(vd(e)&&vd(t))return e.isEqualNode(t);let l=n.length;for(;l--;){if(n[l]===e)return r[l]===t;if(r[l]===t)return!1}if(n.push(e),r.push(t),u==="[object Array]"&&e.length!==t.length)return!1;if(Kn(e)&&Kn(t))try{return wv(e,t,n,r,i,s)}finally{n.pop(),r.pop()}const f=Cd(e,s);let h,d=f.length;if(Cd(t,s).length!==d)return!1;for(;d--;)if(h=f[d],o=s(t,h)&&Er(e[h],t[h],n,r,i,s),!o)return!1;return n.pop(),r.pop(),o}function wv(e,t,n,r,i,s){let o=Object.prototype.toString.call(e)===Object.prototype.toString.call(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&o&&(o=Er(e.cause,t.cause,n,r,i,s)),e instanceof AggregateError&&t instanceof AggregateError&&o&&(o=Er(e.errors,t.errors,n,r,i,s)),o&&(o=Er({...e},{...t},n,r,i,s)),o}function Cd(e,t){const n=[];for(const r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(r=>Object.getOwnPropertyDescriptor(e,r).enumerable))}function Sv(e,t){return Vx(e,t)&&e[t]!==void 0}function Vx(e,t){return Object.hasOwn(e,t)}function wt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function vd(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}const Ux="@@__IMMUTABLE_KEYED__@@",zx="@@__IMMUTABLE_SET__@@",Ev="@@__IMMUTABLE_LIST__@@",Bs="@@__IMMUTABLE_ORDERED__@@",Tv="@@__IMMUTABLE_RECORD__@@";function Av(e){return!!(e&&e[Ux]&&!e[Bs])}function Iv(e){return!!(e&&e[zx]&&!e[Bs])}function qs(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function $v(e){return!!(e&&qs(e)&&e[Ev])}function Cv(e){return!!(e&&qs(e)&&e[Ux]&&e[Bs])}function vv(e){return!!(e&&qs(e)&&e[zx]&&e[Bs])}function Mv(e){return!!(e&&qs(e)&&e[Tv])}const Wx=Symbol.iterator;function Md(e){return!!(e!=null&&e[Wx])}function st(e,t,n=[],r=[],i=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Md(e)||!Md(t))return;if(e.constructor!==t.constructor)return!1;let s=r.length;for(;s--;)if(r[s]===e)return i[s]===t;r.push(e),i.push(t);const o=[...n.filter(u=>u!==st),a];function a(u,l){return st(u,l,[...n],[...r],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(wt("Set",e)||Iv(e)){let u=!0;for(const l of e)if(!t.has(l)){let f=!1;for(const h of t)ee(l,h,o)===!0&&(f=!0);if(f===!1){u=!1;break}}return r.pop(),i.pop(),u}else if(wt("Map",e)||Av(e)){let u=!0;for(const l of e)if(!t.has(l[0])||!ee(l[1],t.get(l[0]),o)){let f=!1;for(const h of t){const d=ee(l[0],h[0],o);let m=!1;d===!0&&(m=ee(l[1],h[1],o)),m===!0&&(f=!0)}if(f===!1){u=!1;break}}return r.pop(),i.pop(),u}}const c=t[Wx]();for(const u of e){const l=c.next();if(l.done||!ee(u,l.value,o))return!1}if(!c.next().done)return!1;if(!$v(e)&&!Cv(e)&&!vv(e)&&!Mv(e)){const u=Object.entries(e),l=Object.entries(t);if(!ee(u,l,o))return!1}return r.pop(),i.pop(),!0}function Qu(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.hasOwn(e,t)||Qu(Object.getPrototypeOf(e),t)}function Ov(e){return Pt(e)&&!Kn(e)&&!Array.isArray(e)&&!(e instanceof Date)&&!(e instanceof Set)&&!(e instanceof Map)}function sr(e,t,n=[]){const r=n.filter(s=>s!==sr),i=(s=new WeakMap)=>(o,a)=>{if(Ov(a))return Object.keys(a).every(c=>{if(a[c]!=null&&typeof a[c]=="object"){if(s.has(a[c]))return ee(o[c],a[c],r);s.set(a[c],!0)}const u=o!=null&&Qu(o,c)&&ee(o[c],a[c],[...r,i(s)]);return s.delete(a[c]),u})};return i()(e,t)}function Od(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function Nd(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 i=0;i<n.byteLength;i++)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function La(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;const r=Object.keys(e),i=Object.keys(t),s=n.filter(o=>o!==La);return ee(e,t,s,!0)&&ee(r,i)}function Nv(e,t="#{this}",n="#{exp}"){const r=`expected ${t} to be ${n} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${r}
146
+
147
+ If it should pass with deep equality, replace "toBe" with "${e}"
148
+
149
+ Expected: ${t}
150
+ Received: serializes to the same string
151
+ `:r}function kv(e,t){return`${t} ${e}${t===1?"":"s"}`}function No(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return(n=Object.getOwnPropertyDescriptor(e,t))==null?void 0:n.enumerable})]}function Pv(e,t,n){let r=0;const i=(s=new WeakMap)=>(o,a)=>{if(Array.isArray(o)){if(Array.isArray(a)&&a.length===o.length)return a.map((c,u)=>i(s)(o[u],c))}else{if(o instanceof Date)return o;if(Pt(o)&&Pt(a)){if(ee(o,a,[...n,st,sr]))return a;const c={};s.set(o,c),typeof o.constructor=="function"&&typeof o.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:!1,value:o.constructor});for(const u of No(o))Qu(a,u)?c[u]=s.has(o[u])?s.get(o[u]):i(s)(o[u],a[u]):s.has(o[u])||(r+=1,Pt(o[u])&&(r+=No(o[u]).length),i(s)(o[u],a[u]));if(No(c).length>0)return c}}return o};return{subset:i()(e,t),stripped:r}}function _v(e){return!!e&&(typeof e=="object"||typeof e=="function")&&e["~standard"]&&typeof e["~standard"].validate=="function"}if(!Object.hasOwn(globalThis,Xi)){const e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Xi,{get:()=>e}),Object.defineProperty(globalThis,Xr,{configurable:!0,get:()=>({state:e.get(globalThis[Ls]),matchers:t,customEqualityTesters:n})}),Object.defineProperty(globalThis,Ju,{get:()=>r})}function Tr(e){return globalThis[Xi].get(e)}function ko(e,t){const n=globalThis[Xi],r=n.get(t)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,i)}let Bt=class{constructor(t,n=!1){L(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=t,this.inverse=n}getMatcherContext(t){return{...Tr(t||globalThis[Ls]),equals:ee,isNot:this.inverse,customTesters:Xu(),utils:{...qx(),diff:rr,stringify:at,iterableEquality:st,subsetEquality:sr}}}};Bt.prototype[Symbol.for("chai/inspect")]=function(e){const t=at(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};class kd extends Bt{constructor(t,n=!1){if(!wt("String",t))throw new Error("Expected is not a string");super(t,n)}asymmetricMatch(t){const n=wt("String",t)&&t.includes(this.sample);return this.inverse?!n:n}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}}class jv extends Bt{asymmetricMatch(t){return t!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}}class Pd extends Bt{constructor(t,n=!1){super(t,n)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,n){return t?Object.hasOwn(t,n)?!0:this.hasProperty(this.getPrototype(t),n):!1}getProperties(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter(n=>{var r;return(r=Object.getOwnPropertyDescriptor(t,n))==null?void 0:r.enumerable})]}asymmetricMatch(t,n){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=!0;const i=this.getProperties(this.sample);for(const s of i){if(!this.hasProperty(t,s)){r=!1;break}const o=this.sample[s],a=t[s];if(!ee(o,a,n)){r=!1;break}}return this.inverse?!r:r}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}}class _d extends Bt{constructor(t,n=!1){super(t,n)}asymmetricMatch(t,n){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const r=this.sample.length===0||Array.isArray(t)&&this.sample.every(i=>t.some(s=>ee(i,s,n)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}}class Fv extends Bt{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t)}fnNameFor(t){if(t.name)return t.name;const r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}}class jd extends Bt{constructor(t,n=!1){if(!wt("String",t)&&!wt("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),n)}asymmetricMatch(t){const n=wt("String",t)&&this.sample.test(t);return this.inverse?!n:n}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}}class Fd extends Bt{constructor(n,r=2,i=!1){if(!wt("Number",n))throw new Error("Expected is not a Number");if(!wt("Number",r))throw new Error("Precision is not a Number");super(n);L(this,"precision");this.inverse=i,this.precision=r}asymmetricMatch(n){if(!wt("Number",n))return!1;let r=!1;return n===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||n===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-n)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${kv("digit",this.precision)})`].join(" ")}}class Rd extends Bt{constructor(n,r=!1){if(!_v(n))throw new TypeError("SchemaMatching expected to receive a Standard Schema.");super(n,r);L(this,"result")}asymmetricMatch(n){const r=this.sample["~standard"].validate(n);if(r instanceof Promise)throw new TypeError("Async schema validation is not supported in asymmetric matchers.");this.result=r;const i=!this.result.issues||this.result.issues.length===0;return this.inverse?!i:i}toString(){return`Schema${this.inverse?"Not":""}Matching`}getExpectedType(){return"object"}toAsymmetricMatcher(){var i;const{utils:n}=this.getMatcherContext();return(((i=this.result)==null?void 0:i.issues)||[]).length>0?`${this.toString()} ${n.stringify(this.result,void 0,{printBasicPrototype:!1})}`:this.toString()}}const Rv=(e,t)=>{t.addMethod(e.expect,"anything",()=>new jv),t.addMethod(e.expect,"any",n=>new Fv(n)),t.addMethod(e.expect,"stringContaining",n=>new kd(n)),t.addMethod(e.expect,"objectContaining",n=>new Pd(n)),t.addMethod(e.expect,"arrayContaining",n=>new _d(n)),t.addMethod(e.expect,"stringMatching",n=>new jd(n)),t.addMethod(e.expect,"closeTo",(n,r)=>new Fd(n,r)),t.addMethod(e.expect,"schemaMatching",n=>new Rd(n)),e.expect.not={stringContaining:n=>new kd(n,!0),objectContaining:n=>new Pd(n,!0),arrayContaining:n=>new _d(n,!0),stringMatching:n=>new jd(n,!0),closeTo:(n,r)=>new Fd(n,r,!0),schemaMatching:n=>new Rd(n,!0)}};function Ba(e,t,n){const r=e.flag(t,"soft")?".soft":"",i=e.flag(t,"negate")?"not.":"",s=`${e.flag(t,"_name")}(${n?"expected":""})`,o=e.flag(t,"promise"),a=o?`.${o}`:"";return`expect${r}(actual)${a}.${i}${s}`}function qa(e,t,n,r,i){const s=e;if(s&&t instanceof Promise){t=t.finally(()=>{if(!s.promises)return;const a=s.promises.indexOf(t);a!==-1&&s.promises.splice(a,1)}),s.promises||(s.promises=[]),i&&(t=t.then(cg,a=>{Va(s,a)})),s.promises.push(t);let o=!1;return s.onFinished??(s.onFinished=[]),s.onFinished.push(()=>{var a;if(!o){const u=(((a=globalThis.__vitest_worker__)==null?void 0:a.onFilterStackTrace)||(l=>l||""))(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 the next Vitest major. ",`Please remember to await the assertion.
152
+ `,u].join(""))}}),{then(a,c){return o=!0,t.then(a,c)},catch(a){return o=!0,t.catch(a)},finally(a){return o=!0,t.finally(a)},[Symbol.toStringTag]:"Promise"}}return t}function Va(e,t){var n;e.result||(e.result={state:"fail"}),e.result.state="fail",(n=e.result).errors||(n.errors=[]),e.result.errors.push(Tg(t))}function Vn(e,t,n){return function(...r){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))try{return n.apply(this,r)}finally{}const i=e.flag(this,"vitest-test");if(!i)throw new Error("expect.soft() can only be used inside a test");try{const s=n.apply(this,r);return s&&typeof s=="object"&&typeof s.then=="function"?s.then(cg,o=>{Va(i,o)}):s}catch(s){Va(i,s)}}}const Dv=(e,t)=>{const{AssertionError:n}=e,r=Xu();function i(u,l){const f=h=>{const d=Vn(t,h,l);t.addMethod(e.Assertion.prototype,h,d),t.addMethod(globalThis[Xr].matchers,h,d)};Array.isArray(u)?u.forEach(h=>f(h)):f(u)}["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,l=>function(...f){const h=t.flag(this,"promise"),d=t.flag(this,"object"),m=t.flag(this,"negate");if(h==="rejects")t.flag(this,"object",()=>{throw d});else if(h==="resolves"&&typeof d!="function"){if(m)return;{const p=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:!1};throw new n(p,b,t.flag(this,"ssfi"))}}l.apply(this,f)})}),i("withTest",function(u){return t.flag(this,"vitest-test",u),this}),i("toEqual",function(u){const l=t.flag(this,"object"),f=ee(l,u,[...r,st]);return this.assert(f,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,l)}),i("toStrictEqual",function(u){const l=t.flag(this,"object"),f=ee(l,u,[...r,st,Od,La,Nd],!0);return this.assert(f,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,l)}),i("toBe",function(u){const l=this._obj,f=Object.is(l,u);let h="";return f||(ee(l,u,[...r,st,Od,La,Nd],!0)?h="toStrictEqual":ee(l,u,[...r,st])&&(h="toEqual")),this.assert(f,Nv(h),"expected #{this} not to be #{exp} // Object.is equality",u,l)}),i("toMatchObject",function(u){const l=this._obj,f=ee(l,u,[...r,st,sr]),h=t.flag(this,"negate"),{subset:d,stripped:m}=Pv(l,u,r);if(f&&h||!f&&!h){const p=t.getMessage(this,[f,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,d,!1]),b=m===0?p:`${p}
153
+ (${m} matching ${m===1?"property":"properties"} omitted from actual)`;throw new n(b,{showDiff:!0,expected:u,actual:d})}}),i("toMatch",function(u){const l=this._obj;if(typeof l!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof l}`);return this.assert(typeof u=="string"?l.includes(u):l.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,l)}),i("toContain",function(u){const l=this._obj;if(typeof Node<"u"&&l instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(l.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,l)}if(typeof DOMTokenList<"u"&&l instanceof DOMTokenList){Qe(u,"class name",["string"]);const h=t.flag(this,"negate")?l.value.replace(u,"").trim():`${l.value} ${u}`;return this.assert(l.contains(u),`expected "${l.value}" to contain "${u}"`,`expected "${l.value}" not to contain "${u}"`,h,l.value)}return typeof l=="string"&&typeof u=="string"?this.assert(l.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,l):(l!=null&&typeof l!="string"&&t.flag(this,"object",Array.from(l)),this.contain(u))}),i("toContainEqual",function(u){const l=t.flag(this,"object"),f=Array.from(l).findIndex(h=>ee(h,u,r));this.assert(f!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u)}),i("toBeTruthy",function(){const u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,u)}),i("toBeFalsy",function(){const u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,u)}),i("toBeGreaterThan",function(u){const l=this._obj;return Qe(l,"actual",["number","bigint"]),Qe(u,"expected",["number","bigint"]),this.assert(l>u,`expected ${l} to be greater than ${u}`,`expected ${l} to be not greater than ${u}`,u,l,!1)}),i("toBeGreaterThanOrEqual",function(u){const l=this._obj;return Qe(l,"actual",["number","bigint"]),Qe(u,"expected",["number","bigint"]),this.assert(l>=u,`expected ${l} to be greater than or equal to ${u}`,`expected ${l} to be not greater than or equal to ${u}`,u,l,!1)}),i("toBeLessThan",function(u){const l=this._obj;return Qe(l,"actual",["number","bigint"]),Qe(u,"expected",["number","bigint"]),this.assert(l<u,`expected ${l} to be less than ${u}`,`expected ${l} to be not less than ${u}`,u,l,!1)}),i("toBeLessThanOrEqual",function(u){const l=this._obj;return Qe(l,"actual",["number","bigint"]),Qe(u,"expected",["number","bigint"]),this.assert(l<=u,`expected ${l} to be less than or equal to ${u}`,`expected ${l} to be not less than or equal to ${u}`,u,l,!1)}),i("toBeNaN",function(){const u=t.flag(this,"object");this.assert(Number.isNaN(u),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,u)}),i("toBeUndefined",function(){const u=t.flag(this,"object");this.assert(u===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,u)}),i("toBeNull",function(){const u=t.flag(this,"object");this.assert(u===null,"expected #{this} to be null","expected #{this} not to be null",null,u)}),i("toBeNullable",function(){const u=t.flag(this,"object");this.assert(u==null,"expected #{this} to be nullish","expected #{this} not to be nullish",null,u)}),i("toBeDefined",function(){const u=t.flag(this,"object");this.assert(typeof u<"u","expected #{this} to be defined","expected #{this} to be undefined",u)}),i("toBeTypeOf",function(u){const l=typeof this._obj,f=u===l;return this.assert(f,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,l)}),i("toBeInstanceOf",function(u){return this.instanceOf(u)}),i("toHaveLength",function(u){return this.have.length(u)}),i("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map($=>String($).replace(/([.[\]])/g,"\\$1")).join("."));const l=this._obj,[f,h]=u,d=()=>Object.hasOwn(l,f)?{value:l[f],exists:!0}:t.getPathInfo(l,f),{value:m,exists:p}=d(),b=p&&(u.length===1||ee(h,m,r)),T=u.length===1?"":` with value ${t.objDisplay(h)}`;return this.assert(b,`expected #{this} to have property "${f}"${T}`,`expected #{this} to not have property "${f}"${T}`,h,p?m:void 0)}),i("toBeCloseTo",function(u,l=2){const f=this._obj;let h=!1,d=0,m=0;return u===Number.POSITIVE_INFINITY&&f===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&f===Number.NEGATIVE_INFINITY?h=!0:(d=10**-l/2,m=Math.abs(f-u),h=m<d),this.assert(h,`expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${d}`,`expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${d}`,u,f,!1)});function s(u){if(!Co(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}function o(u){return s(u),u._obj}i(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){const l=o(this),f=l.getMockName(),h=l.mock.calls.length;return this.assert(h===u,`expected "${f}" to be called #{exp} times, but got ${h} times`,`expected "${f}" to not be called #{exp} times`,u,h,!1)}),i("toHaveBeenCalledOnce",function(){const u=o(this),l=u.getMockName(),f=u.mock.calls.length;return this.assert(f===1,`expected "${l}" to be called once, but got ${f} times`,`expected "${l}" to not be called once`,1,f,!1)}),i(["toHaveBeenCalled","toBeCalled"],function(){const u=o(this),l=u.getMockName(),f=u.mock.calls.length,h=f>0,d=t.flag(this,"negate");let m=t.getMessage(this,[h,`expected "${l}" to be called at least once`,`expected "${l}" to not be called at all, but actually been called ${f} times`,!0,h]);if(h&&d&&(m=Po(u,m)),h&&d||!h&&!d)throw new n(m)});function a(u,l){return u.length===l.length&&u.every((f,h)=>ee(f,l[h],[...r,st]))}i(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){const l=o(this),f=l.getMockName(),h=l.mock.calls.some(p=>a(p,u)),d=t.flag(this,"negate"),m=t.getMessage(this,[h,`expected "${f}" to be called with arguments: #{exp}`,`expected "${f}" to not be called with arguments: #{exp}`,u]);if(h&&d||!h&&!d)throw new n(Po(l,m,u))}),i("toHaveBeenCalledExactlyOnceWith",function(...u){const l=o(this),f=l.getMockName(),h=l.mock.calls.length,m=l.mock.calls.some(T=>a(T,u))&&h===1,p=t.flag(this,"negate"),b=t.getMessage(this,[m,`expected "${f}" to be called once with arguments: #{exp}`,`expected "${f}" to not be called once with arguments: #{exp}`,u]);if(m&&p||!m&&!p)throw new n(Po(l,b,u))}),i("toHaveBeenNthCalledWith",function(u,...l){const f=o(this),h=f.getMockName(),d=f.mock.calls[u-1],m=f.mock.calls.length,p=u<=m;this.assert(d&&a(d,l),`expected ${Sn(u)} "${h}" call to have been called with #{exp}${p?"":`, but called only ${m} times`}`,`expected ${Sn(u)} "${h}" call to not have been called with #{exp}`,l,d,p)}),i("toHaveBeenLastCalledWith",function(...u){const l=o(this),f=l.getMockName(),h=l.mock.calls.at(-1);this.assert(h&&a(h,u),`expected last "${f}" call to have been called with #{exp}`,`expected last "${f}" call to not have been called with #{exp}`,u,h)});function c(u,l,f){const h=u.mock.invocationCallOrder,d=l.mock.invocationCallOrder;return h.length===0?!f:d.length===0?!1:h[0]<d[0]}i(["toHaveBeenCalledBefore"],function(u,l=!0){const f=o(this);if(!Co(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(f,u,l),`expected "${f.getMockName()}" to have been called before "${u.getMockName()}"`,`expected "${f.getMockName()}" to not have been called before "${u.getMockName()}"`,u,f)}),i(["toHaveBeenCalledAfter"],function(u,l=!0){const f=o(this);if(!Co(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(u,f,l),`expected "${f.getMockName()}" to have been called after "${u.getMockName()}"`,`expected "${f.getMockName()}" to not have been called after "${u.getMockName()}"`,u,f)}),i(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u===""?/^$/:u);const l=this._obj,f=t.flag(this,"promise"),h=t.flag(this,"negate");let d=null;if(f==="rejects")d=l;else if(f==="resolves"&&typeof l!="function"){if(h)return;{const p=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:!1};throw new n(p,b,t.flag(this,"ssfi"))}}else{let p=!1;try{l()}catch(b){p=!0,d=b}if(!p&&!h){const b=t.flag(this,"message")||"expected function to throw an error, but it didn't",T={showDiff:!1};throw new n(b,T,t.flag(this,"ssfi"))}}if(typeof u=="function"){const p=u.name||u.prototype.constructor.name;return this.assert(d&&d instanceof u,`expected error to be instance of ${p}`,`expected error not to be instance of ${p}`,u,d)}if(Kn(u)){const p=ee(d,u,[...r,st]);return this.assert(p,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,d)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){const p=u;return this.assert(d&&p.asymmetricMatch(d),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",p,d)}const m=ee(d,u,[...r,st]);return this.assert(m,"expected a thrown value to equal #{exp}","expected a thrown value not to equal #{exp}",u,d)}),[{name:"toHaveResolved",condition:u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:l})=>l==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:u=>u.mock.calls.length>0&&u.mock.results.some(({type:l})=>l!=="throw"),action:"called"}].forEach(({name:u,condition:l,action:f})=>{i(u,function(){const h=o(this),d=h.getMockName(),m=l(h);this.assert(m,`expected "${d}" to be successfully ${f} at least once`,`expected "${d}" to not be successfully ${f}`,m,!m,!1)})}),[{name:"toHaveResolvedTimes",condition:(u,l)=>u.mock.settledResults.reduce((f,{type:h})=>h==="fulfilled"?++f:f,0)===l,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(u,l)=>u.mock.results.reduce((f,{type:h})=>h==="throw"?f:++f,0)===l,action:"called"}].forEach(({name:u,condition:l,action:f})=>{i(u,function(h){const d=o(this),m=d.getMockName(),p=l(d,h);this.assert(p,`expected "${m}" to be successfully ${f} ${h} times`,`expected "${m}" to not be successfully ${f} ${h} times`,`expected resolved times: ${h}`,`received resolved times: ${p}`,!1)})}),[{name:"toHaveResolvedWith",condition:(u,l)=>u.mock.settledResults.some(({type:f,value:h})=>f==="fulfilled"&&ee(l,h)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(u,l)=>u.mock.results.some(({type:f,value:h})=>f==="return"&&ee(l,h)),action:"return"}].forEach(({name:u,condition:l,action:f})=>{i(u,function(h){const d=o(this),m=l(d,h),p=t.flag(this,"negate");if(m&&p||!m&&!p){const b=d.getMockName(),T=t.getMessage(this,[m,`expected "${b}" to ${f} with: #{exp} at least once`,`expected "${b}" to not ${f} with: #{exp}`,h]),$=f==="return"?d.mock.results:d.mock.settledResults;throw new n(Lv(d,$,T,h))}})}),[{name:"toHaveLastResolvedWith",condition:(u,l)=>{const f=u.mock.settledResults.at(-1);return!!(f&&f.type==="fulfilled"&&ee(f.value,l))},action:"resolve"},{name:"toHaveLastReturnedWith",condition:(u,l)=>{const f=u.mock.results.at(-1);return!!(f&&f.type==="return"&&ee(f.value,l))},action:"return"}].forEach(({name:u,condition:l,action:f})=>{i(u,function(h){const d=o(this),p=(f==="return"?d.mock.results:d.mock.settledResults).at(-1),b=d.getMockName();this.assert(l(d,h),`expected last "${b}" call to ${f} #{exp}`,`expected last "${b}" call to not ${f} #{exp}`,h,p==null?void 0:p.value)})}),[{name:"toHaveNthResolvedWith",condition:(u,l,f)=>{const h=u.mock.settledResults[l-1];return h&&h.type==="fulfilled"&&ee(h.value,f)},action:"resolve"},{name:"toHaveNthReturnedWith",condition:(u,l,f)=>{const h=u.mock.results[l-1];return h&&h.type==="return"&&ee(h.value,f)},action:"return"}].forEach(({name:u,condition:l,action:f})=>{i(u,function(h,d){const m=o(this),p=m.getMockName(),T=(f==="return"?m.mock.results:m.mock.settledResults)[h-1],$=`${Sn(h)} call`;this.assert(l(m,h,d),`expected ${$} "${p}" call to ${f} #{exp}`,`expected ${$} "${p}" call to not ${f} #{exp}`,d,T==null?void 0:T.value)})}),i("withContext",function(u){for(const l in u)t.flag(this,l,u[l]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){const l=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",l);const f=t.flag(this,"vitest-test"),h=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof(h==null?void 0:h.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof h}'.`);const d=new Proxy(this,{get:(m,p,b)=>{const T=Reflect.get(m,p,b);return typeof T!="function"?T instanceof e.Assertion?d:T:(...$)=>{t.flag(this,"_name",p);const P=Promise.resolve(h).then(C=>(t.flag(this,"object",C),T.call(this,...$)),C=>{const v=new n(`promise rejected "${t.inspect(C)}" instead of resolving`,{showDiff:!1});throw v.cause=C,v}).catch(C=>{throw Kn(C)&&l.stack&&(C.stack=l.stack.replace(l.message,C.message)),C});return qa(f,P,Ba(t,this,!!$.length),l)}}});return d}),t.addProperty(e.Assertion.prototype,"rejects",function(){const l=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",l);const f=t.flag(this,"vitest-test"),h=t.flag(this,"object"),d=typeof h=="function"?h():h;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof(d==null?void 0:d.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof d}'.`);const m=new Proxy(this,{get:(p,b,T)=>{const $=Reflect.get(p,b,T);return typeof $!="function"?$ instanceof e.Assertion?m:$:(...P)=>{t.flag(this,"_name",b);const C=Promise.resolve(d).then(v=>{throw new n(`promise resolved "${t.inspect(v)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:v})},v=>(t.flag(this,"object",v),$.call(this,...P))).catch(v=>{throw Kn(v)&&l.stack&&(v.stack=l.stack.replace(l.message,v.message)),v});return qa(f,C,Ba(t,this,!!P.length),l)}}});return m})};function Po(e,t,n){return e.mock.calls.length&&(t+=$e.gray(`
154
+
155
+ Received:
156
+
157
+ ${e.mock.calls.map((r,i)=>{let s=$e.bold(` ${Sn(i+1)} ${e.getMockName()} call:
158
+
159
+ `);return n?s+=rr(n,r,{omitAnnotationLines:!0}):s+=at(r).split(`
160
+ `).map(o=>` ${o}`).join(`
161
+ `),s+=`
162
+ `,s}).join(`
163
+ `)}`)),t+=$e.gray(`
164
+
165
+ Number of calls: ${$e.bold(e.mock.calls.length)}
166
+ `),t}function Lv(e,t,n,r){return t.length&&(n+=$e.gray(`
167
+
168
+ Received:
169
+
170
+ ${t.map((i,s)=>{let o=$e.bold(` ${Sn(s+1)} ${e.getMockName()} call return:
171
+
172
+ `);return r?o+=rr(r,i.value,{omitAnnotationLines:!0}):o+=at(i).split(`
173
+ `).map(a=>` ${a}`).join(`
174
+ `),o+=`
175
+ `,o}).join(`
176
+ `)}`)),n+=$e.gray(`
177
+
178
+ Number of calls: ${$e.bold(e.mock.calls.length)}
179
+ `),n}function Bv(e,t){const n=e._obj,r=Ne.flag(e,"negate"),i=Ne.flag(e,"promise")||"",s=Ne.flag(e,"message"),o={...qx(),diff:rr,stringify:at,iterableEquality:st,subsetEquality:sr};let a=Ne.flag(e,"vitest-test");const c=(a==null?void 0:a.fullTestName)??"";return(a==null?void 0:a.type)!=="test"&&(a=void 0),{state:{...Tr(t),task:a,currentTestName:c,customTesters:Xu(),isNot:r,utils:o,promise:i,equals:ee,suppressedErrors:[],soft:Ne.flag(e,"soft"),poll:Ne.flag(e,"poll")},isNot:r,obj:n,customMessage:s}}class Dd extends Error{constructor(t,n,r){super(t),this.actual=n,this.expected=r}}function qv(e,t,n){return(r,i)=>{Object.entries(n).forEach(([s,o])=>{function a(...f){const{state:h,isNot:d,obj:m,customMessage:p}=Bv(this,t),b=o.call(h,m,...f);if(b&&typeof b=="object"&&typeof b.then=="function")return b.then(({pass:k,message:M,actual:J,expected:be})=>{if(k&&d||!k&&!d){const q=p??M();throw new Dd(q,J,be)}});const{pass:T,message:$,actual:P,expected:C}=b;if(T&&d||!T&&!d){const v=p??$();throw new Dd(v,P,C)}}const c=Vn(i,s,a);i.addMethod(globalThis[Xr].matchers,s,c),i.addMethod(e.Assertion.prototype,s,c);class u extends Bt{constructor(h=!1,...d){super(d,h)}asymmetricMatch(h){const{pass:d}=o.call(this.getMatcherContext(t),h,...this.sample);return this.inverse?!d:d}toString(){return`${this.inverse?"not.":""}${s}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(h=>at(h)).join(", ")}>`}}const l=(...f)=>new u(!1,...f);Object.defineProperty(t,s,{configurable:!0,enumerable:!0,value:l,writable:!0}),Object.defineProperty(t.not,s,{configurable:!0,enumerable:!0,value:(...f)=>new u(!0,...f),writable:!0}),Object.defineProperty(globalThis[Ju],s,{configurable:!0,enumerable:!0,value:l,writable:!0})})}}const Vv=(e,t)=>{t.addMethod(e.expect,"extend",(n,r)=>{mn(qv(e,n,r))})},el=/\r?\n/;function Uv(e,t,n){const r=e.split(el),i=/\r\n/.test(e)?2:1;let s=0;if(t>r.length)return e.length;for(let o=0;o<t-1;o++)s+=r[o].length+i;return s+n}function zv(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);const n=e.split(el),r=/\r\n/.test(e)?2:1;let i=0,s=0;for(;s<n.length;s++){const o=n[s].length+r;if(i+o>=t)break;i+=o}return s+1}async function Wv(e,t){const n=(await Promise.resolve().then(()=>require("./magic-string.es-B81Zo59j.cjs"))).default,r=new Set(t.map(i=>i.file));await Promise.all(Array.from(r).map(async i=>{const s=t.filter(u=>u.file===i),o=await e.readSnapshotFile(i);if(o==null)throw new Error(`cannot read ${i} when saving inline snapshot`);const a=new n(o);for(const u of s){const l=Uv(o,u.line,u.column);Zv(o,a,l,u.snapshot)}const c=a.toString();c!==o&&await e.saveSnapshotFile(i,c)}))}const Gv=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Kv(e,t,n,r){let i=e.slice(n);const s=Gv.exec(i);if(!s)return!1;i=i.slice(s.index);let o=P$(i);if(o===null)return!1;o+=n+s.index;const a=n+s.index+s[0].length,c=Hv(e,a),u=`, ${Gx(r,e,n)}`;return c===o?t.appendLeft(o,u):t.overwrite(c,o,u),!0}function Hv(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){const i=e[t++];i==="{"?n++:i==="}"&&r++}return t}function Gx(e,t,n){const r=zv(t,n),s=t.split(el)[r-1].match(/^\s*/)[0]||"",o=s.includes(" ")?`${s} `:`${s} `,a=e.trim().replace(/\\/g,"\\\\").split(/\n/g),c=a.length<=1,u="`";return c?`${u}${a.join(`
180
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${u}`:`${u}
181
+ ${a.map(l=>l?o+l:"").join(`
182
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
183
+ ${s}${u}`}const Ld="toMatchInlineSnapshot",Bd="toThrowErrorMatchingInlineSnapshot";function Yv(e,t){const n=t-Ld.length;if(e.slice(n,t)===Ld)return{code:e.slice(n),index:n};const r=t-Bd.length;return e.slice(t-r,t)===Bd?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}const Jv=/(?: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 Zv(e,t,n,r){const{code:i,index:s}=Yv(e,n),o=Jv.exec(i),a=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(i);if(!o||o.index!==(a==null?void 0:a.index))return Kv(e,t,s,r);const c=o[1],u=s+o.index+o[0].length,l=Gx(r,e,s);if(c===")")return t.appendRight(u-1,l),!0;const h=new RegExp(`(?:^|[^\\\\])${c}`).exec(e.slice(u));if(!h)return!1;const d=u+h.index+h[0].length;return t.overwrite(u-1,d,l),!0}const Xv=/^([^\S\n]*)\S/m;function qd(e){var i;const t=e.match(Xv);if(!t||!t[1])return e;const n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==""||((i=r.at(-1))==null?void 0:i.trim())!=="")return e;for(let s=1;s<r.length-1;s++)if(r[s]!==""){if(r[s].indexOf(n)!==0)return e;r[s]=r[s].substring(n.length)}return r[r.length-1]="",e=r.join(`
184
+ `),e}async function Qv(e,t){await Promise.all(t.map(async n=>{n.readonly||await e.saveSnapshotFile(n.file,n.snapshot)}))}function eM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _o={exports:{}},Vd;function tM(){if(Vd)return _o.exports;Vd=1;/*
185
+ * @version 1.4.0
186
+ * @date 2015-10-26
187
+ * @stability 3 - Stable
188
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
189
+ * @license MIT License
190
+ */var e=function(t,n){var r,i,s=1,o=0,a=0,c=String.alphabet;function u(l,f,h){if(h){for(r=f;h=u(l,r),h<76&&h>65;)++r;return+l.slice(f-1,r)}return h=c&&c.indexOf(l.charAt(f)),h>-1?h+76:(h=l.charCodeAt(f)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((t+="")!=(n+="")){for(;s;)if(i=u(t,o++),s=u(n,a++),i<76&&s<76&&i>66&&s>66&&(i=u(t,o,o),s=u(n,a,o=r),a=r),i!=s)return i<s?-1:1}return 0};try{_o.exports=e}catch{String.naturalCompare=e}return _o.exports}var nM=tM(),rM=eM(nM);const iM=(e,t,n,r,i,s)=>{const o=e.getMockName(),a=o==="vi.fn()"?"":` ${o}`;let c="";if(e.mock.calls.length!==0){const u=n+t.indent;c=` {${t.spacingOuter}${u}"calls": ${s(e.mock.calls,t,u,r,i)}${t.min?", ":","}${t.spacingOuter}${u}"results": ${s(e.mock.results,t,u,r,i)}${t.min?"":","}${t.spacingOuter}${n}}`}return`[MockFunction${a}]${c}`},sM=e=>e&&!!e._isMockFunction,oM={serialize:iM,test:sM},{DOMCollection:aM,DOMElement:cM,Immutable:uM,ReactElement:lM,ReactTestComponent:fM,AsymmetricMatcher:hM}=Ts;let Ua=[fM,lM,cM,aM,uM,hM,oM];function dM(e){Ua=[e].concat(Ua)}function pM(){return Ua}function mM(e,t){return`${e} ${t}`}function gM(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}function xM(e,t){const n=t.updateSnapshot,r=Object.create(null);let i="",s=!1;if(e!=null)try{i=e,new Function("exports",i)(r)}catch{}return(n==="all"||n==="new")&&i&&(s=!0),{data:r,dirty:s}}function bM(e){return e.includes(`
191
+ `)?`
192
+ ${e}
193
+ `:e}function Ud(e){return e.length>2&&e[0]===`
194
+ `&&e.endsWith(`
195
+ `)?e.slice(1,-1):e}const yM=!0,wM=!1;function SM(e,t=2,n={}){return tl(yt(e,{escapeRegex:yM,indent:t,plugins:pM(),printFunctionName:wM,...n}))}function EM(e){return e.replace(/`|\\|\$\{/g,"\\$&")}function zd(e){return`\`${EM(e)}\``}function tl(e){return e.replace(/\r\n|\r/g,`
196
+ `)}async function TM(e,t,n){const r=Object.keys(t).sort(rM).map(a=>`exports[${zd(a)}] = ${zd(tl(t[a]))};`),i=`${e.getHeader()}
197
+
198
+ ${r.join(`
199
+
200
+ `)}
201
+ `,s=await e.readSnapshotFile(n);s!=null&&s===i||await e.saveSnapshotFile(n,i)}function za(e=[],t=[]){const n=Array.from(e);return t.forEach((r,i)=>{const s=n[i];Array.isArray(e[i])?n[i]=za(e[i],r):Pt(s)?n[i]=nl(e[i],r):n[i]=r}),n}function nl(e,t){if(Pt(e)&&Pt(t)){const n={...e};return Object.keys(t).forEach(r=>{Pt(t[r])&&!t[r].$$typeof?r in e?n[r]=nl(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=za(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}else if(Array.isArray(e)&&Array.isArray(t))return za(e,t);return e}class Kx extends Map{constructor(t,n){super(n),this.defaultFn=t}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}}class mr extends Kx{constructor(){super(()=>0);L(this,"_total")}valueOf(){return this._total=this.total()}increment(n){typeof this._total<"u"&&this._total++,this.set(n,this.get(n)+1)}total(){if(typeof this._total<"u")return this._total;let n=0;for(const r of this.values())n+=r;return n}}function Wd(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}class rl{constructor(t,n,r,i){L(this,"_counters",new mr);L(this,"_dirty");L(this,"_updateSnapshot");L(this,"_snapshotData");L(this,"_initialData");L(this,"_inlineSnapshots");L(this,"_inlineSnapshotStacks");L(this,"_testIdToKeys",new Kx(()=>[]));L(this,"_rawSnapshots");L(this,"_uncheckedKeys");L(this,"_snapshotFormat");L(this,"_environment");L(this,"_fileExists");L(this,"expand");L(this,"_added",new mr);L(this,"_matched",new mr);L(this,"_unmatched",new mr);L(this,"_updated",new mr);this.testFilePath=t,this.snapshotPath=n;const{data:s,dirty:o}=xM(r,i);this._fileExists=r!=null,this._initialData={...s},this._snapshotData={...s},this._dirty=o,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=i.expand||!1,this._updateSnapshot=i.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...i.snapshotFormat},this._environment=i.snapshotEnvironment}get added(){return this._added}set added(t){this._added._total=t}get matched(){return this._matched}set matched(t){this._matched._total=t}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t}get updated(){return this._updated}set updated(t){this._updated._total=t}static async create(t,n){const r=await n.snapshotEnvironment.resolvePath(t),i=await n.snapshotEnvironment.readSnapshotFile(r);return new rl(t,r,i,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(t.length))&&this._uncheckedKeys.delete(n)})}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==t);for(const n of this._testIdToKeys.get(t)){const r=gM(n),i=this._counters.get(r);i>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(r,i-1))}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t)}_inferInlineSnapshotStack(t){const n=t.findIndex(i=>i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return t[n+3];for(let i=0;i<t.length;i++){const s=t[i].method.match(/__INLINE_SNAPSHOT_OFFSET_(\d+)__/);if(s)return t[i+Number(s[1])]??null}const r=t.findIndex(i=>i.method.includes("__INLINE_SNAPSHOT__"));return r!==-1?t[r+2]:null}_addSnapshot(t,n,r){this._dirty=!0,r.stack?this._inlineSnapshots.push({snapshot:n,testId:r.testId,...r.stack}):r.rawSnapshot?this._rawSnapshots.push({...r.rawSnapshot,snapshot:n}):this._snapshotData[t]=n}async save(){const t=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,r=this._rawSnapshots.length,i=!t&&!n&&!r,s={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!i?(t&&(await TM(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),n&&await Wv(this._environment,this._inlineSnapshots),r&&await Qv(this._environment,this._rawSnapshots),s.saved=!0):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),s.deleted=!0),s}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(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear())}match({testId:t,testName:n,received:r,key:i,inlineSnapshot:s,isInline:o,error:a,rawSnapshot:c}){var T,$;this._counters.increment(n);const u=this._counters.get(n);i||(i=mM(n,u)),this._testIdToKeys.get(t).push(i),o&&this._snapshotData[i]!==void 0||this._uncheckedKeys.delete(i);let l=c&&typeof r=="string"?r:SM(r,void 0,this._snapshotFormat);c||(l=bM(l)),c&&c.content&&c.content.match(/\r\n/)&&!l.match(/\r\n/)&&(c.content=tl(c.content));const f=o?s:c?c.content:this._snapshotData[i],h=c?f:f==null?void 0:f.trim(),d=h===(c?l:l.trim()),m=f!==void 0,p=o||this._fileExists||c&&c.content!=null;d&&!o&&!c&&(this._snapshotData[i]=l);let b;if(o){const P=e2(a||new Error("snapshot"),{ignoreStackEntries:[]}),C=this._inferInlineSnapshotStack(P);if(!C)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
202
+ ${JSON.stringify(P)}`);b=(($=(T=this.environment).processStackTrace)==null?void 0:$.call(T,C))||C,b.column--;const v=this._inlineSnapshotStacks.filter(k=>Wd(k,b));if(v.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(M=>!Wd(M,b));const k=v.find(M=>M.snapshot!==l);if(k)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:l,expected:k.snapshot})}this._inlineSnapshotStacks.push({...b,testId:t,snapshot:l})}return m&&this._updateSnapshot==="all"||(!m||!p)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?d?this.matched.increment(t):(m?this.updated.increment(t):this.added.increment(t),this._addSnapshot(i,l,{stack:b,testId:t,rawSnapshot:c})):(this._addSnapshot(i,l,{stack:b,testId:t,rawSnapshot:c}),this.added.increment(t)),{actual:"",count:u,expected:"",key:i,pass:!0}):d?(this.matched.increment(t),{actual:"",count:u,expected:"",key:i,pass:!0}):(this.unmatched.increment(t),{actual:c?l:Ud(l),count:u,expected:h!==void 0?c?h:Ud(h):void 0,key:i,pass:!1})}async pack(){const t={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),r=this.getUncheckedKeys();n&&this.removeUncheckedKeys();const i=await this.save();return t.fileDeleted=i.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=i.deleted?0:n,t.uncheckedKeys=Array.from(r),t}}function Gd(e,t,n,r){const i=new 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}class AM{constructor(t={}){L(this,"snapshotStateMap",new Map);this.options=t}async setup(t,n){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await rl.create(t,n))}async finish(t){const r=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),r}skipTest(t,n){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(n)}clearTest(t,n){this.getSnapshotState(t).clearTest(n)}getSnapshotState(t){const n=this.snapshotStateMap.get(t);if(!n)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(t){var P,C;const{filepath:n,name:r,testId:i=r,message:s,isInline:o=!1,properties:a,inlineSnapshot:c,error:u,errorMessage:l,rawSnapshot:f}=t;let{received:h}=t;if(!n)throw new Error("Snapshot cannot be used outside of test");const d=this.getSnapshotState(n);if(typeof a=="object"){if(typeof h!="object"||!h)throw new Error("Received value must be an object when the matcher has properties");try{if(((C=(P=this.options).isEqual)==null?void 0:C.call(P,h,a))??!1)h=nl(h,a);else throw Gd("Snapshot properties mismatched",d.expand,h,a)}catch(v){throw v.message=l||"Snapshot mismatched",v}}const m=[r,...s?[s]:[]].join(" > "),{actual:p,expected:b,key:T,pass:$}=d.match({testId:i,testName:m,received:h,isInline:o,error:u,inlineSnapshot:c,rawSnapshot:f});if(!$)throw Gd(`Snapshot \`${T||"unknown"}\` mismatched`,d.expand,f?p:p==null?void 0:p.trim(),f?b:b==null?void 0:b.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:n,rawSnapshot:r}=t;if(r.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");const i=this.getSnapshotState(n);t.filepath||(t.filepath=n),r.file=await i.environment.resolveRawPath(n,r.file),r.content=await i.environment.readSnapshotFile(r.file)??void 0}return this.assert(t)}clear(){this.snapshotStateMap.clear()}}var Wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const IM=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function $M(e,t){throw e.cause==null&&(e.cause=new Error("Matcher did not succeed in time.")),Hx(e,t)}function CM(e){return function(n,r={}){var f;const i=((f=Wg().config.expect)==null?void 0:f.poll)??{},{interval:s=i.interval??50,timeout:o=i.timeout??1e3,message:a}=r,c=e(null,a).withContext({poll:!0});n=n.bind(c);const u=Ne.flag(c,"vitest-test");if(!u)throw new Error("expect.poll() must be called inside a test");const l=new Proxy(c,{get(h,d,m){const p=Reflect.get(h,d,m);if(typeof p!="function")return p instanceof x?l:p;if(d==="assert")return p;if(typeof d=="string"&&IM.includes(d))throw new SyntaxError(`expect.poll() is not supported in combination with .${d}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...b){const T=new Error("STACK_TRACE_ERROR"),$=async()=>{const{setTimeout:v,clearTimeout:k}=su();let M="fn",J=!1;const be=v(()=>{J=!0},o);Ne.flag(c,"_name",d);const q=Ne.flag(c,"_poll.onSettled");try{for(;;){const ue=J;ue&&Ne.flag(c,"_isLastPollAttempt",!0);try{M="fn";const pe=await n();Ne.flag(c,"object",pe),M="assertion";const Ge=await p.call(c,...b);return await(q==null?void 0:q({assertion:c,status:"pass"})),Ge}catch(pe){(ue||M==="assertion"&&Ne.flag(c,"_poll.assert_once"))&&(await(q==null?void 0:q({assertion:c,status:"fail"})),$M(pe,T)),await SC(s,v)}}}finally{k(be)}};let P=!1;u.onFinished??(u.onFinished=[]),u.onFinished.push(()=>{if(!P){const v=Ne.flag(c,"negate")?"not.":"",k=`expect.${Ne.flag(c,"_poll.element")?"element(locator)":"poll(assertion)"}.${v}${String(d)}()`;throw Hx(new Error(`${k} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
203
+
204
+ await ${k}
205
+ `),T)}});let C;return{then(v,k){return P=!0,(C||(C=$())).then(v,k)},catch(v){return P=!0,(C||(C=$())).catch(v)},finally(v){return P=!0,(C||(C=$())).finally(v)},[Symbol.toStringTag]:"Promise"}}}});return l}}function Hx(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}let jo;function gr(){return jo||(jo=new AM({isEqual:(e,t)=>ee(e,t,[st,sr])})),jo}function Kd(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e()}catch(n){return n}throw new Error("snapshot function didn't throw")}function xr(e){return{filepath:e.file.filepath,name:s2(e).slice(1).join(" > "),testId:e.id}}const vM=(e,t)=>{function n(r,i){const s=t.flag(i,"vitest-test");if(!s)throw new Error(`'${r}' cannot be used without test context`);return s}for(const r of["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,Vn(t,r,function(i,s){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);const o=t.flag(this,"object"),a=n(r,this);typeof i=="string"&&typeof s>"u"&&(s=i,i=void 0);const c=t.flag(this,"message");gr().assert({received:o,message:s,isInline:!1,properties:i,errorMessage:c,...xr(a)})}));t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,i){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const s=new Error("resolves"),o=t.flag(this,"object"),a=n("toMatchFileSnapshot",this),c=t.flag(this,"message");return qa(a,gr().assertRaw({received:o,message:i,isInline:!1,rawSnapshot:{file:r},errorMessage:c,...xr(a)}),Ba(t,this,!0),s,t.flag(this,"soft"))}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",Vn(t,"toMatchInlineSnapshot",function(i,s,o){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const a=n("toMatchInlineSnapshot",this),c=t.flag(this,"object"),u=t.flag(this,"error");typeof i=="string"&&(o=s,s=i,i=void 0),s&&(s=qd(s));const l=t.flag(this,"message");gr().assert({received:c,message:o,isInline:!0,properties:i,inlineSnapshot:s,error:u,errorMessage:l,...xr(a)})})),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",Vn(t,"toThrowErrorMatchingSnapshot",function(r,i){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const s=t.flag(this,"object"),o=n("toThrowErrorMatchingSnapshot",this),a=t.flag(this,"promise"),c=t.flag(this,"message");gr().assert({received:Kd(s,a),message:i,errorMessage:c,...xr(o)})})),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",Vn(t,"toThrowErrorMatchingInlineSnapshot",function(i,s){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const o=n("toThrowErrorMatchingInlineSnapshot",this),a=t.flag(this,"object"),c=t.flag(this,"error"),u=t.flag(this,"promise"),l=t.flag(this,"message");i&&(i=qd(i)),gr().assert({received:Kd(a,u),message:s,inlineSnapshot:i,isInline:!0,error:c,errorMessage:l,...xr(o)})})),t.addMethod(e.expect,"addSnapshotSerializer",dM)};mn(Vv);mn(Dv);mn(uv);mn(vM);mn(Rv);function MM(e){const t=((s,o)=>{const{assertionCalls:a}=Tr(t);return ko({assertionCalls:a+1},t),Tn(s,o)});Object.assign(t,Tn),Object.assign(t,globalThis[Ju]),t.getState=()=>Tr(t),t.setState=s=>ko(s,t);const n=Tr(globalThis[Ls])||{};ko({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return Wg().filepath},currentTestName:n.currentTestName},t),t.assert=g,t.extend=s=>Tn.extend(t,s),t.addEqualityTesters=s=>bv(s),t.soft=(...s)=>t(...s).withContext({soft:!0}),t.poll=CM(t),t.unreachable=s=>{g.fail(`expected${s?` "${s}" `:" "}not to be reached`)};function r(s){const o=()=>new Error(`expected number of assertions to be ${s}, but got ${t.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(o(),r),t.setState({expectedAssertionsNumber:s,expectedAssertionsNumberErrorGen:o})}function i(){const s=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(s,i),t.setState({isExpectingAssertions:!0,isExpectingAssertionsError:s})}return Ne.addMethod(t,"assertions",r),Ne.addMethod(t,"hasAssertions",i),t.extend(lv),t}const Lt=MM();Object.defineProperty(globalThis,Ls,{value:Lt,writable:!0,configurable:!0});var Dn={},Fo,Hd;function OM(){if(Hd)return Fo;Hd=1;var e;return typeof Wa<"u"?e=Wa:typeof window<"u"?e=window:e=self,Fo=e,Fo}var Ro,Yd;function NM(){if(Yd)return Ro;Yd=1;let e;try{({}).__proto__,e=!1}catch{e=!0}return Ro=e,Ro}var Do,Jd;function or(){if(Jd)return Do;Jd=1;var e=Function.call,t=NM(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),Do=function(i){return Object.getOwnPropertyNames(i).reduce(function(s,o){return n.includes(o)||typeof i[o]!="function"||(s[o]=e.bind(i[o])),s},Object.create(null))},Do}var Lo,Zd;function es(){if(Zd)return Lo;Zd=1;var e=or();return Lo=e(Array.prototype),Lo}var Bo,Xd;function kM(){if(Xd)return Bo;Xd=1;var e=es().every;function t(i,s){return i[s.id]===void 0&&(i[s.id]=0),i[s.id]<s.callCount}function n(i,s,o,a){var c=!0;return o!==a.length-1&&(c=s.calledBefore(a[o+1])),t(i,s)&&c?(i[s.id]+=1,!0):!1}function r(i){var s={},o=arguments.length>1?arguments:i;return e(o,n.bind(null,s))}return Bo=r,Bo}var qo,Qd;function PM(){if(Qd)return qo;Qd=1;function e(t){return t.constructor&&t.constructor.name||null}return qo=e,qo}var Vo={},ep;function _M(){return ep||(ep=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(t,n){return`${t}.${n} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t)}})(Vo)),Vo}var Uo,tp;function jM(){return tp||(tp=1,Uo=function(t,n){var r=!0;try{t.forEach(function(){if(!n.apply(this,arguments))throw new Error})}catch{r=!1}return r}),Uo}var zo,np;function FM(){return np||(np=1,zo=function(t){if(!t)return"";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return""}}),zo}var Wo,rp;function RM(){if(rp)return Wo;rp=1;var e=es().sort,t=es().slice;function n(i,s){var o=i.getCall(0),a=s.getCall(0),c=o&&o.callId||-1,u=a&&a.callId||-1;return c<u?-1:1}function r(i){return e(t(i),n)}return Wo=r,Wo}var Go,ip;function DM(){if(ip)return Go;ip=1;var e=or();return Go=e(Function.prototype),Go}var Ko,sp;function LM(){if(sp)return Ko;sp=1;var e=or();return Ko=e(Map.prototype),Ko}var Ho,op;function BM(){if(op)return Ho;op=1;var e=or();return Ho=e(Object.prototype),Ho}var Yo,ap;function qM(){if(ap)return Yo;ap=1;var e=or();return Yo=e(Set.prototype),Yo}var Jo,cp;function VM(){if(cp)return Jo;cp=1;var e=or();return Jo=e(String.prototype),Jo}var Zo,up;function UM(){return up||(up=1,Zo={array:es(),function:DM(),map:LM(),object:BM(),set:qM(),string:VM()}),Zo}var Ni={exports:{}},zM=Ni.exports,lp;function WM(){return lp||(lp=1,(function(e,t){(function(n,r){e.exports=r()})(zM,(function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Wa,i=typeof Symbol<"u",s=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",c=typeof WeakSet<"u",u=typeof DataView<"u",l=i&&typeof Symbol.iterator<"u",f=i&&typeof Symbol.toStringTag<"u",h=o&&typeof Set.prototype.entries=="function",d=s&&typeof Map.prototype.entries=="function",m=h&&Object.getPrototypeOf(new Set().entries()),p=d&&Object.getPrototypeOf(new Map().entries()),b=l&&typeof Array.prototype[Symbol.iterator]=="function",T=b&&Object.getPrototypeOf([][Symbol.iterator]()),$=l&&typeof String.prototype[Symbol.iterator]=="function",P=$&&Object.getPrototypeOf(""[Symbol.iterator]()),C=8,v=-1;function k(M){var J=typeof M;if(J!=="object")return J;if(M===null)return"null";if(M===r)return"global";if(Array.isArray(M)&&(f===!1||!(Symbol.toStringTag in M)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&M===window.location)return"Location";if(typeof window.document=="object"&&M===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&M===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&M===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&M instanceof window.HTMLElement){if(M.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(M.tagName==="TD")return"HTMLTableDataCellElement";if(M.tagName==="TH")return"HTMLTableHeaderCellElement"}}var be=f&&M[Symbol.toStringTag];if(typeof be=="string")return be;var q=Object.getPrototypeOf(M);return q===RegExp.prototype?"RegExp":q===Date.prototype?"Date":n&&q===Promise.prototype?"Promise":o&&q===Set.prototype?"Set":s&&q===Map.prototype?"Map":c&&q===WeakSet.prototype?"WeakSet":a&&q===WeakMap.prototype?"WeakMap":u&&q===DataView.prototype?"DataView":s&&q===p?"Map Iterator":o&&q===m?"Set Iterator":b&&q===T?"Array Iterator":$&&q===P?"String Iterator":q===null?"Object":Object.prototype.toString.call(M).slice(C,v)}return k}))})(Ni)),Ni.exports}var Xo,fp;function GM(){if(fp)return Xo;fp=1;var e=WM();return Xo=function(n){return e(n).toLowerCase()},Xo}var Qo,hp;function KM(){if(hp)return Qo;hp=1;function e(t){return t&&t.toString?t.toString():String(t)}return Qo=e,Qo}var ea,dp;function HM(){return dp||(dp=1,ea={global:OM(),calledInOrder:kM(),className:PM(),deprecated:_M(),every:jM(),functionName:FM(),orderByFirstCall:RM(),prototypes:UM(),typeOf:GM(),valueToString:KM()}),ea}var pp;function YM(){if(pp)return Dn;pp=1;const e=HM().global;let t,n;if(typeof __vitest_required__<"u"){try{t=__vitest_required__.timers}catch{}try{n=__vitest_required__.timersPromises}catch{}}function r(s){const o=Math.pow(2,31)-1,a=1e12,c=function(){},u=function(){return[]},l={};let f,h=!1;s.setTimeout&&(l.setTimeout=!0,f=s.setTimeout(c,0),h=typeof f=="object"),l.clearTimeout=!!s.clearTimeout,l.setInterval=!!s.setInterval,l.clearInterval=!!s.clearInterval,l.hrtime=s.process&&typeof s.process.hrtime=="function",l.hrtimeBigint=l.hrtime&&typeof s.process.hrtime.bigint=="function",l.nextTick=s.process&&typeof s.process.nextTick=="function";const d=s.process&&s.__vitest_required__&&s.__vitest_required__.util.promisify;l.performance=s.performance&&typeof s.performance.now=="function";const m=s.Performance&&(typeof s.Performance).match(/^(function|object)$/),p=s.performance&&s.performance.constructor&&s.performance.constructor.prototype;l.queueMicrotask=s.hasOwnProperty("queueMicrotask"),l.requestAnimationFrame=s.requestAnimationFrame&&typeof s.requestAnimationFrame=="function",l.cancelAnimationFrame=s.cancelAnimationFrame&&typeof s.cancelAnimationFrame=="function",l.requestIdleCallback=s.requestIdleCallback&&typeof s.requestIdleCallback=="function",l.cancelIdleCallbackPresent=s.cancelIdleCallback&&typeof s.cancelIdleCallback=="function",l.setImmediate=s.setImmediate&&typeof s.setImmediate=="function",l.clearImmediate=s.clearImmediate&&typeof s.clearImmediate=="function",l.Intl=s.Intl&&typeof s.Intl=="object",s.clearTimeout&&s.clearTimeout(f);const b=s.Date,T=l.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(s.Intl)):void 0;let $=a;if(b===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");l.Date=!0;class P{constructor(A,O,j,y){this.name=A,this.entryType=O,this.startTime=j,this.duration=y}toJSON(){return JSON.stringify({...this})}}function C(S){return Number.isFinite?Number.isFinite(S):isFinite(S)}let v=!1;function k(S,A){S.loopLimit&&A===S.loopLimit-1&&(v=!0)}function M(){v=!1}function J(S){if(!S)return 0;const A=S.split(":"),O=A.length;let j=O,y=0,U;if(O>3||!/^(\d\d:){0,2}\d\d?$/.test(S))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;j--;){if(U=parseInt(A[j],10),U>=60)throw new Error(`Invalid time ${S}`);y+=U*Math.pow(60,O-j-1)}return y*1e3}function be(S){const O=S*1e6%1e6,j=O<0?O+1e6:O;return Math.floor(j)}function q(S){if(!S)return 0;if(typeof S.getTime=="function")return S.getTime();if(typeof S=="number")return S;throw new TypeError("now should be milliseconds since UNIX epoch")}function ue(S,A,O){return O&&O.callAt>=S&&O.callAt<=A}function pe(S,A){const O=new Error(`Aborting after running ${S.loopLimit} timers, assuming an infinite loop!`);if(!A.error)return O;const j=/target\.*[<|(|[].*?[>|\]|)]\s*/;let y=new RegExp(String(Object.keys(S).join("|")));h&&(y=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(S).join("|")})\\s+`));let U=-1;A.error.stack.split(`
206
+ `).some(function(se,fe){return se.match(j)?(U=fe,!0):se.match(y)?(U=fe,!1):U>=0});const W=`${O}
207
+ ${A.type||"Microtask"} - ${A.func.name||"anonymous"}
208
+ ${A.error.stack.split(`
209
+ `).slice(U+1).join(`
210
+ `)}`;try{Object.defineProperty(O,"stack",{value:W})}catch{}return O}function Ge(){class S extends b{constructor(j,y,U,W,se,fe,ct){arguments.length===0?super(S.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:b,enumerable:!1})}static[Symbol.hasInstance](j){return j instanceof b}}return S.isFake=!0,b.now&&(S.now=function(){return S.clock.now}),b.toSource&&(S.toSource=function(){return b.toSource()}),S.toString=function(){return b.toString()},new Proxy(S,{apply(){if(this instanceof S)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new b(S.clock.now).toString()}})}function Re(){const S={};return Object.getOwnPropertyNames(T).forEach(A=>S[A]=T[A]),S.DateTimeFormat=function(...A){const O=new T.DateTimeFormat(...A),j={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach(y=>{j[y]=O[y].bind(O)}),["format","formatToParts"].forEach(y=>{j[y]=function(U){return O[y](U||S.clock.now)}}),j},S.DateTimeFormat.prototype=Object.create(T.DateTimeFormat.prototype),S.DateTimeFormat.supportedLocalesOf=T.DateTimeFormat.supportedLocalesOf,S}function me(S,A){S.jobs||(S.jobs=[]),S.jobs.push(A)}function Q(S){if(S.jobs){for(let A=0;A<S.jobs.length;A++){const O=S.jobs[A];if(O.func.apply(null,O.args),k(S,A),S.loopLimit&&A>S.loopLimit)throw pe(S,O)}M(),S.jobs=[]}}function le(S,A){if(A.func===void 0)throw new Error("Callback must be provided to timer calls");if(h&&typeof A.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${A.func} of type ${typeof A.func}`);if(v&&(A.error=new Error),A.type=A.immediate?"Immediate":"Timeout",A.hasOwnProperty("delay")&&(typeof A.delay!="number"&&(A.delay=parseInt(A.delay,10)),C(A.delay)||(A.delay=0),A.delay=A.delay>o?1:A.delay,A.delay=Math.max(0,A.delay)),A.hasOwnProperty("interval")&&(A.type="Interval",A.interval=A.interval>o?1:A.interval),A.hasOwnProperty("animation")&&(A.type="AnimationFrame",A.animation=!0),A.hasOwnProperty("idleCallback")&&(A.type="IdleCallback",A.idleCallback=!0),S.timers||(S.timers={}),A.id=$++,A.createdAt=S.now,A.callAt=S.now+(parseInt(A.delay)||(S.duringTick?1:0)),S.timers[A.id]=A,h){const O={refed:!0,ref:function(){return this.refed=!0,O},unref:function(){return this.refed=!1,O},hasRef:function(){return this.refed},refresh:function(){return A.callAt=S.now+(parseInt(A.delay)||(S.duringTick?1:0)),S.timers[A.id]=A,O},[Symbol.toPrimitive]:function(){return A.id}};return O}return A.id}function Ke(S,A){if(S.callAt<A.callAt)return-1;if(S.callAt>A.callAt)return 1;if(S.immediate&&!A.immediate)return-1;if(!S.immediate&&A.immediate)return 1;if(S.createdAt<A.createdAt)return-1;if(S.createdAt>A.createdAt)return 1;if(S.id<A.id)return-1;if(S.id>A.id)return 1}function Ae(S,A,O){const j=S.timers;let y=null,U,W;for(U in j)j.hasOwnProperty(U)&&(W=ue(A,O,j[U]),W&&(!y||Ke(y,j[U])===1)&&(y=j[U]));return y}function ie(S){const A=S.timers;let O=null,j;for(j in A)A.hasOwnProperty(j)&&(!O||Ke(O,A[j])===1)&&(O=A[j]);return O}function ye(S){const A=S.timers;let O=null,j;for(j in A)A.hasOwnProperty(j)&&(!O||Ke(O,A[j])===-1)&&(O=A[j]);return O}function _e(S,A){if(typeof A.interval=="number"?S.timers[A.id].callAt+=A.interval:delete S.timers[A.id],typeof A.func=="function")A.func.apply(null,A.args);else{const O=eval;(function(){O(A.func)})()}}function qe(S){return S==="IdleCallback"||S==="AnimationFrame"?`cancel${S}`:`clear${S}`}function Tt(S){return S==="IdleCallback"||S==="AnimationFrame"?`request${S}`:`set${S}`}function Xe(){let S=0;return function(A){!S++&&console.warn(A)}}const He=Xe();function nt(S,A,O){if(!A)return;S.timers||(S.timers={});const j=Number(A);if(Number.isNaN(j)||j<a){const y=qe(O);if(S.shouldClearNativeTimers===!0){const U=S[`_${y}`];return typeof U=="function"?U(A):void 0}He(`FakeTimers: ${y} was invoked to clear a native timer instead of one created by this library.
211
+ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(S.timers.hasOwnProperty(j)){const y=S.timers[j];if(y.type===O||y.type==="Timeout"&&O==="Interval"||y.type==="Interval"&&O==="Timeout")delete S.timers[j];else{const U=qe(O),W=Tt(y.type);throw new Error(`Cannot clear timer: timer created with ${W}() but cleared with ${U}()`)}}}function Pn(S){let A,O,j;const y="_hrtime",U="_nextTick";for(O=0,j=S.methods.length;O<j;O++){if(A=S.methods[O],A==="hrtime"&&s.process)s.process.hrtime=S[y];else if(A==="nextTick"&&s.process)s.process.nextTick=S[U];else if(A==="performance"){const W=Object.getOwnPropertyDescriptor(S,`_${A}`);W&&W.get&&!W.set?Object.defineProperty(s,A,W):W.configurable&&(s[A]=S[`_${A}`])}else if(s[A]&&s[A].hadOwnProperty)s[A]=S[`_${A}`];else try{delete s[A]}catch{}if(S.timersModuleMethods!==void 0)for(let W=0;W<S.timersModuleMethods.length;W++){const se=S.timersModuleMethods[W];t[se.methodName]=se.original}if(S.timersPromisesModuleMethods!==void 0)for(let W=0;W<S.timersPromisesModuleMethods.length;W++){const se=S.timersPromisesModuleMethods[W];n[se.methodName]=se.original}}S.setTickMode("manual"),S.methods=[];for(const[W,se]of S.abortListenerMap.entries())se.removeEventListener("abort",W),S.abortListenerMap.delete(W);return S.timers?Object.keys(S.timers).map(function(se){return S.timers[se]}):[]}function At(S,A,O){if(O[A].hadOwnProperty=Object.prototype.hasOwnProperty.call(S,A),O[`_${A}`]=S[A],A==="Date")S[A]=O[A];else if(A==="Intl")S[A]=O[A];else if(A==="performance"){const j=Object.getOwnPropertyDescriptor(S,A);if(j&&j.get&&!j.set){Object.defineProperty(O,`_${A}`,j);const y=Object.getOwnPropertyDescriptor(O,A);Object.defineProperty(S,A,y)}else S[A]=O[A]}else S[A]=function(){return O[A].apply(O,arguments)},Object.defineProperties(S[A],Object.getOwnPropertyDescriptors(O[A]));S[A].clock=O}function ar(S,A){S.tick(A)}const Ye={setTimeout:s.setTimeout,clearTimeout:s.clearTimeout,setInterval:s.setInterval,clearInterval:s.clearInterval,Date:s.Date};l.setImmediate&&(Ye.setImmediate=s.setImmediate),l.clearImmediate&&(Ye.clearImmediate=s.clearImmediate),l.hrtime&&(Ye.hrtime=s.process.hrtime),l.nextTick&&(Ye.nextTick=s.process.nextTick),l.performance&&(Ye.performance=s.performance),l.requestAnimationFrame&&(Ye.requestAnimationFrame=s.requestAnimationFrame),l.queueMicrotask&&(Ye.queueMicrotask=s.queueMicrotask),l.cancelAnimationFrame&&(Ye.cancelAnimationFrame=s.cancelAnimationFrame),l.requestIdleCallback&&(Ye.requestIdleCallback=s.requestIdleCallback),l.cancelIdleCallback&&(Ye.cancelIdleCallback=s.cancelIdleCallback),l.Intl&&(Ye.Intl=T);const It=s.setImmediate||s.setTimeout,ib=s.clearInterval,sb=s.setInterval;function ol(S,A){S=Math.floor(q(S)),A=A||1e3;let O=0;const j=[0,0],y={now:S,Date:Ge(),loopLimit:A,tickMode:{mode:"manual",counter:0,delta:void 0}};y.Date.clock=y;function U(){return 16-(y.now-S)%16}function W(_){const N=y.now-j[0]-S,R=Math.floor(N/1e3),D=(N-R*1e3)*1e6+O-j[1];if(Array.isArray(_)){if(_[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const ae=_[0];let Se=D-_[1],rt=R-ae;return Se<0&&(Se+=1e9,rt-=1),[rt,Se]}return[R,D]}function se(){const _=W();return _[0]*1e3+_[1]/1e6}l.hrtimeBigint&&(W.bigint=function(){const _=W();return BigInt(_[0])*BigInt(1e9)+BigInt(_[1])}),l.Intl&&(y.Intl=Re(),y.Intl.clock=y),y.setTickMode=function(_){const{mode:N,delta:R}=_,{mode:D,delta:ae}=y.tickMode;N===D&&R===ae||(D==="interval"&&ib(y.attachedInterval),y.tickMode={counter:y.tickMode.counter+1,mode:N,delta:R},N==="nextAsync"?fe():N==="interval"&&ob(y,R||20))};async function fe(){async function _(){const R=new MessageChannel;await new Promise(D=>{R.port1.onmessage=()=>{D(),R.port1.close()},R.port2.postMessage(void 0)}),R.port1.close(),R.port2.close(),await new Promise(D=>{It(D)})}const{counter:N}=y.tickMode;for(;y.tickMode.counter===N;){if(await _(),y.tickMode.counter!==N)return;y.next()}}function ct(_){return y.tickMode.mode!=="nextAsync"?_:(y.setTickMode({mode:"manual"}),_.finally(()=>{y.setTickMode({mode:"nextAsync"})}))}y.requestIdleCallback=function(N,R){let D=0;y.countTimers()>0&&(D=50);const ae=le(y,{func:N,args:Array.prototype.slice.call(arguments,2),delay:typeof R>"u"?D:Math.min(R,D),idleCallback:!0});return Number(ae)},y.cancelIdleCallback=function(N){return nt(y,N,"IdleCallback")},y.setTimeout=function(N,R){return le(y,{func:N,args:Array.prototype.slice.call(arguments,2),delay:R})},typeof s.Promise<"u"&&d&&(y.setTimeout[d.custom]=function(N,R){return new s.Promise(function(ae){le(y,{func:ae,args:[R],delay:N})})}),y.clearTimeout=function(N){return nt(y,N,"Timeout")},y.nextTick=function(N){return me(y,{func:N,args:Array.prototype.slice.call(arguments,1),error:v?new Error:null})},y.queueMicrotask=function(N){return y.nextTick(N)},y.setInterval=function(N,R){return R=parseInt(R,10),le(y,{func:N,args:Array.prototype.slice.call(arguments,2),delay:R,interval:R})},y.clearInterval=function(N){return nt(y,N,"Interval")},l.setImmediate&&(y.setImmediate=function(N){return le(y,{func:N,args:Array.prototype.slice.call(arguments,1),immediate:!0})},typeof s.Promise<"u"&&d&&(y.setImmediate[d.custom]=function(N){return new s.Promise(function(D){le(y,{func:D,args:[N],immediate:!0})})}),y.clearImmediate=function(N){return nt(y,N,"Immediate")}),y.countTimers=function(){return Object.keys(y.timers||{}).length+(y.jobs||[]).length},y.requestAnimationFrame=function(N){const R=le(y,{func:N,delay:U(),get args(){return[se()]},animation:!0});return Number(R)},y.cancelAnimationFrame=function(N){return nt(y,N,"AnimationFrame")},y.runMicrotasks=function(){Q(y)};function Me(_,N,R,D){const ae=typeof _=="number"?_:J(_),Se=Math.floor(ae),rt=be(ae);let $t=O+rt,Ve=y.now+Se;if(ae<0)throw new TypeError("Negative ticks are not supported");$t>=1e6&&(Ve+=1,$t-=1e6),O=$t;let Ct=y.now,cr=y.now,qt,_n,ut,al,Us,zs;y.duringTick=!0,ut=y.now,Q(y),ut!==y.now&&(Ct+=y.now-ut,Ve+=y.now-ut);function cl(){for(qt=Ae(y,Ct,Ve);qt&&Ct<=Ve;){if(y.timers[qt.id]){Ct=qt.callAt,y.now=qt.callAt,ut=y.now;try{Q(y),_e(y,qt)}catch(ur){_n=_n||ur}if(N){It(al);return}Us()}zs()}if(ut=y.now,Q(y),ut!==y.now&&(Ct+=y.now-ut,Ve+=y.now-ut),y.duringTick=!1,qt=Ae(y,Ct,Ve),qt)try{y.tick(Ve-y.now)}catch(ur){_n=_n||ur}else y.now=Ve,O=$t;if(_n)throw _n;if(N)R(y.now);else return y.now}return al=N&&function(){try{Us(),zs(),cl()}catch(ur){D(ur)}},Us=function(){ut!==y.now&&(Ct+=y.now-ut,Ve+=y.now-ut,cr+=y.now-ut)},zs=function(){qt=Ae(y,cr,Ve),cr=Ct},cl()}return y.tick=function(N){return Me(N,!1)},typeof s.Promise<"u"&&(y.tickAsync=function(N){return ct(new s.Promise(function(R,D){It(function(){try{Me(N,!0,R,D)}catch(ae){D(ae)}})}))}),y.next=function(){Q(y);const N=ie(y);if(!N)return y.now;y.duringTick=!0;try{return y.now=N.callAt,_e(y,N),Q(y),y.now}finally{y.duringTick=!1}},typeof s.Promise<"u"&&(y.nextAsync=function(){return ct(new s.Promise(function(N,R){It(function(){try{const D=ie(y);if(!D){N(y.now);return}let ae;y.duringTick=!0,y.now=D.callAt;try{_e(y,D)}catch(Se){ae=Se}y.duringTick=!1,It(function(){ae?R(ae):N(y.now)})}catch(D){R(D)}})}))}),y.runAll=function(){let N,R;for(Q(y),R=0;R<y.loopLimit;R++){if(!y.timers||(N=Object.keys(y.timers).length,N===0))return M(),y.now;y.next(),k(y,R)}const D=ie(y);throw pe(y,D)},y.runToFrame=function(){return y.tick(U())},typeof s.Promise<"u"&&(y.runAllAsync=function(){return ct(new s.Promise(function(N,R){let D=0;function ae(){It(function(){try{Q(y);let Se;if(D<y.loopLimit){if(!y.timers){M(),N(y.now);return}if(Se=Object.keys(y.timers).length,Se===0){M(),N(y.now);return}y.next(),D++,ae(),k(y,D);return}const rt=ie(y);R(pe(y,rt))}catch(Se){R(Se)}})}ae()}))}),y.runToLast=function(){const N=ye(y);return N?y.tick(N.callAt-y.now):(Q(y),y.now)},typeof s.Promise<"u"&&(y.runToLastAsync=function(){return ct(new s.Promise(function(N,R){It(function(){try{const D=ye(y);D||(Q(y),N(y.now)),N(y.tickAsync(D.callAt-y.now))}catch(D){R(D)}})}))}),y.reset=function(){O=0,y.timers={},y.jobs=[],y.now=S},y.setSystemTime=function(N){const R=q(N),D=R-y.now;let ae,Se;j[0]=j[0]+D,j[1]=j[1]+O,y.now=R,O=0;for(ae in y.timers)y.timers.hasOwnProperty(ae)&&(Se=y.timers[ae],Se.createdAt+=D,Se.callAt+=D)},y.jump=function(N){const R=typeof N=="number"?N:J(N),D=Math.floor(R);for(const ae of Object.values(y.timers))y.now+D>ae.callAt&&(ae.callAt=y.now+D);y.tick(D)},l.performance&&(y.performance=Object.create(null),y.performance.now=se),l.hrtime&&(y.hrtime=W),y}function ob(S,A){const O=ar.bind(null,S,A),j=sb(O,A);S.attachedInterval=j}function ab(S){if(arguments.length>1||S instanceof Date||Array.isArray(S)||typeof S=="number")throw new TypeError(`FakeTimers.install called with ${String(S)} install requires an object parameter`);if(s.Date.isFake===!0)throw new TypeError("Can't install fake timers twice on the same global object.");if(S=typeof S<"u"?S:{},S.shouldAdvanceTime=S.shouldAdvanceTime||!1,S.advanceTimeDelta=S.advanceTimeDelta||20,S.shouldClearNativeTimers=S.shouldClearNativeTimers||!1,S.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function A(U){if(!S.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${U}'`)}let O,j;const y=ol(S.now,S.loopLimit);if(y.shouldClearNativeTimers=S.shouldClearNativeTimers,y.uninstall=function(){return Pn(y)},y.abortListenerMap=new Map,y.methods=S.toFake||[],y.methods.length===0&&(y.methods=Object.keys(Ye)),S.shouldAdvanceTime===!0&&y.setTickMode({mode:"interval",delta:S.advanceTimeDelta}),y.methods.includes("performance")){const U=(()=>{if(p)return s.performance.constructor.prototype;if(m)return s.Performance.prototype})();if(U)Object.getOwnPropertyNames(U).forEach(function(W){W!=="now"&&(y.performance[W]=W.indexOf("getEntries")===0?u:c)}),y.performance.mark=W=>new P(W,"mark",0,0),y.performance.measure=W=>new P(W,"measure",0,100),y.performance.timeOrigin=q(S.now);else if((S.toFake||[]).includes("performance"))return A("performance")}for(s===e&&t&&(y.timersModuleMethods=[]),s===e&&n&&(y.timersPromisesModuleMethods=[]),O=0,j=y.methods.length;O<j;O++){const U=y.methods[O];if(!l[U]){A(U);continue}if(U==="hrtime"?s.process&&typeof s.process.hrtime=="function"&&At(s.process,U,y):U==="nextTick"?s.process&&typeof s.process.nextTick=="function"&&At(s.process,U,y):At(s,U,y),y.timersModuleMethods!==void 0&&t[U]){const W=t[U];y.timersModuleMethods.push({methodName:U,original:W}),t[U]=s[U]}y.timersPromisesModuleMethods!==void 0&&(U==="setTimeout"?(y.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(W,se,fe={})=>new Promise((ct,Me)=>{const _=()=>{fe.signal.removeEventListener("abort",_),y.abortListenerMap.delete(_),y.clearTimeout(N),Me(fe.signal.reason)},N=y.setTimeout(()=>{fe.signal&&(fe.signal.removeEventListener("abort",_),y.abortListenerMap.delete(_)),ct(se)},W);fe.signal&&(fe.signal.aborted?_():(fe.signal.addEventListener("abort",_),y.abortListenerMap.set(_,fe.signal)))})):U==="setImmediate"?(y.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(W,se={})=>new Promise((fe,ct)=>{const Me=()=>{se.signal.removeEventListener("abort",Me),y.abortListenerMap.delete(Me),y.clearImmediate(_),ct(se.signal.reason)},_=y.setImmediate(()=>{se.signal&&(se.signal.removeEventListener("abort",Me),y.abortListenerMap.delete(Me)),fe(W)});se.signal&&(se.signal.aborted?Me():(se.signal.addEventListener("abort",Me),y.abortListenerMap.set(Me,se.signal)))})):U==="setInterval"&&(y.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(W,se,fe={})=>({[Symbol.asyncIterator]:()=>{const ct=()=>{let rt,$t;const Ve=new Promise((Ct,cr)=>{rt=Ct,$t=cr});return Ve.resolve=rt,Ve.reject=$t,Ve};let Me=!1,_=!1,N,R=0;const D=[],ae=y.setInterval(()=>{D.length>0?D.shift().resolve():R++},W),Se=()=>{fe.signal.removeEventListener("abort",Se),y.abortListenerMap.delete(Se),y.clearInterval(ae),Me=!0;for(const rt of D)rt.resolve()};return fe.signal&&(fe.signal.aborted?Me=!0:(fe.signal.addEventListener("abort",Se),y.abortListenerMap.set(Se,fe.signal))),{next:async()=>{var $t,Ve;if(($t=fe.signal)!=null&&$t.aborted&&!_)throw _=!0,fe.signal.reason;if(Me)return{done:!0,value:void 0};if(R>0)return R--,{done:!1,value:se};const rt=ct();if(D.push(rt),await rt,N&&D.length===0&&N.resolve(),(Ve=fe.signal)!=null&&Ve.aborted&&!_)throw _=!0,fe.signal.reason;return Me?{done:!0,value:void 0}:{done:!1,value:se}},return:async()=>Me?{done:!0,value:void 0}:(D.length>0&&(N=ct(),await N),y.clearInterval(ae),Me=!0,fe.signal&&(fe.signal.removeEventListener("abort",Se),y.abortListenerMap.delete(Se)),{done:!0,value:void 0})}}})))}return y}return{timers:Ye,createClock:ol,install:ab,withGlobal:r}}const i=r(e);return Dn.timers=i.timers,Dn.createClock=i.createClock,Dn.install=i.install,Dn.withGlobal=r,Dn}YM();const Vs={numRuns:100,timeout:1e3,verbose:!1};function Yx(e,t,n,r){const i={...Vs,...r};Yt(e,async()=>{await Br(Ja(...t,async(...s)=>{await n(...s)}),{numRuns:i.numRuns,seed:i.seed,verbose:i.verbose,examples:i.examples})})}function JM(e,t,n,r){const i={...Vs,...r};Yt(e,()=>{Br(Lr(...t,(...s)=>{n(...s)}),{numRuns:i.numRuns,seed:i.seed,verbose:i.verbose,examples:i.examples})})}const ZM={nonEmptyString:()=>tt({minLength:1}),nonEmptyArray:e=>X(e,{minLength:1}),uniqueArray:e=>On(e),hexColor:()=>Te(Pr({minLength:6,maxLength:6}).map(e=>`#${e}`),Pr({minLength:3,maxLength:3}).map(e=>`#${e}`)),rgbColor:()=>yn({r:G({min:0,max:255}),g:G({min:0,max:255}),b:G({min:0,max:255})}),hslColor:()=>yn({h:G({min:0,max:360}),s:G({min:0,max:100}),l:G({min:0,max:100})}),cssSize:()=>K(xs({min:0,max:1e3,noNaN:!0}),Fe("px","rem","em","%","vh","vw")).map(([e,t])=>`${e}${t}`),cssSpacing:()=>G({min:0,max:100}).map(e=>`${e}px`),borderRadius:()=>Te(G({min:0,max:50}).map(e=>`${e}px`),G({min:0,max:50}).map(e=>`${e}%`)),zIndex:()=>G({min:-10,max:9999}),viewport:()=>yn({width:G({min:320,max:3840}),height:G({min:480,max:2160})}),gridColumns:()=>G({min:1,max:12}),flexDirection:()=>Fe("row","column","row-reverse","column-reverse"),justifyContent:()=>Fe("flex-start","flex-end","center","space-between","space-around","space-evenly"),alignItems:()=>Fe("flex-start","flex-end","center","stretch","baseline"),htmlTag:()=>Fe("div","span","button","a","input","label","p","h1","h2","h3","section","article","main","nav","footer","header"),ariaRole:()=>Fe("button","checkbox","dialog","gridcell","link","menuitem","option","progressbar","radio","slider","spinbutton","tab","tabpanel","textbox","listbox"),eventHandler:()=>Fe("onClick","onMouseEnter","onMouseLeave","onFocus","onBlur","onKeyDown","onKeyUp","onChange","onSubmit"),email:()=>yc(),uuid:()=>Di(),url:()=>Kc(),isoDate:()=>ps().map(e=>e.toISOString()),timestamp:()=>G({min:0,max:Date.now()+365*24*60*60*1e3}),phone:()=>K(G({min:100,max:999}),G({min:100,max:999}),G({min:1e3,max:9999})).map(([e,t,n])=>`${e}-${t}-${n}`),fieldValue:()=>Te(tt(),G(),kt()),validationState:()=>yn({valid:kt(),error:Kt(tt(),{nil:void 0}),touched:kt(),dirty:kt()}),tableRow:e=>yn({id:Di(),...e}),tableData:(e,t)=>X(e,t),duration:()=>G({min:0,max:5e3}),easing:()=>Fe("linear","ease","ease-in","ease-out","ease-in-out","cubic-bezier(0.4, 0, 0.2, 1)"),delay:()=>G({min:0,max:2e3})};function XM(e,t,n){const r={...Vs,...n};Br(Lr(...e,(...i)=>t(...i)),{numRuns:r.numRuns,seed:r.seed,verbose:r.verbose})}function QM(e,t,n){const r={...Vs,...n};return cs(Lr(...e,(...i)=>(t(...i),!0)),{numRuns:r.numRuns,seed:r.seed,verbose:r.verbose})}function eO(e,t,n,r,i){Yx(e,[r],async s=>{const o=t(),a=n();for(const c of s)c.check(o)&&await c.run(o,a)},i)}const Jx=[["mobile",375],["tablet",768],["desktop",1024],["wide",1440]];function tO(e,t={}){const{name:n,wrapper:r}=t;Yt(n||"renders correctly",()=>{const{container:s}=r?We.render(ze.jsx(r,{children:e})):We.render(e);Lt(s.firstChild).toMatchSnapshot()})}function nO(e,t,n,r={}){const{wrapper:i}=r;Object.entries(n).forEach(([s,o])=>{Cs(`${s} variants`,()=>{o.forEach(a=>{const c={...t,[s]:a},u=ze.jsx(e,{...c});Yt(`${s}=${JSON.stringify(a)}`,()=>{const{container:l}=i?We.render(ze.jsx(i,{children:u})):We.render(u);Lt(l.firstChild).toMatchSnapshot()})})})})}const Qr=["display","position","width","height","margin","padding","flex-direction","justify-content","align-items","gap","background-color","color","border","border-radius","box-shadow","font-family","font-size","font-weight","line-height","text-align","transition","transform","opacity"];function rO(e,t={}){const{name:n,wrapper:r,properties:i=Qr,pseudo:s}=t;Yt(n||"has expected styles",()=>{const{container:a}=r?We.render(ze.jsx(r,{children:e})):We.render(e),c=a.firstChild;if(!c)throw new Error("No element rendered");const u=window.getComputedStyle(c,s||null),l={};i.forEach(f=>{l[f]=u.getPropertyValue(f)}),Lt(l).toMatchSnapshot()})}function iO(e,t,n,r={}){const{properties:i=Qr,wrapper:s}=r;Cs("state styles",()=>{Object.entries(n).forEach(([o,a])=>{Yt(`${o} state`,()=>{const c={...t,...a.props||{}},u=ze.jsx(e,{...c}),{container:l}=s?We.render(ze.jsx(s,{children:u})):We.render(u),f=l.firstChild;if(!f)throw new Error("No element rendered");const h=window.getComputedStyle(f,a.pseudo||null),d={};i.forEach(m=>{d[m]=h.getPropertyValue(m)}),Lt(d).toMatchSnapshot()})})})}function sO(e,t,n,r={}){const{properties:i=Qr}=r;Cs("theme snapshots",()=>{n.forEach(({name:s,theme:o})=>{Yt(`${s} theme`,()=>{const{container:a}=We.render(ze.jsx(t,{theme:o,children:e})),c=a.firstChild;if(!c)throw new Error("No element rendered");Lt(a.firstChild).toMatchSnapshot(`${s}-structure`);const u=window.getComputedStyle(c),l={};i.filter(f=>["background","color","border"].some(h=>f.includes(h))).forEach(f=>{l[f]=u.getPropertyValue(f)}),Lt(l).toMatchSnapshot(`${s}-styles`)})})})}function oO(e,t={}){const{wrapper:n,breakpoints:r=Jx}=t;Cs("responsive snapshots",()=>{r.forEach(([i,s])=>{Yt(`at ${i} (${s}px)`,()=>{const o=window.matchMedia;window.matchMedia=c=>{var l;return{matches:c.includes(`max-width: ${s}px`)?!0:c.includes("min-width")?s>=parseInt(((l=c.match(/\d+/))==null?void 0:l[0])||"0"):!1,media:c,onchange:null,addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!0}},Object.defineProperty(window,"innerWidth",{writable:!0,configurable:!0,value:s});const{container:a}=n?We.render(ze.jsx(n,{children:e})):We.render(e);Lt(a.firstChild).toMatchSnapshot(),window.matchMedia=o})})})}function aO(e,t={}){const{wrapper:n}=t,{container:r}=n?We.render(ze.jsx(n,{children:e})):We.render(e);return r.innerHTML}function cO(e,t=Qr,n={}){const{wrapper:r}=n,{container:i}=r?We.render(ze.jsx(r,{children:e})):We.render(e),s=i.firstChild;if(!s)return{};const o=window.getComputedStyle(s),a={};return t.forEach(c=>{const u=o.getPropertyValue(c);u&&(a[c]=u)}),a}function uO(e,t={}){const{name:n,wrapper:r}=t;Yt(n||"has expected accessibility attributes",()=>{const{container:s}=r?We.render(ze.jsx(r,{children:e})):We.render(e),o=s.firstChild;if(!o)throw new Error("No element rendered");const a={role:o.getAttribute("role"),"aria-label":o.getAttribute("aria-label"),"aria-labelledby":o.getAttribute("aria-labelledby"),"aria-describedby":o.getAttribute("aria-describedby"),"aria-hidden":o.getAttribute("aria-hidden"),"aria-disabled":o.getAttribute("aria-disabled"),"aria-expanded":o.getAttribute("aria-expanded"),"aria-selected":o.getAttribute("aria-selected"),"aria-checked":o.getAttribute("aria-checked"),"aria-pressed":o.getAttribute("aria-pressed"),"aria-haspopup":o.getAttribute("aria-haspopup"),"aria-controls":o.getAttribute("aria-controls"),"aria-live":o.getAttribute("aria-live"),tabIndex:o.getAttribute("tabindex")},c=Object.fromEntries(Object.entries(a).filter(([,u])=>u!==null));Lt(c).toMatchSnapshot()})}const ts={mobile:{width:375,height:667},mobileLarge:{width:414,height:896},tablet:{width:768,height:1024},tabletLandscape:{width:1024,height:768},desktop:{width:1280,height:800},desktopLarge:{width:1440,height:900},ultrawide:{width:1920,height:1080}},il={light:{name:"light",className:"theme-light",background:"#ffffff"},dark:{name:"dark",className:"theme-dark",background:"#1a1a1a"},highContrast:{name:"high-contrast",className:"theme-high-contrast",background:"#000000"}},ns={mobile:{viewport:{width:375,height:667}},tablet:{viewport:{width:768,height:1024}},desktop:{viewport:{width:1280,height:800}},wide:{viewport:{width:1920,height:1080}},light:{theme:"light",backgrounds:{value:"#ffffff"}},dark:{theme:"dark",backgrounds:{value:"#1a1a1a"}},highContrast:{theme:"high-contrast",backgrounds:{value:"#000000"}},rtl:{globals:{direction:"rtl"}}},ei={viewports:[375,768,1280],diffThreshold:.05,delay:300,pauseAnimationAtEnd:!0};function lO(){return function(t,n){const r=n.globals.theme||"light",i=il[r];return ze.jsx("div",{className:(i==null?void 0:i.className)||"theme-light",style:{background:(i==null?void 0:i.background)||"#ffffff",minHeight:"100vh",padding:"1rem"},children:ze.jsx(t,{})})}}function fO(){return function(t,n){const r=n.globals.direction||"ltr";return ze.jsx("div",{dir:r,style:{direction:r},children:ze.jsx(t,{})})}}function hO(){return function(t,n){const r=n.globals.theme||"light",i=n.globals.direction||"ltr",s=n.globals.reducedMotion||!1,o=il[r];return ze.jsx("div",{className:(o==null?void 0:o.className)||"theme-light",dir:i,style:{background:(o==null?void 0:o.background)||"#ffffff",direction:i},"data-reduced-motion":s,children:ze.jsx(t,{})})}}function dO(e,t){const r=(t||["mobile","tablet","desktop"]).map(i=>ts[i].width);return{...e,parameters:{...e.parameters||{},chromatic:{...ei,viewports:r}}}}function pO(e,t){const n=t||["light","dark"];return{...e,parameters:{...e.parameters||{},chromatic:{...ei,modes:Object.fromEntries(n.map(r=>[r,ns[r]]))}}}}function mO(e){return{...e,parameters:{...e.parameters||{},chromatic:{...ei,modes:{ltr:{globals:{direction:"ltr"}},rtl:{globals:{direction:"rtl"}}}}}}}function gO(e,t){const{viewports:n=["mobile","desktop"],themes:r=["light","dark"],rtl:i=!0}=t||{},s={};return n.forEach(o=>{s[`viewport-${o}`]={viewport:{width:ts[o].width,height:ts[o].height}}}),r.forEach(o=>{s[`theme-${o}`]=ns[o]}),i&&(s.rtl=ns.rtl),{...e,parameters:{...e.parameters||{},chromatic:{...ei,modes:s}}}}const xO={theme:{name:"Theme",description:"Global theme for components",defaultValue:"light",toolbar:{icon:"paintbrush",items:[{value:"light",title:"Light"},{value:"dark",title:"Dark"},{value:"highContrast",title:"High Contrast"}],showName:!0}},direction:{name:"Direction",description:"Text direction",defaultValue:"ltr",toolbar:{icon:"paragraph",items:[{value:"ltr",title:"LTR"},{value:"rtl",title:"RTL"}],showName:!0}},reducedMotion:{name:"Reduced Motion",description:"Reduce animations",defaultValue:!1,toolbar:{icon:"accessibility",items:[{value:!1,title:"Full Motion"},{value:!0,title:"Reduced Motion"}],showName:!0}}},bO={version:2,snapshot:{widths:[375,768,1280,1920],minHeight:1024,percyCSS:`
212
+ /* Hide dynamic content */
213
+ [data-percy-hide] { visibility: hidden !important; }
214
+ /* Disable animations */
215
+ *, *::before, *::after {
216
+ animation-duration: 0s !important;
217
+ transition-duration: 0s !important;
218
+ }
219
+ `},discovery:{networkIdleTimeout:250,allowedHostnames:["fonts.googleapis.com","fonts.gstatic.com"]}};function yO(e,t){return{name:e,...t}}const Zx=["@storybook/addon-essentials","@storybook/addon-a11y","@storybook/addon-viewport","@storybook/addon-themes","storybook-addon-rtl"],Xx={mobile:{name:"Mobile (375px)",styles:{width:"375px",height:"667px"},type:"mobile"},mobileLarge:{name:"Mobile Large (414px)",styles:{width:"414px",height:"896px"},type:"mobile"},tablet:{name:"Tablet (768px)",styles:{width:"768px",height:"1024px"},type:"tablet"},desktop:{name:"Desktop (1280px)",styles:{width:"1280px",height:"800px"},type:"desktop"},desktopLarge:{name:"Desktop Large (1440px)",styles:{width:"1440px",height:"900px"},type:"desktop"},ultrawide:{name:"Ultrawide (1920px)",styles:{width:"1920px",height:"1080px"},type:"desktop"}},wO={viewport:{viewports:Xx,defaultViewport:"desktop"},chromatic:{viewports:[375,768,1280],diffThreshold:.05,pauseAnimationAtEnd:!0,delay:300},a11y:{element:"#storybook-root",config:{},options:{},manual:!1},layout:"fullscreen"},SO={addons:Zx,core:{disableTelemetry:!0},docs:{autodocs:"tag"},staticDirs:["../public"]};function EO(){return`
220
+ import type { Preview } from '@storybook/react';
221
+ import { visualTestingParameters, visualTestingGlobalTypes } from '@nice2dev/testing';
222
+ import { createVisualTestDecorator } from '@nice2dev/testing';
223
+
224
+ const preview: Preview = {
225
+ parameters: {
226
+ ...visualTestingParameters,
227
+ controls: {
228
+ matchers: {
229
+ color: /(background|color)$/i,
230
+ date: /Date$/i,
231
+ },
232
+ },
233
+ },
234
+ globalTypes: visualTestingGlobalTypes,
235
+ decorators: [createVisualTestDecorator()],
236
+ };
237
+
238
+ export default preview;
239
+ `}const TO={projectToken:process.env.CHROMATIC_PROJECT_TOKEN,buildScriptName:"build-storybook",exitZeroOnChanges:!1,exitOnceUploaded:!1,onlyChanged:!0,externals:["**/*.md"],skip:"@(renovate|dependabot)/**",traceChanged:"expanded",modes:{light:{theme:"light"},dark:{theme:"dark"}}};function AO(e){const{onlyChanged:t=!0,exitZeroOnChanges:n=!1}=e||{};return["npx chromatic","--project-token=$CHROMATIC_PROJECT_TOKEN",t?"--only-changed":"",n?"--exit-zero-on-changes":"","--trace-changed=expanded"].filter(Boolean).join(" ")}const IO={"iPhone 13":{viewport:{width:390,height:844},userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1",deviceScaleFactor:3,isMobile:!0,hasTouch:!0},"iPhone 14 Pro Max":{viewport:{width:430,height:932},userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1",deviceScaleFactor:3,isMobile:!0,hasTouch:!0},"iPad Pro":{viewport:{width:1024,height:1366},userAgent:"Mozilla/5.0 (iPad; CPU OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1",deviceScaleFactor:2,isMobile:!0,hasTouch:!0},"Pixel 7":{viewport:{width:412,height:915},userAgent:"Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36",deviceScaleFactor:2.625,isMobile:!0,hasTouch:!0},"Samsung Galaxy S23":{viewport:{width:360,height:780},userAgent:"Mozilla/5.0 (Linux; Android 13; SM-S911B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36",deviceScaleFactor:3,isMobile:!0,hasTouch:!0}},$O={chromium:{name:"chromium",channel:void 0},chrome:{name:"chromium",channel:"chrome"},firefox:{name:"firefox"},webkit:{name:"webkit"},edge:{name:"chromium",channel:"msedge"}};class Qx{constructor(t){this.page=t,this.dataGrid={waitForLoad:async(n='[data-testid="nice-datagrid"]')=>{await this.page.waitForSelector(n),await this.page.waitForSelector(`${n} [data-loaded="true"]`,{timeout:1e4})},selectRow:async(n,r='[data-testid="nice-datagrid"]')=>{await this.page.locator(`${r} [data-testid="nice-datagrid-row-${n}"]`).click()},sortByColumn:async(n,r='[data-testid="nice-datagrid"]')=>{await this.page.locator(`${r} [data-testid="nice-datagrid-header-${n}"]`).click()},filterColumn:async(n,r,i='[data-testid="nice-datagrid"]')=>{await this.page.locator(`${i} [data-testid="nice-datagrid-filter-${n}"]`).fill(r)},getRowCount:async(n='[data-testid="nice-datagrid"]')=>this.page.locator(`${n} [data-testid^="nice-datagrid-row-"]`).count(),getCellValue:async(n,r,i='[data-testid="nice-datagrid"]')=>this.page.locator(`${i} [data-testid="nice-datagrid-cell-${n}-${r}"]`).textContent()},this.form={fillField:async(n,r)=>{await this.page.locator(`[name="${n}"]`).fill(r)},submit:async(n="form")=>{await this.page.locator(n).evaluate(r=>{r.requestSubmit()})},getErrors:async(n="form")=>this.page.locator(`${n} [data-error="true"]`).allTextContents(),waitForReady:async(n="form")=>{await this.page.waitForSelector(`${n}:not([data-loading="true"])`)}},this.modal={waitForOpen:async(n='[data-testid="nice-modal"]')=>{await this.page.waitForSelector(`${n}[data-state="open"]`)},waitForClose:async(n='[data-testid="nice-modal"]')=>{await this.page.waitForSelector(`${n}[data-state="closed"]`,{state:"hidden"})},close:async(n='[data-testid="nice-modal"]')=>{await this.page.locator(`${n} [data-testid="nice-modal-close"]`).click(),await this.modal.waitForClose(n)},clickAction:async(n,r='[data-testid="nice-modal"]')=>{await this.page.locator(`${r} [data-testid="nice-modal-${n}"]`).click()}},this.navigation={navigateToRoute:async n=>{await this.page.locator(`[data-testid="nice-nav-link"][href="${n}"]`).click(),await this.page.waitForURL(`**${n}`)},openMenu:async()=>{await this.page.locator('[data-testid="nice-nav-menu-toggle"]').click(),await this.page.waitForSelector('[data-testid="nice-nav-menu"][data-open="true"]')},getActiveRoute:async()=>this.page.locator('[data-testid="nice-nav-link"][aria-current="page"]').getAttribute("href")},this.keyboard={tabThrough:async n=>{for(let r=0;r<n;r++)await this.page.keyboard.press("Tab")},shiftTabThrough:async n=>{for(let r=0;r<n;r++)await this.page.keyboard.press("Shift+Tab")},activate:async()=>{await this.page.keyboard.press("Enter")},escape:async()=>{await this.page.keyboard.press("Escape")},arrow:async n=>{await this.page.keyboard.press(`Arrow${n}`)}}}}async function sl(e,t){await e.addScriptTag({url:"https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.7.2/axe.min.js"});const n=await e.evaluate(r=>window.axe.run(document,{rules:r==null?void 0:r.rules,runOnly:r!=null&&r.tags?{type:"tag",values:r.tags}:void 0,include:r==null?void 0:r.include,exclude:r==null?void 0:r.exclude}),t);return{violations:n.violations.map(r=>({id:r.id,impact:r.impact,description:r.description,help:r.help,helpUrl:r.helpUrl,nodes:r.nodes.map(i=>({html:i.html,target:i.target,failureSummary:i.failureSummary}))})),passes:n.passes.length,incomplete:n.incomplete.length}}async function CO(e){const{violations:t}=await sl(e);if(t.length>0){const n=t.map(r=>`${r.id} (${r.impact}): ${r.help}
240
+ ${r.helpUrl}`);throw new Error(`Accessibility violations found:
241
+ ${n.join(`
242
+
243
+ `)}`)}}async function eb(e,t){for(const n of t)await e.route(n.url,async r=>{if(n.method&&r.request().method()!==n.method)return r.continue();n.delay&&await new Promise(i=>setTimeout(i,n.delay)),await r.fulfill({status:n.status||200,contentType:"application/json",body:JSON.stringify(n.body||{})})})}async function tb(e,t,n){await e.route(t,async r=>{const s=r.request().postDataJSON(),o=s==null?void 0:s.operationName;o&&n[o]?await r.fulfill({status:200,contentType:"application/json",body:JSON.stringify({data:n[o]})}):await r.continue()})}async function vO(e,t,n){return await e.addInitScript(r=>{window.__signalRMock={handlers:r.handlers,messages:[]},window.signalR={HubConnectionBuilder:class{withUrl(){return this}withAutomaticReconnect(){return this}build(){return{start:()=>Promise.resolve(),stop:()=>Promise.resolve(),on:(i,s)=>{window.__signalRMock.handlers[i]=s},invoke:(i,...s)=>(window.__signalRMock.messages.push({method:i,args:s}),Promise.resolve())}}}}},{handlers:n,hubUrl:t}),{send:async(r,...i)=>{await e.evaluate(({method:s,args:o})=>{const a=window.__signalRMock.handlers[s];a&&a(...o)},{method:r,args:i})}}}async function nb(e){const t=await e.evaluate(()=>{const r=performance,i=r.getEntriesByType("navigation")[0],o=r.getEntriesByType("paint").find(a=>a.name==="first-contentful-paint");return{ttfb:(i==null?void 0:i.responseStart)||0,fcp:(o==null?void 0:o.startTime)||0,domContentLoaded:(i==null?void 0:i.domContentLoadedEventEnd)-(i==null?void 0:i.domContentLoadedEventStart)||0,load:(i==null?void 0:i.loadEventEnd)-(i==null?void 0:i.loadEventStart)||0}}),n=await e.evaluate(()=>new Promise(r=>{new PerformanceObserver(i=>{const s=i.getEntries(),o=s[s.length-1];r((o==null?void 0:o.startTime)||0)}).observe({entryTypes:["largest-contentful-paint"]}),setTimeout(()=>r(0),5e3)}));return{fcp:t.fcp,lcp:n,cls:0,ttfb:t.ttfb,tti:t.domContentLoaded}}function MO(e,t){return{page:e,context:t,helpers:new Qx(e),axe:()=>sl(e),mockAPI:n=>eb(e,n),mockGraphQL:(n,r)=>tb(e,n,r),performance:()=>nb(e)}}function OO(...e){return e.join("-")}const NO={button:e=>e?`nice-button-${e}`:"nice-button",textInput:e=>e?`nice-text-input-${e}`:"nice-text-input",numberInput:e=>e?`nice-number-input-${e}`:"nice-number-input",select:e=>e?`nice-select-${e}`:"nice-select",checkbox:e=>e?`nice-checkbox-${e}`:"nice-checkbox",toggle:e=>e?`nice-toggle-${e}`:"nice-toggle",datePicker:e=>e?`nice-date-picker-${e}`:"nice-date-picker",dataGrid:e=>e?`nice-datagrid-${e}`:"nice-datagrid",table:e=>e?`nice-table-${e}`:"nice-table",list:e=>e?`nice-list-${e}`:"nice-list",treeView:e=>e?`nice-tree-${e}`:"nice-tree",modal:e=>e?`nice-modal-${e}`:"nice-modal",drawer:e=>e?`nice-drawer-${e}`:"nice-drawer",form:e=>e?`nice-form-${e}`:"nice-form",tabs:e=>e?`nice-tabs-${e}`:"nice-tabs",menu:e=>e?`nice-menu-${e}`:"nice-menu",chart:e=>e?`nice-chart-${e}`:"nice-chart",scheduler:e=>e?`nice-scheduler-${e}`:"nice-scheduler",gantt:e=>e?`nice-gantt-${e}`:"nice-gantt",diagram:e=>e?`nice-diagram-${e}`:"nice-diagram",toast:e=>e?`nice-toast-${e}`:"nice-toast",alert:e=>e?`nice-alert-${e}`:"nice-alert",badge:e=>e?`nice-badge-${e}`:"nice-badge",avatar:e=>e?`nice-avatar-${e}`:"nice-avatar",progress:e=>e?`nice-progress-${e}`:"nice-progress",skeleton:e=>e?`nice-skeleton-${e}`:"nice-skeleton",spinner:e=>e?`nice-spinner-${e}`:"nice-spinner",card:e=>e?`nice-card-${e}`:"nice-card",accordion:e=>e?`nice-accordion-${e}`:"nice-accordion",breadcrumb:e=>e?`nice-breadcrumb-${e}`:"nice-breadcrumb",pagination:e=>e?`nice-pagination-${e}`:"nice-pagination",toolbar:e=>e?`nice-toolbar-${e}`:"nice-toolbar"},rb=({children:e,direction:t="ltr"})=>lb.createElement("div",{dir:t,"data-testid":"nice-test-root",style:{direction:t}},e);rb.displayName="NiceTestWrapper";function kO(e,t,n){const r=new KeyboardEvent("keydown",{key:t,bubbles:!0,cancelable:!0,...n});e.dispatchEvent(r)}function PO(e,t){var r,i;const n=((r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:r.set)||((i=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"))==null?void 0:i.set);n&&n.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}function _O(e,t){const n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,...t});e.dispatchEvent(n)}function jO(e){const{data:t,delay:n=0,keyField:r="id"}=e;let i=[...t];return{key:r,load:async()=>(n>0&&await new Promise(s=>setTimeout(s,n)),{data:[...i],totalCount:i.length}),insert:async s=>(i.push(s),s),update:async(s,o)=>{const a=i.findIndex(c=>c[r]===s);a>=0&&(i[a]={...i[a],...o})},remove:async s=>{i=i.filter(o=>o[r]!==s)},getData:()=>[...i],reset:()=>{i=[...t]}}}function FO(e){const t=[];return e.querySelectorAll('button, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="radio"]').forEach(s=>{var a;s.getAttribute("aria-label")||s.getAttribute("aria-labelledby")||((a=s.textContent)==null?void 0:a.trim())||s.getAttribute("title")||t.push(`${s.tagName.toLowerCase()}${s.id?"#"+s.id:""} missing accessible name`)}),e.querySelectorAll("img").forEach(s=>{!s.alt&&s.getAttribute("role")!=="presentation"&&t.push(`img${s.src?'[src="'+s.src.substring(0,40)+'..."]':""} missing alt text`)}),e.querySelectorAll('input:not([type="hidden"]), select, textarea').forEach(s=>{const o=s.id&&e.querySelector(`label[for="${s.id}"]`),a=s.getAttribute("aria-label")||s.getAttribute("aria-labelledby");!o&&!a&&t.push(`${s.tagName.toLowerCase()}${s.name?'[name="'+s.name+'"]':""} missing label`)}),t}function RO(e){return["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'].some(n=>e.matches(n))}function DO(e){const t=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'].join(", ");return Array.from(e.querySelectorAll(t))}async function LO(e,t=document.body,n=3e3){const r=Date.now();for(;Date.now()-r<n;){const i=t.querySelector(e);if(i)return i;await new Promise(s=>setTimeout(s,50))}return null}async function BO(e,t=3e3){const n=Date.now();for(;Date.now()-n<t;){if(await e())return;await new Promise(r=>setTimeout(r,50))}throw new Error("Timeout waiting for condition")}function qO(e){return e.replace(/id="[^"]+"/g,'id="[id]"').replace(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/g,"[timestamp]").replace(/style="[^"]+"/g,'style="[styles]"')}function VO(e){return e.getAttribute("aria-busy")==="true"||e.classList.contains("loading")||e.querySelector('[data-loading="true"]')!==null}function UO(e){return e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||e.classList.contains("disabled")}function zO(e){return e.getAttribute("aria-expanded")==="true"||e.classList.contains("expanded")}function WO(e){return e instanceof HTMLInputElement?e.checked:e.getAttribute("aria-checked")==="true"||e.classList.contains("checked")}exports.BROWSER_CONFIGS=$O;exports.DEFAULT_BREAKPOINTS=Jx;exports.DEFAULT_STYLE_PROPERTIES=Qr;exports.DEVICE_CONFIGS=IO;exports.NiceTestHelpers=Qx;exports.NiceTestWrapper=rb;exports.VISUAL_BREAKPOINTS=ts;exports.VISUAL_THEMES=il;exports.arbitraries=ZM;exports.axeCheck=sl;exports.checkAriaCompliance=FO;exports.checkWithStats=QM;exports.chromaticCIConfig=TO;exports.chromaticDefaults=ei;exports.chromaticModes=ns;exports.cleanHtmlForSnapshot=qO;exports.createMockDataSource=jO;exports.createRTLDecorator=fO;exports.createTestContext=MO;exports.createThemeDecorator=lO;exports.createVisualPreviewConfig=EO;exports.createVisualTestDecorator=hO;exports.expect=Lt;exports.expectNoA11yViolations=CO;exports.fc=MA;exports.forAll=XM;exports.getChromaticCommand=AO;exports.getFocusableElements=DO;exports.getStylesSnapshot=cO;exports.isChecked=WO;exports.isDisabled=UO;exports.isExpanded=zO;exports.isFocusable=RO;exports.isLoading=VO;exports.measurePerformance=nb;exports.mockAPI=eb;exports.mockGraphQL=tb;exports.mockSignalR=vO;exports.niceSelectors=NO;exports.percyConfig=bO;exports.percySnapshot=yO;exports.renderToSnapshot=aO;exports.simulateClick=_O;exports.simulateKeyboard=kO;exports.simulateType=PO;exports.snapshotA11y=uO;exports.snapshotComponent=tO;exports.snapshotResponsive=oO;exports.snapshotStateStyles=iO;exports.snapshotStyles=rO;exports.snapshotThemes=sO;exports.snapshotVariants=nO;exports.testId=OO;exports.testModel=eO;exports.testProperty=Yx;exports.testPropertySync=JM;exports.visualTestingAddons=Zx;exports.visualTestingGlobalTypes=xO;exports.visualTestingParameters=wO;exports.visualTestingPreset=SO;exports.visualTestingViewports=Xx;exports.waitFor=BO;exports.waitForElement=LO;exports.withFullVisualTesting=gO;exports.withRTLTesting=mO;exports.withVisualThemes=pO;exports.withVisualViewports=dO;