@ncino/web-components 6.0.0-preview.2 → 6.0.0-preview.4
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/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/tabs/gator/tabset/tabset.gator.js +7 -5
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/chai@5.2.1/node_modules/chai/chai.js +218 -0
- package/dist/node_modules/.pnpm/storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2/node_modules/storybook/dist/instrumenter/index.js +48 -0
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +10 -10
- package/web-types.json +1 -1
- package/dist/node_modules/.pnpm/storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2/node_modules/storybook/dist/instrumenter/index.js +0 -48
- /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.1.0_typescript@5.8.3__playwright@1.54.1__8e70271490ec3f26bdf789d82f47a069 → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.2.1_typescript@5.8.3__playwright@1.54.1__6e6aa2c9b4102560da2d8ed1e4176ee9}/node_modules/@vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2 → storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2}/node_modules/storybook/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2 → storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2}/node_modules/storybook/dist/core-events/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2 → storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2}/node_modules/storybook/dist/test/index.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.1.0_@vitest_browser@3.2.4_@vitest_ui@3._b2244c164fbcfcb185a299e1f0f1dc0a → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.1.0_@vitest_browser@3.2.4_@vitest_ui@3._b2244c164fbcfcb185a299e1f0f1dc0a → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.1.0_@vitest_browser@3.2.4_@vitest_ui@3._b2244c164fbcfcb185a299e1f0f1dc0a → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.1.0_@vitest_browser@3.2.4_@vitest_ui@3._b2244c164fbcfcb185a299e1f0f1dc0a → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{within as h,waitFor as d,expect as e,userEvent as s}from"../../../node_modules/.pnpm/storybook@9.
|
|
1
|
+
import{within as h,waitFor as d,expect as e,userEvent as s}from"../../../node_modules/.pnpm/storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2/node_modules/storybook/dist/test/index.js";import{getShadowRootElementByDataTestId as p}from"../../../utils/vitest-utils.js";const r=async({canvasElement:w,step:t})=>{const i=h(w);let l,o,c,n;await t("Scenario: Nested Panel Functionality",async()=>{await t("GIVEN the Story renders with the first panel open and the second panel closed",async()=>{l=await i.findByTestId("first-panel"),o=p(l,"first-panel-panel"),c=await i.findByTestId("second-panel"),n=p(c,"second-panel-panel"),await d(()=>e(o).toBeVisible()),e(n).not.toBeVisible()}),await t("WHEN I click on the list item with nested content to open the second panel",async()=>{i.getByTestId("list-item-with-nested").click()}),await t("THEN the second panel is opened relative to the first panel",async()=>{await d(()=>e(n).toBeVisible());const a=o?.offsetWidth;e(window.getComputedStyle(n).left).toBe(`${a}px`)}),await t("WHEN I click the collapse button in the first panel",async()=>{const a=i.getByText("Collapse");await s.click(a)}),await t("THEN I expect the second panel to have moved with the first panel",async()=>{e(window.getComputedStyle(o).width).toBe("56px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click the expand button in the first panel",async()=>{const a=i.getByTestId("expand-button");await s.click(a)}),await t("THEN I expect the first panel to expand and the second panel to move with it",async()=>{e(window.getComputedStyle(o).width).toBe("280px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click on the close button in the second panel",async()=>{const a=i.getByTestId("close-button");await s.click(a)}),await t("THEN I expect the second panel to be closed",async()=>{n.addEventListener("animationend",()=>{e(n).not.toBeVisible()},{once:!0})})})};export{r as nestedPanelTests};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as d}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as p}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import"../tab/tab.gator.js";import{KEY_CONSTANTS as o}from"../../../../consts/key-constants.js";import{createRef as u,ref as v}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{TestableLitElement as f}from"../../../../utils/components/testable-lit-element/testable-lit-element.js";import m from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.scss.js";import T from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js";import g from"../../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import $ from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{ifDefined as y}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var I=Object.defineProperty,A=Object.getOwnPropertyDescriptor,r=(t,e,i,b)=>{for(var a=b>1?void 0:b?A(e,i):e,h=t.length-1,c;h>=0;h--)(c=t[h])&&(a=(b?c(e,i,a):c(a))||a);return b&&a&&I(e,i,a),a};let s=class extends f{constructor(){super(...arguments),this.tabsetAriaLabelledByElements=[],this.tabsetAriaLabel=void 0,this.size="medium",this.activeTabIndex=0,this._contentRef=u(),this._tablistRef=u()}updated(t){super.updated(t),t.has("tabsetAriaLabelledByElements")&&(this._tablistRef.value.ariaLabelledByElements=this.tabsetAriaLabelledByElements)}render(){return this.tabs||(this.tabs=Array.from(this.querySelectorAll("ngc-tab"))),d`
|
|
2
2
|
<div class="gator-tabset">
|
|
3
|
-
<div ${v(this._tablistRef)} role="tablist" class="gator-tabset-header" aria-label=${
|
|
4
|
-
${this.tabs.map((t,e)=>
|
|
3
|
+
<div ${v(this._tablistRef)} role="tablist" class="gator-tabset-header" aria-label=${y(this.tabsetAriaLabel)}>
|
|
4
|
+
${this.tabs.map((t,e)=>d`
|
|
5
5
|
<div class="${this.tabSpacerClass} gator-tab"
|
|
6
6
|
id="gator-tab-${e+1}"
|
|
7
|
+
data-testid="${this.dataTestid?`${this.dataTestid}-tab-${e+1}`:`${t.name}-tab`}"
|
|
7
8
|
role="tab"
|
|
8
9
|
tabindex="${this.getButtonTabIndex(e)}"
|
|
9
10
|
@keydown="${i=>this.handleTabKeydown(i)}"
|
|
@@ -21,10 +22,11 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
21
22
|
</div>
|
|
22
23
|
`)}
|
|
23
24
|
</div>
|
|
24
|
-
${this.size==="large"?
|
|
25
|
+
${this.size==="large"?d`<div class="gator-tab-border"></div>`:null}
|
|
25
26
|
<div ${v(this._contentRef)}
|
|
26
27
|
aria-labelledby="gator-tab-${this.activeTabIndex+1}"
|
|
27
28
|
class="gator-tabset-content"
|
|
29
|
+
data-testid="${this.dataTestid?`${this.dataTestid}-tabpanel-${this.activeTabIndex+1}`:`${this.tabs[this.activeTabIndex].name}-tabpanel`}"
|
|
28
30
|
id="gator-tabpanel-${this.activeTabIndex+1}"
|
|
29
31
|
tabindex="0"
|
|
30
32
|
role="tabpanel"
|
|
@@ -32,4 +34,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
32
34
|
${this.tabs[this.activeTabIndex]}
|
|
33
35
|
</div>
|
|
34
36
|
</div>
|
|
35
|
-
`}get tabSizeClass(){return this.size?`gator-tab-button-${this.size}`:""}get tabContainerSizeClass(){return this.size?`gator-tab-container-${this.size}`:""}get tabSpacerClass(){return this.size!="large"?"":"gator-tabset-spacer"}getButtonTabIndex(t){return t===this.activeTabIndex?"0":"-1"}handleTabKeydown(t){if(!this.tabs)return;let e=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");if(t.key===o.RIGHT){if(this.activeTabIndex===this.tabs.length-1){this.focusFirstTab(),t.preventDefault();return}this.setActiveTab(this.activeTabIndex+1),e[this.activeTabIndex].focus()}else if(t.key===o.LEFT){if(this.activeTabIndex===0){this.focusLastTab(),t.preventDefault();return}this.setActiveTab(this.activeTabIndex-1),e[this.activeTabIndex].focus(),t.preventDefault()}else t.key===o.HOME?(this.focusFirstTab(),t.preventDefault()):t.key===o.END&&(this.focusLastTab(),t.preventDefault())}focusFirstTab(){let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.setActiveTab(0),t[this.activeTabIndex].focus()}focusLastTab(){if(!this.tabs)return;let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.setActiveTab(this.tabs.length-1),t[this.activeTabIndex].focus()}setActiveTab(t){this.activeTabIndex!==t&&(this.activeTabIndex=t,this.dispatchEvent(new CustomEvent("select",{detail:{index:t,tab:this.tabs?this.tabs[t]:null},bubbles:!0,composed:!0})))}};s.styles=[l(m),l(T),l(g),l(
|
|
37
|
+
`}get tabSizeClass(){return this.size?`gator-tab-button-${this.size}`:""}get tabContainerSizeClass(){return this.size?`gator-tab-container-${this.size}`:""}get tabSpacerClass(){return this.size!="large"?"":"gator-tabset-spacer"}getButtonTabIndex(t){return t===this.activeTabIndex?"0":"-1"}handleTabKeydown(t){if(!this.tabs)return;let e=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");if(t.key===o.RIGHT){if(this.activeTabIndex===this.tabs.length-1){this.focusFirstTab(),t.preventDefault();return}this.setActiveTab(this.activeTabIndex+1),e[this.activeTabIndex].focus()}else if(t.key===o.LEFT){if(this.activeTabIndex===0){this.focusLastTab(),t.preventDefault();return}this.setActiveTab(this.activeTabIndex-1),e[this.activeTabIndex].focus(),t.preventDefault()}else t.key===o.HOME?(this.focusFirstTab(),t.preventDefault()):t.key===o.END&&(this.focusLastTab(),t.preventDefault())}focusFirstTab(){let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.setActiveTab(0),t[this.activeTabIndex].focus()}focusLastTab(){if(!this.tabs)return;let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.setActiveTab(this.tabs.length-1),t[this.activeTabIndex].focus()}setActiveTab(t){this.activeTabIndex!==t&&(this.activeTabIndex=t,this.dispatchEvent(new CustomEvent("select",{detail:{index:t,tab:this.tabs?this.tabs[t]:null},bubbles:!0,composed:!0})))}};s.styles=[l(m),l(T),l(g),l($)];r([n({type:String,attribute:"tabset-aria-labelled-by-elements"})],s.prototype,"tabsetAriaLabelledByElements",2);r([n({type:String,attribute:"tabset-aria-label"})],s.prototype,"tabsetAriaLabel",2);r([n({type:String})],s.prototype,"size",2);r([n({type:Number,attribute:"active-tab-index"})],s.prototype,"activeTabIndex",2);s=r([p("ngc-tabset")],s);export{s as NgcTabset};
|
package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{diff as S,printDiffOrStringify as vt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js";import E from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{isMockFunction as H}from"../../../../../@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js";import{processError as Tt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js";import{use as Nt,util as R}from"../../../../../chai@5.2.
|
|
1
|
+
import{diff as S,printDiffOrStringify as vt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js";import E from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{isMockFunction as H}from"../../../../../@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js";import{processError as Tt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js";import{use as Nt,util as R}from"../../../../../chai@5.2.1/node_modules/chai/chai.js";import{getType as ut,noop as Ot,isObject as q,assertTypes as T}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js";import{s as j}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";const k=Symbol.for("matchers-object"),B=Symbol.for("$$jest-matchers-object"),ft=Symbol.for("expect-global"),ht=Symbol.for("asymmetric-matchers-object"),ae={toSatisfy(e,t,r){const{printReceived:c,printExpected:a,matcherHint:h}=this.utils,u=t(e);return{pass:u,message:()=>u?`${h(".not.toSatisfy","received","")}
|
|
2
2
|
|
|
3
3
|
Expected value to not satisfy:
|
|
4
4
|
${r||a(t)}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
var St=Object.defineProperty,hn=Object.getOwnPropertyNames,f=(e,t)=>St(e,"name",{value:t,configurable:!0}),dn=(e,t)=>function(){return t||(0,e[hn(e)[0]])((t={exports:{}}).exports,t),t.exports},Te=(e,t)=>{for(var n in t)St(e,n,{get:t[n],enumerable:!0})},pn=dn({"(disabled):util"(){}}),Y={};Te(Y,{addChainableMethod:()=>Ge,addLengthGuard:()=>U,addMethod:()=>ke,addProperty:()=>Fe,checkError:()=>j,compareByInspect:()=>ee,eql:()=>Jt,expectTypes:()=>At,flag:()=>b,getActual:()=>ie,getMessage:()=>qe,getName:()=>ue,getOperator:()=>Ue,getOwnEnumerableProperties:()=>Re,getOwnEnumerablePropertySymbols:()=>We,getPathInfo:()=>Be,hasProperty:()=>ae,inspect:()=>w,isNaN:()=>te,isNumeric:()=>P,isProxyEnabled:()=>R,isRegExp:()=>ne,objDisplay:()=>$,overwriteChainableMethod:()=>Le,overwriteMethod:()=>Ke,overwriteProperty:()=>Ve,proxify:()=>K,test:()=>De,transferFlags:()=>A,type:()=>v});var j={};Te(j,{compatibleConstructor:()=>Nt,compatibleInstance:()=>Pt,compatibleMessage:()=>Et,getConstructorName:()=>jt,getMessage:()=>Ot});function oe(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}f(oe,"isErrorInstance");function Mt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}f(Mt,"isRegExp");function Pt(e,t){return oe(t)&&e===t}f(Pt,"compatibleInstance");function Nt(e,t){return oe(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}f(Nt,"compatibleConstructor");function Et(e,t){const n=typeof e=="string"?e:e.message;return Mt(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:!1}f(Et,"compatibleMessage");function jt(e){let t=e;return oe(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}f(jt,"getConstructorName");function Ot(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}f(Ot,"getMessage");function b(e,t,n){let s=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)s[t]=n;else return s[t]}f(b,"flag");function De(e,t){let n=b(e,"negate"),s=t[0];return n?!s:s}f(De,"test");function v(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)}f(v,"type");var gn="captureStackTrace"in Error,z,x=(z=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(t="Unspecified AssertionError",n,s){super(t),this.message=t,gn&&Error.captureStackTrace(this,s||z);for(const r in n)r in this||(this[r]=n[r])}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},f(z,"AssertionError"),z);function At(e,t){let n=b(e,"message"),s=b(e,"ssfi");n=n?n+": ":"",e=b(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let r=t.map(function(a,l){let h=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&l===t.length-1?"or ":"")+h+" "+a}).join(", "),u=v(e).toLowerCase();if(!t.some(function(a){return u===a}))throw new x(n+"object tested must be "+r+", but "+u+" given",void 0,s)}f(At,"expectTypes");function ie(e,t){return t.length>4?t[4]:e._obj}f(ie,"getActual");var dt={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"]},bn={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},k="…";function Ct(e,t){const n=dt[bn[t]]||dt[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}f(Ct,"colorise");function Tt({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:s=!0,showProxy:r=!1,maxArrayLength:u=1/0,breakLength:a=1/0,seen:l=[],truncate:h=1/0,stylize:d=String}={},p){const g={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!s,showProxy:!!r,maxArrayLength:Number(u),breakLength:Number(a),truncate:Number(h),seen:l,inspect:p,stylize:d};return g.colors&&(g.stylize=Ct),g}f(Tt,"normaliseOptions");function Dt(e){return e>="\uD800"&&e<="\uDBFF"}f(Dt,"isHighSurrogate");function D(e,t,n=k){e=String(e);const s=n.length,r=e.length;if(s>t&&r>s)return n;if(r>t&&r>s){let u=t-s;return u>0&&Dt(e[u-1])&&(u=u-1),`${e.slice(0,u)}${n}`}return e}f(D,"truncate");function O(e,t,n,s=", "){n=n||t.inspect;const r=e.length;if(r===0)return"";const u=t.truncate;let a="",l="",h="";for(let d=0;d<r;d+=1){const p=d+1===e.length,g=d+2===e.length;h=`${k}(${e.length-d})`;const m=e[d];t.truncate=u-a.length-(p?0:s.length);const S=l||n(m,t)+(p?"":s),y=a.length+S.length,M=y+h.length;if(p&&y>u&&a.length+h.length<=u||!p&&!g&&M>u||(l=p?"":n(e[d+1],t)+(g?"":s),!p&&g&&M>u&&y+l.length>u))break;if(a+=S,!p&&!g&&y+l.length>=u){h=`${k}(${e.length-d-1})`;break}h=""}return`${a}${h}`}f(O,"inspectList");function It(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}f(It,"quoteComplexKey");function V([e,t],n){return n.truncate-=2,typeof e=="string"?e=It(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}f(V,"inspectProperty");function qt(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const s=O(e,t);t.truncate-=s.length;let r="";return n.length&&(r=O(n.map(u=>[u,e[u]]),t,V)),`[ ${s}${r?`, ${r}`:""} ]`}f(qt,"inspectArray");var yn=f(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function C(e,t){const n=yn(e);t.truncate-=n.length+4;const s=Object.keys(e).slice(e.length);if(!e.length&&!s.length)return`${n}[]`;let r="";for(let a=0;a<e.length;a++){const l=`${t.stylize(D(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){r+=`${k}(${e.length-e[a]+1})`;break}r+=l}let u="";return s.length&&(u=O(s.map(a=>[a,e[a]]),t,V)),`${n}[ ${r}${u?`, ${u}`:""} ]`}f(C,"inspectTypedArray");function $t(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const s=n.split("T"),r=s[0];return t.stylize(`${r}T${D(s[1],t.truncate-r.length-1)}`,"date")}f($t,"inspectDate");function ye(e,t){const n=e[Symbol.toStringTag]||"Function",s=e.name;return s?t.stylize(`[${n} ${D(s,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}f(ye,"inspectFunction");function zt([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}f(zt,"inspectMapEntry");function _t(e){const t=[];return e.forEach((n,s)=>{t.push([s,n])}),t}f(_t,"mapToEntries");function Bt(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${O(_t(e),t,zt)} }`)}f(Bt,"inspectMap");var mn=Number.isNaN||(e=>e!==e);function me(e,t){return mn(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(D(String(e),t.truncate),"number")}f(me,"inspectNumber");function we(e,t){let n=D(e.toString(),t.truncate-1);return n!==k&&(n+="n"),t.stylize(n,"bigint")}f(we,"inspectBigInt");function Ft(e,t){const n=e.toString().split("/")[2],s=t.truncate-(2+n.length),r=e.source;return t.stylize(`/${D(r,s)}/${n}`,"regexp")}f(Ft,"inspectRegExp");function kt(e){const t=[];return e.forEach(n=>{t.push(n)}),t}f(kt,"arrayFromSet");function Vt(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${O(kt(e),t)} }`)}f(Vt,"inspectSet");var pt=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),wn={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},xn=16;function Kt(e){return wn[e]||`\\u${`0000${e.charCodeAt(0).toString(xn)}`.slice(-4)}`}f(Kt,"escape");function xe(e,t){return pt.test(e)&&(e=e.replace(pt,Kt)),t.stylize(`'${D(e,t.truncate-2)}'`,"string")}f(xe,"inspectString");function ve(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}f(ve,"inspectSymbol");var Gt=f(()=>"Promise{…}","getPromiseValue");try{const{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Gt=f((s,r)=>{const[u,a]=e(s);return u===t?"Promise{<pending>}":`Promise${u===n?"!":""}{${r.inspect(a,r)}}`},"getPromiseValue"))}catch{}var vn=Gt;function L(e,t){const n=Object.getOwnPropertyNames(e),s=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&s.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const r=O(n.map(l=>[l,e[l]]),t,V),u=O(s.map(l=>[l,e[l]]),t,V);t.seen.pop();let a="";return r&&u&&(a=", "),`{ ${r}${a}${u} }`}f(L,"inspectObject");var ge=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Lt(e,t){let n="";return ge&&ge in e&&(n=e[ge]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${L(e,t)}`}f(Lt,"inspectClass");function Wt(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${O(e,t)} ]`)}f(Wt,"inspectArguments");var Sn=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Rt(e,t){const n=Object.getOwnPropertyNames(e).filter(a=>Sn.indexOf(a)===-1),s=e.name;t.truncate-=s.length;let r="";if(typeof e.message=="string"?r=D(e.message,t.truncate):n.unshift("message"),r=r?`: ${r}`:"",t.truncate-=r.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const u=O(n.map(a=>[a,e[a]]),t,V);return`${s}${r}${u?` { ${u} }`:""}`}f(Rt,"inspectObject");function Ut([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}f(Ut,"inspectAttribute");function Q(e,t){return O(e,t,Ie,`
|
|
2
|
+
`)}f(Q,"inspectHTMLCollection");function Ie(e,t){const n=e.getAttributeNames(),s=e.tagName.toLowerCase(),r=t.stylize(`<${s}`,"special"),u=t.stylize(">","special"),a=t.stylize(`</${s}>`,"special");t.truncate-=s.length*2+5;let l="";n.length>0&&(l+=" ",l+=O(n.map(p=>[p,e.getAttribute(p)]),t,Ut," ")),t.truncate-=l.length;const h=t.truncate;let d=Q(e.children,t);return d&&d.length>h&&(d=`${k}(${e.children.length})`),`${r}${l}${u}${d}${a}`}f(Ie,"inspectHTML");var Mn=typeof Symbol=="function"&&typeof Symbol.for=="function",be=Mn?Symbol.for("chai/inspect"):"@@chai/inspect",F=!1;try{const e=pn();F=e.inspect?e.inspect.custom:!1}catch{F=!1}var gt=new WeakMap,bt={},yt={undefined:f((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:f((e,t)=>t.stylize("null","null"),"null"),boolean:f((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:f((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:me,Number:me,bigint:we,BigInt:we,string:xe,String:xe,function:ye,Function:ye,symbol:ve,Symbol:ve,Array:qt,Date:$t,Map:Bt,Set:Vt,RegExp:Ft,Promise:vn,WeakSet:f((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:f((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Wt,Int8Array:C,Uint8Array:C,Uint8ClampedArray:C,Int16Array:C,Uint16Array:C,Int32Array:C,Uint32Array:C,Float32Array:C,Float64Array:C,Generator:f(()=>"","Generator"),DataView:f(()=>"","DataView"),ArrayBuffer:f(()=>"","ArrayBuffer"),Error:Rt,HTMLCollection:Q,NodeList:Q},Pn=f((e,t,n)=>be in e&&typeof e[be]=="function"?e[be](t):F&&F in e&&typeof e[F]=="function"?e[F](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&>.has(e.constructor)?gt.get(e.constructor)(e,t):bt[n]?bt[n](e,t):"","inspectCustom"),Nn=Object.prototype.toString;function X(e,t={}){const n=Tt(t,X),{customInspect:s}=n;let r=e===null?"null":typeof e;if(r==="object"&&(r=Nn.call(e).slice(8,-1)),r in yt)return yt[r](e,n);if(s&&e){const a=Pn(e,n,r);if(a)return typeof a=="string"?a:X(a,n)}const u=e?Object.getPrototypeOf(e):!1;return u===Object.prototype||u===null?L(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ie(e,n):"constructor"in e?e.constructor!==Object?Lt(e,n):L(e,n):e===Object(e)?L(e,n):n.stylize(String(e),r)}f(X,"inspect");var E={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function w(e,t,n,s){let r={colors:s,depth:typeof n>"u"?2:n,showHidden:t,truncate:E.truncateThreshold?E.truncateThreshold:1/0};return X(e,r)}f(w,"inspect");function $(e){let t=w(e),n=Object.prototype.toString.call(e);if(E.truncateThreshold&&t.length>=E.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 s=Object.keys(e);return"{ Object ("+(s.length>2?s.splice(0,2).join(", ")+", ...":s.join(", "))+") }"}else return t}else return t}f($,"objDisplay");function qe(e,t){let n=b(e,"negate"),s=b(e,"object"),r=t[3],u=ie(e,t),a=n?t[2]:t[1],l=b(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return $(s)}).replace(/#\{act\}/g,function(){return $(u)}).replace(/#\{exp\}/g,function(){return $(r)}),l?l+": "+a:a}f(qe,"getMessage");function A(e,t,n){let s=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:!0;for(let r in s)(n||r!=="object"&&r!=="ssfi"&&r!=="lockSsfi"&&r!="message")&&(t.__flags[r]=s[r])}f(A,"transferFlags");function Se(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)}f(Se,"type");function $e(){this._key="chai/deep-eql__"+Math.random()+Date.now()}f($e,"FakeMap");$e.prototype={get:f(function(t){return t[this._key]},"get"),set:f(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:!0})},"set")};var Zt=typeof WeakMap=="function"?WeakMap:$e;function Me(e,t,n){if(!n||B(e)||B(t))return null;var s=n.get(e);if(s){var r=s.get(t);if(typeof r=="boolean")return r}return null}f(Me,"memoizeCompare");function G(e,t,n,s){if(!(!n||B(e)||B(t))){var r=n.get(e);r?r.set(t,s):(r=new Zt,r.set(t,s),n.set(e,r))}}f(G,"memoizeSet");var Jt=W;function W(e,t,n){if(n&&n.comparator)return Pe(e,t,n);var s=ze(e,t);return s!==null?s:Pe(e,t,n)}f(W,"deepEqual");function ze(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:B(e)||B(t)?!1:null}f(ze,"simpleEqual");function Pe(e,t,n){n=n||{},n.memoize=n.memoize===!1?!1:n.memoize||new Zt;var s=n&&n.comparator,r=Me(e,t,n.memoize);if(r!==null)return r;var u=Me(t,e,n.memoize);if(u!==null)return u;if(s){var a=s(e,t);if(a===!1||a===!0)return G(e,t,n.memoize,a),a;var l=ze(e,t);if(l!==null)return l}var h=Se(e);if(h!==Se(t))return G(e,t,n.memoize,!1),!1;G(e,t,n.memoize,!0);var d=Yt(e,t,h,n);return G(e,t,n.memoize,d),d}f(Pe,"extensiveDeepEqual");function Yt(e,t,n,s){switch(n){case"String":case"Number":case"Boolean":case"Date":return W(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return _e(e,t,["name","message","code"],s);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return q(e,t,s);case"RegExp":return Qt(e,t);case"Generator":return Xt(e,t,s);case"DataView":return q(new Uint8Array(e.buffer),new Uint8Array(t.buffer),s);case"ArrayBuffer":return q(new Uint8Array(e),new Uint8Array(t),s);case"Set":return Ne(e,t,s);case"Map":return Ne(e,t,s);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 en(e,t,s)}}f(Yt,"extensiveDeepEqualByType");function Qt(e,t){return e.toString()===t.toString()}f(Qt,"regexpEqual");function Ne(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var s=[],r=[];return e.forEach(f(function(a,l){s.push([a,l])},"gatherEntries")),t.forEach(f(function(a,l){r.push([a,l])},"gatherEntries")),q(s.sort(),r.sort(),n)}f(Ne,"entriesEqual");function q(e,t,n){var s=e.length;if(s!==t.length)return!1;if(s===0)return!0;for(var r=-1;++r<s;)if(W(e[r],t[r],n)===!1)return!1;return!0}f(q,"iterableEqual");function Xt(e,t,n){return q(H(e),H(t),n)}f(Xt,"generatorEqual");function Ht(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}f(Ht,"hasIteratorFunction");function Ee(e){if(Ht(e))try{return H(e[Symbol.iterator]())}catch{return[]}return[]}f(Ee,"getIteratorEntries");function H(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}f(H,"getGeneratorEntries");function je(e){var t=[];for(var n in e)t.push(n);return t}f(je,"getEnumerableKeys");function Oe(e){for(var t=[],n=Object.getOwnPropertySymbols(e),s=0;s<n.length;s+=1){var r=n[s];Object.getOwnPropertyDescriptor(e,r).enumerable&&t.push(r)}return t}f(Oe,"getEnumerableSymbols");function _e(e,t,n,s){var r=n.length;if(r===0)return!0;for(var u=0;u<r;u+=1)if(W(e[n[u]],t[n[u]],s)===!1)return!1;return!0}f(_e,"keysEqual");function en(e,t,n){var s=je(e),r=je(t),u=Oe(e),a=Oe(t);if(s=s.concat(u),r=r.concat(a),s.length&&s.length===r.length)return q(Ae(s).sort(),Ae(r).sort())===!1?!1:_e(e,t,s,n);var l=Ee(e),h=Ee(t);return l.length&&l.length===h.length?(l.sort(),h.sort(),q(l,h,n)):s.length===0&&l.length===0&&r.length===0&&h.length===0}f(en,"objectEqual");function B(e){return e===null||typeof e!="object"}f(B,"isPrimitive");function Ae(e){return e.map(f(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"))}f(Ae,"mapSymbols");function ae(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}f(ae,"hasProperty");function tn(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(s=>{if(s==="constructor"||s==="__proto__"||s==="prototype")return{};const u=/^\[(\d+)\]$/.exec(s);let a=null;return u?a={i:parseFloat(u[1])}:a={p:s.replace(/\\([.[\]])/g,"$1")},a})}f(tn,"parsePath");function Ce(e,t,n){let s=e,r=null;n=typeof n>"u"?t.length:n;for(let u=0;u<n;u++){const a=t[u];s&&(typeof a.p>"u"?s=s[a.i]:s=s[a.p],u===n-1&&(r=s))}return r}f(Ce,"internalGetPathValue");function Be(e,t){const n=tn(t),s=n[n.length-1],r={parent:n.length>1?Ce(e,n,n.length-1):e,name:s.p||s.i,value:Ce(e,n)};return r.exists=ae(r.parent,r.name),r}f(Be,"getPathInfo");var _,i=(_=class{__flags={};constructor(t,n,s,r){return b(this,"ssfi",s||_),b(this,"lockSsfi",r),b(this,"object",t),b(this,"message",n),b(this,"eql",E.deepEqual||Jt),K(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),E.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),E.includeStack=t}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),E.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),E.showDiff=t}static addProperty(t,n){Fe(this.prototype,t,n)}static addMethod(t,n){ke(this.prototype,t,n)}static addChainableMethod(t,n,s){Ge(this.prototype,t,n,s)}static overwriteProperty(t,n){Ve(this.prototype,t,n)}static overwriteMethod(t,n){Ke(this.prototype,t,n)}static overwriteChainableMethod(t,n,s){Le(this.prototype,t,n,s)}assert(t,n,s,r,u,a){const l=De(this,arguments);if(a!==!1&&(a=!0),r===void 0&&u===void 0&&(a=!1),E.showDiff!==!0&&(a=!1),!l){n=qe(this,arguments);const d={actual:ie(this,arguments),expected:r,showDiff:a},p=Ue(this,arguments);throw p&&(d.operator=p),new x(n,d,E.includeStack?this.assert:b(this,"ssfi"))}}get _obj(){return b(this,"object")}set _obj(t){b(this,"object",t)}},f(_,"Assertion"),_);function R(){return E.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}f(R,"isProxyEnabled");function Fe(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:f(function s(){!R()&&!b(this,"lockSsfi")&&b(this,"ssfi",s);let r=n.call(this);if(r!==void 0)return r;let u=new i;return A(this,u),u},"propertyGetter"),configurable:!0})}f(Fe,"addProperty");var En=Object.getOwnPropertyDescriptor(function(){},"length");function U(e,t,n){return En.configurable&&Object.defineProperty(e,"length",{get:f(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}f(U,"addLengthGuard");function nn(e){let t=Object.getOwnPropertyNames(e);function n(r){t.indexOf(r)===-1&&t.push(r)}f(n,"addProperty");let s=Object.getPrototypeOf(e);for(;s!==null;)Object.getOwnPropertyNames(s).forEach(n),s=Object.getPrototypeOf(s);return t}f(nn,"getProperties");var mt=["__flags","__methods","_obj","assert"];function K(e,t){return R()?new Proxy(e,{get:f(function n(s,r){if(typeof r=="string"&&E.proxyExcludedKeys.indexOf(r)===-1&&!Reflect.has(s,r)){if(t)throw Error("Invalid Chai property: "+t+"."+r+'. See docs for proper usage of "'+t+'".');let u=null,a=4;throw nn(s).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&mt.indexOf(l)===-1){let h=sn(r,l,a);h<a&&(u=l,a=h)}}),Error(u!==null?"Invalid Chai property: "+r+'. Did you mean "'+u+'"?':"Invalid Chai property: "+r)}return mt.indexOf(r)===-1&&!b(s,"lockSsfi")&&b(s,"ssfi",n),Reflect.get(s,r)},"proxyGetter")}):e}f(K,"proxify");function sn(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let s=[];for(let r=0;r<=e.length;r++)s[r]=Array(t.length+1).fill(0),s[r][0]=r;for(let r=0;r<t.length;r++)s[0][r]=r;for(let r=1;r<=e.length;r++){let u=e.charCodeAt(r-1);for(let a=1;a<=t.length;a++){if(Math.abs(r-a)>=n){s[r][a]=n;continue}s[r][a]=Math.min(s[r-1][a]+1,s[r][a-1]+1,s[r-1][a-1]+(u===t.charCodeAt(a-1)?0:1))}}return s[e.length][t.length]}f(sn,"stringDistanceCapped");function ke(e,t,n){let s=f(function(){b(this,"lockSsfi")||b(this,"ssfi",s);let r=n.apply(this,arguments);if(r!==void 0)return r;let u=new i;return A(this,u),u},"methodWrapper");U(s,t,!1),e[t]=K(s,t)}f(ke,"addMethod");function Ve(e,t,n){let s=Object.getOwnPropertyDescriptor(e,t),r=f(function(){},"_super");s&&typeof s.get=="function"&&(r=s.get),Object.defineProperty(e,t,{get:f(function u(){!R()&&!b(this,"lockSsfi")&&b(this,"ssfi",u);let a=b(this,"lockSsfi");b(this,"lockSsfi",!0);let l=n(r).call(this);if(b(this,"lockSsfi",a),l!==void 0)return l;let h=new i;return A(this,h),h},"overwritingPropertyGetter"),configurable:!0})}f(Ve,"overwriteProperty");function Ke(e,t,n){let s=e[t],r=f(function(){throw new Error(t+" is not a function")},"_super");s&&typeof s=="function"&&(r=s);let u=f(function(){b(this,"lockSsfi")||b(this,"ssfi",u);let a=b(this,"lockSsfi");b(this,"lockSsfi",!0);let l=n(r).apply(this,arguments);if(b(this,"lockSsfi",a),l!==void 0)return l;let h=new i;return A(this,h),h},"overwritingMethodWrapper");U(u,t,!1),e[t]=K(u,t)}f(Ke,"overwriteMethod");var jn=typeof Object.setPrototypeOf=="function",wt=f(function(){},"testFn"),On=Object.getOwnPropertyNames(wt).filter(function(e){let t=Object.getOwnPropertyDescriptor(wt,e);return typeof t!="object"?!0:!t.configurable}),An=Function.prototype.call,Cn=Function.prototype.apply;function Ge(e,t,n,s){typeof s!="function"&&(s=f(function(){},"chainingBehavior"));let r={method:n,chainingBehavior:s};e.__methods||(e.__methods={}),e.__methods[t]=r,Object.defineProperty(e,t,{get:f(function(){r.chainingBehavior.call(this);let a=f(function(){b(this,"lockSsfi")||b(this,"ssfi",a);let l=r.method.apply(this,arguments);if(l!==void 0)return l;let h=new i;return A(this,h),h},"chainableMethodWrapper");if(U(a,t,!0),jn){let l=Object.create(this);l.call=An,l.apply=Cn,Object.setPrototypeOf(a,l)}else Object.getOwnPropertyNames(e).forEach(function(h){if(On.indexOf(h)!==-1)return;let d=Object.getOwnPropertyDescriptor(e,h);Object.defineProperty(a,h,d)});return A(this,a),K(a)},"chainableMethodGetter"),configurable:!0})}f(Ge,"addChainableMethod");function Le(e,t,n,s){let r=e.__methods[t],u=r.chainingBehavior;r.chainingBehavior=f(function(){let h=s(u).call(this);if(h!==void 0)return h;let d=new i;return A(this,d),d},"overwritingChainableMethodGetter");let a=r.method;r.method=f(function(){let h=n(a).apply(this,arguments);if(h!==void 0)return h;let d=new i;return A(this,d),d},"overwritingChainableMethodWrapper")}f(Le,"overwriteChainableMethod");function ee(e,t){return w(e)<w(t)?-1:1}f(ee,"compareByInspect");function We(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}f(We,"getOwnEnumerablePropertySymbols");function Re(e){return Object.keys(e).concat(We(e))}f(Re,"getOwnEnumerableProperties");var te=Number.isNaN;function rn(e){let t=v(e);return["Array","Object","Function"].indexOf(t)!==-1}f(rn,"isObjectType");function Ue(e,t){let n=b(e,"operator"),s=b(e,"negate"),r=t[3],u=s?t[2]:t[1];if(n)return n;if(typeof u=="function"&&(u=u()),u=u||"",!u||/\shave\s/.test(u))return;let a=rn(r);return/\snot\s/.test(u)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}f(Ue,"getOperator");function ue(e){return e.name}f(ue,"getName");function ne(e){return Object.prototype.toString.call(e)==="[object RegExp]"}f(ne,"isRegExp");function P(e){return["Number","BigInt"].includes(v(e))}f(P,"isNumeric");var{flag:c}=Y;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){i.addProperty(e)});i.addProperty("not",function(){c(this,"negate",!0)});i.addProperty("deep",function(){c(this,"deep",!0)});i.addProperty("nested",function(){c(this,"nested",!0)});i.addProperty("own",function(){c(this,"own",!0)});i.addProperty("ordered",function(){c(this,"ordered",!0)});i.addProperty("any",function(){c(this,"any",!0),c(this,"all",!1)});i.addProperty("all",function(){c(this,"all",!0),c(this,"any",!1)});var xt={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Ze(e,t){t&&c(this,"message",t),e=e.toLowerCase();let n=c(this,"object"),s=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const r=v(n).toLowerCase();xt.function.includes(e)?this.assert(xt[e].includes(r),"expected #{this} to be "+s+e,"expected #{this} not to be "+s+e):this.assert(e===r,"expected #{this} to be "+s+e,"expected #{this} not to be "+s+e)}f(Ze,"an");i.addChainableMethod("an",Ze);i.addChainableMethod("a",Ze);function on(e,t){return te(e)&&te(t)||e===t}f(on,"SameValueZero");function Z(){c(this,"contains",!0)}f(Z,"includeChainingBehavior");function J(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=v(n).toLowerCase(),r=c(this,"message"),u=c(this,"negate"),a=c(this,"ssfi"),l=c(this,"deep"),h=l?"deep ":"",d=l?c(this,"eql"):on;r=r?r+": ":"";let p=!1;switch(s){case"string":p=n.indexOf(e)!==-1;break;case"weakset":if(l)throw new x(r+"unable to use .deep.include with WeakSet",void 0,a);p=n.has(e);break;case"map":n.forEach(function(g){p=p||d(g,e)});break;case"set":l?n.forEach(function(g){p=p||d(g,e)}):p=n.has(e);break;case"array":l?p=n.some(function(g){return d(g,e)}):p=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new x(r+"the given combination of arguments ("+s+" and "+v(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 "+v(e).toLowerCase(),void 0,a);let g=Object.keys(e),m=null,S=0;if(g.forEach(function(y){let M=new i(n);if(A(this,M,!0),c(M,"lockSsfi",!0),!u||g.length===1){M.property(y,e[y]);return}try{M.property(y,e[y])}catch(I){if(!j.compatibleConstructor(I,x))throw I;m===null&&(m=I),S++}},this),u&&g.length>1&&S===g.length)throw m;return}}this.assert(p,"expected #{this} to "+h+"include "+w(e),"expected #{this} to not "+h+"include "+w(e))}f(J,"include");i.addChainableMethod("include",J,Z);i.addChainableMethod("contain",J,Z);i.addChainableMethod("contains",J,Z);i.addChainableMethod("includes",J,Z);i.addProperty("ok",function(){this.assert(c(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});i.addProperty("true",function(){this.assert(c(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!c(this,"negate"))});i.addProperty("numeric",function(){const e=c(this,"object");this.assert(["Number","BigInt"].includes(v(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!c(this,"negate"))});i.addProperty("callable",function(){const e=c(this,"object"),t=c(this,"ssfi"),n=c(this,"message"),s=n?`${n}: `:"",r=c(this,"negate"),u=r?`${s}expected ${w(e)} not to be a callable function`:`${s}expected ${w(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(v(e));if(a&&r||!a&&!r)throw new x(u,void 0,t)});i.addProperty("false",function(){this.assert(c(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!c(this,"negate"))});i.addProperty("null",function(){this.assert(c(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});i.addProperty("undefined",function(){this.assert(c(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});i.addProperty("NaN",function(){this.assert(te(c(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Je(){let e=c(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}f(Je,"assertExist");i.addProperty("exist",Je);i.addProperty("exists",Je);i.addProperty("empty",function(){let e=c(this,"object"),t=c(this,"ssfi"),n=c(this,"message"),s;switch(n=n?n+": ":"",v(e).toLowerCase()){case"array":case"string":s=e.length;break;case"map":case"set":s=e.size;break;case"weakmap":case"weakset":throw new x(n+".empty was passed a weak collection",void 0,t);case"function":{const r=n+".empty was passed a function "+ue(e);throw new x(r.trim(),void 0,t)}default:if(e!==Object(e))throw new x(n+".empty was passed non-string primitive "+w(e),void 0,t);s=Object.keys(e).length}this.assert(s===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Ye(){let e=c(this,"object"),t=v(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}f(Ye,"checkArguments");i.addProperty("arguments",Ye);i.addProperty("Arguments",Ye);function ce(e,t){t&&c(this,"message",t);let n=c(this,"object");if(c(this,"deep")){let s=c(this,"lockSsfi");c(this,"lockSsfi",!0),this.eql(e),c(this,"lockSsfi",s)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}f(ce,"assertEqual");i.addMethod("equal",ce);i.addMethod("equals",ce);i.addMethod("eq",ce);function Qe(e,t){t&&c(this,"message",t);let n=c(this,"eql");this.assert(n(e,c(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}f(Qe,"assertEql");i.addMethod("eql",Qe);i.addMethod("eqls",Qe);function le(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase();if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")throw new x(u+"the argument to above must be a date",void 0,a);if(!P(e)&&(s||P(n)))throw new x(u+"the argument to above must be a number",void 0,a);if(!s&&l!=="date"&&!P(n)){let d=l==="string"?"'"+n+"'":n;throw new x(u+"expected "+d+" to be a number or a date",void 0,a)}if(s){let d="length",p;l==="map"||l==="set"?(d="size",p=n.size):p=n.length,this.assert(p>e,"expected #{this} to have a "+d+" above #{exp} but got #{act}","expected #{this} to not have a "+d+" above #{exp}",e,p)}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}f(le,"assertAbove");i.addMethod("above",le);i.addMethod("gt",le);i.addMethod("greaterThan",le);function fe(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase(),d,p=!0;if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")d=u+"the argument to least must be a date";else if(!P(e)&&(s||P(n)))d=u+"the argument to least must be a number";else if(!s&&l!=="date"&&!P(n)){let g=l==="string"?"'"+n+"'":n;d=u+"expected "+g+" to be a number or a date"}else p=!1;if(p)throw new x(d,void 0,a);if(s){let g="length",m;l==="map"||l==="set"?(g="size",m=n.size):m=n.length,this.assert(m>=e,"expected #{this} to have a "+g+" at least #{exp} but got #{act}","expected #{this} to have a "+g+" below #{exp}",e,m)}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}f(fe,"assertLeast");i.addMethod("least",fe);i.addMethod("gte",fe);i.addMethod("greaterThanOrEqual",fe);function he(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase(),d,p=!0;if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")d=u+"the argument to below must be a date";else if(!P(e)&&(s||P(n)))d=u+"the argument to below must be a number";else if(!s&&l!=="date"&&!P(n)){let g=l==="string"?"'"+n+"'":n;d=u+"expected "+g+" to be a number or a date"}else p=!1;if(p)throw new x(d,void 0,a);if(s){let g="length",m;l==="map"||l==="set"?(g="size",m=n.size):m=n.length,this.assert(m<e,"expected #{this} to have a "+g+" below #{exp} but got #{act}","expected #{this} to not have a "+g+" below #{exp}",e,m)}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}f(he,"assertBelow");i.addMethod("below",he);i.addMethod("lt",he);i.addMethod("lessThan",he);function de(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase(),d,p=!0;if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")d=u+"the argument to most must be a date";else if(!P(e)&&(s||P(n)))d=u+"the argument to most must be a number";else if(!s&&l!=="date"&&!P(n)){let g=l==="string"?"'"+n+"'":n;d=u+"expected "+g+" to be a number or a date"}else p=!1;if(p)throw new x(d,void 0,a);if(s){let g="length",m;l==="map"||l==="set"?(g="size",m=n.size):m=n.length,this.assert(m<=e,"expected #{this} to have a "+g+" at most #{exp} but got #{act}","expected #{this} to have a "+g+" above #{exp}",e,m)}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}f(de,"assertMost");i.addMethod("most",de);i.addMethod("lte",de);i.addMethod("lessThanOrEqual",de);i.addMethod("within",function(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"doLength"),u=c(this,"message"),a=u?u+": ":"",l=c(this,"ssfi"),h=v(s).toLowerCase(),d=v(e).toLowerCase(),p=v(t).toLowerCase(),g,m=!0,S=d==="date"&&p==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(r&&h!=="map"&&h!=="set"&&new i(s,u,l,!0).to.have.property("length"),!r&&h==="date"&&(d!=="date"||p!=="date"))g=a+"the arguments to within must be dates";else if((!P(e)||!P(t))&&(r||P(s)))g=a+"the arguments to within must be numbers";else if(!r&&h!=="date"&&!P(s)){let y=h==="string"?"'"+s+"'":s;g=a+"expected "+y+" to be a number or a date"}else m=!1;if(m)throw new x(g,void 0,l);if(r){let y="length",M;h==="map"||h==="set"?(y="size",M=s.size):M=s.length,this.assert(M>=e&&M<=t,"expected #{this} to have a "+y+" within "+S,"expected #{this} to not have a "+y+" within "+S)}else this.assert(s>=e&&s<=t,"expected #{this} to be within "+S,"expected #{this} to not be within "+S)});function Xe(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"ssfi"),r=c(this,"message"),u;try{u=n instanceof e}catch(l){throw l instanceof TypeError?(r=r?r+": ":"",new x(r+"The instanceof assertion needs a constructor but "+v(e)+" was given.",void 0,s)):l}let a=ue(e);a==null&&(a="an unnamed constructor"),this.assert(u,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}f(Xe,"assertInstanceOf");i.addMethod("instanceof",Xe);i.addMethod("instanceOf",Xe);function He(e,t,n){n&&c(this,"message",n);let s=c(this,"nested"),r=c(this,"own"),u=c(this,"message"),a=c(this,"object"),l=c(this,"ssfi"),h=typeof e;if(u=u?u+": ":"",s){if(h!=="string")throw new x(u+"the argument to property must be a string when using nested syntax",void 0,l)}else if(h!=="string"&&h!=="number"&&h!=="symbol")throw new x(u+"the argument to property must be a string, number, or symbol",void 0,l);if(s&&r)throw new x(u+'The "nested" and "own" flags cannot be combined.',void 0,l);if(a==null)throw new x(u+"Target cannot be null or undefined.",void 0,l);let d=c(this,"deep"),p=c(this,"negate"),g=s?Be(a,e):null,m=s?g.value:a[e],S=d?c(this,"eql"):(I,N)=>I===N,y="";d&&(y+="deep "),r&&(y+="own "),s&&(y+="nested "),y+="property ";let M;r?M=Object.prototype.hasOwnProperty.call(a,e):s?M=g.exists:M=ae(a,e),(!p||arguments.length===1)&&this.assert(M,"expected #{this} to have "+y+w(e),"expected #{this} to not have "+y+w(e)),arguments.length>1&&this.assert(M&&S(t,m),"expected #{this} to have "+y+w(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+w(e)+" of #{act}",t,m),c(this,"object",m)}f(He,"assertProperty");i.addMethod("property",He);function et(e,t,n){c(this,"own",!0),He.apply(this,arguments)}f(et,"assertOwnProperty");i.addMethod("ownProperty",et);i.addMethod("haveOwnProperty",et);function tt(e,t,n){typeof t=="string"&&(n=t,t=null),n&&c(this,"message",n);let s=c(this,"object"),r=Object.getOwnPropertyDescriptor(Object(s),e),u=c(this,"eql");r&&t?this.assert(u(t,r),"expected the own property descriptor for "+w(e)+" on #{this} to match "+w(t)+", got "+w(r),"expected the own property descriptor for "+w(e)+" on #{this} to not match "+w(t),t,r,!0):this.assert(r,"expected #{this} to have an own property descriptor for "+w(e),"expected #{this} to not have an own property descriptor for "+w(e)),c(this,"object",r)}f(tt,"assertOwnPropertyDescriptor");i.addMethod("ownPropertyDescriptor",tt);i.addMethod("haveOwnPropertyDescriptor",tt);function nt(){c(this,"doLength",!0)}f(nt,"assertLengthChain");function st(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=v(n).toLowerCase(),r=c(this,"message"),u=c(this,"ssfi"),a="length",l;switch(s){case"map":case"set":a="size",l=n.size;break;default:new i(n,r,u,!0).to.have.property("length"),l=n.length}this.assert(l==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,l)}f(st,"assertLength");i.addChainableMethod("length",st,nt);i.addChainableMethod("lengthOf",st,nt);function rt(e,t){t&&c(this,"message",t);let n=c(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}f(rt,"assertMatch");i.addMethod("match",rt);i.addMethod("matches",rt);i.addMethod("string",function(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"message"),r=c(this,"ssfi");new i(n,s,r,!0).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+w(e),"expected #{this} to not contain "+w(e))});function ot(e){let t=c(this,"object"),n=v(t),s=v(e),r=c(this,"ssfi"),u=c(this,"deep"),a,l="",h,d=!0,p=c(this,"message");p=p?p+": ":"";let g=p+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(n==="Map"||n==="Set")l=u?"deeply ":"",h=[],t.forEach(function(N,T){h.push(T)}),s!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(h=Re(t),s){case"Array":if(arguments.length>1)throw new x(g,void 0,r);break;case"Object":if(arguments.length>1)throw new x(g,void 0,r);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(N){return typeof N=="symbol"?N:String(N)})}if(!e.length)throw new x(p+"keys required",void 0,r);let m=e.length,S=c(this,"any"),y=c(this,"all"),M=e,I=u?c(this,"eql"):(N,T)=>N===T;if(!S&&!y&&(y=!0),S&&(d=M.some(function(N){return h.some(function(T){return I(N,T)})})),y&&(d=M.every(function(N){return h.some(function(T){return I(N,T)})}),c(this,"contains")||(d=d&&e.length==h.length)),m>1){e=e.map(function(T){return w(T)});let N=e.pop();y&&(a=e.join(", ")+", and "+N),S&&(a=e.join(", ")+", or "+N)}else a=w(e[0]);a=(m>1?"keys ":"key ")+a,a=(c(this,"contains")?"contain ":"have ")+a,this.assert(d,"expected #{this} to "+l+a,"expected #{this} to not "+l+a,M.slice(0).sort(ee),h.sort(ee),!0)}f(ot,"assertKeys");i.addMethod("keys",ot);i.addMethod("key",ot);function pe(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"ssfi"),u=c(this,"message"),a=c(this,"negate")||!1;new i(s,u,r,!0).is.a("function"),(ne(e)||typeof e=="string")&&(t=e,e=null);let l,h=!1;try{s()}catch(S){h=!0,l=S}let d=e===void 0&&t===void 0,p=!!(e&&t),g=!1,m=!1;if(d||!d&&!a){let S="an error";e instanceof Error?S="#{exp}":e&&(S=j.getConstructorName(e));let y=l;if(l instanceof Error)y=l.toString();else if(typeof l=="string")y=l;else if(l&&(typeof l=="object"||typeof l=="function"))try{y=j.getConstructorName(l)}catch{}this.assert(h,"expected #{this} to throw "+S,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&l&&(e instanceof Error&&j.compatibleInstance(l,e)===a&&(p&&a?g=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l&&!a?" but #{act} was thrown":""),e.toString(),l.toString())),j.compatibleConstructor(l,e)===a&&(p&&a?g=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&j.getConstructorName(e),l instanceof Error?l.toString():l&&j.getConstructorName(l)))),l&&t!==void 0&&t!==null){let S="including";ne(t)&&(S="matching"),j.compatibleMessage(l,t)===a&&(p&&a?m=!0:this.assert(a,"expected #{this} to throw error "+S+" #{exp} but got #{act}","expected #{this} to throw error not "+S+" #{exp}",t,j.getMessage(l)))}g&&m&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&j.getConstructorName(e),l instanceof Error?l.toString():l&&j.getConstructorName(l)),c(this,"object",l)}f(pe,"assertThrows");i.addMethod("throw",pe);i.addMethod("throws",pe);i.addMethod("Throw",pe);function it(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"itself"),r=typeof n=="function"&&!s?n.prototype[e]:n[e];this.assert(typeof r=="function","expected #{this} to respond to "+w(e),"expected #{this} to not respond to "+w(e))}f(it,"respondTo");i.addMethod("respondTo",it);i.addMethod("respondsTo",it);i.addProperty("itself",function(){c(this,"itself",!0)});function at(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=e(n);this.assert(s,"expected #{this} to satisfy "+$(e),"expected #{this} to not satisfy"+$(e),!c(this,"negate"),s)}f(at,"satisfy");i.addMethod("satisfy",at);i.addMethod("satisfies",at);function ut(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new x(r?`${r}: ${a}`:a,void 0,u);if(new i(t,r,u,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new x(r?`${r}: ${a}`:a,void 0,u);new i(e,r,u,!0).is.numeric;const l=f(d=>d<0n?-d:d,"abs"),h=f(d=>parseFloat(parseFloat(d).toPrecision(12)),"strip");this.assert(h(l(s-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}f(ut,"closeTo");i.addMethod("closeTo",ut);i.addMethod("approximately",ut);function an(e,t,n,s,r){let u=Array.from(t),a=Array.from(e);if(!s){if(a.length!==u.length)return!1;u=u.slice()}return a.every(function(l,h){if(r)return n?n(l,u[h]):l===u[h];if(!n){let d=u.indexOf(l);return d===-1?!1:(s||u.splice(d,1),!0)}return u.some(function(d,p){return n(l,d)?(s||u.splice(p,1),!0):!1})})}f(an,"isSubsetOf");i.addMethod("members",function(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"message"),r=c(this,"ssfi");new i(n,s,r,!0).to.be.iterable,new i(e,s,r,!0).to.be.iterable;let u=c(this,"contains"),a=c(this,"ordered"),l,h,d;u?(l=a?"an ordered superset":"a superset",h="expected #{this} to be "+l+" of #{exp}",d="expected #{this} to not be "+l+" of #{exp}"):(l=a?"ordered members":"members",h="expected #{this} to have the same "+l+" as #{exp}",d="expected #{this} to not have the same "+l+" as #{exp}");let p=c(this,"deep")?c(this,"eql"):void 0;this.assert(an(e,n,p,u,a),h,d,e,n,!0)});i.addProperty("iterable",function(e){e&&c(this,"message",e);let t=c(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function un(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"message"),r=c(this,"ssfi"),u=c(this,"contains"),a=c(this,"deep"),l=c(this,"eql");new i(e,s,r,!0).to.be.an("array"),u?this.assert(e.some(function(h){return n.indexOf(h)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):a?this.assert(e.some(function(h){return l(n,h)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n)}f(un,"oneOf");i.addMethod("oneOf",un);function ct(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.a("function");let a;t?(new i(e,r,u,!0).to.have.property(t),a=e[t]):(new i(e,r,u,!0).is.a("function"),a=e()),s();let l=t==null?e():e[t],h=t==null?a:"."+t;c(this,"deltaMsgObj",h),c(this,"initialDeltaValue",a),c(this,"finalDeltaValue",l),c(this,"deltaBehavior","change"),c(this,"realDelta",l!==a),this.assert(a!==l,"expected "+h+" to change","expected "+h+" to not change")}f(ct,"assertChanges");i.addMethod("change",ct);i.addMethod("changes",ct);function lt(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.a("function");let a;t?(new i(e,r,u,!0).to.have.property(t),a=e[t]):(new i(e,r,u,!0).is.a("function"),a=e()),new i(a,r,u,!0).is.a("number"),s();let l=t==null?e():e[t],h=t==null?a:"."+t;c(this,"deltaMsgObj",h),c(this,"initialDeltaValue",a),c(this,"finalDeltaValue",l),c(this,"deltaBehavior","increase"),c(this,"realDelta",l-a),this.assert(l-a>0,"expected "+h+" to increase","expected "+h+" to not increase")}f(lt,"assertIncreases");i.addMethod("increase",lt);i.addMethod("increases",lt);function ft(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.a("function");let a;t?(new i(e,r,u,!0).to.have.property(t),a=e[t]):(new i(e,r,u,!0).is.a("function"),a=e()),new i(a,r,u,!0).is.a("number"),s();let l=t==null?e():e[t],h=t==null?a:"."+t;c(this,"deltaMsgObj",h),c(this,"initialDeltaValue",a),c(this,"finalDeltaValue",l),c(this,"deltaBehavior","decrease"),c(this,"realDelta",a-l),this.assert(l-a<0,"expected "+h+" to decrease","expected "+h+" to not decrease")}f(ft,"assertDecreases");i.addMethod("decrease",ft);i.addMethod("decreases",ft);function cn(e,t){t&&c(this,"message",t);let n=c(this,"deltaMsgObj"),s=c(this,"initialDeltaValue"),r=c(this,"finalDeltaValue"),u=c(this,"deltaBehavior"),a=c(this,"realDelta"),l;u==="change"?l=Math.abs(r-s)===Math.abs(e):l=a===Math.abs(e),this.assert(l,"expected "+n+" to "+u+" by "+e,"expected "+n+" to not "+u+" by "+e)}f(cn,"assertDelta");i.addMethod("by",cn);i.addProperty("extensible",function(){let e=c(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});i.addProperty("sealed",function(){let e=c(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});i.addProperty("frozen",function(){let e=c(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});i.addProperty("finite",function(e){let t=c(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 se(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(s){return se(n,s)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(n){let s=e[n],r=t[n];return typeof s=="object"&&s!==null&&r!==null?se(s,r):typeof s=="function"?s(r):r===s}):!1}f(se,"compareSubset");i.addMethod("containSubset",function(e){const t=b(this,"object"),n=E.showDiff;this.assert(se(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n)});function re(e,t){return new i(e,t)}f(re,"expect");re.fail=function(e,t,n,s){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new x(n,{actual:e,expected:t,operator:s},re.fail)};var ln={};Te(ln,{Should:()=>Dn,should:()=>Tn});function ht(){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 i(this.valueOf(),null,e):new i(this,null,e)}f(e,"shouldGetter");function t(s){Object.defineProperty(this,"should",{value:s,enumerable:!0,configurable:!0,writable:!0})}f(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let n={};return n.fail=function(s,r,u,a){throw arguments.length<2&&(u=s,s=void 0),u=u||"should.fail()",new x(u,{actual:s,expected:r,operator:a},n.fail)},n.equal=function(s,r,u){new i(s,u).to.equal(r)},n.Throw=function(s,r,u,a){new i(s,a).to.Throw(r,u)},n.exist=function(s,r){new i(s,r).to.exist},n.not={},n.not.equal=function(s,r,u){new i(s,u).to.not.equal(r)},n.not.Throw=function(s,r,u,a){new i(s,a).to.not.Throw(r,u)},n.not.exist=function(s,r){new i(s,r).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}f(ht,"loadShould");var Tn=ht,Dn=ht;function o(e,t){new i(null,null,o,!0).assert(e,t,"[ negation message unavailable ]")}f(o,"assert");o.fail=function(e,t,n,s){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new x(n,{actual:e,expected:t,operator:s},o.fail)};o.isOk=function(e,t){new i(e,t,o.isOk,!0).is.ok};o.isNotOk=function(e,t){new i(e,t,o.isNotOk,!0).is.not.ok};o.equal=function(e,t,n){let s=new i(e,n,o.equal,!0);s.assert(t==b(s,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};o.notEqual=function(e,t,n){let s=new i(e,n,o.notEqual,!0);s.assert(t!=b(s,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};o.strictEqual=function(e,t,n){new i(e,n,o.strictEqual,!0).to.equal(t)};o.notStrictEqual=function(e,t,n){new i(e,n,o.notStrictEqual,!0).to.not.equal(t)};o.deepEqual=o.deepStrictEqual=function(e,t,n){new i(e,n,o.deepEqual,!0).to.eql(t)};o.notDeepEqual=function(e,t,n){new i(e,n,o.notDeepEqual,!0).to.not.eql(t)};o.isAbove=function(e,t,n){new i(e,n,o.isAbove,!0).to.be.above(t)};o.isAtLeast=function(e,t,n){new i(e,n,o.isAtLeast,!0).to.be.least(t)};o.isBelow=function(e,t,n){new i(e,n,o.isBelow,!0).to.be.below(t)};o.isAtMost=function(e,t,n){new i(e,n,o.isAtMost,!0).to.be.most(t)};o.isTrue=function(e,t){new i(e,t,o.isTrue,!0).is.true};o.isNotTrue=function(e,t){new i(e,t,o.isNotTrue,!0).to.not.equal(!0)};o.isFalse=function(e,t){new i(e,t,o.isFalse,!0).is.false};o.isNotFalse=function(e,t){new i(e,t,o.isNotFalse,!0).to.not.equal(!1)};o.isNull=function(e,t){new i(e,t,o.isNull,!0).to.equal(null)};o.isNotNull=function(e,t){new i(e,t,o.isNotNull,!0).to.not.equal(null)};o.isNaN=function(e,t){new i(e,t,o.isNaN,!0).to.be.NaN};o.isNotNaN=function(e,t){new i(e,t,o.isNotNaN,!0).not.to.be.NaN};o.exists=function(e,t){new i(e,t,o.exists,!0).to.exist};o.notExists=function(e,t){new i(e,t,o.notExists,!0).to.not.exist};o.isUndefined=function(e,t){new i(e,t,o.isUndefined,!0).to.equal(void 0)};o.isDefined=function(e,t){new i(e,t,o.isDefined,!0).to.not.equal(void 0)};o.isCallable=function(e,t){new i(e,t,o.isCallable,!0).is.callable};o.isNotCallable=function(e,t){new i(e,t,o.isNotCallable,!0).is.not.callable};o.isObject=function(e,t){new i(e,t,o.isObject,!0).to.be.a("object")};o.isNotObject=function(e,t){new i(e,t,o.isNotObject,!0).to.not.be.a("object")};o.isArray=function(e,t){new i(e,t,o.isArray,!0).to.be.an("array")};o.isNotArray=function(e,t){new i(e,t,o.isNotArray,!0).to.not.be.an("array")};o.isString=function(e,t){new i(e,t,o.isString,!0).to.be.a("string")};o.isNotString=function(e,t){new i(e,t,o.isNotString,!0).to.not.be.a("string")};o.isNumber=function(e,t){new i(e,t,o.isNumber,!0).to.be.a("number")};o.isNotNumber=function(e,t){new i(e,t,o.isNotNumber,!0).to.not.be.a("number")};o.isNumeric=function(e,t){new i(e,t,o.isNumeric,!0).is.numeric};o.isNotNumeric=function(e,t){new i(e,t,o.isNotNumeric,!0).is.not.numeric};o.isFinite=function(e,t){new i(e,t,o.isFinite,!0).to.be.finite};o.isBoolean=function(e,t){new i(e,t,o.isBoolean,!0).to.be.a("boolean")};o.isNotBoolean=function(e,t){new i(e,t,o.isNotBoolean,!0).to.not.be.a("boolean")};o.typeOf=function(e,t,n){new i(e,n,o.typeOf,!0).to.be.a(t)};o.notTypeOf=function(e,t,n){new i(e,n,o.notTypeOf,!0).to.not.be.a(t)};o.instanceOf=function(e,t,n){new i(e,n,o.instanceOf,!0).to.be.instanceOf(t)};o.notInstanceOf=function(e,t,n){new i(e,n,o.notInstanceOf,!0).to.not.be.instanceOf(t)};o.include=function(e,t,n){new i(e,n,o.include,!0).include(t)};o.notInclude=function(e,t,n){new i(e,n,o.notInclude,!0).not.include(t)};o.deepInclude=function(e,t,n){new i(e,n,o.deepInclude,!0).deep.include(t)};o.notDeepInclude=function(e,t,n){new i(e,n,o.notDeepInclude,!0).not.deep.include(t)};o.nestedInclude=function(e,t,n){new i(e,n,o.nestedInclude,!0).nested.include(t)};o.notNestedInclude=function(e,t,n){new i(e,n,o.notNestedInclude,!0).not.nested.include(t)};o.deepNestedInclude=function(e,t,n){new i(e,n,o.deepNestedInclude,!0).deep.nested.include(t)};o.notDeepNestedInclude=function(e,t,n){new i(e,n,o.notDeepNestedInclude,!0).not.deep.nested.include(t)};o.ownInclude=function(e,t,n){new i(e,n,o.ownInclude,!0).own.include(t)};o.notOwnInclude=function(e,t,n){new i(e,n,o.notOwnInclude,!0).not.own.include(t)};o.deepOwnInclude=function(e,t,n){new i(e,n,o.deepOwnInclude,!0).deep.own.include(t)};o.notDeepOwnInclude=function(e,t,n){new i(e,n,o.notDeepOwnInclude,!0).not.deep.own.include(t)};o.match=function(e,t,n){new i(e,n,o.match,!0).to.match(t)};o.notMatch=function(e,t,n){new i(e,n,o.notMatch,!0).to.not.match(t)};o.property=function(e,t,n){new i(e,n,o.property,!0).to.have.property(t)};o.notProperty=function(e,t,n){new i(e,n,o.notProperty,!0).to.not.have.property(t)};o.propertyVal=function(e,t,n,s){new i(e,s,o.propertyVal,!0).to.have.property(t,n)};o.notPropertyVal=function(e,t,n,s){new i(e,s,o.notPropertyVal,!0).to.not.have.property(t,n)};o.deepPropertyVal=function(e,t,n,s){new i(e,s,o.deepPropertyVal,!0).to.have.deep.property(t,n)};o.notDeepPropertyVal=function(e,t,n,s){new i(e,s,o.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)};o.ownProperty=function(e,t,n){new i(e,n,o.ownProperty,!0).to.have.own.property(t)};o.notOwnProperty=function(e,t,n){new i(e,n,o.notOwnProperty,!0).to.not.have.own.property(t)};o.ownPropertyVal=function(e,t,n,s){new i(e,s,o.ownPropertyVal,!0).to.have.own.property(t,n)};o.notOwnPropertyVal=function(e,t,n,s){new i(e,s,o.notOwnPropertyVal,!0).to.not.have.own.property(t,n)};o.deepOwnPropertyVal=function(e,t,n,s){new i(e,s,o.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)};o.notDeepOwnPropertyVal=function(e,t,n,s){new i(e,s,o.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)};o.nestedProperty=function(e,t,n){new i(e,n,o.nestedProperty,!0).to.have.nested.property(t)};o.notNestedProperty=function(e,t,n){new i(e,n,o.notNestedProperty,!0).to.not.have.nested.property(t)};o.nestedPropertyVal=function(e,t,n,s){new i(e,s,o.nestedPropertyVal,!0).to.have.nested.property(t,n)};o.notNestedPropertyVal=function(e,t,n,s){new i(e,s,o.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)};o.deepNestedPropertyVal=function(e,t,n,s){new i(e,s,o.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)};o.notDeepNestedPropertyVal=function(e,t,n,s){new i(e,s,o.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)};o.lengthOf=function(e,t,n){new i(e,n,o.lengthOf,!0).to.have.lengthOf(t)};o.hasAnyKeys=function(e,t,n){new i(e,n,o.hasAnyKeys,!0).to.have.any.keys(t)};o.hasAllKeys=function(e,t,n){new i(e,n,o.hasAllKeys,!0).to.have.all.keys(t)};o.containsAllKeys=function(e,t,n){new i(e,n,o.containsAllKeys,!0).to.contain.all.keys(t)};o.doesNotHaveAnyKeys=function(e,t,n){new i(e,n,o.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};o.doesNotHaveAllKeys=function(e,t,n){new i(e,n,o.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};o.hasAnyDeepKeys=function(e,t,n){new i(e,n,o.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};o.hasAllDeepKeys=function(e,t,n){new i(e,n,o.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};o.containsAllDeepKeys=function(e,t,n){new i(e,n,o.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};o.doesNotHaveAnyDeepKeys=function(e,t,n){new i(e,n,o.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};o.doesNotHaveAllDeepKeys=function(e,t,n){new i(e,n,o.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};o.throws=function(e,t,n,s){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let r=new i(e,s,o.throws,!0).to.throw(t,n);return b(r,"object")};o.doesNotThrow=function(e,t,n,s){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new i(e,s,o.doesNotThrow,!0).to.not.throw(t,n)};o.operator=function(e,t,n,s){let r;switch(t){case"==":r=e==n;break;case"===":r=e===n;break;case">":r=e>n;break;case">=":r=e>=n;break;case"<":r=e<n;break;case"<=":r=e<=n;break;case"!=":r=e!=n;break;case"!==":r=e!==n;break;default:throw s=s&&s+": ",new x(s+'Invalid operator "'+t+'"',void 0,o.operator)}let u=new i(r,s,o.operator,!0);u.assert(b(u,"object")===!0,"expected "+w(e)+" to be "+t+" "+w(n),"expected "+w(e)+" to not be "+t+" "+w(n))};o.closeTo=function(e,t,n,s){new i(e,s,o.closeTo,!0).to.be.closeTo(t,n)};o.approximately=function(e,t,n,s){new i(e,s,o.approximately,!0).to.be.approximately(t,n)};o.sameMembers=function(e,t,n){new i(e,n,o.sameMembers,!0).to.have.same.members(t)};o.notSameMembers=function(e,t,n){new i(e,n,o.notSameMembers,!0).to.not.have.same.members(t)};o.sameDeepMembers=function(e,t,n){new i(e,n,o.sameDeepMembers,!0).to.have.same.deep.members(t)};o.notSameDeepMembers=function(e,t,n){new i(e,n,o.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};o.sameOrderedMembers=function(e,t,n){new i(e,n,o.sameOrderedMembers,!0).to.have.same.ordered.members(t)};o.notSameOrderedMembers=function(e,t,n){new i(e,n,o.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};o.sameDeepOrderedMembers=function(e,t,n){new i(e,n,o.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};o.notSameDeepOrderedMembers=function(e,t,n){new i(e,n,o.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};o.includeMembers=function(e,t,n){new i(e,n,o.includeMembers,!0).to.include.members(t)};o.notIncludeMembers=function(e,t,n){new i(e,n,o.notIncludeMembers,!0).to.not.include.members(t)};o.includeDeepMembers=function(e,t,n){new i(e,n,o.includeDeepMembers,!0).to.include.deep.members(t)};o.notIncludeDeepMembers=function(e,t,n){new i(e,n,o.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};o.includeOrderedMembers=function(e,t,n){new i(e,n,o.includeOrderedMembers,!0).to.include.ordered.members(t)};o.notIncludeOrderedMembers=function(e,t,n){new i(e,n,o.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};o.includeDeepOrderedMembers=function(e,t,n){new i(e,n,o.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};o.notIncludeDeepOrderedMembers=function(e,t,n){new i(e,n,o.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};o.oneOf=function(e,t,n){new i(e,n,o.oneOf,!0).to.be.oneOf(t)};o.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${w(e)} to be an iterable`:`expected ${w(e)} to be an iterable`,new x(t,void 0,o.isIterable)};o.changes=function(e,t,n,s){arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.changes,!0).to.change(t,n)};o.changesBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.changesBy,!0).to.change(t,n).by(s)};o.doesNotChange=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.doesNotChange,!0).to.not.change(t,n)};o.changesButNotBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.changesButNotBy,!0).to.change(t,n).but.not.by(s)};o.increases=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.increases,!0).to.increase(t,n)};o.increasesBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.increasesBy,!0).to.increase(t,n).by(s)};o.doesNotIncrease=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.doesNotIncrease,!0).to.not.increase(t,n)};o.increasesButNotBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.increasesButNotBy,!0).to.increase(t,n).but.not.by(s)};o.decreases=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.decreases,!0).to.decrease(t,n)};o.decreasesBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.decreasesBy,!0).to.decrease(t,n).by(s)};o.doesNotDecrease=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.doesNotDecrease,!0).to.not.decrease(t,n)};o.doesNotDecreaseBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);return new i(e,r,o.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(s)};o.decreasesButNotBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(s)};o.ifError=function(e){if(e)throw e};o.isExtensible=function(e,t){new i(e,t,o.isExtensible,!0).to.be.extensible};o.isNotExtensible=function(e,t){new i(e,t,o.isNotExtensible,!0).to.not.be.extensible};o.isSealed=function(e,t){new i(e,t,o.isSealed,!0).to.be.sealed};o.isNotSealed=function(e,t){new i(e,t,o.isNotSealed,!0).to.not.be.sealed};o.isFrozen=function(e,t){new i(e,t,o.isFrozen,!0).to.be.frozen};o.isNotFrozen=function(e,t){new i(e,t,o.isNotFrozen,!0).to.not.be.frozen};o.isEmpty=function(e,t){new i(e,t,o.isEmpty,!0).to.be.empty};o.isNotEmpty=function(e,t){new i(e,t,o.isNotEmpty,!0).to.not.be.empty};o.containsSubset=function(e,t,n){new i(e,n).to.containSubset(t)};o.doesNotContainSubset=function(e,t,n){new i(e,n).to.not.containSubset(t)};var In=[["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 In)o[t]=o[e];var vt=[];function fn(e){const t={use:fn,AssertionError:x,util:Y,config:E,expect:re,assert:o,Assertion:i,...ln};return~vt.indexOf(e)||(e(t,Y),vt.push(e)),t}f(fn,"use");/*!
|
|
3
|
+
* Chai - flag utility
|
|
4
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*//*!
|
|
7
|
+
* Chai - test utility
|
|
8
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
9
|
+
* MIT Licensed
|
|
10
|
+
*//*!
|
|
11
|
+
* Chai - expectTypes utility
|
|
12
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
13
|
+
* MIT Licensed
|
|
14
|
+
*//*!
|
|
15
|
+
* Chai - getActual utility
|
|
16
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
17
|
+
* MIT Licensed
|
|
18
|
+
*//*!
|
|
19
|
+
* Chai - message composition utility
|
|
20
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
21
|
+
* MIT Licensed
|
|
22
|
+
*//*!
|
|
23
|
+
* Chai - transferFlags utility
|
|
24
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
25
|
+
* MIT Licensed
|
|
26
|
+
*//*!
|
|
27
|
+
* chai
|
|
28
|
+
* http://chaijs.com
|
|
29
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
30
|
+
* MIT Licensed
|
|
31
|
+
*//*!
|
|
32
|
+
* Chai - isProxyEnabled helper
|
|
33
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
34
|
+
* MIT Licensed
|
|
35
|
+
*//*!
|
|
36
|
+
* Chai - addProperty utility
|
|
37
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
38
|
+
* MIT Licensed
|
|
39
|
+
*//*!
|
|
40
|
+
* Chai - addLengthGuard utility
|
|
41
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
42
|
+
* MIT Licensed
|
|
43
|
+
*//*!
|
|
44
|
+
* Chai - getProperties utility
|
|
45
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
46
|
+
* MIT Licensed
|
|
47
|
+
*//*!
|
|
48
|
+
* Chai - proxify utility
|
|
49
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
50
|
+
* MIT Licensed
|
|
51
|
+
*//*!
|
|
52
|
+
* Chai - addMethod utility
|
|
53
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
54
|
+
* MIT Licensed
|
|
55
|
+
*//*!
|
|
56
|
+
* Chai - overwriteProperty utility
|
|
57
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
58
|
+
* MIT Licensed
|
|
59
|
+
*//*!
|
|
60
|
+
* Chai - overwriteMethod utility
|
|
61
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
62
|
+
* MIT Licensed
|
|
63
|
+
*//*!
|
|
64
|
+
* Chai - addChainingMethod utility
|
|
65
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
66
|
+
* MIT Licensed
|
|
67
|
+
*//*!
|
|
68
|
+
* Chai - overwriteChainableMethod utility
|
|
69
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
70
|
+
* MIT Licensed
|
|
71
|
+
*//*!
|
|
72
|
+
* Chai - compareByInspect utility
|
|
73
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
74
|
+
* MIT Licensed
|
|
75
|
+
*//*!
|
|
76
|
+
* Chai - getOwnEnumerablePropertySymbols utility
|
|
77
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
78
|
+
* MIT Licensed
|
|
79
|
+
*//*!
|
|
80
|
+
* Chai - getOwnEnumerableProperties utility
|
|
81
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
82
|
+
* MIT Licensed
|
|
83
|
+
*//*!
|
|
84
|
+
* Chai - isNaN utility
|
|
85
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
86
|
+
* MIT Licensed
|
|
87
|
+
*//*!
|
|
88
|
+
* chai
|
|
89
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
90
|
+
* MIT Licensed
|
|
91
|
+
*//*!
|
|
92
|
+
* chai
|
|
93
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
94
|
+
* MIT Licensed
|
|
95
|
+
*//*! Bundled license information:
|
|
96
|
+
|
|
97
|
+
deep-eql/index.js:
|
|
98
|
+
(*!
|
|
99
|
+
* deep-eql
|
|
100
|
+
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
101
|
+
* MIT Licensed
|
|
102
|
+
*)
|
|
103
|
+
(*!
|
|
104
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
105
|
+
*
|
|
106
|
+
* @param {Mixed} leftHandOperand
|
|
107
|
+
* @param {Mixed} rightHandOperand
|
|
108
|
+
* @param {MemoizeMap} memoizeMap
|
|
109
|
+
* @returns {Boolean|null} result
|
|
110
|
+
*)
|
|
111
|
+
(*!
|
|
112
|
+
* Set the result of the equality into the MemoizeMap
|
|
113
|
+
*
|
|
114
|
+
* @param {Mixed} leftHandOperand
|
|
115
|
+
* @param {Mixed} rightHandOperand
|
|
116
|
+
* @param {MemoizeMap} memoizeMap
|
|
117
|
+
* @param {Boolean} result
|
|
118
|
+
*)
|
|
119
|
+
(*!
|
|
120
|
+
* Primary Export
|
|
121
|
+
*)
|
|
122
|
+
(*!
|
|
123
|
+
* The main logic of the `deepEqual` function.
|
|
124
|
+
*
|
|
125
|
+
* @param {Mixed} leftHandOperand
|
|
126
|
+
* @param {Mixed} rightHandOperand
|
|
127
|
+
* @param {Object} [options] (optional) Additional options
|
|
128
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
129
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
130
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
131
|
+
references to blow the stack.
|
|
132
|
+
* @return {Boolean} equal match
|
|
133
|
+
*)
|
|
134
|
+
(*!
|
|
135
|
+
* Compare two Regular Expressions for equality.
|
|
136
|
+
*
|
|
137
|
+
* @param {RegExp} leftHandOperand
|
|
138
|
+
* @param {RegExp} rightHandOperand
|
|
139
|
+
* @return {Boolean} result
|
|
140
|
+
*)
|
|
141
|
+
(*!
|
|
142
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
143
|
+
*
|
|
144
|
+
* @param {Set} leftHandOperand
|
|
145
|
+
* @param {Set} rightHandOperand
|
|
146
|
+
* @param {Object} [options] (Optional)
|
|
147
|
+
* @return {Boolean} result
|
|
148
|
+
*)
|
|
149
|
+
(*!
|
|
150
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
151
|
+
*
|
|
152
|
+
* @param {Iterable} leftHandOperand
|
|
153
|
+
* @param {Iterable} rightHandOperand
|
|
154
|
+
* @param {Object} [options] (Optional)
|
|
155
|
+
* @return {Boolean} result
|
|
156
|
+
*)
|
|
157
|
+
(*!
|
|
158
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
|
159
|
+
*
|
|
160
|
+
* @param {Iterable} leftHandOperand
|
|
161
|
+
* @param {Iterable} rightHandOperand
|
|
162
|
+
* @param {Object} [options] (Optional)
|
|
163
|
+
* @return {Boolean} result
|
|
164
|
+
*)
|
|
165
|
+
(*!
|
|
166
|
+
* Determine if the given object has an @@iterator function.
|
|
167
|
+
*
|
|
168
|
+
* @param {Object} target
|
|
169
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
170
|
+
*)
|
|
171
|
+
(*!
|
|
172
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
173
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
174
|
+
*
|
|
175
|
+
* @param {Object} target
|
|
176
|
+
* @returns {Array} an array of entries from the @@iterator function
|
|
177
|
+
*)
|
|
178
|
+
(*!
|
|
179
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
180
|
+
*
|
|
181
|
+
* @param {Generator} target
|
|
182
|
+
* @returns {Array} an array of entries from the Generator.
|
|
183
|
+
*)
|
|
184
|
+
(*!
|
|
185
|
+
* Gets all own and inherited enumerable keys from a target.
|
|
186
|
+
*
|
|
187
|
+
* @param {Object} target
|
|
188
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
189
|
+
*)
|
|
190
|
+
(*!
|
|
191
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
192
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
193
|
+
*
|
|
194
|
+
* @param {Mixed} leftHandOperand
|
|
195
|
+
* @param {Mixed} rightHandOperand
|
|
196
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
197
|
+
* @param {Object} [options] (Optional)
|
|
198
|
+
* @return {Boolean} result
|
|
199
|
+
*)
|
|
200
|
+
(*!
|
|
201
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
202
|
+
* for each enumerable key in the object.
|
|
203
|
+
*
|
|
204
|
+
* @param {Mixed} leftHandOperand
|
|
205
|
+
* @param {Mixed} rightHandOperand
|
|
206
|
+
* @param {Object} [options] (Optional)
|
|
207
|
+
* @return {Boolean} result
|
|
208
|
+
*)
|
|
209
|
+
(*!
|
|
210
|
+
* Returns true if the argument is a primitive.
|
|
211
|
+
*
|
|
212
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
|
213
|
+
* including functions and symbols.
|
|
214
|
+
*
|
|
215
|
+
* @param {Mixed} value
|
|
216
|
+
* @return {Boolean} result
|
|
217
|
+
*)
|
|
218
|
+
*/export{i as Assertion,x as AssertionError,Dn as Should,o as assert,E as config,re as expect,Tn as should,fn as use,Y as util};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import{once as bi}from"../client-logger/index.js";import{FORCE_REMOUNT as tn,STORY_RENDER_PHASE_CHANGED as Si,SET_CURRENT_STORY as $i}from"../core-events/index.js";import{global as Y}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";var wi=Object.defineProperty,a=(e,t)=>wi(e,"name",{value:t,configurable:!0}),_i={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]},Oi=Object.entries(_i);function Fe(e){return String(e)}a(Fe,"a");Fe.open="";Fe.close="";function vn(e=!1){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}a(vn,"C");function In(e=!1){let t=vn(e),n=a((s,c,l,f)=>{let g="",u=0;do g+=s.substring(u,f)+l,u=f+c.length,f=s.indexOf(c,u);while(~f);return g+s.substring(u)},"i"),r=a((s,c,l=s)=>{let f=a(g=>{let u=String(g),d=u.indexOf(c,s.length);return~d?s+n(u,c,l,d)+c:s+u+c},"o");return f.open=s,f.close=c,f},"g"),i={isColorSupported:t},o=a(s=>`\x1B[${s}m`,"d");for(let[s,c]of Oi)i[s]=t?r(o(c[0]),o(c[1]),c[2]):Fe;return i}a(In,"p");var ae=In();function vt(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:a(function(){return n[r]},"get")})}})}),Object.freeze(e)}a(vt,"_mergeNamespaces");function An(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&r.push(i);return r}a(An,"getKeysOfEnumerableProperties");function be(e,t,n,r,i,o,s=": "){let c="",l=0,f=e.next();if(!f.done){c+=t.spacingOuter;let g=n+t.indent;for(;!f.done;){if(c+=g,l++===t.maxWidth){c+="…";break}let u=o(f.value[0],t,g,r,i),d=o(f.value[1],t,g,r,i);c+=u+s+d,f=e.next(),f.done?t.min||(c+=","):c+=`,${t.spacingInner}`}c+=t.spacingOuter+n}return c}a(be,"printIteratorEntries");function Be(e,t,n,r,i,o){let s="",c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let f=n+t.indent;for(;!l.done;){if(s+=f,c++===t.maxWidth){s+="…";break}s+=o(l.value,t,f,r,i),l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}a(Be,"printIteratorValues");function Ce(e,t,n,r,i,o){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let c=a(f=>f instanceof DataView,"isDataView"),l=c(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let f=n+t.indent;for(let g=0;g<l;g++){if(s+=f,g===t.maxWidth){s+="…";break}(c(e)||g in e)&&(s+=o(c(e)?e.getInt8(g):e[g],t,f,r,i)),g<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+n}return s}a(Ce,"printListItems");function ze(e,t,n,r,i,o){let s="",c=An(e,t.compareKeys);if(c.length>0){s+=t.spacingOuter;let l=n+t.indent;for(let f=0;f<c.length;f++){let g=c[f],u=o(g,t,l,r,i),d=o(e[g],t,l,r,i);s+=`${l+u}: ${d}`,f<c.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+n}return s}a(ze,"printObjectProperties");var Ei=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ge=" ",Ci=a((e,t,n,r,i,o)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++r>t.maxDepth?`[${s}]`:`${s+Ge}[${Ce(e.sample,t,n,r,i,o)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++r>t.maxDepth?`[${s}]`:`${s+Ge}{${ze(e.sample,t,n,r,i,o)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+Ge+o(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()},"serialize$5"),vi=a(e=>e&&e.$$typeof===Ei,"test$5"),Ii={serialize:Ci,test:vi},Ai=" ",Pn=new Set(["DOMStringMap","NamedNodeMap"]),Pi=/^(?:HTML\w*Collection|NodeList)$/;function xn(e){return Pn.has(e)||Pi.test(e)}a(xn,"testName");var xi=a(e=>e&&e.constructor&&!!e.constructor.name&&xn(e.constructor.name),"test$4");function jn(e){return e.constructor.name==="NamedNodeMap"}a(jn,"isNamedNodeMap");var ji=a((e,t,n,r,i,o)=>{let s=e.constructor.name;return++r>t.maxDepth?`[${s}]`:(t.min?"":s+Ai)+(Pn.has(s)?`{${ze(jn(e)?[...e].reduce((c,l)=>(c[l.name]=l.value,c),{}):{...e},t,n,r,i,o)}}`:`[${Ce([...e],t,n,r,i,o)}]`)},"serialize$4"),Ni={serialize:ji,test:xi};function It(e){return e.replaceAll("<","<").replaceAll(">",">")}a(It,"escapeHTML");function Ue(e,t,n,r,i,o,s){let c=r+n.indent,l=n.colors;return e.map(f=>{let g=t[f],u=s(g,n,c,i,o);return typeof g!="string"&&(u.includes(`
|
|
2
|
+
`)&&(u=n.spacingOuter+c+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+l.prop.open+f+l.prop.close}=${l.value.open}${u}${l.value.close}`}).join("")}a(Ue,"printProps");function We(e,t,n,r,i,o){return e.map(s=>t.spacingOuter+n+(typeof s=="string"?At(s,t):o(s,t,n,r,i))).join("")}a(We,"printChildren");function At(e,t){let n=t.colors.content;return n.open+It(e)+n.close}a(At,"printText");function Nn(e,t){let n=t.colors.comment;return`${n.open}<!--${It(e)}-->${n.close}`}a(Nn,"printComment");function Ke(e,t,n,r,i){let o=r.colors.tag;return`${o.open}<${e}${t&&o.close+t+r.spacingOuter+i+o.open}${n?`>${o.close}${n}${r.spacingOuter}${i}${o.open}</${e}`:`${t&&!r.min?"":" "}/`}>${o.close}`}a(Ke,"printElement");function Ve(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}a(Ve,"printElementAsLeaf");var Mi=1,Mn=3,Ln=8,Rn=11,Li=/^(?:(?:HTML|SVG)\w*)?Element$/;function Dn(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}a(Dn,"testHasAttribute");function Tn(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r=="string"&&r.includes("-")||Dn(e);return n===Mi&&(Li.test(t)||i)||n===Mn&&t==="Text"||n===Ln&&t==="Comment"||n===Rn&&t==="DocumentFragment"}a(Tn,"testNode");var Ri=a(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&Tn(e)},"test$3");function kn(e){return e.nodeType===Mn}a(kn,"nodeIsText");function Fn(e){return e.nodeType===Ln}a(Fn,"nodeIsComment");function xe(e){return e.nodeType===Rn}a(xe,"nodeIsFragment");var Di=a((e,t,n,r,i,o)=>{if(kn(e))return At(e.data,t);if(Fn(e))return Nn(e.data,t);let s=xe(e)?"DocumentFragment":e.tagName.toLowerCase();return++r>t.maxDepth?Ve(s,t):Ke(s,Ue(xe(e)?[]:Array.from(e.attributes,c=>c.name).sort(),xe(e)?{}:[...e.attributes].reduce((c,l)=>(c[l.name]=l.value,c),{}),t,n+t.indent,r,i,o),We(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,o),t,n)},"serialize$3"),Ti={serialize:Di,test:Ri},ki="@@__IMMUTABLE_ITERABLE__@@",Fi="@@__IMMUTABLE_LIST__@@",Bi="@@__IMMUTABLE_KEYED__@@",zi="@@__IMMUTABLE_MAP__@@",nn="@@__IMMUTABLE_ORDERED__@@",Ui="@@__IMMUTABLE_RECORD__@@",Wi="@@__IMMUTABLE_SEQ__@@",Ki="@@__IMMUTABLE_SET__@@",Vi="@@__IMMUTABLE_STACK__@@",he=a(e=>`Immutable.${e}`,"getImmutableName"),Ye=a(e=>`[${e}]`,"printAsLeaf"),ve=" ",rn="…";function Bn(e,t,n,r,i,o,s){return++r>t.maxDepth?Ye(he(s)):`${he(s)+ve}{${be(e.entries(),t,n,r,i,o)}}`}a(Bn,"printImmutableEntries");function zn(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}a(zn,"getRecordEntries");function Un(e,t,n,r,i,o){let s=he(e._name||"Record");return++r>t.maxDepth?Ye(s):`${s+ve}{${be(zn(e),t,n,r,i,o)}}`}a(Un,"printImmutableRecord");function Wn(e,t,n,r,i,o){let s=he("Seq");return++r>t.maxDepth?Ye(s):e[Bi]?`${s+ve}{${e._iter||e._object?be(e.entries(),t,n,r,i,o):rn}}`:`${s+ve}[${e._iter||e._array||e._collection||e._iterable?Be(e.values(),t,n,r,i,o):rn}]`}a(Wn,"printImmutableSeq");function je(e,t,n,r,i,o,s){return++r>t.maxDepth?Ye(he(s)):`${he(s)+ve}[${Be(e.values(),t,n,r,i,o)}]`}a(je,"printImmutableValues");var Yi=a((e,t,n,r,i,o)=>e[zi]?Bn(e,t,n,r,i,o,e[nn]?"OrderedMap":"Map"):e[Fi]?je(e,t,n,r,i,o,"List"):e[Ki]?je(e,t,n,r,i,o,e[nn]?"OrderedSet":"Set"):e[Vi]?je(e,t,n,r,i,o,"Stack"):e[Wi]?Wn(e,t,n,r,i,o):Un(e,t,n,r,i,o),"serialize$2"),Ji=a(e=>e&&(e[ki]===!0||e[Ui]===!0),"test$2"),qi={serialize:Yi,test:Ji};function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Pt,"getDefaultExportFromCjs");var on={exports:{}},P={},sn;function Kn(){return sn||(sn=1,function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case r:case o:case i:case f:case g:case h:return p;default:switch(p=p&&p.$$typeof,p){case c:case l:case d:case u:return p;case s:return p;default:return y}}case n:return y}}}a(e,"typeOf");var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");P.ContextConsumer=s,P.ContextProvider=c,P.Element=t,P.ForwardRef=l,P.Fragment=r,P.Lazy=d,P.Memo=u,P.Portal=n,P.Profiler=o,P.StrictMode=i,P.Suspense=f,P.SuspenseList=g,P.isContextConsumer=function(p){return e(p)===s},P.isContextProvider=function(p){return e(p)===c},P.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},P.isForwardRef=function(p){return e(p)===l},P.isFragment=function(p){return e(p)===r},P.isLazy=function(p){return e(p)===d},P.isMemo=function(p){return e(p)===u},P.isPortal=function(p){return e(p)===n},P.isProfiler=function(p){return e(p)===o},P.isStrictMode=function(p){return e(p)===i},P.isSuspense=function(p){return e(p)===f},P.isSuspenseList=function(p){return e(p)===g},P.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===o||p===i||p===f||p===g||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===c||p.$$typeof===s||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},P.typeOf=e}()),P}a(Kn,"requireReactIs_development$1");var an;function Vn(){return an||(an=1,on.exports=Kn()),on.exports}a(Vn,"requireReactIs$1");var Yn=Vn(),Hi=Pt(Yn),Gi=vt({__proto__:null,default:Hi},[Yn]),ln={exports:{}},I={},cn;function Jn(){return cn||(cn=1,function(){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"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,p=!1,y=!1,S=!1,w=!1,O;O=Symbol.for("react.module.reference");function b(E){return!!(typeof E=="string"||typeof E=="function"||E===n||E===i||w||E===r||E===f||E===g||S||E===h||m||p||y||typeof E=="object"&&E!==null&&(E.$$typeof===d||E.$$typeof===u||E.$$typeof===o||E.$$typeof===s||E.$$typeof===l||E.$$typeof===O||E.getModuleId!==void 0))}a(b,"isValidElementType");function $(E){if(typeof E=="object"&&E!==null){var He=E.$$typeof;switch(He){case e:var Ae=E.type;switch(Ae){case n:case i:case r:case f:case g:return Ae;default:var en=Ae&&Ae.$$typeof;switch(en){case c:case s:case l:case d:case u:case o:return en;default:return He}}case t:return He}}}a($,"typeOf");var C=s,_=o,A=e,q=l,D=n,M=d,k=u,F=t,H=i,v=r,N=f,G=g,L=!1,z=!1;function V(E){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}a(V,"isAsyncMode");function U(E){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}a(U,"isConcurrentMode");function W(E){return $(E)===s}a(W,"isContextConsumer");function ee(E){return $(E)===o}a(ee,"isContextProvider");function Q(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}a(Q,"isElement");function B(E){return $(E)===l}a(B,"isForwardRef");function K(E){return $(E)===n}a(K,"isFragment");function ne(E){return $(E)===d}a(ne,"isLazy");function re(E){return $(E)===u}a(re,"isMemo");function pe(E){return $(E)===t}a(pe,"isPortal");function Se(E){return $(E)===i}a(Se,"isProfiler");function $e(E){return $(E)===r}a($e,"isStrictMode");function Xt(E){return $(E)===f}a(Xt,"isSuspense");function Zt(E){return $(E)===g}a(Zt,"isSuspenseList"),I.ContextConsumer=C,I.ContextProvider=_,I.Element=A,I.ForwardRef=q,I.Fragment=D,I.Lazy=M,I.Memo=k,I.Portal=F,I.Profiler=H,I.StrictMode=v,I.Suspense=N,I.SuspenseList=G,I.isAsyncMode=V,I.isConcurrentMode=U,I.isContextConsumer=W,I.isContextProvider=ee,I.isElement=Q,I.isForwardRef=B,I.isFragment=K,I.isLazy=ne,I.isMemo=re,I.isPortal=pe,I.isProfiler=Se,I.isStrictMode=$e,I.isSuspense=Xt,I.isSuspenseList=Zt,I.isValidElementType=b,I.typeOf=$}()),I}a(Jn,"requireReactIs_development");var un;function qn(){return un||(un=1,ln.exports=Jn()),ln.exports}a(qn,"requireReactIs");var Hn=qn(),Qi=Pt(Hn),Xi=vt({__proto__:null,default:Qi},[Hn]),Zi=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ue=Object.fromEntries(Zi.map(e=>[e,t=>Xi[e](t)||Gi[e](t)]));function xt(e,t=[]){if(Array.isArray(e))for(let n of e)xt(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}a(xt,"getChildren");function rt(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ue.isFragment(e))return"React.Fragment";if(ue.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ue.isContextProvider(e))return"Context.Provider";if(ue.isContextConsumer(e))return"Context.Consumer";if(ue.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(ue.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}a(rt,"getType");function Gn(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}a(Gn,"getPropKeys$1");var eo=a((e,t,n,r,i,o)=>++r>t.maxDepth?Ve(rt(e),t):Ke(rt(e),Ue(Gn(e),e.props,t,n+t.indent,r,i,o),We(xt(e.props.children),t,n+t.indent,r,i,o),t,n),"serialize$1"),to=a(e=>e!=null&&ue.isElement(e),"test$1"),no={serialize:eo,test:to},ro=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Qn(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}a(Qn,"getPropKeys");var io=a((e,t,n,r,i,o)=>++r>t.maxDepth?Ve(e.type,t):Ke(e.type,e.props?Ue(Qn(e),e.props,t,n+t.indent,r,i,o):"",e.children?We(e.children,t,n+t.indent,r,i,o):"",t,n),"serialize"),oo=a(e=>e&&e.$$typeof===ro,"test"),so={serialize:io,test:oo},Xn=Object.prototype.toString,ao=Date.prototype.toISOString,lo=Error.prototype.toString,fn=RegExp.prototype.toString;function Oe(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}a(Oe,"getConstructorName");function Zn(e){return typeof window<"u"&&e===window}a(Zn,"isWindow");var co=/^Symbol\((.*)\)(.*)$/,uo=/\n/g,er=class extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}};a(er,"PrettyFormatPluginError");var tr=er;function nr(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}a(nr,"isToStringedArrayType");function rr(e){return Object.is(e,-0)?"-0":String(e)}a(rr,"printNumber");function ir(e){return`${e}n`}a(ir,"printBigInt");function it(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}a(it,"printFunction");function ot(e){return String(e).replace(co,"Symbol($1)")}a(ot,"printSymbol");function st(e){return`[${lo.call(e)}]`}a(st,"printError");function jt(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return rr(e);if(i==="bigint")return ir(e);if(i==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return it(e,t);if(i==="symbol")return ot(e);let o=Xn.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?it(e,t):o==="[object Symbol]"?ot(e):o==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":ao.call(e):o==="[object Error]"?st(e):o==="[object RegExp]"?n?fn.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):fn.call(e):e instanceof Error?st(e):null}a(jt,"printBasicValue");function Nt(e,t,n,r,i,o){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let s=++r>t.maxDepth,c=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!o)return oe(e.toJSON(),t,n,r,i,!0);let l=Xn.call(e);return l==="[object Arguments]"?s?"[Arguments]":`${c?"":"Arguments "}[${Ce(e,t,n,r,i,oe)}]`:nr(l)?s?`[${e.constructor.name}]`:`${c||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Ce(e,t,n,r,i,oe)}]`:l==="[object Map]"?s?"[Map]":`Map {${be(e.entries(),t,n,r,i,oe," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${Be(e.values(),t,n,r,i,oe)}}`:s||Zn(e)?`[${Oe(e)}]`:`${c||!t.printBasicPrototype&&Oe(e)==="Object"?"":`${Oe(e)} `}{${ze(e,t,n,r,i,oe)}}`}a(Nt,"printComplexValue");var fo={test:a(e=>e&&e instanceof Error,"test"),serialize(e,t,n,r,i,o){if(i.includes(e))return"[Circular]";i=[...i,e];let s=++r>t.maxDepth,{message:c,cause:l,...f}=e,g={message:c,...typeof l<"u"?{cause:l}:{},...e instanceof AggregateError?{errors:e.errors}:{},...f},u=e.name!=="Error"?e.name:Oe(e);return s?`[${u}]`:`${u} {${be(Object.entries(g).values(),t,n,r,i,o)}}`}};function or(e){return e.serialize!=null}a(or,"isNewPlugin");function Mt(e,t,n,r,i,o){let s;try{s=or(e)?e.serialize(t,n,r,i,o,oe):e.print(t,c=>oe(c,n,r,i,o),c=>{let l=r+n.indent;return l+c.replaceAll(uo,`
|
|
3
|
+
${l}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(c){throw new tr(c.message,c.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(Mt,"printPlugin");function Lt(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new tr(r.message,r.stack)}return null}a(Lt,"findPlugin");function oe(e,t,n,r,i,o){let s=Lt(t.plugins,e);if(s!==null)return Mt(s,e,t,n,r,i);let c=jt(e,t.printFunctionName,t.escapeRegex,t.escapeString);return c!==null?c:Nt(e,t,n,r,i,o)}a(oe,"printer");var Rt={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},sr=Object.keys(Rt),X={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Rt};function ar(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(X,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(ar,"validateOptions");function lr(){return sr.reduce((e,t)=>{let n=Rt[t],r=n&&ae[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}a(lr,"getColorsHighlight");function cr(){return sr.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}a(cr,"getColorsEmpty");function Dt(e){return e?.printFunctionName??X.printFunctionName}a(Dt,"getPrintFunctionName");function Tt(e){return e?.escapeRegex??X.escapeRegex}a(Tt,"getEscapeRegex");function kt(e){return e?.escapeString??X.escapeString}a(kt,"getEscapeString");function at(e){return{callToJSON:e?.callToJSON??X.callToJSON,colors:e?.highlight?lr():cr(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:X.compareKeys,escapeRegex:Tt(e),escapeString:kt(e),indent:e?.min?"":ur(e?.indent??X.indent),maxDepth:e?.maxDepth??X.maxDepth,maxWidth:e?.maxWidth??X.maxWidth,min:e?.min??X.min,plugins:e?.plugins??X.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Dt(e),spacingInner:e?.min?" ":`
|
|
4
|
+
`,spacingOuter:e?.min?"":`
|
|
5
|
+
`}}a(at,"getConfig");function ur(e){return Array.from({length:e+1}).join(" ")}a(ur,"createIndent");function Z(e,t){if(t&&(ar(t),t.plugins)){let r=Lt(t.plugins,e);if(r!==null)return Mt(r,e,at(t),"",0,[])}let n=jt(e,Dt(t),Tt(t),kt(t));return n!==null?n:Nt(e,at(t),"",0,[])}a(Z,"format");var Ft={AsymmetricMatcher:Ii,DOMCollection:Ni,DOMElement:Ti,Immutable:qi,ReactElement:no,ReactTestComponent:so,Error:fo},pn={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"]},po={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},me="…";function fr(e,t){let n=pn[po[t]]||pn[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(fr,"colorise");function pr({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:c=[],truncate:l=1/0,stylize:f=String}={},g){let u={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(l),seen:c,inspect:g,stylize:f};return u.colors&&(u.stylize=fr),u}a(pr,"normaliseOptions");function gr(e){return e>="\uD800"&&e<="\uDBFF"}a(gr,"isHighSurrogate");function le(e,t,n=me){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let o=t-r;return o>0&&gr(e[o-1])&&(o=o-1),`${e.slice(0,o)}${n}`}return e}a(le,"truncate");function J(e,t,n,r=", "){n=n||t.inspect;let i=e.length;if(i===0)return"";let o=t.truncate,s="",c="",l="";for(let f=0;f<i;f+=1){let g=f+1===e.length,u=f+2===e.length;l=`${me}(${e.length-f})`;let d=e[f];t.truncate=o-s.length-(g?0:r.length);let h=c||n(d,t)+(g?"":r),m=s.length+h.length,p=m+l.length;if(g&&m>o&&s.length+l.length<=o||!g&&!u&&p>o||(c=g?"":n(e[f+1],t)+(u?"":r),!g&&u&&p>o&&m+c.length>o))break;if(s+=h,!g&&!u&&m+c.length>=o){l=`${me}(${e.length-f-1})`;break}l=""}return`${s}${l}`}a(J,"inspectList");function hr(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(hr,"quoteComplexKey");function de([e,t],n){return n.truncate-=2,typeof e=="string"?e=hr(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(de,"inspectProperty");function mr(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;let r=J(e,t);t.truncate-=r.length;let i="";return n.length&&(i=J(n.map(o=>[o,e[o]]),t,de)),`[ ${r}${i?`, ${i}`:""} ]`}a(mr,"inspectArray");var go=a(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function te(e,t){let n=go(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i="";for(let s=0;s<e.length;s++){let c=`${t.stylize(le(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=c.length,e[s]!==e.length&&t.truncate<=3){i+=`${me}(${e.length-e[s]+1})`;break}i+=c}let o="";return r.length&&(o=J(r.map(s=>[s,e[s]]),t,de)),`${n}[ ${i}${o?`, ${o}`:""} ]`}a(te,"inspectTypedArray");function dr(e,t){let n=e.toJSON();if(n===null)return"Invalid Date";let r=n.split("T"),i=r[0];return t.stylize(`${i}T${le(r[1],t.truncate-i.length-1)}`,"date")}a(dr,"inspectDate");function lt(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${le(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(lt,"inspectFunction");function yr([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(yr,"inspectMapEntry");function br(e){let t=[];return e.forEach((n,r)=>{t.push([r,n])}),t}a(br,"mapToEntries");function Sr(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${J(br(e),t,yr)} }`)}a(Sr,"inspectMap");var ho=Number.isNaN||(e=>e!==e);function ct(e,t){return ho(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(le(String(e),t.truncate),"number")}a(ct,"inspectNumber");function ut(e,t){let n=le(e.toString(),t.truncate-1);return n!==me&&(n+="n"),t.stylize(n,"bigint")}a(ut,"inspectBigInt");function $r(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${le(i,r)}/${n}`,"regexp")}a($r,"inspectRegExp");function wr(e){let t=[];return e.forEach(n=>{t.push(n)}),t}a(wr,"arrayFromSet");function _r(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${J(wr(e),t)} }`)}a(_r,"inspectSet");var gn=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),mo={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},yo=16;function Or(e){return mo[e]||`\\u${`0000${e.charCodeAt(0).toString(yo)}`.slice(-4)}`}a(Or,"escape");function ft(e,t){return gn.test(e)&&(e=e.replace(gn,Or)),t.stylize(`'${le(e,t.truncate-2)}'`,"string")}a(ft,"inspectString");function pt(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(pt,"inspectSymbol");var Er=a(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Er=a((r,i)=>{let[o,s]=e(r);return o===t?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`},"getPromiseValue"))}catch{}var bo=Er;function Ee(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=J(n.map(c=>[c,e[c]]),t,de),o=J(r.map(c=>[c,e[c]]),t,de);t.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}a(Ee,"inspectObject");var Qe=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Cr(e,t){let n="";return Qe&&Qe in e&&(n=e[Qe]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Ee(e,t)}`}a(Cr,"inspectClass");function vr(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${J(e,t)} ]`)}a(vr,"inspectArguments");var So=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Ir(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>So.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let i="";if(typeof e.message=="string"?i=le(e.message,t.truncate):n.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=J(n.map(s=>[s,e[s]]),t,de);return`${r}${i}${o?` { ${o} }`:""}`}a(Ir,"inspectObject");function Ar([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(Ar,"inspectAttribute");function Me(e,t){return J(e,t,Pr,`
|
|
6
|
+
`)}a(Me,"inspectNodeCollection");function Pr(e,t){switch(e.nodeType){case 1:return Bt(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(Pr,"inspectNode");function Bt(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,"special"),o=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=J(n.map(g=>[g,e.getAttribute(g)]),t,Ar," ")),t.truncate-=c.length;let l=t.truncate,f=Me(e.children,t);return f&&f.length>l&&(f=`${me}(${e.children.length})`),`${i}${c}${o}${f}${s}`}a(Bt,"inspectHTML");var $o=typeof Symbol=="function"&&typeof Symbol.for=="function",Xe=$o?Symbol.for("chai/inspect"):"@@chai/inspect",Ze=Symbol.for("nodejs.util.inspect.custom"),hn=new WeakMap,mn={},dn={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:ct,Number:ct,bigint:ut,BigInt:ut,string:ft,String:ft,function:lt,Function:lt,symbol:pt,Symbol:pt,Array:mr,Date:dr,Map:Sr,Set:_r,RegExp:$r,Promise:bo,WeakSet:a((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:vr,Int8Array:te,Uint8Array:te,Uint8ClampedArray:te,Int16Array:te,Uint16Array:te,Int32Array:te,Uint32Array:te,Float32Array:te,Float64Array:te,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Ir,HTMLCollection:Me,NodeList:Me},wo=a((e,t,n)=>Xe in e&&typeof e[Xe]=="function"?e[Xe](t):Ze in e&&typeof e[Ze]=="function"?e[Ze](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&hn.has(e.constructor)?hn.get(e.constructor)(e,t):mn[n]?mn[n](e,t):"","inspectCustom"),_o=Object.prototype.toString;function Le(e,t={}){let n=pr(t,Le),{customInspect:r}=n,i=e===null?"null":typeof e;if(i==="object"&&(i=_o.call(e).slice(8,-1)),i in dn)return dn[i](e,n);if(r&&e){let s=wo(e,n,i);if(s)return typeof s=="string"?s:Le(s,n)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?Ee(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Bt(e,n):"constructor"in e?e.constructor!==Object?Cr(e,n):Ee(e,n):e===Object(e)?Ee(e,n):n.stylize(String(e),i)}a(Le,"inspect");var{AsymmetricMatcher:Oo,DOMCollection:Eo,DOMElement:Co,Immutable:vo,ReactElement:Io,ReactTestComponent:Ao}=Ft,yn=[Ao,Io,Co,Eo,vo,Oo];function ye(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,o;try{o=Z(e,{maxDepth:t,escapeString:!1,plugins:yn,...r})}catch{o=Z(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:yn,...r})}return o.length>=i&&t>1?ye(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):o}a(ye,"stringify");var Po=/%[sdjifoOc%]/g;function xr(...e){if(typeof e[0]!="string"){let o=[];for(let s=0;s<e.length;s++)o.push(ge(e[s],{depth:0,colors:!1}));return o.join(" ")}let t=e.length,n=1,r=e[0],i=String(r).replace(Po,o=>{if(o==="%%")return"%";if(n>=t)return o;switch(o){case"%s":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():ge(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return ge(e[n++],{showHidden:!0,showProxy:!0});case"%O":return ge(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(s){let c=s.message;if(c.includes("circular structure")||c.includes("cyclic structures")||c.includes("cyclic object"))return"[Circular]";throw s}default:return o}});for(let o=e[n];n<t;o=e[++n])o===null||typeof o!="object"?i+=` ${o}`:i+=` ${ge(o)}`;return i}a(xr,"format");function ge(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Le(e,t)}a(ge,"inspect");function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(jr,"getDefaultExportFromCjs");function Nr(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}a(Nr,"isFinalObj");function Re(e){return Object.prototype.toString.apply(e).slice(8,-1)}a(Re,"getType");function Mr(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}a(Mr,"collectOwnProperties");function zt(e){let t=new Set;return Nr(e)?[]:(Mr(e,t),Array.from(t))}a(zt,"getOwnProperties");var Lr={forceWritable:!1};function gt(e,t=Lr){return De(e,new WeakMap,t)}a(gt,"deepClone");function De(e,t,n=Lr){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]=De(e[r],t,n);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let o=zt(e);for(let s of o){let c=Object.getOwnPropertyDescriptor(e,s);if(!c)continue;let l=De(e[s],t,n);n.forceWritable?Object.defineProperty(i,s,{enumerable:c.enumerable,configurable:!0,writable:!0,value:l}):"get"in c?Object.defineProperty(i,s,{...c,get(){return l}}):Object.defineProperty(i,s,{...c,value:l})}return i}return e}a(De,"clone");var T=-1,R=1,j=0,Rr=class{0;1;constructor(t,n){this[0]=t,this[1]=n}};a(Rr,"Diff");var x=Rr;function Dr(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,o=0;for(;n<i;)e.substring(o,i)===t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}a(Dr,"diff_commonPrefix");function Ut(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,o=0;for(;n<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}a(Ut,"diff_commonSuffix");function ht(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let o=0,s=1;for(;;){let c=e.substring(i-s),l=t.indexOf(c);if(l===-1)return o;s+=l,(l===0||e.substring(i-s)===t.substring(0,s))&&(o=s,s++)}}a(ht,"diff_commonOverlap_");function Tr(e){let t=!1,n=[],r=0,i=null,o=0,s=0,c=0,l=0,f=0;for(;o<e.length;)e[o][0]===j?(n[r++]=o,s=l,c=f,l=0,f=0,i=e[o][1]):(e[o][0]===R?l+=e[o][1].length:f+=e[o][1].length,i&&i.length<=Math.max(s,c)&&i.length<=Math.max(l,f)&&(e.splice(n[r-1],0,new x(T,i)),e[n[r-1]+1][0]=R,r--,r--,o=r>0?n[r-1]:-1,s=0,c=0,l=0,f=0,i=null,t=!0)),o++;for(t&&Wt(e),kr(e),o=1;o<e.length;){if(e[o-1][0]===T&&e[o][0]===R){let g=e[o-1][1],u=e[o][1],d=ht(g,u),h=ht(u,g);d>=h?(d>=g.length/2||d>=u.length/2)&&(e.splice(o,0,new x(j,u.substring(0,d))),e[o-1][1]=g.substring(0,g.length-d),e[o+1][1]=u.substring(d),o++):(h>=g.length/2||h>=u.length/2)&&(e.splice(o,0,new x(j,g.substring(0,h))),e[o-1][0]=R,e[o-1][1]=u.substring(0,u.length-h),e[o+1][0]=T,e[o+1][1]=g.substring(h),o++),o++}o++}}a(Tr,"diff_cleanupSemantic");var bn=/[^a-z0-9]/i,Sn=/\s/,$n=/[\r\n]/,xo=/\n\r?\n$/,jo=/^\r?\n\r?\n/;function kr(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===j&&e[t+1][0]===j){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],o=Ut(n,r);if(o){let g=r.substring(r.length-o);n=n.substring(0,n.length-o),r=g+r.substring(0,r.length-o),i=g+i}let s=n,c=r,l=i,f=we(n,r)+we(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let g=we(n,r)+we(r,i);g>=f&&(f=g,s=n,c=r,l=i)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=c,l?e[t+1][1]=l:(e.splice(t+1,1),t--))}t++}}a(kr,"diff_cleanupSemanticLossless");function Wt(e){e.push(new x(j,""));let t=0,n=0,r=0,i="",o="",s;for(;t<e.length;)switch(e[t][0]){case R:r++,o+=e[t][1],t++;break;case T:n++,i+=e[t][1],t++;break;case j:n+r>1?(n!==0&&r!==0&&(s=Dr(o,i),s!==0&&(t-n-r>0&&e[t-n-r-1][0]===j?e[t-n-r-1][1]+=o.substring(0,s):(e.splice(0,0,new x(j,o.substring(0,s))),t++),o=o.substring(s),i=i.substring(s)),s=Ut(o,i),s!==0&&(e[t][1]=o.substring(o.length-s)+e[t][1],o=o.substring(0,o.length-s),i=i.substring(0,i.length-s))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new x(T,i)),t++),o.length&&(e.splice(t,0,new x(R,o)),t++),t++):t!==0&&e[t-1][0]===j?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i="",o="";break}e[e.length-1][1]===""&&e.pop();let c=!1;for(t=1;t<e.length-1;)e[t-1][0]===j&&e[t+1][0]===j&&(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),c=!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),c=!0)),t++;c&&Wt(e)}a(Wt,"diff_cleanupMerge");function we(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(bn),o=r.match(bn),s=i&&n.match(Sn),c=o&&r.match(Sn),l=s&&n.match($n),f=c&&r.match($n),g=l&&e.match(xo),u=f&&t.match(jo);return g||u?5:l||f?4:i&&!s&&c?3:s||c?2:i||o?1:0}a(we,"diff_cleanupSemanticScore_");var Fr="Compared values have no visual difference.",No="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Pe={},wn;function Br(){if(wn)return Pe;wn=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=d;let e="diff-sequences",t=0,n=a((h,m,p,y,S)=>{let w=0;for(;h<m&&p<y&&S(h,p);)h+=1,p+=1,w+=1;return w},"countCommonItemsF"),r=a((h,m,p,y,S)=>{let w=0;for(;h<=m&&p<=y&&S(m,y);)m-=1,y-=1,w+=1;return w},"countCommonItemsR"),i=a((h,m,p,y,S,w,O)=>{let b=0,$=-h,C=w[b],_=C;w[b]+=n(C+1,m,y+C-$+1,p,S);let A=h<O?h:O;for(b+=1,$+=2;b<=A;b+=1,$+=2){if(b!==h&&_<w[b])C=w[b];else if(C=_+1,m<=C)return b-1;_=w[b],w[b]=C+n(C+1,m,y+C-$+1,p,S)}return O},"extendPathsF"),o=a((h,m,p,y,S,w,O)=>{let b=0,$=h,C=w[b],_=C;w[b]-=r(m,C-1,p,y+C-$-1,S);let A=h<O?h:O;for(b+=1,$-=2;b<=A;b+=1,$-=2){if(b!==h&&w[b]<_)C=w[b];else if(C=_-1,C<m)return b-1;_=w[b],w[b]=C-r(m,C-1,p,y+C-$-1,S)}return O},"extendPathsR"),s=a((h,m,p,y,S,w,O,b,$,C,_)=>{let A=y-m,q=p-m,D=S-y-q,M=-D-(h-1),k=-D+(h-1),F=t,H=h<b?h:b;for(let v=0,N=-h;v<=H;v+=1,N+=2){let G=v===0||v!==h&&F<O[v],L=G?O[v]:F,z=G?L:L+1,V=A+z-N,U=n(z+1,p,V+1,S,w),W=z+U;if(F=O[v],O[v]=W,M<=N&&N<=k){let ee=(h-1-(N+D))/2;if(ee<=C&&$[ee]-1<=W){let Q=A+L-(G?N+1:N-1),B=r(m,L,y,Q,w),K=L-B,ne=Q-B,re=K+1,pe=ne+1;_.nChangePreceding=h-1,h-1===re+pe-m-y?(_.aEndPreceding=m,_.bEndPreceding=y):(_.aEndPreceding=re,_.bEndPreceding=pe),_.nCommonPreceding=B,B!==0&&(_.aCommonPreceding=re,_.bCommonPreceding=pe),_.nCommonFollowing=U,U!==0&&(_.aCommonFollowing=z+1,_.bCommonFollowing=V+1);let Se=W+1,$e=V+U+1;return _.nChangeFollowing=h-1,h-1===p+S-Se-$e?(_.aStartFollowing=p,_.bStartFollowing=S):(_.aStartFollowing=Se,_.bStartFollowing=$e),!0}}}return!1},"extendOverlappablePathsF"),c=a((h,m,p,y,S,w,O,b,$,C,_)=>{let A=S-p,q=p-m,D=S-y-q,M=D-h,k=D+h,F=t,H=h<C?h:C;for(let v=0,N=h;v<=H;v+=1,N-=2){let G=v===0||v!==h&&$[v]<F,L=G?$[v]:F,z=G?L:L-1,V=A+z-N,U=r(m,z-1,y,V-1,w),W=z-U;if(F=$[v],$[v]=W,M<=N&&N<=k){let ee=(h+(N-D))/2;if(ee<=b&&W-1<=O[ee]){let Q=V-U;if(_.nChangePreceding=h,h===W+Q-m-y?(_.aEndPreceding=m,_.bEndPreceding=y):(_.aEndPreceding=W,_.bEndPreceding=Q),_.nCommonPreceding=U,U!==0&&(_.aCommonPreceding=W,_.bCommonPreceding=Q),_.nChangeFollowing=h-1,h===1)_.nCommonFollowing=0,_.aStartFollowing=p,_.bStartFollowing=S;else{let B=A+L-(G?N-1:N+1),K=n(L,p,B,S,w);_.nCommonFollowing=K,K!==0&&(_.aCommonFollowing=L,_.bCommonFollowing=B);let ne=L+K,re=B+K;h-1===p+S-ne-re?(_.aStartFollowing=p,_.bStartFollowing=S):(_.aStartFollowing=ne,_.bStartFollowing=re)}return!0}}}return!1},"extendOverlappablePathsR"),l=a((h,m,p,y,S,w,O,b,$)=>{let C=y-m,_=S-p,A=p-m,q=S-y,D=q-A,M=A,k=A;if(O[0]=m-1,b[0]=p,D%2===0){let F=(h||D)/2,H=(A+q)/2;for(let v=1;v<=H;v+=1)if(M=i(v,p,S,C,w,O,M),v<F)k=o(v,m,y,_,w,b,k);else if(c(v,m,p,y,S,w,O,M,b,k,$))return}else{let F=((h||D)+1)/2,H=(A+q+1)/2,v=1;for(M=i(v,p,S,C,w,O,M),v+=1;v<=H;v+=1)if(k=o(v-1,m,y,_,w,b,k),v<F)M=i(v,p,S,C,w,O,M);else if(s(v,m,p,y,S,w,O,M,b,k,$))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${p} bStart=${y} bEnd=${S}`)},"divide"),f=a((h,m,p,y,S,w,O,b,$,C)=>{if(S-y<p-m){if(w=!w,w&&O.length===1){let{foundSubsequence:ee,isCommon:Q}=O[0];O[1]={foundSubsequence:a((B,K,ne)=>{ee(B,ne,K)},"foundSubsequence"),isCommon:a((B,K)=>Q(K,B),"isCommon")}}let U=m,W=p;m=y,p=S,y=U,S=W}let{foundSubsequence:_,isCommon:A}=O[w?1:0];l(h,m,p,y,S,A,b,$,C);let{nChangePreceding:q,aEndPreceding:D,bEndPreceding:M,nCommonPreceding:k,aCommonPreceding:F,bCommonPreceding:H,nCommonFollowing:v,aCommonFollowing:N,bCommonFollowing:G,nChangeFollowing:L,aStartFollowing:z,bStartFollowing:V}=C;m<D&&y<M&&f(q,m,D,y,M,w,O,b,$,C),k!==0&&_(k,F,H),v!==0&&_(v,N,G),z<p&&V<S&&f(L,z,p,V,S,w,O,b,$,C)},"findSubsequences"),g=a((h,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${h} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${h} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${h} value ${m} is a negative integer`)},"validateLength"),u=a((h,m)=>{let p=typeof m;if(p!=="function")throw new TypeError(`${e}: ${h} typeof ${p} is not a function`)},"validateCallback");function d(h,m,p,y){g("aLength",h),g("bLength",m),u("isCommon",p),u("foundSubsequence",y);let S=n(0,h,0,m,p);if(S!==0&&y(S,0,0),h!==S||m!==S){let w=S,O=S,b=r(w,h-1,O,m-1,p),$=h-b,C=m-b,_=S+b;h!==_&&m!==_&&f(0,w,$,O,C,!1,[{foundSubsequence:y,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}),b!==0&&y(b,$,C)}}return a(d,"diffSequence"),Pe}a(Br,"requireBuild");var Mo=Br(),zr=jr(Mo);function Ur(e,t){return e.replace(/\s+$/,n=>t(n))}a(Ur,"formatTrailingSpaces");function Je(e,t,n,r,i,o){return e.length!==0?n(`${r} ${Ur(e,i)}`):r!==" "?n(r):t&&o.length!==0?n(`${r} ${o}`):""}a(Je,"printDiffLine");function Kt(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Je(e,t,n,r,i,o)}a(Kt,"printDeleteLine");function Vt(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Je(e,t,n,r,i,o)}a(Vt,"printInsertLine");function Yt(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Je(e,t,n,r,i,o)}a(Yt,"printCommonLine");function mt(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}a(mt,"createPatchMark");function Wr(e,t){let n=e.length,r=t.contextLines,i=r+r,o=n,s=!1,c=0,l=0;for(;l!==n;){let b=l;for(;l!==n&&e[l][0]===j;)l+=1;if(b!==l)if(b===0)l>r&&(o-=l-r,s=!0);else if(l===n){let $=l-b;$>r&&(o-=$-r,s=!0)}else{let $=l-b;$>i&&(o-=$-i,c+=1)}for(;l!==n&&e[l][0]!==j;)l+=1}let f=c!==0||s;c!==0?o+=c+1:s&&(o+=1);let g=o-1,u=[],d=0;f&&u.push("");let h=0,m=0,p=0,y=0,S=a(b=>{let $=u.length;u.push(Yt(b,$===0||$===g,t)),p+=1,y+=1},"pushCommonLine"),w=a(b=>{let $=u.length;u.push(Kt(b,$===0||$===g,t)),p+=1},"pushDeleteLine"),O=a(b=>{let $=u.length;u.push(Vt(b,$===0||$===g,t)),y+=1},"pushInsertLine");for(l=0;l!==n;){let b=l;for(;l!==n&&e[l][0]===j;)l+=1;if(b!==l)if(b===0){l>r&&(b=l-r,h=b,m=b,p=h,y=m);for(let $=b;$!==l;$+=1)S(e[$][1])}else if(l===n){let $=l-b>r?b+r:l;for(let C=b;C!==$;C+=1)S(e[C][1])}else{let $=l-b;if($>i){let C=b+r;for(let A=b;A!==C;A+=1)S(e[A][1]);u[d]=mt(h,p,m,y,t),d=u.length,u.push("");let _=$-i;h=p+_,m=y+_,p=h,y=m;for(let A=l-r;A!==l;A+=1)S(e[A][1])}else for(let C=b;C!==l;C+=1)S(e[C][1])}for(;l!==n&&e[l][0]===T;)w(e[l][1]),l+=1;for(;l!==n&&e[l][0]===R;)O(e[l][1]),l+=1}return f&&(u[d]=mt(h,p,m,y,t)),u.join(`
|
|
7
|
+
`)}a(Wr,"joinAlignedDiffsNoExpand");function Kr(e,t){return e.map((n,r,i)=>{let o=n[1],s=r===0||r===i.length-1;switch(n[0]){case T:return Kt(o,s,t);case R:return Vt(o,s,t);default:return Yt(o,s,t)}}).join(`
|
|
8
|
+
`)}a(Kr,"joinAlignedDiffsExpand");var et=a(e=>e,"noColor"),Vr=5,Lo=0;function Yr(){return{aAnnotation:"Expected",aColor:ae.green,aIndicator:"-",bAnnotation:"Received",bColor:ae.red,bIndicator:"+",changeColor:ae.inverse,changeLineTrailingSpaceColor:et,commonColor:ae.dim,commonIndicator:" ",commonLineTrailingSpaceColor:et,compareKeys:void 0,contextLines:Vr,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:ae.yellow,printBasicPrototype:!1,truncateThreshold:Lo,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:et}}a(Yr,"getDefaultOptions");function Jr(e){return e&&typeof e=="function"?e:void 0}a(Jr,"getCompareKeys");function qr(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Vr}a(qr,"getContextLines");function ce(e={}){return{...Yr(),...e,compareKeys:Jr(e.compareKeys),contextLines:qr(e.contextLines)}}a(ce,"normalizeDiffOptions");function fe(e){return e.length===1&&e[0].length===0}a(fe,"isEmptyString");function Hr(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case T:t+=1;break;case R:n+=1;break}}),{a:t,b:n}}a(Hr,"countChanges");function Gr({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:o,includeChangeCounts:s,omitAnnotationLines:c},l){if(c)return"";let f="",g="";if(s){let h=String(l.a),m=String(l.b),p=r.length-e.length,y=" ".repeat(Math.max(0,p)),S=" ".repeat(Math.max(0,-p)),w=m.length-h.length,O=" ".repeat(Math.max(0,w)),b=" ".repeat(Math.max(0,-w));f=`${y} ${n} ${O}${h}`,g=`${S} ${o} ${b}${m}`}let u=`${n} ${e}${f}`,d=`${o} ${r}${g}`;return`${t(u)}
|
|
9
|
+
${i(d)}
|
|
10
|
+
|
|
11
|
+
`}a(Gr,"printAnnotation");function qe(e,t,n){return Gr(n,Hr(e))+(n.expand?Kr(e,n):Wr(e,n))+(t?n.truncateAnnotationColor(`
|
|
12
|
+
${n.truncateAnnotation}`):"")}a(qe,"printDiffLines");function Ie(e,t,n){let r=ce(n),[i,o]=Jt(fe(e)?[]:e,fe(t)?[]:t,r);return qe(i,o,r)}a(Ie,"diffLinesUnified");function Qr(e,t,n,r,i){if(fe(e)&&fe(n)&&(e=[],n=[]),fe(t)&&fe(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return Ie(e,t,i);let[o,s]=Jt(n,r,i),c=0,l=0;return o.forEach(f=>{switch(f[0]){case T:f[1]=e[c],c+=1;break;case R:f[1]=t[l],l+=1;break;default:f[1]=t[l],c+=1,l+=1}}),qe(o,s,ce(i))}a(Qr,"diffLinesUnified2");function Jt(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),o=r?Math.min(e.length,i):e.length,s=r?Math.min(t.length,i):t.length,c=o!==e.length||s!==t.length,l=a((d,h)=>e[d]===t[h],"isCommon"),f=[],g=0,u=0;for(zr(o,s,l,a((d,h,m)=>{for(;g!==h;g+=1)f.push(new x(T,e[g]));for(;u!==m;u+=1)f.push(new x(R,t[u]));for(;d!==0;d-=1,g+=1,u+=1)f.push(new x(j,t[u]))},"foundSubsequence"));g!==o;g+=1)f.push(new x(T,e[g]));for(;u!==s;u+=1)f.push(new x(R,t[u]));return[f,c]}a(Jt,"diffLinesRaw");function dt(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}a(dt,"getType");function yt(e){return e.includes(`\r
|
|
13
|
+
`)?`\r
|
|
14
|
+
`:`
|
|
15
|
+
`}a(yt,"getNewLineSymbol");function Xr(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),o=e.length,s=t.length;if(r){let d=e.includes(`
|
|
16
|
+
`),h=t.includes(`
|
|
17
|
+
`),m=yt(e),p=yt(t),y=d?`${e.split(m,i).join(m)}
|
|
18
|
+
`:e,S=h?`${t.split(p,i).join(p)}
|
|
19
|
+
`:t;o=y.length,s=S.length}let c=o!==e.length||s!==t.length,l=a((d,h)=>e[d]===t[h],"isCommon"),f=0,g=0,u=[];return zr(o,s,l,a((d,h,m)=>{f!==h&&u.push(new x(T,e.slice(f,h))),g!==m&&u.push(new x(R,t.slice(g,m))),f=h+d,g=m+d,u.push(new x(j,t.slice(m,g)))},"foundSubsequence")),f!==o&&u.push(new x(T,e.slice(f))),g!==s&&u.push(new x(R,t.slice(g))),[u,c]}a(Xr,"diffStrings");function Zr(e,t,n){return t.reduce((r,i)=>r+(i[0]===j?i[1]:i[0]===e&&i[1].length!==0?n(i[1]):""),"")}a(Zr,"concatenateRelevantDiffs");var ei=class{op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(t){this.pushDiff(new x(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new x(this.op,Zr(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new x(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){let n=t[1];if(n.includes(`
|
|
20
|
+
`)){let r=n.split(`
|
|
21
|
+
`),i=r.length-1;r.forEach((o,s)=>{s<i?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};a(ei,"ChangeBuffer");var _n=ei,ti=class{deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let n=t[0],r=t[1];if(r.includes(`
|
|
22
|
+
`)){let i=r.split(`
|
|
23
|
+
`),o=i.length-1;i.forEach((s,c)=>{if(c===0){let l=new x(n,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else c<o?this.pushDiffCommonLine(new x(n,s)):s.length!==0&&this.pushDiffChangeLines(new x(n,s))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};a(ti,"CommonBuffer");var Ro=ti;function ni(e,t){let n=new _n(T,t),r=new _n(R,t),i=new Ro(n,r);return e.forEach(o=>{switch(o[0]){case T:n.align(o);break;case R:r.align(o);break;default:i.align(o)}}),i.getLines()}a(ni,"getAlignedDiffs");function ri(e,t){if(t){let n=e.length-1;return e.some((r,i)=>r[0]===j&&(i!==n||r[1]!==`
|
|
24
|
+
`))}return e.some(n=>n[0]===j)}a(ri,"hasCommonDiff");function ii(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
|
|
25
|
+
`)||t.includes(`
|
|
26
|
+
`),[i,o]=qt(r?`${e}
|
|
27
|
+
`:e,r?`${t}
|
|
28
|
+
`:t,!0,n);if(ri(i,r)){let s=ce(n),c=ni(i,s.changeColor);return qe(c,o,s)}}return Ie(e.split(`
|
|
29
|
+
`),t.split(`
|
|
30
|
+
`),n)}a(ii,"diffStringsUnified");function qt(e,t,n,r){let[i,o]=Xr(e,t,r);return n&&Tr(i),[i,o]}a(qt,"diffStringsRaw");function Te(e,t){let{commonColor:n}=ce(t);return n(e)}a(Te,"getCommonMessage");var{AsymmetricMatcher:Do,DOMCollection:To,DOMElement:ko,Immutable:Fo,ReactElement:Bo,ReactTestComponent:zo}=Ft,oi=[zo,Bo,ko,To,Fo,Do,Ft.Error],bt={maxDepth:20,plugins:oi},si={callToJSON:!1,maxDepth:8,plugins:oi};function ai(e,t,n){if(Object.is(e,t))return"";let r=dt(e),i=r,o=!1;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),o=i==="string"}if(i!==dt(t)){let s=function(O){return O.length<=y?O:`${O.slice(0,y)}...`};a(s,"truncate");let{aAnnotation:c,aColor:l,aIndicator:f,bAnnotation:g,bColor:u,bIndicator:d}=ce(n),h=ke(si,n),m=Z(e,h),p=Z(t,h),y=1e5;m=s(m),p=s(p);let S=`${l(`${f} ${c}:`)}
|
|
31
|
+
${m}`,w=`${u(`${d} ${g}:`)}
|
|
32
|
+
${p}`;return`${S}
|
|
33
|
+
|
|
34
|
+
${w}`}if(!o)switch(r){case"string":return Ie(e.split(`
|
|
35
|
+
`),t.split(`
|
|
36
|
+
`),n);case"boolean":case"number":return li(e,t,n);case"map":return Ne(St(e),St(t),n);case"set":return Ne($t(e),$t(t),n);default:return Ne(e,t,n)}}a(ai,"diff");function li(e,t,n){let r=Z(e,bt),i=Z(t,bt);return r===i?"":Ie(r.split(`
|
|
37
|
+
`),i.split(`
|
|
38
|
+
`),n)}a(li,"comparePrimitive");function St(e){return new Map(Array.from(e.entries()).sort())}a(St,"sortMap");function $t(e){return new Set(Array.from(e.values()).sort())}a($t,"sortSet");function Ne(e,t,n){let r,i=!1;try{let s=ke(bt,n);r=wt(e,t,s,n)}catch{i=!0}let o=Te(Fr,n);if(r===void 0||r===o){let s=ke(si,n);r=wt(e,t,s,n),r!==o&&!i&&(r=`${Te(No,n)}
|
|
39
|
+
|
|
40
|
+
${r}`)}return r}a(Ne,"compareObjects");function ke(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=ce(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}a(ke,"getFormatOptions");function wt(e,t,n,r){let i={...n,indent:0},o=Z(e,i),s=Z(t,i);if(o===s)return Te(Fr,r);{let c=Z(e,n),l=Z(t,n);return Qr(c.split(`
|
|
41
|
+
`),l.split(`
|
|
42
|
+
`),o.split(`
|
|
43
|
+
`),s.split(`
|
|
44
|
+
`),r)}}a(wt,"getObjectsDifference");var On=2e4;function _t(e){return Re(e)==="Object"&&typeof e.asymmetricMatch=="function"}a(_t,"isAsymmetricMatcher");function Ot(e,t){let n=Re(e),r=Re(t);return n===r&&(n==="Object"||n==="Array")}a(Ot,"isReplaceable");function ci(e,t,n){let{aAnnotation:r,bAnnotation:i}=ce(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=On&&e.length<=On&&t!==e){if(t.includes(`
|
|
45
|
+
`)||e.includes(`
|
|
46
|
+
`))return ii(t,e,n);let[f]=qt(t,e,!0),g=f.some(m=>m[0]===j),u=ui(r,i),d=u(r)+pi(Et(f,T,g)),h=u(i)+fi(Et(f,R,g));return`${d}
|
|
47
|
+
${h}`}let o=gt(t,{forceWritable:!0}),s=gt(e,{forceWritable:!0}),{replacedExpected:c,replacedActual:l}=Ht(s,o);return ai(c,l,n)}a(ci,"printDiffOrStringify");function Ht(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}):Ot(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),zt(t).forEach(i=>{let o=t[i],s=e[i];if(_t(o))o.asymmetricMatch(s)&&(e[i]=o);else if(_t(s))s.asymmetricMatch(o)&&(t[i]=s);else if(Ot(s,o)){let c=Ht(s,o,n,r);e[i]=c.replacedActual,t[i]=c.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}a(Ht,"replaceAsymmetricMatcher");function ui(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}a(ui,"getLabelPrinter");var Uo="·";function Gt(e){return e.replace(/\s+$/gm,t=>Uo.repeat(t.length))}a(Gt,"replaceTrailingSpaces");function fi(e){return ae.red(Gt(ye(e)))}a(fi,"printReceived");function pi(e){return ae.green(Gt(ye(e)))}a(pi,"printExpected");function Et(e,t,n){return e.reduce((r,i)=>r+(i[0]===j?i[1]:i[0]===t?n?ae.inverse(i[1]):i[1]:""),"")}a(Et,"getCommonAndChangedSubstrings");var Wo="@@__IMMUTABLE_RECORD__@@",Ko="@@__IMMUTABLE_ITERABLE__@@";function gi(e){return e&&(e[Ko]||e[Wo])}a(gi,"isImmutable");var Vo=Object.getPrototypeOf({});function Ct(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}a(Ct,"getUnserializableMessage");function se(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let n=e.toJSON();return n&&n!==e&&typeof n=="object"&&(typeof e.message=="string"&&_e(()=>n.message??(n.message=e.message)),typeof e.stack=="string"&&_e(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&_e(()=>n.name??(n.name=e.name)),e.cause!=null&&_e(()=>n.cause??(n.cause=se(e.cause,t)))),se(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(gi(e))return se(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${xr(e.sample)}`;if(typeof e.toJSON=="function")return se(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,i)=>{try{n[i]=se(r,t)}catch(o){n[i]=Ct(o)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Vo;)Object.getOwnPropertyNames(r).forEach(i=>{if(!(i in n))try{n[i]=se(e[i],t)}catch(o){delete n[i],n[i]=Ct(o)}}),r=Object.getPrototypeOf(r);return n}}a(se,"serializeValue");function _e(e){try{return e()}catch{}}a(_e,"safe");function hi(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a(hi,"normalizeErrorMessage");function Qt(e,t,n=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=ci(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=ye(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=ye(r.actual,10));try{typeof r.message=="string"&&(r.message=hi(r.message))}catch{}try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=Qt(r.cause,t,n))}catch{}try{return se(r)}catch(i){return se(new Error(`Failed to fully serialize error: ${i?.message}
|
|
48
|
+
Inner error message: ${r?.message}`))}}a(Qt,"processError");var ie={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},tt=globalThis.__STORYBOOK_ADDONS_PREVIEW,Yo=new Error("This function ran after the play function completed. Did you forget to `await` it?"),En=a(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),Jo=a(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),qo=a(e=>{if(!En(e)&&!Jo(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!En(t)},"isInstrumentable"),Ho=a(e=>{try{return new e.constructor}catch{return{}}},"construct"),nt=a(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),Cn=a((e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},"getRetainedState"),mi=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=a(()=>{try{this.state=Y.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=a(()=>{try{Y.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=a(({storyId:l,renderPhase:f,isPlaying:g=!0,isDebugging:u=!1})=>{let d=this.getState(l);this.setState(l,{...nt(),...Cn(d,u),renderPhase:f||d.renderPhase,shadowCalls:u?d.shadowCalls:[],chainedCallIds:u?d.chainedCallIds:new Set,playUntil:u?d.playUntil:void 0,isPlaying:g,isDebugging:u}),this.sync(l)},"resetState"),n=a(l=>({storyId:f,playUntil:g})=>{this.getState(f).isDebugging||this.setState(f,({calls:d})=>({calls:[],shadowCalls:d.map(h=>({...h,status:"waiting"})),isDebugging:!0}));let u=this.getLog(f);this.setState(f,({shadowCalls:d})=>{if(g||!u.length)return{playUntil:g};let h=d.findIndex(m=>m.id===u[0].callId);return{playUntil:d.slice(0,h).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),l.emit(tn,{storyId:f,isDebugging:!0})},"start"),r=a(l=>({storyId:f})=>{let g=this.getLog(f).filter(d=>!d.ancestors?.length),u=g.reduceRight((d,h,m)=>d>=0||h.status==="waiting"?d:m,-1);n(l)({storyId:f,playUntil:g[u-1]?.callId})},"back"),i=a(l=>({storyId:f,callId:g})=>{let{calls:u,shadowCalls:d,resolvers:h}=this.getState(f),m=u.find(({id:y})=>y===g),p=d.find(({id:y})=>y===g);if(!m&&p&&Object.values(h).length>0){let y=this.getLog(f).find(S=>S.status==="waiting")?.callId;p.id!==y&&this.setState(f,{playUntil:p.id}),Object.values(h).forEach(S=>S())}else n(l)({storyId:f,playUntil:g})},"goto"),o=a(l=>({storyId:f})=>{let{resolvers:g}=this.getState(f);if(Object.values(g).length>0)Object.values(g).forEach(u=>u());else{let u=this.getLog(f).find(d=>d.status==="waiting")?.callId;u?n(l)({storyId:f,playUntil:u}):s({storyId:f})}},"next"),s=a(({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(f=>f())},"end"),c=a(({storyId:l,newPhase:f})=>{let{isDebugging:g}=this.getState(l);if(f==="preparing"&&g)return t({storyId:l,renderPhase:f});if(f==="playing")return t({storyId:l,renderPhase:f,isDebugging:g});f==="played"?this.setState(l,{renderPhase:f,isLocked:!1,isPlaying:!1,isDebugging:!1}):f==="errored"?this.setState(l,{renderPhase:f,isLocked:!1,isPlaying:!1}):f==="aborted"?this.setState(l,{renderPhase:f,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:f}),this.sync(l)},"renderPhaseChanged");tt&&tt.ready().then(()=>{this.channel=tt.getChannel(),this.channel.on(tn,t),this.channel.on(Si,c),this.channel.on($i,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(ie.START,n(this.channel)),this.channel.on(ie.BACK,r(this.channel)),this.channel.on(ie.GOTO,i(this.channel)),this.channel.on(ie.NEXT,o(this.channel)),this.channel.on(ie.END,s)})}getState(t){return this.state[t]||nt()}setState(t,n){if(t){let r=this.getState(t),i=typeof n=="function"?n(r):n;this.state={...this.state,[t]:{...r,...i}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((n,[r,i])=>{let o=Cn(i);return o&&(n[r]=Object.assign(nt(),o)),n},{});let t={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(ie.SYNC,t),this.updateParentWindowState()}getLog(t){let{calls:n,shadowCalls:r}=this.getState(t),i=[...r];n.forEach((s,c)=>{i[c]=s});let o=new Set;return i.reduceRight((s,c)=>(c.args.forEach(l=>{l?.__callId__&&o.add(l.__callId__)}),c.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(c.interceptable||c.exception)&&!o.has(c.id)&&(s.unshift({callId:c.id,status:c.status,ancestors:c.ancestors}),o.add(c.id)),s),[])}instrument(t,n,r=0){if(!qo(t))return t;let{mutate:i=!1,path:o=[]}=n,s=n.getKeys?n.getKeys(t,r):Object.keys(t);return r+=1,s.reduce((c,l)=>{let f=di(t,l);if(typeof f?.get=="function"){if(f.configurable){let u=a(()=>f?.get?.bind(t)?.(),"getter");Object.defineProperty(c,l,{get:a(()=>this.instrument(u(),{...n,path:o.concat(l)},r),"get")})}return c}let g=t[l];return typeof g!="function"?(c[l]=this.instrument(g,{...n,path:o.concat(l)},r),c):"__originalFn__"in g&&typeof g.__originalFn__=="function"?(c[l]=g,c):(c[l]=(...u)=>this.track(l,g,t,u,n),c[l].__originalFn__=g,Object.defineProperty(c[l],"name",{value:l,writable:!1}),Object.keys(g).length>0&&Object.assign(c[l],this.instrument({...g},{...n,path:o.concat(l)},r)),c)},i?t:Ho(t))}track(t,n,r,i,o){let s=i?.[0]?.__storyId__||Y.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:c,ancestors:l}=this.getState(s);this.setState(s,{cursor:c+1});let f=`${l.slice(-1)[0]||s} [${c}] ${t}`,{path:g=[],intercept:u=!1,retain:d=!1}=o,h=typeof u=="function"?u(t,g):u,m={id:f,cursor:c,storyId:s,ancestors:l,path:g,method:t,args:i,interceptable:h,retain:d},p=(h&&!l.length?this.intercept:this.invoke).call(this,n,r,m,o);return this.instrument(p,{...o,mutate:!0,path:[{__callId__:m.id}]})}intercept(t,n,r,i){let{chainedCallIds:o,isDebugging:s,playUntil:c}=this.getState(r.storyId),l=o.has(r.id);return!s||l||c?(c===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(t,n,r,i)):new Promise(f=>{this.setState(r.storyId,({resolvers:g})=>({isLocked:!1,resolvers:{...g,[r.id]:f}}))}).then(()=>(this.setState(r.storyId,f=>{let{[r.id]:g,...u}=f.resolvers;return{isLocked:!0,resolvers:u}}),this.invoke(t,n,r,i)))}invoke(t,n,r,i){let{callRefsByResult:o,renderPhase:s}=this.getState(r.storyId),c=25,l=a((u,d,h)=>{if(h.includes(u))return"[Circular]";if(h=[...h,u],d>c)return"...";if(o.has(u))return o.get(u);if(u instanceof Array)return u.map(m=>l(m,++d,h));if(u instanceof Date)return{__date__:{value:u.toISOString()}};if(u instanceof Error){let{name:m,message:p,stack:y}=u;return{__error__:{name:m,message:p,stack:y}}}if(u instanceof RegExp){let{flags:m,source:p}=u;return{__regexp__:{flags:m,source:p}}}if(u instanceof Y.window?.HTMLElement){let{prefix:m,localName:p,id:y,classList:S,innerText:w}=u,O=Array.from(S);return{__element__:{prefix:m,localName:p,id:y,classNames:O,innerText:w}}}return typeof u=="function"?{__function__:{name:"getMockName"in u?u.getMockName():u.name}}:typeof u=="symbol"?{__symbol__:{description:u.description}}:typeof u=="object"&&u?.constructor?.name&&u?.constructor?.name!=="Object"?{__class__:{name:u.constructor.name}}:Object.prototype.toString.call(u)==="[object Object]"?Object.fromEntries(Object.entries(u).map(([m,p])=>[m,l(p,++d,h)])):u},"serializeValues"),f={...r,args:r.args.map(u=>l(u,0,[]))};r.path.forEach(u=>{u?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(u.__callId__))}))});let g=a(u=>{if(u instanceof Error){let{name:d,message:h,stack:m,callId:p=r.id}=u,{showDiff:y=void 0,diff:S=void 0,actual:w=void 0,expected:O=void 0}=u.name==="AssertionError"?Qt(u):u,b={name:d,message:h,stack:m,callId:p,showDiff:y,diff:S,actual:w,expected:O};if(this.update({...f,status:"error",exception:b}),this.setState(r.storyId,$=>({callRefsByResult:new Map([...Array.from($.callRefsByResult.entries()),[u,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(u,"callId")||Object.defineProperty(u,"callId",{value:r.id}),u}throw u},"handleException");try{if(s==="played"&&!r.retain)throw Yo;let u=(i.getArgs?i.getArgs(r,this.getState(r.storyId)):r.args).map(h=>typeof h!="function"||yi(h)||Object.keys(h).length?h:(...m)=>{let{cursor:p,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let S=a(()=>this.setState(r.storyId,{cursor:p,ancestors:y}),"restore"),w=!1;try{let O=h(...m);return O instanceof Promise?(w=!0,O.finally(S)):O}finally{w||S()}}),d=t.apply(n,u);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...f,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(h=>(this.update({...f,status:"done"}),h),g):d}catch(u){return g(u)}}update(t){this.channel?.emit(ie.CALL,t),this.setState(t.storyId,({calls:n})=>{let r=n.concat(t).reduce((i,o)=>Object.assign(i,{[o.id]:o}),{});return{calls:Object.values(r).sort((i,o)=>i.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let n=a(()=>{let{isLocked:r,isPlaying:i}=this.getState(t),o=this.getLog(t),s=o.filter(({ancestors:g})=>!g.length).find(g=>g.status==="waiting")?.callId,c=o.some(g=>g.status==="active");if(this.detached||r||c||o.length===0){let g={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(ie.SYNC,g);return}let l=o.some(g=>g.status==="done"||g.status==="error"),f={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:i,end:i},logItems:o,pausedAt:s};this.channel?.emit(ie.SYNC,f)},"synchronize");this.setState(t,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(n,0)}))}};a(mi,"Instrumenter");var Go=mi;function Qo(e,t={}){try{let n=!1,r=!1;return Y.window?.location?.search?.includes("instrument=true")?n=!0:Y.window?.location?.search?.includes("instrument=false")&&(r=!0),Y.window?.parent===Y.window&&!n||r?e:(Y.window&&!Y.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Y.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Go),(Y.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(n){return bi.warn(n),e}}a(Qo,"instrument");function di(e,t){let n=e;for(;n!=null;){let r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}a(di,"getPropertyDescriptor");function yi(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}a(yi,"isClass");export{ie as EVENTS,Qo as instrument};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{page as s}from"../node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.
|
|
1
|
+
import{page as s}from"../node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.2.1_typescript@5.8.3__playwright@1.54.1__6e6aa2c9b4102560da2d8ed1e4176ee9/node_modules/@vitest/browser/context.js";import n from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js";const d="Supercalifragilisticexpialidocious".repeat(10);async function a(t){return(await n.run(t)).violations}async function p(t){const e=await a(t);o(e,`Expected no axe core violations, but got ${e.length}: ${JSON.stringify(e)}`).toHaveLength(0)}function x(){return s.viewport(320,256)}function h(t){let e;if(t.scrollWidth!==0?e=t:t.shadowRoot?e=t.shadowRoot.firstElementChild:e=t.firstElementChild,e){const r=e.scrollWidth>e.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function g(t,e,r){let i=t.querySelector(":focus-visible");if(i||(i=t.shadowRoot?.querySelector(":focus-visible")),i){const l=getComputedStyle(i).getPropertyValue(e);return o(l).toContain(r)}return o(!0).toBe(!1)}export{g as expectComponentFocusStyle,h as expectComponentNotToHaveHorizontalScrollbar,p as expectNoAxeViolations,x as resizeWindowForReflowTest,a as runAxeAndGetViolations,d as superLongStringForReflowTest};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "6.0.0-preview.
|
|
4
|
+
"version": "6.0.0-preview.4",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"@figma/code-connect": "1.3.4",
|
|
83
83
|
"@lit/localize-tools": "^0.8.0",
|
|
84
84
|
"@salesforce-ux/design-system": "^2.27.2",
|
|
85
|
-
"@storybook/addon-a11y": "^9.
|
|
85
|
+
"@storybook/addon-a11y": "^9.1.1",
|
|
86
86
|
"@storybook/addon-designs": "^10.0.1",
|
|
87
|
-
"@storybook/addon-docs": "^9.
|
|
88
|
-
"@storybook/addon-links": "^9.
|
|
89
|
-
"@storybook/web-components-vite": "^9.
|
|
87
|
+
"@storybook/addon-docs": "^9.1.1",
|
|
88
|
+
"@storybook/addon-links": "^9.1.1",
|
|
89
|
+
"@storybook/web-components-vite": "^9.1.1",
|
|
90
90
|
"@types/react": "^19.1.8",
|
|
91
|
-
"@typescript-eslint/parser": "^8.
|
|
91
|
+
"@typescript-eslint/parser": "^8.39.0",
|
|
92
92
|
"@vitest/browser": "^3.2.4",
|
|
93
93
|
"@vitest/coverage-v8": "^3.2.4",
|
|
94
94
|
"@vitest/ui": "3.2.4",
|
|
@@ -98,21 +98,21 @@
|
|
|
98
98
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
99
99
|
"custom-element-jet-brains-integration": "^1.7.0",
|
|
100
100
|
"custom-elements-manifest": "^2.1.0",
|
|
101
|
-
"eslint": "^9.
|
|
101
|
+
"eslint": "^9.33.0",
|
|
102
102
|
"eslint-config-standard": "^17.1.0",
|
|
103
103
|
"eslint-plugin-import": "^2.32.0",
|
|
104
104
|
"eslint-plugin-json": "^4.0.1",
|
|
105
105
|
"eslint-plugin-n": "^17.21.0",
|
|
106
106
|
"eslint-plugin-promise": "^7.2.1",
|
|
107
|
-
"eslint-plugin-storybook": "^9.
|
|
107
|
+
"eslint-plugin-storybook": "^9.1.1",
|
|
108
108
|
"eslint-plugin-yml": "1.18.0",
|
|
109
109
|
"glob": "^11.0.3",
|
|
110
110
|
"jsdom": "26.1.0",
|
|
111
111
|
"playwright": "1.54.1",
|
|
112
112
|
"postcss": "^8.5.6",
|
|
113
113
|
"rimraf": "^6.0.1",
|
|
114
|
-
"sass": "1.
|
|
115
|
-
"storybook": "^9.
|
|
114
|
+
"sass": "1.90.0",
|
|
115
|
+
"storybook": "^9.1.1",
|
|
116
116
|
"storybook-addon-code-editor": "^5.0.0",
|
|
117
117
|
"storybook-design-token": "^4.1.0",
|
|
118
118
|
"typescript": "^5.8.3",
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@ncino/web-components",
|
|
4
|
-
"version": "6.0.0-preview.
|
|
4
|
+
"version": "6.0.0-preview.3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import{once as bi}from"../client-logger/index.js";import{FORCE_REMOUNT as en,STORY_RENDER_PHASE_CHANGED as Si,SET_CURRENT_STORY as $i}from"../core-events/index.js";import{global as Y}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";var wi=Object.defineProperty,a=(t,e)=>wi(t,"name",{value:e,configurable:!0}),_i={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]},Oi=Object.entries(_i);function Ft(t){return String(t)}a(Ft,"a");Ft.open="";Ft.close="";function vn(t=!1){let e=typeof process<"u"?process:void 0,n=e?.env||{},r=e?.argv||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||e?.platform==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}a(vn,"C");function An(t=!1){let e=vn(t),n=a((s,c,l,f)=>{let p="",u=0;do p+=s.substring(u,f)+l,u=f+c.length,f=s.indexOf(c,u);while(~f);return p+s.substring(u)},"i"),r=a((s,c,l=s)=>{let f=a(p=>{let u=String(p),d=u.indexOf(c,s.length);return~d?s+n(u,c,l,d)+c:s+u+c},"o");return f.open=s,f.close=c,f},"g"),i={isColorSupported:e},o=a(s=>`\x1B[${s}m`,"d");for(let[s,c]of Oi)i[s]=e?r(o(c[0]),o(c[1]),c[2]):Ft;return i}a(An,"p");var at=An();function ve(t,e){return e.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in t)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:a(function(){return n[r]},"get")})}})}),Object.freeze(t)}a(ve,"_mergeNamespaces");function In(t,e){let n=Object.keys(t),r=e===null?n:n.sort(e);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(t))Object.getOwnPropertyDescriptor(t,i).enumerable&&r.push(i);return r}a(In,"getKeysOfEnumerableProperties");function bt(t,e,n,r,i,o,s=": "){let c="",l=0,f=t.next();if(!f.done){c+=e.spacingOuter;let p=n+e.indent;for(;!f.done;){if(c+=p,l++===e.maxWidth){c+="…";break}let u=o(f.value[0],e,p,r,i),d=o(f.value[1],e,p,r,i);c+=u+s+d,f=t.next(),f.done?e.min||(c+=","):c+=`,${e.spacingInner}`}c+=e.spacingOuter+n}return c}a(bt,"printIteratorEntries");function Bt(t,e,n,r,i,o){let s="",c=0,l=t.next();if(!l.done){s+=e.spacingOuter;let f=n+e.indent;for(;!l.done;){if(s+=f,c++===e.maxWidth){s+="…";break}s+=o(l.value,e,f,r,i),l=t.next(),l.done?e.min||(s+=","):s+=`,${e.spacingInner}`}s+=e.spacingOuter+n}return s}a(Bt,"printIteratorValues");function Ct(t,e,n,r,i,o){let s="";t=t instanceof ArrayBuffer?new DataView(t):t;let c=a(f=>f instanceof DataView,"isDataView"),l=c(t)?t.byteLength:t.length;if(l>0){s+=e.spacingOuter;let f=n+e.indent;for(let p=0;p<l;p++){if(s+=f,p===e.maxWidth){s+="…";break}(c(t)||p in t)&&(s+=o(c(t)?t.getInt8(p):t[p],e,f,r,i)),p<l-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}a(Ct,"printListItems");function zt(t,e,n,r,i,o){let s="",c=In(t,e.compareKeys);if(c.length>0){s+=e.spacingOuter;let l=n+e.indent;for(let f=0;f<c.length;f++){let p=c[f],u=o(p,e,l,r,i),d=o(t[p],e,l,r,i);s+=`${l+u}: ${d}`,f<c.length-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}a(zt,"printObjectProperties");var Ei=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Gt=" ",Ci=a((t,e,n,r,i,o)=>{let s=t.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++r>e.maxDepth?`[${s}]`:`${s+Gt}[${Ct(t.sample,e,n,r,i,o)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++r>e.maxDepth?`[${s}]`:`${s+Gt}{${zt(t.sample,e,n,r,i,o)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+Gt+o(t.sample,e,n,r,i);if(typeof t.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`);return t.toAsymmetricMatcher()},"serialize$5"),vi=a(t=>t&&t.$$typeof===Ei,"test$5"),Ai={serialize:Ci,test:vi},Ii=" ",Pn=new Set(["DOMStringMap","NamedNodeMap"]),Pi=/^(?:HTML\w*Collection|NodeList)$/;function xn(t){return Pn.has(t)||Pi.test(t)}a(xn,"testName");var xi=a(t=>t&&t.constructor&&!!t.constructor.name&&xn(t.constructor.name),"test$4");function jn(t){return t.constructor.name==="NamedNodeMap"}a(jn,"isNamedNodeMap");var ji=a((t,e,n,r,i,o)=>{let s=t.constructor.name;return++r>e.maxDepth?`[${s}]`:(e.min?"":s+Ii)+(Pn.has(s)?`{${zt(jn(t)?[...t].reduce((c,l)=>(c[l.name]=l.value,c),{}):{...t},e,n,r,i,o)}}`:`[${Ct([...t],e,n,r,i,o)}]`)},"serialize$4"),Mi={serialize:ji,test:xi};function Ae(t){return t.replaceAll("<","<").replaceAll(">",">")}a(Ae,"escapeHTML");function Ut(t,e,n,r,i,o,s){let c=r+n.indent,l=n.colors;return t.map(f=>{let p=e[f],u=s(p,n,c,i,o);return typeof p!="string"&&(u.includes(`
|
|
2
|
-
`)&&(u=n.spacingOuter+c+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+l.prop.open+f+l.prop.close}=${l.value.open}${u}${l.value.close}`}).join("")}a(Ut,"printProps");function Wt(t,e,n,r,i,o){return t.map(s=>e.spacingOuter+n+(typeof s=="string"?Ie(s,e):o(s,e,n,r,i))).join("")}a(Wt,"printChildren");function Ie(t,e){let n=e.colors.content;return n.open+Ae(t)+n.close}a(Ie,"printText");function Mn(t,e){let n=e.colors.comment;return`${n.open}<!--${Ae(t)}-->${n.close}`}a(Mn,"printComment");function Kt(t,e,n,r,i){let o=r.colors.tag;return`${o.open}<${t}${e&&o.close+e+r.spacingOuter+i+o.open}${n?`>${o.close}${n}${r.spacingOuter}${i}${o.open}</${t}`:`${e&&!r.min?"":" "}/`}>${o.close}`}a(Kt,"printElement");function Vt(t,e){let n=e.colors.tag;return`${n.open}<${t}${n.close} …${n.open} />${n.close}`}a(Vt,"printElementAsLeaf");var Ni=1,Nn=3,Ln=8,Rn=11,Li=/^(?:(?:HTML|SVG)\w*)?Element$/;function Dn(t){try{return typeof t.hasAttribute=="function"&&t.hasAttribute("is")}catch{return!1}}a(Dn,"testHasAttribute");function Tn(t){let e=t.constructor.name,{nodeType:n,tagName:r}=t,i=typeof r=="string"&&r.includes("-")||Dn(t);return n===Ni&&(Li.test(e)||i)||n===Nn&&e==="Text"||n===Ln&&e==="Comment"||n===Rn&&e==="DocumentFragment"}a(Tn,"testNode");var Ri=a(t=>{var e;return(t==null||(e=t.constructor)===null||e===void 0?void 0:e.name)&&Tn(t)},"test$3");function kn(t){return t.nodeType===Nn}a(kn,"nodeIsText");function Fn(t){return t.nodeType===Ln}a(Fn,"nodeIsComment");function xt(t){return t.nodeType===Rn}a(xt,"nodeIsFragment");var Di=a((t,e,n,r,i,o)=>{if(kn(t))return Ie(t.data,e);if(Fn(t))return Mn(t.data,e);let s=xt(t)?"DocumentFragment":t.tagName.toLowerCase();return++r>e.maxDepth?Vt(s,e):Kt(s,Ut(xt(t)?[]:Array.from(t.attributes,c=>c.name).sort(),xt(t)?{}:[...t.attributes].reduce((c,l)=>(c[l.name]=l.value,c),{}),e,n+e.indent,r,i,o),Wt(Array.prototype.slice.call(t.childNodes||t.children),e,n+e.indent,r,i,o),e,n)},"serialize$3"),Ti={serialize:Di,test:Ri},ki="@@__IMMUTABLE_ITERABLE__@@",Fi="@@__IMMUTABLE_LIST__@@",Bi="@@__IMMUTABLE_KEYED__@@",zi="@@__IMMUTABLE_MAP__@@",nn="@@__IMMUTABLE_ORDERED__@@",Ui="@@__IMMUTABLE_RECORD__@@",Wi="@@__IMMUTABLE_SEQ__@@",Ki="@@__IMMUTABLE_SET__@@",Vi="@@__IMMUTABLE_STACK__@@",mt=a(t=>`Immutable.${t}`,"getImmutableName"),Yt=a(t=>`[${t}]`,"printAsLeaf"),vt=" ",rn="…";function Bn(t,e,n,r,i,o,s){return++r>e.maxDepth?Yt(mt(s)):`${mt(s)+vt}{${bt(t.entries(),e,n,r,i,o)}}`}a(Bn,"printImmutableEntries");function zn(t){let e=0;return{next(){if(e<t._keys.length){let n=t._keys[e++];return{done:!1,value:[n,t.get(n)]}}return{done:!0,value:void 0}}}}a(zn,"getRecordEntries");function Un(t,e,n,r,i,o){let s=mt(t._name||"Record");return++r>e.maxDepth?Yt(s):`${s+vt}{${bt(zn(t),e,n,r,i,o)}}`}a(Un,"printImmutableRecord");function Wn(t,e,n,r,i,o){let s=mt("Seq");return++r>e.maxDepth?Yt(s):t[Bi]?`${s+vt}{${t._iter||t._object?bt(t.entries(),e,n,r,i,o):rn}}`:`${s+vt}[${t._iter||t._array||t._collection||t._iterable?Bt(t.values(),e,n,r,i,o):rn}]`}a(Wn,"printImmutableSeq");function jt(t,e,n,r,i,o,s){return++r>e.maxDepth?Yt(mt(s)):`${mt(s)+vt}[${Bt(t.values(),e,n,r,i,o)}]`}a(jt,"printImmutableValues");var Yi=a((t,e,n,r,i,o)=>t[zi]?Bn(t,e,n,r,i,o,t[nn]?"OrderedMap":"Map"):t[Fi]?jt(t,e,n,r,i,o,"List"):t[Ki]?jt(t,e,n,r,i,o,t[nn]?"OrderedSet":"Set"):t[Vi]?jt(t,e,n,r,i,o,"Stack"):t[Wi]?Wn(t,e,n,r,i,o):Un(t,e,n,r,i,o),"serialize$2"),Ji=a(t=>t&&(t[ki]===!0||t[Ui]===!0),"test$2"),qi={serialize:Yi,test:Ji};function Pe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}a(Pe,"getDefaultExportFromCjs");var on={exports:{}},P={},sn;function Kn(){return sn||(sn=1,function(){function t(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case r:case o:case i:case f:case p:case m:return g;default:switch(g=g&&g.$$typeof,g){case c:case l:case d:case u:return g;case s:return g;default:return y}}case n:return y}}}a(t,"typeOf");var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");P.ContextConsumer=s,P.ContextProvider=c,P.Element=e,P.ForwardRef=l,P.Fragment=r,P.Lazy=d,P.Memo=u,P.Portal=n,P.Profiler=o,P.StrictMode=i,P.Suspense=f,P.SuspenseList=p,P.isContextConsumer=function(g){return t(g)===s},P.isContextProvider=function(g){return t(g)===c},P.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},P.isForwardRef=function(g){return t(g)===l},P.isFragment=function(g){return t(g)===r},P.isLazy=function(g){return t(g)===d},P.isMemo=function(g){return t(g)===u},P.isPortal=function(g){return t(g)===n},P.isProfiler=function(g){return t(g)===o},P.isStrictMode=function(g){return t(g)===i},P.isSuspense=function(g){return t(g)===f},P.isSuspenseList=function(g){return t(g)===p},P.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===i||g===f||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===c||g.$$typeof===s||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},P.typeOf=t}()),P}a(Kn,"requireReactIs_development$1");var an;function Vn(){return an||(an=1,on.exports=Kn()),on.exports}a(Vn,"requireReactIs$1");var Yn=Vn(),Hi=Pe(Yn),Gi=ve({__proto__:null,default:Hi},[Yn]),ln={exports:{}},A={},cn;function Jn(){return cn||(cn=1,function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=!1,g=!1,y=!1,S=!1,w=!1,O;O=Symbol.for("react.module.reference");function b(E){return!!(typeof E=="string"||typeof E=="function"||E===n||E===i||w||E===r||E===f||E===p||S||E===m||h||g||y||typeof E=="object"&&E!==null&&(E.$$typeof===d||E.$$typeof===u||E.$$typeof===o||E.$$typeof===s||E.$$typeof===l||E.$$typeof===O||E.getModuleId!==void 0))}a(b,"isValidElementType");function $(E){if(typeof E=="object"&&E!==null){var Ht=E.$$typeof;switch(Ht){case t:var It=E.type;switch(It){case n:case i:case r:case f:case p:return It;default:var tn=It&&It.$$typeof;switch(tn){case c:case s:case l:case d:case u:case o:return tn;default:return Ht}}case e:return Ht}}}a($,"typeOf");var C=s,_=o,I=t,q=l,D=n,N=d,k=u,F=e,H=i,v=r,M=f,G=p,L=!1,z=!1;function V(E){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}a(V,"isAsyncMode");function U(E){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}a(U,"isConcurrentMode");function W(E){return $(E)===s}a(W,"isContextConsumer");function tt(E){return $(E)===o}a(tt,"isContextProvider");function Q(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}a(Q,"isElement");function B(E){return $(E)===l}a(B,"isForwardRef");function K(E){return $(E)===n}a(K,"isFragment");function nt(E){return $(E)===d}a(nt,"isLazy");function rt(E){return $(E)===u}a(rt,"isMemo");function pt(E){return $(E)===e}a(pt,"isPortal");function St(E){return $(E)===i}a(St,"isProfiler");function $t(E){return $(E)===r}a($t,"isStrictMode");function Xe(E){return $(E)===f}a(Xe,"isSuspense");function Ze(E){return $(E)===p}a(Ze,"isSuspenseList"),A.ContextConsumer=C,A.ContextProvider=_,A.Element=I,A.ForwardRef=q,A.Fragment=D,A.Lazy=N,A.Memo=k,A.Portal=F,A.Profiler=H,A.StrictMode=v,A.Suspense=M,A.SuspenseList=G,A.isAsyncMode=V,A.isConcurrentMode=U,A.isContextConsumer=W,A.isContextProvider=tt,A.isElement=Q,A.isForwardRef=B,A.isFragment=K,A.isLazy=nt,A.isMemo=rt,A.isPortal=pt,A.isProfiler=St,A.isStrictMode=$t,A.isSuspense=Xe,A.isSuspenseList=Ze,A.isValidElementType=b,A.typeOf=$}()),A}a(Jn,"requireReactIs_development");var un;function qn(){return un||(un=1,ln.exports=Jn()),ln.exports}a(qn,"requireReactIs");var Hn=qn(),Qi=Pe(Hn),Xi=ve({__proto__:null,default:Qi},[Hn]),Zi=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ut=Object.fromEntries(Zi.map(t=>[t,e=>Xi[t](e)||Gi[t](e)]));function xe(t,e=[]){if(Array.isArray(t))for(let n of t)xe(n,e);else t!=null&&t!==!1&&t!==""&&e.push(t);return e}a(xe,"getChildren");function re(t){let e=t.type;if(typeof e=="string")return e;if(typeof e=="function")return e.displayName||e.name||"Unknown";if(ut.isFragment(t))return"React.Fragment";if(ut.isSuspense(t))return"React.Suspense";if(typeof e=="object"&&e!==null){if(ut.isContextProvider(t))return"Context.Provider";if(ut.isContextConsumer(t))return"Context.Consumer";if(ut.isForwardRef(t)){if(e.displayName)return e.displayName;let n=e.render.displayName||e.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(ut.isMemo(t)){let n=e.displayName||e.type.displayName||e.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}a(re,"getType");function Gn(t){let{props:e}=t;return Object.keys(e).filter(n=>n!=="children"&&e[n]!==void 0).sort()}a(Gn,"getPropKeys$1");var to=a((t,e,n,r,i,o)=>++r>e.maxDepth?Vt(re(t),e):Kt(re(t),Ut(Gn(t),t.props,e,n+e.indent,r,i,o),Wt(xe(t.props.children),e,n+e.indent,r,i,o),e,n),"serialize$1"),eo=a(t=>t!=null&&ut.isElement(t),"test$1"),no={serialize:to,test:eo},ro=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Qn(t){let{props:e}=t;return e?Object.keys(e).filter(n=>e[n]!==void 0).sort():[]}a(Qn,"getPropKeys");var io=a((t,e,n,r,i,o)=>++r>e.maxDepth?Vt(t.type,e):Kt(t.type,t.props?Ut(Qn(t),t.props,e,n+e.indent,r,i,o):"",t.children?Wt(t.children,e,n+e.indent,r,i,o):"",e,n),"serialize"),oo=a(t=>t&&t.$$typeof===ro,"test"),so={serialize:io,test:oo},Xn=Object.prototype.toString,ao=Date.prototype.toISOString,lo=Error.prototype.toString,fn=RegExp.prototype.toString;function Ot(t){return typeof t.constructor=="function"&&t.constructor.name||"Object"}a(Ot,"getConstructorName");function Zn(t){return typeof window<"u"&&t===window}a(Zn,"isWindow");var co=/^Symbol\((.*)\)(.*)$/,uo=/\n/g,tr=class extends Error{constructor(e,n){super(e),this.stack=n,this.name=this.constructor.name}};a(tr,"PrettyFormatPluginError");var er=tr;function nr(t){return t==="[object Array]"||t==="[object ArrayBuffer]"||t==="[object DataView]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object Int8Array]"||t==="[object Int16Array]"||t==="[object Int32Array]"||t==="[object Uint8Array]"||t==="[object Uint8ClampedArray]"||t==="[object Uint16Array]"||t==="[object Uint32Array]"}a(nr,"isToStringedArrayType");function rr(t){return Object.is(t,-0)?"-0":String(t)}a(rr,"printNumber");function ir(t){return`${t}n`}a(ir,"printBigInt");function ie(t,e){return e?`[Function ${t.name||"anonymous"}]`:"[Function]"}a(ie,"printFunction");function oe(t){return String(t).replace(co,"Symbol($1)")}a(oe,"printSymbol");function se(t){return`[${lo.call(t)}]`}a(se,"printError");function je(t,e,n,r){if(t===!0||t===!1)return`${t}`;if(t===void 0)return"undefined";if(t===null)return"null";let i=typeof t;if(i==="number")return rr(t);if(i==="bigint")return ir(t);if(i==="string")return r?`"${t.replaceAll(/"|\\/g,"\\$&")}"`:`"${t}"`;if(i==="function")return ie(t,e);if(i==="symbol")return oe(t);let o=Xn.call(t);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?ie(t,e):o==="[object Symbol]"?oe(t):o==="[object Date]"?Number.isNaN(+t)?"Date { NaN }":ao.call(t):o==="[object Error]"?se(t):o==="[object RegExp]"?n?fn.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):fn.call(t):t instanceof Error?se(t):null}a(je,"printBasicValue");function Me(t,e,n,r,i,o){if(i.includes(t))return"[Circular]";i=[...i],i.push(t);let s=++r>e.maxDepth,c=e.min;if(e.callToJSON&&!s&&t.toJSON&&typeof t.toJSON=="function"&&!o)return ot(t.toJSON(),e,n,r,i,!0);let l=Xn.call(t);return l==="[object Arguments]"?s?"[Arguments]":`${c?"":"Arguments "}[${Ct(t,e,n,r,i,ot)}]`:nr(l)?s?`[${t.constructor.name}]`:`${c||!e.printBasicPrototype&&t.constructor.name==="Array"?"":`${t.constructor.name} `}[${Ct(t,e,n,r,i,ot)}]`:l==="[object Map]"?s?"[Map]":`Map {${bt(t.entries(),e,n,r,i,ot," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${Bt(t.values(),e,n,r,i,ot)}}`:s||Zn(t)?`[${Ot(t)}]`:`${c||!e.printBasicPrototype&&Ot(t)==="Object"?"":`${Ot(t)} `}{${zt(t,e,n,r,i,ot)}}`}a(Me,"printComplexValue");var fo={test:a(t=>t&&t instanceof Error,"test"),serialize(t,e,n,r,i,o){if(i.includes(t))return"[Circular]";i=[...i,t];let s=++r>e.maxDepth,{message:c,cause:l,...f}=t,p={message:c,...typeof l<"u"?{cause:l}:{},...t instanceof AggregateError?{errors:t.errors}:{},...f},u=t.name!=="Error"?t.name:Ot(t);return s?`[${u}]`:`${u} {${bt(Object.entries(p).values(),e,n,r,i,o)}}`}};function or(t){return t.serialize!=null}a(or,"isNewPlugin");function Ne(t,e,n,r,i,o){let s;try{s=or(t)?t.serialize(e,n,r,i,o,ot):t.print(e,c=>ot(c,n,r,i,o),c=>{let l=r+n.indent;return l+c.replaceAll(uo,`
|
|
3
|
-
${l}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(c){throw new er(c.message,c.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(Ne,"printPlugin");function Le(t,e){for(let n of t)try{if(n.test(e))return n}catch(r){throw new er(r.message,r.stack)}return null}a(Le,"findPlugin");function ot(t,e,n,r,i,o){let s=Le(e.plugins,t);if(s!==null)return Ne(s,t,e,n,r,i);let c=je(t,e.printFunctionName,e.escapeRegex,e.escapeString);return c!==null?c:Me(t,e,n,r,i,o)}a(ot,"printer");var Re={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},sr=Object.keys(Re),X={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Re};function ar(t){for(let e of Object.keys(t))if(!Object.prototype.hasOwnProperty.call(X,e))throw new Error(`pretty-format: Unknown option "${e}".`);if(t.min&&t.indent!==void 0&&t.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(ar,"validateOptions");function lr(){return sr.reduce((t,e)=>{let n=Re[e],r=n&&at[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")t[e]=r;else throw new Error(`pretty-format: Option "theme" has a key "${e}" whose value "${n}" is undefined in ansi-styles.`);return t},Object.create(null))}a(lr,"getColorsHighlight");function cr(){return sr.reduce((t,e)=>(t[e]={close:"",open:""},t),Object.create(null))}a(cr,"getColorsEmpty");function De(t){return t?.printFunctionName??X.printFunctionName}a(De,"getPrintFunctionName");function Te(t){return t?.escapeRegex??X.escapeRegex}a(Te,"getEscapeRegex");function ke(t){return t?.escapeString??X.escapeString}a(ke,"getEscapeString");function ae(t){return{callToJSON:t?.callToJSON??X.callToJSON,colors:t?.highlight?lr():cr(),compareKeys:typeof t?.compareKeys=="function"||t?.compareKeys===null?t.compareKeys:X.compareKeys,escapeRegex:Te(t),escapeString:ke(t),indent:t?.min?"":ur(t?.indent??X.indent),maxDepth:t?.maxDepth??X.maxDepth,maxWidth:t?.maxWidth??X.maxWidth,min:t?.min??X.min,plugins:t?.plugins??X.plugins,printBasicPrototype:t?.printBasicPrototype??!0,printFunctionName:De(t),spacingInner:t?.min?" ":`
|
|
4
|
-
`,spacingOuter:t?.min?"":`
|
|
5
|
-
`}}a(ae,"getConfig");function ur(t){return Array.from({length:t+1}).join(" ")}a(ur,"createIndent");function Z(t,e){if(e&&(ar(e),e.plugins)){let r=Le(e.plugins,t);if(r!==null)return Ne(r,t,ae(e),"",0,[])}let n=je(t,De(e),Te(e),ke(e));return n!==null?n:Me(t,ae(e),"",0,[])}a(Z,"format");var Fe={AsymmetricMatcher:Ai,DOMCollection:Mi,DOMElement:Ti,Immutable:qi,ReactElement:no,ReactTestComponent:so,Error:fo},pn={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"]},po={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ht="…";function fr(t,e){let n=pn[po[e]]||pn[e]||"";return n?`\x1B[${n[0]}m${String(t)}\x1B[${n[1]}m`:String(t)}a(fr,"colorise");function pr({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:c=[],truncate:l=1/0,stylize:f=String}={},p){let u={showHidden:!!t,depth:Number(e),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(l),seen:c,inspect:p,stylize:f};return u.colors&&(u.stylize=fr),u}a(pr,"normaliseOptions");function gr(t){return t>="\uD800"&&t<="\uDBFF"}a(gr,"isHighSurrogate");function lt(t,e,n=ht){t=String(t);let r=n.length,i=t.length;if(r>e&&i>r)return n;if(i>e&&i>r){let o=e-r;return o>0&&gr(t[o-1])&&(o=o-1),`${t.slice(0,o)}${n}`}return t}a(lt,"truncate");function J(t,e,n,r=", "){n=n||e.inspect;let i=t.length;if(i===0)return"";let o=e.truncate,s="",c="",l="";for(let f=0;f<i;f+=1){let p=f+1===t.length,u=f+2===t.length;l=`${ht}(${t.length-f})`;let d=t[f];e.truncate=o-s.length-(p?0:r.length);let m=c||n(d,e)+(p?"":r),h=s.length+m.length,g=h+l.length;if(p&&h>o&&s.length+l.length<=o||!p&&!u&&g>o||(c=p?"":n(t[f+1],e)+(u?"":r),!p&&u&&g>o&&h+c.length>o))break;if(s+=m,!p&&!u&&h+c.length>=o){l=`${ht}(${t.length-f-1})`;break}l=""}return`${s}${l}`}a(J,"inspectList");function mr(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(mr,"quoteComplexKey");function dt([t,e],n){return n.truncate-=2,typeof t=="string"?t=mr(t):typeof t!="number"&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,e=n.inspect(e,n),`${t}: ${e}`}a(dt,"inspectProperty");function hr(t,e){let n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;let r=J(t,e);e.truncate-=r.length;let i="";return n.length&&(i=J(n.map(o=>[o,t[o]]),e,dt)),`[ ${r}${i?`, ${i}`:""} ]`}a(hr,"inspectArray");var go=a(t=>typeof Buffer=="function"&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name,"getArrayName");function et(t,e){let n=go(t);e.truncate-=n.length+4;let r=Object.keys(t).slice(t.length);if(!t.length&&!r.length)return`${n}[]`;let i="";for(let s=0;s<t.length;s++){let c=`${e.stylize(lt(t[s],e.truncate),"number")}${s===t.length-1?"":", "}`;if(e.truncate-=c.length,t[s]!==t.length&&e.truncate<=3){i+=`${ht}(${t.length-t[s]+1})`;break}i+=c}let o="";return r.length&&(o=J(r.map(s=>[s,t[s]]),e,dt)),`${n}[ ${i}${o?`, ${o}`:""} ]`}a(et,"inspectTypedArray");function dr(t,e){let n=t.toJSON();if(n===null)return"Invalid Date";let r=n.split("T"),i=r[0];return e.stylize(`${i}T${lt(r[1],e.truncate-i.length-1)}`,"date")}a(dr,"inspectDate");function le(t,e){let n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${lt(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}a(le,"inspectFunction");function yr([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,e=n.inspect(e,n),`${t} => ${e}`}a(yr,"inspectMapEntry");function br(t){let e=[];return t.forEach((n,r)=>{e.push([r,n])}),e}a(br,"mapToEntries");function Sr(t,e){return t.size===0?"Map{}":(e.truncate-=7,`Map{ ${J(br(t),e,yr)} }`)}a(Sr,"inspectMap");var mo=Number.isNaN||(t=>t!==t);function ce(t,e){return mo(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):t===0?e.stylize(1/t===1/0?"+0":"-0","number"):e.stylize(lt(String(t),e.truncate),"number")}a(ce,"inspectNumber");function ue(t,e){let n=lt(t.toString(),e.truncate-1);return n!==ht&&(n+="n"),e.stylize(n,"bigint")}a(ue,"inspectBigInt");function $r(t,e){let n=t.toString().split("/")[2],r=e.truncate-(2+n.length),i=t.source;return e.stylize(`/${lt(i,r)}/${n}`,"regexp")}a($r,"inspectRegExp");function wr(t){let e=[];return t.forEach(n=>{e.push(n)}),e}a(wr,"arrayFromSet");function _r(t,e){return t.size===0?"Set{}":(e.truncate-=7,`Set{ ${J(wr(t),e)} }`)}a(_r,"inspectSet");var gn=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ho={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},yo=16;function Or(t){return ho[t]||`\\u${`0000${t.charCodeAt(0).toString(yo)}`.slice(-4)}`}a(Or,"escape");function fe(t,e){return gn.test(t)&&(t=t.replace(gn,Or)),e.stylize(`'${lt(t,e.truncate-2)}'`,"string")}a(fe,"inspectString");function pe(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}a(pe,"inspectSymbol");var Er=a(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(Er=a((r,i)=>{let[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`},"getPromiseValue"))}catch{}var bo=Er;function Et(t,e){let n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(n.length===0&&r.length===0)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);let i=J(n.map(c=>[c,t[c]]),e,dt),o=J(r.map(c=>[c,t[c]]),e,dt);e.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}a(Et,"inspectObject");var Qt=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Cr(t,e){let n="";return Qt&&Qt in t&&(n=t[Qt]),n=n||t.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${Et(t,e)}`}a(Cr,"inspectClass");function vr(t,e){return t.length===0?"Arguments[]":(e.truncate-=13,`Arguments[ ${J(t,e)} ]`)}a(vr,"inspectArguments");var So=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Ar(t,e){let n=Object.getOwnPropertyNames(t).filter(s=>So.indexOf(s)===-1),r=t.name;e.truncate-=r.length;let i="";if(typeof t.message=="string"?i=lt(t.message,e.truncate):n.unshift("message"),i=i?`: ${i}`:"",e.truncate-=i.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);let o=J(n.map(s=>[s,t[s]]),e,dt);return`${r}${i}${o?` { ${o} }`:""}`}a(Ar,"inspectObject");function Ir([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}a(Ir,"inspectAttribute");function Nt(t,e){return J(t,e,Pr,`
|
|
6
|
-
`)}a(Nt,"inspectNodeCollection");function Pr(t,e){switch(t.nodeType){case 1:return Be(t,e);case 3:return e.inspect(t.data,e);default:return e.inspect(t,e)}}a(Pr,"inspectNode");function Be(t,e){let n=t.getAttributeNames(),r=t.tagName.toLowerCase(),i=e.stylize(`<${r}`,"special"),o=e.stylize(">","special"),s=e.stylize(`</${r}>`,"special");e.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=J(n.map(p=>[p,t.getAttribute(p)]),e,Ir," ")),e.truncate-=c.length;let l=e.truncate,f=Nt(t.children,e);return f&&f.length>l&&(f=`${ht}(${t.children.length})`),`${i}${c}${o}${f}${s}`}a(Be,"inspectHTML");var $o=typeof Symbol=="function"&&typeof Symbol.for=="function",Xt=$o?Symbol.for("chai/inspect"):"@@chai/inspect",Zt=Symbol.for("nodejs.util.inspect.custom"),mn=new WeakMap,hn={},dn={undefined:a((t,e)=>e.stylize("undefined","undefined"),"undefined"),null:a((t,e)=>e.stylize("null","null"),"null"),boolean:a((t,e)=>e.stylize(String(t),"boolean"),"boolean"),Boolean:a((t,e)=>e.stylize(String(t),"boolean"),"Boolean"),number:ce,Number:ce,bigint:ue,BigInt:ue,string:fe,String:fe,function:le,Function:le,symbol:pe,Symbol:pe,Array:hr,Date:dr,Map:Sr,Set:_r,RegExp:$r,Promise:bo,WeakSet:a((t,e)=>e.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:a((t,e)=>e.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:vr,Int8Array:et,Uint8Array:et,Uint8ClampedArray:et,Int16Array:et,Uint16Array:et,Int32Array:et,Uint32Array:et,Float32Array:et,Float64Array:et,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Ar,HTMLCollection:Nt,NodeList:Nt},wo=a((t,e,n)=>Xt in t&&typeof t[Xt]=="function"?t[Xt](e):Zt in t&&typeof t[Zt]=="function"?t[Zt](e.depth,e):"inspect"in t&&typeof t.inspect=="function"?t.inspect(e.depth,e):"constructor"in t&&mn.has(t.constructor)?mn.get(t.constructor)(t,e):hn[n]?hn[n](t,e):"","inspectCustom"),_o=Object.prototype.toString;function Lt(t,e={}){let n=pr(e,Lt),{customInspect:r}=n,i=t===null?"null":typeof t;if(i==="object"&&(i=_o.call(t).slice(8,-1)),i in dn)return dn[i](t,n);if(r&&t){let s=wo(t,n,i);if(s)return typeof s=="string"?s:Lt(s,n)}let o=t?Object.getPrototypeOf(t):!1;return o===Object.prototype||o===null?Et(t,n):t&&typeof HTMLElement=="function"&&t instanceof HTMLElement?Be(t,n):"constructor"in t?t.constructor!==Object?Cr(t,n):Et(t,n):t===Object(t)?Et(t,n):n.stylize(String(t),i)}a(Lt,"inspect");var{AsymmetricMatcher:Oo,DOMCollection:Eo,DOMElement:Co,Immutable:vo,ReactElement:Ao,ReactTestComponent:Io}=Fe,yn=[Io,Ao,Co,Eo,vo,Oo];function yt(t,e=10,{maxLength:n,...r}={}){let i=n??1e4,o;try{o=Z(t,{maxDepth:e,escapeString:!1,plugins:yn,...r})}catch{o=Z(t,{callToJSON:!1,maxDepth:e,escapeString:!1,plugins:yn,...r})}return o.length>=i&&e>1?yt(t,Math.floor(Math.min(e,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):o}a(yt,"stringify");var Po=/%[sdjifoOc%]/g;function xr(...t){if(typeof t[0]!="string"){let o=[];for(let s=0;s<t.length;s++)o.push(gt(t[s],{depth:0,colors:!1}));return o.join(" ")}let e=t.length,n=1,r=t[0],i=String(r).replace(Po,o=>{if(o==="%%")return"%";if(n>=e)return o;switch(o){case"%s":{let s=t[n++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():gt(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=t[n++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=t[n++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(t[n++])).toString();case"%o":return gt(t[n++],{showHidden:!0,showProxy:!0});case"%O":return gt(t[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(t[n++])}catch(s){let c=s.message;if(c.includes("circular structure")||c.includes("cyclic structures")||c.includes("cyclic object"))return"[Circular]";throw s}default:return o}});for(let o=t[n];n<e;o=t[++n])o===null||typeof o!="object"?i+=` ${o}`:i+=` ${gt(o)}`;return i}a(xr,"format");function gt(t,e={}){return e.truncate===0&&(e.truncate=Number.POSITIVE_INFINITY),Lt(t,e)}a(gt,"inspect");function jr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}a(jr,"getDefaultExportFromCjs");function Mr(t){return t===Object.prototype||t===Function.prototype||t===RegExp.prototype}a(Mr,"isFinalObj");function Rt(t){return Object.prototype.toString.apply(t).slice(8,-1)}a(Rt,"getType");function Nr(t,e){let n=typeof e=="function"?e:r=>e.add(r);Object.getOwnPropertyNames(t).forEach(n),Object.getOwnPropertySymbols(t).forEach(n)}a(Nr,"collectOwnProperties");function ze(t){let e=new Set;return Mr(t)?[]:(Nr(t,e),Array.from(e))}a(ze,"getOwnProperties");var Lr={forceWritable:!1};function ge(t,e=Lr){return Dt(t,new WeakMap,e)}a(ge,"deepClone");function Dt(t,e,n=Lr){let r,i;if(e.has(t))return e.get(t);if(Array.isArray(t)){for(i=Array.from({length:r=t.length}),e.set(t,i);r--;)i[r]=Dt(t[r],e,n);return i}if(Object.prototype.toString.call(t)==="[object Object]"){i=Object.create(Object.getPrototypeOf(t)),e.set(t,i);let o=ze(t);for(let s of o){let c=Object.getOwnPropertyDescriptor(t,s);if(!c)continue;let l=Dt(t[s],e,n);n.forceWritable?Object.defineProperty(i,s,{enumerable:c.enumerable,configurable:!0,writable:!0,value:l}):"get"in c?Object.defineProperty(i,s,{...c,get(){return l}}):Object.defineProperty(i,s,{...c,value:l})}return i}return t}a(Dt,"clone");var T=-1,R=1,j=0,Rr=class{0;1;constructor(e,n){this[0]=e,this[1]=n}};a(Rr,"Diff");var x=Rr;function Dr(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(o,i)===e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}a(Dr,"diff_commonPrefix");function Ue(t,e){if(!t||!e||t.charAt(t.length-1)!==e.charAt(e.length-1))return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(t.length-i,t.length-o)===e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}a(Ue,"diff_commonSuffix");function me(t,e){let n=t.length,r=e.length;if(n===0||r===0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));let i=Math.min(n,r);if(t===e)return i;let o=0,s=1;for(;;){let c=t.substring(i-s),l=e.indexOf(c);if(l===-1)return o;s+=l,(l===0||t.substring(i-s)===e.substring(0,s))&&(o=s,s++)}}a(me,"diff_commonOverlap_");function Tr(t){let e=!1,n=[],r=0,i=null,o=0,s=0,c=0,l=0,f=0;for(;o<t.length;)t[o][0]===j?(n[r++]=o,s=l,c=f,l=0,f=0,i=t[o][1]):(t[o][0]===R?l+=t[o][1].length:f+=t[o][1].length,i&&i.length<=Math.max(s,c)&&i.length<=Math.max(l,f)&&(t.splice(n[r-1],0,new x(T,i)),t[n[r-1]+1][0]=R,r--,r--,o=r>0?n[r-1]:-1,s=0,c=0,l=0,f=0,i=null,e=!0)),o++;for(e&&We(t),kr(t),o=1;o<t.length;){if(t[o-1][0]===T&&t[o][0]===R){let p=t[o-1][1],u=t[o][1],d=me(p,u),m=me(u,p);d>=m?(d>=p.length/2||d>=u.length/2)&&(t.splice(o,0,new x(j,u.substring(0,d))),t[o-1][1]=p.substring(0,p.length-d),t[o+1][1]=u.substring(d),o++):(m>=p.length/2||m>=u.length/2)&&(t.splice(o,0,new x(j,p.substring(0,m))),t[o-1][0]=R,t[o-1][1]=u.substring(0,u.length-m),t[o+1][0]=T,t[o+1][1]=p.substring(m),o++),o++}o++}}a(Tr,"diff_cleanupSemantic");var bn=/[^a-z0-9]/i,Sn=/\s/,$n=/[\r\n]/,xo=/\n\r?\n$/,jo=/^\r?\n\r?\n/;function kr(t){let e=1;for(;e<t.length-1;){if(t[e-1][0]===j&&t[e+1][0]===j){let n=t[e-1][1],r=t[e][1],i=t[e+1][1],o=Ue(n,r);if(o){let p=r.substring(r.length-o);n=n.substring(0,n.length-o),r=p+r.substring(0,r.length-o),i=p+i}let s=n,c=r,l=i,f=wt(n,r)+wt(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let p=wt(n,r)+wt(r,i);p>=f&&(f=p,s=n,c=r,l=i)}t[e-1][1]!==s&&(s?t[e-1][1]=s:(t.splice(e-1,1),e--),t[e][1]=c,l?t[e+1][1]=l:(t.splice(e+1,1),e--))}e++}}a(kr,"diff_cleanupSemanticLossless");function We(t){t.push(new x(j,""));let e=0,n=0,r=0,i="",o="",s;for(;e<t.length;)switch(t[e][0]){case R:r++,o+=t[e][1],e++;break;case T:n++,i+=t[e][1],e++;break;case j:n+r>1?(n!==0&&r!==0&&(s=Dr(o,i),s!==0&&(e-n-r>0&&t[e-n-r-1][0]===j?t[e-n-r-1][1]+=o.substring(0,s):(t.splice(0,0,new x(j,o.substring(0,s))),e++),o=o.substring(s),i=i.substring(s)),s=Ue(o,i),s!==0&&(t[e][1]=o.substring(o.length-s)+t[e][1],o=o.substring(0,o.length-s),i=i.substring(0,i.length-s))),e-=n+r,t.splice(e,n+r),i.length&&(t.splice(e,0,new x(T,i)),e++),o.length&&(t.splice(e,0,new x(R,o)),e++),e++):e!==0&&t[e-1][0]===j?(t[e-1][1]+=t[e][1],t.splice(e,1)):e++,r=0,n=0,i="",o="";break}t[t.length-1][1]===""&&t.pop();let c=!1;for(e=1;e<t.length-1;)t[e-1][0]===j&&t[e+1][0]===j&&(t[e][1].substring(t[e][1].length-t[e-1][1].length)===t[e-1][1]?(t[e][1]=t[e-1][1]+t[e][1].substring(0,t[e][1].length-t[e-1][1].length),t[e+1][1]=t[e-1][1]+t[e+1][1],t.splice(e-1,1),c=!0):t[e][1].substring(0,t[e+1][1].length)===t[e+1][1]&&(t[e-1][1]+=t[e+1][1],t[e][1]=t[e][1].substring(t[e+1][1].length)+t[e+1][1],t.splice(e+1,1),c=!0)),e++;c&&We(t)}a(We,"diff_cleanupMerge");function wt(t,e){if(!t||!e)return 6;let n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(bn),o=r.match(bn),s=i&&n.match(Sn),c=o&&r.match(Sn),l=s&&n.match($n),f=c&&r.match($n),p=l&&t.match(xo),u=f&&e.match(jo);return p||u?5:l||f?4:i&&!s&&c?3:s||c?2:i||o?1:0}a(wt,"diff_cleanupSemanticScore_");var Fr="Compared values have no visual difference.",Mo="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Pt={},wn;function Br(){if(wn)return Pt;wn=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.default=d;let t="diff-sequences",e=0,n=a((m,h,g,y,S)=>{let w=0;for(;m<h&&g<y&&S(m,g);)m+=1,g+=1,w+=1;return w},"countCommonItemsF"),r=a((m,h,g,y,S)=>{let w=0;for(;m<=h&&g<=y&&S(h,y);)h-=1,y-=1,w+=1;return w},"countCommonItemsR"),i=a((m,h,g,y,S,w,O)=>{let b=0,$=-m,C=w[b],_=C;w[b]+=n(C+1,h,y+C-$+1,g,S);let I=m<O?m:O;for(b+=1,$+=2;b<=I;b+=1,$+=2){if(b!==m&&_<w[b])C=w[b];else if(C=_+1,h<=C)return b-1;_=w[b],w[b]=C+n(C+1,h,y+C-$+1,g,S)}return O},"extendPathsF"),o=a((m,h,g,y,S,w,O)=>{let b=0,$=m,C=w[b],_=C;w[b]-=r(h,C-1,g,y+C-$-1,S);let I=m<O?m:O;for(b+=1,$-=2;b<=I;b+=1,$-=2){if(b!==m&&w[b]<_)C=w[b];else if(C=_-1,C<h)return b-1;_=w[b],w[b]=C-r(h,C-1,g,y+C-$-1,S)}return O},"extendPathsR"),s=a((m,h,g,y,S,w,O,b,$,C,_)=>{let I=y-h,q=g-h,D=S-y-q,N=-D-(m-1),k=-D+(m-1),F=e,H=m<b?m:b;for(let v=0,M=-m;v<=H;v+=1,M+=2){let G=v===0||v!==m&&F<O[v],L=G?O[v]:F,z=G?L:L+1,V=I+z-M,U=n(z+1,g,V+1,S,w),W=z+U;if(F=O[v],O[v]=W,N<=M&&M<=k){let tt=(m-1-(M+D))/2;if(tt<=C&&$[tt]-1<=W){let Q=I+L-(G?M+1:M-1),B=r(h,L,y,Q,w),K=L-B,nt=Q-B,rt=K+1,pt=nt+1;_.nChangePreceding=m-1,m-1===rt+pt-h-y?(_.aEndPreceding=h,_.bEndPreceding=y):(_.aEndPreceding=rt,_.bEndPreceding=pt),_.nCommonPreceding=B,B!==0&&(_.aCommonPreceding=rt,_.bCommonPreceding=pt),_.nCommonFollowing=U,U!==0&&(_.aCommonFollowing=z+1,_.bCommonFollowing=V+1);let St=W+1,$t=V+U+1;return _.nChangeFollowing=m-1,m-1===g+S-St-$t?(_.aStartFollowing=g,_.bStartFollowing=S):(_.aStartFollowing=St,_.bStartFollowing=$t),!0}}}return!1},"extendOverlappablePathsF"),c=a((m,h,g,y,S,w,O,b,$,C,_)=>{let I=S-g,q=g-h,D=S-y-q,N=D-m,k=D+m,F=e,H=m<C?m:C;for(let v=0,M=m;v<=H;v+=1,M-=2){let G=v===0||v!==m&&$[v]<F,L=G?$[v]:F,z=G?L:L-1,V=I+z-M,U=r(h,z-1,y,V-1,w),W=z-U;if(F=$[v],$[v]=W,N<=M&&M<=k){let tt=(m+(M-D))/2;if(tt<=b&&W-1<=O[tt]){let Q=V-U;if(_.nChangePreceding=m,m===W+Q-h-y?(_.aEndPreceding=h,_.bEndPreceding=y):(_.aEndPreceding=W,_.bEndPreceding=Q),_.nCommonPreceding=U,U!==0&&(_.aCommonPreceding=W,_.bCommonPreceding=Q),_.nChangeFollowing=m-1,m===1)_.nCommonFollowing=0,_.aStartFollowing=g,_.bStartFollowing=S;else{let B=I+L-(G?M-1:M+1),K=n(L,g,B,S,w);_.nCommonFollowing=K,K!==0&&(_.aCommonFollowing=L,_.bCommonFollowing=B);let nt=L+K,rt=B+K;m-1===g+S-nt-rt?(_.aStartFollowing=g,_.bStartFollowing=S):(_.aStartFollowing=nt,_.bStartFollowing=rt)}return!0}}}return!1},"extendOverlappablePathsR"),l=a((m,h,g,y,S,w,O,b,$)=>{let C=y-h,_=S-g,I=g-h,q=S-y,D=q-I,N=I,k=I;if(O[0]=h-1,b[0]=g,D%2===0){let F=(m||D)/2,H=(I+q)/2;for(let v=1;v<=H;v+=1)if(N=i(v,g,S,C,w,O,N),v<F)k=o(v,h,y,_,w,b,k);else if(c(v,h,g,y,S,w,O,N,b,k,$))return}else{let F=((m||D)+1)/2,H=(I+q+1)/2,v=1;for(N=i(v,g,S,C,w,O,N),v+=1;v<=H;v+=1)if(k=o(v-1,h,y,_,w,b,k),v<F)N=i(v,g,S,C,w,O,N);else if(s(v,h,g,y,S,w,O,N,b,k,$))return}throw new Error(`${t}: no overlap aStart=${h} aEnd=${g} bStart=${y} bEnd=${S}`)},"divide"),f=a((m,h,g,y,S,w,O,b,$,C)=>{if(S-y<g-h){if(w=!w,w&&O.length===1){let{foundSubsequence:tt,isCommon:Q}=O[0];O[1]={foundSubsequence:a((B,K,nt)=>{tt(B,nt,K)},"foundSubsequence"),isCommon:a((B,K)=>Q(K,B),"isCommon")}}let U=h,W=g;h=y,g=S,y=U,S=W}let{foundSubsequence:_,isCommon:I}=O[w?1:0];l(m,h,g,y,S,I,b,$,C);let{nChangePreceding:q,aEndPreceding:D,bEndPreceding:N,nCommonPreceding:k,aCommonPreceding:F,bCommonPreceding:H,nCommonFollowing:v,aCommonFollowing:M,bCommonFollowing:G,nChangeFollowing:L,aStartFollowing:z,bStartFollowing:V}=C;h<D&&y<N&&f(q,h,D,y,N,w,O,b,$,C),k!==0&&_(k,F,H),v!==0&&_(v,M,G),z<g&&V<S&&f(L,z,g,V,S,w,O,b,$,C)},"findSubsequences"),p=a((m,h)=>{if(typeof h!="number")throw new TypeError(`${t}: ${m} typeof ${typeof h} is not a number`);if(!Number.isSafeInteger(h))throw new RangeError(`${t}: ${m} value ${h} is not a safe integer`);if(h<0)throw new RangeError(`${t}: ${m} value ${h} is a negative integer`)},"validateLength"),u=a((m,h)=>{let g=typeof h;if(g!=="function")throw new TypeError(`${t}: ${m} typeof ${g} is not a function`)},"validateCallback");function d(m,h,g,y){p("aLength",m),p("bLength",h),u("isCommon",g),u("foundSubsequence",y);let S=n(0,m,0,h,g);if(S!==0&&y(S,0,0),m!==S||h!==S){let w=S,O=S,b=r(w,m-1,O,h-1,g),$=m-b,C=h-b,_=S+b;m!==_&&h!==_&&f(0,w,$,O,C,!1,[{foundSubsequence:y,isCommon:g}],[e],[e],{aCommonFollowing:e,aCommonPreceding:e,aEndPreceding:e,aStartFollowing:e,bCommonFollowing:e,bCommonPreceding:e,bEndPreceding:e,bStartFollowing:e,nChangeFollowing:e,nChangePreceding:e,nCommonFollowing:e,nCommonPreceding:e}),b!==0&&y(b,$,C)}}return a(d,"diffSequence"),Pt}a(Br,"requireBuild");var No=Br(),zr=jr(No);function Ur(t,e){return t.replace(/\s+$/,n=>e(n))}a(Ur,"formatTrailingSpaces");function Jt(t,e,n,r,i,o){return t.length!==0?n(`${r} ${Ur(t,i)}`):r!==" "?n(r):e&&o.length!==0?n(`${r} ${o}`):""}a(Jt,"printDiffLine");function Ke(t,e,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Jt(t,e,n,r,i,o)}a(Ke,"printDeleteLine");function Ve(t,e,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Jt(t,e,n,r,i,o)}a(Ve,"printInsertLine");function Ye(t,e,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return Jt(t,e,n,r,i,o)}a(Ye,"printCommonLine");function he(t,e,n,r,{patchColor:i}){return i(`@@ -${t+1},${e-t} +${n+1},${r-n} @@`)}a(he,"createPatchMark");function Wr(t,e){let n=t.length,r=e.contextLines,i=r+r,o=n,s=!1,c=0,l=0;for(;l!==n;){let b=l;for(;l!==n&&t[l][0]===j;)l+=1;if(b!==l)if(b===0)l>r&&(o-=l-r,s=!0);else if(l===n){let $=l-b;$>r&&(o-=$-r,s=!0)}else{let $=l-b;$>i&&(o-=$-i,c+=1)}for(;l!==n&&t[l][0]!==j;)l+=1}let f=c!==0||s;c!==0?o+=c+1:s&&(o+=1);let p=o-1,u=[],d=0;f&&u.push("");let m=0,h=0,g=0,y=0,S=a(b=>{let $=u.length;u.push(Ye(b,$===0||$===p,e)),g+=1,y+=1},"pushCommonLine"),w=a(b=>{let $=u.length;u.push(Ke(b,$===0||$===p,e)),g+=1},"pushDeleteLine"),O=a(b=>{let $=u.length;u.push(Ve(b,$===0||$===p,e)),y+=1},"pushInsertLine");for(l=0;l!==n;){let b=l;for(;l!==n&&t[l][0]===j;)l+=1;if(b!==l)if(b===0){l>r&&(b=l-r,m=b,h=b,g=m,y=h);for(let $=b;$!==l;$+=1)S(t[$][1])}else if(l===n){let $=l-b>r?b+r:l;for(let C=b;C!==$;C+=1)S(t[C][1])}else{let $=l-b;if($>i){let C=b+r;for(let I=b;I!==C;I+=1)S(t[I][1]);u[d]=he(m,g,h,y,e),d=u.length,u.push("");let _=$-i;m=g+_,h=y+_,g=m,y=h;for(let I=l-r;I!==l;I+=1)S(t[I][1])}else for(let C=b;C!==l;C+=1)S(t[C][1])}for(;l!==n&&t[l][0]===T;)w(t[l][1]),l+=1;for(;l!==n&&t[l][0]===R;)O(t[l][1]),l+=1}return f&&(u[d]=he(m,g,h,y,e)),u.join(`
|
|
7
|
-
`)}a(Wr,"joinAlignedDiffsNoExpand");function Kr(t,e){return t.map((n,r,i)=>{let o=n[1],s=r===0||r===i.length-1;switch(n[0]){case T:return Ke(o,s,e);case R:return Ve(o,s,e);default:return Ye(o,s,e)}}).join(`
|
|
8
|
-
`)}a(Kr,"joinAlignedDiffsExpand");var te=a(t=>t,"noColor"),Vr=5,Lo=0;function Yr(){return{aAnnotation:"Expected",aColor:at.green,aIndicator:"-",bAnnotation:"Received",bColor:at.red,bIndicator:"+",changeColor:at.inverse,changeLineTrailingSpaceColor:te,commonColor:at.dim,commonIndicator:" ",commonLineTrailingSpaceColor:te,compareKeys:void 0,contextLines:Vr,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:at.yellow,printBasicPrototype:!1,truncateThreshold:Lo,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:te}}a(Yr,"getDefaultOptions");function Jr(t){return t&&typeof t=="function"?t:void 0}a(Jr,"getCompareKeys");function qr(t){return typeof t=="number"&&Number.isSafeInteger(t)&&t>=0?t:Vr}a(qr,"getContextLines");function ct(t={}){return{...Yr(),...t,compareKeys:Jr(t.compareKeys),contextLines:qr(t.contextLines)}}a(ct,"normalizeDiffOptions");function ft(t){return t.length===1&&t[0].length===0}a(ft,"isEmptyString");function Hr(t){let e=0,n=0;return t.forEach(r=>{switch(r[0]){case T:e+=1;break;case R:n+=1;break}}),{a:e,b:n}}a(Hr,"countChanges");function Gr({aAnnotation:t,aColor:e,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:o,includeChangeCounts:s,omitAnnotationLines:c},l){if(c)return"";let f="",p="";if(s){let m=String(l.a),h=String(l.b),g=r.length-t.length,y=" ".repeat(Math.max(0,g)),S=" ".repeat(Math.max(0,-g)),w=h.length-m.length,O=" ".repeat(Math.max(0,w)),b=" ".repeat(Math.max(0,-w));f=`${y} ${n} ${O}${m}`,p=`${S} ${o} ${b}${h}`}let u=`${n} ${t}${f}`,d=`${o} ${r}${p}`;return`${e(u)}
|
|
9
|
-
${i(d)}
|
|
10
|
-
|
|
11
|
-
`}a(Gr,"printAnnotation");function qt(t,e,n){return Gr(n,Hr(t))+(n.expand?Kr(t,n):Wr(t,n))+(e?n.truncateAnnotationColor(`
|
|
12
|
-
${n.truncateAnnotation}`):"")}a(qt,"printDiffLines");function At(t,e,n){let r=ct(n),[i,o]=Je(ft(t)?[]:t,ft(e)?[]:e,r);return qt(i,o,r)}a(At,"diffLinesUnified");function Qr(t,e,n,r,i){if(ft(t)&&ft(n)&&(t=[],n=[]),ft(e)&&ft(r)&&(e=[],r=[]),t.length!==n.length||e.length!==r.length)return At(t,e,i);let[o,s]=Je(n,r,i),c=0,l=0;return o.forEach(f=>{switch(f[0]){case T:f[1]=t[c],c+=1;break;case R:f[1]=e[l],l+=1;break;default:f[1]=e[l],c+=1,l+=1}}),qt(o,s,ct(i))}a(Qr,"diffLinesUnified2");function Je(t,e,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),o=r?Math.min(t.length,i):t.length,s=r?Math.min(e.length,i):e.length,c=o!==t.length||s!==e.length,l=a((d,m)=>t[d]===e[m],"isCommon"),f=[],p=0,u=0;for(zr(o,s,l,a((d,m,h)=>{for(;p!==m;p+=1)f.push(new x(T,t[p]));for(;u!==h;u+=1)f.push(new x(R,e[u]));for(;d!==0;d-=1,p+=1,u+=1)f.push(new x(j,e[u]))},"foundSubsequence"));p!==o;p+=1)f.push(new x(T,t[p]));for(;u!==s;u+=1)f.push(new x(R,e[u]));return[f,c]}a(Je,"diffLinesRaw");function de(t){if(t===void 0)return"undefined";if(t===null)return"null";if(Array.isArray(t))return"array";if(typeof t=="boolean")return"boolean";if(typeof t=="function")return"function";if(typeof t=="number")return"number";if(typeof t=="string")return"string";if(typeof t=="bigint")return"bigint";if(typeof t=="object"){if(t!=null){if(t.constructor===RegExp)return"regexp";if(t.constructor===Map)return"map";if(t.constructor===Set)return"set";if(t.constructor===Date)return"date"}return"object"}else if(typeof t=="symbol")return"symbol";throw new Error(`value of unknown type: ${t}`)}a(de,"getType");function ye(t){return t.includes(`\r
|
|
13
|
-
`)?`\r
|
|
14
|
-
`:`
|
|
15
|
-
`}a(ye,"getNewLineSymbol");function Xr(t,e,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),o=t.length,s=e.length;if(r){let d=t.includes(`
|
|
16
|
-
`),m=e.includes(`
|
|
17
|
-
`),h=ye(t),g=ye(e),y=d?`${t.split(h,i).join(h)}
|
|
18
|
-
`:t,S=m?`${e.split(g,i).join(g)}
|
|
19
|
-
`:e;o=y.length,s=S.length}let c=o!==t.length||s!==e.length,l=a((d,m)=>t[d]===e[m],"isCommon"),f=0,p=0,u=[];return zr(o,s,l,a((d,m,h)=>{f!==m&&u.push(new x(T,t.slice(f,m))),p!==h&&u.push(new x(R,e.slice(p,h))),f=m+d,p=h+d,u.push(new x(j,e.slice(h,p)))},"foundSubsequence")),f!==o&&u.push(new x(T,t.slice(f))),p!==s&&u.push(new x(R,e.slice(p))),[u,c]}a(Xr,"diffStrings");function Zr(t,e,n){return e.reduce((r,i)=>r+(i[0]===j?i[1]:i[0]===t&&i[1].length!==0?n(i[1]):""),"")}a(Zr,"concatenateRelevantDiffs");var ti=class{op;line;lines;changeColor;constructor(e,n){this.op=e,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(e){this.pushDiff(new x(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new x(this.op,Zr(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new x(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let n=e[1];if(n.includes(`
|
|
20
|
-
`)){let r=n.split(`
|
|
21
|
-
`),i=r.length-1;r.forEach((o,s)=>{s<i?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}};a(ti,"ChangeBuffer");var _n=ti,ei=class{deleteBuffer;insertBuffer;lines;constructor(e,n){this.deleteBuffer=e,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let n=e[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let n=e[0],r=e[1];if(r.includes(`
|
|
22
|
-
`)){let i=r.split(`
|
|
23
|
-
`),o=i.length-1;i.forEach((s,c)=>{if(c===0){let l=new x(n,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else c<o?this.pushDiffCommonLine(new x(n,s)):s.length!==0&&this.pushDiffChangeLines(new x(n,s))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};a(ei,"CommonBuffer");var Ro=ei;function ni(t,e){let n=new _n(T,e),r=new _n(R,e),i=new Ro(n,r);return t.forEach(o=>{switch(o[0]){case T:n.align(o);break;case R:r.align(o);break;default:i.align(o)}}),i.getLines()}a(ni,"getAlignedDiffs");function ri(t,e){if(e){let n=t.length-1;return t.some((r,i)=>r[0]===j&&(i!==n||r[1]!==`
|
|
24
|
-
`))}return t.some(n=>n[0]===j)}a(ri,"hasCommonDiff");function ii(t,e,n){if(t!==e&&t.length!==0&&e.length!==0){let r=t.includes(`
|
|
25
|
-
`)||e.includes(`
|
|
26
|
-
`),[i,o]=qe(r?`${t}
|
|
27
|
-
`:t,r?`${e}
|
|
28
|
-
`:e,!0,n);if(ri(i,r)){let s=ct(n),c=ni(i,s.changeColor);return qt(c,o,s)}}return At(t.split(`
|
|
29
|
-
`),e.split(`
|
|
30
|
-
`),n)}a(ii,"diffStringsUnified");function qe(t,e,n,r){let[i,o]=Xr(t,e,r);return n&&Tr(i),[i,o]}a(qe,"diffStringsRaw");function Tt(t,e){let{commonColor:n}=ct(e);return n(t)}a(Tt,"getCommonMessage");var{AsymmetricMatcher:Do,DOMCollection:To,DOMElement:ko,Immutable:Fo,ReactElement:Bo,ReactTestComponent:zo}=Fe,oi=[zo,Bo,ko,To,Fo,Do,Fe.Error],be={maxDepth:20,plugins:oi},si={callToJSON:!1,maxDepth:8,plugins:oi};function ai(t,e,n){if(Object.is(t,e))return"";let r=de(t),i=r,o=!1;if(r==="object"&&typeof t.asymmetricMatch=="function"){if(t.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof t.getExpectedType!="function")return;i=t.getExpectedType(),o=i==="string"}if(i!==de(e)){let s=function(O){return O.length<=y?O:`${O.slice(0,y)}...`};a(s,"truncate");let{aAnnotation:c,aColor:l,aIndicator:f,bAnnotation:p,bColor:u,bIndicator:d}=ct(n),m=kt(si,n),h=Z(t,m),g=Z(e,m),y=1e5;h=s(h),g=s(g);let S=`${l(`${f} ${c}:`)}
|
|
31
|
-
${h}`,w=`${u(`${d} ${p}:`)}
|
|
32
|
-
${g}`;return`${S}
|
|
33
|
-
|
|
34
|
-
${w}`}if(!o)switch(r){case"string":return At(t.split(`
|
|
35
|
-
`),e.split(`
|
|
36
|
-
`),n);case"boolean":case"number":return li(t,e,n);case"map":return Mt(Se(t),Se(e),n);case"set":return Mt($e(t),$e(e),n);default:return Mt(t,e,n)}}a(ai,"diff");function li(t,e,n){let r=Z(t,be),i=Z(e,be);return r===i?"":At(r.split(`
|
|
37
|
-
`),i.split(`
|
|
38
|
-
`),n)}a(li,"comparePrimitive");function Se(t){return new Map(Array.from(t.entries()).sort())}a(Se,"sortMap");function $e(t){return new Set(Array.from(t.values()).sort())}a($e,"sortSet");function Mt(t,e,n){let r,i=!1;try{let s=kt(be,n);r=we(t,e,s,n)}catch{i=!0}let o=Tt(Fr,n);if(r===void 0||r===o){let s=kt(si,n);r=we(t,e,s,n),r!==o&&!i&&(r=`${Tt(Mo,n)}
|
|
39
|
-
|
|
40
|
-
${r}`)}return r}a(Mt,"compareObjects");function kt(t,e){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=ct(e);return{...t,compareKeys:n,printBasicPrototype:r,maxDepth:i??t.maxDepth}}a(kt,"getFormatOptions");function we(t,e,n,r){let i={...n,indent:0},o=Z(t,i),s=Z(e,i);if(o===s)return Tt(Fr,r);{let c=Z(t,n),l=Z(e,n);return Qr(c.split(`
|
|
41
|
-
`),l.split(`
|
|
42
|
-
`),o.split(`
|
|
43
|
-
`),s.split(`
|
|
44
|
-
`),r)}}a(we,"getObjectsDifference");var On=2e4;function _e(t){return Rt(t)==="Object"&&typeof t.asymmetricMatch=="function"}a(_e,"isAsymmetricMatcher");function Oe(t,e){let n=Rt(t),r=Rt(e);return n===r&&(n==="Object"||n==="Array")}a(Oe,"isReplaceable");function ci(t,e,n){let{aAnnotation:r,bAnnotation:i}=ct(n);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=On&&t.length<=On&&e!==t){if(e.includes(`
|
|
45
|
-
`)||t.includes(`
|
|
46
|
-
`))return ii(e,t,n);let[f]=qe(e,t,!0),p=f.some(h=>h[0]===j),u=ui(r,i),d=u(r)+pi(Ee(f,T,p)),m=u(i)+fi(Ee(f,R,p));return`${d}
|
|
47
|
-
${m}`}let o=ge(e,{forceWritable:!0}),s=ge(t,{forceWritable:!0}),{replacedExpected:c,replacedActual:l}=He(s,o);return ai(c,l,n)}a(ci,"printDiffOrStringify");function He(t,e,n=new WeakSet,r=new WeakSet){return t instanceof Error&&e instanceof Error&&typeof t.cause<"u"&&typeof e.cause>"u"?(delete t.cause,{replacedActual:t,replacedExpected:e}):Oe(t,e)?n.has(t)||r.has(e)?{replacedActual:t,replacedExpected:e}:(n.add(t),r.add(e),ze(e).forEach(i=>{let o=e[i],s=t[i];if(_e(o))o.asymmetricMatch(s)&&(t[i]=o);else if(_e(s))s.asymmetricMatch(o)&&(e[i]=s);else if(Oe(s,o)){let c=He(s,o,n,r);t[i]=c.replacedActual,e[i]=c.replacedExpected}}),{replacedActual:t,replacedExpected:e}):{replacedActual:t,replacedExpected:e}}a(He,"replaceAsymmetricMatcher");function ui(...t){let e=t.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(e-n.length)}`}a(ui,"getLabelPrinter");var Uo="·";function Ge(t){return t.replace(/\s+$/gm,e=>Uo.repeat(e.length))}a(Ge,"replaceTrailingSpaces");function fi(t){return at.red(Ge(yt(t)))}a(fi,"printReceived");function pi(t){return at.green(Ge(yt(t)))}a(pi,"printExpected");function Ee(t,e,n){return t.reduce((r,i)=>r+(i[0]===j?i[1]:i[0]===e?n?at.inverse(i[1]):i[1]:""),"")}a(Ee,"getCommonAndChangedSubstrings");var Wo="@@__IMMUTABLE_RECORD__@@",Ko="@@__IMMUTABLE_ITERABLE__@@";function gi(t){return t&&(t[Ko]||t[Wo])}a(gi,"isImmutable");var Vo=Object.getPrototypeOf({});function Ce(t){return t instanceof Error?`<unserializable>: ${t.message}`:typeof t=="string"?`<unserializable>: ${t}`:"<unserializable>"}a(Ce,"getUnserializableMessage");function st(t,e=new WeakMap){if(!t||typeof t=="string")return t;if(t instanceof Error&&"toJSON"in t&&typeof t.toJSON=="function"){let n=t.toJSON();return n&&n!==t&&typeof n=="object"&&(typeof t.message=="string"&&_t(()=>n.message??(n.message=t.message)),typeof t.stack=="string"&&_t(()=>n.stack??(n.stack=t.stack)),typeof t.name=="string"&&_t(()=>n.name??(n.name=t.name)),t.cause!=null&&_t(()=>n.cause??(n.cause=st(t.cause,e)))),st(n,e)}if(typeof t=="function")return`Function<${t.name||"anonymous"}>`;if(typeof t=="symbol")return t.toString();if(typeof t!="object")return t;if(typeof Buffer<"u"&&t instanceof Buffer)return`<Buffer(${t.length}) ...>`;if(typeof Uint8Array<"u"&&t instanceof Uint8Array)return`<Uint8Array(${t.length}) ...>`;if(gi(t))return st(t.toJSON(),e);if(t instanceof Promise||t.constructor&&t.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&t instanceof Element)return t.tagName;if(typeof t.asymmetricMatch=="function")return`${t.toString()} ${xr(t.sample)}`;if(typeof t.toJSON=="function")return st(t.toJSON(),e);if(e.has(t))return e.get(t);if(Array.isArray(t)){let n=new Array(t.length);return e.set(t,n),t.forEach((r,i)=>{try{n[i]=st(r,e)}catch(o){n[i]=Ce(o)}}),n}else{let n=Object.create(null);e.set(t,n);let r=t;for(;r&&r!==Vo;)Object.getOwnPropertyNames(r).forEach(i=>{if(!(i in n))try{n[i]=st(t[i],e)}catch(o){delete n[i],n[i]=Ce(o)}}),r=Object.getPrototypeOf(r);return n}}a(st,"serializeValue");function _t(t){try{return t()}catch{}}a(_t,"safe");function mi(t){return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a(mi,"normalizeErrorMessage");function Qe(t,e,n=new WeakSet){if(!t||typeof t!="object")return{message:String(t)};let r=t;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=ci(r.actual,r.expected,{...e,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=yt(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=yt(r.actual,10));try{typeof r.message=="string"&&(r.message=mi(r.message))}catch{}try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=Qe(r.cause,e,n))}catch{}try{return st(r)}catch(i){return st(new Error(`Failed to fully serialize error: ${i?.message}
|
|
48
|
-
Inner error message: ${r?.message}`))}}a(Qe,"processError");var it={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},ee=globalThis.__STORYBOOK_ADDONS_PREVIEW,Yo=new Error("This function ran after the play function completed. Did you forget to `await` it?"),En=a(t=>Object.prototype.toString.call(t)==="[object Object]","isObject"),Jo=a(t=>Object.prototype.toString.call(t)==="[object Module]","isModule"),qo=a(t=>{if(!En(t)&&!Jo(t))return!1;if(t.constructor===void 0)return!0;let e=t.constructor.prototype;return!!En(e)},"isInstrumentable"),Ho=a(t=>{try{return new t.constructor}catch{return{}}},"construct"),ne=a(()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),Cn=a((t,e=!1)=>{let n=(e?t.shadowCalls:t.calls).filter(i=>i.retain);if(!n.length)return;let r=new Map(Array.from(t.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},"getRetainedState"),hi=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=a(()=>{try{this.state=Y.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=a(()=>{try{Y.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let e=a(({storyId:l,isPlaying:f=!0,isDebugging:p=!1})=>{let u=this.getState(l);this.setState(l,{...ne(),...Cn(u,p),shadowCalls:p?u.shadowCalls:[],chainedCallIds:p?u.chainedCallIds:new Set,playUntil:p?u.playUntil:void 0,isPlaying:f,isDebugging:p}),this.sync(l)},"resetState"),n=a(l=>({storyId:f,playUntil:p})=>{this.getState(f).isDebugging||this.setState(f,({calls:d})=>({calls:[],shadowCalls:d.map(m=>({...m,status:"waiting"})),isDebugging:!0}));let u=this.getLog(f);this.setState(f,({shadowCalls:d})=>{if(p||!u.length)return{playUntil:p};let m=d.findIndex(h=>h.id===u[0].callId);return{playUntil:d.slice(0,m).filter(h=>h.interceptable&&!h.ancestors?.length).slice(-1)[0]?.id}}),l.emit(en,{storyId:f,isDebugging:!0})},"start"),r=a(l=>({storyId:f})=>{let p=this.getLog(f).filter(d=>!d.ancestors?.length),u=p.reduceRight((d,m,h)=>d>=0||m.status==="waiting"?d:h,-1);n(l)({storyId:f,playUntil:p[u-1]?.callId})},"back"),i=a(l=>({storyId:f,callId:p})=>{let{calls:u,shadowCalls:d,resolvers:m}=this.getState(f),h=u.find(({id:y})=>y===p),g=d.find(({id:y})=>y===p);if(!h&&g&&Object.values(m).length>0){let y=this.getLog(f).find(S=>S.status==="waiting")?.callId;g.id!==y&&this.setState(f,{playUntil:g.id}),Object.values(m).forEach(S=>S())}else n(l)({storyId:f,playUntil:p})},"goto"),o=a(l=>({storyId:f})=>{let{resolvers:p}=this.getState(f);if(Object.values(p).length>0)Object.values(p).forEach(u=>u());else{let u=this.getLog(f).find(d=>d.status==="waiting")?.callId;u?n(l)({storyId:f,playUntil:u}):s({storyId:f})}},"next"),s=a(({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(f=>f())},"end"),c=a(({storyId:l,newPhase:f})=>{let{isDebugging:p}=this.getState(l);this.setState(l,{renderPhase:f}),f==="preparing"&&p&&e({storyId:l}),f==="playing"&&e({storyId:l,isDebugging:p}),f==="played"&&this.setState(l,{isLocked:!1,isPlaying:!1,isDebugging:!1}),f==="errored"&&this.setState(l,{isLocked:!1,isPlaying:!1})},"renderPhaseChanged");ee&&ee.ready().then(()=>{this.channel=ee.getChannel(),this.channel.on(en,e),this.channel.on(Si,c),this.channel.on($i,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(it.START,n(this.channel)),this.channel.on(it.BACK,r(this.channel)),this.channel.on(it.GOTO,i(this.channel)),this.channel.on(it.NEXT,o(this.channel)),this.channel.on(it.END,s)})}getState(e){return this.state[e]||ne()}setState(e,n){let r=this.getState(e),i=typeof n=="function"?n(r):n;this.state={...this.state,[e]:{...r,...i}},this.updateParentWindowState()}cleanup(){this.state=Object.entries(this.state).reduce((n,[r,i])=>{let o=Cn(i);return o&&(n[r]=Object.assign(ne(),o)),n},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(it.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:n,shadowCalls:r}=this.getState(e),i=[...r];n.forEach((s,c)=>{i[c]=s});let o=new Set;return i.reduceRight((s,c)=>(c.args.forEach(l=>{l?.__callId__&&o.add(l.__callId__)}),c.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(c.interceptable||c.exception)&&!o.has(c.id)&&(s.unshift({callId:c.id,status:c.status,ancestors:c.ancestors}),o.add(c.id)),s),[])}instrument(e,n,r=0){if(!qo(e))return e;let{mutate:i=!1,path:o=[]}=n,s=n.getKeys?n.getKeys(e,r):Object.keys(e);return r+=1,s.reduce((c,l)=>{let f=di(e,l);if(typeof f?.get=="function"){if(f.configurable){let u=a(()=>f?.get?.bind(e)?.(),"getter");Object.defineProperty(c,l,{get:a(()=>this.instrument(u(),{...n,path:o.concat(l)},r),"get")})}return c}let p=e[l];return typeof p!="function"?(c[l]=this.instrument(p,{...n,path:o.concat(l)},r),c):"__originalFn__"in p&&typeof p.__originalFn__=="function"?(c[l]=p,c):(c[l]=(...u)=>this.track(l,p,e,u,n),c[l].__originalFn__=p,Object.defineProperty(c[l],"name",{value:l,writable:!1}),Object.keys(p).length>0&&Object.assign(c[l],this.instrument({...p},{...n,path:o.concat(l)},r)),c)},i?e:Ho(e))}track(e,n,r,i,o){let s=i?.[0]?.__storyId__||Y.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:c,ancestors:l}=this.getState(s);this.setState(s,{cursor:c+1});let f=`${l.slice(-1)[0]||s} [${c}] ${e}`,{path:p=[],intercept:u=!1,retain:d=!1}=o,m=typeof u=="function"?u(e,p):u,h={id:f,cursor:c,storyId:s,ancestors:l,path:p,method:e,args:i,interceptable:m,retain:d},g=(m&&!l.length?this.intercept:this.invoke).call(this,n,r,h,o);return this.instrument(g,{...o,mutate:!0,path:[{__callId__:h.id}]})}intercept(e,n,r,i){let{chainedCallIds:o,isDebugging:s,playUntil:c}=this.getState(r.storyId),l=o.has(r.id);return!s||l||c?(c===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,n,r,i)):new Promise(f=>{this.setState(r.storyId,({resolvers:p})=>({isLocked:!1,resolvers:{...p,[r.id]:f}}))}).then(()=>(this.setState(r.storyId,f=>{let{[r.id]:p,...u}=f.resolvers;return{isLocked:!0,resolvers:u}}),this.invoke(e,n,r,i)))}invoke(e,n,r,i){let{callRefsByResult:o,renderPhase:s}=this.getState(r.storyId),c=25,l=a((u,d,m)=>{if(m.includes(u))return"[Circular]";if(m=[...m,u],d>c)return"...";if(o.has(u))return o.get(u);if(u instanceof Array)return u.map(h=>l(h,++d,m));if(u instanceof Date)return{__date__:{value:u.toISOString()}};if(u instanceof Error){let{name:h,message:g,stack:y}=u;return{__error__:{name:h,message:g,stack:y}}}if(u instanceof RegExp){let{flags:h,source:g}=u;return{__regexp__:{flags:h,source:g}}}if(u instanceof Y.window?.HTMLElement){let{prefix:h,localName:g,id:y,classList:S,innerText:w}=u,O=Array.from(S);return{__element__:{prefix:h,localName:g,id:y,classNames:O,innerText:w}}}return typeof u=="function"?{__function__:{name:"getMockName"in u?u.getMockName():u.name}}:typeof u=="symbol"?{__symbol__:{description:u.description}}:typeof u=="object"&&u?.constructor?.name&&u?.constructor?.name!=="Object"?{__class__:{name:u.constructor.name}}:Object.prototype.toString.call(u)==="[object Object]"?Object.fromEntries(Object.entries(u).map(([h,g])=>[h,l(g,++d,m)])):u},"serializeValues"),f={...r,args:r.args.map(u=>l(u,0,[]))};r.path.forEach(u=>{u?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(u.__callId__))}))});let p=a(u=>{if(u instanceof Error){let{name:d,message:m,stack:h,callId:g=r.id}=u,{showDiff:y=void 0,diff:S=void 0,actual:w=void 0,expected:O=void 0}=u.name==="AssertionError"?Qe(u):u,b={name:d,message:m,stack:h,callId:g,showDiff:y,diff:S,actual:w,expected:O};if(this.update({...f,status:"error",exception:b}),this.setState(r.storyId,$=>({callRefsByResult:new Map([...Array.from($.callRefsByResult.entries()),[u,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(u,"callId")||Object.defineProperty(u,"callId",{value:r.id}),u}throw u},"handleException");try{if(s==="played"&&!r.retain)throw Yo;let u=(i.getArgs?i.getArgs(r,this.getState(r.storyId)):r.args).map(m=>typeof m!="function"||yi(m)||Object.keys(m).length?m:(...h)=>{let{cursor:g,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let S=a(()=>this.setState(r.storyId,{cursor:g,ancestors:y}),"restore"),w=!1;try{let O=m(...h);return O instanceof Promise?(w=!0,O.finally(S)):O}finally{w||S()}}),d=e.apply(n,u);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,m=>({callRefsByResult:new Map([...Array.from(m.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...f,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(m=>(this.update({...f,status:"done"}),m),p):d}catch(u){return p(u)}}update(e){this.channel?.emit(it.CALL,e),this.setState(e.storyId,({calls:n})=>{let r=n.concat(e).reduce((i,o)=>Object.assign(i,{[o.id]:o}),{});return{calls:Object.values(r).sort((i,o)=>i.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let n=a(()=>{let{isLocked:r,isPlaying:i}=this.getState(e),o=this.getLog(e),s=o.filter(({ancestors:p})=>!p.length).find(p=>p.status==="waiting")?.callId,c=o.some(p=>p.status==="active");if(this.detached||r||c||o.length===0){let p={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(it.SYNC,p);return}let l=o.some(p=>p.status==="done"||p.status==="error"),f={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:i,end:i},logItems:o,pausedAt:s};this.channel?.emit(it.SYNC,f)},"synchronize");this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(n,0)}))}};a(hi,"Instrumenter");var Go=hi;function Qo(t,e={}){try{let n=!1,r=!1;return Y.window?.location?.search?.includes("instrument=true")?n=!0:Y.window?.location?.search?.includes("instrument=false")&&(r=!0),Y.window?.parent===Y.window&&!n||r?t:(Y.window&&!Y.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Y.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Go),(Y.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(t,e))}catch(n){return bi.warn(n),t}}a(Qo,"instrument");function di(t,e){let n=t;for(;n!=null;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}a(di,"getPropertyDescriptor");function yi(t){if(typeof t!="function")return!1;let e=Object.getOwnPropertyDescriptor(t,"prototype");return e?!e.writable:!1}a(yi,"isClass");export{it as EVENTS,Qo as instrument};
|
|
File without changes
|