@ncino/web-components 5.1.0-preview.1 → 5.1.0-preview.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/components/page-header/gator/page-header.gator.js +46 -8
  2. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  3. package/dist/components/tabs/gator/tabset/tabset.gator.js +5 -5
  4. package/dist/node_modules/.pnpm/storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2/node_modules/storybook/dist/client-logger/index.js +1 -0
  5. package/dist/node_modules/.pnpm/storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2/node_modules/storybook/dist/core-events/index.js +1 -0
  6. 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 +48 -0
  7. package/dist/node_modules/.pnpm/storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2/node_modules/storybook/dist/test/index.js +217 -0
  8. package/dist/packages/web-components/src/components/page-header/gator/page-header.gator.scss.js +1 -1
  9. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
  10. package/dist/packages/web-components/src/tokens/semantic.tokens.scss.js +1 -1
  11. package/dist/types/components/page-header/gator/page-header.gator.d.ts +5 -0
  12. package/dist/types/components/tabs/gator/tabset/tabset.gator.d.ts +5 -0
  13. package/dist/utils/vitest-a11y-utils.js +1 -1
  14. package/dist/utils/vitest-utils.js +1 -1
  15. package/package.json +123 -137
  16. package/web-types.json +9 -4
  17. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/channels/index.js +0 -20
  18. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/client-logger/index.js +0 -1
  19. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/core-events/index.js +0 -1
  20. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/csf/index.js +0 -1
  21. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js +0 -70
  22. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-errors.js +0 -130
  23. package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/instrumenter/dist/index.js +0 -48
  24. package/dist/node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js +0 -193
  25. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.54.1_bec24bd4d36b5a538258c6baab40b42a → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536}/node_modules/@vitest/browser/context.js +0 -0
@@ -1,27 +1,65 @@
1
- import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}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 n}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as h}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import g from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import u from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import b from"../../../packages/web-components/src/components/page-header/gator/page-header.gator.scss.js";import{TestableLitElement as v}from"../../../utils/components/testable-lit-element/testable-lit-element.js";import"../../breadcrumbs/gator/container/breadcrumbs.gator.js";import"../../text-detail/gator/text-detail.gator.js";import"../../tabs/gator/tabset/tabset.gator.js";import"../../tabs/gator/tab/tab.gator.js";import{unsafeCSS as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var f=Object.defineProperty,_=Object.getOwnPropertyDescriptor,a=(o,s,i,r)=>{for(var e=r>1?void 0:r?_(s,i):s,l=o.length-1,m;l>=0;l--)(m=o[l])&&(e=(r?m(s,i,e):m(e))||e);return r&&e&&f(s,i,e),e};let t=class extends v{constructor(){super(...arguments),this.title="",this.subtitle="",this._showBreadcrumbs=!1}updated(){this.shadowRoot?.querySelector('slot[name="breadcrumbs"]')?.assignedNodes().length>0&&(this._showBreadcrumbs=!0)}render(){return p`
1
+ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as p,html as s}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 m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import u from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import b from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import k from"../../../packages/web-components/src/components/page-header/gator/page-header.gator.scss.js";import{TestableLitElement as v}from"../../../utils/components/testable-lit-element/testable-lit-element.js";import"../../breadcrumbs/gator/container/breadcrumbs.gator.js";import"../../text-detail/gator/text-detail.gator.js";import"../../tabs/gator/tabset/tabset.gator.js";import"../../tabs/gator/tab/tab.gator.js";import{unsafeCSS as h}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var f=Object.defineProperty,_=Object.getOwnPropertyDescriptor,r=(i,a,l,o)=>{for(var t=o>1?void 0:o?_(a,l):a,n=i.length-1,d;n>=0;n--)(d=i[n])&&(t=(o?d(a,l,t):d(t))||t);return o&&t&&f(a,l,t),t};let e=class extends v{constructor(){super(...arguments),this.title="",this.subtitle="",this.skeleton=!1,this._showBreadcrumbs=!1,this._showTabs=!1}updated(){this.shadowRoot?.querySelector('slot[name="breadcrumbs"]')?.assignedNodes().length>0&&(this._showBreadcrumbs=!0),this.shadowRoot?.querySelector('slot[name="tabs"]')?.assignedNodes().length>0&&(this._showTabs=!0)}render(){return s`
2
2
  <div class="ngc-page-header">
3
3
  <div class="ngc-page-header-background">
4
4
  <div class="ngc-page-header-left">
5
5
  <div class="${this.breadcrumbClass}">
6
- <slot name="breadcrumbs"></slot>
6
+ ${this.skeleton&&this._showBreadcrumbs?this._breadcrumbSkeletonMarkup:s`<slot name="breadcrumbs"></slot>`}
7
7
  </div>
8
+
8
9
  <div class="ngc-page-header-text-detail">
9
10
  <ngc-text-detail
10
11
  .subtitle="${this.subtitle}"
11
12
  size="large"
13
+ ?skeleton="${this.skeleton}"
12
14
  >
13
- <h1 slot="content">
14
- ${this.title}
15
- </h1>
15
+ <h1 slot="content">${this.title}</h1>
16
16
  </ngc-text-detail>
17
17
  </div>
18
+
19
+ ${this.skeleton&&this._showTabs?this._tabsSkeletonMarkup:p}
18
20
  </div>
21
+
19
22
  <div class="ngc-page-header-actions">
20
- <slot name="actions"></slot>
23
+ ${this.skeleton?this._actionsSkeletonMarkup:s`<slot name="actions"></slot>`}
21
24
  </div>
25
+
22
26
  </div>
23
- <div class="ngc-page-header-tabs">
27
+
28
+ <div class="ngc-page-header-tabs ${this.skeleton?"ngc-page-header-tabs-hidden":""}">
24
29
  <slot name="tabs"></slot>
25
30
  </div>
26
31
  </div>
27
- `}get breadcrumbClass(){return this._showBreadcrumbs?"ngc-page-header-breadcrumbs":""}};t.styles=[d(g),d(u),d(b)];a([c()],t.prototype,"title",2);a([c()],t.prototype,"subtitle",2);a([h()],t.prototype,"_showBreadcrumbs",2);t=a([n("ngc-page-header")],t);export{t as NgcPageHeader};
32
+ `}get _breadcrumbSkeletonMarkup(){return s`
33
+ <ngc-skeleton-loader
34
+ id="ngc-page-header-breadcrumbs-skeleton"
35
+ width="74"
36
+ height="22"
37
+ radius="8"
38
+ ></ngc-skeleton-loader>
39
+ `}get _actionsSkeletonMarkup(){return s`
40
+ <div class="ngc-page-header-actions-loading">
41
+ <ngc-skeleton-loader
42
+ width="40"
43
+ height="40"
44
+ radius="9999"
45
+ ></ngc-skeleton-loader>
46
+ <ngc-skeleton-loader
47
+ width="40"
48
+ height="40"
49
+ radius="9999"
50
+ ></ngc-skeleton-loader>
51
+ </div>
52
+ `}get _tabsSkeletonMarkup(){return s`
53
+ <div class="ngc-page-header-tabs-loading">
54
+ <ngc-skeleton-loader
55
+ width="62"
56
+ height="56"
57
+ radius="4"
58
+ ></ngc-skeleton-loader>
59
+ <ngc-skeleton-loader
60
+ width="62"
61
+ height="56"
62
+ radius="4"
63
+ ></ngc-skeleton-loader>
64
+ </div>
65
+ `}get breadcrumbClass(){return this._showBreadcrumbs?"ngc-page-header-breadcrumbs":""}};e.styles=[h(u),h(b),h(k)];r([c()],e.prototype,"title",2);r([c()],e.prototype,"subtitle",2);r([c({type:Boolean})],e.prototype,"skeleton",2);r([g()],e.prototype,"_showBreadcrumbs",2);r([g()],e.prototype,"_showTabs",2);e=r([m("ngc-page-header")],e);export{e as NgcPageHeader};
@@ -1 +1 @@
1
- import{within as h,waitFor as d,expect as e,userEvent as s}from"../../../node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js";import{getShadowRootElementByDataTestId as p}from"../../../utils/vitest-utils.js";const f=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{f as nestedPanelTests};
1
+ import{within as h,waitFor as d,expect as e,userEvent as s}from"../../../node_modules/.pnpm/storybook@9.0.17_@testing-library_dom@10.4.0_prettier@3.6.2/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,13 +1,13 @@
1
- import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as c}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 d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import"../tab/tab.gator.js";import{KEY_CONSTANTS as b}from"../../../../consts/key-constants.js";import{createRef as f,ref as u}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{TestableLitElement as m}from"../../../../utils/components/testable-lit-element/testable-lit-element.js";import T from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.scss.js";import g from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js";import y from"../../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import $ from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{ifDefined as I}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 x=Object.defineProperty,S=Object.getOwnPropertyDescriptor,r=(t,e,i,o)=>{for(var a=o>1?void 0:o?S(e,i):e,n=t.length-1,h;n>=0;n--)(h=t[n])&&(a=(o?h(e,i,a):h(a))||a);return o&&a&&x(e,i,a),a};let s=class extends m{constructor(){super(...arguments),this.tabsetAriaLabelledByElements=[],this.tabsetAriaLabel=void 0,this.size="medium",this.activeTabIndex=0,this._contentRef=f(),this._tablistRef=f()}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"))),c`
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as c}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 v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as p}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import"../tab/tab.gator.js";import{KEY_CONSTANTS as o}from"../../../../consts/key-constants.js";import{createRef as u,ref as f}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{TestableLitElement as m}from"../../../../utils/components/testable-lit-element/testable-lit-element.js";import T from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.scss.js";import g from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js";import y from"../../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import $ from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{ifDefined as I}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 A=Object.defineProperty,S=Object.getOwnPropertyDescriptor,r=(t,e,i,b)=>{for(var a=b>1?void 0:b?S(e,i):e,n=t.length-1,h;n>=0;n--)(h=t[n])&&(a=(b?h(e,i,a):h(a))||a);return b&&a&&A(e,i,a),a};let s=class extends m{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"))),c`
2
2
  <div class="gator-tabset">
3
- <div ${u(this._tablistRef)} role="tablist" class="gator-tabset-header" aria-label=${I(this.tabsetAriaLabel)}>
3
+ <div ${f(this._tablistRef)} role="tablist" class="gator-tabset-header" aria-label=${I(this.tabsetAriaLabel)}>
4
4
  ${this.tabs.map((t,e)=>c`
5
5
  <div class="${this.tabSpacerClass} gator-tab"
6
6
  id="gator-tab-${e+1}"
7
7
  role="tab"
8
8
  tabindex="${this.getButtonTabIndex(e)}"
9
9
  @keydown="${i=>this.handleTabKeydown(i)}"
10
- @click="${()=>this.activeTabIndex=e}"
10
+ @click="${()=>this.setActiveTab(e)}"
11
11
  aria-controls="gator-tabpanel-${e+1}"
12
12
  aria-selected="${e===this.activeTabIndex}"
13
13
  >
@@ -22,7 +22,7 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
22
22
  `)}
23
23
  </div>
24
24
  ${this.size==="large"?c`<div class="gator-tab-border"></div>`:null}
25
- <div ${u(this._contentRef)}
25
+ <div ${f(this._contentRef)}
26
26
  aria-labelledby="gator-tab-${this.activeTabIndex+1}"
27
27
  class="gator-tabset-content"
28
28
  id="gator-tabpanel-${this.activeTabIndex+1}"
@@ -32,4 +32,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
32
32
  ${this.tabs[this.activeTabIndex]}
33
33
  </div>
34
34
  </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===b.RIGHT){if(this.activeTabIndex===this.tabs.length-1){this.focusFirstTab(),t.preventDefault();return}this.activeTabIndex++,e[this.activeTabIndex].focus()}else if(t.key===b.LEFT){if(this.activeTabIndex===0){this.focusLastTab(),t.preventDefault();return}this.activeTabIndex--,e[this.activeTabIndex].focus(),t.preventDefault()}else t.key===b.HOME?(this.focusFirstTab(),t.preventDefault()):t.key===b.END&&(this.focusLastTab(),t.preventDefault())}focusFirstTab(){let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.activeTabIndex=0,t[this.activeTabIndex].focus()}focusLastTab(){if(!this.tabs)return;let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.activeTabIndex=this.tabs.length-1,t[this.activeTabIndex].focus()}};s.styles=[l(T),l(g),l(y),l($)];r([d({type:String,attribute:"tabset-aria-labelled-by-elements"})],s.prototype,"tabsetAriaLabelledByElements",2);r([d({type:String,attribute:"tabset-aria-label"})],s.prototype,"tabsetAriaLabel",2);r([d({type:String})],s.prototype,"size",2);r([v()],s.prototype,"activeTabIndex",2);s=r([p("ngc-tabset")],s);export{s as NgcTabset};
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(T),l(g),l(y),l($)];r([d({type:String,attribute:"tabset-aria-labelled-by-elements"})],s.prototype,"tabsetAriaLabelledByElements",2);r([d({type:String,attribute:"tabset-aria-label"})],s.prototype,"tabsetAriaLabel",2);r([d({type:String})],s.prototype,"size",2);r([p()],s.prototype,"activeTabIndex",2);s=r([v("ngc-tabset")],s);export{s as NgcTabset};
@@ -0,0 +1 @@
1
+ import{global as d}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";var b=Object.defineProperty,n=(e,r)=>b(e,"name",{value:r,configurable:!0}),{LOGLEVEL:w}=d,l={trace:1,debug:2,info:3,warn:4,error:5,silent:10},h=w,c=l[h]||l.info,g={trace:n((e,...r)=>{c<=l.trace&&console.trace(e,...r)},"trace"),debug:n((e,...r)=>{c<=l.debug&&console.debug(e,...r)},"debug"),info:n((e,...r)=>{c<=l.info&&console.info(e,...r)},"info"),warn:n((e,...r)=>{c<=l.warn&&console.warn(e,...r)},"warn"),error:n((e,...r)=>{c<=l.error&&console.error(e,...r)},"error"),log:n((e,...r)=>{c<l.silent&&console.log(e,...r)},"log")},i=new Set,o=n(e=>(r,...t)=>{if(!i.has(r))return i.add(r),g[e](r,...t)},"once");o.clear=()=>i.clear();o.trace=o("trace");o.debug=o("debug");o.info=o("info");o.warn=o("warn");o.error=o("error");o.log=o("log");o("warn");var a=n(e=>(...r)=>{let t=[];if(r.length){let f=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,p=/<\/span>/gi,u;for(t.push(r[0].replace(f,"%c").replace(p,"%c"));u=f.exec(r[0]);)t.push(u[2]),t.push("");for(let s=1;s<r.length;s++)t.push(r[s])}g[e].apply(g,t)},"pretty");a.trace=a("trace");a.debug=a("debug");a.info=a("info");a.warn=a("warn");a.error=a("error");export{g as logger,o as once,a as pretty};
@@ -0,0 +1 @@
1
+ var R=(E=>(E.CHANNEL_WS_DISCONNECT="channelWSDisconnect",E.CHANNEL_CREATED="channelCreated",E.CONFIG_ERROR="configError",E.STORY_INDEX_INVALIDATED="storyIndexInvalidated",E.STORY_SPECIFIED="storySpecified",E.SET_CONFIG="setConfig",E.SET_STORIES="setStories",E.SET_INDEX="setIndex",E.SET_CURRENT_STORY="setCurrentStory",E.CURRENT_STORY_WAS_SET="currentStoryWasSet",E.FORCE_RE_RENDER="forceReRender",E.FORCE_REMOUNT="forceRemount",E.PRELOAD_ENTRIES="preloadStories",E.STORY_PREPARED="storyPrepared",E.DOCS_PREPARED="docsPrepared",E.STORY_CHANGED="storyChanged",E.STORY_UNCHANGED="storyUnchanged",E.STORY_RENDERED="storyRendered",E.STORY_FINISHED="storyFinished",E.STORY_MISSING="storyMissing",E.STORY_ERRORED="storyErrored",E.STORY_THREW_EXCEPTION="storyThrewException",E.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",E.STORY_HOT_UPDATED="storyHotUpdated",E.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",E.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",E.UPDATE_STORY_ARGS="updateStoryArgs",E.STORY_ARGS_UPDATED="storyArgsUpdated",E.RESET_STORY_ARGS="resetStoryArgs",E.SET_FILTER="setFilter",E.SET_GLOBALS="setGlobals",E.UPDATE_GLOBALS="updateGlobals",E.GLOBALS_UPDATED="globalsUpdated",E.REGISTER_SUBSCRIPTION="registerSubscription",E.PREVIEW_KEYDOWN="previewKeydown",E.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",E.SELECT_STORY="selectStory",E.STORIES_COLLAPSE_ALL="storiesCollapseAll",E.STORIES_EXPAND_ALL="storiesExpandAll",E.DOCS_RENDERED="docsRendered",E.SHARED_STATE_CHANGED="sharedStateChanged",E.SHARED_STATE_SET="sharedStateSet",E.NAVIGATE_URL="navigateUrl",E.UPDATE_QUERY_PARAMS="updateQueryParams",E.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",E.RESULT_WHATS_NEW_DATA="resultWhatsNewData",E.SET_WHATS_NEW_CACHE="setWhatsNewCache",E.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",E.TELEMETRY_ERROR="telemetryError",E.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",E.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",E.SAVE_STORY_REQUEST="saveStoryRequest",E.SAVE_STORY_RESPONSE="saveStoryResponse",E.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",E.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",E.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",E.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",E))(R||{}),{CHANNEL_WS_DISCONNECT:_,CHANNEL_CREATED:S,CONFIG_ERROR:T,CREATE_NEW_STORYFILE_REQUEST:O,CREATE_NEW_STORYFILE_RESPONSE:A,CURRENT_STORY_WAS_SET:N,DOCS_PREPARED:e,DOCS_RENDERED:s,FILE_COMPONENT_SEARCH_REQUEST:D,FILE_COMPONENT_SEARCH_RESPONSE:I,FORCE_RE_RENDER:a,FORCE_REMOUNT:C,GLOBALS_UPDATED:P,NAVIGATE_URL:L,PLAY_FUNCTION_THREW_EXCEPTION:Y,UNHANDLED_ERRORS_WHILE_PLAYING:r,PRELOAD_ENTRIES:t,PREVIEW_BUILDER_PROGRESS:U,PREVIEW_KEYDOWN:H,REGISTER_SUBSCRIPTION:G,RESET_STORY_ARGS:o,SELECT_STORY:W,SET_CONFIG:F,SET_CURRENT_STORY:n,SET_FILTER:d,SET_GLOBALS:i,SET_INDEX:l,SET_STORIES:y,SHARED_STATE_CHANGED:p,SHARED_STATE_SET:c,STORIES_COLLAPSE_ALL:h,STORIES_EXPAND_ALL:g,STORY_ARGS_UPDATED:M,STORY_CHANGED:Q,STORY_ERRORED:V,STORY_INDEX_INVALIDATED:u,STORY_MISSING:B,STORY_PREPARED:X,STORY_RENDER_PHASE_CHANGED:f,STORY_RENDERED:w,STORY_FINISHED:v,STORY_SPECIFIED:x,STORY_THREW_EXCEPTION:b,STORY_UNCHANGED:m,STORY_HOT_UPDATED:q,UPDATE_GLOBALS:K,UPDATE_QUERY_PARAMS:j,UPDATE_STORY_ARGS:k,REQUEST_WHATS_NEW_DATA:z,RESULT_WHATS_NEW_DATA:J,SET_WHATS_NEW_CACHE:Z,TOGGLE_WHATS_NEW_NOTIFICATIONS:$,TELEMETRY_ERROR:EE,SAVE_STORY_REQUEST:RE,SAVE_STORY_RESPONSE:_E,ARGTYPES_INFO_REQUEST:SE,ARGTYPES_INFO_RESPONSE:TE}=R;export{SE as ARGTYPES_INFO_REQUEST,TE as ARGTYPES_INFO_RESPONSE,S as CHANNEL_CREATED,_ as CHANNEL_WS_DISCONNECT,T as CONFIG_ERROR,O as CREATE_NEW_STORYFILE_REQUEST,A as CREATE_NEW_STORYFILE_RESPONSE,N as CURRENT_STORY_WAS_SET,e as DOCS_PREPARED,s as DOCS_RENDERED,D as FILE_COMPONENT_SEARCH_REQUEST,I as FILE_COMPONENT_SEARCH_RESPONSE,C as FORCE_REMOUNT,a as FORCE_RE_RENDER,P as GLOBALS_UPDATED,L as NAVIGATE_URL,Y as PLAY_FUNCTION_THREW_EXCEPTION,t as PRELOAD_ENTRIES,U as PREVIEW_BUILDER_PROGRESS,H as PREVIEW_KEYDOWN,G as REGISTER_SUBSCRIPTION,z as REQUEST_WHATS_NEW_DATA,o as RESET_STORY_ARGS,J as RESULT_WHATS_NEW_DATA,RE as SAVE_STORY_REQUEST,_E as SAVE_STORY_RESPONSE,W as SELECT_STORY,F as SET_CONFIG,n as SET_CURRENT_STORY,d as SET_FILTER,i as SET_GLOBALS,l as SET_INDEX,y as SET_STORIES,Z as SET_WHATS_NEW_CACHE,p as SHARED_STATE_CHANGED,c as SHARED_STATE_SET,h as STORIES_COLLAPSE_ALL,g as STORIES_EXPAND_ALL,M as STORY_ARGS_UPDATED,Q as STORY_CHANGED,V as STORY_ERRORED,v as STORY_FINISHED,q as STORY_HOT_UPDATED,u as STORY_INDEX_INVALIDATED,B as STORY_MISSING,X as STORY_PREPARED,w as STORY_RENDERED,f as STORY_RENDER_PHASE_CHANGED,x as STORY_SPECIFIED,b as STORY_THREW_EXCEPTION,m as STORY_UNCHANGED,EE as TELEMETRY_ERROR,$ as TOGGLE_WHATS_NEW_NOTIFICATIONS,r as UNHANDLED_ERRORS_WHILE_PLAYING,K as UPDATE_GLOBALS,j as UPDATE_QUERY_PARAMS,k as UPDATE_STORY_ARGS};
@@ -0,0 +1,48 @@
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("<","&lt;").replaceAll(">","&gt;")}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};